/*! For license information please see main.e090d7da.js.LICENSE.txt */ (()=>{var e={3414(e,t,n){"use strict";var r={};n.r(r),n.d(r,{attentionMarkers:()=>Ob,contentInitial:()=>hb,disable:()=>bb,document:()=>ub,flow:()=>pb,flowInitial:()=>db,insideSpan:()=>gb,string:()=>fb,text:()=>mb});var i={};n.r(i),n.d(i,{safe:()=>JS,spec:()=>KS});var o={};n.r(o),n.d(o,{angle:()=>VA,decibel:()=>tT,flex:()=>eT,frequency:()=>KA,length:()=>GA,resolution:()=>JA,semitones:()=>nT,time:()=>WA});var s={};n.r(s),n.d(s,{getTrace:()=>HT,isKeyword:()=>jT,isProperty:()=>UT,isType:()=>qT});var a={};n.r(a),n.d(a,{generate:()=>kE,name:()=>yE,parse:()=>xE,structure:()=>vE});var l={};n.r(l),n.d(l,{generate:()=>_E,name:()=>AE,parse:()=>CE,structure:()=>EE,walkContext:()=>TE});var c={};n.r(c),n.d(c,{generate:()=>RE,name:()=>PE,parse:()=>NE,structure:()=>ME,walkContext:()=>DE});var u={};n.r(u),n.d(u,{generate:()=>BE,name:()=>LE,parse:()=>$E,structure:()=>FE});var h={};n.r(h),n.d(h,{generate:()=>GE,name:()=>jE,parse:()=>YE,structure:()=>ZE,walkContext:()=>XE});var d={};n.r(d),n.d(d,{generate:()=>JE,name:()=>VE,parse:()=>KE,structure:()=>WE});var p={};n.r(p),n.d(p,{generate:()=>rC,name:()=>eC,parse:()=>nC,structure:()=>tC});var f={};n.r(f),n.d(f,{generate:()=>aC,name:()=>iC,parse:()=>sC,structure:()=>oC});var m={};n.r(m),n.d(m,{generate:()=>hC,name:()=>lC,parse:()=>uC,structure:()=>cC});var g={};n.r(g),n.d(g,{generate:()=>mC,name:()=>dC,parse:()=>fC,structure:()=>pC});var O={};n.r(O),n.d(O,{generate:()=>yC,name:()=>gC,parse:()=>bC,structure:()=>OC});var b={};n.r(b),n.d(b,{generate:()=>EC,name:()=>wC,parse:()=>TC,structure:()=>AC,walkContext:()=>SC});var y={};n.r(y),n.d(y,{generate:()=>RC,name:()=>DC,parse:()=>NC,structure:()=>MC});var v={};n.r(v),n.d(v,{generate:()=>FC,name:()=>IC,parse:()=>LC,structure:()=>QC});var x={};n.r(x),n.d(x,{generate:()=>qC,name:()=>$C,parse:()=>HC,structure:()=>zC,walkContext:()=>BC});var k={};n.r(k),n.d(k,{generate:()=>YC,name:()=>jC,parse:()=>ZC,structure:()=>XC,xxx:()=>UC});var w={};n.r(w),n.d(w,{generate:()=>KC,name:()=>GC,parse:()=>WC,structure:()=>VC});var S={};n.r(S),n.d(S,{generate:()=>n_,name:()=>JC,parse:()=>t_,structure:()=>e_});var A={};n.r(A),n.d(A,{generate:()=>s_,name:()=>r_,parse:()=>o_,structure:()=>i_});var T={};n.r(T),n.d(T,{generate:()=>u_,name:()=>a_,parse:()=>c_,structure:()=>l_});var E={};n.r(E),n.d(E,{generate:()=>f_,name:()=>h_,parse:()=>p_,structure:()=>d_});var C={};n.r(C),n.d(C,{generate:()=>b_,name:()=>m_,parse:()=>O_,structure:()=>g_});var _={};n.r(_),n.d(_,{generate:()=>k_,name:()=>y_,parse:()=>x_,structure:()=>v_});var P={};n.r(P),n.d(P,{generate:()=>T_,name:()=>w_,parse:()=>A_,structure:()=>S_});var D={};n.r(D),n.d(D,{generate:()=>P_,name:()=>E_,parse:()=>__,structure:()=>C_});var M={};n.r(M),n.d(M,{generate:()=>R_,name:()=>D_,parse:()=>N_,structure:()=>M_});var N={};n.r(N),n.d(N,{generate:()=>F_,name:()=>I_,parse:()=>L_,structure:()=>Q_});var R={};n.r(R),n.d(R,{generate:()=>q_,name:()=>$_,parse:()=>H_,structure:()=>z_,walkContext:()=>B_});var I={};n.r(I),n.d(I,{generate:()=>Y_,name:()=>U_,parse:()=>Z_,structure:()=>X_,walkContext:()=>j_});var Q={};n.r(Q),n.d(Q,{generate:()=>J_,name:()=>V_,parse:()=>K_,structure:()=>W_});var L={};n.r(L),n.d(L,{generate:()=>iP,name:()=>tP,parse:()=>rP,structure:()=>nP});var F={};n.r(F),n.d(F,{generate:()=>hP,name:()=>aP,parse:()=>uP,structure:()=>cP,walkContext:()=>lP});var $={};n.r($),n.d($,{generate:()=>mP,name:()=>dP,parse:()=>fP,structure:()=>pP});var B={};n.r(B),n.d(B,{generate:()=>vP,name:()=>gP,parse:()=>yP,structure:()=>bP,walkContext:()=>OP});var z={};n.r(z),n.d(z,{generate:()=>AP,name:()=>kP,parse:()=>SP,structure:()=>wP});var H={};n.r(H),n.d(H,{generate:()=>DP,name:()=>EP,parse:()=>PP,structure:()=>_P,walkContext:()=>CP});var q={};n.r(q),n.d(q,{generate:()=>QP,name:()=>NP,parse:()=>IP,structure:()=>RP});var U={};n.r(U),n.d(U,{generate:()=>UP,name:()=>zP,parse:()=>qP,structure:()=>HP});var j={};n.r(j),n.d(j,{generate:()=>YP,name:()=>jP,parse:()=>ZP,structure:()=>XP});var X={};n.r(X),n.d(X,{generate:()=>KP,name:()=>GP,parse:()=>WP,structure:()=>VP});var Z={};n.r(Z),n.d(Z,{generate:()=>rD,name:()=>eD,parse:()=>nD,structure:()=>tD});var Y={};n.r(Y),n.d(Y,{AnPlusB:()=>a,Atrule:()=>l,AtrulePrelude:()=>c,AttributeSelector:()=>u,Block:()=>h,Brackets:()=>d,CDC:()=>p,CDO:()=>f,ClassSelector:()=>m,Combinator:()=>g,Comment:()=>O,Declaration:()=>b,DeclarationList:()=>y,Dimension:()=>v,Function:()=>x,Hash:()=>k,IdSelector:()=>S,Identifier:()=>w,MediaFeature:()=>A,MediaQuery:()=>T,MediaQueryList:()=>E,NestingSelector:()=>C,Nth:()=>_,Number:()=>P,Operator:()=>D,Parentheses:()=>M,Percentage:()=>N,PseudoClassSelector:()=>R,PseudoElementSelector:()=>I,Ratio:()=>Q,Raw:()=>L,Rule:()=>F,Selector:()=>$,SelectorList:()=>B,String:()=>z,StyleSheet:()=>H,TypeSelector:()=>q,UnicodeRange:()=>U,Url:()=>j,Value:()=>X,WhiteSpace:()=>Z});var G={};n.r(G),n.d(G,{AtrulePrelude:()=>sD,Selector:()=>aD,Value:()=>cD});var V={};n.r(V),n.d(V,{AnPlusB:()=>xE,Atrule:()=>CE,AtrulePrelude:()=>NE,AttributeSelector:()=>$E,Block:()=>YE,Brackets:()=>KE,CDC:()=>nC,CDO:()=>sC,ClassSelector:()=>uC,Combinator:()=>fC,Comment:()=>bC,Declaration:()=>TC,DeclarationList:()=>NC,Dimension:()=>LC,Function:()=>HC,Hash:()=>ZC,IdSelector:()=>t_,Identifier:()=>WC,MediaFeature:()=>o_,MediaQuery:()=>c_,MediaQueryList:()=>p_,NestingSelector:()=>O_,Nth:()=>x_,Number:()=>A_,Operator:()=>__,Parentheses:()=>N_,Percentage:()=>L_,PseudoClassSelector:()=>H_,PseudoElementSelector:()=>Z_,Ratio:()=>K_,Raw:()=>rP,Rule:()=>uP,Selector:()=>fP,SelectorList:()=>yP,String:()=>SP,StyleSheet:()=>PP,TypeSelector:()=>IP,UnicodeRange:()=>qP,Url:()=>ZP,Value:()=>WP,WhiteSpace:()=>nD});var W,K=n(905),J=n.t(K,2),ee=n(8721),te=n(4824),ne=n.t(te,2);function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function he(e,t,n,r){void 0===r&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=W.Pop,l=null,c=u();function u(){return(s.state||{idx:null}).idx}function h(){a=W.Pop;let e=u(),t=null==e?null:e-c;c=e,l&&l({action:a,location:p.location,delta:t})}function d(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"===typeof e?e:ce(e);return n=n.replace(/ $/,"%20"),oe(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==c&&(c=0,s.replaceState(re({},s.state,{idx:c}),""));let p={get action(){return a},get location(){return e(i,s)},listen(e){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(ie,h),l=e,()=>{i.removeEventListener(ie,h),l=null}},createHref:e=>t(i,e),createURL:d,encodeLocation(e){let t=d(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){a=W.Push;let r=le(p.location,e,t);n&&n(r,e),c=u()+1;let h=ae(r,c),d=p.createHref(r);try{s.pushState(h,"",d)}catch(f){if(f instanceof DOMException&&"DataCloneError"===f.name)throw f;i.location.assign(d)}o&&l&&l({action:a,location:p.location,delta:1})},replace:function(e,t){a=W.Replace;let r=le(p.location,e,t);n&&n(r,e),c=u();let i=ae(r,c),h=p.createHref(r);s.replaceState(i,"",h),o&&l&&l({action:a,location:p.location,delta:0})},go:e=>s.go(e)};return p}var de;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(de||(de={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function pe(e,t,n){return void 0===n&&(n="/"),fe(e,t,n,!1)}function fe(e,t,n,r){let i=we(("string"===typeof t?ue(t):t).pathname||"/",n);if(null==i)return null;let o=me(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(o);let s=null;for(let a=0;null==s&&a{let s={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};s.relativePath.startsWith("/")&&(oe(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let a=De([r,s.relativePath]),l=n.concat(s);e.children&&e.children.length>0&&(oe(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+a+'".'),me(e.children,t,l,a)),(null!=e.path||e.index)&&t.push({path:a,score:ye(a,e.index),routesMeta:l})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of ge(e.path))i(e,t,r);else i(e,t)}),t}function ge(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let s=ge(r.join("/")),a=[];return a.push(...s.map(e=>""===e?o:[o,e].join("/"))),i&&a.push(...s),a.map(t=>e.startsWith("/")&&""===t?"/":t)}const Oe=/^:[\w-]+$/,be=e=>"*"===e;function ye(e,t){let n=e.split("/"),r=n.length;return n.some(be)&&(r+=-2),t&&(r+=2),n.filter(e=>!be(e)).reduce((e,t)=>e+(Oe.test(t)?3:""===t?1:10),r)}function ve(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1),l=r.reduce((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=a[n]||"";s=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=a[n];return e[r]=i&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{});return{params:l,pathname:o,pathnameBase:s,pattern:e}}function ke(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return se(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function we(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}const Se=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Ae(e,t){void 0===t&&(t="/");let n,{pathname:r,search:i="",hash:o=""}="string"===typeof e?ue(e):e;if(r)if(s=r,Se.test(s))n=r;else{if(r.includes("//")){let e=r;r=r.replace(/\/\/+/g,"/"),se(!1,"Pathnames cannot have embedded double slashes - normalizing "+e+" -> "+r)}n=r.startsWith("/")?Te(r.substring(1),"/"):Te(r,t)}else n=t;var s;return{pathname:n,search:Ne(i),hash:Re(o)}}function Te(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function Ee(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function Ce(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function _e(e,t){let n=Ce(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function Pe(e,t,n,r){let i;void 0===r&&(r=!1),"string"===typeof e?i=ue(e):(i=re({},e),oe(!i.pathname||!i.pathname.includes("?"),Ee("?","pathname","search",i)),oe(!i.pathname||!i.pathname.includes("#"),Ee("#","pathname","hash",i)),oe(!i.search||!i.search.includes("#"),Ee("#","search","hash",i)));let o,s=""===e||""===i.pathname,a=s?"/":i.pathname;if(null==a)o=n;else{let e=t.length-1;if(!r&&a.startsWith("..")){let t=a.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=Ae(i,o),c=a&&"/"!==a&&a.endsWith("/"),u=(s||"."===a)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const De=e=>e.join("/").replace(/\/\/+/g,"/"),Me=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ne=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Re=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function Ie(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const Qe=["post","put","patch","delete"],Le=(new Set(Qe),["get",...Qe]);new Set(Le),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function Fe(){return Fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0});let r=K.useCallback(function(r,i){void 0===i&&(i={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,Fe({fromRouteId:t},i)))},[e,t]);return r}():function(){je()||oe(!1);let e=K.useContext($e),{basename:t,future:n,navigator:r}=K.useContext(ze),{matches:i}=K.useContext(qe),{pathname:o}=Xe(),s=JSON.stringify(_e(i,n.v7_relativeSplatPath)),a=K.useRef(!1);Ze(()=>{a.current=!0});let l=K.useCallback(function(n,i){if(void 0===i&&(i={}),!a.current)return;if("number"===typeof n)return void r.go(n);let l=Pe(n,JSON.parse(s),o,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:De([t,l.pathname])),(i.replace?r.replace:r.push)(l,i.state,i)},[t,r,s,o,e]);return l}()}const Ge=K.createContext(null);function Ve(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=K.useContext(ze),{matches:i}=K.useContext(qe),{pathname:o}=Xe(),s=JSON.stringify(_e(i,r.v7_relativeSplatPath));return K.useMemo(()=>Pe(e,JSON.parse(s),o,"path"===n),[e,s,o,n])}function We(e,t,n,r){je()||oe(!1);let{navigator:i}=K.useContext(ze),{matches:o}=K.useContext(qe),s=o[o.length-1],a=s?s.params:{},l=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let c,u=Xe();if(t){var h;let e="string"===typeof t?ue(t):t;"/"===l||(null==(h=e.pathname)?void 0:h.startsWith(l))||oe(!1),c=e}else c=u;let d=c.pathname||"/",p=d;if("/"!==l){let e=l.replace(/^\//,"").split("/");p="/"+d.replace(/^\//,"").split("/").slice(e.length).join("/")}let f=pe(e,{pathname:p});let m=nt(f&&f.map(e=>Object.assign({},e,{params:Object.assign({},a,e.params),pathname:De([l,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:De([l,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),o,n,r);return t&&m?K.createElement(He.Provider,{value:{location:Fe({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:W.Pop}},m):m}function Ke(){let e=function(){var e;let t=K.useContext(Ue),n=st(it.UseRouteError),r=at(it.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=Ie(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r};return K.createElement(K.Fragment,null,K.createElement("h2",null,"Unexpected Application Error!"),K.createElement("h3",{style:{fontStyle:"italic"}},t),n?K.createElement("pre",{style:i},n):null,null)}const Je=K.createElement(Ke,null);class et extends K.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?K.createElement(qe.Provider,{value:this.props.routeContext},K.createElement(Ue.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tt(e){let{routeContext:t,match:n,children:r}=e,i=K.useContext($e);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),K.createElement(qe.Provider,{value:t},r)}function nt(e,t,n,r){var i;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var o;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(o=r)&&o.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let s=e,a=null==(i=n)?void 0:i.errors;if(null!=a){let e=s.findIndex(e=>e.route.id&&void 0!==(null==a?void 0:a[e.route.id]));e>=0||oe(!1),s=s.slice(0,Math.min(s.length,e+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?s.slice(0,c+1):[s[0]];break}}}return s.reduceRight((e,r,i)=>{let o,u=!1,h=null,d=null;n&&(o=a&&r.route.id?a[r.route.id]:void 0,h=r.route.errorElement||Je,l&&(c<0&&0===i?(!function(e,t){t||lt[e]||(lt[e]=!0)}("route-fallback",!1),u=!0,d=null):c===i&&(u=!0,d=r.route.hydrateFallbackElement||null)));let p=t.concat(s.slice(0,i+1)),f=()=>{let t;return t=o?h:u?d:r.route.Component?K.createElement(r.route.Component,null):r.route.element?r.route.element:e,K.createElement(tt,{match:r,routeContext:{outlet:e,matches:p,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?K.createElement(et,{location:n.location,revalidation:n.revalidation,component:h,error:o,children:f(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):f()},null)}var rt=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(rt||{}),it=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(it||{});function ot(e){let t=K.useContext($e);return t||oe(!1),t}function st(e){let t=K.useContext(Be);return t||oe(!1),t}function at(e){let t=function(){let e=K.useContext(qe);return e||oe(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||oe(!1),n.route.id}const lt={};function ct(e,t){null==e||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}J.startTransition;function ut(e){return function(e){let t=K.useContext(qe).outlet;return t?K.createElement(Ge.Provider,{value:e},t):t}(e.context)}function ht(e){oe(!1)}function dt(e){let{basename:t="/",children:n=null,location:r,navigationType:i=W.Pop,navigator:o,static:s=!1,future:a}=e;je()&&oe(!1);let l=t.replace(/^\/*/,"/"),c=K.useMemo(()=>({basename:l,navigator:o,static:s,future:Fe({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);"string"===typeof r&&(r=ue(r));let{pathname:u="/",search:h="",hash:d="",state:p=null,key:f="default"}=r,m=K.useMemo(()=>{let e=we(u,l);return null==e?null:{location:{pathname:e,search:h,hash:d,state:p,key:f},navigationType:i}},[l,u,h,d,p,f,i]);return null==m?null:K.createElement(ze.Provider,{value:c},K.createElement(He.Provider,{children:n,value:m}))}function pt(e){let{children:t,location:n}=e;return We(ft(t),n)}new Promise(()=>{});K.Component;function ft(e,t){void 0===t&&(t=[]);let n=[];return K.Children.forEach(e,(e,r)=>{if(!K.isValidElement(e))return;let i=[...t,r];if(e.type===K.Fragment)return void n.push.apply(n,ft(e.props.children,i));e.type!==ht&&oe(!1),e.props.index&&e.props.children&&oe(!1);let o={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=ft(e.props.children,i)),n.push(o)}),n}function mt(){return mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function Ot(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const bt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],yt=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"];try{window.__reactRouterVersion="6"}catch(zt){}const vt=K.createContext({isTransitioning:!1});new Map;const xt=J.startTransition;ne.flushSync,J.useId;function kt(e){let{basename:t,children:n,future:r,window:i}=e,o=K.useRef();var s;null==o.current&&(o.current=(void 0===(s={window:i,v5Compat:!0})&&(s={}),he(function(e,t){let{pathname:n="/",search:r="",hash:i=""}=ue(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),le("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"===typeof t?t:ce(t))},function(e,t){se("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},s)));let a=o.current,[l,c]=K.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},h=K.useCallback(e=>{u&&xt?xt(()=>c(e)):c(e)},[c,u]);return K.useLayoutEffect(()=>a.listen(h),[a,h]),K.useEffect(()=>ct(r),[r]),K.createElement(dt,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const wt="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,St=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,At=K.forwardRef(function(e,t){let n,{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:u,viewTransition:h}=e,d=gt(e,bt),{basename:p}=K.useContext(ze),f=!1;if("string"===typeof c&&St.test(c)&&(n=c,wt))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=we(t.pathname,p);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:f=!0}catch(zt){}let m=function(e,t){let{relative:n}=void 0===t?{}:t;je()||oe(!1);let{basename:r,navigator:i}=K.useContext(ze),{hash:o,pathname:s,search:a}=Ve(e,{relative:n}),l=s;return"/"!==r&&(l="/"===s?r:De([r,s])),i.createHref({pathname:l,search:a,hash:o})}(c,{relative:i}),g=function(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:a}=void 0===t?{}:t,l=Ye(),c=Xe(),u=Ve(e,{relative:s});return K.useCallback(t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==r?r:ce(c)===ce(u);l(e,{replace:n,state:i,preventScrollReset:o,relative:s,viewTransition:a})}},[c,l,u,r,i,n,e,o,s,a])}(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:i,viewTransition:h});return K.createElement("a",mt({},d,{href:n||m,onClick:f||o?r:function(e){r&&r(e),e.defaultPrevented||g(e)},ref:t,target:l}))});const Tt=K.forwardRef(function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:i="",end:o=!1,style:s,to:a,viewTransition:l,children:c}=e,u=gt(e,yt),h=Ve(a,{relative:u.relative}),d=Xe(),p=K.useContext(Be),{navigator:f,basename:m}=K.useContext(ze),g=null!=p&&function(e,t){void 0===t&&(t={});let n=K.useContext(vt);null==n&&oe(!1);let{basename:r}=_t(Et.useViewTransitionState),i=Ve(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=we(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=we(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=xe(i.pathname,s)||null!=xe(i.pathname,o)}(h)&&!0===l,O=f.encodeLocation?f.encodeLocation(h).pathname:h.pathname,b=d.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;r||(b=b.toLowerCase(),y=y?y.toLowerCase():null,O=O.toLowerCase()),y&&m&&(y=we(y,m)||y);const v="/"!==O&&O.endsWith("/")?O.length-1:O.length;let x,k=b===O||!o&&b.startsWith(O)&&"/"===b.charAt(v),w=null!=y&&(y===O||!o&&y.startsWith(O)&&"/"===y.charAt(O.length)),S={isActive:k,isPending:w,isTransitioning:g},A=k?n:void 0;x="function"===typeof i?i(S):[i,k?"active":null,w?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let T="function"===typeof s?s(S):s;return K.createElement(At,mt({},u,{"aria-current":A,className:x,ref:t,style:T,to:a,viewTransition:l}),"function"===typeof c?c(S):c)});var Et,Ct;function _t(e){let t=K.useContext($e);return t||oe(!1),t}function Pt(e){let t=K.useRef(Ot(e)),n=K.useRef(!1),r=Xe(),i=K.useMemo(()=>function(e,t){let n=Ot(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}(r.search,n.current?null:t.current),[r.search]),o=Ye(),s=K.useCallback((e,t)=>{const r=Ot("function"===typeof e?e(i):e);n.current=!0,o("?"+r,t)},[o,i]);return[i,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Et||(Et={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Ct||(Ct={}));function Dt(){return Dt=Object.assign?Object.assign.bind():function(e){for(var t=1;to/2,[o]),m=(0,K.useMemo)(()=>o/2-s/2,[o,s]),g=(0,K.useMemo)(()=>Math.PI*m*2,[m]),[O,b]=(0,K.useState)(g||0),y=e=>{var{clientHeight:t,scrollHeight:n,scrollTop:o}=r||$t;b(g-g*(o/(n-t))||0),h.current&&i>0&&(h.current.style.opacity=o>i?"1":"0")};(0,K.useEffect)(()=>{var e=r===$t?document:r;return e&&e.addEventListener("scroll",y,{passive:!0}),()=>{e&&e.removeEventListener("scroll",y)}},[r]);return(0,Nt.jsxs)("div",Dt({className:d,ref:h},u,{onClick:e=>{r.scrollTo({top:0,behavior:a?"smooth":"auto"})},style:p,children:[!l&&(0,Nt.jsxs)("svg",{viewBox:"0 0 "+o+" "+o,width:o,height:o,focusable:"false",style:Qt,children:[(0,Nt.jsx)("circle",{fill:"rgb(0 0 0 / 75%)",stroke:"rgb(200 200 200 / 85%)",strokeWidth:s,r:m,cx:f,cy:f}),(0,Nt.jsx)("circle",{fill:"none",stroke:"rgb(0 0 0 / 50%)",strokeWidth:s,r:m,cx:f,cy:f,strokeDasharray:g,strokeDashoffset:O||0,style:Lt})]}),c&&(0,Nt.jsx)("div",{style:Ft,children:c})]}))}let zt={data:""},Ht=e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||zt},qt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ut=/\/\*[^]*?\*\/| +/g,jt=/\n+/g,Xt=(e,t)=>{let n="",r="",i="";for(let o in e){let s=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+s+";":r+="f"==o[1]?Xt(s,o):o+"{"+Xt(s,"k"==o[1]?"":t)+"}":"object"==typeof s?r+=Xt(s,t?t.replace(/([^,])+/g,e=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=s&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Xt.p?Xt.p(o,s):o+":"+s+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Zt={},Yt=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+Yt(e[n]);return t}return e},Gt=(e,t,n,r,i)=>{let o=Yt(e),s=Zt[o]||(Zt[o]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(o));if(!Zt[s]){let t=o!==e?e:(e=>{let t,n,r=[{}];for(;t=qt.exec(e.replace(Ut,""));)t[4]?r.shift():t[3]?(n=t[3].replace(jt," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(jt," ").trim();return r[0]})(e);Zt[s]=Xt(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}let a=n&&Zt.g?Zt.g:null;return n&&(Zt.g=Zt[s]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(Zt[s],t,r,a),s};function Vt(e){let t=this||{},n=e.call?e(t.p):e;return Gt(n.unshift?n.raw?((e,t,n)=>e.reduce((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":Xt(e,""):!1===e?"":e}return e+r+(null==o?"":o)},""))(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,Ht(t.target),t.g,t.o,t.k)}Vt.bind({g:1});let Wt,Kt,Jt,en=Vt.bind({k:1});function tn(e,t){let n=this||{};return function(){let r=arguments;function i(o,s){let a=Object.assign({},o),l=a.className||i.className;n.p=Object.assign({theme:Kt&&Kt()},a),n.o=/ *go\d+/.test(l),a.className=Vt.apply(n,r)+(l?" "+l:""),t&&(a.ref=s);let c=e;return e[0]&&(c=a.as||e,delete a.as),Jt&&c[0]&&Jt(a),Wt(c,a)}return t?t(i):i}}var nn=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,rn=(()=>{let e=0;return()=>(++e).toString()})(),on=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),sn="default",an=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:r}=t;return an(e,{type:e.toasts.find(e=>e.id===r.id)?1:0,toast:r});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(e=>e.id===i||void 0===i?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+o}))}}},ln=[],cn={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},un={},hn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sn;un[t]=an(un[t]||cn,e),ln.forEach(e=>{let[n,r]=e;n===t&&r(un[t])})},dn=e=>Object.keys(un).forEach(t=>hn(e,t)),pn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sn;return t=>{hn(t,e)}},fn={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},mn=e=>(t,n)=>{let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",n=arguments.length>2?arguments[2]:void 0;return{createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||rn()}}(t,e,n);return pn(r.toasterId||(e=>Object.keys(un).find(t=>un[t].toasts.some(t=>t.id===e)))(r.id))({type:2,toast:r}),r.id},gn=(e,t)=>mn("blank")(e,t);gn.error=mn("error"),gn.success=mn("success"),gn.loading=mn("loading"),gn.custom=mn("custom"),gn.dismiss=(e,t)=>{let n={type:3,toastId:e};t?pn(t)(n):dn(n)},gn.dismissAll=e=>gn.dismiss(void 0,e),gn.remove=(e,t)=>{let n={type:4,toastId:e};t?pn(t)(n):dn(n)},gn.removeAll=e=>gn.remove(void 0,e),gn.promise=(e,t,n)=>{let r=gn.loading(t.loading,{...n,...null==n?void 0:n.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let i=t.success?nn(t.success,e):void 0;return i?gn.success(i,{id:r,...n,...null==n?void 0:n.success}):gn.dismiss(r),e}).catch(e=>{let i=t.error?nn(t.error,e):void 0;i?gn.error(i,{id:r,...n,...null==n?void 0:n.error}):gn.dismiss(r)}),e};var On=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",{toasts:n,pausedAt:r}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sn,[n,r]=(0,K.useState)(un[t]||cn),i=(0,K.useRef)(un[t]);(0,K.useEffect)(()=>(i.current!==un[t]&&r(un[t]),ln.push([t,r]),()=>{let e=ln.findIndex(e=>{let[n]=e;return n===t});e>-1&&ln.splice(e,1)}),[t]);let o=n.toasts.map(t=>{var n,r,i;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(n=e[t.type])?void 0:n.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||fn[t.type],style:{...e.style,...null==(i=e[t.type])?void 0:i.style,...t.style}}});return{...n,toasts:o}}(e,t),i=(0,K.useRef)(new Map).current,o=(0,K.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(i.has(e))return;let n=setTimeout(()=>{i.delete(e),s({type:4,toastId:e})},t);i.set(e,n)},[]);(0,K.useEffect)(()=>{if(r)return;let e=Date.now(),i=n.map(n=>{if(n.duration===1/0)return;let r=(n.duration||0)+n.pauseDuration-(e-n.createdAt);if(!(r<0))return setTimeout(()=>gn.dismiss(n.id,t),r);n.visible&&gn.dismiss(n.id)});return()=>{i.forEach(e=>e&&clearTimeout(e))}},[n,r,t]);let s=(0,K.useCallback)(pn(t),[t]),a=(0,K.useCallback)(()=>{s({type:5,time:Date.now()})},[s]),l=(0,K.useCallback)((e,t)=>{s({type:1,toast:{id:e,height:t}})},[s]),c=(0,K.useCallback)(()=>{r&&s({type:6,time:Date.now()})},[r,s]),u=(0,K.useCallback)((e,t)=>{let{reverseOrder:r=!1,gutter:i=8,defaultPosition:o}=t||{},s=n.filter(t=>(t.position||o)===(e.position||o)&&t.height),a=s.findIndex(t=>t.id===e.id),l=s.filter((e,t)=>te.visible).slice(...r?[l+1]:[0,l]).reduce((e,t)=>e+(t.height||0)+i,0)},[n]);return(0,K.useEffect)(()=>{n.forEach(e=>{if(e.dismissed)o(e.id,e.removeDelay);else{let t=i.get(e.id);t&&(clearTimeout(t),i.delete(e.id))}})},[n,o]),{toasts:n,handlers:{updateHeight:l,startPause:a,endPause:c,calculateOffset:u}}},bn=en` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,yn=en` from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; }`,vn=en` from { transform: scale(0) rotate(90deg); opacity: 0; } to { transform: scale(1) rotate(90deg); opacity: 1; }`,xn=tn("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#ff4b4b"}; position: relative; transform: rotate(45deg); animation: ${bn} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; animation: ${yn} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; opacity: 0; background: ${e=>e.secondary||"#fff"}; bottom: 9px; left: 4px; height: 2px; width: 12px; } &:before { animation: ${vn} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } `,kn=en` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,wn=tn("div")` width: 12px; height: 12px; box-sizing: border-box; border: 2px solid; border-radius: 100%; border-color: ${e=>e.secondary||"#e0e0e0"}; border-right-color: ${e=>e.primary||"#616161"}; animation: ${kn} 1s linear infinite; `,Sn=en` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,An=en` 0% { height: 0; width: 0; opacity: 0; } 40% { height: 0; width: 6px; opacity: 1; } 100% { opacity: 1; height: 10px; }`,Tn=tn("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#61d345"}; position: relative; transform: rotate(45deg); animation: ${Sn} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; animation: ${An} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; border-right: 2px solid; border-bottom: 2px solid; border-color: ${e=>e.secondary||"#fff"}; bottom: 6px; left: 6px; height: 10px; width: 6px; } `,En=tn("div")` position: absolute; `,Cn=tn("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; `,_n=en` from { transform: scale(0.6); opacity: 0.4; } to { transform: scale(1); opacity: 1; }`,Pn=tn("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; animation: ${_n} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; `,Dn=e=>{let{toast:t}=e,{icon:n,type:r,iconTheme:i}=t;return void 0!==n?"string"==typeof n?K.createElement(Pn,null,n):n:"blank"===r?null:K.createElement(Cn,null,K.createElement(wn,{...i}),"loading"!==r&&K.createElement(En,null,"error"===r?K.createElement(xn,{...i}):K.createElement(Tn,{...i})))},Mn=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,Nn=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,Rn=tn("div")` display: flex; align-items: center; background: #fff; color: #363636; line-height: 1.3; will-change: transform; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); max-width: 350px; pointer-events: auto; padding: 8px 10px; border-radius: 8px; `,In=tn("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; `,Qn=K.memo(e=>{let{toast:t,position:n,style:r,children:i}=e,o=t.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,i]=on()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Mn(n),Nn(n)];return{animation:t?`${en(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${en(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(t.position||n||"top-center",t.visible):{opacity:0},s=K.createElement(Dn,{toast:t}),a=K.createElement(In,{...t.ariaProps},nn(t.message,t));return K.createElement(Rn,{className:t.className,style:{...o,...r,...t.style}},"function"==typeof i?i({icon:s,message:a}):K.createElement(K.Fragment,null,s,a))});!function(e,t,n,r){Xt.p=t,Wt=e,Kt=n,Jt=r}(K.createElement);var Ln=e=>{let{id:t,className:n,style:r,onHeightUpdate:i,children:o}=e,s=K.useCallback(e=>{if(e){let n=()=>{let n=e.getBoundingClientRect().height;i(t,n)};n(),new MutationObserver(n).observe(e,{subtree:!0,childList:!0,characterData:!0})}},[t,i]);return K.createElement("div",{ref:s,className:n,style:r},o)},Fn=Vt` z-index: 9999; > * { pointer-events: auto; } `,$n=e=>{let{reverseOrder:t,position:n="top-center",toastOptions:r,gutter:i,children:o,toasterId:s,containerStyle:a,containerClassName:l}=e,{toasts:c,handlers:u}=On(r,s);return K.createElement("div",{"data-rht-toaster":s||"",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...a},className:l,onMouseEnter:u.startPause,onMouseLeave:u.endPause},c.map(e=>{let r=e.position||n,s=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:on()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}})(r,u.calculateOffset(e,{reverseOrder:t,gutter:i,defaultPosition:n}));return K.createElement(Ln,{id:e.id,key:e.id,onHeightUpdate:u.updateHeight,className:e.visible?Fn:"",style:s},"custom"===e.type?nn(e.message,e):o?o(e):K.createElement(Qn,{toast:e,position:r}))}))},Bn=gn;var zn=function(){return zn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?or(gr,--fr):0,dr--,10===mr&&(dr=1,hr--),mr}function xr(){return mr=fr2||Ar(mr)>3?"":" "}function Pr(e,t){for(;--t&&xr()&&!(mr<48||mr>102||mr>57&&mr<65||mr>70&&mr<97););return Sr(e,wr()+(t<6&&32==kr()&&32==xr()))}function Dr(e){for(;xr();)switch(mr){case e:return fr;case 34:case 39:34!==e&&39!==e&&Dr(mr);break;case 40:41===e&&Dr(e);break;case 92:xr()}return fr}function Mr(e,t){for(;xr()&&e+mr!==57&&(e+mr!==84||47!==kr()););return"/*"+Sr(t,fr-1)+"*"+Jn(47===e?e:xr())}function Nr(e){for(;!Ar(kr());)xr();return Sr(e,fr)}function Rr(e,t){for(var n="",r=0;r6)switch(or(e,t+1)){case 109:if(45!==or(e,t+4))break;case 102:return rr(e,/(.+:)(.+)-([^]+)/,"$1"+Zn+"$2-$3$1"+Xn+(108==or(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ir(e,"stretch",0)?Qr(rr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return rr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,o,s,a){return jn+n+":"+r+a+(i?jn+n+"-span:"+(o?s:+s-+r)+a:"")+e});case 4949:if(121===or(e,t+6))return rr(e,":",":"+Zn)+e;break;case 6444:switch(or(e,45===or(e,14)?18:11)){case 120:return rr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Zn+(45===or(e,14)?"inline-":"")+"box$3$1"+Zn+"$2$3$1"+jn+"$2box$3")+e;case 100:return rr(e,":",":"+jn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return rr(e,"scroll-","scroll-snap-")+e}return e}function Lr(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Vn:return void(e.return=Qr(e.value,e.length,n));case Wn:return Rr([br(e,{value:rr(e.value,"@","@"+Zn)})],r);case Gn:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(nr(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":yr(br(e,{props:[rr(t,/:(read-\w+)/,":-moz-$1")]})),yr(br(e,{props:[t]})),er(e,{props:ur(n,r)});break;case"::placeholder":yr(br(e,{props:[rr(t,/:(plac\w+)/,":"+Zn+"input-$1")]})),yr(br(e,{props:[rr(t,/:(plac\w+)/,":-moz-$1")]})),yr(br(e,{props:[rr(t,/:(plac\w+)/,jn+"input-$1")]})),yr(br(e,{props:[t]})),er(e,{props:ur(n,r)})}return""})}}function Fr(e){return Er($r("",null,null,null,[""],e=Tr(e),0,[0],e))}function $r(e,t,n,r,i,o,s,a,l){for(var c=0,u=0,h=s,d=0,p=0,f=0,m=1,g=1,O=1,b=0,y="",v=i,x=o,k=r,w=y;g;)switch(f=b,b=xr()){case 40:if(108!=f&&58==or(w,h-1)){-1!=ir(w+=rr(Cr(b),"&","&\f"),"&\f",Kn(c?a[c-1]:0))&&(O=-1);break}case 34:case 39:case 91:w+=Cr(b);break;case 9:case 10:case 13:case 32:w+=_r(f);break;case 92:w+=Pr(wr()-1,7);continue;case 47:switch(kr()){case 42:case 47:cr(zr(Mr(xr(),wr()),t,n,l),l);break;default:w+="/"}break;case 123*m:a[c++]=ar(w)*O;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==O&&(w=rr(w,/\f/g,"")),p>0&&ar(w)-h&&cr(p>32?Hr(w+";",r,n,h-1,l):Hr(rr(w," ","")+";",r,n,h-2,l),l);break;case 59:w+=";";default:if(cr(k=Br(w,t,n,c,u,i,a,y,v=[],x=[],h,o),o),123===b)if(0===u)$r(w,t,k,k,v,o,h,a,x);else switch(99===d&&110===or(w,3)?100:d){case 100:case 108:case 109:case 115:$r(e,k,k,r&&cr(Br(e,k,k,0,0,i,a,y,i,v=[],h,x),x),i,x,h,a,r?v:x);break;default:$r(w,k,k,k,[""],x,0,a,x)}}c=u=p=0,m=O=1,y=w="",h=s;break;case 58:h=1+ar(w),p=f;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==vr())continue;switch(w+=Jn(b),b*m){case 38:O=u>0?1:(w+="\f",-1);break;case 44:a[c++]=(ar(w)-1)*O,O=1;break;case 64:45===kr()&&(w+=Cr(xr())),d=kr(),u=h=ar(y=w+=Nr(wr())),b++;break;case 45:45===f&&2==ar(w)&&(m=0)}}return o}function Br(e,t,n,r,i,o,s,a,l,c,u,h){for(var d=i-1,p=0===i?o:[""],f=lr(p),m=0,g=0,O=0;m0?p[b]+" "+y:rr(y,/&\f/g,p[b])))&&(l[O++]=v);return Or(e,t,n,0===i?Gn:a,l,c,u,h)}function zr(e,t,n,r){return Or(e,t,n,Yn,Jn(mr),sr(e,2,-2),0,r)}function Hr(e,t,n,r,i){return Or(e,t,n,Vn,sr(e,0,r),sr(e,r+1,-1),r,i)}var qr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ur=n(5683),jr="undefined"!=typeof Ur&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_ATTR||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_ATTR)||"data-styled",Xr="active",Zr="data-styled-version",Yr="6.1.19",Gr="/*!sc*/\n",Vr="undefined"!=typeof window&&"undefined"!=typeof document,Wr=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof Ur&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof Ur&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY)),Kr={},Jr=(new Set,Object.freeze([])),ei=Object.freeze({});function ti(e,t,n){return void 0===n&&(n=ei),e.theme!==n.theme&&e.theme||t||n.theme}var ni=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ri=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ii=/(^-|-$)/g;function oi(e){return e.replace(ri,"-").replace(ii,"")}var si=/(a)(d)/gi,ai=function(e){return String.fromCharCode(e+(e>25?39:97))};function li(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ai(t%52)+n;return(ai(t%52)+n).replace(si,"$1-$2")}var ci,ui=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},hi=function(e){return ui(5381,e)};function di(e){return li(hi(e)>>>0)}function pi(e){return e.displayName||e.name||"Component"}function fi(e){return"string"==typeof e&&!0}var mi="function"==typeof Symbol&&Symbol.for,gi=mi?Symbol.for("react.memo"):60115,Oi=mi?Symbol.for("react.forward_ref"):60112,bi={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},yi={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vi={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xi=((ci={})[Oi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ci[gi]=vi,ci);function ki(e){return("type"in(t=e)&&t.type.$$typeof)===gi?vi:"$$typeof"in e?xi[e.$$typeof]:bi;var t}var wi=Object.defineProperty,Si=Object.getOwnPropertyNames,Ai=Object.getOwnPropertySymbols,Ti=Object.getOwnPropertyDescriptor,Ei=Object.getPrototypeOf,Ci=Object.prototype;function _i(e,t,n){if("string"!=typeof t){if(Ci){var r=Ei(t);r&&r!==Ci&&_i(e,r,n)}var i=Si(t);Ai&&(i=i.concat(Ai(t)));for(var o=ki(e),s=ki(t),a=0;a0?" Args: ".concat(t.join(", ")):""))}var Fi=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw Li(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e0&&(l+="".concat(e,","))}),r+="".concat(s).concat(a,'{content:"').concat(l,'"}').concat(Gr)},o=0;o0?".".concat(t):e},u=l.slice();u.push(function(e){e.type===Gn&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(ro,n).replace(r,c))}),s.prefix&&u.push(Lr),u.push(Ir);var h=function(e,i,o,a){void 0===i&&(i=""),void 0===o&&(o=""),void 0===a&&(a="&"),t=a,n=i,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(io,""),c=Fr(o||i?"".concat(o," ").concat(i," { ").concat(l," }"):l);s.namespace&&(c=oo(c,s.namespace));var h,d=[];return Rr(c,function(e){var t=lr(e);return function(n,r,i,o){for(var s="",a=0;a="A"&&e<="Z"};function go(e){for(var t="",n=0;n>>0);if(!t.hasNameForId(this.componentId,o)){var s=n(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,s)}r=Mi(r,o),this.staticRulesId=o}else{for(var a=ui(this.baseHash,n.hash),l="",c=0;c>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(l,".".concat(d),void 0,this.componentId)),r=Mi(r,d)}}return r},e}(),wo=K.createContext(void 0);wo.Consumer;var So={};new Set;function Ao(e,t,n){var r=Di(e),i=e,o=!fi(e),s=t.attrs,a=void 0===s?Jr:s,l=t.componentId,c=void 0===l?function(e,t){var n="string"!=typeof e?"sc":oi(e);So[n]=(So[n]||0)+1;var r="".concat(n,"-").concat(di(Yr+n+So[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):l,u=t.displayName,h=void 0===u?function(e){return fi(e)?"styled.".concat(e):"Styled(".concat(pi(e),")")}(e):u,d=t.displayName&&t.componentId?"".concat(oi(t.displayName),"-").concat(t.componentId):t.componentId||c,p=r&&i.attrs?i.attrs.concat(a).filter(Boolean):a,f=t.shouldForwardProp;if(r&&i.shouldForwardProp){var m=i.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;f=function(e,t){return m(e,t)&&g(e,t)}}else f=m}var O=new ko(n,d,r?i.componentStyle:void 0);function b(e,t){return function(e,t,n){var r=e.attrs,i=e.componentStyle,o=e.defaultProps,s=e.foldedComponentIds,a=e.styledComponentId,l=e.target,c=K.useContext(wo),u=ho(),h=e.shouldForwardProp||u.shouldForwardProp,d=ti(t,c,o)||ei,p=function(e,t,n){for(var r,i=zn(zn({},t),{className:void 0,theme:n}),o=0;o2&&no.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=Gi(),r=Ni([n&&'nonce="'.concat(n,'"'),"".concat(jr,'="true"'),"".concat(Zr,'="').concat(Yr,'"')].filter(Boolean)," ");return"")},this.getStyleTags=function(){if(e.sealed)throw Li(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Li(2);var n=e.instance.toString();if(!n)return[];var r=((t={})[jr]="",t[Zr]=Yr,t.dangerouslySetInnerHTML={__html:n},t),i=Gi();return i&&(r.nonce=i),[K.createElement("style",zn({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new no({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Li(2);return K.createElement(po,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Li(3)}})(),"__sc-".concat(jr,"__");const No="undefined"===typeof window||"Deno"in window;function Ro(){}function Io(e){return"number"===typeof e&&e>=0&&e!==1/0}function Qo(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Lo(e,t,n){return Vo(e)?"function"===typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Fo(e,t,n){return Vo(e)?[{...t,queryKey:e},n]:[e||{},t]}function $o(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(Vo(s))if(r){if(t.queryHash!==zo(s,t.options))return!1}else if(!qo(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!==typeof a||t.isStale()===a)&&(("undefined"===typeof i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function Bo(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(Vo(o)){if(!t.options.mutationKey)return!1;if(n){if(Ho(t.options.mutationKey)!==Ho(o))return!1}else if(!qo(t.options.mutationKey,o))return!1}return("boolean"!==typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function zo(e,t){return((null==t?void 0:t.queryKeyHashFn)||Ho)(e)}function Ho(e){return JSON.stringify(e,(e,t)=>Yo(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function qo(e,t){return Uo(e,t)}function Uo(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some(n=>!Uo(e[n],t[n])))}function jo(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e===t)return e;if(n>500)return t;const r=Zo(e)&&Zo(t);if(r||Yo(e)&&Yo(t)){const i=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),s=o.length,a=r?[]:{};let l=0;for(let c=0;c{setTimeout(t,e)})}function Ko(e){Wo(0).then(e)}function Jo(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"===typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?jo(e,t):t}const es=console;const ts=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const i=r=>{t?e.push(r):Ko(()=>{n(r)})},o=()=>{const t=e;e=[],t.length&&Ko(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r{e(...n)})},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class ns{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const rs=new class extends ns{constructor(){super(),this.setup=e=>{if(!No&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"===typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(e=>{let{listener:t}=e;t()})}isFocused(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},is=["online","offline"];const os=new class extends ns{constructor(){super(),this.setup=e=>{if(!No&&window.addEventListener){const t=()=>e();return is.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{is.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"===typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(e=>{let{listener:t}=e;t()})}isOnline(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine}};function ss(e){return Math.min(1e3*2**e,3e4)}function as(e){return"online"!==(null!=e?e:"online")||os.isOnline()}class ls{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function cs(e){return e instanceof ls}function us(e){let t,n,r,i=!1,o=0,s=!1;const a=new Promise((e,t)=>{n=e,r=t}),l=()=>!rs.isFocused()||"always"!==e.networkMode&&!os.isOnline(),c=r=>{s||(s=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},u=n=>{s||(s=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},h=()=>new Promise(n=>{t=e=>{const t=s||!l();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,s||null==e.onContinue||e.onContinue()}),d=()=>{if(s)return;let t;try{t=e.fn()}catch(n){t=Promise.reject(n)}Promise.resolve(t).then(c).catch(t=>{var n,r;if(s)return;const a=null!=(n=e.retry)?n:3,c=null!=(r=e.retryDelay)?r:ss,p="function"===typeof c?c(o,t):c,f=!0===a||"number"===typeof a&&o{if(l())return h()}).then(()=>{i?u(t):d()})):u(t)})};return as(e.networkMode)?d():h().then(d),{promise:a,cancel:t=>{s||(u(new ls(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?a:Promise.resolve(),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}class hs{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Io(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:No?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class ds extends hs{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||es,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"===typeof e.initialData?e.initialData():e.initialData,n="undefined"!==typeof t,r=n?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=Jo(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(Ro).catch(Ro):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||!this.state.dataUpdatedAt||!Qo(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const o=function(){if("function"===typeof AbortController)return new AbortController}(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};a(s);const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var c;(a(l),null==(n=this.options.behavior)||n.onFetch(l),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=l.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(c=l.fetchOptions)?void 0:c.meta});const u=e=>{var t,n,r,i;(cs(e)&&e.silent||this.dispatch({type:"error",error:e}),cs(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=us({fn:l.fetchFn,abort:null==o?void 0:o.abort.bind(o),onSuccess:e=>{var t,n,r,i;"undefined"!==typeof e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):u(new Error(this.queryHash+" data is undefined"))},onError:u,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:as(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return cs(i)&&i.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),ts.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class ps extends ns{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const i=t.queryKey,o=null!=(r=t.queryHash)?r:zo(i,t);let s=this.get(o);return s||(s=new ds({cache:this,logger:e.getLogger(),queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){ts.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Fo(e,t);return"undefined"===typeof n.exact&&(n.exact=!0),this.queries.find(e=>$o(n,e))}findAll(e,t){const[n]=Fo(e,t);return Object.keys(n).length>0?this.queries.filter(e=>$o(n,e)):this.queries}notify(e){ts.batch(()=>{this.listeners.forEach(t=>{let{listener:n}=t;n(e)})})}onFocus(){ts.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){ts.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class fs extends hs{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||es,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=us({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,i,o,s,a,l,c;if(!t){var u,h,d,p;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(u=(h=this.mutationCache.config).onMutate)?void 0:u.call(h,this.state.variables,this));const e=await(null==(d=(p=this.options).onMutate)?void 0:d.call(p,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const f=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,f,this.state.variables,this.state.context,this)),await(null==(i=(o=this.options).onSuccess)?void 0:i.call(o,f,this.state.variables,this.state.context)),await(null==(s=(a=this.mutationCache.config).onSettled)?void 0:s.call(a,f,null,this.state.variables,this.state.context,this)),await(null==(l=(c=this.options).onSettled)?void 0:l.call(c,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(k){try{var f,m,g,O,b,y,v,x;throw await(null==(f=(m=this.mutationCache.config).onError)?void 0:f.call(m,k,this.state.variables,this.state.context,this)),await(null==(g=(O=this.options).onError)?void 0:g.call(O,k,this.state.variables,this.state.context)),await(null==(b=(y=this.mutationCache.config).onSettled)?void 0:b.call(y,void 0,k,this.state.variables,this.state.context,this)),await(null==(v=(x=this.options).onSettled)?void 0:v.call(x,void 0,k,this.state.variables,this.state.context)),k}finally{this.dispatch({type:"error",error:k})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!as(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),ts.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}class ms extends ns{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new fs({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){ts.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find(t=>Bo(e,t))}findAll(e){return this.mutations.filter(t=>Bo(e,t))}notify(e){ts.batch(()=>{this.listeners.forEach(t=>{let{listener:n}=t;n(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{const e=this.mutations.filter(e=>e.state.isPaused);return ts.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(Ro)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function gs(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,o,s;const a=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,l=null==(r=e.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,c=null==l?void 0:l.pageParam,u="forward"===(null==l?void 0:l.direction),h="backward"===(null==l?void 0:l.direction),d=(null==(o=e.state.data)?void 0:o.pages)||[],p=(null==(s=e.state.data)?void 0:s.pageParams)||[];let f=p,m=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),O=(e,t,n,r)=>(f=r?[t,...f]:[...f,t],r?[n,...e]:[...e,n]),b=(t,n,r,i)=>{if(m)return Promise.reject("Cancelled");if("undefined"===typeof r&&!n&&t.length)return Promise.resolve(t);const o={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var s;s=o,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{m=!0}),e.signal}});const a=g(o),l=Promise.resolve(a).then(e=>O(t,r,e,i));return l};let y;if(d.length)if(u){const t="undefined"!==typeof c,n=t?c:Os(e.options,d);y=b(d,t,n)}else if(h){const t="undefined"!==typeof c,n=t?c:bs(e.options,d);y=b(d,t,n,!0)}else{f=[];const t="undefined"===typeof e.options.getNextPageParam;y=!a||!d[0]||a(d[0],0,d)?b([],t,p[0]):Promise.resolve(O([],p[0],d[0]));for(let n=1;n{if(!a||!d[n]||a(d[n],n,d)){const i=t?p[n]:Os(e.options,r);return b(r,t,i)}return Promise.resolve(O(r,p[n],d[n]))})}else y=b([]);return y.then(e=>({pages:e,pageParams:f}))}}}}function Os(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function bs(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}const ys=K.createContext(void 0),vs=K.createContext(!1);function xs(e,t){return e||(t&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=ys),window.ReactQueryClientContext):ys)}const ks=e=>{let{client:t,children:n,context:r,contextSharing:i=!1}=e;K.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]);const o=xs(r,i);return K.createElement(vs.Provider,{value:!r&&i},K.createElement(o.Provider,{value:t},n))};var ws;n(1784);function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;tt.sql({dialect:t[e]}))}const Zs=[Us.t$.of({name:"C",extensions:["c","h","ino"],load:()=>n.e(2266).then(n.bind(n,2266)).then(e=>e.cpp())}),Us.t$.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load:()=>n.e(2266).then(n.bind(n,2266)).then(e=>e.cpp())}),Us.t$.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load:()=>Xs("Cassandra")}),Us.t$.of({name:"CSS",extensions:["css"],load:()=>Promise.resolve().then(n.bind(n,8244)).then(e=>e.css())}),Us.t$.of({name:"Go",extensions:["go"],load:()=>n.e(6769).then(n.bind(n,6769)).then(e=>e.go())}),Us.t$.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load:()=>Promise.resolve().then(n.bind(n,5221)).then(e=>e.html())}),Us.t$.of({name:"Java",extensions:["java"],load:()=>n.e(9e3).then(n.bind(n,6619)).then(e=>e.java())}),Us.t$.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load:()=>Promise.resolve().then(n.bind(n,4013)).then(e=>e.javascript())}),Us.t$.of({name:"Jinja",extensions:["j2","jinja","jinja2"],load:()=>n.e(7646).then(n.bind(n,7646)).then(e=>e.jinja())}),Us.t$.of({name:"JSON",alias:["json5"],extensions:["json","map"],load:()=>n.e(9407).then(n.bind(n,9407)).then(e=>e.json())}),Us.t$.of({name:"JSX",extensions:["jsx"],load:()=>Promise.resolve().then(n.bind(n,4013)).then(e=>e.javascript({jsx:!0}))}),Us.t$.of({name:"LESS",extensions:["less"],load:()=>n.e(8615).then(n.bind(n,8615)).then(e=>e.less())}),Us.t$.of({name:"Liquid",extensions:["liquid"],load:()=>n.e(4).then(n.bind(n,4)).then(e=>e.liquid())}),Us.t$.of({name:"MariaDB SQL",load:()=>Xs("MariaSQL")}),Us.t$.of({name:"Markdown",extensions:["md","markdown","mkd"],load:()=>Promise.resolve().then(n.bind(n,7469)).then(e=>e.markdown())}),Us.t$.of({name:"MS SQL",load:()=>Xs("MSSQL")}),Us.t$.of({name:"MySQL",load:()=>Xs("MySQL")}),Us.t$.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load:()=>n.e(3528).then(n.bind(n,3528)).then(e=>e.php())}),Us.t$.of({name:"PLSQL",extensions:["pls"],load:()=>Xs("PLSQL")}),Us.t$.of({name:"PostgreSQL",load:()=>Xs("PostgreSQL")}),Us.t$.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load:()=>n.e(9223).then(n.bind(n,9223)).then(e=>e.python())}),Us.t$.of({name:"Rust",extensions:["rs"],load:()=>n.e(4089).then(n.bind(n,4089)).then(e=>e.rust())}),Us.t$.of({name:"Sass",extensions:["sass"],load:()=>n.e(3450).then(n.bind(n,3450)).then(e=>e.sass({indented:!0}))}),Us.t$.of({name:"SCSS",extensions:["scss"],load:()=>n.e(3450).then(n.bind(n,3450)).then(e=>e.sass())}),Us.t$.of({name:"SQL",extensions:["sql"],load:()=>Xs("StandardSQL")}),Us.t$.of({name:"SQLite",load:()=>Xs("SQLite")}),Us.t$.of({name:"TSX",extensions:["tsx"],load:()=>Promise.resolve().then(n.bind(n,4013)).then(e=>e.javascript({jsx:!0,typescript:!0}))}),Us.t$.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load:()=>Promise.resolve().then(n.bind(n,4013)).then(e=>e.javascript({typescript:!0}))}),Us.t$.of({name:"WebAssembly",extensions:["wat","wast"],load:()=>n.e(7873).then(n.bind(n,7873)).then(e=>e.wast())}),Us.t$.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load:()=>n.e(1994).then(n.bind(n,1994)).then(e=>e.xml())}),Us.t$.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load:()=>n.e(6576).then(n.bind(n,6576)).then(e=>e.yaml())}),Us.t$.of({name:"APL",extensions:["dyalog","apl"],load:()=>n.e(6175).then(n.bind(n,8556)).then(e=>js(e.apl))}),Us.t$.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load:()=>n.e(9468).then(n.bind(n,9468)).then(e=>js(e.asciiArmor))}),Us.t$.of({name:"ASN.1",extensions:["asn","asn1"],load:()=>n.e(2007).then(n.bind(n,2007)).then(e=>js(e.asn1({})))}),Us.t$.of({name:"Asterisk",filename:/^extensions\.conf$/i,load:()=>n.e(866).then(n.bind(n,866)).then(e=>js(e.asterisk))}),Us.t$.of({name:"Brainfuck",extensions:["b","bf"],load:()=>n.e(6339).then(n.bind(n,6339)).then(e=>js(e.brainfuck))}),Us.t$.of({name:"Cobol",extensions:["cob","cpy"],load:()=>n.e(6547).then(n.bind(n,6547)).then(e=>js(e.cobol))}),Us.t$.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load:()=>n.e(2146).then(n.bind(n,2146)).then(e=>js(e.csharp))}),Us.t$.of({name:"Clojure",extensions:["clj","cljc","cljx"],load:()=>n.e(3368).then(n.bind(n,3368)).then(e=>js(e.clojure))}),Us.t$.of({name:"ClojureScript",extensions:["cljs"],load:()=>n.e(3368).then(n.bind(n,3368)).then(e=>js(e.clojure))}),Us.t$.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load:()=>n.e(2463).then(n.bind(n,2463)).then(e=>js(e.gss))}),Us.t$.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load:()=>n.e(935).then(n.bind(n,935)).then(e=>js(e.cmake))}),Us.t$.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load:()=>n.e(5473).then(n.bind(n,5473)).then(e=>js(e.coffeeScript))}),Us.t$.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load:()=>n.e(7607).then(n.bind(n,7607)).then(e=>js(e.commonLisp))}),Us.t$.of({name:"Cypher",extensions:["cyp","cypher"],load:()=>n.e(4269).then(n.bind(n,4269)).then(e=>js(e.cypher))}),Us.t$.of({name:"Cython",extensions:["pyx","pxd","pxi"],load:()=>n.e(4884).then(n.bind(n,4884)).then(e=>js(e.cython))}),Us.t$.of({name:"Crystal",extensions:["cr"],load:()=>n.e(8130).then(n.bind(n,8130)).then(e=>js(e.crystal))}),Us.t$.of({name:"D",extensions:["d"],load:()=>n.e(8448).then(n.bind(n,8448)).then(e=>js(e.d))}),Us.t$.of({name:"Dart",extensions:["dart"],load:()=>n.e(2146).then(n.bind(n,2146)).then(e=>js(e.dart))}),Us.t$.of({name:"diff",extensions:["diff","patch"],load:()=>n.e(4829).then(n.bind(n,4829)).then(e=>js(e.diff))}),Us.t$.of({name:"Dockerfile",filename:/^Dockerfile$/,load:()=>n.e(5912).then(n.bind(n,5912)).then(e=>js(e.dockerFile))}),Us.t$.of({name:"DTD",extensions:["dtd"],load:()=>n.e(6736).then(n.bind(n,6736)).then(e=>js(e.dtd))}),Us.t$.of({name:"Dylan",extensions:["dylan","dyl","intr"],load:()=>n.e(8898).then(n.bind(n,8898)).then(e=>js(e.dylan))}),Us.t$.of({name:"EBNF",load:()=>n.e(6013).then(n.bind(n,6013)).then(e=>js(e.ebnf))}),Us.t$.of({name:"ECL",extensions:["ecl"],load:()=>n.e(3212).then(n.bind(n,3212)).then(e=>js(e.ecl))}),Us.t$.of({name:"edn",extensions:["edn"],load:()=>n.e(3368).then(n.bind(n,3368)).then(e=>js(e.clojure))}),Us.t$.of({name:"Eiffel",extensions:["e"],load:()=>n.e(4989).then(n.bind(n,4989)).then(e=>js(e.eiffel))}),Us.t$.of({name:"Elm",extensions:["elm"],load:()=>n.e(5208).then(n.bind(n,5208)).then(e=>js(e.elm))}),Us.t$.of({name:"Erlang",extensions:["erl"],load:()=>n.e(7717).then(n.bind(n,7717)).then(e=>js(e.erlang))}),Us.t$.of({name:"Esper",load:()=>n.e(1188).then(n.bind(n,1188)).then(e=>js(e.esper))}),Us.t$.of({name:"Factor",extensions:["factor"],load:()=>n.e(9553).then(n.bind(n,9553)).then(e=>js(e.factor))}),Us.t$.of({name:"FCL",load:()=>n.e(6193).then(n.bind(n,6193)).then(e=>js(e.fcl))}),Us.t$.of({name:"Forth",extensions:["forth","fth","4th"],load:()=>n.e(1899).then(n.bind(n,1899)).then(e=>js(e.forth))}),Us.t$.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load:()=>n.e(3726).then(n.bind(n,3726)).then(e=>js(e.fortran))}),Us.t$.of({name:"F#",alias:["fsharp"],extensions:["fs"],load:()=>n.e(3492).then(n.bind(n,3492)).then(e=>js(e.fSharp))}),Us.t$.of({name:"Gas",extensions:["s"],load:()=>n.e(685).then(n.bind(n,685)).then(e=>js(e.gas))}),Us.t$.of({name:"Gherkin",extensions:["feature"],load:()=>n.e(2678).then(n.bind(n,2678)).then(e=>js(e.gherkin))}),Us.t$.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load:()=>n.e(4388).then(n.bind(n,4388)).then(e=>js(e.groovy))}),Us.t$.of({name:"Haskell",extensions:["hs"],load:()=>n.e(5692).then(n.bind(n,5692)).then(e=>js(e.haskell))}),Us.t$.of({name:"Haxe",extensions:["hx"],load:()=>n.e(9354).then(n.bind(n,9354)).then(e=>js(e.haxe))}),Us.t$.of({name:"HXML",extensions:["hxml"],load:()=>n.e(9354).then(n.bind(n,9354)).then(e=>js(e.hxml))}),Us.t$.of({name:"HTTP",load:()=>n.e(3790).then(n.bind(n,3790)).then(e=>js(e.http))}),Us.t$.of({name:"IDL",extensions:["pro"],load:()=>n.e(8219).then(n.bind(n,8219)).then(e=>js(e.idl))}),Us.t$.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load:()=>n.e(8437).then(n.bind(n,8437)).then(e=>js(e.jsonld))}),Us.t$.of({name:"Julia",extensions:["jl"],load:()=>n.e(7485).then(n.bind(n,7485)).then(e=>js(e.julia))}),Us.t$.of({name:"Kotlin",extensions:["kt","kts"],load:()=>n.e(2146).then(n.bind(n,2146)).then(e=>js(e.kotlin))}),Us.t$.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load:()=>n.e(8063).then(n.bind(n,8063)).then(e=>js(e.liveScript))}),Us.t$.of({name:"Lua",extensions:["lua"],load:()=>n.e(2682).then(n.bind(n,2682)).then(e=>js(e.lua))}),Us.t$.of({name:"mIRC",extensions:["mrc"],load:()=>n.e(5039).then(n.bind(n,5039)).then(e=>js(e.mirc))}),Us.t$.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load:()=>n.e(5516).then(n.bind(n,5516)).then(e=>js(e.mathematica))}),Us.t$.of({name:"Modelica",extensions:["mo"],load:()=>n.e(1086).then(n.bind(n,1086)).then(e=>js(e.modelica))}),Us.t$.of({name:"MUMPS",extensions:["mps"],load:()=>n.e(3640).then(n.bind(n,3640)).then(e=>js(e.mumps))}),Us.t$.of({name:"Mbox",extensions:["mbox"],load:()=>n.e(9986).then(n.bind(n,9986)).then(e=>js(e.mbox))}),Us.t$.of({name:"Nginx",filename:/nginx.*\.conf$/i,load:()=>n.e(5188).then(n.bind(n,5188)).then(e=>js(e.nginx))}),Us.t$.of({name:"NSIS",extensions:["nsh","nsi"],load:()=>n.e(1677).then(n.bind(n,1677)).then(e=>js(e.nsis))}),Us.t$.of({name:"NTriples",extensions:["nt","nq"],load:()=>n.e(8945).then(n.bind(n,8945)).then(e=>js(e.ntriples))}),Us.t$.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load:()=>n.e(2146).then(n.bind(n,2146)).then(e=>js(e.objectiveC))}),Us.t$.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load:()=>n.e(2146).then(n.bind(n,2146)).then(e=>js(e.objectiveCpp))}),Us.t$.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load:()=>n.e(3492).then(n.bind(n,3492)).then(e=>js(e.oCaml))}),Us.t$.of({name:"Octave",extensions:["m"],load:()=>n.e(9750).then(n.bind(n,9750)).then(e=>js(e.octave))}),Us.t$.of({name:"Oz",extensions:["oz"],load:()=>n.e(5395).then(n.bind(n,5395)).then(e=>js(e.oz))}),Us.t$.of({name:"Pascal",extensions:["p","pas"],load:()=>n.e(4374).then(n.bind(n,4374)).then(e=>js(e.pascal))}),Us.t$.of({name:"Perl",extensions:["pl","pm"],load:()=>n.e(1615).then(n.bind(n,1615)).then(e=>js(e.perl))}),Us.t$.of({name:"Pig",extensions:["pig"],load:()=>n.e(1140).then(n.bind(n,1140)).then(e=>js(e.pig))}),Us.t$.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load:()=>n.e(1839).then(n.bind(n,1839)).then(e=>js(e.powerShell))}),Us.t$.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load:()=>n.e(5323).then(n.bind(n,5323)).then(e=>js(e.properties))}),Us.t$.of({name:"ProtoBuf",extensions:["proto"],load:()=>n.e(2433).then(n.bind(n,2433)).then(e=>js(e.protobuf))}),Us.t$.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load:()=>n.e(3632).then(n.bind(n,3632)).then(e=>js(e.pug))}),Us.t$.of({name:"Puppet",extensions:["pp"],load:()=>n.e(9484).then(n.bind(n,9484)).then(e=>js(e.puppet))}),Us.t$.of({name:"Q",extensions:["q"],load:()=>n.e(3171).then(n.bind(n,3171)).then(e=>js(e.q))}),Us.t$.of({name:"R",alias:["rscript"],extensions:["r","R"],load:()=>n.e(6054).then(n.bind(n,6054)).then(e=>js(e.r))}),Us.t$.of({name:"RPM Changes",load:()=>n.e(1993).then(n.bind(n,1993)).then(e=>js(e.rpmChanges))}),Us.t$.of({name:"RPM Spec",extensions:["spec"],load:()=>n.e(1993).then(n.bind(n,1993)).then(e=>js(e.rpmSpec))}),Us.t$.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load:()=>n.e(4702).then(n.bind(n,4702)).then(e=>js(e.ruby))}),Us.t$.of({name:"SAS",extensions:["sas"],load:()=>n.e(4505).then(n.bind(n,4505)).then(e=>js(e.sas))}),Us.t$.of({name:"Scala",extensions:["scala"],load:()=>n.e(2146).then(n.bind(n,2146)).then(e=>js(e.scala))}),Us.t$.of({name:"Scheme",extensions:["scm","ss"],load:()=>n.e(2565).then(n.bind(n,2565)).then(e=>js(e.scheme))}),Us.t$.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load:()=>n.e(8226).then(n.bind(n,8226)).then(e=>js(e.shell))}),Us.t$.of({name:"Sieve",extensions:["siv","sieve"],load:()=>n.e(642).then(n.bind(n,642)).then(e=>js(e.sieve))}),Us.t$.of({name:"Smalltalk",extensions:["st"],load:()=>n.e(5381).then(n.bind(n,5381)).then(e=>js(e.smalltalk))}),Us.t$.of({name:"Solr",load:()=>n.e(9562).then(n.bind(n,9562)).then(e=>js(e.solr))}),Us.t$.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load:()=>n.e(3492).then(n.bind(n,3492)).then(e=>js(e.sml))}),Us.t$.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load:()=>n.e(5311).then(n.bind(n,5311)).then(e=>js(e.sparql))}),Us.t$.of({name:"Spreadsheet",alias:["excel","formula"],load:()=>n.e(3498).then(n.bind(n,3498)).then(e=>js(e.spreadsheet))}),Us.t$.of({name:"Squirrel",extensions:["nut"],load:()=>n.e(2146).then(n.bind(n,2146)).then(e=>js(e.squirrel))}),Us.t$.of({name:"Stylus",extensions:["styl"],load:()=>n.e(7164).then(n.bind(n,7164)).then(e=>js(e.stylus))}),Us.t$.of({name:"Swift",extensions:["swift"],load:()=>n.e(7743).then(n.bind(n,7743)).then(e=>js(e.swift))}),Us.t$.of({name:"sTeX",load:()=>n.e(3884).then(n.bind(n,3884)).then(e=>js(e.stex))}),Us.t$.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load:()=>n.e(3884).then(n.bind(n,3884)).then(e=>js(e.stex))}),Us.t$.of({name:"SystemVerilog",extensions:["v","sv","svh"],load:()=>n.e(7062).then(n.bind(n,7062)).then(e=>js(e.verilog))}),Us.t$.of({name:"Tcl",extensions:["tcl"],load:()=>n.e(6555).then(n.bind(n,6555)).then(e=>js(e.tcl))}),Us.t$.of({name:"Textile",extensions:["textile"],load:()=>n.e(8373).then(n.bind(n,8373)).then(e=>js(e.textile))}),Us.t$.of({name:"TiddlyWiki",load:()=>n.e(2290).then(n.bind(n,2290)).then(e=>js(e.tiddlyWiki))}),Us.t$.of({name:"Tiki wiki",load:()=>n.e(4517).then(n.bind(n,4517)).then(e=>js(e.tiki))}),Us.t$.of({name:"TOML",extensions:["toml"],load:()=>n.e(7534).then(n.bind(n,7534)).then(e=>js(e.toml))}),Us.t$.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load:()=>n.e(3743).then(n.bind(n,3743)).then(e=>js(e.troff))}),Us.t$.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load:()=>n.e(1947).then(n.bind(n,1947)).then(e=>js(e.ttcn))}),Us.t$.of({name:"TTCN_CFG",extensions:["cfg"],load:()=>n.e(588).then(n.bind(n,588)).then(e=>js(e.ttcnCfg))}),Us.t$.of({name:"Turtle",extensions:["ttl"],load:()=>n.e(7628).then(n.bind(n,7628)).then(e=>js(e.turtle))}),Us.t$.of({name:"Web IDL",extensions:["webidl"],load:()=>n.e(8047).then(n.bind(n,8047)).then(e=>js(e.webIDL))}),Us.t$.of({name:"VB.NET",extensions:["vb"],load:()=>n.e(9978).then(n.bind(n,9978)).then(e=>js(e.vb))}),Us.t$.of({name:"VBScript",extensions:["vbs"],load:()=>n.e(6881).then(n.bind(n,6881)).then(e=>js(e.vbScript))}),Us.t$.of({name:"Velocity",extensions:["vtl"],load:()=>n.e(9557).then(n.bind(n,9557)).then(e=>js(e.velocity))}),Us.t$.of({name:"Verilog",extensions:["v"],load:()=>n.e(7062).then(n.bind(n,7062)).then(e=>js(e.verilog))}),Us.t$.of({name:"VHDL",extensions:["vhd","vhdl"],load:()=>n.e(7472).then(n.bind(n,7472)).then(e=>js(e.vhdl))}),Us.t$.of({name:"XQuery",extensions:["xy","xquery","xq","xqm","xqy"],load:()=>n.e(854).then(n.bind(n,854)).then(e=>js(e.xQuery))}),Us.t$.of({name:"Yacas",extensions:["ys"],load:()=>n.e(3067).then(n.bind(n,3067)).then(e=>js(e.yacas))}),Us.t$.of({name:"Z80",extensions:["z80"],load:()=>n.e(8206).then(n.bind(n,8206)).then(e=>js(e.z80))}),Us.t$.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load:()=>n.e(5251).then(n.bind(n,5251)).then(e=>js(e.mscgen))}),Us.t$.of({name:"X\xf9",extensions:["xu"],load:()=>n.e(5251).then(n.bind(n,5251)).then(e=>js(e.xu))}),Us.t$.of({name:"MsGenny",extensions:["msgenny"],load:()=>n.e(5251).then(n.bind(n,5251)).then(e=>js(e.msgenny))}),Us.t$.of({name:"Vue",extensions:["vue"],load:()=>n.e(2066).then(n.bind(n,2066)).then(e=>e.vue())}),Us.t$.of({name:"Angular Template",load:()=>n.e(624).then(n.bind(n,624)).then(e=>e.angular())})];var Ys=n(4563);function Gs(e){var{type:t="scroll",events:n,props:r}=e;return Ys.Z9.fromClass(class{constructor(e){(this.dom=void 0,this.view=void 0,this.view=e,this.dom="dom"===t?e.dom:"content"===t?e.contentDOM:e.scrollDOM,this.dom&&r)&&Object.keys(r).forEach(e=>{this.dom[e]=r[e]});Object.keys(n||{}).forEach(e=>{n&&n[e]&&this.dom&&this.dom.addEventListener(e,n[e])})}destroy(){Object.keys(n||{}).forEach(e=>{n&&n[e]&&this.dom&&this.dom.removeEventListener(e,n[e])})}})}var Vs=n(2400),Ws=n(4450);function Ks(e,t){return n=>{let{state:r,dispatch:i}=n;if(r.readOnly)return!1;let o=e(t,r);return!!o&&(i(r.update(o)),!0)}}const Js=Ks(ia,0),ea=Ks(ra,0),ta=Ks((e,t)=>ra(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let o=t.length-1;o>=0&&t[o].to>r.from?t[o].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}(t)),0);function na(e,t){let n=e.languageDataAt("commentTokens",t,1);return n.length?n[0]:{}}function ra(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges,r=n.map(e=>na(t,e.from).block);if(!r.every(e=>e))return null;let i=n.map((e,n)=>function(e,t,n,r){let i,o,{open:s,close:a}=t,l=e.sliceDoc(n-50,n),c=e.sliceDoc(r,r+50),u=/\s*$/.exec(l)[0].length,h=/^\s*/.exec(c)[0].length,d=l.length-u;if(l.slice(d-s.length,d)==s&&c.slice(h,h+a.length)==a)return{open:{pos:n-u,margin:u&&1},close:{pos:r+h,margin:h&&1}};r-n<=100?i=o=e.sliceDoc(n,r):(i=e.sliceDoc(n,n+50),o=e.sliceDoc(r-50,r));let p=/^\s*/.exec(i)[0].length,f=/\s*$/.exec(o)[0].length,m=o.length-f-a.length;return i.slice(p,p+s.length)==s&&o.slice(m,m+a.length)==a?{open:{pos:n+p+s.length,margin:/\s/.test(i.charAt(p+s.length))?1:0},close:{pos:r-f-a.length,margin:/\s/.test(o.charAt(m-1))?1:0}}:null}(t,r[n],e.from,e.to));if(2!=e&&!i.every(e=>e))return{changes:t.changes(n.map((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}]))};if(1!=e&&i.some(e=>e)){let e=[];for(let t,n=0;n2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges,r=[],i=-1;e:for(let{from:o,to:s}of n){let e,n=r.length,a=1e9;for(let l=o;l<=s;){let n=t.doc.lineAt(l);if(void 0==e&&(e=na(t,n.from).line,!e))continue e;if(n.from>i&&(o==s||s>n.from)){i=n.from;let t=/^\s*/.exec(n.text)[0].length,o=t==n.length,s=n.text.slice(t,t+e.length)==e?t:-1;te.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:i,indent:o,empty:s,single:a}of r)!a&&s||e.push({from:t.from+o,insert:i+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,o=r+i.length;" "==t.text[o-t.from]&&o++,e.push({from:r,to:o})}return{changes:e}}return null}const oa=Vs.YH.define(),sa=Vs.YH.define(),aa=Vs.sj.define(),la=Vs.sj.define({combine:e=>(0,Vs.QR)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}),ca=Vs.sU.define({create:()=>Sa.empty,update(e,t){let n=t.state.facet(la),r=t.annotation(oa);if(r){let i=ma.fromTransaction(t,r.selection),o=r.side,s=0==o?e.undone:e.done;return s=i?ga(s,s.length,n.minDepth,i):ya(s,t.startState.selection),new Sa(0==o?r.rest:s,0==o?s:r.rest)}let i=t.annotation(sa);if("full"!=i&&"before"!=i||(e=e.isolate()),!1===t.annotation(Vs.ZX.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=ma.fromTransaction(t),s=t.annotation(Vs.ZX.time),a=t.annotation(Vs.ZX.userEvent);return o?e=e.addChanges(o,s,a,n,t):t.selection&&(e=e.addSelection(t.startState.selection,s,a,n.newGroupDelay)),"full"!=i&&"after"!=i||(e=e.isolate()),e},toJSON:e=>({done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}),fromJSON:e=>new Sa(e.done.map(ma.fromJSON),e.undone.map(ma.fromJSON))});function ua(e,t){return function(n){let{state:r,dispatch:i}=n;if(!t&&r.readOnly)return!1;let o=r.field(ca,!1);if(!o)return!1;let s=o.pop(e,r,t);return!!s&&(i(s),!0)}}const ha=ua(0,!1),da=ua(1,!1),pa=ua(0,!0),fa=ua(1,!0);class ma{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new ma(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(e){return new ma(e.changes&&Vs.VR.fromJSON(e.changes),[],e.mapped&&Vs.Gu.fromJSON(e.mapped),e.startSelection&&Vs.OF.fromJSON(e.startSelection),e.selectionsAfter.map(Vs.OF.fromJSON))}static fromTransaction(e,t){let n=ba;for(let r of e.startState.facet(aa)){let t=r(e);t.length&&(n=n.concat(t))}return!n.length&&e.changes.empty?null:new ma(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,ba)}static selection(e){return new ma(void 0,ba,void 0,void 0,e)}}function ga(e,t,n,r){let i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function Oa(e,t){return e.length?t.length?e.concat(t):e:t}const ba=[];function ya(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),ga(e,e.length-1,1e9,n.setSelAfter(r)))}return[ma.selection([t])]}function va(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function xa(e,t){if(!e.length)return e;let n=e.length,r=ba;for(;n;){let i=ka(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[ma.selection(r)]:ba}function ka(e,t,n){let r=Oa(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):ba,n);if(!e.changes)return ma.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(o):o;return new ma(i,Vs.Pe.mapEffects(e.effects,t),s,e.startSelection.map(o),r)}const wa=/^(input\.type|delete)($|\.)/;class Sa{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new Sa(this.done,this.undone):this}addChanges(e,t,n,r,i){let o=this.done,s=o[o.length-1];return o=s&&s.changes&&!s.changes.empty&&e.changes&&(!n||wa.test(n))&&(!s.selectionsAfter.length&&t-this.prevTimen.push(e,t)),t.iterChangedRanges((e,t,i,o)=>{for(let s=0;s=e&&i<=t&&(r=!0)}}),r}(s.changes,e.changes))||"input.type.compose"==n)?ga(o,o.length-1,r.minDepth,new ma(e.changes.compose(s.changes),Oa(Vs.Pe.mapEffects(e.effects,s.changes),s.effects),s.mapped,s.startSelection,ba)):ga(o,o.length,r.minDepth,e),new Sa(o,ba,t,n)}addSelection(e,t,n,r){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:ba;return i.length>0&&t-this.prevTimee.empty!=t.ranges[n].empty).length}(i[i.length-1],e)?this:new Sa(ya(this.done,e),this.undone,t,n)}addMapping(e){return new Sa(xa(this.done,e),xa(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1],o=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):t.selection);if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:oa.of({side:e,rest:va(r),selection:o}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let n=1==r.length?ba:r.slice(0,r.length-1);return i.mapped&&(n=xa(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:oa.of({side:e,rest:n,selection:o}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}Sa.empty=new Sa(ba,ba);const Aa=[{key:"Mod-z",run:ha,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:da,preventDefault:!0},{linux:"Ctrl-Shift-z",run:da,preventDefault:!0},{key:"Mod-u",run:pa,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:fa,preventDefault:!0}];function Ta(e,t){return Vs.OF.create(e.ranges.map(t),e.mainIndex)}function Ea(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function Ca(e,t){let{state:n,dispatch:r}=e,i=Ta(n.selection,t);return!i.eq(n.selection,!0)&&(r(Ea(n,i)),!0)}function _a(e,t){return Vs.OF.cursor(t?e.to:e.from)}function Pa(e,t){return Ca(e,n=>n.empty?e.moveByChar(n,t):_a(n,t))}function Da(e){return e.textDirectionAt(e.state.selection.main.head)==Ys.OP.LTR}const Ma=e=>Pa(e,!Da(e)),Na=e=>Pa(e,Da(e));function Ra(e,t){return Ca(e,n=>n.empty?e.moveByGroup(n,t):_a(n,t))}"undefined"!=typeof Intl&&Intl.Segmenter;function Ia(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function Qa(e,t,n){let r,i,o=(0,Us.mv)(e).resolveInner(t.head),s=n?Ws.uY.closedBy:Ws.uY.openedBy;for(let a=t.head;;){let t=n?o.childAfter(a):o.childBefore(a);if(!t)break;Ia(e,t,s)?o=t:a=n?t.to:t.from}return i=o.type.prop(s)&&(r=n?(0,Us.jU)(e,o.from,1):(0,Us.jU)(e,o.to,-1))&&r.matched?n?r.end.to:r.end.from:n?o.to:o.from,Vs.OF.cursor(i,n?-1:1)}function La(e,t){return Ca(e,n=>{if(!n.empty)return _a(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const Fa=e=>La(e,!1),$a=e=>La(e,!0);function Ba(e){let t,n=e.scrollDOM.clientHeightn.empty?e.moveVertically(n,t,r.height):_a(n,t));if(o.eq(i.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(i.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),a=s.top+r.marginTop,l=s.bottom-r.marginBottom;t&&t.top>a&&t.bottomza(e,!1),qa=e=>za(e,!0);function Ua(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=Vs.OF.cursor(r.from+n))}return i}function ja(e,t,n){let r=!1,i=Ta(e.selection,t=>{let i=(0,Us.jU)(e,t.head,-1)||(0,Us.jU)(e,t.head,1)||t.head>0&&(0,Us.jU)(e,t.head-1,1)||t.head{let n=t(e);return Vs.OF.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0,n.assoc)});return!n.eq(e.state.selection)&&(e.dispatch(Ea(e.state,n)),!0)}function Za(e,t){return Xa(e,n=>e.moveByChar(n,t))}const Ya=e=>Za(e,!Da(e)),Ga=e=>Za(e,Da(e));function Va(e,t){return Xa(e,n=>e.moveByGroup(n,t))}function Wa(e,t){return Xa(e,n=>e.moveVertically(n,t))}const Ka=e=>Wa(e,!1),Ja=e=>Wa(e,!0);function el(e,t){return Xa(e,n=>e.moveVertically(n,t,Ba(e).height))}const tl=e=>el(e,!1),nl=e=>el(e,!0),rl=e=>{let{state:t,dispatch:n}=e;return n(Ea(t,{anchor:0})),!0},il=e=>{let{state:t,dispatch:n}=e;return n(Ea(t,{anchor:t.doc.length})),!0},ol=e=>{let{state:t,dispatch:n}=e;return n(Ea(t,{anchor:t.selection.main.anchor,head:0})),!0},sl=e=>{let{state:t,dispatch:n}=e;return n(Ea(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0};function al(e,t){let{state:n}=e,r=n.selection,i=n.selection.ranges.slice();for(let o of n.selection.ranges){let r=n.doc.lineAt(o.head);if(t?r.to0)for(let n=o;;){let o=e.moveVertically(n,t);if(o.headr.to){i.some(e=>e.head==o.head)||i.push(o);break}if(o.head==n.head)break;n=o}}return i.length!=r.ranges.length&&(e.dispatch(Ea(n,Vs.OF.create(i,i.length-1))),!0)}function ll(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange(r=>{let{from:i,to:o}=r;if(i==o){let s=t(r);si&&(n="delete.forward",s=cl(e,s,!0)),i=Math.min(i,s),o=Math.max(o,s)}else i=cl(e,i,!1),o=cl(e,o,!0);return i==o?{range:r}:{changes:{from:i,to:o},range:Vs.OF.cursor(i,it(e)))r.between(t,t,(e,r)=>{et&&(t=n?r:e)});return t}const ul=(e,t,n)=>ll(e,r=>{let i,o,s=r.from,{state:a}=e,l=a.doc.lineAt(s);if(n&&!t&&s>l.from&&sul(e,!1,!0),dl=e=>ul(e,!0,!1),pl=(e,t)=>ll(e,n=>{let r=n.head,{state:i}=e,o=i.doc.lineAt(r),s=i.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let a=(0,Vs.zK)(o.text,r-o.from,t)+o.from,l=o.text.slice(Math.min(r,a)-o.from,Math.max(r,a)-o.from),c=s(l);if(null!=e&&c!=e)break;" "==l&&r==n.head||(e=c),r=a}return r}),fl=e=>pl(e,!1);function ml(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(r.empty||r.to!=o.from||(o=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function gl(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let o of ml(e)){if(n?o.to==e.doc.length:0==o.from)continue;let t=e.doc.lineAt(n?o.to+1:o.from-1),s=t.length+1;if(n){r.push({from:o.to,to:t.to},{from:o.from,insert:t.text+e.lineBreak});for(let t of o.ranges)i.push(Vs.OF.range(Math.min(e.doc.length,t.anchor+s),Math.min(e.doc.length,t.head+s)))}else{r.push({from:t.from,to:o.from},{from:o.to,insert:e.lineBreak+t.text});for(let e of o.ranges)i.push(Vs.OF.range(e.anchor-s,e.head-s))}}return!!r.length&&(t(e.update({changes:r,scrollIntoView:!0,selection:Vs.OF.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0)}function Ol(e,t,n){if(e.readOnly)return!1;let r=[];for(let o of ml(e))n?r.push({from:o.from,insert:e.doc.slice(o.from,o.to)+e.lineBreak}):r.push({from:o.to,insert:e.lineBreak+e.doc.slice(o.from,o.to)});let i=e.changes(r);return t(e.update({changes:i,selection:e.selection.map(i,n?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}const bl=vl(!1),yl=vl(!0);function vl(e){return t=>{let{state:n,dispatch:r}=t;if(n.readOnly)return!1;let i=n.changeByRange(t=>{let{from:r,to:i}=t,o=n.doc.lineAt(r),s=!e&&r==i&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,r=(0,Us.mv)(e).resolveInner(t),i=r.childBefore(t),o=r.childAfter(t);return i&&o&&i.to<=t&&o.from>=t&&(n=i.type.prop(Ws.uY.closedBy))&&n.indexOf(o.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(o.from).from&&!/\S/.test(e.sliceDoc(i.to,o.from))?{from:i.to,to:o.from}:null}(n,r);e&&(r=i=(i<=o.to?o:n.doc.lineAt(i)).to);let a=new Us.KB(n,{simulateBreak:r,simulateDoubleBreak:!!s}),l=(0,Us._v)(a,r);for(null==l&&(l=(0,Vs.y$)(/^\s*/.exec(n.doc.lineAt(r).text)[0],n.tabSize));io.from&&r{let i=[];for(let s=r.from;s<=r.to;){let o=e.doc.lineAt(s);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),s=o.to+1}let o=e.changes(i);return{changes:i,range:Vs.OF.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}})}const kl=e=>{let{state:t,dispatch:n}=e;return!t.readOnly&&(n(t.update(xl(t,(e,n)=>{n.push({from:e.from,insert:t.facet(Us.Xt)})}),{userEvent:"input.indent"})),!0)},wl=e=>{let{state:t,dispatch:n}=e;return!t.readOnly&&(n(t.update(xl(t,(e,n)=>{let r=/^\s*/.exec(e.text)[0];if(!r)return;let i=(0,Vs.y$)(r,t.tabSize),o=0,s=(0,Us.EI)(t,Math.max(0,i-(0,Us.tp)(t)));for(;oCa(e,t=>Vs.OF.cursor(e.lineBlockAt(t.head).from,1)),shift:e=>Xa(e,t=>Vs.OF.cursor(e.lineBlockAt(t.head).from))},{key:"Ctrl-e",run:e=>Ca(e,t=>Vs.OF.cursor(e.lineBlockAt(t.head).to,-1)),shift:e=>Xa(e,t=>Vs.OF.cursor(e.lineBlockAt(t.head).to))},{key:"Ctrl-d",run:dl},{key:"Ctrl-h",run:hl},{key:"Ctrl-k",run:e=>ll(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let r=t.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:Vs.EY.of(["",""])},range:Vs.OF.cursor(e.from)}));return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:e=>{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let r=t.changeByRange(e=>{if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};let n=e.from,r=t.doc.lineAt(n),i=n==r.from?n-1:(0,Vs.zK)(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:(0,Vs.zK)(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:o,insert:t.doc.slice(n,o).append(t.doc.slice(i,n))},range:Vs.OF.cursor(o)}});return!r.changes.empty&&(n(t.update(r,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:qa}],Al=[{key:"ArrowLeft",run:Ma,shift:Ya,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>Ra(e,!Da(e)),shift:e=>Va(e,!Da(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>Ca(e,t=>Ua(e,t,!Da(e))),shift:e=>Xa(e,t=>Ua(e,t,!Da(e))),preventDefault:!0},{key:"ArrowRight",run:Na,shift:Ga,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>Ra(e,Da(e)),shift:e=>Va(e,Da(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>Ca(e,t=>Ua(e,t,Da(e))),shift:e=>Xa(e,t=>Ua(e,t,Da(e))),preventDefault:!0},{key:"ArrowUp",run:Fa,shift:Ka,preventDefault:!0},{mac:"Cmd-ArrowUp",run:rl,shift:ol},{mac:"Ctrl-ArrowUp",run:Ha,shift:tl},{key:"ArrowDown",run:$a,shift:Ja,preventDefault:!0},{mac:"Cmd-ArrowDown",run:il,shift:sl},{mac:"Ctrl-ArrowDown",run:qa,shift:nl},{key:"PageUp",run:Ha,shift:tl},{key:"PageDown",run:qa,shift:nl},{key:"Home",run:e=>Ca(e,t=>Ua(e,t,!1)),shift:e=>Xa(e,t=>Ua(e,t,!1)),preventDefault:!0},{key:"Mod-Home",run:rl,shift:ol},{key:"End",run:e=>Ca(e,t=>Ua(e,t,!0)),shift:e=>Xa(e,t=>Ua(e,t,!0)),preventDefault:!0},{key:"Mod-End",run:il,shift:sl},{key:"Enter",run:bl,shift:bl},{key:"Mod-a",run:e=>{let{state:t,dispatch:n}=e;return n(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0}},{key:"Backspace",run:hl,shift:hl,preventDefault:!0},{key:"Delete",run:dl,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:fl,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>pl(e,!0),preventDefault:!0},{mac:"Mod-Backspace",run:e=>ll(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),preventDefault:!0},{mac:"Mod-Delete",run:e=>ll(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head({mac:e.key,run:e.run,shift:e.shift}))),Tl=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>Ca(e,t=>Qa(e.state,t,!Da(e))),shift:e=>Xa(e,t=>Qa(e.state,t,!Da(e)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>Ca(e,t=>Qa(e.state,t,Da(e))),shift:e=>Xa(e,t=>Qa(e.state,t,Da(e)))},{key:"Alt-ArrowUp",run:e=>{let{state:t,dispatch:n}=e;return gl(t,n,!1)}},{key:"Shift-Alt-ArrowUp",run:e=>{let{state:t,dispatch:n}=e;return Ol(t,n,!1)}},{key:"Alt-ArrowDown",run:e=>{let{state:t,dispatch:n}=e;return gl(t,n,!0)}},{key:"Shift-Alt-ArrowDown",run:e=>{let{state:t,dispatch:n}=e;return Ol(t,n,!0)}},{key:"Mod-Alt-ArrowUp",run:e=>al(e,!1)},{key:"Mod-Alt-ArrowDown",run:e=>al(e,!0)},{key:"Escape",run:e=>{let{state:t,dispatch:n}=e,r=t.selection,i=null;return r.ranges.length>1?i=Vs.OF.create([r.main]):r.main.empty||(i=Vs.OF.create([Vs.OF.cursor(r.main.head)])),!!i&&(n(Ea(t,i)),!0)}},{key:"Mod-Enter",run:yl},{key:"Alt-l",mac:"Ctrl-l",run:e=>{let{state:t,dispatch:n}=e,r=ml(t).map(e=>{let{from:n,to:r}=e;return Vs.OF.range(n,Math.min(r+1,t.doc.length))});return n(t.update({selection:Vs.OF.create(r),userEvent:"select"})),!0}},{key:"Mod-i",run:e=>{let{state:t,dispatch:n}=e,r=Ta(t.selection,e=>{let n=(0,Us.mv)(t),r=n.resolveStack(e.from,1);if(e.empty){let t=n.resolveStack(e.from,-1);t.node.from>=r.node.from&&t.node.to<=r.node.to&&(r=t)}for(let t=r;t;t=t.next){let{node:n}=t;if((n.from=e.to||n.to>e.to&&n.from<=e.from)&&t.next)return Vs.OF.range(n.to,n.from)}return e});return!r.eq(t.selection)&&(n(Ea(t,r)),!0)},preventDefault:!0},{key:"Mod-[",run:wl},{key:"Mod-]",run:kl},{key:"Mod-Alt-\\",run:e=>{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let r=Object.create(null),i=new Us.KB(t,{overrideIndentation:e=>{let t=r[e];return null==t?-1:t}}),o=xl(t,(e,n,o)=>{let s=(0,Us._v)(i,e.from);if(null==s)return;/\S/.test(e.text)||(s=0);let a=/^\s*/.exec(e.text)[0],l=(0,Us.EI)(t,s);(a!=l||o.from{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(ml(t).map(e=>{let{from:n,to:r}=e;return n>0?n--:r{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:e=>{let{state:t,dispatch:n}=e;return ja(t,n,!1)}},{key:"Mod-/",run:e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=na(e.state,n.from);return r.line?Js(e):!!r.block&&ta(e)}},{key:"Alt-A",run:ea},{key:"Ctrl-m",mac:"Shift-Alt-m",run:e=>(e.setTabFocusMode(),!0)}].concat(Al),El={key:"Tab",run:kl,shift:wl};var Cl=n(1525);const _l="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class Pl{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(_l(e)):_l,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return(0,Vs.vS)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=(0,Vs.MK)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,Vs.Fh)(e);let r=this.normalize(t);if(r.length)for(let i=0,o=n;;i++){let e=r.charCodeAt(i),s=this.match(e,o,this.bufferPos+this.bufferStart);if(i==r.length-1){if(s)return this.value=s,this;break}o==n&&i3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.length;if(this.text=e,this.to=i,this.curLine="",this.done=!1,this.value=Dl,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new Ql(e,t,n,r,i);this.re=new RegExp(t,Ml+((null===n||void 0===n?void 0:n.ignoreCase)?"i":"")),this.test=null===n||void 0===n?void 0:n.test,this.iter=e.iter();let o=e.lineAt(r);this.curLineStart=o.from,this.matchPos=Ll(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=Ll(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||r.to<=t){let r=new Il(t,e.sliceString(t,n));return Rl.set(e,r),r}if(r.from==t&&r.to==n)return r;let{text:i,from:o}=r;return o>t&&(i=e.sliceString(t,o)+i,o=t),r.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=Ll(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Il.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function Ll(e,t){if(t>=e.length)return t;let n,r=e.lineAt(t);for(;t=56320&&n<57344;)t++;return t}"undefined"!=typeof Symbol&&(Nl.prototype[Symbol.iterator]=Ql.prototype[Symbol.iterator]=function(){return this});const Fl={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},$l=Vs.sj.define({combine:e=>(0,Vs.QR)(e,Fl,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})});const Bl=Ys.NZ.mark({class:"cm-selectionMatch"}),zl=Ys.NZ.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Hl(e,t,n,r){return(0==n||e(t.sliceDoc(n-1,n))!=Vs.Je.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=Vs.Je.Word)}const ql=Ys.Z9.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet($l),{state:n}=e,r=n.selection;if(r.ranges.length>1)return Ys.NZ.none;let i,o=r.main,s=null;if(o.empty){if(!t.highlightWordAroundCursor)return Ys.NZ.none;let e=n.wordAt(o.head);if(!e)return Ys.NZ.none;s=n.charCategorizer(o.head),i=n.sliceDoc(e.from,e.to)}else{let e=o.to-o.from;if(e200)return Ys.NZ.none;if(t.wholeWords){if(i=n.sliceDoc(o.from,o.to),s=n.charCategorizer(o.head),!Hl(s,n,o.from,o.to)||!function(e,t,n,r){return e(t.sliceDoc(n,n+1))==Vs.Je.Word&&e(t.sliceDoc(r-1,r))==Vs.Je.Word}(s,n,o.from,o.to))return Ys.NZ.none}else if(i=n.sliceDoc(o.from,o.to),!i)return Ys.NZ.none}let a=[];for(let l of e.visibleRanges){let e=new Pl(n.doc,i,l.from,l.to);for(;!e.next().done;){let{from:r,to:i}=e.value;if((!s||Hl(s,n,r,i))&&(o.empty&&r<=o.from&&i>=o.to?a.push(zl.range(r,i)):(r>=o.to||i<=o.from)&&a.push(Bl.range(r,i)),a.length>t.maxMatches))return Ys.NZ.none}}return Ys.NZ.set(a)}},{decorations:e=>e.decorations}),Ul=Ys.Lz.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});const jl=Vs.sj.define({combine:e=>(0,Vs.QR)(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new vc(e),scrollToMatch:e=>Ys.Lz.scrollIntoView(e)})});class Xl{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,Ml),!0}catch(Pp){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new Jl(this):new Gl(this)}getCursor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=e.doc?e:Vs.$t.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?Vl(this,r,t,n):Yl(this,r,t,n)}}class Zl{constructor(e){this.spec=e}}function Yl(e,t,n,r){let i;var o,s;return e.wholeWord&&(o=t.doc,s=t.charCategorizer(t.selection.main.head),i=(e,t,n,r)=>((r>e||r+n.length{if(n&&!n(r,i,o,s))return!1;let a=r>=s&&i<=s+o.length?o.slice(r-s,i-s):t.doc.sliceString(r,i);return e(a,t,r,i)}}(e.test,t,i)),new Pl(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),i)}class Gl extends Zl{constructor(e){super(e)}nextMatch(e,t,n){let r=Yl(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);r=Yl(this.spec,e,0,n).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==n?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),i=Yl(this.spec,e,n,r),o=null;for(;!i.nextOverlapping().done;)o=i.value;if(o)return o;if(n==t)return null;r-=1e4}}prevMatch(e,t,n){let r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length)),!r||r.from==t&&r.to==n?null:r}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=Yl(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=Yl(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}function Vl(e,t,n,r){let i;var o;return e.wholeWord&&(o=t.charCategorizer(t.selection.main.head),i=(e,t,n)=>!n[0].length||(o(Wl(n.input,n.index))!=Vs.Je.Word||o(Kl(n.input,n.index))!=Vs.Je.Word)&&(o(Kl(n.input,n.index+n[0].length))!=Vs.Je.Word||o(Wl(n.input,n.index+n[0].length))!=Vs.Je.Word)),e.test&&(i=function(e,t,n){return(r,i,o)=>(!n||n(r,i,o))&&e(o[0],t,r,i)}(e.test,t,i)),new Nl(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:i},n,r)}function Wl(e,t){return e.slice((0,Vs.zK)(e,t,!1),t)}function Kl(e,t){return e.slice(t,(0,Vs.zK)(e,t))}class Jl extends Zl{nextMatch(e,t,n){let r=Vl(this.spec,e,n,e.doc.length).next();return r.done&&(r=Vl(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-1e4*r),o=Vl(this.spec,e,i,n),s=null;for(;!o.next().done;)s=o.value;if(s&&(i==t||s.from>i+10))return s;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if("&"==n)return e.match[0];if("$"==n)return"$";for(let r=n.length;r>0;r--){let t=+n.slice(0,r);if(t>0&&t=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=Vl(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}const ec=Vs.Pe.define(),tc=Vs.Pe.define(),nc=Vs.sU.define({create:e=>new rc(fc(e).create(),null),update(e,t){for(let n of t.effects)n.is(ec)?e=new rc(n.value.create(),e.panel):n.is(tc)&&(e=new rc(e.query,n.value?pc:null));return e},provide:e=>Ys.S7.from(e,e=>e.panel)});class rc{constructor(e,t){this.query=e,this.panel=t}}const ic=Ys.NZ.mark({class:"cm-searchMatch"}),oc=Ys.NZ.mark({class:"cm-searchMatch cm-searchMatch-selected"}),sc=Ys.Z9.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(nc))}update(e){let t=e.state.field(nc);(t!=e.startState.field(nc)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight(e){let{query:t,panel:n}=e;if(!n||!t.spec.valid)return Ys.NZ.none;let{view:r}=this,i=new Vs.vB;for(let o=0,s=r.visibleRanges,a=s.length;os[o+1].from-500;)n=s[++o].to;t.highlight(r.state,e,n,(e,t)=>{let n=r.state.selection.ranges.some(n=>n.from==e&&n.to==t);i.add(e,t,n?oc:ic)})}return i.finish()}},{decorations:e=>e.decorations});function ac(e){return t=>{let n=t.state.field(nc,!1);return n&&n.query.spec.valid?e(t,n):Oc(t)}}const lc=ac((e,t)=>{let{query:n}=t,{to:r}=e.state.selection.main,i=n.nextMatch(e.state,r,r);if(!i)return!1;let o=Vs.OF.single(i.from,i.to),s=e.state.facet(jl);return e.dispatch({selection:o,effects:[wc(e,i),s.scrollToMatch(o.main,e)],userEvent:"select.search"}),gc(e),!0}),cc=ac((e,t)=>{let{query:n}=t,{state:r}=e,{from:i}=r.selection.main,o=n.prevMatch(r,i,i);if(!o)return!1;let s=Vs.OF.single(o.from,o.to),a=e.state.facet(jl);return e.dispatch({selection:s,effects:[wc(e,o),a.scrollToMatch(s.main,e)],userEvent:"select.search"}),gc(e),!0}),uc=ac((e,t)=>{let{query:n}=t,r=n.matchAll(e.state,1e3);return!(!r||!r.length)&&(e.dispatch({selection:Vs.OF.create(r.map(e=>Vs.OF.range(e.from,e.to))),userEvent:"select.search.matches"}),!0)}),hc=ac((e,t)=>{let{query:n}=t,{state:r}=e,{from:i,to:o}=r.selection.main;if(r.readOnly)return!1;let s=n.nextMatch(r,i,i);if(!s)return!1;let a,l,c=s,u=[],h=[];c.from==i&&c.to==o&&(l=r.toText(n.getReplacement(c)),u.push({from:c.from,to:c.to,insert:l}),c=n.nextMatch(r,c.from,c.to),h.push(Ys.Lz.announce.of(r.phrase("replaced match on line $",r.doc.lineAt(i).number)+".")));let d=e.state.changes(u);return c&&(a=Vs.OF.single(c.from,c.to).map(d),h.push(wc(e,c)),h.push(r.facet(jl).scrollToMatch(a.main,e))),e.dispatch({changes:d,selection:a,effects:h,userEvent:"input.replace"}),!0}),dc=ac((e,t)=>{let{query:n}=t;if(e.state.readOnly)return!1;let r=n.matchAll(e.state,1e9).map(e=>{let{from:t,to:r}=e;return{from:t,to:r,insert:n.getReplacement(e)}});if(!r.length)return!1;let i=e.state.phrase("replaced $ matches",r.length)+".";return e.dispatch({changes:r,effects:Ys.Lz.announce.of(i),userEvent:"input.replace.all"}),!0});function pc(e){return e.state.facet(jl).createPanel(e)}function fc(e,t){var n,r,i,o,s;let a=e.selection.main,l=a.empty||a.to>a.from+100?"":e.sliceDoc(a.from,a.to);if(t&&!l)return t;let c=e.facet(jl);return new Xl({search:(null!==(n=null===t||void 0===t?void 0:t.literal)&&void 0!==n?n:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null===t||void 0===t?void 0:t.caseSensitive)&&void 0!==r?r:c.caseSensitive,literal:null!==(i=null===t||void 0===t?void 0:t.literal)&&void 0!==i?i:c.literal,regexp:null!==(o=null===t||void 0===t?void 0:t.regexp)&&void 0!==o?o:c.regexp,wholeWord:null!==(s=null===t||void 0===t?void 0:t.wholeWord)&&void 0!==s?s:c.wholeWord})}function mc(e){let t=(0,Ys.ld)(e,pc);return t&&t.dom.querySelector("[main-field]")}function gc(e){let t=mc(e);t&&t==e.root.activeElement&&t.select()}const Oc=e=>{let t=e.state.field(nc,!1);if(t&&t.panel){let n=mc(e);if(n&&n!=e.root.activeElement){let r=fc(e.state,t.query.spec);r.valid&&e.dispatch({effects:ec.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[tc.of(!0),t?ec.of(fc(e.state,t.query.spec)):Vs.Pe.appendConfig.of(Ac)]});return!0},bc=e=>{let t=e.state.field(nc,!1);if(!t||!t.panel)return!1;let n=(0,Ys.ld)(e,pc);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:tc.of(!1)}),!0},yc=[{key:"Mod-f",run:Oc,scope:"editor search-panel"},{key:"F3",run:lc,shift:cc,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:lc,shift:cc,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:bc,scope:"editor search-panel"},{key:"Mod-Shift-l",run:e=>{let{state:t,dispatch:n}=e,r=t.selection;if(r.ranges.length>1||r.main.empty)return!1;let{from:i,to:o}=r.main,s=[],a=0;for(let l=new Pl(t.doc,t.sliceDoc(i,o));!l.next().done;){if(s.length>1e3)return!1;l.value.from==i&&(a=s.length),s.push(Vs.OF.range(l.value.from,l.value.to))}return n(t.update({selection:Vs.OF.create(s,a),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:e=>{let{state:t}=e,n=String(t.doc.lineAt(e.state.selection.main.head).number),{close:r,result:i}=(0,Ys.ui)(e,{label:t.phrase("Go to line"),input:{type:"text",name:"line",value:n},focus:!0,submitLabel:t.phrase("go")});return i.then(n=>{let i=n&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.elements.line.value);if(!i)return void e.dispatch({effects:r});let o=t.doc.lineAt(t.selection.main.head),[,s,a,l,c]=i,u=l?+l.slice(1):0,h=a?+a:o.number;if(a&&c){let e=h/100;s&&(e=e*("-"==s?-1:1)+o.number/t.doc.lines),h=Math.round(t.doc.lines*e)}else a&&s&&(h=h*("-"==s?-1:1)+o.number);let d=t.doc.line(Math.max(1,Math.min(t.doc.lines,h))),p=Vs.OF.cursor(d.from+Math.max(0,Math.min(u,d.length)));e.dispatch({effects:[r,Ys.Lz.scrollIntoView(p.from,{y:"center"})],selection:p})}),!0}},{key:"Mod-d",run:e=>{let{state:t,dispatch:n}=e,{ranges:r}=t.selection;if(r.some(e=>e.from===e.to))return(e=>{let{state:t,dispatch:n}=e,{selection:r}=t,i=Vs.OF.create(r.ranges.map(e=>t.wordAt(e.head)||Vs.OF.cursor(e.head)),r.mainIndex);return!i.eq(r)&&(n(t.update({selection:i})),!0)})({state:t,dispatch:n});let i=t.sliceDoc(r[0].from,r[0].to);if(t.selection.ranges.some(e=>t.sliceDoc(e.from,e.to)!=i))return!1;let o=function(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let s=!1,a=new Pl(e.doc,t,r[r.length-1].to);;){if(a.next(),!a.done){if(s&&r.some(e=>e.from==a.value.from))continue;if(o){let t=e.wordAt(a.value.from);if(!t||t.from!=a.value.from||t.to!=a.value.to)continue}return a.value}if(s)return null;a=new Pl(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),s=!0}}(t,i);return!!o&&(n(t.update({selection:t.selection.addRange(Vs.OF.range(o.from,o.to),!1),effects:Ys.Lz.scrollIntoView(o.to)})),!0)},preventDefault:!0}];class vc{constructor(e){this.view=e;let t=this.query=e.state.field(nc).query.spec;function n(e,t,n){return(0,Cl.A)("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=(0,Cl.A)("input",{value:t.search,placeholder:xc(e,"Find"),"aria-label":xc(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=(0,Cl.A)("input",{value:t.replace,placeholder:xc(e,"Replace"),"aria-label":xc(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=(0,Cl.A)("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=(0,Cl.A)("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=(0,Cl.A)("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=(0,Cl.A)("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",()=>lc(e),[xc(e,"next")]),n("prev",()=>cc(e),[xc(e,"previous")]),n("select",()=>uc(e),[xc(e,"all")]),(0,Cl.A)("label",null,[this.caseField,xc(e,"match case")]),(0,Cl.A)("label",null,[this.reField,xc(e,"regexp")]),(0,Cl.A)("label",null,[this.wordField,xc(e,"by word")]),...e.state.readOnly?[]:[(0,Cl.A)("br"),this.replaceField,n("replace",()=>hc(e),[xc(e,"replace")]),n("replaceAll",()=>dc(e),[xc(e,"replace all")])],(0,Cl.A)("button",{name:"close",onclick:()=>bc(e),"aria-label":xc(e,"close"),type:"button"},["\xd7"])])}commit(){let e=new Xl({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:ec.of(e)}))}keydown(e){(0,Ys.TS)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?cc:lc)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),hc(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(ec)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(jl).top}}function xc(e,t){return e.state.phrase(t)}const kc=/[\s\.,:;?!]/;function wc(e,t){let{from:n,to:r}=t,i=e.state.doc.lineAt(n),o=e.state.doc.lineAt(r).to,s=Math.max(i.from,n-30),a=Math.min(o,r+30),l=e.state.sliceDoc(s,a);if(s!=i.from)for(let c=0;c<30;c++)if(!kc.test(l[c+1])&&kc.test(l[c])){l=l.slice(c);break}if(a!=o)for(let c=l.length-1;c>l.length-30;c--)if(!kc.test(l[c-1])&&kc.test(l[c])){l=l.slice(0,c);break}return Ys.Lz.announce.of(`${e.state.phrase("current match")}. ${l} ${e.state.phrase("on line")} ${i.number}.`)}const Sc=Ys.Lz.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),Ac=[nc,Vs.Nb.low(sc),Sc];var Tc=n(5045);class Ec{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class Cc{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let r=n.facet(zc).markerFilter;r&&(e=r(e,n));let i=e.slice().sort((e,t)=>e.from-t.from||e.to-t.to),o=new Vs.vB,s=[],a=0,l=n.doc.iter(),c=0,u=n.doc.length;for(let d=0;;){let e,t,n=d==i.length?null:i[d];if(!n&&!s.length)break;if(s.length)e=a,t=s.reduce((e,t)=>Math.min(e,t.to),n&&n.from>e?n.from:1e8);else{if(e=n.from,e>u)break;t=n.to,s.push(n),d++}for(;dn.from||n.to==e)){t=Math.min(n.from,t);break}s.push(n),d++,t=Math.min(n.to,t)}t=Math.min(t,u);let r=!1;if(s.some(n=>n.from==e&&(n.to==t||t==u))&&(r=e==t,!r&&t-e<10)){let n=e-(c+l.value.length);n>0&&(l.next(n),c=e);for(let i=e;;){if(i>=t){r=!0;break}if(!l.lineBreak&&c+l.value.length>i)break;i=c+l.value.length,c+=l.value.length,l.next()}}let h=Kc(s);if(r)o.add(e,e,Ys.NZ.widget({widget:new jc(h),diagnostics:s.slice()}));else{let n=s.reduce((e,t)=>t.markClass?e+" "+t.markClass:e,"");o.add(e,t,Ys.NZ.mark({class:"cm-lintRange cm-lintRange-"+h+n,diagnostics:s.slice(),inclusiveEnd:s.some(e=>e.to>t)}))}if(a=t,a==u)break;for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=null;return e.between(n,1e9,(e,n,i)=>{let{spec:o}=i;if(!(t&&o.diagnostics.indexOf(t)<0))if(r){if(o.diagnostics.indexOf(r.diagnostic)<0)return!1;r=new Ec(r.from,n,r.diagnostic)}else r=new Ec(e,n,t||o.diagnostics[0])}),r}function Pc(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(zc).hideOn(e,n,r);if(null!=i)return i;let o=e.startState.doc.lineAt(t.pos);return!(!e.effects.some(e=>e.is(Mc))&&!e.changes.touchesRange(o.from,Math.max(o.to,r)))}function Dc(e,t){return e.field(Ic,!1)?t:t.concat(Vs.Pe.appendConfig.of(Jc))}const Mc=Vs.Pe.define(),Nc=Vs.Pe.define(),Rc=Vs.Pe.define(),Ic=Vs.sU.define({create:()=>new Cc(Ys.NZ.none,null,null),update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,i=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=_c(n,e.selected.diagnostic,i)||_c(n,null,i)}!n.size&&i&&t.state.facet(zc).autoPanel&&(i=null),e=new Cc(n,i,r)}for(let n of t.effects)if(n.is(Mc)){let r=t.state.facet(zc).autoPanel?n.value.length?Zc.open:null:e.panel;e=Cc.init(n.value,r,t.state)}else n.is(Nc)?e=new Cc(e.diagnostics,n.value?Zc.open:null,e.selected):n.is(Rc)&&(e=new Cc(e.diagnostics,e.panel,n.value));return e},provide:e=>[Ys.S7.from(e,e=>e.panel),Ys.Lz.decorations.from(e,e=>e.diagnostics)]});const Qc=Ys.NZ.mark({class:"cm-lintRange cm-lintRange-active"});function Lc(e,t,n){let r,{diagnostics:i}=e.state.field(Ic),o=-1,s=-1;i.between(t-(n<0?1:0),t+(n>0?1:0),(e,i,a)=>{let{spec:l}=a;if(t>=e&&t<=i&&(e==i||(t>e||n>0)&&(t({dom:Fc(e,r)})}:null}function Fc(e,t){return(0,Cl.A)("ul",{class:"cm-tooltip-lint"},t.map(t=>Uc(e,t,!1)))}const $c=e=>{let t=e.state.field(Ic,!1);return!(!t||!t.panel)&&(e.dispatch({effects:Nc.of(!1)}),!0)},Bc=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(Ic,!1);t&&t.panel||e.dispatch({effects:Dc(e.state,[Nc.of(!0)])});let n=(0,Ys.ld)(e,Zc.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(Ic,!1);if(!t)return!1;let n=e.state.selection.main,r=_c(t.diagnostics,null,n.to+1);return!(!r&&(r=_c(t.diagnostics,null,0),!r||r.from==n.from&&r.to==n.to))&&(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)}}];const zc=Vs.sj.define({combine:e=>({sources:e.map(e=>e.source).filter(e=>null!=e),...(0,Vs.QR)(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:Hc,tooltipFilter:Hc,needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t,hideOn:(e,t)=>e?t?(n,r,i)=>e(n,r,i)||t(n,r,i):e:t,autoPanel:(e,t)=>e||t})})});function Hc(e,t){return e?t?(n,r)=>t(e(n,r),r):e:t}function qc(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;ee.toLowerCase()==r.toLowerCase())){t.push(r);continue e}}t.push("")}return t}function Uc(e,t,n){var r;let i=n?qc(t.actions):[];return(0,Cl.A)("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},(0,Cl.A)("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null===(r=t.actions)||void 0===r?void 0:r.map((n,r)=>{let o=!1,s=r=>{if(r.preventDefault(),o)return;o=!0;let i=_c(e.state.field(Ic).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:a}=n,l=i[r]?a.indexOf(i[r]):-1,c=l<0?a:[a.slice(0,l),(0,Cl.A)("u",a.slice(l,l+1)),a.slice(l+1)],u=n.markClass?" "+n.markClass:"";return(0,Cl.A)("button",{type:"button",class:"cm-diagnosticAction"+u,onclick:s,onmousedown:s,"aria-label":` Action: ${a}${l<0?"":` (access key "${i[r]})"`}.`},c)}),t.source&&(0,Cl.A)("div",{class:"cm-diagnosticSource"},t.source))}class jc extends Ys.xO{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return(0,Cl.A)("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class Xc{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=Uc(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Zc{constructor(e){this.view=e,this.items=[];this.list=(0,Cl.A)("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(!(t.ctrlKey||t.altKey||t.metaKey)){if(27==t.keyCode)$c(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],r=qc(n.actions);for(let i=0;i{for(let t=0;t$c(this.view)},"\xd7")),this.update()}get selectedIndex(){let e=this.view.state.field(Ic).selected;if(!e)return-1;for(let t=0;t{let{spec:l}=a;for(let c of l.diagnostics){if(o.has(c))continue;o.add(c);let e,s=-1;for(let t=n;tn&&(this.items.splice(n,s-n),r=!0)),t&&e.diagnostic==t.diagnostic?e.dom.hasAttribute("aria-selected")||(e.dom.setAttribute("aria-selected","true"),i=e):e.dom.hasAttribute("aria-selected")&&e.dom.removeAttribute("aria-selected"),n++}});n({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:e=>{let{sel:t,panel:n}=e,r=n.height/this.list.offsetHeight;t.topn.bottom&&(this.list.scrollTop+=(t.bottom-n.bottom)/r)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=_c(this.view.state.field(Ic).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:Rc.of(t)})}static open(e){return new Zc(e)}}function Yc(e){return`url('data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"'}>${encodeURIComponent(e)}')`}function Gc(e){return Yc(``,'width="6" height="3"')}const Vc=Ys.Lz.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Gc("#d11")},".cm-lintRange-warning":{backgroundImage:Gc("orange")},".cm-lintRange-info":{backgroundImage:Gc("#999")},".cm-lintRange-hint":{backgroundImage:Gc("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:"#86714a80"},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:"#2e343e"}}});function Wc(e){return"error"==e?4:"warning"==e?3:"info"==e?2:1}function Kc(e){let t="hint",n=1;for(let r of e){let e=Wc(r.severity);e>n&&(n=e,t=r.severity)}return t}Ys.wJ;const Jc=[Ic,Ys.Lz.decorations.compute([Ic],e=>{let{selected:t,panel:n}=e.field(Ic);return t&&n&&t.from!=t.to?Ys.NZ.set([Qc.range(t.from,t.to)]):Ys.NZ.none}),(0,Ys.Ux)(Lc,{hideOn:Pc}),Vc];var eu=function(e){void 0===e&&(e={});var{crosshairCursor:t=!1}=e,n=[];!1!==e.closeBracketsKeymap&&(n=n.concat(Tc.Bc)),!1!==e.defaultKeymap&&(n=n.concat(Tl)),!1!==e.searchKeymap&&(n=n.concat(yc)),!1!==e.historyKeymap&&(n=n.concat(Aa)),!1!==e.foldKeymap&&(n=n.concat(Us.f7)),!1!==e.completionKeymap&&(n=n.concat(Tc.OO)),!1!==e.lintKeymap&&(n=n.concat(Bc));var r=[];return!1!==e.lineNumbers&&r.push((0,Ys.$K)()),!1!==e.highlightActiveLineGutter&&r.push((0,Ys.Wu)()),!1!==e.highlightSpecialChars&&r.push((0,Ys.N$)()),!1!==e.history&&r.push(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[ca,la.of(e),Ys.Lz.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?ha:"historyRedo"==e.inputType?da:null;return!!n&&(e.preventDefault(),n(t))}})]}()),!1!==e.foldGutter&&r.push((0,Us.Lv)()),!1!==e.drawSelection&&r.push((0,Ys.VH)()),!1!==e.dropCursor&&r.push((0,Ys.A)()),!1!==e.allowMultipleSelections&&r.push(Vs.$t.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&r.push((0,Us.WD)()),!1!==e.syntaxHighlighting&&r.push((0,Us.y9)(Us.Zt,{fallback:!0})),!1!==e.bracketMatching&&r.push((0,Us.SG)()),!1!==e.closeBrackets&&r.push((0,Tc.wm)()),!1!==e.autocompletion&&r.push((0,Tc.yU)()),!1!==e.rectangularSelection&&r.push((0,Ys.D4)()),!1!==t&&r.push((0,Ys.HJ)()),!1!==e.highlightActiveLine&&r.push((0,Ys.dz)()),!1!==e.highlightSelectionMatches&&r.push(function(e){let t=[Ul,ql];return e&&t.push($l.of(e)),t}()),e.tabSize&&"number"===typeof e.tabSize&&r.push(Us.Xt.of(" ".repeat(e.tabSize))),r.concat([Ys.w4.of(n.flat())]).filter(Boolean)},tu=n(1345);const nu="#e5c07b",ru="#e06c75",iu="#56b6c2",ou="#ffffff",su="#abb2bf",au="#7d8799",lu="#61afef",cu="#98c379",uu="#d19a66",hu="#c678dd",du="#21252b",pu="#2c313a",fu="#282c34",mu="#353a42",gu="#3E4451",Ou="#528bff",bu=Ys.Lz.theme({"&":{color:su,backgroundColor:fu},".cm-content":{caretColor:Ou},".cm-cursor, .cm-dropCursor":{borderLeftColor:Ou},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:gu},".cm-panels":{backgroundColor:du,color:su},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:fu,color:au,border:"none"},".cm-activeLineGutter":{backgroundColor:pu},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:mu},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:mu,borderBottomColor:mu},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:pu,color:su}}},{dark:!0}),yu=Us.cr.define([{tag:tu._A.keyword,color:hu},{tag:[tu._A.name,tu._A.deleted,tu._A.character,tu._A.propertyName,tu._A.macroName],color:ru},{tag:[tu._A.function(tu._A.variableName),tu._A.labelName],color:lu},{tag:[tu._A.color,tu._A.constant(tu._A.name),tu._A.standard(tu._A.name)],color:uu},{tag:[tu._A.definition(tu._A.name),tu._A.separator],color:su},{tag:[tu._A.typeName,tu._A.className,tu._A.number,tu._A.changed,tu._A.annotation,tu._A.modifier,tu._A.self,tu._A.namespace],color:nu},{tag:[tu._A.operator,tu._A.operatorKeyword,tu._A.url,tu._A.escape,tu._A.regexp,tu._A.link,tu._A.special(tu._A.string)],color:iu},{tag:[tu._A.meta,tu._A.comment],color:au},{tag:tu._A.strong,fontWeight:"bold"},{tag:tu._A.emphasis,fontStyle:"italic"},{tag:tu._A.strikethrough,textDecoration:"line-through"},{tag:tu._A.link,color:au,textDecoration:"underline"},{tag:tu._A.heading,fontWeight:"bold",color:ru},{tag:[tu._A.atom,tu._A.bool,tu._A.special(tu._A.variableName)],color:uu},{tag:[tu._A.processingInstruction,tu._A.string,tu._A.inserted],color:cu},{tag:tu._A.invalid,color:ou}]),vu=[bu,(0,Us.y9)(yu)];var xu=Ys.Lz.theme({"&":{backgroundColor:"#fff"}},{dark:!1});class ku{constructor(e,t){this.timeLeftMS=void 0,this.timeoutMS=void 0,this.isCancelled=!1,this.isTimeExhausted=!1,this.callbacks=[],this.timeLeftMS=t,this.timeoutMS=t,this.callbacks.push(e)}tick(){if(!this.isCancelled&&!this.isTimeExhausted&&(this.timeLeftMS--,this.timeLeftMS<=0)){this.isTimeExhausted=!0;var e=this.callbacks.slice();this.callbacks.length=0,e.forEach(e=>{try{e()}catch(t){console.error("TimeoutLatch callback error:",t)}})}}cancel(){this.isCancelled=!0,this.callbacks.length=0}reset(){this.timeLeftMS=this.timeoutMS,this.isCancelled=!1,this.isTimeExhausted=!1}get isDone(){return this.isCancelled||this.isTimeExhausted}}class wu{constructor(){this.interval=null,this.latches=new Set}add(e){this.latches.add(e),this.start()}remove(e){this.latches.delete(e),0===this.latches.size&&this.stop()}start(){null===this.interval&&(this.interval=setInterval(()=>{this.latches.forEach(e=>{e.tick(),e.isDone&&this.remove(e)})},1))}stop(){null!==this.interval&&(clearInterval(this.interval),this.interval=null)}}var Su=null,Au=Vs.YH.define(),Tu=[];function Eu(e){var{value:t,selection:n,onChange:r,onStatistics:i,onCreateEditor:o,onUpdate:s,extensions:a=Tu,autoFocus:l,theme:c="light",height:u=null,minHeight:h=null,maxHeight:d=null,width:p=null,minWidth:f=null,maxWidth:m=null,placeholder:g="",editable:O=!0,readOnly:b=!1,indentWithTab:y=!0,basicSetup:v=!0,root:x,initialState:k}=e,[w,S]=(0,K.useState)(),[A,T]=(0,K.useState)(),[E,C]=(0,K.useState)(),_=(0,K.useState)(()=>({current:null}))[0],P=(0,K.useState)(()=>({current:null}))[0],D=Ys.Lz.theme({"&":{height:u,minHeight:h,maxHeight:d,width:p,minWidth:f,maxWidth:m},"& .cm-scroller":{height:"100% !important"}}),M=Ys.Lz.updateListener.of(e=>{if(e.docChanged&&"function"===typeof r&&!e.transactions.some(e=>e.annotation(Au))){_.current?_.current.reset():(_.current=new ku(()=>{if(P.current){var e=P.current;P.current=null,e()}_.current=null},200),("undefined"===typeof window?new wu:(Su||(Su=new wu),Su)).add(_.current));var t=e.state.doc.toString();r(t,e)}i&&i((e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map(t=>e.state.sliceDoc(t.from,t.to)),selectedText:e.state.selection.ranges.some(e=>!e.empty)}))(e))}),N=function(e){void 0===e&&(e={});var{indentWithTab:t=!0,editable:n=!0,readOnly:r=!1,theme:i="light",placeholder:o="",basicSetup:s=!0}=e,a=[];switch(t&&a.unshift(Ys.w4.of([El])),s&&("boolean"===typeof s?a.unshift(eu()):a.unshift(eu(s))),o&&a.unshift((0,Ys.qf)(o)),i){case"light":a.push(xu);break;case"dark":a.push(vu);break;case"none":break;default:a.push(i)}return!1===n&&a.push(Ys.Lz.editable.of(!1)),r&&a.push(Vs.$t.readOnly.of(!0)),[...a]}({theme:c,editable:O,readOnly:b,placeholder:g,indentWithTab:y,basicSetup:v}),R=[M,D,...N];return s&&"function"===typeof s&&R.push(Ys.Lz.updateListener.of(s)),R=R.concat(a),(0,K.useLayoutEffect)(()=>{if(w&&!E){var e={doc:t,selection:n,extensions:R},r=k?Vs.$t.fromJSON(k.json,e,k.fields):Vs.$t.create(e);if(C(r),!A){var i=new Ys.Lz({state:r,parent:w,root:x});T(i),o&&o(i,r)}}return()=>{A&&(C(void 0),T(void 0))}},[w,E]),(0,K.useEffect)(()=>{e.container&&S(e.container)},[e.container]),(0,K.useEffect)(()=>()=>{A&&(A.destroy(),T(void 0)),_.current&&(_.current.cancel(),_.current=null)},[A]),(0,K.useEffect)(()=>{l&&A&&A.focus()},[l,A]),(0,K.useEffect)(()=>{A&&A.dispatch({effects:Vs.Pe.reconfigure.of(R)})},[c,a,u,h,d,p,f,m,g,O,b,y,v,r,s]),(0,K.useEffect)(()=>{if(void 0!==t){var e=A?A.state.doc.toString():"";if(A&&t!==e){var n=()=>{A&&t!==A.state.doc.toString()&&A.dispatch({changes:{from:0,to:A.state.doc.toString().length,insert:t||""},annotations:[Au.of(!0)]})};_.current&&!_.current.isDone?P.current=n:n()}}},[t,A]),{state:E,setState:C,view:A,setView:T,container:w,setContainer:S}}var Cu=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],_u=(0,K.forwardRef)((e,t)=>{var{className:n,value:r="",selection:i,extensions:o=[],onChange:s,onStatistics:a,onCreateEditor:l,onUpdate:c,autoFocus:u,theme:h="light",height:d,minHeight:p,maxHeight:f,width:m,minWidth:g,maxWidth:O,basicSetup:b,placeholder:y,indentWithTab:v,editable:x,readOnly:k,root:w,initialState:S}=e,A=Mt(e,Cu),T=(0,K.useRef)(null),{state:E,view:C,container:_,setContainer:P}=Eu({root:w,value:r,autoFocus:u,theme:h,height:d,minHeight:p,maxHeight:f,width:m,minWidth:g,maxWidth:O,basicSetup:b,placeholder:y,indentWithTab:v,editable:x,readOnly:k,selection:i,onChange:s,onStatistics:a,onCreateEditor:l,onUpdate:c,extensions:o,initialState:S});(0,K.useImperativeHandle)(t,()=>({editor:T.current,state:E,view:C}),[T,_,E,C]);var D=(0,K.useCallback)(e=>{T.current=e,P(e)},[P]);if("string"!==typeof r)throw new Error("value must be typeof string but got "+typeof r);var M="string"===typeof h?"cm-theme-"+h:"cm-theme";return(0,Nt.jsx)("div",Dt({ref:D,className:M+(n?" "+n:"")},A))});_u.displayName="CodeMirror";const Pu=_u,Du=function(e){if(null===e||void 0===e)return Nu;if("function"===typeof e)return Mu(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n":"")+")"})}return u;function u(){let c,u,h,d=Iu;if((!t||o(i,a,l[l.length-1]||void 0))&&(d=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[Qu,e];return null===e||void 0===e?Iu:[e]}(n(i,l)),d[0]===Lu))return d;if("children"in i&&i.children){const t=i;if(t.children&&d[0]!==Fu)for(u=(r?t.children.length:-1)+s,h=l.concat(t);u>-1&&u0&&0===s.length)return}const a={};let l;for(l in t)Uu.call(t,l)&&(a[l]="children"===l?s:t[l]);return a}(e)}var Xu=n(7799),Zu=n(8078),Yu=n(2990);function Gu(){Gu=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=new RegExp(e,r);return t.set(o,i||t.get(e)),Vu(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce(function(t,n){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1]+)>/g,function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)}))}if("function"==typeof i){var s=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,s)),i.apply(this,e)})}return e[Symbol.replace].call(this,n,i)},Gu.apply(this,arguments)}function Vu(e,t){return Vu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vu(e,t)}function Wu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Ju=function(e){return function(t){return void 0===t&&(t={}),function(e,t){if(t&&!e.registered(t))throw new Error('The default language "'+t+'" is not registered with refractor.')}(e,t.defaultLanguage),function(e){Bu(e,"element",n)};function n(n,r,i){var o,s;if(i&&"pre"===i.tagName&&"code"===n.tagName){var a=(null==n||null==(o=n.data)?void 0:o.meta)||(null==n||null==(s=n.properties)?void 0:s.metastring)||"";n.properties.className?"boolean"==typeof n.properties.className?n.properties.className=[]:Array.isArray(n.properties.className)||(n.properties.className=[n.properties.className]):n.properties.className=[];var l,c,u=function(e){for(var t,n=Ku(e.properties.className);!(t=n()).done;){var r=t.value;if("language-"===r.slice(0,9))return r.slice(9).toLowerCase()}return null}(n);if(!u&&t.defaultLanguage&&n.properties.className.push("language-"+(u=t.defaultLanguage)),n.properties.className.push("code-highlight"),u)try{var h,d;d=null!=(h=u)&&h.includes("diff-")?u.split("-")[1]:u,l=e.highlight(zu(n),d),i.properties.className=(i.properties.className||[]).concat("language-"+d)}catch(v){if(!t.ignoreMissing||!/Unknown language/.test(v.message))throw v;l=n}else l=n;l.children=(c=1,function e(t){return t.reduce(function(t,n){if("text"===n.type){var r=n.value,i=(r.match(/\n/g)||"").length;if(0===i)n.position={start:{line:c,column:1},end:{line:c,column:1}},t.push(n);else for(var o,s=r.split("\n"),a=Ku(s.entries());!(o=a()).done;){var l=o.value,u=l[0],h=l[1];t.push({type:"text",value:u===s.length-1?h:h+"\n",position:{start:{line:c+u,column:1},end:{line:c+u,column:1}}})}return c+=i,t}if(Object.prototype.hasOwnProperty.call(n,"children")){var d=c;return n.children=e(n.children),t.push(n),n.position={start:{line:d,column:1},end:{line:c,column:1}},t}return t.push(n),t},[])})(l.children),l.position=l.children.length>0?{start:{line:l.children[0].position.start.line,column:0},end:{line:l.children[l.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var p,f=function(e){var t=/{([\d,-]+)}/,n=e.split(",").map(function(e){return e.trim()}).join();if(t.test(n)){var r=t.exec(n)[1],i=Xu(r);return function(e){return i.includes(e+1)}}return function(){return!1}}(a),m=function(e){var t=Gu(/showLineNumbers=(\d+)/i,{lines:1});if(t.test(e)){var n=t.exec(e);return Number(n.groups.lines)}return 1}(a),g=function(e){for(var t=new Array(e),n=0;n=i+1});o.children=s.children,!a.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||O.some(function(e){return a.toLowerCase().includes(e)})||(o.properties.line=[(i+m).toString()],o.properties.className.push("line-number")),f(i)&&o.properties.className.push("highlight-line"),("diff"===u||null!=(e=u)&&e.includes("diff-"))&&"-"===zu(o).substring(0,1)?o.properties.className.push("deleted"):("diff"===u||null!=(n=u)&&n.includes("diff-"))&&"+"===zu(o).substring(0,1)&&o.properties.className.push("inserted")},y=Ku(g.entries());!(p=y()).done;)b();g.length>0&&""===zu(g[g.length-1]).trim()&&g.pop(),n.children=g}}}},eh=(Ju(Zu.L),Ju(Yu.L)),th=n(5080),nh={},rh={};function ih(e,t){for(var n=t,r=0;r","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),Sh=xh(wh,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),Ah=xh(Sh,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid","playing","paused","autofill","modal","fullscreen","picture-in-picture","defined","loading","popover-open"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has","state"]}},pseudoElements:{definitions:{NoArgument:["marker"]}}}),Th={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{String:["part"]}}},"css-nesting-1":{latest:!0,nestingSelector:!0}},Eh=hh(hh({},Ah),{modules:Object.entries(Th).filter(function(e){return e[1].latest}).map(function(e){return e[0]})}),Ch={css1:kh,css2:wh,css3:Sh,"selectors-3":Sh,"selectors-4":Ah,latest:Eh,progressive:xh(Eh,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}})};var _h=function(){for(var e={pseudoClasses:{},pseudoElements:{}},t=0,n=["css1","css2","css3","selectors-3","selectors-4"];t="a"&&e<="z"||e>="A"&&e<="Z"||"-"===e||"_"===e||"\\"===e||e>="\xa0"}function Dh(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"-"===e||"_"===e||e>="\xa0"}function Mh(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var Nh={" ":!0,"\t":!0,"\n":!0,"\r":!0,"\f":!0},Rh={'"':!0,"'":!0},Ih={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0};var Qh="css-selector-parser parse error: ";var Lh=function(){return Lh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)for(var l=0,c=a.modules;l0)for(var h=0,d=s;h0,M=a.pseudoClasses?[!0,a.pseudoClasses.definitions?uh(a.pseudoClasses.definitions):ah,"accept"===a.pseudoClasses.unknown]:[!1,ah,!1],N=M[0],R=M[1],I=M[2],Q=a.pseudoElements?[!0,"singleColon"===a.pseudoElements.notation||"both"===a.pseudoElements.notation,!a.pseudoElements.notation||"doubleColon"===a.pseudoElements.notation||"both"===a.pseudoElements.notation,a.pseudoElements.definitions?uh(Array.isArray(a.pseudoElements.definitions)?{NoArgument:a.pseudoElements.definitions}:a.pseudoElements.definitions):ah,"accept"===a.pseudoElements.unknown]:[!1,!1,!1,ah,!1],L=Q[0],F=Q[1],$=Q[2],B=Q[3],z=Q[4],H="",q=H.length,U=0,j="",X=function(e){return j===e},Z=function(){return X("*")||Ph(j)},Y=function(e){U=e,j=H.charAt(U)},G=function(){U++,j=H.charAt(U)},V=function(){var e=j;return U++,j=H.charAt(U),e};function W(e){var t=Math.min(q-1,U),n=new Error("".concat(Qh).concat(e," Pos: ").concat(t,"."));throw n.position=t,n.name="ParserError",n}function K(e,t){if(!e)return W(t)}var J=function(){K(U=q},te=function(e){K(U=2&&W("Identifiers cannot start with two hyphens with strict mode on."),Ih[j]&&W("Identifiers cannot start with hyphens followed by digits.");U0&&(u+=". It is defined in: ".concat(c.join(", "))),W(u+".")}if(L&&(a||!a&&F&&Object.prototype.hasOwnProperty.call(B,l))){var h={type:"PseudoElement",name:l};(p=pe(l,"pseudo-element",d=null!==(t=B[l])&&void 0!==t?t:z&&lh))&&(K("Formula"!==p.type&&"FormulaOfSelector"!==p.type,"Pseudo-elements cannot have formula argument."),h.argument=p),r.items.push(h)}else{var d;if(K(N,"Pseudo-classes are not enabled."),d=null!==(n=R[l])&&void 0!==n?n:I&&lh);else{c=_h.pseudoClasses[l],u='Unknown pseudo-class: "'.concat(l,'"');c&&c.length>0&&(u+=". It is defined in: ".concat(c.join(", "))),W(u+".")}var p,f={type:"PseudoClass",name:l};(p=pe(l,"pseudo-class",d))&&(f.argument=p),r.items.push(f)}}if(0===r.items.length)return ee()?W("Expected rule but end of input reached."):W('Expected rule but "'.concat(j,'" found.'));if(le(),!ee()&&!X(",")&&!X(")")){var m=ne(A);le(),r.nestedRule=ge(),r.nestedRule.combinator=m}return r}return function(e){if("string"!==typeof e)throw new Error("".concat(Qh,"Expected string input."));return q=(H=e).length,U=0,j=H.charAt(0),ce()}}({syntax:"selectors-4"});function Bh(e){if("string"!==typeof e)throw new TypeError("Expected `string` as selector, not `"+e+"`");return $h(e)}const zh="\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc",Hh="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",qh=new RegExp("^[^"+Hh+"]*["+zh+"]"),Uh=new RegExp("^[^"+zh+"]*["+Hh+"]");function jh(e){const t=function(e){const t=String(e||"");return qh.test(t)?"rtl":Uh.test(t)?"ltr":"neutral"}(e);return"neutral"===t?void 0:t}function Xh(e){const t="element"===e.type&&"string"===typeof e.properties.dir?e.properties.dir.toLowerCase():void 0;return"auto"===t||"ltr"===t||"rtl"===t?t:void 0}var Zh=n(8461);function Yh(){}function Gh(){}var Vh=n(4390),Wh=n(4818);function Kh(e,t,n){const r=(0,Vh.I)(n,e.name);let i=function(e,t){if(null===e||void 0===e);else if("boolean"===typeof e){if(e)return t.attribute}else{if(!Array.isArray(e))return String(e);if(e.length>0)return(t.commaSeparated?Zh.A:Wh.A)(e)}}(t.properties[r.property],r);if(!e.value)return void 0!==i;e.value.type;let o=e.value.value;if("i"===e.caseSensitivityModifier&&(o=o.toLowerCase(),i&&(i=i.toLowerCase())),void 0!==i)switch(e.operator){case"=":return o===i;case"$=":return o===i.slice(-o.length);case"*=":return i.includes(o);case"^=":return o===i.slice(0,o.length);case"|=":return o===i||o===i.slice(0,o.length)&&"-"===i.charAt(o.length);case"~=":return o===i||Wh.q(i).includes(o)}return!1}const Jh=[];function ed(e,t){return(t.properties.className||Jh).includes(e.name)}function td(e,t){return t.properties.id===e.name}function nd(e,t){return e.name===t.tagName}function rd(e,t){return function(n,r){let i=od(n,"tag");const o=od(null===r||void 0===r?"*":r,"range"),s=[];let a=-1;for(;++ae<=n;if(0===t)return e=>e===n;if(1===t)return n<0?fd.trueFunc:e=>e>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?e=>e>=n&&e%r===i:e=>e<=n&&e%r===i}(function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];let t=0,n=0,r=o(),i=s();if(t=dd&&e.charCodeAt(t)<=pd;)r=10*r+(e.charCodeAt(t)-dd),t++;return t===n?null:r}function a(){for(;t1?o-1:0),a=1;a0},is:wd,lang:function(e,t,n,r,i){return e.argument,e.argument.type,""!==i.language&&void 0!==i.language&&id(i.language,(0,Zh.q)(e.argument.value)).length>0},"last-child":function(e,t,n,r,i){return vd(i,e),Boolean(i.elementCount&&i.elementIndex===i.elementCount-1)},"last-of-type":function(e,t,n,r,i){return vd(i,e),"number"===typeof i.typeIndex&&"number"===typeof i.typeCount&&i.typeIndex===i.typeCount-1},not:function(e,t,n,r,i){return!wd(e,t,n,r,i)},"nth-child":function(e,t,n,r,i){const o=kd(e);return vd(i,e),"number"===typeof i.elementIndex&&o(i.elementIndex)},"nth-last-child":function(e,t,n,r,i){const o=kd(e);return vd(i,e),Boolean("number"===typeof i.elementCount&&"number"===typeof i.elementIndex&&o(i.elementCount-i.elementIndex-1))},"nth-last-of-type":function(e,t,n,r,i){const o=kd(e);return vd(i,e),"number"===typeof i.typeCount&&"number"===typeof i.typeIndex&&o(i.typeCount-1-i.typeIndex)},"nth-of-type":function(e,t,n,r,i){const o=kd(e);return vd(i,e),"number"===typeof i.typeIndex&&o(i.typeIndex)},"only-child":function(e,t,n,r,i){return vd(i,e),1===i.elementCount},"only-of-type":function(e,t,n,r,i){return vd(i,e),1===i.typeCount},optional:function(e,t){return!Ad(e,t)},"read-only":function(e,t,n,r,i){return!Sd(e,t,n,r,i)},"read-write":Sd,required:Ad,root:function(e,t,n,r,i){return Boolean((!r||"root"===r.type)&&i.schema&&("html"===i.schema.space||"svg"===i.schema.space)&&("html"===t.tagName||"svg"===t.tagName))},scope:function(e,t,n,r,i){return i.scopeElements.includes(t)}},invalid:function(){},unknown:function(e){throw new Error("Unknown pseudo-selector `"+e.name+"`")}});function vd(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function xd(e,t){return("button"===t.tagName||"input"===t.tagName||"select"===t.tagName||"textarea"===t.tagName||"optgroup"===t.tagName||"option"===t.tagName||"menuitem"===t.tagName||"fieldset"===t.tagName)&&ad(t,"disabled")}function kd(e){let t=e._cachedFn;if(!t){const n=e.argument;if("Formula"!==n.type)throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=bd(n.a+"n+"+n.b),e._cachedFn=t}return t}function wd(e,t,n,r,i){e.argument,e.argument.type;const o={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return _d(o,t),o.results[0]===t}function Sd(e,t,n,r,i){return"input"===t.tagName||"textarea"===t.tagName?!ad(t,"readOnly")&&!ad(t,"disabled"):Boolean(i.editableOrEditingHost)}function Ad(e,t){return("input"===t.tagName||"textarea"===t.tagName||"select"===t.tagName)&&ad(t,"required")}function Td(e,t){const n=e.children;let r=-1;for(;++r0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:Cd}function Md(e,t){if("element"===t.type){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function Nd(e,t,n,r,i,o){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const a=function(e,t){const n=e.schema,r=e.language,i=e.direction,o=e.editableOrEditingHost;let s;if("element"===t.type){const r=t.properties.xmlLang||t.properties.lang,i=t.properties.type||"text",o=Xh(t);null!==r&&void 0!==r&&(e.language=String(r)),n&&"html"===n.space?("true"===t.properties.contentEditable&&(e.editableOrEditingHost=!0),"svg"===t.tagName&&(e.schema=th.JW),"rtl"===o?s=o:"ltr"===o||"auto"!==o&&"html"===t.tagName||"auto"!==o&&"input"===t.tagName&&"tel"===i?s="ltr":"auto"!==o&&"bdi"!==t.tagName||("textarea"===t.tagName?s=jh(zu(t)):"input"!==t.tagName||"email"!==i&&"search"!==i&&"tel"!==i&&"text"!==i?Bu(t,function(e){return"text"===e.type?(s=jh(e.value),s?Lu:void 0):e===t||"element"!==e.type||"bdi"!==e.tagName&&"script"!==e.tagName&&"style"!==e.tagName&&"textare"!==e.tagName&&!Xh(e)?void 0:Fu}):s=t.properties.value?jh(String(t.properties.value)):"ltr"),s&&(e.direction=s)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return function(){e.schema=n,e.language=r,e.direction=i,e.editableOrEditingHost=o}}(e,n);if("element"===n.type){let a=e.rootQuery.rules;i&&i!==o&&(a=e.rootQuery.rules.filter(e=>void 0===e.combinator||">"===e.combinator&&i===o)),s=function(e,t,n,r,i){const o={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let s=-1;for(;++s"===t.combinator?"directChild":"descendant",t):(e.found=!0,e.results.includes(n)||e.results.push(n))}void 0===a.combinator?Pd(o,"descendant",a):"~"===a.combinator&&Pd(o,"generalSibling",a)}return o}(e,Dd(t,a),n,r,i)}return!("children"in n)||e.shallow||e.one&&e.found||function(e,t,n,r){const i=Dd(t.descendant,t.directChild);let o,s=-1;const a={count:0,types:new Map},l={count:0,types:new Map};for(;++s1&&void 0!==arguments[1]?arguments[1]:"";return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(t=>{"text"===t.type?e+=t.value:"element"===t.type&&t.children&&Array.isArray(t.children)&&(e+=Id(t.children))}),e},Qd=e=>{const{selector:t,rewrite:n}=e||{};return e=>{if(n&&"function"===typeof n){if(t&&"string"===typeof t){const r=function(e,t,n){const r=Rd(e,t,n);return _d(r,t||void 0),r.results}(t,e);return void(r&&r.length>0&&Bu(e,r,(e,t,r)=>{n(e,t,r)}))}Bu(e,(e,t,r)=>{n(e,t,r)})}}};const Ld=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,r=arguments.length>1?arguments[1]:void 0;for(;r/,"$2")||""))return;if(n){if(Ld(e,r,"pre",n))return;return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}}},Fd=e=>{let{value:t=""}=e;const n=function(){return((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((e,t)=>(e[t.slice(0,t.indexOf("="))]=t.slice(t.indexOf("=")+1),e),{})}(t.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(n).forEach(e=>{"true"===n[e]&&(n[e]=!0),"false"===n[e]&&(n[e]=!1),"string"!==typeof n[e]||/^0/.test(n[e])||isNaN(+n[e])||(n[e]=+n[e])}),n},$d=(e,t,n)=>"string"===n?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:"attr"===n?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Bd=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{properties:t="data",codeBlockParames:n=!0}=e;return e=>{!function(e,t,n,r){let i,o,s;"function"===typeof t&&"function"!==typeof n?(o=void 0,s=t,i=n):(o=t,s=n,i=r),$u(e,o,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)},i)}(e,"element",(e,r,i)=>{if(n&&"pre"===e.tagName&&e&&Array.isArray(e.children)&&i&&Array.isArray(i.children)&&i.children.length>1){const n=e.children[0];if(n&&"code"===n.tagName&&"number"===typeof r){const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;for(;t>-1;){if(t--,!e[t])return;if(e[t]&&e[t].value&&""!==e[t].value.replace(/(\n|\s)/g,"")||"text"!==e[t].type){if(!/^rehype:/.test(e[t].value)||"comment"!==e[t].type)return;return e[t]}}}(i.children,r);if(o){const r=Fd(o);Object.keys(r).length>0&&(e.properties={...e.properties,"data-type":"rehyp"},n.properties=$d(n.properties,r,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(e.tagName)&&i&&Array.isArray(i.children)&&"number"===typeof r){const o=Ld(i.children,r,"",n);if(o){const n=Fd(o);Object.keys(n).length>0&&(e.properties=$d(e.properties,n,t))}}})}},zd="object"===typeof self?self:globalThis,Hd=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case 0:case-1:return n(s,i);case 1:{const e=n([],i);for(const t of s)e.push(r(t));return e}case 2:{const e=n({},i);for(const[t,n]of s)e[r(t)]=r(n);return e}case 3:return n(new Date(s),i);case 4:{const{source:e,flags:t}=s;return n(new RegExp(e,t),i)}case 5:{const e=n(new Map,i);for(const[t,n]of s)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,i);for(const t of s)e.add(r(t));return e}case 7:{const{name:e,message:t}=s;return n(new zd[e](t),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:e}=new Uint8Array(s);return n(new DataView(e),s)}}return n(new zd[o](s),i)};return r})(new Map,e)(0),qd="",{toString:Ud}={},{keys:jd}=Object,Xd=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Ud.call(e).slice(8,-1);switch(n){case"Array":return[1,qd];case"Object":return[2,qd];case"Date":return[3,qd];case"RegExp":return[4,qd];case"Map":return[5,qd];case"Set":return[6,qd];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Zd=e=>{let[t,n]=e;return 0===t&&("function"===n||"symbol"===n)},Yd=function(e){let{json:t,lossy:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[];return((e,t,n,r)=>{const i=(e,t)=>{const i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[s,a]=Xd(r);switch(s){case 0:{let t=r;switch(a){case"bigint":s=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);t=null;break;case"undefined":return i([-1],r)}return i([s,t],r)}case 1:{if(a){let e=r;return"DataView"===a?e=new Uint8Array(r.buffer):"ArrayBuffer"===a&&(e=new Uint8Array(r)),i([a,[...e]],r)}const e=[],t=i([s,e],r);for(const n of r)e.push(o(n));return t}case 2:{if(a)switch(a){case"BigInt":return i([a,r.toString()],r);case"Boolean":case"Number":case"String":return i([a,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=i([s,n],r);for(const t of jd(r))!e&&Zd(Xd(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return i([s,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return i([s,{source:e,flags:t}],r)}case 5:{const t=[],n=i([s,t],r);for(const[i,s]of r)(e||!Zd(Xd(i))&&!Zd(Xd(s)))&&t.push([o(i),o(s)]);return n}case 6:{const t=[],n=i([s,t],r);for(const i of r)!e&&Zd(Xd(i))||t.push(o(i));return n}}const{message:l}=r;return i([s,{name:a,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},Gd="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Hd(Yd(e,t)):structuredClone(e):(e,t)=>Hd(Yd(e,t));var Vd=n(1529);function Wd(e,t){const n=e.indexOf("\r",t),r=e.indexOf("\n",t);return-1===r?n:-1===n||n+1===r?r:n1?n[e.line-2]:0)+e.column-1;if(r-1&&e<=t.length){let r=0;for(;;){let i=n[r];if(void 0===i){const e=Wd(t,n[r-1]);i=-1===e?t.length+1:e+1,n[r]=i}if(i>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}(t),i=r.toPoint(0),o=r.toPoint(t.length);n.position={start:i,end:o}}return n}case"#documentType":return n={type:"doctype"},rp(e,t,n),n;case"#text":{const r=t;return n={type:"text",value:r.value},rp(e,r,n),n}default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===Kd.svg?th.JW:th.qy;let r=-1;const i={};for(;++r=55296&&e<=57343}function wp(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function Sp(e){return e>=64976&&e<=65007||pp.has(e)}var Ap;!function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(Ap||(Ap={}));class Tp{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:r,offset:i}=this,o=r+t,s=i+t;return{code:e,startLine:n,endLine:n,startCol:o,endCol:o,startOffset:s,endOffset:s}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,mp.EOF;return this._err(Ap.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,mp.EOF;const n=this.html.charCodeAt(t);return n===mp.CARRIAGE_RETURN?mp.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,mp.EOF;let e=this.html.charCodeAt(this.pos);if(e===mp.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,mp.LINE_FEED;if(e===mp.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,kp(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===mp.LINE_FEED||e===mp.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){wp(e)?this._err(Ap.controlCharacterInInputStream):Sp(e)&&this._err(Ap.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}!function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"}(Ep||(Ep={}));const _p=new Uint16Array('\u1d41<\xd5\u0131\u028a\u049d\u057b\u05d0\u0675\u06de\u07a2\u07d6\u080f\u0a4a\u0a91\u0da1\u0e6d\u0f09\u0f26\u10ca\u1228\u12e1\u1415\u149d\u14c3\u14df\u1525\0\0\0\0\0\0\u156b\u16cd\u198d\u1c12\u1ddd\u1f7e\u2060\u21b0\u228d\u23c0\u23fb\u2442\u2824\u2912\u2d08\u2e48\u2fce\u3016\u32ba\u3639\u37ac\u38fe\u3a28\u3a71\u3ae0\u3b2e\u0800EMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig\u803b\xc6\u40c6P\u803b&\u4026cute\u803b\xc1\u40c1reve;\u4102\u0100iyx}rc\u803b\xc2\u40c2;\u4410r;\uc000\ud835\udd04rave\u803b\xc0\u40c0pha;\u4391acr;\u4100d;\u6a53\u0100gp\x9d\xa1on;\u4104f;\uc000\ud835\udd38plyFunction;\u6061ing\u803b\xc5\u40c5\u0100cs\xbe\xc3r;\uc000\ud835\udc9cign;\u6254ilde\u803b\xc3\u40c3ml\u803b\xc4\u40c4\u0400aceforsu\xe5\xfb\xfe\u0117\u011c\u0122\u0127\u012a\u0100cr\xea\xf2kslash;\u6216\u0176\xf6\xf8;\u6ae7ed;\u6306y;\u4411\u0180crt\u0105\u010b\u0114ause;\u6235noullis;\u612ca;\u4392r;\uc000\ud835\udd05pf;\uc000\ud835\udd39eve;\u42d8c\xf2\u0113mpeq;\u624e\u0700HOacdefhilorsu\u014d\u0151\u0156\u0180\u019e\u01a2\u01b5\u01b7\u01ba\u01dc\u0215\u0273\u0278\u027ecy;\u4427PY\u803b\xa9\u40a9\u0180cpy\u015d\u0162\u017aute;\u4106\u0100;i\u0167\u0168\u62d2talDifferentialD;\u6145leys;\u612d\u0200aeio\u0189\u018e\u0194\u0198ron;\u410cdil\u803b\xc7\u40c7rc;\u4108nint;\u6230ot;\u410a\u0100dn\u01a7\u01adilla;\u40b8terDot;\u40b7\xf2\u017fi;\u43a7rcle\u0200DMPT\u01c7\u01cb\u01d1\u01d6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01e2\u01f8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020foubleQuote;\u601duote;\u6019\u0200lnpu\u021e\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6a74\u0180git\u022f\u0236\u023aruent;\u6261nt;\u622fourIntegral;\u622e\u0100fr\u024c\u024e;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6a2fcr;\uc000\ud835\udc9ep\u0100;C\u0284\u0285\u62d3ap;\u624d\u0580DJSZacefios\u02a0\u02ac\u02b0\u02b4\u02b8\u02cb\u02d7\u02e1\u02e6\u0333\u048d\u0100;o\u0179\u02a5trahd;\u6911cy;\u4402cy;\u4405cy;\u440f\u0180grs\u02bf\u02c4\u02c7ger;\u6021r;\u61a1hv;\u6ae4\u0100ay\u02d0\u02d5ron;\u410e;\u4414l\u0100;t\u02dd\u02de\u6207a;\u4394r;\uc000\ud835\udd07\u0100af\u02eb\u0327\u0100cm\u02f0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031ccute;\u40b4o\u0174\u030b\u030d;\u42d9bleAcute;\u42ddrave;\u4060ilde;\u42dcond;\u62c4ferentialD;\u6146\u0470\u033d\0\0\0\u0342\u0354\0\u0405f;\uc000\ud835\udd3b\u0180;DE\u0348\u0349\u034d\u40a8ot;\u60dcqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03cf\u03e2\u03f8ontourIntegra\xec\u0239o\u0274\u0379\0\0\u037b\xbb\u0349nArrow;\u61d3\u0100eo\u0387\u03a4ft\u0180ART\u0390\u0396\u03a1rrow;\u61d0ightArrow;\u61d4e\xe5\u02cang\u0100LR\u03ab\u03c4eft\u0100AR\u03b3\u03b9rrow;\u67f8ightArrow;\u67faightArrow;\u67f9ight\u0100AT\u03d8\u03derrow;\u61d2ee;\u62a8p\u0241\u03e9\0\0\u03efrrow;\u61d1ownArrow;\u61d5erticalBar;\u6225n\u0300ABLRTa\u0412\u042a\u0430\u045e\u047f\u037crrow\u0180;BU\u041d\u041e\u0422\u6193ar;\u6913pArrow;\u61f5reve;\u4311eft\u02d2\u043a\0\u0446\0\u0450ightVector;\u6950eeVector;\u695eector\u0100;B\u0459\u045a\u61bdar;\u6956ight\u01d4\u0467\0\u0471eeVector;\u695fector\u0100;B\u047a\u047b\u61c1ar;\u6957ee\u0100;A\u0486\u0487\u62a4rrow;\u61a7\u0100ct\u0492\u0497r;\uc000\ud835\udc9frok;\u4110\u0800NTacdfglmopqstux\u04bd\u04c0\u04c4\u04cb\u04de\u04e2\u04e7\u04ee\u04f5\u0521\u052f\u0536\u0552\u055d\u0560\u0565G;\u414aH\u803b\xd0\u40d0cute\u803b\xc9\u40c9\u0180aiy\u04d2\u04d7\u04dcron;\u411arc\u803b\xca\u40ca;\u442dot;\u4116r;\uc000\ud835\udd08rave\u803b\xc8\u40c8ement;\u6208\u0100ap\u04fa\u04fecr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65fberySmallSquare;\u65ab\u0100gp\u0526\u052aon;\u4118f;\uc000\ud835\udd3csilon;\u4395u\u0100ai\u053c\u0549l\u0100;T\u0542\u0543\u6a75ilde;\u6242librium;\u61cc\u0100ci\u0557\u055ar;\u6130m;\u6a73a;\u4397ml\u803b\xcb\u40cb\u0100ip\u056a\u056fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058d\u05b2\u05ccy;\u4424r;\uc000\ud835\udd09lled\u0253\u0597\0\0\u05a3mallSquare;\u65fcerySmallSquare;\u65aa\u0370\u05ba\0\u05bf\0\0\u05c4f;\uc000\ud835\udd3dAll;\u6200riertrf;\u6131c\xf2\u05cb\u0600JTabcdfgorst\u05e8\u05ec\u05ef\u05fa\u0600\u0612\u0616\u061b\u061d\u0623\u066c\u0672cy;\u4403\u803b>\u403emma\u0100;d\u05f7\u05f8\u4393;\u43dcreve;\u411e\u0180eiy\u0607\u060c\u0610dil;\u4122rc;\u411c;\u4413ot;\u4120r;\uc000\ud835\udd0a;\u62d9pf;\uc000\ud835\udd3eeater\u0300EFGLST\u0635\u0644\u064e\u0656\u065b\u0666qual\u0100;L\u063e\u063f\u6265ess;\u62dbullEqual;\u6267reater;\u6aa2ess;\u6277lantEqual;\u6a7eilde;\u6273cr;\uc000\ud835\udca2;\u626b\u0400Aacfiosu\u0685\u068b\u0696\u069b\u069e\u06aa\u06be\u06caRDcy;\u442a\u0100ct\u0690\u0694ek;\u42c7;\u405eirc;\u4124r;\u610clbertSpace;\u610b\u01f0\u06af\0\u06b2f;\u610dizontalLine;\u6500\u0100ct\u06c3\u06c5\xf2\u06a9rok;\u4126mp\u0144\u06d0\u06d8ownHum\xf0\u012fqual;\u624f\u0700EJOacdfgmnostu\u06fa\u06fe\u0703\u0707\u070e\u071a\u071e\u0721\u0728\u0744\u0778\u078b\u078f\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803b\xcd\u40cd\u0100iy\u0713\u0718rc\u803b\xce\u40ce;\u4418ot;\u4130r;\u6111rave\u803b\xcc\u40cc\u0180;ap\u0720\u072f\u073f\u0100cg\u0734\u0737r;\u412ainaryI;\u6148lie\xf3\u03dd\u01f4\u0749\0\u0762\u0100;e\u074d\u074e\u622c\u0100gr\u0753\u0758ral;\u622bsection;\u62c2isible\u0100CT\u076c\u0772omma;\u6063imes;\u6062\u0180gpt\u077f\u0783\u0788on;\u412ef;\uc000\ud835\udd40a;\u4399cr;\u6110ilde;\u4128\u01eb\u079a\0\u079ecy;\u4406l\u803b\xcf\u40cf\u0280cfosu\u07ac\u07b7\u07bc\u07c2\u07d0\u0100iy\u07b1\u07b5rc;\u4134;\u4419r;\uc000\ud835\udd0dpf;\uc000\ud835\udd41\u01e3\u07c7\0\u07ccr;\uc000\ud835\udca5rcy;\u4408kcy;\u4404\u0380HJacfos\u07e4\u07e8\u07ec\u07f1\u07fd\u0802\u0808cy;\u4425cy;\u440cppa;\u439a\u0100ey\u07f6\u07fbdil;\u4136;\u441ar;\uc000\ud835\udd0epf;\uc000\ud835\udd42cr;\uc000\ud835\udca6\u0580JTaceflmost\u0825\u0829\u082c\u0850\u0863\u09b3\u09b8\u09c7\u09cd\u0a37\u0a47cy;\u4409\u803b<\u403c\u0280cmnpr\u0837\u083c\u0841\u0844\u084dute;\u4139bda;\u439bg;\u67ealacetrf;\u6112r;\u619e\u0180aey\u0857\u085c\u0861ron;\u413ddil;\u413b;\u441b\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087e\u08a9\u08b1\u08e0\u08e6\u08fc\u092f\u095b\u0390\u096a\u0100nr\u0883\u088fgleBracket;\u67e8row\u0180;BR\u0899\u089a\u089e\u6190ar;\u61e4ightArrow;\u61c6eiling;\u6308o\u01f5\u08b7\0\u08c3bleBracket;\u67e6n\u01d4\u08c8\0\u08d2eeVector;\u6961ector\u0100;B\u08db\u08dc\u61c3ar;\u6959loor;\u630aight\u0100AV\u08ef\u08f5rrow;\u6194ector;\u694e\u0100er\u0901\u0917e\u0180;AV\u0909\u090a\u0910\u62a3rrow;\u61a4ector;\u695aiangle\u0180;BE\u0924\u0925\u0929\u62b2ar;\u69cfqual;\u62b4p\u0180DTV\u0937\u0942\u094cownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61bfar;\u6958ector\u0100;B\u0965\u0966\u61bcar;\u6952ight\xe1\u039cs\u0300EFGLST\u097e\u098b\u0995\u099d\u09a2\u09adqualGreater;\u62daullEqual;\u6266reater;\u6276ess;\u6aa1lantEqual;\u6a7dilde;\u6272r;\uc000\ud835\udd0f\u0100;e\u09bd\u09be\u62d8ftarrow;\u61daidot;\u413f\u0180npw\u09d4\u0a16\u0a1bg\u0200LRlr\u09de\u09f7\u0a02\u0a10eft\u0100AR\u09e6\u09ecrrow;\u67f5ightArrow;\u67f7ightArrow;\u67f6eft\u0100ar\u03b3\u0a0aight\xe1\u03bfight\xe1\u03caf;\uc000\ud835\udd43er\u0100LR\u0a22\u0a2ceftArrow;\u6199ightArrow;\u6198\u0180cht\u0a3e\u0a40\u0a42\xf2\u084c;\u61b0rok;\u4141;\u626a\u0400acefiosu\u0a5a\u0a5d\u0a60\u0a77\u0a7c\u0a85\u0a8b\u0a8ep;\u6905y;\u441c\u0100dl\u0a65\u0a6fiumSpace;\u605flintrf;\u6133r;\uc000\ud835\udd10nusPlus;\u6213pf;\uc000\ud835\udd44c\xf2\u0a76;\u439c\u0480Jacefostu\u0aa3\u0aa7\u0aad\u0ac0\u0b14\u0b19\u0d91\u0d97\u0d9ecy;\u440acute;\u4143\u0180aey\u0ab4\u0ab9\u0aberon;\u4147dil;\u4145;\u441d\u0180gsw\u0ac7\u0af0\u0b0eative\u0180MTV\u0ad3\u0adf\u0ae8ediumSpace;\u600bhi\u0100cn\u0ae6\u0ad8\xeb\u0ad9eryThi\xee\u0ad9ted\u0100GL\u0af8\u0b06reaterGreate\xf2\u0673essLes\xf3\u0a48Line;\u400ar;\uc000\ud835\udd11\u0200Bnpt\u0b22\u0b28\u0b37\u0b3areak;\u6060BreakingSpace;\u40a0f;\u6115\u0680;CDEGHLNPRSTV\u0b55\u0b56\u0b6a\u0b7c\u0ba1\u0beb\u0c04\u0c5e\u0c84\u0ca6\u0cd8\u0d61\u0d85\u6aec\u0100ou\u0b5b\u0b64ngruent;\u6262pCap;\u626doubleVerticalBar;\u6226\u0180lqx\u0b83\u0b8a\u0b9bement;\u6209ual\u0100;T\u0b92\u0b93\u6260ilde;\uc000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0bb6\u0bb7\u0bbd\u0bc9\u0bd3\u0bd8\u0be5\u626fqual;\u6271ullEqual;\uc000\u2267\u0338reater;\uc000\u226b\u0338ess;\u6279lantEqual;\uc000\u2a7e\u0338ilde;\u6275ump\u0144\u0bf2\u0bfdownHump;\uc000\u224e\u0338qual;\uc000\u224f\u0338e\u0100fs\u0c0a\u0c27tTriangle\u0180;BE\u0c1a\u0c1b\u0c21\u62eaar;\uc000\u29cf\u0338qual;\u62ecs\u0300;EGLST\u0c35\u0c36\u0c3c\u0c44\u0c4b\u0c58\u626equal;\u6270reater;\u6278ess;\uc000\u226a\u0338lantEqual;\uc000\u2a7d\u0338ilde;\u6274ested\u0100GL\u0c68\u0c79reaterGreater;\uc000\u2aa2\u0338essLess;\uc000\u2aa1\u0338recedes\u0180;ES\u0c92\u0c93\u0c9b\u6280qual;\uc000\u2aaf\u0338lantEqual;\u62e0\u0100ei\u0cab\u0cb9verseElement;\u620cghtTriangle\u0180;BE\u0ccb\u0ccc\u0cd2\u62ebar;\uc000\u29d0\u0338qual;\u62ed\u0100qu\u0cdd\u0d0cuareSu\u0100bp\u0ce8\u0cf9set\u0100;E\u0cf0\u0cf3\uc000\u228f\u0338qual;\u62e2erset\u0100;E\u0d03\u0d06\uc000\u2290\u0338qual;\u62e3\u0180bcp\u0d13\u0d24\u0d4eset\u0100;E\u0d1b\u0d1e\uc000\u2282\u20d2qual;\u6288ceeds\u0200;EST\u0d32\u0d33\u0d3b\u0d46\u6281qual;\uc000\u2ab0\u0338lantEqual;\u62e1ilde;\uc000\u227f\u0338erset\u0100;E\u0d58\u0d5b\uc000\u2283\u20d2qual;\u6289ilde\u0200;EFT\u0d6e\u0d6f\u0d75\u0d7f\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uc000\ud835\udca9ilde\u803b\xd1\u40d1;\u439d\u0700Eacdfgmoprstuv\u0dbd\u0dc2\u0dc9\u0dd5\u0ddb\u0de0\u0de7\u0dfc\u0e02\u0e20\u0e22\u0e32\u0e3f\u0e44lig;\u4152cute\u803b\xd3\u40d3\u0100iy\u0dce\u0dd3rc\u803b\xd4\u40d4;\u441eblac;\u4150r;\uc000\ud835\udd12rave\u803b\xd2\u40d2\u0180aei\u0dee\u0df2\u0df6cr;\u414cga;\u43a9cron;\u439fpf;\uc000\ud835\udd46enCurly\u0100DQ\u0e0e\u0e1aoubleQuote;\u601cuote;\u6018;\u6a54\u0100cl\u0e27\u0e2cr;\uc000\ud835\udcaaash\u803b\xd8\u40d8i\u016c\u0e37\u0e3cde\u803b\xd5\u40d5es;\u6a37ml\u803b\xd6\u40d6er\u0100BP\u0e4b\u0e60\u0100ar\u0e50\u0e53r;\u603eac\u0100ek\u0e5a\u0e5c;\u63deet;\u63b4arenthesis;\u63dc\u0480acfhilors\u0e7f\u0e87\u0e8a\u0e8f\u0e92\u0e94\u0e9d\u0eb0\u0efcrtialD;\u6202y;\u441fr;\uc000\ud835\udd13i;\u43a6;\u43a0usMinus;\u40b1\u0100ip\u0ea2\u0eadncareplan\xe5\u069df;\u6119\u0200;eio\u0eb9\u0eba\u0ee0\u0ee4\u6abbcedes\u0200;EST\u0ec8\u0ec9\u0ecf\u0eda\u627aqual;\u6aaflantEqual;\u627cilde;\u627eme;\u6033\u0100dp\u0ee9\u0eeeuct;\u620fortion\u0100;a\u0225\u0ef9l;\u621d\u0100ci\u0f01\u0f06r;\uc000\ud835\udcab;\u43a8\u0200Ufos\u0f11\u0f16\u0f1b\u0f1fOT\u803b"\u4022r;\uc000\ud835\udd14pf;\u611acr;\uc000\ud835\udcac\u0600BEacefhiorsu\u0f3e\u0f43\u0f47\u0f60\u0f73\u0fa7\u0faa\u0fad\u1096\u10a9\u10b4\u10bearr;\u6910G\u803b\xae\u40ae\u0180cnr\u0f4e\u0f53\u0f56ute;\u4154g;\u67ebr\u0100;t\u0f5c\u0f5d\u61a0l;\u6916\u0180aey\u0f67\u0f6c\u0f71ron;\u4158dil;\u4156;\u4420\u0100;v\u0f78\u0f79\u611cerse\u0100EU\u0f82\u0f99\u0100lq\u0f87\u0f8eement;\u620builibrium;\u61cbpEquilibrium;\u696fr\xbb\u0f79o;\u43a1ght\u0400ACDFTUVa\u0fc1\u0feb\u0ff3\u1022\u1028\u105b\u1087\u03d8\u0100nr\u0fc6\u0fd2gleBracket;\u67e9row\u0180;BL\u0fdc\u0fdd\u0fe1\u6192ar;\u61e5eftArrow;\u61c4eiling;\u6309o\u01f5\u0ff9\0\u1005bleBracket;\u67e7n\u01d4\u100a\0\u1014eeVector;\u695dector\u0100;B\u101d\u101e\u61c2ar;\u6955loor;\u630b\u0100er\u102d\u1043e\u0180;AV\u1035\u1036\u103c\u62a2rrow;\u61a6ector;\u695biangle\u0180;BE\u1050\u1051\u1055\u62b3ar;\u69d0qual;\u62b5p\u0180DTV\u1063\u106e\u1078ownVector;\u694feeVector;\u695cector\u0100;B\u1082\u1083\u61bear;\u6954ector\u0100;B\u1091\u1092\u61c0ar;\u6953\u0100pu\u109b\u109ef;\u611dndImplies;\u6970ightarrow;\u61db\u0100ch\u10b9\u10bcr;\u611b;\u61b1leDelayed;\u69f4\u0680HOacfhimoqstu\u10e4\u10f1\u10f7\u10fd\u1119\u111e\u1151\u1156\u1161\u1167\u11b5\u11bb\u11bf\u0100Cc\u10e9\u10eeHcy;\u4429y;\u4428FTcy;\u442ccute;\u415a\u0280;aeiy\u1108\u1109\u110e\u1113\u1117\u6abcron;\u4160dil;\u415erc;\u415c;\u4421r;\uc000\ud835\udd16ort\u0200DLRU\u112a\u1134\u113e\u1149ownArrow\xbb\u041eeftArrow\xbb\u089aightArrow\xbb\u0fddpArrow;\u6191gma;\u43a3allCircle;\u6218pf;\uc000\ud835\udd4a\u0272\u116d\0\0\u1170t;\u621aare\u0200;ISU\u117b\u117c\u1189\u11af\u65a1ntersection;\u6293u\u0100bp\u118f\u119eset\u0100;E\u1197\u1198\u628fqual;\u6291erset\u0100;E\u11a8\u11a9\u6290qual;\u6292nion;\u6294cr;\uc000\ud835\udcaear;\u62c6\u0200bcmp\u11c8\u11db\u1209\u120b\u0100;s\u11cd\u11ce\u62d0et\u0100;E\u11cd\u11d5qual;\u6286\u0100ch\u11e0\u1205eeds\u0200;EST\u11ed\u11ee\u11f4\u11ff\u627bqual;\u6ab0lantEqual;\u627dilde;\u627fTh\xe1\u0f8c;\u6211\u0180;es\u1212\u1213\u1223\u62d1rset\u0100;E\u121c\u121d\u6283qual;\u6287et\xbb\u1213\u0580HRSacfhiors\u123e\u1244\u1249\u1255\u125e\u1271\u1276\u129f\u12c2\u12c8\u12d1ORN\u803b\xde\u40deADE;\u6122\u0100Hc\u124e\u1252cy;\u440by;\u4426\u0100bu\u125a\u125c;\u4009;\u43a4\u0180aey\u1265\u126a\u126fron;\u4164dil;\u4162;\u4422r;\uc000\ud835\udd17\u0100ei\u127b\u1289\u01f2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128e\u1298kSpace;\uc000\u205f\u200aSpace;\u6009lde\u0200;EFT\u12ab\u12ac\u12b2\u12bc\u623cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uc000\ud835\udd4bipleDot;\u60db\u0100ct\u12d6\u12dbr;\uc000\ud835\udcafrok;\u4166\u0ae1\u12f7\u130e\u131a\u1326\0\u132c\u1331\0\0\0\0\0\u1338\u133d\u1377\u1385\0\u13ff\u1404\u140a\u1410\u0100cr\u12fb\u1301ute\u803b\xda\u40dar\u0100;o\u1307\u1308\u619fcir;\u6949r\u01e3\u1313\0\u1316y;\u440eve;\u416c\u0100iy\u131e\u1323rc\u803b\xdb\u40db;\u4423blac;\u4170r;\uc000\ud835\udd18rave\u803b\xd9\u40d9acr;\u416a\u0100di\u1341\u1369er\u0100BP\u1348\u135d\u0100ar\u134d\u1350r;\u405fac\u0100ek\u1357\u1359;\u63dfet;\u63b5arenthesis;\u63ddon\u0100;P\u1370\u1371\u62c3lus;\u628e\u0100gp\u137b\u137fon;\u4172f;\uc000\ud835\udd4c\u0400ADETadps\u1395\u13ae\u13b8\u13c4\u03e8\u13d2\u13d7\u13f3rrow\u0180;BD\u1150\u13a0\u13a4ar;\u6912ownArrow;\u61c5ownArrow;\u6195quilibrium;\u696eee\u0100;A\u13cb\u13cc\u62a5rrow;\u61a5own\xe1\u03f3er\u0100LR\u13de\u13e8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13f9\u13fa\u43d2on;\u43a5ing;\u416ecr;\uc000\ud835\udcb0ilde;\u4168ml\u803b\xdc\u40dc\u0480Dbcdefosv\u1427\u142c\u1430\u1433\u143e\u1485\u148a\u1490\u1496ash;\u62abar;\u6aeby;\u4412ash\u0100;l\u143b\u143c\u62a9;\u6ae6\u0100er\u1443\u1445;\u62c1\u0180bty\u144c\u1450\u147aar;\u6016\u0100;i\u144f\u1455cal\u0200BLST\u1461\u1465\u146a\u1474ar;\u6223ine;\u407ceparator;\u6758ilde;\u6240ThinSpace;\u600ar;\uc000\ud835\udd19pf;\uc000\ud835\udd4dcr;\uc000\ud835\udcb1dash;\u62aa\u0280cefos\u14a7\u14ac\u14b1\u14b6\u14bcirc;\u4174dge;\u62c0r;\uc000\ud835\udd1apf;\uc000\ud835\udd4ecr;\uc000\ud835\udcb2\u0200fios\u14cb\u14d0\u14d2\u14d8r;\uc000\ud835\udd1b;\u439epf;\uc000\ud835\udd4fcr;\uc000\ud835\udcb3\u0480AIUacfosu\u14f1\u14f5\u14f9\u14fd\u1504\u150f\u1514\u151a\u1520cy;\u442fcy;\u4407cy;\u442ecute\u803b\xdd\u40dd\u0100iy\u1509\u150drc;\u4176;\u442br;\uc000\ud835\udd1cpf;\uc000\ud835\udd50cr;\uc000\ud835\udcb4ml;\u4178\u0400Hacdefos\u1535\u1539\u153f\u154b\u154f\u155d\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417d;\u4417ot;\u417b\u01f2\u1554\0\u155boWidt\xe8\u0ad9a;\u4396r;\u6128pf;\u6124cr;\uc000\ud835\udcb5\u0be1\u1583\u158a\u1590\0\u15b0\u15b6\u15bf\0\0\0\0\u15c6\u15db\u15eb\u165f\u166d\0\u1695\u169b\u16b2\u16b9\0\u16becute\u803b\xe1\u40e1reve;\u4103\u0300;Ediuy\u159c\u159d\u15a1\u15a3\u15a8\u15ad\u623e;\uc000\u223e\u0333;\u623frc\u803b\xe2\u40e2te\u80bb\xb4\u0306;\u4430lig\u803b\xe6\u40e6\u0100;r\xb2\u15ba;\uc000\ud835\udd1erave\u803b\xe0\u40e0\u0100ep\u15ca\u15d6\u0100fp\u15cf\u15d4sym;\u6135\xe8\u15d3ha;\u43b1\u0100ap\u15dfc\u0100cl\u15e4\u15e7r;\u4101g;\u6a3f\u0264\u15f0\0\0\u160a\u0280;adsv\u15fa\u15fb\u15ff\u1601\u1607\u6227nd;\u6a55;\u6a5clope;\u6a58;\u6a5a\u0380;elmrsz\u1618\u1619\u161b\u161e\u163f\u164f\u1659\u6220;\u69a4e\xbb\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163a\u163c\u163e;\u69a8;\u69a9;\u69aa;\u69ab;\u69ac;\u69ad;\u69ae;\u69aft\u0100;v\u1645\u1646\u621fb\u0100;d\u164c\u164d\u62be;\u699d\u0100pt\u1654\u1657h;\u6222\xbb\xb9arr;\u637c\u0100gp\u1663\u1667on;\u4105f;\uc000\ud835\udd52\u0380;Eaeiop\u12c1\u167b\u167d\u1682\u1684\u1687\u168a;\u6a70cir;\u6a6f;\u624ad;\u624bs;\u4027rox\u0100;e\u12c1\u1692\xf1\u1683ing\u803b\xe5\u40e5\u0180cty\u16a1\u16a6\u16a8r;\uc000\ud835\udcb6;\u402amp\u0100;e\u12c1\u16af\xf1\u0288ilde\u803b\xe3\u40e3ml\u803b\xe4\u40e4\u0100ci\u16c2\u16c8onin\xf4\u0272nt;\u6a11\u0800Nabcdefiklnoprsu\u16ed\u16f1\u1730\u173c\u1743\u1748\u1778\u177d\u17e0\u17e6\u1839\u1850\u170d\u193d\u1948\u1970ot;\u6aed\u0100cr\u16f6\u171ek\u0200ceps\u1700\u1705\u170d\u1713ong;\u624cpsilon;\u43f6rime;\u6035im\u0100;e\u171a\u171b\u623dq;\u62cd\u0176\u1722\u1726ee;\u62bded\u0100;g\u172c\u172d\u6305e\xbb\u172drk\u0100;t\u135c\u1737brk;\u63b6\u0100oy\u1701\u1741;\u4431quo;\u601e\u0280cmprt\u1753\u175b\u1761\u1764\u1768aus\u0100;e\u010a\u0109ptyv;\u69b0s\xe9\u170cno\xf5\u0113\u0180ahw\u176f\u1771\u1773;\u43b2;\u6136een;\u626cr;\uc000\ud835\udd1fg\u0380costuvw\u178d\u179d\u17b3\u17c1\u17d5\u17db\u17de\u0180aiu\u1794\u1796\u179a\xf0\u0760rc;\u65efp\xbb\u1371\u0180dpt\u17a4\u17a8\u17adot;\u6a00lus;\u6a01imes;\u6a02\u0271\u17b9\0\0\u17becup;\u6a06ar;\u6605riangle\u0100du\u17cd\u17d2own;\u65bdp;\u65b3plus;\u6a04e\xe5\u1444\xe5\u14adarow;\u690d\u0180ako\u17ed\u1826\u1835\u0100cn\u17f2\u1823k\u0180lst\u17fa\u05ab\u1802ozenge;\u69ebriangle\u0200;dlr\u1812\u1813\u1818\u181d\u65b4own;\u65beeft;\u65c2ight;\u65b8k;\u6423\u01b1\u182b\0\u1833\u01b2\u182f\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183e\u184d\u0100;q\u1843\u1846\uc000=\u20e5uiv;\uc000\u2261\u20e5t;\u6310\u0200ptwx\u1859\u185e\u1867\u186cf;\uc000\ud835\udd53\u0100;t\u13cb\u1863om\xbb\u13cctie;\u62c8\u0600DHUVbdhmptuv\u1885\u1896\u18aa\u18bb\u18d7\u18db\u18ec\u18ff\u1905\u190a\u1910\u1921\u0200LRlr\u188e\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18a1\u18a2\u18a4\u18a6\u18a8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18b3\u18b5\u18b7\u18b9;\u655d;\u655a;\u655c;\u6559\u0380;HLRhlr\u18ca\u18cb\u18cd\u18cf\u18d1\u18d3\u18d5\u6551;\u656c;\u6563;\u6560;\u656b;\u6562;\u655fox;\u69c9\u0200LRlr\u18e4\u18e6\u18e8\u18ea;\u6555;\u6552;\u6510;\u650c\u0280;DUdu\u06bd\u18f7\u18f9\u18fb\u18fd;\u6565;\u6568;\u652c;\u6534inus;\u629flus;\u629eimes;\u62a0\u0200LRlr\u1919\u191b\u191d\u191f;\u655b;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193b\u6502;\u656a;\u6561;\u655e;\u653c;\u6524;\u651c\u0100ev\u0123\u1942bar\u803b\xa6\u40a6\u0200ceio\u1951\u1956\u195a\u1960r;\uc000\ud835\udcb7mi;\u604fm\u0100;e\u171a\u171cl\u0180;bh\u1968\u1969\u196b\u405c;\u69c5sub;\u67c8\u016c\u1974\u197el\u0100;e\u1979\u197a\u6022t\xbb\u197ap\u0180;Ee\u012f\u1985\u1987;\u6aae\u0100;q\u06dc\u06db\u0ce1\u19a7\0\u19e8\u1a11\u1a15\u1a32\0\u1a37\u1a50\0\0\u1ab4\0\0\u1ac1\0\0\u1b21\u1b2e\u1b4d\u1b52\0\u1bfd\0\u1c0c\u0180cpr\u19ad\u19b2\u19ddute;\u4107\u0300;abcds\u19bf\u19c0\u19c4\u19ca\u19d5\u19d9\u6229nd;\u6a44rcup;\u6a49\u0100au\u19cf\u19d2p;\u6a4bp;\u6a47ot;\u6a40;\uc000\u2229\ufe00\u0100eo\u19e2\u19e5t;\u6041\xee\u0693\u0200aeiu\u19f0\u19fb\u1a01\u1a05\u01f0\u19f5\0\u19f8s;\u6a4don;\u410ddil\u803b\xe7\u40e7rc;\u4109ps\u0100;s\u1a0c\u1a0d\u6a4cm;\u6a50ot;\u410b\u0180dmn\u1a1b\u1a20\u1a26il\u80bb\xb8\u01adptyv;\u69b2t\u8100\xa2;e\u1a2d\u1a2e\u40a2r\xe4\u01b2r;\uc000\ud835\udd20\u0180cei\u1a3d\u1a40\u1a4dy;\u4447ck\u0100;m\u1a47\u1a48\u6713ark\xbb\u1a48;\u43c7r\u0380;Ecefms\u1a5f\u1a60\u1a62\u1a6b\u1aa4\u1aaa\u1aae\u65cb;\u69c3\u0180;el\u1a69\u1a6a\u1a6d\u42c6q;\u6257e\u0261\u1a74\0\0\u1a88rrow\u0100lr\u1a7c\u1a81eft;\u61baight;\u61bb\u0280RSacd\u1a92\u1a94\u1a96\u1a9a\u1a9f\xbb\u0f47;\u64c8st;\u629birc;\u629aash;\u629dnint;\u6a10id;\u6aefcir;\u69c2ubs\u0100;u\u1abb\u1abc\u6663it\xbb\u1abc\u02ec\u1ac7\u1ad4\u1afa\0\u1b0aon\u0100;e\u1acd\u1ace\u403a\u0100;q\xc7\xc6\u026d\u1ad9\0\0\u1ae2a\u0100;t\u1ade\u1adf\u402c;\u4040\u0180;fl\u1ae8\u1ae9\u1aeb\u6201\xee\u1160e\u0100mx\u1af1\u1af6ent\xbb\u1ae9e\xf3\u024d\u01e7\u1afe\0\u1b07\u0100;d\u12bb\u1b02ot;\u6a6dn\xf4\u0246\u0180fry\u1b10\u1b14\u1b17;\uc000\ud835\udd54o\xe4\u0254\u8100\xa9;s\u0155\u1b1dr;\u6117\u0100ao\u1b25\u1b29rr;\u61b5ss;\u6717\u0100cu\u1b32\u1b37r;\uc000\ud835\udcb8\u0100bp\u1b3c\u1b44\u0100;e\u1b41\u1b42\u6acf;\u6ad1\u0100;e\u1b49\u1b4a\u6ad0;\u6ad2dot;\u62ef\u0380delprvw\u1b60\u1b6c\u1b77\u1b82\u1bac\u1bd4\u1bf9arr\u0100lr\u1b68\u1b6a;\u6938;\u6935\u0270\u1b72\0\0\u1b75r;\u62dec;\u62dfarr\u0100;p\u1b7f\u1b80\u61b6;\u693d\u0300;bcdos\u1b8f\u1b90\u1b96\u1ba1\u1ba5\u1ba8\u622arcap;\u6a48\u0100au\u1b9b\u1b9ep;\u6a46p;\u6a4aot;\u628dr;\u6a45;\uc000\u222a\ufe00\u0200alrv\u1bb5\u1bbf\u1bde\u1be3rr\u0100;m\u1bbc\u1bbd\u61b7;\u693cy\u0180evw\u1bc7\u1bd4\u1bd8q\u0270\u1bce\0\0\u1bd2re\xe3\u1b73u\xe3\u1b75ee;\u62ceedge;\u62cfen\u803b\xa4\u40a4earrow\u0100lr\u1bee\u1bf3eft\xbb\u1b80ight\xbb\u1bbde\xe4\u1bdd\u0100ci\u1c01\u1c07onin\xf4\u01f7nt;\u6231lcty;\u632d\u0980AHabcdefhijlorstuwz\u1c38\u1c3b\u1c3f\u1c5d\u1c69\u1c75\u1c8a\u1c9e\u1cac\u1cb7\u1cfb\u1cff\u1d0d\u1d7b\u1d91\u1dab\u1dbb\u1dc6\u1dcdr\xf2\u0381ar;\u6965\u0200glrs\u1c48\u1c4d\u1c52\u1c54ger;\u6020eth;\u6138\xf2\u1133h\u0100;v\u1c5a\u1c5b\u6010\xbb\u090a\u016b\u1c61\u1c67arow;\u690fa\xe3\u0315\u0100ay\u1c6e\u1c73ron;\u410f;\u4434\u0180;ao\u0332\u1c7c\u1c84\u0100gr\u02bf\u1c81r;\u61catseq;\u6a77\u0180glm\u1c91\u1c94\u1c98\u803b\xb0\u40b0ta;\u43b4ptyv;\u69b1\u0100ir\u1ca3\u1ca8sht;\u697f;\uc000\ud835\udd21ar\u0100lr\u1cb3\u1cb5\xbb\u08dc\xbb\u101e\u0280aegsv\u1cc2\u0378\u1cd6\u1cdc\u1ce0m\u0180;os\u0326\u1cca\u1cd4nd\u0100;s\u0326\u1cd1uit;\u6666amma;\u43ddin;\u62f2\u0180;io\u1ce7\u1ce8\u1cf8\u40f7de\u8100\xf7;o\u1ce7\u1cf0ntimes;\u62c7n\xf8\u1cf7cy;\u4452c\u026f\u1d06\0\0\u1d0arn;\u631eop;\u630d\u0280lptuw\u1d18\u1d1d\u1d22\u1d49\u1d55lar;\u4024f;\uc000\ud835\udd55\u0280;emps\u030b\u1d2d\u1d37\u1d3d\u1d42q\u0100;d\u0352\u1d33ot;\u6251inus;\u6238lus;\u6214quare;\u62a1blebarwedg\xe5\xfan\u0180adh\u112e\u1d5d\u1d67ownarrow\xf3\u1c83arpoon\u0100lr\u1d72\u1d76ef\xf4\u1cb4igh\xf4\u1cb6\u0162\u1d7f\u1d85karo\xf7\u0f42\u026f\u1d8a\0\0\u1d8ern;\u631fop;\u630c\u0180cot\u1d98\u1da3\u1da6\u0100ry\u1d9d\u1da1;\uc000\ud835\udcb9;\u4455l;\u69f6rok;\u4111\u0100dr\u1db0\u1db4ot;\u62f1i\u0100;f\u1dba\u1816\u65bf\u0100ah\u1dc0\u1dc3r\xf2\u0429a\xf2\u0fa6angle;\u69a6\u0100ci\u1dd2\u1dd5y;\u445fgrarr;\u67ff\u0900Dacdefglmnopqrstux\u1e01\u1e09\u1e19\u1e38\u0578\u1e3c\u1e49\u1e61\u1e7e\u1ea5\u1eaf\u1ebd\u1ee1\u1f2a\u1f37\u1f44\u1f4e\u1f5a\u0100Do\u1e06\u1d34o\xf4\u1c89\u0100cs\u1e0e\u1e14ute\u803b\xe9\u40e9ter;\u6a6e\u0200aioy\u1e22\u1e27\u1e31\u1e36ron;\u411br\u0100;c\u1e2d\u1e2e\u6256\u803b\xea\u40ealon;\u6255;\u444dot;\u4117\u0100Dr\u1e41\u1e45ot;\u6252;\uc000\ud835\udd22\u0180;rs\u1e50\u1e51\u1e57\u6a9aave\u803b\xe8\u40e8\u0100;d\u1e5c\u1e5d\u6a96ot;\u6a98\u0200;ils\u1e6a\u1e6b\u1e72\u1e74\u6a99nters;\u63e7;\u6113\u0100;d\u1e79\u1e7a\u6a95ot;\u6a97\u0180aps\u1e85\u1e89\u1e97cr;\u4113ty\u0180;sv\u1e92\u1e93\u1e95\u6205et\xbb\u1e93p\u01001;\u1e9d\u1ea4\u0133\u1ea1\u1ea3;\u6004;\u6005\u6003\u0100gs\u1eaa\u1eac;\u414bp;\u6002\u0100gp\u1eb4\u1eb8on;\u4119f;\uc000\ud835\udd56\u0180als\u1ec4\u1ece\u1ed2r\u0100;s\u1eca\u1ecb\u62d5l;\u69e3us;\u6a71i\u0180;lv\u1eda\u1edb\u1edf\u43b5on\xbb\u1edb;\u43f5\u0200csuv\u1eea\u1ef3\u1f0b\u1f23\u0100io\u1eef\u1e31rc\xbb\u1e2e\u0269\u1ef9\0\0\u1efb\xed\u0548ant\u0100gl\u1f02\u1f06tr\xbb\u1e5dess\xbb\u1e7a\u0180aei\u1f12\u1f16\u1f1als;\u403dst;\u625fv\u0100;D\u0235\u1f20D;\u6a78parsl;\u69e5\u0100Da\u1f2f\u1f33ot;\u6253rr;\u6971\u0180cdi\u1f3e\u1f41\u1ef8r;\u612fo\xf4\u0352\u0100ah\u1f49\u1f4b;\u43b7\u803b\xf0\u40f0\u0100mr\u1f53\u1f57l\u803b\xeb\u40ebo;\u60ac\u0180cip\u1f61\u1f64\u1f67l;\u4021s\xf4\u056e\u0100eo\u1f6c\u1f74ctatio\xee\u0559nential\xe5\u0579\u09e1\u1f92\0\u1f9e\0\u1fa1\u1fa7\0\0\u1fc6\u1fcc\0\u1fd3\0\u1fe6\u1fea\u2000\0\u2008\u205allingdotse\xf1\u1e44y;\u4444male;\u6640\u0180ilr\u1fad\u1fb3\u1fc1lig;\u8000\ufb03\u0269\u1fb9\0\0\u1fbdg;\u8000\ufb00ig;\u8000\ufb04;\uc000\ud835\udd23lig;\u8000\ufb01lig;\uc000fj\u0180alt\u1fd9\u1fdc\u1fe1t;\u666dig;\u8000\ufb02ns;\u65b1of;\u4192\u01f0\u1fee\0\u1ff3f;\uc000\ud835\udd57\u0100ak\u05bf\u1ff7\u0100;v\u1ffc\u1ffd\u62d4;\u6ad9artint;\u6a0d\u0100ao\u200c\u2055\u0100cs\u2011\u2052\u03b1\u201a\u2030\u2038\u2045\u2048\0\u2050\u03b2\u2022\u2025\u2027\u202a\u202c\0\u202e\u803b\xbd\u40bd;\u6153\u803b\xbc\u40bc;\u6155;\u6159;\u615b\u01b3\u2034\0\u2036;\u6154;\u6156\u02b4\u203e\u2041\0\0\u2043\u803b\xbe\u40be;\u6157;\u615c5;\u6158\u01b6\u204c\0\u204e;\u615a;\u615d8;\u615el;\u6044wn;\u6322cr;\uc000\ud835\udcbb\u0880Eabcdefgijlnorstv\u2082\u2089\u209f\u20a5\u20b0\u20b4\u20f0\u20f5\u20fa\u20ff\u2103\u2112\u2138\u0317\u213e\u2152\u219e\u0100;l\u064d\u2087;\u6a8c\u0180cmp\u2090\u2095\u209dute;\u41f5ma\u0100;d\u209c\u1cda\u43b3;\u6a86reve;\u411f\u0100iy\u20aa\u20aerc;\u411d;\u4433ot;\u4121\u0200;lqs\u063e\u0642\u20bd\u20c9\u0180;qs\u063e\u064c\u20c4lan\xf4\u0665\u0200;cdl\u0665\u20d2\u20d5\u20e5c;\u6aa9ot\u0100;o\u20dc\u20dd\u6a80\u0100;l\u20e2\u20e3\u6a82;\u6a84\u0100;e\u20ea\u20ed\uc000\u22db\ufe00s;\u6a94r;\uc000\ud835\udd24\u0100;g\u0673\u061bmel;\u6137cy;\u4453\u0200;Eaj\u065a\u210c\u210e\u2110;\u6a92;\u6aa5;\u6aa4\u0200Eaes\u211b\u211d\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6a8arox\xbb\u2124\u0100;q\u212e\u212f\u6a88\u0100;q\u212e\u211bim;\u62e7pf;\uc000\ud835\udd58\u0100ci\u2143\u2146r;\u610am\u0180;el\u066b\u214e\u2150;\u6a8e;\u6a90\u8300>;cdlqr\u05ee\u2160\u216a\u216e\u2173\u2179\u0100ci\u2165\u2167;\u6aa7r;\u6a7aot;\u62d7Par;\u6995uest;\u6a7c\u0280adels\u2184\u216a\u2190\u0656\u219b\u01f0\u2189\0\u218epro\xf8\u209er;\u6978q\u0100lq\u063f\u2196les\xf3\u2088i\xed\u066b\u0100en\u21a3\u21adrtneqq;\uc000\u2269\ufe00\xc5\u21aa\u0500Aabcefkosy\u21c4\u21c7\u21f1\u21f5\u21fa\u2218\u221d\u222f\u2268\u227dr\xf2\u03a0\u0200ilmr\u21d0\u21d4\u21d7\u21dbrs\xf0\u1484f\xbb\u2024il\xf4\u06a9\u0100dr\u21e0\u21e4cy;\u444a\u0180;cw\u08f4\u21eb\u21efir;\u6948;\u61adar;\u610firc;\u4125\u0180alr\u2201\u220e\u2213rts\u0100;u\u2209\u220a\u6665it\xbb\u220alip;\u6026con;\u62b9r;\uc000\ud835\udd25s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223a\u223e\u2243\u225e\u2263rr;\u61fftht;\u623bk\u0100lr\u2249\u2253eftarrow;\u61a9ightarrow;\u61aaf;\uc000\ud835\udd59bar;\u6015\u0180clt\u226f\u2274\u2278r;\uc000\ud835\udcbdas\xe8\u21f4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xbb\u1c5b\u0ae1\u22a3\0\u22aa\0\u22b8\u22c5\u22ce\0\u22d5\u22f3\0\0\u22f8\u2322\u2367\u2362\u237f\0\u2386\u23aa\u23b4cute\u803b\xed\u40ed\u0180;iy\u0771\u22b0\u22b5rc\u803b\xee\u40ee;\u4438\u0100cx\u22bc\u22bfy;\u4435cl\u803b\xa1\u40a1\u0100fr\u039f\u22c9;\uc000\ud835\udd26rave\u803b\xec\u40ec\u0200;ino\u073e\u22dd\u22e9\u22ee\u0100in\u22e2\u22e6nt;\u6a0ct;\u622dfin;\u69dcta;\u6129lig;\u4133\u0180aop\u22fe\u231a\u231d\u0180cgt\u2305\u2308\u2317r;\u412b\u0180elp\u071f\u230f\u2313in\xe5\u078ear\xf4\u0720h;\u4131f;\u62b7ed;\u41b5\u0280;cfot\u04f4\u232c\u2331\u233d\u2341are;\u6105in\u0100;t\u2338\u2339\u621eie;\u69dddo\xf4\u2319\u0280;celp\u0757\u234c\u2350\u235b\u2361al;\u62ba\u0100gr\u2355\u2359er\xf3\u1563\xe3\u234darhk;\u6a17rod;\u6a3c\u0200cgpt\u236f\u2372\u2376\u237by;\u4451on;\u412ff;\uc000\ud835\udd5aa;\u43b9uest\u803b\xbf\u40bf\u0100ci\u238a\u238fr;\uc000\ud835\udcben\u0280;Edsv\u04f4\u239b\u239d\u23a1\u04f3;\u62f9ot;\u62f5\u0100;v\u23a6\u23a7\u62f4;\u62f3\u0100;i\u0777\u23aelde;\u4129\u01eb\u23b8\0\u23bccy;\u4456l\u803b\xef\u40ef\u0300cfmosu\u23cc\u23d7\u23dc\u23e1\u23e7\u23f5\u0100iy\u23d1\u23d5rc;\u4135;\u4439r;\uc000\ud835\udd27ath;\u4237pf;\uc000\ud835\udd5b\u01e3\u23ec\0\u23f1r;\uc000\ud835\udcbfrcy;\u4458kcy;\u4454\u0400acfghjos\u240b\u2416\u2422\u2427\u242d\u2431\u2435\u243bppa\u0100;v\u2413\u2414\u43ba;\u43f0\u0100ey\u241b\u2420dil;\u4137;\u443ar;\uc000\ud835\udd28reen;\u4138cy;\u4445cy;\u445cpf;\uc000\ud835\udd5ccr;\uc000\ud835\udcc0\u0b80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248d\u2491\u250e\u253d\u255a\u2580\u264e\u265e\u2665\u2679\u267d\u269a\u26b2\u26d8\u275d\u2768\u278b\u27c0\u2801\u2812\u0180art\u2477\u247a\u247cr\xf2\u09c6\xf2\u0395ail;\u691barr;\u690e\u0100;g\u0994\u248b;\u6a8bar;\u6962\u0963\u24a5\0\u24aa\0\u24b1\0\0\0\0\0\u24b5\u24ba\0\u24c6\u24c8\u24cd\0\u24f9ute;\u413amptyv;\u69b4ra\xee\u084cbda;\u43bbg\u0180;dl\u088e\u24c1\u24c3;\u6991\xe5\u088e;\u6a85uo\u803b\xab\u40abr\u0400;bfhlpst\u0899\u24de\u24e6\u24e9\u24eb\u24ee\u24f1\u24f5\u0100;f\u089d\u24e3s;\u691fs;\u691d\xeb\u2252p;\u61abl;\u6939im;\u6973l;\u61a2\u0180;ae\u24ff\u2500\u2504\u6aabil;\u6919\u0100;s\u2509\u250a\u6aad;\uc000\u2aad\ufe00\u0180abr\u2515\u2519\u251drr;\u690crk;\u6772\u0100ak\u2522\u252cc\u0100ek\u2528\u252a;\u407b;\u405b\u0100es\u2531\u2533;\u698bl\u0100du\u2539\u253b;\u698f;\u698d\u0200aeuy\u2546\u254b\u2556\u2558ron;\u413e\u0100di\u2550\u2554il;\u413c\xec\u08b0\xe2\u2529;\u443b\u0200cqrs\u2563\u2566\u256d\u257da;\u6936uo\u0100;r\u0e19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694bh;\u61b2\u0280;fgqs\u258b\u258c\u0989\u25f3\u25ff\u6264t\u0280ahlrt\u2598\u25a4\u25b7\u25c2\u25e8rrow\u0100;t\u0899\u25a1a\xe9\u24f6arpoon\u0100du\u25af\u25b4own\xbb\u045ap\xbb\u0966eftarrows;\u61c7ight\u0180ahs\u25cd\u25d6\u25derrow\u0100;s\u08f4\u08a7arpoon\xf3\u0f98quigarro\xf7\u21f0hreetimes;\u62cb\u0180;qs\u258b\u0993\u25falan\xf4\u09ac\u0280;cdgs\u09ac\u260a\u260d\u261d\u2628c;\u6aa8ot\u0100;o\u2614\u2615\u6a7f\u0100;r\u261a\u261b\u6a81;\u6a83\u0100;e\u2622\u2625\uc000\u22da\ufe00s;\u6a93\u0280adegs\u2633\u2639\u263d\u2649\u264bppro\xf8\u24c6ot;\u62d6q\u0100gq\u2643\u2645\xf4\u0989gt\xf2\u248c\xf4\u099bi\xed\u09b2\u0180ilr\u2655\u08e1\u265asht;\u697c;\uc000\ud835\udd29\u0100;E\u099c\u2663;\u6a91\u0161\u2669\u2676r\u0100du\u25b2\u266e\u0100;l\u0965\u2673;\u696alk;\u6584cy;\u4459\u0280;acht\u0a48\u2688\u268b\u2691\u2696r\xf2\u25c1orne\xf2\u1d08ard;\u696bri;\u65fa\u0100io\u269f\u26a4dot;\u4140ust\u0100;a\u26ac\u26ad\u63b0che\xbb\u26ad\u0200Eaes\u26bb\u26bd\u26c9\u26d4;\u6268p\u0100;p\u26c3\u26c4\u6a89rox\xbb\u26c4\u0100;q\u26ce\u26cf\u6a87\u0100;q\u26ce\u26bbim;\u62e6\u0400abnoptwz\u26e9\u26f4\u26f7\u271a\u272f\u2741\u2747\u2750\u0100nr\u26ee\u26f1g;\u67ecr;\u61fdr\xeb\u08c1g\u0180lmr\u26ff\u270d\u2714eft\u0100ar\u09e6\u2707ight\xe1\u09f2apsto;\u67fcight\xe1\u09fdparrow\u0100lr\u2725\u2729ef\xf4\u24edight;\u61ac\u0180afl\u2736\u2739\u273dr;\u6985;\uc000\ud835\udd5dus;\u6a2dimes;\u6a34\u0161\u274b\u274fst;\u6217\xe1\u134e\u0180;ef\u2757\u2758\u1800\u65cange\xbb\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277c\u2785\u2787r\xf2\u08a8orne\xf2\u1d8car\u0100;d\u0f98\u2783;\u696d;\u600eri;\u62bf\u0300achiqt\u2798\u279d\u0a40\u27a2\u27ae\u27bbquo;\u6039r;\uc000\ud835\udcc1m\u0180;eg\u09b2\u27aa\u27ac;\u6a8d;\u6a8f\u0100bu\u252a\u27b3o\u0100;r\u0e1f\u27b9;\u601arok;\u4142\u8400<;cdhilqr\u082b\u27d2\u2639\u27dc\u27e0\u27e5\u27ea\u27f0\u0100ci\u27d7\u27d9;\u6aa6r;\u6a79re\xe5\u25f2mes;\u62c9arr;\u6976uest;\u6a7b\u0100Pi\u27f5\u27f9ar;\u6996\u0180;ef\u2800\u092d\u181b\u65c3r\u0100du\u2807\u280dshar;\u694ahar;\u6966\u0100en\u2817\u2821rtneqq;\uc000\u2268\ufe00\xc5\u281e\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288e\u2893\u28a0\u28a5\u28a8\u28da\u28e2\u28e4\u0a83\u28f3\u2902Dot;\u623a\u0200clpr\u284e\u2852\u2863\u287dr\u803b\xaf\u40af\u0100et\u2857\u2859;\u6642\u0100;e\u285e\u285f\u6720se\xbb\u285f\u0100;s\u103b\u2868to\u0200;dlu\u103b\u2873\u2877\u287bow\xee\u048cef\xf4\u090f\xf0\u13d1ker;\u65ae\u0100oy\u2887\u288cmma;\u6a29;\u443cash;\u6014asuredangle\xbb\u1626r;\uc000\ud835\udd2ao;\u6127\u0180cdn\u28af\u28b4\u28c9ro\u803b\xb5\u40b5\u0200;acd\u1464\u28bd\u28c0\u28c4s\xf4\u16a7ir;\u6af0ot\u80bb\xb7\u01b5us\u0180;bd\u28d2\u1903\u28d3\u6212\u0100;u\u1d3c\u28d8;\u6a2a\u0163\u28de\u28e1p;\u6adb\xf2\u2212\xf0\u0a81\u0100dp\u28e9\u28eeels;\u62a7f;\uc000\ud835\udd5e\u0100ct\u28f8\u28fdr;\uc000\ud835\udcc2pos\xbb\u159d\u0180;lm\u2909\u290a\u290d\u43bctimap;\u62b8\u0c00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297e\u2989\u2998\u29da\u29e9\u2a15\u2a1a\u2a58\u2a5d\u2a83\u2a95\u2aa4\u2aa8\u2b04\u2b07\u2b44\u2b7f\u2bae\u2c34\u2c67\u2c7c\u2ce9\u0100gt\u2947\u294b;\uc000\u22d9\u0338\u0100;v\u2950\u0bcf\uc000\u226b\u20d2\u0180elt\u295a\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61cdightarrow;\u61ce;\uc000\u22d8\u0338\u0100;v\u297b\u0c47\uc000\u226a\u20d2ightarrow;\u61cf\u0100Dd\u298e\u2993ash;\u62afash;\u62ae\u0280bcnpt\u29a3\u29a7\u29ac\u29b1\u29ccla\xbb\u02deute;\u4144g;\uc000\u2220\u20d2\u0280;Eiop\u0d84\u29bc\u29c0\u29c5\u29c8;\uc000\u2a70\u0338d;\uc000\u224b\u0338s;\u4149ro\xf8\u0d84ur\u0100;a\u29d3\u29d4\u666el\u0100;s\u29d3\u0b38\u01f3\u29df\0\u29e3p\u80bb\xa0\u0b37mp\u0100;e\u0bf9\u0c00\u0280aeouy\u29f4\u29fe\u2a03\u2a10\u2a13\u01f0\u29f9\0\u29fb;\u6a43on;\u4148dil;\u4146ng\u0100;d\u0d7e\u2a0aot;\uc000\u2a6d\u0338p;\u6a42;\u443dash;\u6013\u0380;Aadqsx\u0b92\u2a29\u2a2d\u2a3b\u2a41\u2a45\u2a50rr;\u61d7r\u0100hr\u2a33\u2a36k;\u6924\u0100;o\u13f2\u13f0ot;\uc000\u2250\u0338ui\xf6\u0b63\u0100ei\u2a4a\u2a4ear;\u6928\xed\u0b98ist\u0100;s\u0ba0\u0b9fr;\uc000\ud835\udd2b\u0200Eest\u0bc5\u2a66\u2a79\u2a7c\u0180;qs\u0bbc\u2a6d\u0be1\u0180;qs\u0bbc\u0bc5\u2a74lan\xf4\u0be2i\xed\u0bea\u0100;r\u0bb6\u2a81\xbb\u0bb7\u0180Aap\u2a8a\u2a8d\u2a91r\xf2\u2971rr;\u61aear;\u6af2\u0180;sv\u0f8d\u2a9c\u0f8c\u0100;d\u2aa1\u2aa2\u62fc;\u62facy;\u445a\u0380AEadest\u2ab7\u2aba\u2abe\u2ac2\u2ac5\u2af6\u2af9r\xf2\u2966;\uc000\u2266\u0338rr;\u619ar;\u6025\u0200;fqs\u0c3b\u2ace\u2ae3\u2aeft\u0100ar\u2ad4\u2ad9rro\xf7\u2ac1ightarro\xf7\u2a90\u0180;qs\u0c3b\u2aba\u2aealan\xf4\u0c55\u0100;s\u0c55\u2af4\xbb\u0c36i\xed\u0c5d\u0100;r\u0c35\u2afei\u0100;e\u0c1a\u0c25i\xe4\u0d90\u0100pt\u2b0c\u2b11f;\uc000\ud835\udd5f\u8180\xac;in\u2b19\u2b1a\u2b36\u40acn\u0200;Edv\u0b89\u2b24\u2b28\u2b2e;\uc000\u22f9\u0338ot;\uc000\u22f5\u0338\u01e1\u0b89\u2b33\u2b35;\u62f7;\u62f6i\u0100;v\u0cb8\u2b3c\u01e1\u0cb8\u2b41\u2b43;\u62fe;\u62fd\u0180aor\u2b4b\u2b63\u2b69r\u0200;ast\u0b7b\u2b55\u2b5a\u2b5flle\xec\u0b7bl;\uc000\u2afd\u20e5;\uc000\u2202\u0338lint;\u6a14\u0180;ce\u0c92\u2b70\u2b73u\xe5\u0ca5\u0100;c\u0c98\u2b78\u0100;e\u0c92\u2b7d\xf1\u0c98\u0200Aait\u2b88\u2b8b\u2b9d\u2ba7r\xf2\u2988rr\u0180;cw\u2b94\u2b95\u2b99\u619b;\uc000\u2933\u0338;\uc000\u219d\u0338ghtarrow\xbb\u2b95ri\u0100;e\u0ccb\u0cd6\u0380chimpqu\u2bbd\u2bcd\u2bd9\u2b04\u0b78\u2be4\u2bef\u0200;cer\u0d32\u2bc6\u0d37\u2bc9u\xe5\u0d45;\uc000\ud835\udcc3ort\u026d\u2b05\0\0\u2bd6ar\xe1\u2b56m\u0100;e\u0d6e\u2bdf\u0100;q\u0d74\u0d73su\u0100bp\u2beb\u2bed\xe5\u0cf8\xe5\u0d0b\u0180bcp\u2bf6\u2c11\u2c19\u0200;Ees\u2bff\u2c00\u0d22\u2c04\u6284;\uc000\u2ac5\u0338et\u0100;e\u0d1b\u2c0bq\u0100;q\u0d23\u2c00c\u0100;e\u0d32\u2c17\xf1\u0d38\u0200;Ees\u2c22\u2c23\u0d5f\u2c27\u6285;\uc000\u2ac6\u0338et\u0100;e\u0d58\u2c2eq\u0100;q\u0d60\u2c23\u0200gilr\u2c3d\u2c3f\u2c45\u2c47\xec\u0bd7lde\u803b\xf1\u40f1\xe7\u0c43iangle\u0100lr\u2c52\u2c5ceft\u0100;e\u0c1a\u2c5a\xf1\u0c26ight\u0100;e\u0ccb\u2c65\xf1\u0cd7\u0100;m\u2c6c\u2c6d\u43bd\u0180;es\u2c74\u2c75\u2c79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2c8f\u2c94\u2c99\u2c9e\u2ca3\u2cb0\u2cb6\u2cd3\u2ce3ash;\u62adarr;\u6904p;\uc000\u224d\u20d2ash;\u62ac\u0100et\u2ca8\u2cac;\uc000\u2265\u20d2;\uc000>\u20d2nfin;\u69de\u0180Aet\u2cbd\u2cc1\u2cc5rr;\u6902;\uc000\u2264\u20d2\u0100;r\u2cca\u2ccd\uc000<\u20d2ie;\uc000\u22b4\u20d2\u0100At\u2cd8\u2cdcrr;\u6903rie;\uc000\u22b5\u20d2im;\uc000\u223c\u20d2\u0180Aan\u2cf0\u2cf4\u2d02rr;\u61d6r\u0100hr\u2cfa\u2cfdk;\u6923\u0100;o\u13e7\u13e5ear;\u6927\u1253\u1a95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2d2d\0\u2d38\u2d48\u2d60\u2d65\u2d72\u2d84\u1b07\0\0\u2d8d\u2dab\0\u2dc8\u2dce\0\u2ddc\u2e19\u2e2b\u2e3e\u2e43\u0100cs\u2d31\u1a97ute\u803b\xf3\u40f3\u0100iy\u2d3c\u2d45r\u0100;c\u1a9e\u2d42\u803b\xf4\u40f4;\u443e\u0280abios\u1aa0\u2d52\u2d57\u01c8\u2d5alac;\u4151v;\u6a38old;\u69bclig;\u4153\u0100cr\u2d69\u2d6dir;\u69bf;\uc000\ud835\udd2c\u036f\u2d79\0\0\u2d7c\0\u2d82n;\u42dbave\u803b\xf2\u40f2;\u69c1\u0100bm\u2d88\u0df4ar;\u69b5\u0200acit\u2d95\u2d98\u2da5\u2da8r\xf2\u1a80\u0100ir\u2d9d\u2da0r;\u69beoss;\u69bbn\xe5\u0e52;\u69c0\u0180aei\u2db1\u2db5\u2db9cr;\u414dga;\u43c9\u0180cdn\u2dc0\u2dc5\u01cdron;\u43bf;\u69b6pf;\uc000\ud835\udd60\u0180ael\u2dd4\u2dd7\u01d2r;\u69b7rp;\u69b9\u0380;adiosv\u2dea\u2deb\u2dee\u2e08\u2e0d\u2e10\u2e16\u6228r\xf2\u1a86\u0200;efm\u2df7\u2df8\u2e02\u2e05\u6a5dr\u0100;o\u2dfe\u2dff\u6134f\xbb\u2dff\u803b\xaa\u40aa\u803b\xba\u40bagof;\u62b6r;\u6a56lope;\u6a57;\u6a5b\u0180clo\u2e1f\u2e21\u2e27\xf2\u2e01ash\u803b\xf8\u40f8l;\u6298i\u016c\u2e2f\u2e34de\u803b\xf5\u40f5es\u0100;a\u01db\u2e3as;\u6a36ml\u803b\xf6\u40f6bar;\u633d\u0ae1\u2e5e\0\u2e7d\0\u2e80\u2e9d\0\u2ea2\u2eb9\0\0\u2ecb\u0e9c\0\u2f13\0\0\u2f2b\u2fbc\0\u2fc8r\u0200;ast\u0403\u2e67\u2e72\u0e85\u8100\xb6;l\u2e6d\u2e6e\u40b6le\xec\u0403\u0269\u2e78\0\0\u2e7bm;\u6af3;\u6afdy;\u443fr\u0280cimpt\u2e8b\u2e8f\u2e93\u1865\u2e97nt;\u4025od;\u402eil;\u6030enk;\u6031r;\uc000\ud835\udd2d\u0180imo\u2ea8\u2eb0\u2eb4\u0100;v\u2ead\u2eae\u43c6;\u43d5ma\xf4\u0a76ne;\u660e\u0180;tv\u2ebf\u2ec0\u2ec8\u43c0chfork\xbb\u1ffd;\u43d6\u0100au\u2ecf\u2edfn\u0100ck\u2ed5\u2eddk\u0100;h\u21f4\u2edb;\u610e\xf6\u21f4s\u0480;abcdemst\u2ef3\u2ef4\u1908\u2ef9\u2efd\u2f04\u2f06\u2f0a\u2f0e\u402bcir;\u6a23ir;\u6a22\u0100ou\u1d40\u2f02;\u6a25;\u6a72n\u80bb\xb1\u0e9dim;\u6a26wo;\u6a27\u0180ipu\u2f19\u2f20\u2f25ntint;\u6a15f;\uc000\ud835\udd61nd\u803b\xa3\u40a3\u0500;Eaceinosu\u0ec8\u2f3f\u2f41\u2f44\u2f47\u2f81\u2f89\u2f92\u2f7e\u2fb6;\u6ab3p;\u6ab7u\xe5\u0ed9\u0100;c\u0ece\u2f4c\u0300;acens\u0ec8\u2f59\u2f5f\u2f66\u2f68\u2f7eppro\xf8\u2f43urlye\xf1\u0ed9\xf1\u0ece\u0180aes\u2f6f\u2f76\u2f7approx;\u6ab9qq;\u6ab5im;\u62e8i\xed\u0edfme\u0100;s\u2f88\u0eae\u6032\u0180Eas\u2f78\u2f90\u2f7a\xf0\u2f75\u0180dfp\u0eec\u2f99\u2faf\u0180als\u2fa0\u2fa5\u2faalar;\u632eine;\u6312urf;\u6313\u0100;t\u0efb\u2fb4\xef\u0efbrel;\u62b0\u0100ci\u2fc0\u2fc5r;\uc000\ud835\udcc5;\u43c8ncsp;\u6008\u0300fiopsu\u2fda\u22e2\u2fdf\u2fe5\u2feb\u2ff1r;\uc000\ud835\udd2epf;\uc000\ud835\udd62rime;\u6057cr;\uc000\ud835\udcc6\u0180aeo\u2ff8\u3009\u3013t\u0100ei\u2ffe\u3005rnion\xf3\u06b0nt;\u6a16st\u0100;e\u3010\u3011\u403f\xf1\u1f19\xf4\u0f14\u0a80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30e0\u310e\u312b\u3147\u3162\u3172\u318e\u3206\u3215\u3224\u3229\u3258\u326e\u3272\u3290\u32b0\u32b7\u0180art\u3047\u304a\u304cr\xf2\u10b3\xf2\u03ddail;\u691car\xf2\u1c65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307f\u308f\u3094\u30cc\u0100eu\u306d\u3071;\uc000\u223d\u0331te;\u4155i\xe3\u116emptyv;\u69b3g\u0200;del\u0fd1\u3089\u308b\u308d;\u6992;\u69a5\xe5\u0fd1uo\u803b\xbb\u40bbr\u0580;abcfhlpstw\u0fdc\u30ac\u30af\u30b7\u30b9\u30bc\u30be\u30c0\u30c3\u30c7\u30cap;\u6975\u0100;f\u0fe0\u30b4s;\u6920;\u6933s;\u691e\xeb\u225d\xf0\u272el;\u6945im;\u6974l;\u61a3;\u619d\u0100ai\u30d1\u30d5il;\u691ao\u0100;n\u30db\u30dc\u6236al\xf3\u0f1e\u0180abr\u30e7\u30ea\u30eer\xf2\u17e5rk;\u6773\u0100ak\u30f3\u30fdc\u0100ek\u30f9\u30fb;\u407d;\u405d\u0100es\u3102\u3104;\u698cl\u0100du\u310a\u310c;\u698e;\u6990\u0200aeuy\u3117\u311c\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xec\u0ff2\xe2\u30fa;\u4440\u0200clqs\u3134\u3137\u313d\u3144a;\u6937dhar;\u6969uo\u0100;r\u020e\u020dh;\u61b3\u0180acg\u314e\u315f\u0f44l\u0200;ips\u0f78\u3158\u315b\u109cn\xe5\u10bbar\xf4\u0fa9t;\u65ad\u0180ilr\u3169\u1023\u316esht;\u697d;\uc000\ud835\udd2f\u0100ao\u3177\u3186r\u0100du\u317d\u317f\xbb\u047b\u0100;l\u1091\u3184;\u696c\u0100;v\u318b\u318c\u43c1;\u43f1\u0180gns\u3195\u31f9\u31fcht\u0300ahlrst\u31a4\u31b0\u31c2\u31d8\u31e4\u31eerrow\u0100;t\u0fdc\u31ada\xe9\u30c8arpoon\u0100du\u31bb\u31bfow\xee\u317ep\xbb\u1092eft\u0100ah\u31ca\u31d0rrow\xf3\u0feaarpoon\xf3\u0551ightarrows;\u61c9quigarro\xf7\u30cbhreetimes;\u62ccg;\u42daingdotse\xf1\u1f32\u0180ahm\u320d\u3210\u3213r\xf2\u0feaa\xf2\u0551;\u600foust\u0100;a\u321e\u321f\u63b1che\xbb\u321fmid;\u6aee\u0200abpt\u3232\u323d\u3240\u3252\u0100nr\u3237\u323ag;\u67edr;\u61fer\xeb\u1003\u0180afl\u3247\u324a\u324er;\u6986;\uc000\ud835\udd63us;\u6a2eimes;\u6a35\u0100ap\u325d\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6a12ar\xf2\u31e3\u0200achq\u327b\u3280\u10bc\u3285quo;\u603ar;\uc000\ud835\udcc7\u0100bu\u30fb\u328ao\u0100;r\u0214\u0213\u0180hir\u3297\u329b\u32a0re\xe5\u31f8mes;\u62cai\u0200;efl\u32aa\u1059\u1821\u32ab\u65b9tri;\u69celuhar;\u6968;\u611e\u0d61\u32d5\u32db\u32df\u332c\u3338\u3371\0\u337a\u33a4\0\0\u33ec\u33f0\0\u3428\u3448\u345a\u34ad\u34b1\u34ca\u34f1\0\u3616\0\0\u3633cute;\u415bqu\xef\u27ba\u0500;Eaceinpsy\u11ed\u32f3\u32f5\u32ff\u3302\u330b\u330f\u331f\u3326\u3329;\u6ab4\u01f0\u32fa\0\u32fc;\u6ab8on;\u4161u\xe5\u11fe\u0100;d\u11f3\u3307il;\u415frc;\u415d\u0180Eas\u3316\u3318\u331b;\u6ab6p;\u6abaim;\u62e9olint;\u6a13i\xed\u1204;\u4441ot\u0180;be\u3334\u1d47\u3335\u62c5;\u6a66\u0380Aacmstx\u3346\u334a\u3357\u335b\u335e\u3363\u336drr;\u61d8r\u0100hr\u3350\u3352\xeb\u2228\u0100;o\u0a36\u0a34t\u803b\xa7\u40a7i;\u403bwar;\u6929m\u0100in\u3369\xf0nu\xf3\xf1t;\u6736r\u0100;o\u3376\u2055\uc000\ud835\udd30\u0200acoy\u3382\u3386\u3391\u33a0rp;\u666f\u0100hy\u338b\u338fcy;\u4449;\u4448rt\u026d\u3399\0\0\u339ci\xe4\u1464ara\xec\u2e6f\u803b\xad\u40ad\u0100gm\u33a8\u33b4ma\u0180;fv\u33b1\u33b2\u33b2\u43c3;\u43c2\u0400;deglnpr\u12ab\u33c5\u33c9\u33ce\u33d6\u33de\u33e1\u33e6ot;\u6a6a\u0100;q\u12b1\u12b0\u0100;E\u33d3\u33d4\u6a9e;\u6aa0\u0100;E\u33db\u33dc\u6a9d;\u6a9fe;\u6246lus;\u6a24arr;\u6972ar\xf2\u113d\u0200aeit\u33f8\u3408\u340f\u3417\u0100ls\u33fd\u3404lsetm\xe9\u336ahp;\u6a33parsl;\u69e4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341c\u341d\u6aaa\u0100;s\u3422\u3423\u6aac;\uc000\u2aac\ufe00\u0180flp\u342e\u3433\u3442tcy;\u444c\u0100;b\u3438\u3439\u402f\u0100;a\u343e\u343f\u69c4r;\u633ff;\uc000\ud835\udd64a\u0100dr\u344d\u0402es\u0100;u\u3454\u3455\u6660it\xbb\u3455\u0180csu\u3460\u3479\u349f\u0100au\u3465\u346fp\u0100;s\u1188\u346b;\uc000\u2293\ufe00p\u0100;s\u11b4\u3475;\uc000\u2294\ufe00u\u0100bp\u347f\u348f\u0180;es\u1197\u119c\u3486et\u0100;e\u1197\u348d\xf1\u119d\u0180;es\u11a8\u11ad\u3496et\u0100;e\u11a8\u349d\xf1\u11ae\u0180;af\u117b\u34a6\u05b0r\u0165\u34ab\u05b1\xbb\u117car\xf2\u1148\u0200cemt\u34b9\u34be\u34c2\u34c5r;\uc000\ud835\udcc8tm\xee\xf1i\xec\u3415ar\xe6\u11be\u0100ar\u34ce\u34d5r\u0100;f\u34d4\u17bf\u6606\u0100an\u34da\u34edight\u0100ep\u34e3\u34eapsilo\xee\u1ee0h\xe9\u2eafs\xbb\u2852\u0280bcmnp\u34fb\u355e\u1209\u358b\u358e\u0480;Edemnprs\u350e\u350f\u3511\u3515\u351e\u3523\u352c\u3531\u3536\u6282;\u6ac5ot;\u6abd\u0100;d\u11da\u351aot;\u6ac3ult;\u6ac1\u0100Ee\u3528\u352a;\u6acb;\u628alus;\u6abfarr;\u6979\u0180eiu\u353d\u3552\u3555t\u0180;en\u350e\u3545\u354bq\u0100;q\u11da\u350feq\u0100;q\u352b\u3528m;\u6ac7\u0100bp\u355a\u355c;\u6ad5;\u6ad3c\u0300;acens\u11ed\u356c\u3572\u3579\u357b\u3326ppro\xf8\u32faurlye\xf1\u11fe\xf1\u11f3\u0180aes\u3582\u3588\u331bppro\xf8\u331aq\xf1\u3317g;\u666a\u0680123;Edehlmnps\u35a9\u35ac\u35af\u121c\u35b2\u35b4\u35c0\u35c9\u35d5\u35da\u35df\u35e8\u35ed\u803b\xb9\u40b9\u803b\xb2\u40b2\u803b\xb3\u40b3;\u6ac6\u0100os\u35b9\u35bct;\u6abeub;\u6ad8\u0100;d\u1222\u35c5ot;\u6ac4s\u0100ou\u35cf\u35d2l;\u67c9b;\u6ad7arr;\u697bult;\u6ac2\u0100Ee\u35e4\u35e6;\u6acc;\u628blus;\u6ac0\u0180eiu\u35f4\u3609\u360ct\u0180;en\u121c\u35fc\u3602q\u0100;q\u1222\u35b2eq\u0100;q\u35e7\u35e4m;\u6ac8\u0100bp\u3611\u3613;\u6ad4;\u6ad6\u0180Aan\u361c\u3620\u362drr;\u61d9r\u0100hr\u3626\u3628\xeb\u222e\u0100;o\u0a2b\u0a29war;\u692alig\u803b\xdf\u40df\u0be1\u3651\u365d\u3660\u12ce\u3673\u3679\0\u367e\u36c2\0\0\0\0\0\u36db\u3703\0\u3709\u376c\0\0\0\u3787\u0272\u3656\0\0\u365bget;\u6316;\u43c4r\xeb\u0e5f\u0180aey\u3666\u366b\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uc000\ud835\udd31\u0200eiko\u3686\u369d\u36b5\u36bc\u01f2\u368b\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369b\u43b8ym;\u43d1\u0100cn\u36a2\u36b2k\u0100as\u36a8\u36aeppro\xf8\u12c1im\xbb\u12acs\xf0\u129e\u0100as\u36ba\u36ae\xf0\u12c1rn\u803b\xfe\u40fe\u01ec\u031f\u36c6\u22e7es\u8180\xd7;bd\u36cf\u36d0\u36d8\u40d7\u0100;a\u190f\u36d5r;\u6a31;\u6a30\u0180eps\u36e1\u36e3\u3700\xe1\u2a4d\u0200;bcf\u0486\u36ec\u36f0\u36f4ot;\u6336ir;\u6af1\u0100;o\u36f9\u36fc\uc000\ud835\udd65rk;\u6ada\xe1\u3362rime;\u6034\u0180aip\u370f\u3712\u3764d\xe5\u1248\u0380adempst\u3721\u374d\u3740\u3751\u3757\u375c\u375fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65b5own\xbb\u1dbbeft\u0100;e\u2800\u373e\xf1\u092e;\u625cight\u0100;e\u32aa\u374b\xf1\u105aot;\u65ecinus;\u6a3alus;\u6a39b;\u69cdime;\u6a3bezium;\u63e2\u0180cht\u3772\u377d\u3781\u0100ry\u3777\u377b;\uc000\ud835\udcc9;\u4446cy;\u445brok;\u4167\u0100io\u378b\u378ex\xf4\u1777head\u0100lr\u3797\u37a0eftarro\xf7\u084fightarrow\xbb\u0f5d\u0900AHabcdfghlmoprstuw\u37d0\u37d3\u37d7\u37e4\u37f0\u37fc\u380e\u381c\u3823\u3834\u3851\u385d\u386b\u38a9\u38cc\u38d2\u38ea\u38f6r\xf2\u03edar;\u6963\u0100cr\u37dc\u37e2ute\u803b\xfa\u40fa\xf2\u1150r\u01e3\u37ea\0\u37edy;\u445eve;\u416d\u0100iy\u37f5\u37farc\u803b\xfb\u40fb;\u4443\u0180abh\u3803\u3806\u380br\xf2\u13adlac;\u4171a\xf2\u13c3\u0100ir\u3813\u3818sht;\u697e;\uc000\ud835\udd32rave\u803b\xf9\u40f9\u0161\u3827\u3831r\u0100lr\u382c\u382e\xbb\u0957\xbb\u1083lk;\u6580\u0100ct\u3839\u384d\u026f\u383f\0\0\u384arn\u0100;e\u3845\u3846\u631cr\xbb\u3846op;\u630fri;\u65f8\u0100al\u3856\u385acr;\u416b\u80bb\xa8\u0349\u0100gp\u3862\u3866on;\u4173f;\uc000\ud835\udd66\u0300adhlsu\u114b\u3878\u387d\u1372\u3891\u38a0own\xe1\u13b3arpoon\u0100lr\u3888\u388cef\xf4\u382digh\xf4\u382fi\u0180;hl\u3899\u389a\u389c\u43c5\xbb\u13faon\xbb\u389aparrows;\u61c8\u0180cit\u38b0\u38c4\u38c8\u026f\u38b6\0\0\u38c1rn\u0100;e\u38bc\u38bd\u631dr\xbb\u38bdop;\u630eng;\u416fri;\u65f9cr;\uc000\ud835\udcca\u0180dir\u38d9\u38dd\u38e2ot;\u62f0lde;\u4169i\u0100;f\u3730\u38e8\xbb\u1813\u0100am\u38ef\u38f2r\xf2\u38a8l\u803b\xfc\u40fcangle;\u69a7\u0780ABDacdeflnoprsz\u391c\u391f\u3929\u392d\u39b5\u39b8\u39bd\u39df\u39e4\u39e8\u39f3\u39f9\u39fd\u3a01\u3a20r\xf2\u03f7ar\u0100;v\u3926\u3927\u6ae8;\u6ae9as\xe8\u03e1\u0100nr\u3932\u3937grt;\u699c\u0380eknprst\u34e3\u3946\u394b\u3952\u395d\u3964\u3996app\xe1\u2415othin\xe7\u1e96\u0180hir\u34eb\u2ec8\u3959op\xf4\u2fb5\u0100;h\u13b7\u3962\xef\u318d\u0100iu\u3969\u396dgm\xe1\u33b3\u0100bp\u3972\u3984setneq\u0100;q\u397d\u3980\uc000\u228a\ufe00;\uc000\u2acb\ufe00setneq\u0100;q\u398f\u3992\uc000\u228b\ufe00;\uc000\u2acc\ufe00\u0100hr\u399b\u399fet\xe1\u369ciangle\u0100lr\u39aa\u39afeft\xbb\u0925ight\xbb\u1051y;\u4432ash\xbb\u1036\u0180elr\u39c4\u39d2\u39d7\u0180;be\u2dea\u39cb\u39cfar;\u62bbq;\u625alip;\u62ee\u0100bt\u39dc\u1468a\xf2\u1469r;\uc000\ud835\udd33tr\xe9\u39aesu\u0100bp\u39ef\u39f1\xbb\u0d1c\xbb\u0d59pf;\uc000\ud835\udd67ro\xf0\u0efbtr\xe9\u39b4\u0100cu\u3a06\u3a0br;\uc000\ud835\udccb\u0100bp\u3a10\u3a18n\u0100Ee\u3980\u3a16\xbb\u397en\u0100Ee\u3992\u3a1e\xbb\u3990igzag;\u699a\u0380cefoprs\u3a36\u3a3b\u3a56\u3a5b\u3a54\u3a61\u3a6airc;\u4175\u0100di\u3a40\u3a51\u0100bg\u3a45\u3a49ar;\u6a5fe\u0100;q\u15fa\u3a4f;\u6259erp;\u6118r;\uc000\ud835\udd34pf;\uc000\ud835\udd68\u0100;e\u1479\u3a66at\xe8\u1479cr;\uc000\ud835\udccc\u0ae3\u178e\u3a87\0\u3a8b\0\u3a90\u3a9b\0\0\u3a9d\u3aa8\u3aab\u3aaf\0\0\u3ac3\u3ace\0\u3ad8\u17dc\u17dftr\xe9\u17d1r;\uc000\ud835\udd35\u0100Aa\u3a94\u3a97r\xf2\u03c3r\xf2\u09f6;\u43be\u0100Aa\u3aa1\u3aa4r\xf2\u03b8r\xf2\u09eba\xf0\u2713is;\u62fb\u0180dpt\u17a4\u3ab5\u3abe\u0100fl\u3aba\u17a9;\uc000\ud835\udd69im\xe5\u17b2\u0100Aa\u3ac7\u3acar\xf2\u03cer\xf2\u0a01\u0100cq\u3ad2\u17b8r;\uc000\ud835\udccd\u0100pt\u17d6\u3adcr\xe9\u17d4\u0400acefiosu\u3af0\u3afd\u3b08\u3b0c\u3b11\u3b15\u3b1b\u3b21c\u0100uy\u3af6\u3afbte\u803b\xfd\u40fd;\u444f\u0100iy\u3b02\u3b06rc;\u4177;\u444bn\u803b\xa5\u40a5r;\uc000\ud835\udd36cy;\u4457pf;\uc000\ud835\udd6acr;\uc000\ud835\udcce\u0100cm\u3b26\u3b29y;\u444el\u803b\xff\u40ff\u0500acdefhiosw\u3b42\u3b48\u3b54\u3b58\u3b64\u3b69\u3b6d\u3b74\u3b7a\u3b80cute;\u417a\u0100ay\u3b4d\u3b52ron;\u417e;\u4437ot;\u417c\u0100et\u3b5d\u3b61tr\xe6\u155fa;\u43b6r;\uc000\ud835\udd37cy;\u4436grarr;\u61ddpf;\uc000\ud835\udd6bcr;\uc000\ud835\udccf\u0100jn\u3b85\u3b87;\u600dj;\u600c'.split("").map(e=>e.charCodeAt(0)));var Pp;const Dp=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);Pp=String.fromCodePoint;function Mp(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=Dp.get(e))&&void 0!==t?t:e}var Np;!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(Np||(Np={}));var Rp,Ip,Qp;function Lp(e){return e>=Np.ZERO&&e<=Np.NINE}function Fp(e){return e>=Np.UPPER_A&&e<=Np.UPPER_F||e>=Np.LOWER_A&&e<=Np.LOWER_F}function $p(e){return e===Np.EQUALS||function(e){return e>=Np.UPPER_A&&e<=Np.UPPER_Z||e>=Np.LOWER_A&&e<=Np.LOWER_Z||Lp(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(Rp||(Rp={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(Ip||(Ip={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(Qp||(Qp={}));class Bp{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=Ip.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Qp.Strict}startEntity(e){this.decodeMode=e,this.state=Ip.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case Ip.EntityStart:return e.charCodeAt(t)===Np.NUM?(this.state=Ip.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Ip.NamedEntity,this.stateNamedEntity(e,t));case Ip.NumericStart:return this.stateNumericStart(e,t);case Ip.NumericDecimal:return this.stateNumericDecimal(e,t);case Ip.NumericHex:return this.stateNumericHex(e,t);case Ip.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===Np.LOWER_X?(this.state=Ip.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Ip.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const i=n-t;this.result=this.result*Math.pow(r,i)+Number.parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){const n=t;for(;t>14;for(;t>14,0!==i){if(o===Np.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Qp.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&Rp.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~Rp.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case Ip.NamedEntity:return 0===this.result||this.decodeMode===Qp.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case Ip.NumericDecimal:return this.emitNumericEntity(0,2);case Ip.NumericHex:return this.emitNumericEntity(0,3);case Ip.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ip.EntityStart:return 0}}}function zp(e,t,n,r){const i=(t&Rp.BRANCH_LENGTH)>>7,o=t&Rp.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){const t=r-o;return t<0||t>=i?-1:e[n+t]-1}let s=n,a=s+i-1;for(;s<=a;){const t=s+a>>>1,n=e[t];if(nr))return e[t+i];a=t-1}}return-1}var Hp,qp,Up,jp,Xp;!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"}(Hp||(Hp={})),function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"}(qp||(qp={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(Up||(Up={})),function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(jp||(jp={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"}(Xp||(Xp={}));const Zp=new Map([[jp.A,Xp.A],[jp.ADDRESS,Xp.ADDRESS],[jp.ANNOTATION_XML,Xp.ANNOTATION_XML],[jp.APPLET,Xp.APPLET],[jp.AREA,Xp.AREA],[jp.ARTICLE,Xp.ARTICLE],[jp.ASIDE,Xp.ASIDE],[jp.B,Xp.B],[jp.BASE,Xp.BASE],[jp.BASEFONT,Xp.BASEFONT],[jp.BGSOUND,Xp.BGSOUND],[jp.BIG,Xp.BIG],[jp.BLOCKQUOTE,Xp.BLOCKQUOTE],[jp.BODY,Xp.BODY],[jp.BR,Xp.BR],[jp.BUTTON,Xp.BUTTON],[jp.CAPTION,Xp.CAPTION],[jp.CENTER,Xp.CENTER],[jp.CODE,Xp.CODE],[jp.COL,Xp.COL],[jp.COLGROUP,Xp.COLGROUP],[jp.DD,Xp.DD],[jp.DESC,Xp.DESC],[jp.DETAILS,Xp.DETAILS],[jp.DIALOG,Xp.DIALOG],[jp.DIR,Xp.DIR],[jp.DIV,Xp.DIV],[jp.DL,Xp.DL],[jp.DT,Xp.DT],[jp.EM,Xp.EM],[jp.EMBED,Xp.EMBED],[jp.FIELDSET,Xp.FIELDSET],[jp.FIGCAPTION,Xp.FIGCAPTION],[jp.FIGURE,Xp.FIGURE],[jp.FONT,Xp.FONT],[jp.FOOTER,Xp.FOOTER],[jp.FOREIGN_OBJECT,Xp.FOREIGN_OBJECT],[jp.FORM,Xp.FORM],[jp.FRAME,Xp.FRAME],[jp.FRAMESET,Xp.FRAMESET],[jp.H1,Xp.H1],[jp.H2,Xp.H2],[jp.H3,Xp.H3],[jp.H4,Xp.H4],[jp.H5,Xp.H5],[jp.H6,Xp.H6],[jp.HEAD,Xp.HEAD],[jp.HEADER,Xp.HEADER],[jp.HGROUP,Xp.HGROUP],[jp.HR,Xp.HR],[jp.HTML,Xp.HTML],[jp.I,Xp.I],[jp.IMG,Xp.IMG],[jp.IMAGE,Xp.IMAGE],[jp.INPUT,Xp.INPUT],[jp.IFRAME,Xp.IFRAME],[jp.KEYGEN,Xp.KEYGEN],[jp.LABEL,Xp.LABEL],[jp.LI,Xp.LI],[jp.LINK,Xp.LINK],[jp.LISTING,Xp.LISTING],[jp.MAIN,Xp.MAIN],[jp.MALIGNMARK,Xp.MALIGNMARK],[jp.MARQUEE,Xp.MARQUEE],[jp.MATH,Xp.MATH],[jp.MENU,Xp.MENU],[jp.META,Xp.META],[jp.MGLYPH,Xp.MGLYPH],[jp.MI,Xp.MI],[jp.MO,Xp.MO],[jp.MN,Xp.MN],[jp.MS,Xp.MS],[jp.MTEXT,Xp.MTEXT],[jp.NAV,Xp.NAV],[jp.NOBR,Xp.NOBR],[jp.NOFRAMES,Xp.NOFRAMES],[jp.NOEMBED,Xp.NOEMBED],[jp.NOSCRIPT,Xp.NOSCRIPT],[jp.OBJECT,Xp.OBJECT],[jp.OL,Xp.OL],[jp.OPTGROUP,Xp.OPTGROUP],[jp.OPTION,Xp.OPTION],[jp.P,Xp.P],[jp.PARAM,Xp.PARAM],[jp.PLAINTEXT,Xp.PLAINTEXT],[jp.PRE,Xp.PRE],[jp.RB,Xp.RB],[jp.RP,Xp.RP],[jp.RT,Xp.RT],[jp.RTC,Xp.RTC],[jp.RUBY,Xp.RUBY],[jp.S,Xp.S],[jp.SCRIPT,Xp.SCRIPT],[jp.SEARCH,Xp.SEARCH],[jp.SECTION,Xp.SECTION],[jp.SELECT,Xp.SELECT],[jp.SOURCE,Xp.SOURCE],[jp.SMALL,Xp.SMALL],[jp.SPAN,Xp.SPAN],[jp.STRIKE,Xp.STRIKE],[jp.STRONG,Xp.STRONG],[jp.STYLE,Xp.STYLE],[jp.SUB,Xp.SUB],[jp.SUMMARY,Xp.SUMMARY],[jp.SUP,Xp.SUP],[jp.TABLE,Xp.TABLE],[jp.TBODY,Xp.TBODY],[jp.TEMPLATE,Xp.TEMPLATE],[jp.TEXTAREA,Xp.TEXTAREA],[jp.TFOOT,Xp.TFOOT],[jp.TD,Xp.TD],[jp.TH,Xp.TH],[jp.THEAD,Xp.THEAD],[jp.TITLE,Xp.TITLE],[jp.TR,Xp.TR],[jp.TRACK,Xp.TRACK],[jp.TT,Xp.TT],[jp.U,Xp.U],[jp.UL,Xp.UL],[jp.SVG,Xp.SVG],[jp.VAR,Xp.VAR],[jp.WBR,Xp.WBR],[jp.XMP,Xp.XMP]]);function Yp(e){var t;return null!==(t=Zp.get(e))&&void 0!==t?t:Xp.UNKNOWN}const Gp=Xp,Vp={[Hp.HTML]:new Set([Gp.ADDRESS,Gp.APPLET,Gp.AREA,Gp.ARTICLE,Gp.ASIDE,Gp.BASE,Gp.BASEFONT,Gp.BGSOUND,Gp.BLOCKQUOTE,Gp.BODY,Gp.BR,Gp.BUTTON,Gp.CAPTION,Gp.CENTER,Gp.COL,Gp.COLGROUP,Gp.DD,Gp.DETAILS,Gp.DIR,Gp.DIV,Gp.DL,Gp.DT,Gp.EMBED,Gp.FIELDSET,Gp.FIGCAPTION,Gp.FIGURE,Gp.FOOTER,Gp.FORM,Gp.FRAME,Gp.FRAMESET,Gp.H1,Gp.H2,Gp.H3,Gp.H4,Gp.H5,Gp.H6,Gp.HEAD,Gp.HEADER,Gp.HGROUP,Gp.HR,Gp.HTML,Gp.IFRAME,Gp.IMG,Gp.INPUT,Gp.LI,Gp.LINK,Gp.LISTING,Gp.MAIN,Gp.MARQUEE,Gp.MENU,Gp.META,Gp.NAV,Gp.NOEMBED,Gp.NOFRAMES,Gp.NOSCRIPT,Gp.OBJECT,Gp.OL,Gp.P,Gp.PARAM,Gp.PLAINTEXT,Gp.PRE,Gp.SCRIPT,Gp.SECTION,Gp.SELECT,Gp.SOURCE,Gp.STYLE,Gp.SUMMARY,Gp.TABLE,Gp.TBODY,Gp.TD,Gp.TEMPLATE,Gp.TEXTAREA,Gp.TFOOT,Gp.TH,Gp.THEAD,Gp.TITLE,Gp.TR,Gp.TRACK,Gp.UL,Gp.WBR,Gp.XMP]),[Hp.MATHML]:new Set([Gp.MI,Gp.MO,Gp.MN,Gp.MS,Gp.MTEXT,Gp.ANNOTATION_XML]),[Hp.SVG]:new Set([Gp.TITLE,Gp.FOREIGN_OBJECT,Gp.DESC]),[Hp.XLINK]:new Set,[Hp.XML]:new Set,[Hp.XMLNS]:new Set},Wp=new Set([Gp.H1,Gp.H2,Gp.H3,Gp.H4,Gp.H5,Gp.H6]);new Set([jp.STYLE,jp.SCRIPT,jp.XMP,jp.IFRAME,jp.NOEMBED,jp.NOFRAMES,jp.PLAINTEXT]);var Kp;!function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"}(Kp||(Kp={}));const Jp={DATA:Kp.DATA,RCDATA:Kp.RCDATA,RAWTEXT:Kp.RAWTEXT,SCRIPT_DATA:Kp.SCRIPT_DATA,PLAINTEXT:Kp.PLAINTEXT,CDATA_SECTION:Kp.CDATA_SECTION};function ef(e){return e>=mp.LATIN_CAPITAL_A&&e<=mp.LATIN_CAPITAL_Z}function tf(e){return function(e){return e>=mp.LATIN_SMALL_A&&e<=mp.LATIN_SMALL_Z}(e)||ef(e)}function nf(e){return tf(e)||function(e){return e>=mp.DIGIT_0&&e<=mp.DIGIT_9}(e)}function rf(e){return e+32}function of(e){return e===mp.SPACE||e===mp.LINE_FEED||e===mp.TABULATION||e===mp.FORM_FEED}function sf(e){return of(e)||e===mp.SOLIDUS||e===mp.GREATER_THAN_SIGN}class af{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Kp.DATA,this.returnState=Kp.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Tp(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Bp(_p,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Ap.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(Ap.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=function(e){return e===mp.NULL?Ap.nullCharacterReference:e>1114111?Ap.characterReferenceOutsideUnicodeRange:kp(e)?Ap.surrogateCharacterReference:Sp(e)?Ap.noncharacterCharacterReference:wp(e)||e===mp.CARRIAGE_RETURN?Ap.controlCharacterReference:null}(e);t&&this._err(t,1)}}:void 0)}_err(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var n,r;null===(r=(n=this.handler).onParseError)||void 0===r||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null===e||void 0===e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null===n||void 0===n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t0&&this._err(Ap.endTagWithAttributes),e.selfClosing&&this._err(Ap.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case Ep.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case Ep.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case Ep.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:Ep.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=of(e)?Ep.WHITESPACE_CHARACTER:e===mp.NULL?Ep.NULL_CHARACTER:Ep.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Ep.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=Kp.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Qp.Attribute:Qp.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Kp.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Kp.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Kp.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case Kp.DATA:this._stateData(e);break;case Kp.RCDATA:this._stateRcdata(e);break;case Kp.RAWTEXT:this._stateRawtext(e);break;case Kp.SCRIPT_DATA:this._stateScriptData(e);break;case Kp.PLAINTEXT:this._statePlaintext(e);break;case Kp.TAG_OPEN:this._stateTagOpen(e);break;case Kp.END_TAG_OPEN:this._stateEndTagOpen(e);break;case Kp.TAG_NAME:this._stateTagName(e);break;case Kp.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case Kp.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case Kp.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case Kp.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case Kp.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case Kp.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case Kp.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case Kp.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case Kp.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case Kp.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case Kp.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case Kp.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case Kp.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case Kp.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case Kp.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case Kp.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case Kp.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case Kp.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case Kp.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case Kp.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case Kp.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case Kp.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case Kp.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case Kp.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case Kp.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case Kp.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case Kp.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case Kp.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case Kp.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case Kp.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case Kp.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case Kp.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case Kp.BOGUS_COMMENT:this._stateBogusComment(e);break;case Kp.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case Kp.COMMENT_START:this._stateCommentStart(e);break;case Kp.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case Kp.COMMENT:this._stateComment(e);break;case Kp.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case Kp.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case Kp.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case Kp.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case Kp.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case Kp.COMMENT_END:this._stateCommentEnd(e);break;case Kp.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case Kp.DOCTYPE:this._stateDoctype(e);break;case Kp.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case Kp.DOCTYPE_NAME:this._stateDoctypeName(e);break;case Kp.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case Kp.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case Kp.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case Kp.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case Kp.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case Kp.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case Kp.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case Kp.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case Kp.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case Kp.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case Kp.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case Kp.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case Kp.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case Kp.CDATA_SECTION:this._stateCdataSection(e);break;case Kp.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case Kp.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case Kp.CHARACTER_REFERENCE:this._stateCharacterReference();break;case Kp.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case mp.LESS_THAN_SIGN:this.state=Kp.TAG_OPEN;break;case mp.AMPERSAND:this._startCharacterReference();break;case mp.NULL:this._err(Ap.unexpectedNullCharacter),this._emitCodePoint(e);break;case mp.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case mp.AMPERSAND:this._startCharacterReference();break;case mp.LESS_THAN_SIGN:this.state=Kp.RCDATA_LESS_THAN_SIGN;break;case mp.NULL:this._err(Ap.unexpectedNullCharacter),this._emitChars(fp);break;case mp.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case mp.LESS_THAN_SIGN:this.state=Kp.RAWTEXT_LESS_THAN_SIGN;break;case mp.NULL:this._err(Ap.unexpectedNullCharacter),this._emitChars(fp);break;case mp.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case mp.LESS_THAN_SIGN:this.state=Kp.SCRIPT_DATA_LESS_THAN_SIGN;break;case mp.NULL:this._err(Ap.unexpectedNullCharacter),this._emitChars(fp);break;case mp.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case mp.NULL:this._err(Ap.unexpectedNullCharacter),this._emitChars(fp);break;case mp.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(tf(e))this._createStartTagToken(),this.state=Kp.TAG_NAME,this._stateTagName(e);else switch(e){case mp.EXCLAMATION_MARK:this.state=Kp.MARKUP_DECLARATION_OPEN;break;case mp.SOLIDUS:this.state=Kp.END_TAG_OPEN;break;case mp.QUESTION_MARK:this._err(Ap.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Kp.BOGUS_COMMENT,this._stateBogusComment(e);break;case mp.EOF:this._err(Ap.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(Ap.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Kp.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(tf(e))this._createEndTagToken(),this.state=Kp.TAG_NAME,this._stateTagName(e);else switch(e){case mp.GREATER_THAN_SIGN:this._err(Ap.missingEndTagName),this.state=Kp.DATA;break;case mp.EOF:this._err(Ap.eofBeforeTagName),this._emitChars("");break;case mp.NULL:this._err(Ap.unexpectedNullCharacter),this.state=Kp.SCRIPT_DATA_ESCAPED,this._emitChars(fp);break;case mp.EOF:this._err(Ap.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Kp.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===mp.SOLIDUS?this.state=Kp.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:tf(e)?(this._emitChars("<"),this.state=Kp.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=Kp.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){tf(e)?(this.state=Kp.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break;case mp.NULL:this._err(Ap.unexpectedNullCharacter),this.state=Kp.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(fp);break;case mp.EOF:this._err(Ap.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Kp.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===mp.SOLIDUS?(this.state=Kp.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Kp.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(yp,!1)&&sf(this.preprocessor.peek(yp.length))){this._emitCodePoint(e);for(let e=0;e0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==Hp.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(Of,Hp.HTML)}clearBackToTableBodyContext(){this.clearBackTo(gf,Hp.HTML)}clearBackToTableRowContext(){this.clearBackTo(mf,Hp.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===Xp.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===Xp.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case Hp.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case Hp.SVG:if(ff.has(r))return!1;break;case Hp.MATHML:if(pf.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,uf)}hasInListItemScope(e){return this.hasInDynamicScope(e,hf)}hasInButtonScope(e){return this.hasInDynamicScope(e,df)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case Hp.HTML:if(Wp.has(t))return!0;if(uf.has(t))return!1;break;case Hp.SVG:if(ff.has(t))return!1;break;case Hp.MATHML:if(pf.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Hp.HTML)switch(this.tagIDs[t]){case e:return!0;case Xp.TABLE:case Xp.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===Hp.HTML)switch(this.tagIDs[e]){case Xp.TBODY:case Xp.THEAD:case Xp.TFOOT:return!0;case Xp.TABLE:case Xp.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Hp.HTML)switch(this.tagIDs[t]){case e:return!0;case Xp.OPTION:case Xp.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&lf.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&cf.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&cf.has(this.currentTagId);)this.pop()}}var vf;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(vf||(vf={}));const xf={type:vf.Marker};class kf{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,i=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let s=0;s[e.name,e.value]));let i=0;for(let o=0;or.get(e.name)===e.value)&&(i+=1,i>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(xf)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:vf.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:vf.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(xf);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const t=this.entries.find(t=>t.type===vf.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===vf.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===vf.Element&&t.element===e)}}const wf={createDocument:()=>({nodeName:"#document",mode:Up.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){const i=e.childNodes.find(e=>"#documentType"===e.nodeName);if(i)i.name=t,i.publicId=n,i.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};wf.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(wf.isTextNode(n))return void(n.value+=t)}wf.appendChild(e,wf.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&wf.isTextNode(r)?r.value+=t:wf.insertBefore(e,wf.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(e=>e.name));for(let r=0;re.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Sf="html",Af=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Tf=[...Af,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Ef=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Cf=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],_f=[...Cf,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Pf(e,t){return t.some(t=>e.startsWith(t))}const Df="text/html",Mf="application/xhtml+xml",Nf=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Rf=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Hp.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Hp.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Hp.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Hp.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Hp.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Hp.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Hp.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Hp.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Hp.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Hp.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Hp.XMLNS}]]),If=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Qf=new Set([Xp.B,Xp.BIG,Xp.BLOCKQUOTE,Xp.BODY,Xp.BR,Xp.CENTER,Xp.CODE,Xp.DD,Xp.DIV,Xp.DL,Xp.DT,Xp.EM,Xp.EMBED,Xp.H1,Xp.H2,Xp.H3,Xp.H4,Xp.H5,Xp.H6,Xp.HEAD,Xp.HR,Xp.I,Xp.IMG,Xp.LI,Xp.LISTING,Xp.MENU,Xp.META,Xp.NOBR,Xp.OL,Xp.P,Xp.PRE,Xp.RUBY,Xp.S,Xp.SMALL,Xp.SPAN,Xp.STRONG,Xp.STRIKE,Xp.SUB,Xp.SUP,Xp.TABLE,Xp.TT,Xp.U,Xp.UL,Xp.VAR]);function Lf(e){for(let t=0;t2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=zf.INITIAL,this.originalInsertionMode=zf.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Uf,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!==t&&void 0!==t?t:this.treeAdapter.createDocument(),this.tokenizer=new af(this.options,this),this.activeFormattingElements=new kf(this.treeAdapter),this.fragmentContextID=n?Yp(this.treeAdapter.getTagName(n)):Xp.UNKNOWN,this._setContextModes(null!==n&&void 0!==n?n:this.document,this.fragmentContextID),this.openElements=new yf(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...Uf,...t};null!==e&&void 0!==e||(e=n.treeAdapter.createElement(jp.TEMPLATE,Hp.HTML,[]));const r=n.treeAdapter.createElement("documentmock",Hp.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===Xp.TEMPLATE&&i.tmplInsertionModeStack.unshift(zf.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const i=null!==(r=e.location)&&void 0!==r?r:Hf,o={code:t,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset};this.onParseError(o)}onItemPush(e,t,n){var r,i;null===(i=(r=this.treeAdapter).onItemPush)||void 0===i||i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===Hp.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,Hp.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=zf.TEXT}switchToPlaintextParsing(){this.insertionMode=zf.TEXT,this.originalInsertionMode=zf.IN_BODY,this.tokenizer.state=Jp.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===jp.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===Hp.HTML)switch(this.fragmentContextID){case Xp.TITLE:case Xp.TEXTAREA:this.tokenizer.state=Jp.RCDATA;break;case Xp.STYLE:case Xp.XMP:case Xp.IFRAME:case Xp.NOEMBED:case Xp.NOFRAMES:case Xp.NOSCRIPT:this.tokenizer.state=Jp.RAWTEXT;break;case Xp.SCRIPT:this.tokenizer.state=Jp.SCRIPT_DATA;break;case Xp.PLAINTEXT:this.tokenizer.state=Jp.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!==t&&void 0!==t?t:this.document,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,Hp.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,Hp.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(jp.HTML,Hp.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,Xp.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),i=n?r.lastIndexOf(n):r.length,o=r[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===Ep.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==Xp.SVG||this.treeAdapter.getTagName(t)!==jp.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==Hp.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===Xp.MGLYPH||e.tagID===Xp.MALIGNMARK)&&void 0!==n&&!this._isIntegrationPoint(n,t,Hp.HTML))}_processToken(e){switch(e.type){case Ep.CHARACTER:this.onCharacter(e);break;case Ep.NULL_CHARACTER:this.onNullCharacter(e);break;case Ep.COMMENT:this.onComment(e);break;case Ep.DOCTYPE:this.onDoctype(e);break;case Ep.START_TAG:this._processStartTag(e);break;case Ep.END_TAG:this.onEndTag(e);break;case Ep.EOF:this.onEof(e);break;case Ep.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return Bf(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex(e=>e.type===vf.Marker||this.openElements.contains(e.element));for(let n=-1===t?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=zf.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Xp.P),this.openElements.popUntilTagNamePopped(Xp.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case Xp.TR:return void(this.insertionMode=zf.IN_ROW);case Xp.TBODY:case Xp.THEAD:case Xp.TFOOT:return void(this.insertionMode=zf.IN_TABLE_BODY);case Xp.CAPTION:return void(this.insertionMode=zf.IN_CAPTION);case Xp.COLGROUP:return void(this.insertionMode=zf.IN_COLUMN_GROUP);case Xp.TABLE:return void(this.insertionMode=zf.IN_TABLE);case Xp.BODY:return void(this.insertionMode=zf.IN_BODY);case Xp.FRAMESET:return void(this.insertionMode=zf.IN_FRAMESET);case Xp.SELECT:return void this._resetInsertionModeForSelect(e);case Xp.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case Xp.HTML:return void(this.insertionMode=this.headElement?zf.AFTER_HEAD:zf.BEFORE_HEAD);case Xp.TD:case Xp.TH:if(e>0)return void(this.insertionMode=zf.IN_CELL);break;case Xp.HEAD:if(e>0)return void(this.insertionMode=zf.IN_HEAD)}this.insertionMode=zf.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===Xp.TEMPLATE)break;if(e===Xp.TABLE)return void(this.insertionMode=zf.IN_SELECT_IN_TABLE)}this.insertionMode=zf.IN_SELECT}_isElementCausesFosterParenting(e){return qf.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case Xp.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===Hp.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case Xp.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return Vp[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case zf.INITIAL:tm(this,e);break;case zf.BEFORE_HTML:nm(this,e);break;case zf.BEFORE_HEAD:rm(this,e);break;case zf.IN_HEAD:sm(this,e);break;case zf.IN_HEAD_NO_SCRIPT:am(this,e);break;case zf.AFTER_HEAD:lm(this,e);break;case zf.IN_BODY:case zf.IN_CAPTION:case zf.IN_CELL:case zf.IN_TEMPLATE:hm(this,e);break;case zf.TEXT:case zf.IN_SELECT:case zf.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case zf.IN_TABLE:case zf.IN_TABLE_BODY:case zf.IN_ROW:vm(this,e);break;case zf.IN_TABLE_TEXT:Am(this,e);break;case zf.IN_COLUMN_GROUP:_m(this,e);break;case zf.AFTER_BODY:Fm(this,e);break;case zf.AFTER_AFTER_BODY:$m(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=fp,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case zf.INITIAL:tm(this,e);break;case zf.BEFORE_HTML:nm(this,e);break;case zf.BEFORE_HEAD:rm(this,e);break;case zf.IN_HEAD:sm(this,e);break;case zf.IN_HEAD_NO_SCRIPT:am(this,e);break;case zf.AFTER_HEAD:lm(this,e);break;case zf.TEXT:this._insertCharacters(e);break;case zf.IN_TABLE:case zf.IN_TABLE_BODY:case zf.IN_ROW:vm(this,e);break;case zf.IN_COLUMN_GROUP:_m(this,e);break;case zf.AFTER_BODY:Fm(this,e);break;case zf.AFTER_AFTER_BODY:$m(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)Jf(this,e);else switch(this.insertionMode){case zf.INITIAL:case zf.BEFORE_HTML:case zf.BEFORE_HEAD:case zf.IN_HEAD:case zf.IN_HEAD_NO_SCRIPT:case zf.AFTER_HEAD:case zf.IN_BODY:case zf.IN_TABLE:case zf.IN_CAPTION:case zf.IN_COLUMN_GROUP:case zf.IN_TABLE_BODY:case zf.IN_ROW:case zf.IN_CELL:case zf.IN_SELECT:case zf.IN_SELECT_IN_TABLE:case zf.IN_TEMPLATE:case zf.IN_FRAMESET:case zf.AFTER_FRAMESET:Jf(this,e);break;case zf.IN_TABLE_TEXT:Tm(this,e);break;case zf.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case zf.AFTER_AFTER_BODY:case zf.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case zf.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?Up.QUIRKS:function(e){if(e.name!==Sf)return Up.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return Up.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),Ef.has(n))return Up.QUIRKS;let e=null===t?Tf:Af;if(Pf(n,e))return Up.QUIRKS;if(e=null===t?Cf:_f,Pf(n,e))return Up.LIMITED_QUIRKS}return Up.NO_QUIRKS}(t);(function(e){return e.name===Sf&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,Ap.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=zf.BEFORE_HTML}(this,e);break;case zf.BEFORE_HEAD:case zf.IN_HEAD:case zf.IN_HEAD_NO_SCRIPT:case zf.AFTER_HEAD:this._err(e,Ap.misplacedDoctype);break;case zf.IN_TABLE_TEXT:Tm(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,Ap.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===Xp.FONT&&e.attrs.some(e=>{let{name:t}=e;return t===qp.COLOR||t===qp.SIZE||t===qp.FACE})||Qf.has(t)}(t))Bm(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Hp.MATHML?Lf(t):r===Hp.SVG&&(!function(e){const t=If.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=Yp(e.tagName))}(t),Ff(t)),$f(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case zf.INITIAL:tm(this,e);break;case zf.BEFORE_HTML:!function(e,t){t.tagID===Xp.HTML?(e._insertElement(t,Hp.HTML),e.insertionMode=zf.BEFORE_HEAD):nm(e,t)}(this,e);break;case zf.BEFORE_HEAD:!function(e,t){switch(t.tagID){case Xp.HTML:gm(e,t);break;case Xp.HEAD:e._insertElement(t,Hp.HTML),e.headElement=e.openElements.current,e.insertionMode=zf.IN_HEAD;break;default:rm(e,t)}}(this,e);break;case zf.IN_HEAD:im(this,e);break;case zf.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Xp.HTML:gm(e,t);break;case Xp.BASEFONT:case Xp.BGSOUND:case Xp.HEAD:case Xp.LINK:case Xp.META:case Xp.NOFRAMES:case Xp.STYLE:im(e,t);break;case Xp.NOSCRIPT:e._err(t,Ap.nestedNoscriptInHead);break;default:am(e,t)}}(this,e);break;case zf.AFTER_HEAD:!function(e,t){switch(t.tagID){case Xp.HTML:gm(e,t);break;case Xp.BODY:e._insertElement(t,Hp.HTML),e.framesetOk=!1,e.insertionMode=zf.IN_BODY;break;case Xp.FRAMESET:e._insertElement(t,Hp.HTML),e.insertionMode=zf.IN_FRAMESET;break;case Xp.BASE:case Xp.BASEFONT:case Xp.BGSOUND:case Xp.LINK:case Xp.META:case Xp.NOFRAMES:case Xp.SCRIPT:case Xp.STYLE:case Xp.TEMPLATE:case Xp.TITLE:e._err(t,Ap.abandonedHeadElementChild),e.openElements.push(e.headElement,Xp.HEAD),im(e,t),e.openElements.remove(e.headElement);break;case Xp.HEAD:e._err(t,Ap.misplacedStartTagForHeadElement);break;default:lm(e,t)}}(this,e);break;case zf.IN_BODY:gm(this,e);break;case zf.IN_TABLE:xm(this,e);break;case zf.IN_TABLE_TEXT:Tm(this,e);break;case zf.IN_CAPTION:!function(e,t){const n=t.tagID;Em.has(n)?e.openElements.hasInTableScope(Xp.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Xp.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=zf.IN_TABLE,xm(e,t)):gm(e,t)}(this,e);break;case zf.IN_COLUMN_GROUP:Cm(this,e);break;case zf.IN_TABLE_BODY:Pm(this,e);break;case zf.IN_ROW:Mm(this,e);break;case zf.IN_CELL:!function(e,t){const n=t.tagID;Em.has(n)?(e.openElements.hasInTableScope(Xp.TD)||e.openElements.hasInTableScope(Xp.TH))&&(e._closeTableCell(),Mm(e,t)):gm(e,t)}(this,e);break;case zf.IN_SELECT:Rm(this,e);break;case zf.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===Xp.CAPTION||n===Xp.TABLE||n===Xp.TBODY||n===Xp.TFOOT||n===Xp.THEAD||n===Xp.TR||n===Xp.TD||n===Xp.TH?(e.openElements.popUntilTagNamePopped(Xp.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Rm(e,t)}(this,e);break;case zf.IN_TEMPLATE:!function(e,t){switch(t.tagID){case Xp.BASE:case Xp.BASEFONT:case Xp.BGSOUND:case Xp.LINK:case Xp.META:case Xp.NOFRAMES:case Xp.SCRIPT:case Xp.STYLE:case Xp.TEMPLATE:case Xp.TITLE:im(e,t);break;case Xp.CAPTION:case Xp.COLGROUP:case Xp.TBODY:case Xp.TFOOT:case Xp.THEAD:e.tmplInsertionModeStack[0]=zf.IN_TABLE,e.insertionMode=zf.IN_TABLE,xm(e,t);break;case Xp.COL:e.tmplInsertionModeStack[0]=zf.IN_COLUMN_GROUP,e.insertionMode=zf.IN_COLUMN_GROUP,Cm(e,t);break;case Xp.TR:e.tmplInsertionModeStack[0]=zf.IN_TABLE_BODY,e.insertionMode=zf.IN_TABLE_BODY,Pm(e,t);break;case Xp.TD:case Xp.TH:e.tmplInsertionModeStack[0]=zf.IN_ROW,e.insertionMode=zf.IN_ROW,Mm(e,t);break;default:e.tmplInsertionModeStack[0]=zf.IN_BODY,e.insertionMode=zf.IN_BODY,gm(e,t)}}(this,e);break;case zf.AFTER_BODY:!function(e,t){t.tagID===Xp.HTML?gm(e,t):Fm(e,t)}(this,e);break;case zf.IN_FRAMESET:!function(e,t){switch(t.tagID){case Xp.HTML:gm(e,t);break;case Xp.FRAMESET:e._insertElement(t,Hp.HTML);break;case Xp.FRAME:e._appendElement(t,Hp.HTML),t.ackSelfClosing=!0;break;case Xp.NOFRAMES:im(e,t)}}(this,e);break;case zf.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Xp.HTML:gm(e,t);break;case Xp.NOFRAMES:im(e,t)}}(this,e);break;case zf.AFTER_AFTER_BODY:!function(e,t){t.tagID===Xp.HTML?gm(e,t):$m(e,t)}(this,e);break;case zf.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Xp.HTML:gm(e,t);break;case Xp.NOFRAMES:im(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===Xp.P||t.tagID===Xp.BR)return Bm(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Hp.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case zf.INITIAL:tm(this,e);break;case zf.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==Xp.HTML&&n!==Xp.HEAD&&n!==Xp.BODY&&n!==Xp.BR||nm(e,t)}(this,e);break;case zf.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===Xp.HEAD||n===Xp.BODY||n===Xp.HTML||n===Xp.BR?rm(e,t):e._err(t,Ap.endTagWithoutMatchingOpenElement)}(this,e);break;case zf.IN_HEAD:!function(e,t){switch(t.tagID){case Xp.HEAD:e.openElements.pop(),e.insertionMode=zf.AFTER_HEAD;break;case Xp.BODY:case Xp.BR:case Xp.HTML:sm(e,t);break;case Xp.TEMPLATE:om(e,t);break;default:e._err(t,Ap.endTagWithoutMatchingOpenElement)}}(this,e);break;case zf.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Xp.NOSCRIPT:e.openElements.pop(),e.insertionMode=zf.IN_HEAD;break;case Xp.BR:am(e,t);break;default:e._err(t,Ap.endTagWithoutMatchingOpenElement)}}(this,e);break;case zf.AFTER_HEAD:!function(e,t){switch(t.tagID){case Xp.BODY:case Xp.HTML:case Xp.BR:lm(e,t);break;case Xp.TEMPLATE:om(e,t);break;default:e._err(t,Ap.endTagWithoutMatchingOpenElement)}}(this,e);break;case zf.IN_BODY:bm(this,e);break;case zf.TEXT:!function(e,t){var n;t.tagID===Xp.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case zf.IN_TABLE:km(this,e);break;case zf.IN_TABLE_TEXT:Tm(this,e);break;case zf.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case Xp.CAPTION:case Xp.TABLE:e.openElements.hasInTableScope(Xp.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Xp.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=zf.IN_TABLE,n===Xp.TABLE&&km(e,t));break;case Xp.BODY:case Xp.COL:case Xp.COLGROUP:case Xp.HTML:case Xp.TBODY:case Xp.TD:case Xp.TFOOT:case Xp.TH:case Xp.THEAD:case Xp.TR:break;default:bm(e,t)}}(this,e);break;case zf.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case Xp.COLGROUP:e.openElements.currentTagId===Xp.COLGROUP&&(e.openElements.pop(),e.insertionMode=zf.IN_TABLE);break;case Xp.TEMPLATE:om(e,t);break;case Xp.COL:break;default:_m(e,t)}}(this,e);break;case zf.IN_TABLE_BODY:Dm(this,e);break;case zf.IN_ROW:Nm(this,e);break;case zf.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case Xp.TD:case Xp.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=zf.IN_ROW);break;case Xp.TABLE:case Xp.TBODY:case Xp.TFOOT:case Xp.THEAD:case Xp.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Nm(e,t));break;case Xp.BODY:case Xp.CAPTION:case Xp.COL:case Xp.COLGROUP:case Xp.HTML:break;default:bm(e,t)}}(this,e);break;case zf.IN_SELECT:Im(this,e);break;case zf.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===Xp.CAPTION||n===Xp.TABLE||n===Xp.TBODY||n===Xp.TFOOT||n===Xp.THEAD||n===Xp.TR||n===Xp.TD||n===Xp.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(Xp.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Im(e,t)}(this,e);break;case zf.IN_TEMPLATE:!function(e,t){t.tagID===Xp.TEMPLATE&&om(e,t)}(this,e);break;case zf.AFTER_BODY:Lm(this,e);break;case zf.IN_FRAMESET:!function(e,t){t.tagID!==Xp.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===Xp.FRAMESET||(e.insertionMode=zf.AFTER_FRAMESET))}(this,e);break;case zf.AFTER_FRAMESET:!function(e,t){t.tagID===Xp.HTML&&(e.insertionMode=zf.AFTER_AFTER_FRAMESET)}(this,e);break;case zf.AFTER_AFTER_BODY:$m(this,e)}}onEof(e){switch(this.insertionMode){case zf.INITIAL:tm(this,e);break;case zf.BEFORE_HTML:nm(this,e);break;case zf.BEFORE_HEAD:rm(this,e);break;case zf.IN_HEAD:sm(this,e);break;case zf.IN_HEAD_NO_SCRIPT:am(this,e);break;case zf.AFTER_HEAD:lm(this,e);break;case zf.IN_BODY:case zf.IN_TABLE:case zf.IN_CAPTION:case zf.IN_COLUMN_GROUP:case zf.IN_TABLE_BODY:case zf.IN_ROW:case zf.IN_CELL:case zf.IN_SELECT:case zf.IN_SELECT_IN_TABLE:ym(this,e);break;case zf.TEXT:!function(e,t){e._err(t,Ap.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case zf.IN_TABLE_TEXT:Tm(this,e);break;case zf.IN_TEMPLATE:Qm(this,e);break;case zf.AFTER_BODY:case zf.IN_FRAMESET:case zf.AFTER_FRAMESET:case zf.AFTER_AFTER_BODY:case zf.AFTER_AFTER_FRAMESET:em(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===mp.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case zf.IN_HEAD:case zf.IN_HEAD_NO_SCRIPT:case zf.AFTER_HEAD:case zf.TEXT:case zf.IN_COLUMN_GROUP:case zf.IN_SELECT:case zf.IN_SELECT_IN_TABLE:case zf.IN_FRAMESET:case zf.AFTER_FRAMESET:this._insertCharacters(e);break;case zf.IN_BODY:case zf.IN_CAPTION:case zf.IN_CELL:case zf.IN_TEMPLATE:case zf.AFTER_BODY:case zf.AFTER_AFTER_BODY:case zf.AFTER_AFTER_FRAMESET:um(this,e);break;case zf.IN_TABLE:case zf.IN_TABLE_BODY:case zf.IN_ROW:vm(this,e);break;case zf.IN_TABLE_TEXT:Sm(this,e)}}}function Xf(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Om(e,t),n}function Zf(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function Yf(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,s=i;s!==n;o++,s=i){i=e.openElements.getCommonAncestor(s);const n=e.activeFormattingElements.getElementEntry(s),a=n&&o>=3;!n||a?(a&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(s)):(s=Gf(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Gf(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Vf(e,t,n){const r=Yp(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);r===Xp.TEMPLATE&&i===Hp.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Wf(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,i.tagID)}function Kf(e,t){for(let n=0;n<8;n++){const n=Xf(e,t);if(!n)break;const r=Zf(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const i=Yf(e,r,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),o&&Vf(e,o,i),Wf(e,r,n)}}function Jf(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function em(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function tm(e,t){e._err(t,Ap.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Up.QUIRKS),e.insertionMode=zf.BEFORE_HTML,e._processToken(t)}function nm(e,t){e._insertFakeRootElement(),e.insertionMode=zf.BEFORE_HEAD,e._processToken(t)}function rm(e,t){e._insertFakeElement(jp.HEAD,Xp.HEAD),e.headElement=e.openElements.current,e.insertionMode=zf.IN_HEAD,e._processToken(t)}function im(e,t){switch(t.tagID){case Xp.HTML:gm(e,t);break;case Xp.BASE:case Xp.BASEFONT:case Xp.BGSOUND:case Xp.LINK:case Xp.META:e._appendElement(t,Hp.HTML),t.ackSelfClosing=!0;break;case Xp.TITLE:e._switchToTextParsing(t,Jp.RCDATA);break;case Xp.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Jp.RAWTEXT):(e._insertElement(t,Hp.HTML),e.insertionMode=zf.IN_HEAD_NO_SCRIPT);break;case Xp.NOFRAMES:case Xp.STYLE:e._switchToTextParsing(t,Jp.RAWTEXT);break;case Xp.SCRIPT:e._switchToTextParsing(t,Jp.SCRIPT_DATA);break;case Xp.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=zf.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(zf.IN_TEMPLATE);break;case Xp.HEAD:e._err(t,Ap.misplacedStartTagForHeadElement);break;default:sm(e,t)}}function om(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==Xp.TEMPLATE&&e._err(t,Ap.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(Xp.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Ap.endTagWithoutMatchingOpenElement)}function sm(e,t){e.openElements.pop(),e.insertionMode=zf.AFTER_HEAD,e._processToken(t)}function am(e,t){const n=t.type===Ep.EOF?Ap.openElementsLeftAfterEof:Ap.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=zf.IN_HEAD,e._processToken(t)}function lm(e,t){e._insertFakeElement(jp.BODY,Xp.BODY),e.insertionMode=zf.IN_BODY,cm(e,t)}function cm(e,t){switch(t.type){case Ep.CHARACTER:hm(e,t);break;case Ep.WHITESPACE_CHARACTER:um(e,t);break;case Ep.COMMENT:Jf(e,t);break;case Ep.START_TAG:gm(e,t);break;case Ep.END_TAG:bm(e,t);break;case Ep.EOF:ym(e,t)}}function um(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function hm(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function dm(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Hp.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function pm(e){const t=Cp(e,qp.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function fm(e,t){e._switchToTextParsing(t,Jp.RAWTEXT)}function mm(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Hp.HTML)}function gm(e,t){switch(t.tagID){case Xp.I:case Xp.S:case Xp.B:case Xp.U:case Xp.EM:case Xp.TT:case Xp.BIG:case Xp.CODE:case Xp.FONT:case Xp.SMALL:case Xp.STRIKE:case Xp.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Hp.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Xp.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(jp.A);n&&(Kf(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Hp.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Xp.H1:case Xp.H2:case Xp.H3:case Xp.H4:case Xp.H5:case Xp.H6:!function(e,t){e.openElements.hasInButtonScope(Xp.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&Wp.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Hp.HTML)}(e,t);break;case Xp.P:case Xp.DL:case Xp.OL:case Xp.UL:case Xp.DIV:case Xp.DIR:case Xp.NAV:case Xp.MAIN:case Xp.MENU:case Xp.ASIDE:case Xp.CENTER:case Xp.FIGURE:case Xp.FOOTER:case Xp.HEADER:case Xp.HGROUP:case Xp.DIALOG:case Xp.DETAILS:case Xp.ADDRESS:case Xp.ARTICLE:case Xp.SEARCH:case Xp.SECTION:case Xp.SUMMARY:case Xp.FIELDSET:case Xp.BLOCKQUOTE:case Xp.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(Xp.P)&&e._closePElement(),e._insertElement(t,Hp.HTML)}(e,t);break;case Xp.LI:case Xp.DD:case Xp.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.tagIDs[r];if(n===Xp.LI&&t===Xp.LI||(n===Xp.DD||n===Xp.DT)&&(t===Xp.DD||t===Xp.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==Xp.ADDRESS&&t!==Xp.DIV&&t!==Xp.P&&e._isSpecialElement(e.openElements.items[r],t))break}e.openElements.hasInButtonScope(Xp.P)&&e._closePElement(),e._insertElement(t,Hp.HTML)}(e,t);break;case Xp.BR:case Xp.IMG:case Xp.WBR:case Xp.AREA:case Xp.EMBED:case Xp.KEYGEN:dm(e,t);break;case Xp.HR:!function(e,t){e.openElements.hasInButtonScope(Xp.P)&&e._closePElement(),e._appendElement(t,Hp.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case Xp.RB:case Xp.RTC:!function(e,t){e.openElements.hasInScope(Xp.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Hp.HTML)}(e,t);break;case Xp.RT:case Xp.RP:!function(e,t){e.openElements.hasInScope(Xp.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Xp.RTC),e._insertElement(t,Hp.HTML)}(e,t);break;case Xp.PRE:case Xp.LISTING:!function(e,t){e.openElements.hasInButtonScope(Xp.P)&&e._closePElement(),e._insertElement(t,Hp.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case Xp.XMP:!function(e,t){e.openElements.hasInButtonScope(Xp.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Jp.RAWTEXT)}(e,t);break;case Xp.SVG:!function(e,t){e._reconstructActiveFormattingElements(),Ff(t),$f(t),t.selfClosing?e._appendElement(t,Hp.SVG):e._insertElement(t,Hp.SVG),t.ackSelfClosing=!0}(e,t);break;case Xp.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case Xp.BASE:case Xp.LINK:case Xp.META:case Xp.STYLE:case Xp.TITLE:case Xp.SCRIPT:case Xp.BGSOUND:case Xp.BASEFONT:case Xp.TEMPLATE:im(e,t);break;case Xp.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case Xp.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(Xp.P)&&e._closePElement(),e._insertElement(t,Hp.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case Xp.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Xp.NOBR)&&(Kf(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Hp.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Xp.MATH:!function(e,t){e._reconstructActiveFormattingElements(),Lf(t),$f(t),t.selfClosing?e._appendElement(t,Hp.MATHML):e._insertElement(t,Hp.MATHML),t.ackSelfClosing=!0}(e,t);break;case Xp.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==Up.QUIRKS&&e.openElements.hasInButtonScope(Xp.P)&&e._closePElement(),e._insertElement(t,Hp.HTML),e.framesetOk=!1,e.insertionMode=zf.IN_TABLE}(e,t);break;case Xp.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Hp.HTML),pm(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case Xp.PARAM:case Xp.TRACK:case Xp.SOURCE:!function(e,t){e._appendElement(t,Hp.HTML),t.ackSelfClosing=!0}(e,t);break;case Xp.IMAGE:!function(e,t){t.tagName=jp.IMG,t.tagID=Xp.IMG,dm(e,t)}(e,t);break;case Xp.BUTTON:!function(e,t){e.openElements.hasInScope(Xp.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Xp.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Hp.HTML),e.framesetOk=!1}(e,t);break;case Xp.APPLET:case Xp.OBJECT:case Xp.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Hp.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case Xp.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Jp.RAWTEXT)}(e,t);break;case Xp.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Hp.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===zf.IN_TABLE||e.insertionMode===zf.IN_CAPTION||e.insertionMode===zf.IN_TABLE_BODY||e.insertionMode===zf.IN_ROW||e.insertionMode===zf.IN_CELL?zf.IN_SELECT_IN_TABLE:zf.IN_SELECT}(e,t);break;case Xp.OPTION:case Xp.OPTGROUP:!function(e,t){e.openElements.currentTagId===Xp.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Hp.HTML)}(e,t);break;case Xp.NOEMBED:case Xp.NOFRAMES:fm(e,t);break;case Xp.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Hp.HTML),e.insertionMode=zf.IN_FRAMESET)}(e,t);break;case Xp.TEXTAREA:!function(e,t){e._insertElement(t,Hp.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Jp.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=zf.TEXT}(e,t);break;case Xp.NOSCRIPT:e.options.scriptingEnabled?fm(e,t):mm(e,t);break;case Xp.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(Xp.P)&&e._closePElement(),e._insertElement(t,Hp.HTML),e.tokenizer.state=Jp.PLAINTEXT}(e,t);break;case Xp.COL:case Xp.TH:case Xp.TD:case Xp.TR:case Xp.HEAD:case Xp.FRAME:case Xp.TBODY:case Xp.TFOOT:case Xp.THEAD:case Xp.CAPTION:case Xp.COLGROUP:break;default:mm(e,t)}}function Om(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const t=e.openElements.items[i],o=e.openElements.tagIDs[i];if(r===o&&(r!==Xp.UNKNOWN||e.treeAdapter.getTagName(t)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(t,o))break}}function bm(e,t){switch(t.tagID){case Xp.A:case Xp.B:case Xp.I:case Xp.S:case Xp.U:case Xp.EM:case Xp.TT:case Xp.BIG:case Xp.CODE:case Xp.FONT:case Xp.NOBR:case Xp.SMALL:case Xp.STRIKE:case Xp.STRONG:Kf(e,t);break;case Xp.P:!function(e){e.openElements.hasInButtonScope(Xp.P)||e._insertFakeElement(jp.P,Xp.P),e._closePElement()}(e);break;case Xp.DL:case Xp.UL:case Xp.OL:case Xp.DIR:case Xp.DIV:case Xp.NAV:case Xp.PRE:case Xp.MAIN:case Xp.MENU:case Xp.ASIDE:case Xp.BUTTON:case Xp.CENTER:case Xp.FIGURE:case Xp.FOOTER:case Xp.HEADER:case Xp.HGROUP:case Xp.DIALOG:case Xp.ADDRESS:case Xp.ARTICLE:case Xp.DETAILS:case Xp.SEARCH:case Xp.SECTION:case Xp.SUMMARY:case Xp.LISTING:case Xp.FIELDSET:case Xp.BLOCKQUOTE:case Xp.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Xp.LI:!function(e){e.openElements.hasInListItemScope(Xp.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Xp.LI),e.openElements.popUntilTagNamePopped(Xp.LI))}(e);break;case Xp.DD:case Xp.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Xp.H1:case Xp.H2:case Xp.H3:case Xp.H4:case Xp.H5:case Xp.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case Xp.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(jp.BR,Xp.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case Xp.BODY:!function(e,t){if(e.openElements.hasInScope(Xp.BODY)&&(e.insertionMode=zf.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case Xp.HTML:!function(e,t){e.openElements.hasInScope(Xp.BODY)&&(e.insertionMode=zf.AFTER_BODY,Lm(e,t))}(e,t);break;case Xp.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(Xp.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(Xp.FORM):n&&e.openElements.remove(n))}(e);break;case Xp.APPLET:case Xp.OBJECT:case Xp.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case Xp.TEMPLATE:om(e,t);break;default:Om(e,t)}}function ym(e,t){e.tmplInsertionModeStack.length>0?Qm(e,t):em(e,t)}function vm(e,t){if(void 0!==e.openElements.currentTagId&&qf.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=zf.IN_TABLE_TEXT,t.type){case Ep.CHARACTER:Am(e,t);break;case Ep.WHITESPACE_CHARACTER:Sm(e,t)}else wm(e,t)}function xm(e,t){switch(t.tagID){case Xp.TD:case Xp.TH:case Xp.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(jp.TBODY,Xp.TBODY),e.insertionMode=zf.IN_TABLE_BODY,Pm(e,t)}(e,t);break;case Xp.STYLE:case Xp.SCRIPT:case Xp.TEMPLATE:im(e,t);break;case Xp.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(jp.COLGROUP,Xp.COLGROUP),e.insertionMode=zf.IN_COLUMN_GROUP,Cm(e,t)}(e,t);break;case Xp.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Hp.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case Xp.TABLE:!function(e,t){e.openElements.hasInTableScope(Xp.TABLE)&&(e.openElements.popUntilTagNamePopped(Xp.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case Xp.TBODY:case Xp.TFOOT:case Xp.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Hp.HTML),e.insertionMode=zf.IN_TABLE_BODY}(e,t);break;case Xp.INPUT:!function(e,t){pm(t)?e._appendElement(t,Hp.HTML):wm(e,t),t.ackSelfClosing=!0}(e,t);break;case Xp.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Hp.HTML),e.insertionMode=zf.IN_CAPTION}(e,t);break;case Xp.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Hp.HTML),e.insertionMode=zf.IN_COLUMN_GROUP}(e,t);break;default:wm(e,t)}}function km(e,t){switch(t.tagID){case Xp.TABLE:e.openElements.hasInTableScope(Xp.TABLE)&&(e.openElements.popUntilTagNamePopped(Xp.TABLE),e._resetInsertionMode());break;case Xp.TEMPLATE:om(e,t);break;case Xp.BODY:case Xp.CAPTION:case Xp.COL:case Xp.COLGROUP:case Xp.HTML:case Xp.TBODY:case Xp.TD:case Xp.TFOOT:case Xp.TH:case Xp.THEAD:case Xp.TR:break;default:wm(e,t)}}function wm(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,cm(e,t),e.fosterParentingEnabled=n}function Sm(e,t){e.pendingCharacterTokens.push(t)}function Am(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Tm(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===Xp.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===Xp.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===Xp.OPTGROUP&&e.openElements.pop();break;case Xp.OPTION:e.openElements.currentTagId===Xp.OPTION&&e.openElements.pop();break;case Xp.SELECT:e.openElements.hasInSelectScope(Xp.SELECT)&&(e.openElements.popUntilTagNamePopped(Xp.SELECT),e._resetInsertionMode());break;case Xp.TEMPLATE:om(e,t)}}function Qm(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(Xp.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):em(e,t)}function Lm(e,t){var n;if(t.tagID===Xp.HTML){if(e.fragmentContext||(e.insertionMode=zf.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===Xp.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else Fm(e,t)}function Fm(e,t){e.insertionMode=zf.IN_BODY,cm(e,t)}function $m(e,t){e.insertionMode=zf.IN_BODY,cm(e,t)}function Bm(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Hp.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),String.prototype.codePointAt;function zm(e,t){return function(n){let r,i=0,o="";for(;r=e.exec(n);)i!==r.index&&(o+=n.substring(i,r.index)),o+=t.get(r[0].charCodeAt(0)),i=r.index+1;return o+n.substring(i)}}new Map([[34,"""],[38,"&"],[160," "]]),new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]);new Set([jp.AREA,jp.BASE,jp.BASEFONT,jp.BGSOUND,jp.BR,jp.COL,jp.EMBED,jp.FRAME,jp.HR,jp.IMG,jp.INPUT,jp.KEYGEN,jp.LINK,jp.META,jp.PARAM,jp.SOURCE,jp.TRACK,jp.WBR]);const Hm=Um("end"),qm=Um("start");function Um(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"===typeof n.line&&n.line>0&&"number"===typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"===typeof n.offset&&n.offset>-1?n.offset:void 0}}}const jm=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Xm=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Zm={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Ym(e,t){const n=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=Od("type",{handlers:{root:Vm,element:Wm,text:Km,comment:tg,doctype:Jm,raw:ng},unknown:rg}),i={parser:n?new jf(Zm):jf.getFragmentParser(void 0,Zm),handle(e){r(e,i)},stitches:!1,options:t||{}};r(e,i),ig(i,qm());const o=function(e,t){const n=t||{};return tp({file:n.file||void 0,location:!1,schema:"svg"===n.space?th.JW:th.qy,verbose:n.verbose||!1},e)}(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return i.stitches&&Bu(o,"comment",function(e,t,n){const r=e;if(r.value.stitch&&n&&void 0!==t){return n.children[t]=r.value.stitch,t}}),"root"===o.type&&1===o.children.length&&o.children[0].type===e.type?o.children[0]:o}function Gm(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);const n={type:Ep.CHARACTER,chars:e.value,location:sg(e)};ig(t,qm(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Jm(e,t){const n={type:Ep.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:sg(e)};ig(t,qm(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function eg(e,t){t.stitches=!0;const n=function(e){return Gd("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in n){const r=Ym({type:"root",children:e.children},t.options);n.children=r.children}tg({type:"comment",value:{stitch:n}},t)}function tg(e,t){const n=e.value,r={type:Ep.COMMENT,data:n,location:sg(e)};ig(t,qm(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function ng(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,og(t,qm(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(jm,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function rg(e,t){const n=e;if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){let e="";throw Xm.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+e)}eg(n,t)}function ig(e,t){og(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Jp.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function og(e,t){if(t&&void 0!==t.offset){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function sg(e){const t=qm(e)||{line:void 0,column:void 0,offset:void 0},n=Hm(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function ag(e){return function(t,n){return Ym(t,{...e,file:n})}}const lg=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cg=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ug={};function hg(e,t){return((t||ug).jsx?cg:lg).test(e)}const dg={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var pg=n(9004);function fg(e){return e&&"object"===typeof e?"position"in e||"type"in e?gg(e.position):"start"in e||"end"in e?gg(e):"line"in e||"column"in e?mg(e):"":""}function mg(e){return Og(e&&e.line)+":"+Og(e&&e.column)}function gg(e){return mg(e&&e.start)+"-"+mg(e&&e.end)}function Og(e){return e&&"number"===typeof e?e:1}class bg extends Error{constructor(e,t,n){super(),"string"===typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"===typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"===typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=s?s.line:void 0,this.name=fg(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"===typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}bg.prototype.file="",bg.prototype.name="",bg.prototype.reason="",bg.prototype.message="",bg.prototype.stack="",bg.prototype.column=void 0,bg.prototype.line=void 0,bg.prototype.ancestors=void 0,bg.prototype.cause=void 0,bg.prototype.fatal=void 0,bg.prototype.place=void 0,bg.prototype.ruleId=void 0,bg.prototype.source=void 0;const yg={}.hasOwnProperty,vg=new Map,xg=/[A-Z]/g,kg=new Set(["table","tbody","thead","tfoot","tr"]),wg=new Set(["td","th"]),Sg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ag(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!==typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,i,o){const s=Array.isArray(i.children),a=qm(n);return t(r,i,o,s,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!==typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!==typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,i,o){const s=Array.isArray(i.children)?n:t;return o?s(r,i,o):s(r,i)}}(0,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?th.JW:th.qy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},o=Tg(i,e,void 0);return o&&"string"!==typeof o?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Tg(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=th.JW,e.schema=i);e.ancestors.push(t);const o=Dg(e,t.tagName,!1),s=function(e,t){const n={};let r,i;for(i in t.properties)if("children"!==i&&yg.call(t.properties,i)){const o=Pg(e,i,t.properties[i]);if(o){const[i,s]=o;e.tableCellAlignToStyle&&"align"===i&&"string"===typeof s&&wg.has(t.tagName)?r=s:n[i]=s}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let a=_g(e,t);kg.has(t.tagName)&&(a=a.filter(function(e){return"string"!==typeof e||!cd(e)}));return Eg(e,s,o,t),Cg(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Mg(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.name&&"html"===r.space&&(i=th.JW,e.schema=i);e.ancestors.push(t);const o=null===t.name?e.Fragment:Dg(e,t.name,!0),s=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];Yh(t.type);const i=t.expression;Yh(i.type);const o=i.properties[0];Yh(o.type),Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Mg(e,t.position);else{const i=r.name;let o;if(r.value&&"object"===typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];Yh(t.type),o=e.evaluater.evaluateExpression(t.expression)}else Mg(e,t.position);else o=null===r.value||r.value;n[i]=o}return n}(e,t),a=_g(e,t);return Eg(e,s,o,t),Cg(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Mg(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return Cg(r,_g(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function Eg(e,t,n,r){"string"!==typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Cg(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function _g(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:vg;for(;++ri?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s0?(Bg(e,e.length,0,t),e):t}class Hg{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&qg(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),qg(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),qg(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e-1&&e.test(String.fromCharCode(t))}}function cO(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(oO(r))return e.enter(n),s(r);return t(r)};function s(r){return oO(r)&&o++o))return;const n=t.events.length;let i,a,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){a=t.events[l][1].end;break}i=!0}for(O(s),e=n;er;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},dO={tokenize:function(e,t,n){return cO(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const pO={partial:!0,tokenize:function(e,t,n){return function(t){return oO(t)?cO(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||rO(e)?t(e):n(e)}}};const fO={resolve:function(e){return Ug(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):rO(t)?e.check(mO,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},mO={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),cO(e,i,"linePrefix")};function i(i){if(null===i||rO(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};const gO={tokenize:function(e){const t=this,n=e.attempt(pO,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,cO(e,e.attempt(this.parser.constructs.flow,r,e.attempt(fO,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const OO={resolveAll:xO()},bO=vO("string"),yO=vO("text");function vO(e){return{resolveAll:xO("text"===e?kO:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(e){return l(e)?i(e):s(e)}function s(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i=3&&(null===o||rO(o))?(e.exit("thematicBreak"),t(o)):n(o)}function s(t){return t===r?(e.consume(t),i++,s):(e.exit("thematicBreakSequence"),oO(t)?cO(e,o,"whitespace")(t):o(t))}}};const SO={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(pO,i,o);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,cO(e,t,"listItemIndent",r.containerState.size+1)(n)}function o(n){return r.containerState.furtherBlankLines||!oO(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(TO,t,s)(n))}function s(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,cO(e,e.attempt(SO,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:eO(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(wO,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return n(t)};function a(t){return eO(t)&&++s<10?(e.consume(t),a):(!r.interrupt||s<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(pO,r.interrupt?n:c,e.attempt(AO,h,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,h(e)}function u(t){return oO(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),h):n(t)}function h(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},AO={partial:!0,tokenize:function(e,t,n){const r=this;return cO(e,function(e){const i=r.events[r.events.length-1];return!oO(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},TO={partial:!0,tokenize:function(e,t,n){const r=this;return cO(e,function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}};const EO={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(oO(t))return cO(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt(EO,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return oO(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function CO(e,t,n,r,i,o,s,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),h;if(null===t||32===t||41===t||Jg(t))return n(t);return e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),f(t)};function h(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(a),h(t)):null===t||60===t||rO(t)?n(t):(e.consume(t),92===t?p:d)}function p(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function f(i){return u||null!==i&&41!==i&&!iO(i)?u999||null===h||91===h||93===h&&!a||94===h&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):93===h?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):rO(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(t){return null===t||91===t||93===t||rO(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),a||(a=!oO(t)),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function PO(e,t,n,r,i,o){let s;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,a;return n(t)};function a(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===s?(e.exit(o),a(s)):null===t?n(t):rO(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),cO(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===s||null===t||rO(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===s||92===t?(e.consume(t),c):c(t)}}function DO(e,t){let n;return function r(i){if(rO(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(oO(i))return cO(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}function MO(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const NO={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return _O.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=MO(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return iO(t)?DO(e,a)(t):a(t)}function a(t){return CO(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(RO,c,c)(t)}function c(t){return oO(t)?cO(e,u,"whitespace")(t):u(t)}function u(o){return null===o||rO(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},RO={partial:!0,tokenize:function(e,t,n){return function(t){return iO(t)?DO(e,r)(t):n(t)};function r(t){return PO(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return oO(t)?cO(e,o,"whitespace")(t):o(t)}function o(e){return null===e||rO(e)?t(e):n(e)}}};const IO={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),cO(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?a(t):rO(t)?e.attempt(QO,o,a)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||rO(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),s)}function a(n){return e.exit("codeIndented"),t(n)}}},QO={partial:!0,tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):rO(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):cO(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):rO(e)?i(e):n(e)}}};const LO={name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},Bg(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||iO(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||rO(n)?(e.exit("atxHeading"),t(n)):oO(n)?cO(e,o,"whitespace")(n):(e.enter("atxHeadingText"),a(n))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),o(t))}function a(t){return null===t||35===t||iO(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),a)}}};const FO={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s;return e.push(["exit",s,t]),e},tokenize:function(e,t,n){const r=this;let i;return function(t){let s,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){s="paragraph"===r.events[a][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||s))return e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),oO(t)?cO(e,s,"lineSuffix")(t):s(t))}function s(r){return null===r||rO(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const $O=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],BO=["pre","script","style","textarea"],zO={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let i,o,s,a,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(a){return 33===a?(e.consume(a),u):47===a?(e.consume(a),o=!0,p):63===a?(e.consume(a),i=3,r.interrupt?t:R):Vg(a)?(e.consume(a),s=String.fromCharCode(a),f):n(a)}function u(o){return 45===o?(e.consume(o),i=2,h):91===o?(e.consume(o),i=5,a=0,d):Vg(o)?(e.consume(o),i=4,r.interrupt?t:R):n(o)}function h(i){return 45===i?(e.consume(i),r.interrupt?t:R):n(i)}function d(i){const o="CDATA[";return i===o.charCodeAt(a++)?(e.consume(i),6===a?r.interrupt?t:T:d):n(i)}function p(t){return Vg(t)?(e.consume(t),s=String.fromCharCode(t),f):n(t)}function f(a){if(null===a||47===a||62===a||iO(a)){const l=47===a,c=s.toLowerCase();return l||o||!BO.includes(c)?$O.includes(s.toLowerCase())?(i=6,l?(e.consume(a),m):r.interrupt?t(a):T(a)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):o?g(a):O(a)):(i=1,r.interrupt?t(a):T(a))}return 45===a||Wg(a)?(e.consume(a),s+=String.fromCharCode(a),f):n(a)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:T):n(i)}function g(t){return oO(t)?(e.consume(t),g):S(t)}function O(t){return 47===t?(e.consume(t),S):58===t||95===t||Vg(t)?(e.consume(t),b):oO(t)?(e.consume(t),O):S(t)}function b(t){return 45===t||46===t||58===t||95===t||Wg(t)?(e.consume(t),b):y(t)}function y(t){return 61===t?(e.consume(t),v):oO(t)?(e.consume(t),y):O(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):oO(t)?(e.consume(t),v):k(t)}function x(t){return t===l?(e.consume(t),l=null,w):null===t||rO(t)?n(t):(e.consume(t),x)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||iO(t)?y(t):(e.consume(t),k)}function w(e){return 47===e||62===e||oO(e)?O(e):n(e)}function S(t){return 62===t?(e.consume(t),A):n(t)}function A(t){return null===t||rO(t)?T(t):oO(t)?(e.consume(t),A):n(t)}function T(t){return 45===t&&2===i?(e.consume(t),P):60===t&&1===i?(e.consume(t),D):62===t&&4===i?(e.consume(t),I):63===t&&3===i?(e.consume(t),R):93===t&&5===i?(e.consume(t),N):!rO(t)||6!==i&&7!==i?null===t||rO(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(HO,Q,E)(t))}function E(t){return e.check(qO,C,Q)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),_}function _(t){return null===t||rO(t)?E(t):(e.enter("htmlFlowData"),T(t))}function P(t){return 45===t?(e.consume(t),R):T(t)}function D(t){return 47===t?(e.consume(t),s="",M):T(t)}function M(t){if(62===t){const n=s.toLowerCase();return BO.includes(n)?(e.consume(t),I):T(t)}return Vg(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),M):T(t)}function N(t){return 93===t?(e.consume(t),R):T(t)}function R(t){return 62===t?(e.consume(t),I):45===t&&2===i?(e.consume(t),R):T(t)}function I(t){return null===t||rO(t)?(e.exit("htmlFlowData"),Q(t)):(e.consume(t),I)}function Q(n){return e.exit("htmlFlow"),t(n)}}},HO={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(pO,t,n)}}},qO={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(rO(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const UO={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},jO={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return s;function s(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),oO(t)?cO(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(i++,e.consume(t),u):i>=a?(e.exit("codeFencedFenceSequence"),oO(t)?cO(e,h,"whitespace")(t):h(t)):n(t)}function h(r){return null===r||rO(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let o,s=0,a=0;return function(t){return function(t){const n=r.events[r.events.length-1];return s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(a++,e.consume(t),l):a<3?n(t):(e.exit("codeFencedFenceSequence"),oO(t)?cO(e,c,"whitespace")(t):c(t))}function c(n){return null===n||rO(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(UO,p,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||rO(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):oO(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),cO(e,h,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function h(t){return null===t||rO(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||rO(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),d)}function p(t){return e.attempt(i,b,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return s>0&&oO(t)?cO(e,g,"linePrefix",s+1)(t):g(t)}function g(t){return null===t||rO(t)?e.check(UO,p,b)(t):(e.enter("codeFlowValue"),O(t))}function O(t){return null===t||rO(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),O)}function b(n){return e.exit("codeFenced"),t(n)}}};var XO=n(3789);const ZO={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=Wg,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=tO,c):(e.enter("characterReferenceValue"),i=7,o=eO,c(t))}function c(a){if(59===a&&s){const i=e.exit("characterReferenceValue");return o!==Wg||(0,XO.s)(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return o(a)&&s++1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const h={...e[n][1].end},d={...e[u][1].start};ib(h,-a),ib(d,a),o={type:a>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:d},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:a>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[n][1].end={...o.start},e[u][1].start={...s.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=zg(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=zg(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=zg(l,VO(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=zg(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=zg(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Bg(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u-1){const e=s[0];"string"===typeof e?s[0]=e.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}(s,e)}function f(){const{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function m(){let e;for(;r._index13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCodePoint(n)}const kb=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function wb(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return xb(n.slice(t?2:1),t?16:10)}return(0,XO.s)(n)||e}const Sb={}.hasOwnProperty;function Ab(e,t,n){return t&&"object"===typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(te),autolinkProtocol:A,autolinkEmail:A,atxHeading:o(W),blockQuote:o(X),characterEscape:A,characterReference:A,codeFenced:o(Z),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(Z,s),codeText:o(Y,s),codeTextData:A,data:A,codeFlowValue:A,definition:o(G),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(V),hardBreakEscape:o(K),hardBreakTrailing:o(K),htmlFlow:o(J,s),htmlFlowData:A,htmlText:o(J,s),htmlTextData:A,image:o(ee),label:s,link:o(te),listItem:o(re),listItemValue:d,listOrdered:o(ne,h),listUnordered:o(ne),paragraph:o(ie),reference:$,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(W),strong:o(oe),thematicBreak:o(ae)},exit:{atxHeading:l(),atxHeadingSequence:x,autolink:l(),autolinkEmail:j,autolinkProtocol:U,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:H,characterReference:q,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:f,codeFlowValue:T,codeIndented:l(O),codeText:l(D),codeTextData:T,data:T,definition:l(),definitionDestinationString:v,definitionLabelString:b,definitionTitleString:y,emphasis:l(),hardBreakEscape:l(C),hardBreakTrailing:l(C),htmlFlow:l(_),htmlFlowData:T,htmlText:l(P),htmlTextData:T,image:l(N),label:I,labelText:R,lineEnding:E,link:l(M),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:B,resourceDestinationString:Q,resourceTitleString:L,resource:F,setextHeading:l(S),setextHeadingLineSequence:w,setextHeadingText:k,strong:l(),thematicBreak:l()}};Eb(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:a,exit:c,buffer:s,resume:u,data:n},l=[];let h=-1;for(;++h0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||_b).call(o,void 0,e[0])}for(r.position={start:Tb(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Tb(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},h=-1;++h55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(s=String.fromCharCode(o,t),i=1):s="\ufffd"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Mb(e,t){const n=[{type:"text",value:"\u21a9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Nb(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Rb(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function Ib(e){const t=e.spread;return null===t||void 0===t?e.children.length>1:t}function Qb(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Lb(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Lb(t.slice(i),i>0,!1)),o.join("")}function Lb(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const Fb={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Db(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);void 0===a?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Rb(e,t);const i={src:Db(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:Db(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Rb(e,t);const i={href:Db(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:Db(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=qm(t.children[1]),s=Hm(t.children[t.children.length-1]);o&&s&&(r.position={start:o,end:s}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,s=o?o.length:t.children.length;let a=-1;const l=[];for(;++a0&&n.push({type:"text",value:"\n"}),n}function Xb(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Zb(e,t){const n=function(e,t){const n=t||zb,r=new Map,i=new Map,o=new Map,s={...Fb,...n.handlers},a={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r0&&h.push({type:"text",value:" "});let e="string"===typeof n?n:n(l,u);"string"===typeof e&&(e={type:"text",value:e}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=o[o.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...h)}else o.push(...h);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(i,f),a.push(f)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Gd(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function Yb(e,t){return e&&"run"in e?async function(n,r){const i=Zb(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Zb(n,{file:r,...e||t})}}function Gb(e){if(e)throw e}var Vb=n(1886);function Wb(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Kb(){const e=[],t={run:function(){for(var t=arguments.length,n=new Array(t),r=0;r1?l-1:0),u=1;ui.length;let c;l&&i.push(o);try{c=e.apply(this,i)}catch(r){if(l&&n)throw r;return o(r)}l||(c&&c.then&&"function"===typeof c.then?c.then(s,o):c instanceof Error?o(c):s(c))}function o(e){if(!n){n=!0;for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;oe.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,a=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else s<0&&(n=!0,s=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(i=o):(a=-1,i=s));r===i?i=s:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(ey(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){ey(e);let t,n=e.length,r=-1,i=0,o=-1,s=0;for(;n--;){const a=e.codePointAt(n);if(47!==a)r<0&&(t=!0,r=n+1),46===a?o<0?o=n:1!==s&&(s=1):o>-1&&(s=-1);else if(t){i=n+1;break}}if(o<0||r<0||0===s||1===s&&o===r-1&&o===i+1)return"";return e.slice(o,r)},join:function(){let e,t=-1;for(var n=arguments.length,r=new Array(n),i=0;i2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),s=l,a=0;continue}}else if(i.length>0){i="",o=0,s=l,a=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(s+1,l):i=e.slice(s+1,l),o=l-s-1;s=l,a=0}else 46===n&&a>-1?a++:a=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function ey(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ty={cwd:function(){return"/"}};function ny(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function ry(e){if("string"===typeof e)e=new URL(e);else if(!ny(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n1?r-1:0),o=1;o0){let[r,...o]=n;const s=t[i][1];Wb(s)&&Wb(r)&&(r=Vb(!0,s,r)),t[i]=[e,r,...o]}}}}const dy=(new hy).freeze();function py(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function fy(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function my(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function gy(e){if(!Wb(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Oy(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function by(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new oy(e)}const yy=[],vy={allowDangerousHtml:!0},xy=/^(https?|ircs?|mailto|xmpp)$/i,ky=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function wy(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,s=e.disallowedElements,a=e.rehypePlugins||yy,l=e.remarkPlugins||yy,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...vy}:vy,u=e.skipHtml,h=e.unwrapDisallowed,d=e.urlTransform||Sy,p=dy().use(Pb).use(l).use(Yb,c).use(a),f=new oy;"string"===typeof r&&(f.value=r);for(const O of ky)Object.hasOwn(e,O.from)&&Gh((O.from,O.to&&O.to,O.id));const m=p.parse(f);let g=p.runSync(m,f);return i&&(g={type:"element",tagName:"div",properties:{className:i},children:"root"===g.type?g.children:[g]}),Bu(g,function(e,r,i){if("raw"===e.type&&i&&"number"===typeof r)return u?i.children.splice(r,1):i.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in Ig)if(Object.hasOwn(Ig,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Ig[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=d(String(n||""),t,e))}}if("element"===e.type){let o=t?!t.includes(e.tagName):!!s&&s.includes(e.tagName);if(!o&&n&&"number"===typeof r&&(o=!n(e,r,i)),o&&i&&"number"===typeof r)return h&&e.children?i.children.splice(r,1,...e.children):i.children.splice(r,1),r}}),Ag(g,{Fragment:Nt.Fragment,components:o,ignoreInvalidStyle:!0,jsx:Nt.jsx,jsxs:Nt.jsxs,passKeys:!0,passNode:!0})}function Sy(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return-1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||xy.test(e.slice(0,t))?e:""}function Ay(e,t){const n=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}function Ty(e,t,n){const r=Du((n||{}).ignore||[]),i=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(a!==n&&h.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(o)?h.push(...o):o&&h.push(o),a=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}u?(a?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Ay(e,"(");let o=Ay(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!s[0])return!1;const a={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function $y(e,t,n,r){return!(!By(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function By(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||aO(n)||sO(n))&&(!t||47!==n)}function zy(){this.buffer()}function Hy(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function qy(){this.buffer()}function Uy(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function jy(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=MO(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Xy(e){this.exit(e)}function Zy(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=MO(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Yy(e){this.exit(e)}function Gy(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),s(),o+=i.move("]"),o}function Vy(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){const o=r.createTracker(i);let s=o.move("[^");const a=r.enter("footnoteDefinition"),l=r.enter("label");s+=o.move(r.safe(r.associationId(e),{before:s,after:"]"})),l(),s+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),s+=o.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,o.current()),t?Ky:Wy)));return a(),s},footnoteReference:Gy},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Wy(e,t,n){return 0===t?e:Ky(e,t,n)}function Ky(e,t,n){return(n?"":" ")+e}Gy.peek=function(){return"["};const Jy=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function ev(e){this.enter({type:"delete",children:[]},e)}function tv(e){this.exit(e)}function nv(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function rv(e){return e.length}function iv(e){return null===e||void 0===e?"":String(e)}function ov(e){const t="string"===typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function sv(e,t,n){return">"+(n?"":" ")+e}function av(e,t){return lv(e,t.inConstruct,!0)&&!lv(e,t.notInConstruct,!1)}function lv(e,t,n){if("string"===typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++rs&&(s=o):o=1,i=r+t.length,r=n.indexOf(t,i);return s}function hv(e,t,n){return(n?"":" ")+e}function dv(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function pv(e){return"&#x"+e.toString(16).toUpperCase()+";"}function fv(e,t,n){const r=nb(e),i=nb(t);return void 0===r?void 0===i?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function mv(e,t,n,r){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),s=n.createTracker(r),a=s.move(i);let l=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const c=l.charCodeAt(0),u=fv(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=pv(c)+l.slice(1));const h=l.charCodeAt(l.length-1),d=fv(r.after.charCodeAt(0),h,i);d.inside&&(l=l.slice(0,-1)+pv(h));const p=s.move(i);return o(),n.attentionEncodeSurroundingInfo={after:d.outside,before:u.outside},a+l+p}function gv(e){return e.value||""}function Ov(e,t,n,r){const i=dv(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("image");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),c+=l.move(")"),s(),c}function bv(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const c=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),"full"!==i&&c&&c===h?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(h+"]"),l}function yv(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o\u007F]/.test(e.url))}function xv(e,t,n,r){const i=dv(n),o='"'===i?"Quote":"Apostrophe",s=n.createTracker(r);let a,l;if(vv(e,n)){const t=n.stack;n.stack=[],a=n.enter("autolink");let r=s.move("<");return r+=s.move(n.containerPhrasing(e,{before:r,after:">",...s.current()})),r+=s.move(">"),a(),n.stack=t,r}a=n.enter("link"),l=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=s.move(" "+i),c+=s.move(n.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),l()),c+=s.move(")"),a(),c}function kv(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),"full"!==i&&c&&c===h?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(h+"]"),l}function wv(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Sv(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}nv.peek=function(){return"~"},mv.peek=function(e,t,n){return n.options.emphasis||"*"},gv.peek=function(){return"<"},Ov.peek=function(){return"!"},bv.peek=function(){return"!"},yv.peek=function(){return"`"},xv.peek=function(e,t,n){return vv(e,n)?"<":"["},kv.peek=function(){return"["};const Av=Du(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Tv(e,t,n,r){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),s=n.createTracker(r),a=s.move(i+i);let l=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const c=l.charCodeAt(0),u=fv(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=pv(c)+l.slice(1));const h=l.charCodeAt(l.length-1),d=fv(r.after.charCodeAt(0),h,i);d.inside&&(l=l.slice(0,-1)+pv(h));const p=s.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:d.outside,before:u.outside},a+l+p}Tv.peek=function(e,t,n){return n.options.strong||"*"};const Ev={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),sv);return i(),s},break:cv,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",s="`"===i?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,hv);return e(),t}const a=n.createTracker(r),l=i.repeat(Math.max(uv(o,i)+1,3)),c=n.enter("codeFenced");let u=a.move(l);if(e.lang){const t=n.enter(`codeFencedLang${s}`);u+=a.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...a.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${s}`);u+=a.move(" "),u+=a.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...a.current()})),t()}return u+=a.move("\n"),o&&(u+=a.move(o+"\n")),u+=a.move(l),c(),u},definition:function(e,t,n,r){const i=dv(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),s(),c},emphasis:mv,hardBreak:cv,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return Bu(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Lu}),Boolean((!e.depth||e.depth<3)&&Lg(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),s=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),s+"\n"+(1===i?"=":"-").repeat(s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf("\n"))+1))}const s="#".repeat(i),a=n.enter("headingAtx"),l=n.enter("phrasing");o.move(s+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c=pv(c.charCodeAt(0))+c.slice(1)),c=c?s+" "+c:s,n.options.closeAtx&&(c+=" "+s),l(),a(),c},html:gv,image:Ov,imageReference:bv,inlineCode:yv,link:xv,linkReference:kv,list:function(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):wv(n);const a=e.ordered?"."===s?")":".":function(e){const t=wv(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&s===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==s&&"-"!==s||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),Sv(n)===s&&t){let t=-1;for(;++t-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let s=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),function(e,t,n){if(t)return(n?"":" ".repeat(s))+e;return(n?o:o+" ".repeat(s-o.length))+e});return l(),c},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s},root:function(e,t,n,r){const i=e.children.some(function(e){return Av(e)});return(i?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Tv,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Sv(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function Cv(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function _v(e){this.exit(e),this.data.inTable=void 0}function Pv(e){this.enter({type:"tableRow",children:[]},e)}function Dv(e){this.exit(e)}function Mv(e){this.enter({type:"tableCell",children:[]},e)}function Nv(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Rv));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Rv(e,t){return"|"===t?t:e}function Iv(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=Ev.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return a(function(e,t,n){const r=e.children;let i=-1;const o=[],s=t.enter("table");for(;++ic&&(c=e[u].length);++ol[o])&&(l[o]=e)}t.push(s)}s[u]=t,a[u]=r}let h=-1;if("object"===typeof r&&"length"in r)for(;++hl[h]&&(l[h]=i),p[h]=i),d[h]=s}s.splice(1,0,d),a.splice(1,0,p),u=-1;const f=[];for(;++u0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}Zv[43]=Xv,Zv[45]=Xv,Zv[46]=Xv,Zv[95]=Xv,Zv[72]=[Xv,jv],Zv[104]=[Xv,jv],Zv[87]=[Xv,Uv],Zv[119]=[Xv,Uv];const ex={tokenize:function(e,t,n){const r=this;return cO(e,function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function tx(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){s=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!s||!s._balanced)return n(i);const a=MO(r.sliceSerialize({start:s.end,end:r.now()}));if(94!==a.codePointAt(0)||!o.includes(a.slice(1)))return n(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function nx(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function rx(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(a){if(s>999||93===a&&!o||null===a||91===a||iO(a))return n(a);if(93===a){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(MO(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return iO(a)||(o=!0),s++,e.consume(a),92===a?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}}function ix(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s,a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(a>999||93===t&&!s||null===t||91===t||iO(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=MO(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return iO(t)||(s=!0),a++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(o)||i.push(o),cO(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function ox(e,t,n){return e.check(pO,t,e.attempt(ex,t,n))}function sx(e){e.exit("gfmFootnoteDefinition")}function ax(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const i=this.previous,o=this.events;let s=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),a(t)};function a(o){const l=nb(i);if(126===o)return s>1?r(o):(e.consume(o),s++,a);if(s<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=nb(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function cx(e,t){let n=!1;const r=[];for(;t-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?v:a;if(o===v&&r.parser.lazy[r.now().line])return n(e);return o(e)};function a(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return i=!0,s+=1,l(e)}(t)}function l(t){return null===t?n(t):rO(t)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):oO(t)?cO(e,l,"whitespace")(t):(s+=1,i&&(i=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||iO(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function h(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,oO(t)?cO(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t))}function d(t){return 45===t||58===t?f(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):y(t)}function p(t){return oO(t)?cO(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(s+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(s+=1,m(t)):null===t||rO(t)?b(t):y(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):y(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),O):(e.exit("tableDelimiterFiller"),O(t))}function O(t){return oO(t)?cO(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?d(n):(null===n||rO(n))&&i&&o===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):y(n)}function y(e){return n(e)}function v(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||rO(n)?(e.exit("tableRow"),t(n)):oO(n)?cO(e,x,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||iO(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?w:k)}function w(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function hx(e,t){let n,r,i,o=-1,s=!0,a=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,h=0;const d=new lx;for(;++on[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",s,t]])}return void 0!==i&&(o.end=Object.assign({},fx(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function px(e,t,n,r,i){const o=[],s=fx(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function fx(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const mx={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return iO(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return rO(r)?t(r):oO(r)?e.check({tokenize:gx},t,n)(r):n(r)}}};function gx(e,t,n){return cO(e,function(e){return null===e?n(e):t(e)},"whitespace")}const Ox={};function bx(e){const t=e||Ox,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return Zg([{text:Zv},{document:{91:{name:"gfmFootnoteDefinition",tokenize:ix,continuation:{tokenize:ox},exit:sx}},text:{91:{name:"gfmFootnoteCall",tokenize:rx},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:tx,resolveTo:nx}}},ax(e),{flow:{null:{name:"table",tokenize:ux,resolveAll:hx}}},{text:{91:mx}}])}(t)),i.push([{transforms:[Ly],enter:{literalAutolink:Dy,literalAutolinkEmail:My,literalAutolinkHttp:My,literalAutolinkWww:My},exit:{literalAutolink:Qy,literalAutolinkEmail:Iy,literalAutolinkHttp:Ny,literalAutolinkWww:Ry}},{enter:{gfmFootnoteCallString:zy,gfmFootnoteCall:Hy,gfmFootnoteDefinitionLabelString:qy,gfmFootnoteDefinition:Uy},exit:{gfmFootnoteCallString:jy,gfmFootnoteCall:Xy,gfmFootnoteDefinitionLabelString:Zy,gfmFootnoteDefinition:Yy}},{canContainEols:["delete"],enter:{strikethrough:ev},exit:{strikethrough:tv}},{enter:{table:Cv,tableData:Mv,tableHeader:Mv,tableRow:Pv},exit:{codeText:Nv,table:_v,tableData:Dv,tableHeader:Dv,tableRow:Dv}},{exit:{taskListCheckValueChecked:Qv,taskListCheckValueUnchecked:Qv,paragraph:Lv}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:_y,notInConstruct:Py},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:_y,notInConstruct:Py},{character:":",before:"[ps]",after:"\\/",inConstruct:_y,notInConstruct:Py}]},Vy(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Jy}],handlers:{delete:nv}},Iv(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Fv}}]}}(t))}const yx=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,vx=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,xx=function(){let{legacyTitle:e=!1,tagName:t="div"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n=>{Bu(n,"blockquote",(n,r,i)=>{let o="",s="",a=!0,l=n.children.map(t=>{if(a&&"paragraph"===t.type){const n=t.children[0],r="text"===n.type?n.value:"",i=e?vx:yx,l=r.match(i);if(l&&(a=!1,o=l[1].toLocaleLowerCase(),s=e&&l[2]||o.toLocaleUpperCase(),r.includes("\n")&&(t.children[0]={type:"text",value:r.replace(i,"").replace(/^\n+/,"")}),!r.includes("\n"))){const e=[];t.children.forEach((t,n)=>{0!=n&&(1==n&&"break"===t.type||e.push(t))}),t.children=[...e]}}return t});o&&(n.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${o}`,dir:"auto"}},l.unshift({type:"paragraph",children:[kx(o),{type:"text",value:s.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),n.children=[...l]})}};function kx(e){return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:wx[e]??""}},children:[]}]}}const wx={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};var Sx=n(7323),Ax=n.n(Sx);function Tx(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?Tx(t.parentElement):null}function Ex(e){var t=e=>{var t=Tx(e.target);t&&(t.classList.add("active"),Ax()(t.dataset.code,function(){setTimeout(()=>{t.classList.remove("active")},2e3)}))};(0,K.useEffect)(()=>{var n,r;return null==(n=e.current)||n.removeEventListener("click",t,!1),null==(r=e.current)||r.addEventListener("click",t,!1),()=>{var n;null==(n=e.current)||n.removeEventListener("click",t,!1)}},[e])}var Cx=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],_x=e=>e;const Px=K.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:o,disableCopy:s=!1,skipHtml:a=!0,onScroll:l,onMouseOver:c,pluginsFilter:u,wrapperElement:h={},warpperElement:d={},urlTransform:p}=e,f=Mt(e,Cx),m=K.useRef(null);(0,K.useImperativeHandle)(t,()=>Dt({},e,{mdp:m}),[m,e]);var g=(n||"")+" "+(r||"");Ex(m);var O=[...f.rehypePlugins||[]],b={allowElement:(e,t,n)=>f.allowElement?f.allowElement(e,t,n):/^[A-Za-z0-9]+$/.test(e.tagName)};a||O.push(ag);var y=[xx,...f.remarkPlugins||[],bx],v=Dt({},d,h);return(0,Nt.jsx)("div",Dt({ref:m,onScroll:l,onMouseOver:c},v,{className:g,style:o,children:(0,Nt.jsx)(wy,Dt({},b,f,{skipHtml:!a,urlTransform:p||_x,rehypePlugins:u?u("rehype",O):O,remarkPlugins:u?u("remark",y):y,children:i||""}))}))});var Dx=function(e){return void 0===e&&(e={}),e=>{Bu(e,e=>{"element"===e.type&&"code"===e.tagName&&e.data&&e.data.meta&&(e.properties=Dt({},e.properties,{"data-meta":String(e.data.meta)}))})}},Mx=function(e){return void 0===e&&(e={}),e=>{Bu(e,e=>{if("element"===e.type&&"code"===e.tagName&&e.properties&&e.properties.dataMeta){e.data||(e.data={});var t=e.properties.dataMeta;"string"===typeof t&&(e.data.meta=t),delete e.properties.dataMeta}})}};const Nx=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Rx=Object.hasOwnProperty;function Ix(e){const t="element"===e.type?e.tagName.toLowerCase():"",n=2===t.length&&104===t.charCodeAt(0)?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const Qx={},Lx=new class{constructor(){this.occurrences,this.reset()}slug(e,t){const n=this;let r=function(e,t){if("string"!==typeof e)return"";t||(e=e.toLowerCase());return e.replace(Nx,"").replace(/ /g,"-")}(e,!0===t);const i=r;for(;Rx.call(n.occurrences,r);)n.occurrences[i]++,r=i+"-"+n.occurrences[i];return n.occurrences[r]=0,r}reset(){this.occurrences=Object.create(null)}};const Fx=function(e){if(null===e||void 0===e)return Bx;if("string"===typeof e)return function(e){return $x(t);function t(t){return t.tagName===e}}(e);if("object"===typeof e)return function(e){const t=[];let n=-1;for(;++n0&&void 0!==arguments[0]?arguments[0]:{};const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return e=>{Bu(e,(e,r,i)=>{if("element"===e.type||"root"===e.type){let r=!1;e.children=e.children.filter(e=>{if("raw"===e.type||"comment"===e.type){let i=(e.value||"").trim();if(i=i.replace(/^/,"$1"),i===t)return r=!0,!1;if(i===n)return r=!1,!1}return!r})}})}};var Vx={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};var Wx=[function(e){const t=(e||Qx).prefix||"";return function(e){Lx.reset(),Bu(e,"element",function(e){Ix(e)&&!e.properties.id&&(e.properties.id=t+Lx.slug(zu(e)))})}},function(e){const t=e||qx;let n=t.properties;const r=t.headingProperties,i=t.behavior||"prepend",o=t.content,s=t.group,a=Fx(t.test);let l;return"after"===i||"before"===i?l=function(e,t,r){if("number"!==typeof t||!r)return;const a=Xx(o||Hx,e),l=jx(e,Yx(n,e),a);let c="before"===i?[l,e]:[e,l];if(s){const t=Zx(s,e);t&&!Array.isArray(t)&&"element"===t.type&&(t.children=c,c=[t])}return r.children.splice(t,1,...c),[Fu,t+c.length]}:"wrap"===i?l=function(e){let t=e.children,r=[];"function"===typeof o?(t=[],r=o(e)):o&&(r=Ux(o));return e.children=[jx(e,Yx(n,e),Array.isArray(r)?[...t,...r]:[...t,r])],[Fu]}:(l=function(e){const t=Xx(o||Hx,e);return e.children["prepend"===i?"unshift":"push"](jx(e,Yx(n,e),t)),[Fu]},n||(n={ariaHidden:"true",tabIndex:-1})),function(e){Bu(e,"element",function(e,t,n){if(Ix(e)&&e.properties.id&&a(e,t,n))return Object.assign(e.properties,Yx(r,e)),l(e,t,n)})}},Gx];const Kx=K.forwardRef((e,t)=>{var n,r,i,o=[Dx,ag,Mx,...Wx,[Qd,{rewrite:(r=null!=(n=e.disableCopy)&&n,i=e.rehypeRewrite,(e,t,n)=>{if("element"===e.type&&n&&"root"===n.type&&/h(1|2|3|4|5|6)/.test(e.tagName)){var o=e.children&&e.children[0];o&&o.properties&&"true"===o.properties.ariaHidden&&(o.properties=Dt({class:"anchor"},o.properties),o.children=[Vx])}if("element"===e.type&&"pre"===e.tagName&&!r){var s=Id(e.children);e.children.push((void 0===(a=s)&&(a=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":a},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}))}var a;i&&i(e,null===t?void 0:t,null===n?void 0:n)})}],[Bd,{properties:"attr"}],...e.rehypePlugins||[],[eh,{ignoreMissing:!0}]];return(0,Nt.jsx)(Px,Dt({},e,{rehypePlugins:o,ref:t}))});var Jx={name:"bold",keyCommand:"bold",button:{"aria-label":"Add bold text"},icon:(0,Nt.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 384 512",children:(0,Nt.jsx)("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange(e=>({changes:[{from:e.from,insert:"**"},{from:e.to,insert:"**"}],range:Vs.OF.range(e.from+2,e.to+2)})))}},ek={name:"code",keyCommand:"code",button:{"aria-label":"Insert code"},icon:(0,Nt.jsxs)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:[(0,Nt.jsx)("path",{d:"M16 13 4 25.432 16 37m16-24 12 12.432L32 37",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Nt.jsx)("path",{d:"m28 4-7 40",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round"})]}),execute:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange(e=>({changes:[{from:e.from,insert:"`"},{from:e.to,insert:"`"}],range:Vs.OF.range(e.from+1,e.to+1)})))}},tk={name:"codeBlock",keyCommand:"codeBlock",button:{"aria-label":"Insert Code Block"},icon:(0,Nt.jsxs)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:[(0,Nt.jsx)("path",{d:"M21 6H9a3 3 0 0 0-3 3v22a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V21M24 34v8",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Nt.jsx)("path",{d:"m32 6-4 4 4 4m6-8 4 4-4 4M14 42h20",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})]}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.selection.main,i=n.state.sliceDoc(n.state.selection.main.from,n.state.selection.main.to);n.dispatch({changes:{from:r.from,to:r.to,insert:"```js\n"+i+"\n```"},selection:Vs.OF.range(r.from+3,r.from+5)})}}},nk={name:"italic",keyCommand:"italic",button:{"aria-label":"Add italic text"},icon:(0,Nt.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 320 512",children:(0,Nt.jsx)("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange(e=>({changes:[{from:e.from,insert:"*"},{from:e.to,insert:"*"}],range:Vs.OF.range(e.from+1,e.to+1)})))}},rk={name:"header",keyCommand:"header",button:{"aria-label":"Add header text"},icon:(0,Nt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"13",width:"13",children:(0,Nt.jsx)("path",{d:"M448 448c0 17.69-14.33 32-32 32h-96c-17.67 0-32-14.31-32-32s14.33-32 32-32h16V272H112v144h16c17.67 0 32 14.31 32 32s-14.33 32-32 32H32c-17.67 0-32-14.31-32-32s14.33-32 32-32h16V96H32C14.33 96 0 81.69 0 64s14.33-32 32-32h96c17.67 0 32 14.31 32 32s-14.33 32-32 32h-16v112h224V96h-16c-17.67 0-32-14.31-32-32s14.33-32 32-32h96c17.67 0 32 14.31 32 32s-14.33 32-32 32h-16v320h16c17.7 0 32 14.3 32 32z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="#",o=r.text.match(/^#+/);if(o&&o[0]){var s=o[0];s.length<6&&(i=s+"#")}i.length>6&&(i="#");var a=r.text.replace(/^#+/,"");n.dispatch({changes:{from:r.from,to:r.to,insert:i+" "+a},selection:{anchor:r.from+i.length+1}})}}},ik={name:"strike",keyCommand:"strike",button:{"aria-label":"Add strike text"},icon:(0,Nt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Nt.jsx)("path",{d:"M332.2 319.9c17.22 12.17 22.33 26.51 18.61 48.21-3.031 17.59-10.88 29.34-24.72 36.99-35.44 19.75-108.5 11.96-186-19.68-16.34-6.686-35.03 1.156-41.72 17.53s1.188 35.05 17.53 41.71c31.75 12.93 95.69 35.37 157.6 35.37 29.62 0 58.81-5.156 83.72-18.96 30.81-17.09 50.44-45.46 56.72-82.11 3.998-23.27 2.168-42.58-3.488-59.05H332.2zm155.8-80-176.5-.03c-15.85-5.614-31.83-10.34-46.7-14.62-85.47-24.62-110.9-39.05-103.7-81.33 2.5-14.53 10.16-25.96 22.72-34.03 20.47-13.15 64.06-23.84 155.4.343 17.09 4.53 34.59-5.654 39.13-22.74 4.531-17.09-5.656-34.59-22.75-39.12-91.31-24.18-160.7-21.62-206.3 7.654C121.8 73.72 103.6 101.1 98.09 133.1c-8.83 51.4 9.81 84.2 39.11 106.8H24c-13.25 0-24 10.75-24 23.1 0 13.25 10.75 23.1 24 23.1h464c13.25 0 24-10.75 24-23.1 0-12.3-10.7-23.1-24-23.1z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange(e=>({changes:[{from:e.from,insert:"~~"},{from:e.to,insert:"~~"}],range:Vs.OF.range(e.from+2,e.to+2)})))}},ok={name:"underline",keyCommand:"underline",button:{"aria-label":"Add underline text"},icon:(0,Nt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"13",width:"13",children:(0,Nt.jsx)("path",{d:"M416 448H32c-17.69 0-32 14.31-32 32s14.31 32 32 32h384c17.69 0 32-14.31 32-32s-14.3-32-32-32zM48 64.01h16v160c0 88.22 71.78 159.1 160 159.1s160-71.78 160-159.1v-160h16c17.69 0 32-14.32 32-32S417.69.91 400 .91l-96-.005c-17.69 0-32 14.32-32 32s14.31 32 32 32h16v160c0 52.94-43.06 95.1-96 95.1S128 276.1 128 224V64h16c17.69 0 32-14.31 32-32S161.69 0 144 0L48 .005c-17.69 0-32 14.31-32 31.1S30.31 64.01 48 64.01z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange(e=>({changes:[{from:e.from,insert:""},{from:e.to,insert:""}],range:Vs.OF.range(e.from+3,e.to+3)})))}},sk={name:"olist",keyCommand:"olist",button:{"aria-label":"Add olist text"},icon:(0,Nt.jsx)("svg",{viewBox:"0 0 576 512",height:"14",width:"14",children:(0,Nt.jsx)("path",{fill:"currentColor",d:"M55.1 56.04c0-13.26 11.64-24 24-24h32c14.2 0 24 10.74 24 24V176h16c14.2 0 24 10.8 24 24 0 13.3-9.8 24-24 24h-80c-12.36 0-24-10.7-24-24 0-13.2 11.64-24 24-24h16V80.04h-8c-12.36 0-24-10.75-24-24zm63.6 285.16c-6.6-7.4-18.3-6.9-24.05 1.2l-11.12 15.5c-7.7 10.8-22.69 13.3-33.48 5.6-10.79-7.7-13.28-22.7-5.58-33.4l11.12-15.6c23.74-33.3 72.31-35.7 99.21-4.9 21.3 23.5 20.8 60.9-1.1 84.7L118.8 432H152c13.3 0 24 10.7 24 24s-10.7 24-24 24H64c-9.53 0-18.16-5.6-21.98-14.4-3.83-8.7-2.12-18.9 4.34-25.9l72.04-78c5.3-5.8 5.4-14.6.3-20.5zM512 64c17.7 0 32 14.33 32 32 0 17.7-14.3 32-32 32H256c-17.7 0-32-14.3-32-32 0-17.67 14.3-32 32-32h256zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32s14.3-32 32-32h256zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32s14.3-32 32-32h256z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="1. ",o=r.text.match(/^1\./);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},ak={name:"ulist",keyCommand:"ulist",button:{"aria-label":"Add ulist text"},icon:(0,Nt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Nt.jsx)("path",{fill:"currentColor",d:"M88 48c13.3 0 24 10.75 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24V72c0-13.25 10.75-24 24-24h48zm392 16c17.7 0 32 14.33 32 32 0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32 0-17.67 14.3-32 32-32h288zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32s14.3-32 32-32h288zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32s14.3-32 32-32h288zM16 232c0-13.3 10.75-24 24-24h48c13.3 0 24 10.7 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24v-48zm72 136c13.3 0 24 10.7 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24v-48c0-13.3 10.75-24 24-24h48z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="- ",o=r.text.match(/^-/);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},lk={name:"quote",keyCommand:"quote",button:{"aria-label":"Add quote text"},icon:(0,Nt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"15",width:"15",children:(0,Nt.jsx)("path",{d:"M96 96c-53.02 0-96 42.1-96 96s42.98 96 96 96c11.28 0 21.95-2.305 32-5.879V288c0 35.3-28.7 64-64 64-17.67 0-32 14.33-32 32s14.33 32 32 32c70.58 0 128-57.42 128-128v-96c0-53.9-43-96-96-96zm352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96 42.98 96 96 96c11.28 0 21.95-2.305 32-5.879V288c0 35.3-28.7 64-64 64-17.67 0-32 14.33-32 32s14.33 32 32 32c70.58 0 128-57.42 128-128v-96z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="> ",o=r.text.match(/^>\s/);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},ck={name:"link",keyCommand:"link",button:{"aria-label":"Add link text"},icon:(0,Nt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 640 512",height:"16",width:"16",children:(0,Nt.jsx)("path",{d:"M172.5 131.1c55.6-55.59 148-55.59 203.6 0 50 50 57.4 129.7 16.3 187.2l-1.1 1.6c-10.3 14.3-30.3 17.7-44.6 7.4-14.4-10.3-17.8-30.3-7.5-44.6l1.1-1.6c22.9-32.1 19.3-76-8.6-103.9-31.4-31.4-82.5-31.4-114 0L105.5 289.5c-31.51 30.6-31.51 82.5 0 114 27.8 27.9 71.8 31.5 103.8 8.6l1.6-2c14.4-9.4 34.4-6.1 44.6 8.3 10.3 14.4 7 34.4-7.4 44.7l-1.6 1.1c-58.4 41.1-136.3 34.5-186.29-15.4-56.469-56.5-56.469-148.1 0-204.5L172.5 131.1zm295 248.9c-56.5 56.5-148 56.5-204.5 0-50-50-56.5-128.8-15.4-186.3l1.1-1.6c9.4-14.3 29.4-17.7 44.6-7.4 14.4 9.4 17.8 29.4 7.5 44.6l-1.1 1.6c-22.9 31.2-19.3 76 8.6 103.9 31.4 31.4 82.5 31.4 114 0l112.2-112.3c31.5-31.5 31.5-83.4 0-114-27.8-27.87-71.8-31.51-103.8-8.6l-1.6 1.1c-14.4 10.3-34.4 6.1-44.6-7.42-10.3-14.38-7-34.37 7.4-44.64l1.6-1.12C451 6.731 529.8 13.25 579.8 63.24c56.5 56.46 56.5 148.06 0 204.46L467.5 380z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n&&t&&n){var r=n.state.selection.main,i=n.state.sliceDoc(n.state.selection.main.from,n.state.selection.main.to);n.dispatch({changes:{from:r.from,to:r.to,insert:"["+i+"]()"},selection:Vs.OF.range(r.from+3+i.length,r.to+3)})}}},uk={name:"todo",keyCommand:"todo",button:{"aria-label":"Add todo List"},icon:(0,Nt.jsx)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:(0,Nt.jsx)("path",{d:"m5 10 3 3 6-6M5 24l3 3 6-6M5 38l3 3 6-6m7-11h22M21 38h22M21 10h22",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="- [ ] ",o=r.text.match(/^-\s\[\s\]\s/);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},hk={name:"image",keyCommand:"image",button:{"aria-label":"Add image text"},icon:(0,Nt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"14",width:"14",children:(0,Nt.jsx)("path",{fillRule:"evenodd",d:"M1.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h.94a.76.76 0 0 1 .03-.03l6.077-6.078a1.75 1.75 0 0 1 2.412-.06L14.5 10.31V2.75a.25.25 0 0 0-.25-.25H1.75zm12.5 11H4.81l5.048-5.047a.25.25 0 0 1 .344-.009l4.298 3.889v.917a.25.25 0 0 1-.25.25zm1.75-.25V2.75A1.75 1.75 0 0 0 14.25 1H1.75A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25zM5.5 6a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zM7 6a2 2 0 1 1-4 0 2 2 0 0 1 4 0z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.selection.main,i=n.state.sliceDoc(n.state.selection.main.from,n.state.selection.main.to);n.dispatch({changes:{from:r.from,to:r.to,insert:"![]("+i+")"},selection:Vs.OF.range(r.from+4,r.to+4)})}}},dk={name:"redo",keyCommand:"redo",button:{"aria-label":"redo text"},icon:(0,Nt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Nt.jsx)("path",{fill:"currentColor",d:"M58.79,439.13A16,16,0,0,1,48,424c0-73.1,14.68-131.56,43.65-173.77,35-51,90.21-78.46,164.35-81.87V88a16,16,0,0,1,27.05-11.57l176,168a16,16,0,0,1,0,23.14l-176,168A16,16,0,0,1,256,424V344.23c-45,1.36-79,8.65-106.07,22.64-29.25,15.12-50.46,37.71-73.32,67a16,16,0,0,1-17.82,5.28Z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&da(n)}},pk={name:"undo",keyCommand:"undo",button:{"aria-label":"undo text"},icon:(0,Nt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Nt.jsx)("path",{fill:"currentColor",d:"M448,440a16,16,0,0,1-12.61-6.15c-22.86-29.27-44.07-51.86-73.32-67C335,352.88,301,345.59,256,344.23V424A16,16,0,0,1,229,435.57l-176-168a16,16,0,0,1,0-23.14l176-168A16,16,0,0,1,256,88v80.36c74.14,3.41,129.38,30.91,164.35,81.87C449.32,292.44,464,350.9,464,424a16,16,0,0,1-16,16Z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&ha(n)}},fk=["editorProps","command","onClick"],mk=e=>{var{editorProps:t,command:n,onClick:r}=e,i=Mt(e,fk),o=(0,K.useRef)(0),[s,a]=(0,K.useState)(!1),l=(0,K.useRef)(s),c=e=>{var n;for(var r of e){var i;o.current||(o.current=r.target.clientHeight),null!=(i=t.editor)&&null!=(i=i.current)&&null!=(i=i.view)&&i.dom&&(l.current?t.editor.current.view.dom.style.height=r.target.clientHeight+"px":t.editor.current.view.dom.removeAttribute("style"))}null==(n=u.current)||n.disconnect(),u.current=void 0},u=(0,K.useRef)(new ResizeObserver(c));(0,K.useEffect)(()=>{if(u.current||(u.current=new ResizeObserver(c)),t.containerEditor&&t.containerEditor.current&&t.containerEditor.current.parentElement&&u.current){var e=t.containerEditor.current.parentElement;u.current.observe(e)}return()=>{u.current&&(u.current.disconnect(),u.current=void 0)}},[t.containerEditor,c,t.editor,s,u]),(0,K.useEffect)(()=>{if(document&&t&&t.container&&t.container.current&&t.editor){var e=t.container.current;document.body.style.overflow=s?"hidden":"initial",s?document.body.classList.add(t.prefixCls+"-fullscreen"):document.body.classList.remove(t.prefixCls+"-fullscreen"),e&&s?(e.style.zIndex="999",e.style.position="fixed",e.style.top="0px",e.style.bottom="0px",e.style.left="0px",e.style.right="0px"):e&&(e.style.position="initial",e.style.top="initial",e.style.bottom="initial",e.style.left="initial",e.style.right="initial")}},[s,t]);return(0,Nt.jsx)("button",Dt({},i,{onClick:e=>{var t=!s;l.current=t,a(t),null==r||r(e,t)},type:"button",className:s?"active":"",children:n.icon}))},gk={name:"fullscreen",keyCommand:"fullscreen",button:(e,t,n)=>(0,Nt.jsx)(mk,{command:e,editorProps:Dt({},t,n)}),icon:(0,Nt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"15",width:"15",children:(0,Nt.jsx)("path",{d:"M128 32H32C14.31 32 0 46.31 0 64v96c0 17.69 14.31 32 32 32s32-14.31 32-32V96h64c17.69 0 32-14.31 32-32s-14.3-32-32-32zm288 0h-96c-17.69 0-32 14.31-32 32s14.31 32 32 32h64v64c0 17.69 14.31 32 32 32s32-14.31 32-32V64c0-17.69-14.3-32-32-32zM128 416H64v-64c0-17.69-14.31-32-32-32S0 334.31 0 352v96c0 17.69 14.31 32 32 32h96c17.69 0 32-14.31 32-32s-14.3-32-32-32zm288-96c-17.69 0-32 14.31-32 32v64h-64c-17.69 0-32 14.31-32 32s14.31 32 32 32h96c17.69 0 32-14.31 32-32v-96c0-17.7-14.3-32-32-32z"})})},Ok=e=>{var{editorProps:t}=e,{containerEditor:n,preview:r,previewWidth:i="50%",enablePreview:o=!0}=t,[s,a]=(0,K.useState)(e.editorProps.visible);if((0,K.useEffect)(()=>a(e.editorProps.visible),[e.editorProps.visible]),(0,K.useEffect)(()=>{if(r.current){var e=r.current;r&&(e.style.borderBottomRightRadius="3px"),e&&s?(e.style.width=i,e.style.overflow="auto","100%"!==i&&(e.style.borderLeft="1px solid var(--color-border-muted)"),e.style.padding="20px",n.current&&(n.current.style.width="calc(100% - "+i+")")):e&&(e.style.width="0%",e.style.overflow="hidden",e.style.borderLeft="0px",e.style.padding="0",n.current&&(n.current.style.width="100%"))}},[s,n,r,i]),o){return(0,Nt.jsx)("button",{onClick:()=>{t.onPreviewMode&&t.onPreviewMode(!s),a(!s)},type:"button",className:s?"active":"",children:e.command.icon})}},bk={name:"preview",keyCommand:"preview",button:(e,t,n)=>(0,Nt.jsx)(Ok,{command:e,editorProps:Dt({},t,n)}),icon:(0,Nt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 576 512",height:"16",width:"16",children:(0,Nt.jsx)("path",{d:"M279.6 160.4c2.8-.3 5.6-.4 8.4-.4 53 0 96 42.1 96 96 0 53-43 96-96 96-53.9 0-96-43-96-96 0-2.8.1-5.6.4-8.4 9.3 4.5 20.1 8.4 31.6 8.4 35.3 0 64-28.7 64-64 0-11.5-3.9-22.3-8.4-31.6zm201-47.8c46.8 43.4 78.1 94.5 92.9 131.1 3.3 7.9 3.3 16.7 0 24.6-14.8 35.7-46.1 86.8-92.9 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.58-80.6C48.62 355.1 17.34 304 2.461 268.3a31.967 31.967 0 0 1 0-24.6C17.34 207.1 48.62 156 95.42 112.6 142.5 68.84 207.2 32 288 32c80.8 0 145.5 36.84 192.6 80.6zM288 112c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144z"})})},yk={undo:pk,redo:dk,bold:Jx,italic:nk,header:rk,strike:ik,underline:ok,quote:lk,olist:sk,ulist:ak,todo:uk,link:ck,image:hk,code:ek,codeBlock:tk,fullscreen:gk,preview:bk},vk=()=>Object.keys(yk).filter(e=>!/^(fullscreen|preview)/.test(e)).map(e=>yk[e]),xk=()=>[bk,gk],kk=["prefixCls","className","onClick","toolbars","editor","mode","preview","container","containerEditor","editorProps"];function wk(e){var{prefixCls:t="md-editor",className:n,toolbars:r=[],editor:i,mode:o,preview:s,container:a,containerEditor:l,editorProps:c={}}=e,u=Mt(e,kk);if(!r||0===r.length)return null;return c.prefixCls=t,(0,Nt.jsx)("div",Dt({className:t+"-toolbar "+(n||"")+" "+(o?t+"-toolbar-mode":"")},u,{children:[...r].map((e,t)=>{var n={type:"button"},r="string"===typeof e?yk[e]:e;if(!r)return null;if(n.children=r.icon,n.onClick=()=>{var e;(e=r.execute)&&i&&i&&e(i.current)},r.button&&"object"===typeof r.button){var o=r.button;Object.keys(o).forEach(e=>{n[e]=o[e]})}else if("function"===typeof r.button){var u=r.button(r,c,{preview:s,container:a,containerEditor:l,editor:i,editorProps:c});return(0,Nt.jsx)(K.Fragment,{children:u},t)}return(0,K.createElement)("button",Dt({},n,{key:t}))})}))}var Sk=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},o={};n.background&&(o.backgroundColor=n.background),n.backgroundImage&&(o.backgroundImage=n.backgroundImage),n.foreground&&(o.color=n.foreground),n.fontSize&&(o.fontSize=n.fontSize),(n.background||n.foreground)&&(i["&"]=o),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var s={};n.gutterActiveForeground&&(s.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},s.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=s,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var a=Ys.Lz.theme(i,{dark:"dark"===t}),l=Us.cr.define(r);return[a,(0,Us.y9)(l)]};var Ak=Sk({theme:"light",settings:{background:"var(--color-canvas-subtle)",foreground:"var(--color-fg-default)",caret:"var(--color-fg-default)",selection:"var(--color-border-default)",selectionMatch:"var(--color-border-muted)",lineHighlight:"var(--color-neutral-muted)",gutterBackground:"var(--color-canvas-subtle)",gutterForeground:"var(--color-fg-muted)",gutterBorder:"var(--color-border-muted)"},styles:[{tag:tu._A.comment,color:"var(--color-prettylights-syntax-comment)"},{tag:tu._A.variableName,color:"var(--color-prettylights-syntax-variable)"},{tag:[tu._A.string,tu._A.special(tu._A.brace)],color:"var(--color-prettylights-syntax-entity)"},{tag:tu._A.number,color:"var(--color-prettylights-syntax-variable)"},{tag:[tu._A.bool,tu._A.null],color:"var(--color-prettylights-syntax-entity)"},{tag:tu._A.keyword,color:"var(--color-prettylights-syntax-keyword)",fontWeight:"bold"},{tag:tu._A.string,color:"var(--color-prettylights-syntax-string)"},{tag:tu._A.operator,color:"var(--color-accent-emphasis)"},{tag:tu._A.deleted,color:"var(--color-prettylights-syntax-markup-deleted-bg)"},{tag:tu._A.deleted,color:"red"},{tag:tu._A.className,color:"var(--color-prettylights-syntax-variable)"},{tag:tu._A.definition(tu._A.typeName),color:"var(--color-prettylights-syntax-entity)"},{tag:tu._A.typeName,color:"var(--color-prettylights-syntax-entity)"},{tag:tu._A.list,color:"var(--color-prettylights-syntax-markup-list)"},{tag:tu._A.heading,color:"var(--color-prettylights-syntax-markup-heading)",fontWeight:"bold"},{tag:tu._A.regexp,color:"var(--color-prettylights-syntax-string-regexp)"},{tag:tu._A.literal,color:"var(--color-prettylights-syntax-markup-italic)"},{tag:tu._A.link,color:"var(--color-prettylights-syntax-constant-other-reference-link)",textDecoration:"underline"},{tag:tu._A.angleBracket,color:"var(--color-fg-default)"},{tag:tu._A.tagName,color:"var(--color-prettylights-syntax-entity-tag)"},{tag:tu._A.attributeName,color:"var(--color-prettylights-syntax-constant)"}]}),Tk=["prefixCls","className","onChange","toolbars","toolbarsMode","toolbarsFilter","visible","renderPreview","visibleEditor","hideToolbar","showToolbar","toolbarBottom","enableScroll","enablePreview","previewProps","extensions","previewWidth","reExtensions","onPreviewMode"],Ek=Ys.Lz.theme({"&.cm-editor, & .cm-scroller":{borderBottomRightRadius:"3px",borderBottomLeftRadius:"3px"}}),Ck=K.forwardRef(Pk);Ck.Markdown=Kx;const _k=Ck;function Pk(e,t){var{prefixCls:n="md-editor",className:r,onChange:i,toolbars:o=vk(),toolbarsMode:s=xk(),toolbarsFilter:a,visible:l=!0,renderPreview:c,visibleEditor:u=!0,hideToolbar:h,showToolbar:d=!0,toolbarBottom:p=!1,enableScroll:f=!0,enablePreview:m=!0,previewProps:g={},extensions:O=[],previewWidth:b="50%",reExtensions:y}=e,v=Mt(e,Tk),[x,k]=(0,K.useState)(e.value||""),w=(0,K.useRef)(null),S=(0,K.useRef)(null),A=(0,K.useRef)(null),T=(0,K.useRef)(null),E=(0,K.useRef)("editor");(0,K.useImperativeHandle)(t,()=>({editor:w,preview:T}),[w]);var C={prefixCls:n,preview:T,editor:w,container:S,containerEditor:A,editorProps:Dt({},e,{previewWidth:b})},_="number"===typeof v.height?v.height+"px":v.height,P=e.value;(0,K.useEffect)(()=>k(null!=P?P:""),[P]);var D=(0,K.useCallback)(e=>{if(f){var t=e.target,n=t.scrollTop/t.scrollHeight;if("editor"===E.current&&T.current){var r,i=(null==(r=T.current)?void 0:r.scrollHeight)||0;T.current.scrollTop=i*n}else if(w.current&&w.current.view){var o=w.current.view.scrollDOM,s=w.current.view.scrollDOM.scrollHeight||0;o.scrollTop=s*n}}},[f]),M=()=>E.current="preview",N=()=>E.current="editor";(0,K.useEffect)(()=>{var e=T.current;return e&&f&&(e.addEventListener("mouseover",M,!1),e.addEventListener("mouseleave",N,!1),e.addEventListener("scroll",D,!1)),()=>{e&&f&&(e.removeEventListener("mouseover",M),e.removeEventListener("mouseleave",M),e.addEventListener("mouseleave",D,!1))}},[T,f,D]);var R=Gs({type:"scroll",events:{scroll:D}}),I=y||[(0,qs.markdown)({base:qs.Sz,codeLanguages:Zs}),Ek,...O];f&&I.push(R);var Q=n+"-preview",L=[n,"wmde-markdown-var",r].filter(Boolean).join(" ");g.source=x;var F=(0,Nt.jsxs)("div",{className:n+"-content",style:{height:v.height},children:[(0,Nt.jsx)("div",{className:n+"-content-editor",ref:A,children:u&&(0,Nt.jsx)(Pu,Dt({theme:Ak},v,{className:n+"-inner",extensions:I,height:_,ref:w,onChange:(e,t)=>{k(e),i&&i(e,t)}}))}),m&&(0,Nt.jsx)("div",{className:Q,ref:T,children:c?c(g,!!l):(0,Nt.jsx)(Kx,Dt({},g,{"data-visible":!!l}))})]}),$=[n&&n+"-toolbar-warp",n&&p&&n+"-toolbar-bottom"].filter(Boolean).join(" "),B=a?o.filter(a):o,z=a?s.filter(a):s,H=(null!=h?h:d)&&(0,Nt.jsxs)("div",{className:$,children:[(0,Nt.jsx)(wk,Dt({},C,{toolbars:B})),(0,Nt.jsx)(wk,Dt({},C,{toolbars:z,mode:!0}))]}),q=p?(0,Nt.jsxs)(K.Fragment,{children:[F,H]}):(0,Nt.jsxs)(K.Fragment,{children:[H,F]});return(0,Nt.jsx)("div",{className:L,ref:S,children:q})}var Dk={background:"#0f0f0f",foreground:"#defdef",caret:"#00FF00",selection:"#515151",selectionMatch:"#515151",gutterBackground:"#555",gutterForeground:"#FFFFFF",lineHighlight:"#0a6bcb3d"},Mk=[{tag:tu._A.keyword,color:"darkgoldenrod",fontWeight:"bold"},{tag:tu._A.atom,color:"#77F"},{tag:tu._A.comment,color:"#7a7b7c",fontStyle:"italic"},{tag:tu._A.number,color:"violet"},{tag:tu._A.definition(tu._A.variableName),color:"#fffabc"},{tag:tu._A.variableName,color:"#abcdef"},{tag:tu._A.function(tu._A.variableName),color:"#fffabc"},{tag:tu._A.typeName,color:"#FFDD44"},{tag:tu._A.tagName,color:"#def"},{tag:tu._A.string,color:"#2b4"},{tag:tu._A.meta,color:"#C9F"},{tag:tu._A.bracket,color:"#8a8a8a"},{tag:tu._A.attributeName,color:"#DDFF00"},{tag:tu._A.heading,color:"aquamarine",fontWeight:"bold"},{tag:tu._A.link,color:"blueviolet",fontWeight:"bold"}],Nk=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return Sk({theme:t,settings:Dt({},Dk,n),styles:[...Mk,...r]})})(),Rk={background:"#282b2e",foreground:"#a9b7c6",caret:"#00FF00",selection:"#4e5254",selectionMatch:"#4e5254",lineHighlight:"#7f85891f"},Ik=[{tag:[tu._A.keyword,tu._A.deleted,tu._A.className],color:"#cc7832"},{tag:[tu._A.number,tu._A.literal,tu._A.derefOperator],color:"#6897bb"},{tag:[tu._A.link,tu._A.variableName],color:"#629755"},{tag:[tu._A.comment,tu._A.quote],color:"grey"},{tag:[tu._A.meta,tu._A.documentMeta],color:"#bbb529"},{tag:[tu._A.string,tu._A.propertyName,tu._A.attributeValue],color:"#6a8759"},{tag:[tu._A.heading,tu._A.typeName],color:"#ffc66d"},{tag:[tu._A.attributeName],color:"#a9b7c6"},{tag:[tu._A.emphasis],fontStyle:"italic"}],Qk=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return Sk({theme:t,settings:Dt({},Rk,n),styles:[...Ik,...r]})})(),Lk={background:"#272C35",foreground:"#9d9b97",caret:"#797977",selection:"#3d4c64",selectionMatch:"#3d4c64",gutterBackground:"#272C35",gutterForeground:"#465063",gutterBorder:"transparent",lineHighlight:"#2e3f5940"},Fk=[{tag:[tu._A.function(tu._A.variableName),tu._A.function(tu._A.propertyName),tu._A.url,tu._A.processingInstruction],color:"hsl(207, 82%, 66%)"},{tag:[tu._A.tagName,tu._A.heading],color:"#e06c75"},{tag:tu._A.comment,color:"#54636D"},{tag:[tu._A.propertyName],color:"hsl(220, 14%, 71%)"},{tag:[tu._A.attributeName,tu._A.number],color:"hsl( 29, 54%, 61%)"},{tag:tu._A.className,color:"hsl( 39, 67%, 69%)"},{tag:tu._A.keyword,color:"hsl(286, 60%, 67%)"},{tag:[tu._A.string,tu._A.regexp,tu._A.special(tu._A.propertyName)],color:"#98c379"}],$k=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return Sk({theme:t,settings:Dt({},Lk,n),styles:[...Fk,...r]})})(),Bk={background:"#FFFFFF",foreground:"#000000",caret:"#FBAC52",selection:"#FFD420",selectionMatch:"#FFD420",gutterBackground:"#f5f5f5",gutterForeground:"#4D4D4C",gutterBorder:"transparent",lineHighlight:"#00000012"},zk=[{tag:[tu._A.meta,tu._A.comment],color:"#804000"},{tag:[tu._A.keyword,tu._A.strong],color:"#0000FF"},{tag:[tu._A.number],color:"#FF0080"},{tag:[tu._A.string],color:"#FF0080"},{tag:[tu._A.variableName],color:"#006600"},{tag:[tu._A.escape],color:"#33CC33"},{tag:[tu._A.tagName],color:"#1C02FF"},{tag:[tu._A.heading],color:"#0C07FF"},{tag:[tu._A.quote],color:"#000000"},{tag:[tu._A.list],color:"#B90690"},{tag:[tu._A.documentMeta],color:"#888888"},{tag:[tu._A.function(tu._A.variableName)],color:"#0000A2"},{tag:[tu._A.definition(tu._A.typeName),tu._A.typeName],color:"#6D79DE"}],Hk=(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};return Sk({theme:t,settings:Dt({},Bk,n),styles:[...zk,...r]})})(),qk={background:"#28211c",foreground:"#9d9b97",caret:"#797977",selection:"#4f382b",selectionMatch:"#4f382b",gutterBackground:"#28211c",gutterForeground:"#666666",lineHighlight:"#ffffff1a"},Uk=[{tag:[tu._A.atom,tu._A.number,tu._A.link,tu._A.bool],color:"#9b859d"},{tag:tu._A.comment,color:"#937121"},{tag:[tu._A.keyword,tu._A.tagName],color:"#cf6a4c"},{tag:tu._A.string,color:"#f9ee98"},{tag:tu._A.bracket,color:"#9d9b97"},{tag:[tu._A.variableName],color:"#5ea6ea"},{tag:tu._A.definition(tu._A.variableName),color:"#cf7d34"},{tag:[tu._A.function(tu._A.variableName),tu._A.className],color:"#cf7d34"},{tag:[tu._A.propertyName,tu._A.attributeName],color:"#54be0d"}],jk=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return Sk({theme:t,settings:Dt({},qk,n),styles:[...Uk,...r]})})(),Xk={background:"#2B2B2B",foreground:"#f8f8f2",caret:"#FFFFFF",selection:"rgba(255, 255, 255, 0.1)",selectionMatch:"rgba(255, 255, 255, 0.2)",gutterBackground:"rgba(255, 255, 255, 0.1)",gutterForeground:"#999",gutterBorder:"transparent",lineHighlight:"rgba(255, 255, 255, 0.1)"},Zk=[{tag:[tu._A.atom,tu._A.number],color:"#bd93f9"},{tag:[tu._A.comment],color:"#61A151"},{tag:[tu._A.string],color:"#6A8759"},{tag:[tu._A.variableName,tu._A.operator],color:"#A9B7C6"},{tag:[tu._A.meta,tu._A.className],color:"#A9B7C6"},{tag:[tu._A.propertyName],color:"#FFC66D"},{tag:[tu._A.keyword],color:"#CC7832"},{tag:[tu._A.tagName],color:"#ff79c6"},{tag:[tu._A.typeName],color:"#ffb86c"}],Yk=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return Sk({theme:t,settings:Dt({},Xk,n),styles:[...Zk,...r]})})(),Gk={background:"#282a36",foreground:"#f8f8f2",caret:"#f8f8f0",selection:"rgba(255, 255, 255, 0.1)",selectionMatch:"rgba(255, 255, 255, 0.2)",gutterBackground:"#282a36",gutterForeground:"#6D8A88",gutterBorder:"transparent",lineHighlight:"rgba(255, 255, 255, 0.1)"},Vk=[{tag:tu._A.comment,color:"#6272a4"},{tag:tu._A.string,color:"#f1fa8c"},{tag:tu._A.atom,color:"#bd93f9"},{tag:tu._A.meta,color:"#f8f8f2"},{tag:[tu._A.keyword,tu._A.operator,tu._A.tagName],color:"#ff79c6"},{tag:[tu._A.function(tu._A.propertyName),tu._A.propertyName],color:"#66d9ef"},{tag:[tu._A.definition(tu._A.variableName),tu._A.function(tu._A.variableName),tu._A.className,tu._A.attributeName],color:"#50fa7b"},{tag:tu._A.atom,color:"#bd93f9"}],Wk=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return Sk({theme:t,settings:Dt({},Gk,n),styles:[...Vk,...r]})})(),Kk={background:"#faf8f5",foreground:"#b29762",caret:"#93abdc",selection:"#e3dcce",selectionMatch:"#e3dcce",gutterBackground:"#faf8f5",gutterForeground:"#cdc4b1",gutterBorder:"transparent",lineHighlight:"#ddceb154"},Jk=[{tag:[tu._A.comment,tu._A.bracket],color:"#b6ad9a"},{tag:[tu._A.atom,tu._A.number,tu._A.keyword,tu._A.link,tu._A.attributeName,tu._A.quote],color:"#063289"},{tag:[tu._A.emphasis,tu._A.heading,tu._A.tagName,tu._A.propertyName,tu._A.variableName],color:"#2d2006"},{tag:[tu._A.typeName,tu._A.url,tu._A.string],color:"#896724"},{tag:[tu._A.operator,tu._A.string],color:"#1659df"},{tag:[tu._A.propertyName],color:"#b29762"},{tag:[tu._A.unit,tu._A.punctuation],color:"#063289"}],ew=(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};return Sk({theme:t,settings:Dt({},Kk,n),styles:[...Jk,...r]})})(),tw={background:"#2a2734",foreground:"#6c6783",caret:"#ffad5c",selection:"#91ff6c26",selectionMatch:"#91ff6c26",gutterBackground:"#2a2734",gutterForeground:"#545167",lineHighlight:"#36334280"},nw=[{tag:[tu._A.comment,tu._A.bracket],color:"#6c6783"},{tag:[tu._A.atom,tu._A.number,tu._A.keyword,tu._A.link,tu._A.attributeName,tu._A.quote],color:"#ffcc99"},{tag:[tu._A.emphasis,tu._A.heading,tu._A.tagName,tu._A.propertyName,tu._A.className,tu._A.variableName],color:"#eeebff"},{tag:[tu._A.typeName,tu._A.url],color:"#7a63ee"},{tag:tu._A.operator,color:"#ffad5c"},{tag:tu._A.string,color:"#ffb870"},{tag:[tu._A.propertyName],color:"#9a86fd"},{tag:[tu._A.unit,tu._A.punctuation],color:"#e09142"}],rw=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return Sk({theme:t,settings:Dt({},tw,n),styles:[...nw,...r]})})(),iw={background:"#fff",foreground:"#000",caret:"#FFFFFF",selection:"#d7d4f0",selectionMatch:"#d7d4f0",gutterBackground:"#f7f7f7",gutterForeground:"#999",lineHighlight:"#006fff1c",gutterBorder:"transparent"},ow=[{tag:[tu._A.comment],color:"#3F7F5F"},{tag:[tu._A.documentMeta],color:"#FF1717"},{tag:tu._A.keyword,color:"#7F0055",fontWeight:"bold"},{tag:tu._A.atom,color:"#00f"},{tag:tu._A.number,color:"#164"},{tag:tu._A.propertyName,color:"#164"},{tag:[tu._A.variableName,tu._A.definition(tu._A.variableName)],color:"#0000C0"},{tag:tu._A.function(tu._A.variableName),color:"#0000C0"},{tag:tu._A.string,color:"#2A00FF"},{tag:tu._A.operator,color:"black"},{tag:tu._A.tagName,color:"#170"},{tag:tu._A.attributeName,color:"#00c"},{tag:tu._A.link,color:"#219"}],sw=(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};return Sk({theme:t,settings:Dt({},iw,n),styles:[...ow,...r]})})(),aw={background:"#fff",foreground:"#24292e",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#6e7781"},lw=[{tag:[tu._A.standard(tu._A.tagName),tu._A.tagName],color:"#116329"},{tag:[tu._A.comment,tu._A.bracket],color:"#6a737d"},{tag:[tu._A.className,tu._A.propertyName],color:"#6f42c1"},{tag:[tu._A.variableName,tu._A.attributeName,tu._A.number,tu._A.operator],color:"#005cc5"},{tag:[tu._A.keyword,tu._A.typeName,tu._A.typeOperator,tu._A.typeName],color:"#d73a49"},{tag:[tu._A.string,tu._A.meta,tu._A.regexp],color:"#032f62"},{tag:[tu._A.name,tu._A.quote],color:"#22863a"},{tag:[tu._A.heading,tu._A.strong],color:"#24292e",fontWeight:"bold"},{tag:[tu._A.emphasis],color:"#24292e",fontStyle:"italic"},{tag:[tu._A.deleted],color:"#b31d28",backgroundColor:"ffeef0"},{tag:[tu._A.atom,tu._A.bool,tu._A.special(tu._A.variableName)],color:"#e36209"},{tag:[tu._A.url,tu._A.escape,tu._A.regexp,tu._A.link],color:"#032f62"},{tag:tu._A.link,textDecoration:"underline"},{tag:tu._A.strikethrough,textDecoration:"line-through"},{tag:tu._A.invalid,color:"#cb2431"}],cw=(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};return Sk({theme:t,settings:Dt({},aw,n),styles:[...lw,...r]})})(),uw={background:"#0d1117",foreground:"#c9d1d9",caret:"#c9d1d9",selection:"#003d73",selectionMatch:"#003d73",lineHighlight:"#36334280"},hw=[{tag:[tu._A.standard(tu._A.tagName),tu._A.tagName],color:"#7ee787"},{tag:[tu._A.comment,tu._A.bracket],color:"#8b949e"},{tag:[tu._A.className,tu._A.propertyName],color:"#d2a8ff"},{tag:[tu._A.variableName,tu._A.attributeName,tu._A.number,tu._A.operator],color:"#79c0ff"},{tag:[tu._A.keyword,tu._A.typeName,tu._A.typeOperator,tu._A.typeName],color:"#ff7b72"},{tag:[tu._A.string,tu._A.meta,tu._A.regexp],color:"#a5d6ff"},{tag:[tu._A.name,tu._A.quote],color:"#7ee787"},{tag:[tu._A.heading,tu._A.strong],color:"#d2a8ff",fontWeight:"bold"},{tag:[tu._A.emphasis],color:"#d2a8ff",fontStyle:"italic"},{tag:[tu._A.deleted],color:"#ffdcd7",backgroundColor:"ffeef0"},{tag:[tu._A.atom,tu._A.bool,tu._A.special(tu._A.variableName)],color:"#ffab70"},{tag:tu._A.link,textDecoration:"underline"},{tag:tu._A.strikethrough,textDecoration:"line-through"},{tag:tu._A.invalid,color:"#f97583"}],dw=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return Sk({theme:t,settings:Dt({},uw,n),styles:[...hw,...r]})})(),pw={background:"#272822",foreground:"#FFFFFF",caret:"#FFFFFF",selection:"#49483E",selectionMatch:"#49483E",gutterBackground:"#272822",gutterForeground:"#FFFFFF70",lineHighlight:"#0000003b"},fw=[{tag:[tu._A.comment,tu._A.documentMeta],color:"#8292a2"},{tag:[tu._A.number,tu._A.bool,tu._A.null,tu._A.atom],color:"#ae81ff"},{tag:[tu._A.attributeValue,tu._A.className,tu._A.name],color:"#e6db74"},{tag:[tu._A.propertyName,tu._A.attributeName],color:"#a6e22e"},{tag:[tu._A.variableName],color:"#9effff"},{tag:[tu._A.squareBracket],color:"#bababa"},{tag:[tu._A.string,tu._A.special(tu._A.brace)],color:"#e6db74"},{tag:[tu._A.regexp,tu._A.className,tu._A.typeName,tu._A.definition(tu._A.typeName)],color:"#66d9ef"},{tag:[tu._A.definition(tu._A.variableName),tu._A.definition(tu._A.propertyName),tu._A.function(tu._A.variableName)],color:"#fd971f"},{tag:[tu._A.keyword,tu._A.definitionKeyword,tu._A.modifier,tu._A.tagName,tu._A.angleBracket],color:"#f92672"}],mw=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return Sk({theme:t,settings:Dt({},pw,n),styles:[...fw,...r]})})(),gw={background:"#303841",foreground:"#FFFFFF",caret:"#FBAC52",selection:"#4C5964",selectionMatch:"#3A546E",gutterBackground:"#303841",gutterForeground:"#FFFFFF70",lineHighlight:"#00000059"},Ow=[{tag:[tu._A.meta,tu._A.comment],color:"#A2A9B5"},{tag:[tu._A.attributeName,tu._A.keyword],color:"#B78FBA"},{tag:tu._A.function(tu._A.variableName),color:"#5AB0B0"},{tag:[tu._A.string,tu._A.regexp,tu._A.attributeValue],color:"#99C592"},{tag:tu._A.operator,color:"#f47954"},{tag:[tu._A.tagName,tu._A.modifier],color:"#E35F63"},{tag:[tu._A.number,tu._A.definition(tu._A.tagName),tu._A.className,tu._A.definition(tu._A.variableName)],color:"#fbac52"},{tag:[tu._A.atom,tu._A.bool,tu._A.special(tu._A.variableName)],color:"#E35F63"},{tag:tu._A.variableName,color:"#539ac4"},{tag:[tu._A.propertyName,tu._A.typeName],color:"#629ccd"},{tag:tu._A.propertyName,color:"#36b7b5"}];var bw=function(e){var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return Sk({theme:t,settings:Dt({},gw,n),styles:[...Ow,...r]})}(),yw={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"},vw=[{tag:[tu._A.comment,tu._A.quote],color:"#707F8D"},{tag:[tu._A.typeName,tu._A.typeOperator],color:"#aa0d91"},{tag:[tu._A.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[tu._A.string,tu._A.meta],color:"#D23423"},{tag:[tu._A.name],color:"#032f62"},{tag:[tu._A.typeName],color:"#522BB2"},{tag:[tu._A.variableName],color:"#23575C"},{tag:[tu._A.definition(tu._A.variableName)],color:"#327A9E"},{tag:[tu._A.regexp,tu._A.link],color:"#0e0eff"}];var xw=function(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return Sk({theme:t,settings:Dt({},yw,n),styles:[...vw,...r]})}(),kw={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},ww=[{tag:[tu._A.comment,tu._A.quote],color:"#7F8C98"},{tag:[tu._A.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[tu._A.string,tu._A.meta],color:"#FF8170"},{tag:[tu._A.typeName],color:"#DABAFF"},{tag:[tu._A.definition(tu._A.variableName)],color:"#6BDFFF"},{tag:[tu._A.name],color:"#6BAA9F"},{tag:[tu._A.variableName],color:"#ACF2E4"},{tag:[tu._A.regexp,tu._A.link],color:"#FF8170"}],Sw=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return Sk({theme:t,settings:Dt({},kw,n),styles:[...ww,...r]})})();const Aw='
\n \u4f7f\u7528\u6211\u7684\u5e94\u7528\u4e5f\u662f\u4e00\u79cd\u652f\u6301\u6211\u7684\u65b9\u5f0f\uff1a\n
\n Scap: Screenshot & Markup Edit\n Screen Test\n Deskmark\n Keyzer\n Vidwall Hub\n VidCrop\n Vidwall\n Mousio Hint\n Mousio\n Musicer\n Audioer\n FileSentinel\n FocusCursor\n Videoer\n KeyClicker\n DayBar\n Iconed\n Mousio\n Quick RSS\n Quick RSS\n Web Serve\n Copybook Generator\n DevTutor for SwiftUI\n RegexMate\n Time Passage\n Iconize Folder\n Textsound Saver\n Create Custom Symbols\n DevHub\n Resume Revise\n Palette Genius\n Symbol Scribe\n
\n
\n\n
\n

\u5fae\u4fe1\u516c\u4f17\u53f7 Markdown \u7f16\u8f91\u5668

\n
\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy_Me_a_Coffee-ffdd00?logo=buy-me-a-coffee&logoColor=black)](https://jaywcjlove.github.io/#/sponsor)\n[![Follow On X](https://img.shields.io/badge/Follow%20on%20X-333333?logo=x&logoColor=white)](https://x.com/jaywcjlove)\n[![CI](https://github.com/jaywcjlove/wxmp/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/wxmp/actions/workflows/ci.yml)\n[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp)\n[![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp)\n[![Docker Pulls](https://img.shields.io/docker/pulls/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp)\n\n[![\u5fae\u4fe1\u516c\u4f17\u53f7 Markdown \u7f16\u8f91\u5668](https://user-images.githubusercontent.com/1680273/188264183-a6b8cb6a-92e1-4a73-afc5-4f0234b26ed3.png)](https://jaywcjlove.github.io/wxmp)\n\n\u5fae\u4fe1\u516c\u4f17\u53f7\u6587\u7ae0 Markdown \u5728\u7ebf\u7f16\u8f91\u5668\uff0c\u4f7f\u7528 markdown \u8bed\u6cd5\u521b\u5efa\u4e00\u7bc7\u7b80\u4ecb\u7f8e\u89c2\u5927\u65b9\u7684\u5fae\u4fe1\u516c\u4f17\u53f7\u56fe\u6587\u3002\u7531\u4e8e\u53d1\u7248\u672c\u9ebb\u70e6\uff0c\u548c\u4e00\u4e9b\u529f\u80fd\u65e0\u6cd5\u6269\u5c55\u505c\u6ede\u5f00\u53d1\u4e86\uff0c\u672a\u6765\u4e0d\u518d\u5f00\u53d1 Chrome \u7684\u63d2\u4ef6(\u6682\u5b58\u5728 chrome \u5206\u652f)\uff0c\u901a\u8fc7 web \u7248\u672c\u5b9a\u5236\u66f4\u4e30\u5bcc\u7684\u529f\u80fd\u3002\n\n[![Markdown \u7f16\u8f91\u5668\u684c\u9762\u5e94\u7528](https://user-images.githubusercontent.com/1680273/188407235-ead43d61-2ef8-416a-926f-396d8b824b33.png)](https://github.com/jaywcjlove/wxmp/releases)\n\n## \u529f\u80fd\u7279\u6027\n\n\u5f00\u53d1\u8ba1\u5212\u548c\u4e00\u4e9b\u529f\u80fd\u4ecb\u7ecd\uff0c\u6709\u9700\u6c42\u53ef\u4ee5\u5728 issue \u4e2d\u63d0\uff0c\u4f7f\u5f97\u5de5\u5177\u53d8\u5f97\u66f4\u52a0\u5b8c\u5584\u3002\u4e0b\u9762\u793a\u4f8b\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n- [x] \u652f\u6301 Markdown \u6240\u6709\u57fa\u7840\u8bed\u6cd5\n- [x] \u652f\u6301\u81ea\u5b9a\u4e49 CSS \u6837\u5f0f\n- [x] \u652f\u6301\u4e3b\u9898\u9009\u62e9 & \u7f16\u8f91\u9884\u89c8\u3002\n- [x] \u652f\u6301\u660e\u6697\u4e24\u79cd\u4e3b\u9898\u9884\u89c8\u3002\n- [ ] \u652f\u6301\u4ee3\u7801\u5757\u4e3b\u9898\u6837\u5f0f\u9009\u62e9\u3002\n- [x] \u652f\u6301\u8272\u76d8\u53d6\u8272\uff0c\u5feb\u901f\u66ff\u6362\u6587\u7ae0\u6574\u4f53\u8272\u8c03\n- [x] \u652f\u6301 URL \u53c2\u6570\u52a0\u8f7d Markdown \u5185\u5bb9\u3002\n- [x] \u652f\u6301 URL \u53c2\u6570\u9009\u62e9\u9884\u89c8\u4e3b\u9898\u3002\n- [x] CI \u81ea\u52a8\u751f\u6210 Electron \u684c\u9762\u5e94\u7528\u3002\n- [ ] ~~\u652f\u6301\u5168\u5c40\u5b57\u53f7\u5927\u5c0f\u9009\u62e9\u3002~~\n\n### \u6570\u5b66\u516c\u5f0f\n\n$\\\\c = \\pm\\sqrt{a^2 + b^2}$ \u548c $C_L$ \u6570\u5b66\u516c\u5f0f\u884c\u5185\u663e\u793a\n\n```math\nL = \\frac{1}{2} \\rho v^2 S C_L\n```\n\n### \u652f\u6301\u4ee3\u7801\u5757\u6837\u5f0f\n\n\u4e0b\u9762\u662f `jsx` \u4ee3\u7801\u5757\u5c55\u793a\u793a\u4f8b\uff0c\u5e76\u9ad8\u4eae\u4ee3\u7801\uff0c\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n```jsx\nfunction Demo() {\n return
Hello World!
\n}\n```\n\n\u4e0b\u9762\u662f `css` \u4ee3\u7801\u5757\u5c55\u793a\u793a\u4f8b\uff0c\u5e76\u9ad8\u4eae\u4ee3\u7801\uff0c\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n```css\nli {\n font-size: 16px;\n margin: 0;\n line-height: 26px;\n color: rgb(30 41 59);\n font-family:-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif;\n}\n```\n\n### \u652f\u6301\u5185\u8054\u4ee3\u7801\n\n> \u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\nInline Code `{code: 0}`\n\n### \u652f\u6301\u8868\u683c\n\n\u8868\u683c\u65e0\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u6837\u5f0f\uff0c\u6682\u65f6\u6ca1\u627e\u5230\u89e3\u51b3\u9014\u5f84\n\n| Header 1 | Header 2 |\n| --- | --- |\n| Key 1 | Value 1 |\n| Key 2 | Value 2 |\n| Key 3 | Value 3 |\n\n### \u652f\u6301 GFM \u811a\u6ce8\n\n\u8fd9\u662f\u4e00\u4e2a\u7b80\u5355\u7684 Markdown[^1] \u8bed\u6cd5\u7684\u811a\u6ce8[^2]\u3002 \u9875\u9762\u6700\u540e\u6709\u4e00\u4e9b\u989d\u5916\u7684\u6587\u5b57\u63cf\u8ff0\u3002\u6ce8\u610f\u8fd9\u4e0d\u662f\u5b8c\u6574\u7684\u6ce8\u811a[^3]\u7279\u6027\u3002\n\n[^1]: GitHub \u98ce\u683c\u7684 Markdown \u89c4\u8303 https://github.github.com/gfm/\n[^2]: \u811a\u6ce8 https://github.blog/changelog/2021-09-30-footnotes-now-supported-in-markdown-fields/\n[^3]: \u5fae\u4fe1\u6587\u7ae0\u4e0d\u652f\u6301\u951a\u70b9\u8df3\u8f6c\u548c\u6253\u5f00\u7b2c\u4e09\u65b9 URL \u8d85\u94fe\u63a5\uff0c\u6240\u4ee5\u4e0d\u652f\u6301\u5b8c\u6574\u7684\u6ce8\u811a\u7279\u6027\u3002\n\n### \u652f\u6301\u6ce8\u91ca\n\n```html\n\n \u6c49 Han\n\n```\n\n\u6c49\u5b57\u6ce8\u97f3\u6548\u679c\uff1a\n\n \u6c49 Han\n \u5b57 zi\n \u62fc pin\n \u97f3 yin\n \u6ce8 zhu\n \u97f3 yin\n\n\n### \u652f\u6301\u81ea\u5b9a\u4e49\u6837\u5f0f\n\x3c!--rehype:style=color: red;--\x3e\n\n\u5728 Markdown \u4e2d HTML \u6ce8\u91ca\u4e5f\u53ef\u4ee5\u7528\u5728 markdown \u4e2d\uff0c\u5229\u7528\u8fd9\u4e00\u7279\u70b9\uff0c\u4e3a\u4e00\u4e9b\u5185\u5bb9\u81ea\u5b9a\u4e00\u6837\u5f0f\u3002\u4f7f\u7528 HTML \u6ce8\u91ca `\x3c!--rehype:xxx--\x3e`\x3c!--rehype:style=color: red;background: #ff000033;--\x3e \u8ba9 Markdown \u652f\u6301\u6837\u5f0f\u81ea\u5b9a\u4e49\u3002\n\n```markdown\n## \u5b9a\u4e49\u6807\u9898\u6837\u5f0f\n\x3c!--rehype:style=display: flex; height: 230px; align-items: center; justify-content: center; font-size: 38px;--\x3e\n\n\u652f\u6301\u5bf9\u67d0\u4e9b\u6587\u5b57\u53d8\u66f4\u6837\u5f0f\uff0c\u5982_\u6587\u5b57\u989c\u8272_\x3c!--rehype:style=color: red;--\x3e\uff0c\u6587\u5b57\u989c\u8272\u5c06\u88ab\u8bbe\u7f6e\u4e3a\u7ea2\u8272(red)\u3002\n```\n\n\u26a0\ufe0f \u6ce8\u610f\uff1a\u8fd9\u4e00\u7279\u6027\u53ef\u80fd\u9002\u7528\u4e8e\u6709\u4e00\u5b9a css \u524d\u7aef\u57fa\u7840\u77e5\u8bc6\u7684\u7528\u6237\uff0c\u4e0d\u8fc7\u5b83\u4e5f\u975e\u5e38\u7b80\u5355\uff0c\u4f7f\u7528 `\x3c!--rehype:style=` \u5f00\u59cb\uff0c`--\x3e` \u7ed3\u675f\uff0c\u4e2d\u95f4\u5305\u88f9 css \u6837\u5f0f\uff0c\u5982 `color: red;` \u8bbe\u7f6e\u6587\u5b57\u7ea2\u8272\u3002\n\n\n### \u6807\u8bb0\u5ffd\u7565\u5185\u5bb9\n\n\u6b64\u7279\u6027\u5229\u7528 HTML \u6ce8\u91ca\u5728 markdown \u4e2d\u88ab\u5ffd\u7565\u7684\u7279\u6027\uff0c\u6807\u8bb0\u9700\u8981\u5ffd\u7565\u7684\u5185\u5bb9\uff0c\u6807\u8bb0\u5f00\u59cb `\x3c!--rehype:ignore:start--\x3e`\uff0c\u6807\u8bb0\u7ed3\u675f `\x3c!--rehype:ignore:end--\x3e`\uff0c\u88ab\u6807\u8bb0\u7684\u5185\u5bb9\u5728\u5fae\u4fe1 Markdown \u7f16\u8f91\u5668\u9884\u89c8\u4e2d\u4e0d\u663e\u793a\u3002\u5728\u5176\u5b83\u9884\u89c8\u5de5\u5177\u4e2d\u5c55\u793a\u5185\u5bb9\uff0c\u6bd4\u5982 GitHub \u4e2d\u80fd\u5c55\u793a\u3002\n\n```markdown\n# \u6ce8\u91ca\u5ffd\u7565\n\n\x3c!--rehype:ignore:start--\x3e\u5185\u5bb9\u5728\u5fae\u4fe1 Markdown \u7f16\u8f91\u5668\u9884\u89c8\u4e2d\u4e0d\u663e\u793a\u3002\u5728\u5176\u5b83\u9884\u89c8\u5de5\u5177\u4e2d\u5c55\u793a\u5185\u5bb9\u3002\x3c!--rehype:ignore:end--\x3e\n```\n\n### \u652f\u6301 URL \u53c2\u6570\u52a0\u8f7d Markdown \u5185\u5bb9\n\n```\nhttps://?md=\n```\n\n\u52a0\u8f7d Markdown \u5185\u5bb9\u7684\u793a\u4f8b URL\uff1a\n\n```\nhttps://jaywcjlove.github.io/wxmp/#/?theme=underscore&md=https://raw.githubusercontent.com/jaywcjlove/c-tutorial/master/README.md\n\nMarkdown URL \u5730\u5740: https://raw.githubusercontent.com/jaywcjlove/c-tutorial/master/README.md\n```\n\n## \u4e3b\u9898\u5b9a\u5236\n\n\u5728\u76ee\u5f55 `website/src/themes` \u4e2d\u5b58\u653e\u9ed8\u8ba4\u4e3b\u9898\uff0c\u5728 `website/src/store/context.tsx` \u4e2d\u914d\u7f6e\u4e3b\u9898\uff0c\u4e3b\u9898\u4f7f\u7528 `css` \u5b9a\u4e49\u6837\u5f0f\uff0c\u4e0d\u652f\u6301\u590d\u6742\u7684\u9009\u62e9\u5668\u3002\u63d0\u4f9b\u5728\u7ebf\u4e3b\u9898\u7f16\u8f91\u5668\uff0c\u6b22\u8fce\u4fee\u6539\u5e76 `PR` \u8fdb\u4ed3\u5e93\u4f9b\u5927\u5bb6\u4f7f\u7528\u3002\n\n```css\n/* 1~6 \u6807\u9898\u6837\u5f0f\u5b9a\u4e49 */\nh1 {} h2 {} h3 {} h4 {} h5 {} h6 {}\na { color: red; } /* \u8d85\u94fe\u63a5\u6837\u5f0f\u5b9a\u4e49 */\nstrong {} /* \u52a0\u7c97\u6837\u5f0f\u5b9a\u4e49 */\ndel {} /* \u5220\u9664\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\nem {} /* \u4e0b\u5212\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\nu {} /* \u4e0b\u5212\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\np {} /* \u6bb5\u843d\u6837\u5f0f\u5b9a\u4e49 */\nul {} /* \u65e0\u5e8f\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\nol {} /* \u6709\u5e8f\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\nli {} /* \u5217\u8868\u6761\u76ee\u6837\u5f0f\u5b9a\u4e49 */\nblockquote {} /* \u5757\u7ea7\u5f15\u7528\u6837\u5f0f\u5b9a\u4e49 */\ntable {}\ntd {}\nth {}\npre {} /* \u6837\u5f0f\u5b9a\u4e49 */\n.code-highlight {} /* \u4ee3\u7801\u5757\u6837\u5f0f\u5b9a\u4e49 */\n.code-line {} /* \u4ee3\u7801\u5757\u884c\u6837\u5f0f\u5b9a\u4e49 */\n.code-spans {} /* \u4ee3\u7801\u5757\u884c\u6837\u5f0f\u5b9a\u4e49 */\n\nsup {} /* GFM \u811a\u6ce8\u6837\u5f0f\u5b9a\u4e49 */\n.footnotes-title {} /* GFM \u811a\u6ce8\uff0c\u53c2\u8003\u6807\u9898\u6837\u5f0f\u5b9a\u4e49 */\n.footnotes-list {} /* GFM \u811a\u6ce8\uff0c\u53c2\u8003\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\n\n.image-warpper {} /* \u56fe\u7247\u7236\u8282\u70b9\u6837\u5f0f\u5b9a\u4e49 */\n.image {} /* \u56fe\u7247\u6837\u5f0f\u5b9a\u4e49 */\n\n/* \u90e8\u5206\u4ee3\u7801\u9ad8\u4eae\u6837\u5f0f */\n.comment {}\n.property {}\n.function {}\n.keyword {}\n.punctuation {}\n.unit {}\n.tag {}\n.color {}\n.selector {}\n.quote {}\n.number {}\n.attr-name {}\n.attr-value {}\n```\n\n## \u90e8\u7f72\n\n[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp) [![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp) [![Docker Pulls](https://img.shields.io/docker/pulls/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp)\n\n\u8f7b\u677e\u901a\u8fc7 docker \u90e8\u7f72\u300a\u5fae\u4fe1\u516c\u4f17\u53f7 Markdown \u7f16\u8f91\u5668\u300b\u7f51\u7ad9\u5e94\u7528\u3002\n\n```bash\ndocker pull wcjiang/wxmp\n# Or\ndocker pull ghcr.io/jaywcjlove/wxmp:latest\n```\n\n```bash\ndocker run --name wxmp --rm -d -p 8113:3000 wcjiang/wxmp:latest\n# Or\ndocker run --name wxmp -itd -p 8113:3000 wcjiang/wxmp:latest\n# Or\ndocker run --name wxmp -itd -p 8113:3000 ghcr.io/jaywcjlove/wxmp:latest\n```\n\n\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee\u4ee5\u4e0b URL\n\n```\nhttp://localhost:96611/\n```\n\n## \u8d21\u732e\u8005\n\n\u4e00\u5982\u65e2\u5f80\uff0c\u611f\u8c22\u6211\u4eec\u51fa\u8272\u7684\u8d21\u732e\u8005\uff01\n\n\n \n\n\n\u4e0a\u56fe\u8d21\u732e\u8005\u5217\u8868\uff0c\u7531 [action-contributors](https://github.com/jaywcjlove/github-action-contributors)[^4] \u81ea\u52a8\u751f\u6210\u8d21\u732e\u8005\u56fe\u7247\u3002\n\n\n[^4]: Action Contributors https://github.com/jaywcjlove/github-action-contributors\n\n## License\n\n\u6839\u636e MIT \u8bb8\u53ef\u8bc1\u83b7\u5f97\u8bb8\u53ef\u3002\n',Tw=Aw,Ew={default:{label:"\u9ed8\u8ba4\u4e3b\u9898",value:Ak},abcdef:{label:"Abcdef Theme",value:Nk},androidstudio:{label:"Android Studio Theme",value:Qk},atomone:{label:"Atomone Theme",value:$k},bbedit:{label:"Bbedit Theme",value:Hk},bespin:{label:"Bespin Theme",value:jk},darcula:{label:"Darcula Theme",value:Yk},dracula:{label:"Dracula Theme",value:Wk},duotoneLight:{label:"Duotone Light Theme",value:ew},duotoneDark:{label:"Duotone Dark Theme",value:rw},eclipse:{label:"Eclipse Theme",value:sw},githubLight:{label:"Github Light Theme",value:cw},githubDark:{label:"Github Dark Theme",value:dw},okaidia:{label:"Okaidia Theme",value:mw},sublime:{label:"Sublime Theme",value:bw},xcodeLight:{label:"Xcode Light Theme",value:xw},xcodeDark:{label:"Xcode Dark Theme",value:Sw}},Cw={default:{label:"\u7fe1\u7fe0\u7eff",value:"a {\n color: #009874;\n text-decoration: none;\n font-size: 14px;\n}\n\nh1 {\n display: table;\n text-align: center;\n color: #3f3f3f;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 18px;\n font-weight: bold;\n margin: 2em auto 1em;\n padding: 0 1em;\n border-bottom: 3px solid #009874;\n margin-top: 0;\n}\n\nh2 {\n display: table;\n text-align: center;\n color: #fff;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n margin: 4em auto 2em;\n padding: 0 0.3em;\n border-radius: 0.3em;\n background: #009874;\n}\n\nh3 {\n text-align: left;\n color: #3f3f3f;\n line-height: 1.2;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 2em 8px 0.75em 0;\n padding-left: 8px;\n border-left: 5px solid #009874;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n line-height: 1.5em;\n font-size: 14px;\n line-height: 1.5em;\n}\n\np {\n font-size: 16px;\n line-height: 1.5em;\n padding: 0.5em 0 !important;\n margin-bottom: 0 !important;\n margin-top: 0 !important;\n}\n\nblockquote {\n text-align: left;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-style: normal;\n border-left: none;\n padding: 0.5em 1em;\n border-radius: 4px;\n background: rgba(27, 31, 35, 0.05);\n margin: 1em 0;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-style: normal;\n font-variant-ligatures: normal;\n font-variant-caps: normal;\n font-weight: 400;\n letter-spacing: normal;\n orphans: 2;\n text-indent: 0px;\n text-transform: none;\n widows: 2;\n word-spacing: 0px;\n text-decoration-style: initial;\n text-decoration-color: initial;\n text-align: left;\n line-height: 1.5;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n border-radius: 0.3em;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n line-height: 1.75;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n color: #333;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 1em;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3em 0 0.6em 0;\n padding-left: 0.2em;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:"#009874"},simple:{label:"\u7b80\u6d01\u84dd",value:"a {\n color: #0f4c81;\n text-decoration: none;\n font-size: 14px;\n}\n\nh1 {\n display: table;\n text-align: center;\n color: #3f3f3f;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 18px;\n font-weight: bold;\n margin: 2em auto 1em;\n padding: 0 1em;\n border-bottom: 3px solid #0f4c81;\n margin-top: 0;\n}\n\nh2 {\n display: table;\n text-align: center;\n color: #fff;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n margin: 4em auto 2em;\n padding: 0 0.3em;\n border-radius: 0.3rem;\n background: #0f4c81;\n}\n\nh3 {\n text-align: left;\n color: #3f3f3f;\n line-height: 1.2;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 2em 8px 0.75em 0;\n padding-left: 8px;\n border-left: 5px solid #0f4c81;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n line-height: 1.5em;\n font-size: 14px;\n line-height: 1.5em;\n}\n\np {\n font-size: 16px;\n line-height: 1.5em;\n padding: 0.5em 0 !important;\n margin-bottom: 0 !important;\n margin-top: 0 !important;\n}\n\nblockquote {\n text-align: left;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-style: normal;\n border-left: none;\n padding: 0.5em 1em;\n border-radius: 4px;\n background: rgba(27, 31, 35, 0.05);\n margin: 1em 0;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-style: normal;\n font-variant-ligatures: normal;\n font-variant-caps: normal;\n font-weight: 400;\n letter-spacing: normal;\n orphans: 2;\n text-indent: 0px;\n text-transform: none;\n widows: 2;\n word-spacing: 0px;\n text-decoration-style: initial;\n text-decoration-color: initial;\n text-align: left;\n line-height: 1.5;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n border-radius: 0.3em;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n line-height: 1.75;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n color: #0f4c81;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 14px;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3em 0 0.6em 0;\n padding-left: 0.2em;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:"#0f4c81"},underscore:{label:"\u4e0b\u5212\u7ebf\u9ec4",value:"a {\n color: #ffb11b;\n text-decoration: none;\n font-size: 14px;\n}\n\nh1 {\n display: table;\n text-align: center;\n color: #3f3f3f;\n line-height: 1.15;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 18px;\n font-weight: bold;\n margin: 2em auto 1em;\n padding: 0 1em 0.3em 1em;\n margin-top: 0;\n box-shadow: inset 0 -0.9rem 0 0 #ffb11b;\n}\n\nh2 {\n display: table;\n line-height: 1.35;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n padding: 0 0.3em;\n margin: 2em 0 1em 0;\n box-shadow: inset 0 -0.7rem 0 0 #ffb11b;\n}\n\nh3 {\n text-align: left;\n color: #3f3f3f;\n line-height: 1.2;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 2em 8px 0.75em 0;\n padding-left: 8px;\n border-left: 5px solid #ffb11b;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n line-height: 1.5em;\n font-size: 14px;\n}\n\np {\n font-size: 16px;\n line-height: 1.5em;\n padding: 0.5em 0 !important;\n margin-bottom: 0 !important;\n margin-top: 0 !important;\n}\n\nblockquote {\n text-align: left;\n line-height: 1.5em;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-style: normal;\n border-left: none;\n padding: 0.5em 1em;\n border-radius: 4px;\n background: rgba(27, 31, 35, 0.05);\n margin: 1em 0;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-style: normal;\n font-variant-ligatures: normal;\n font-variant-caps: normal;\n font-weight: 400;\n letter-spacing: normal;\n orphans: 2;\n text-indent: 0px;\n text-transform: none;\n widows: 2;\n word-spacing: 0px;\n text-decoration-style: initial;\n text-decoration-color: initial;\n text-align: left;\n line-height: 1.5;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n border-radius: 0.3em;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n line-height: 1.75;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n color: #333;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 14px;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3em 0 0.6em 0;\n padding-left: 0.2em;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:"#ffb11b"},base:{label:"\u7b80\u6d01",value:"a {\n color: inherit;\n text-decoration: none;\n}\n\nh1 {\n color: inherit;\n font-size: 18px;\n font-weight: bold;\n}\n\nh2 {\n color: inherit;\n margin: 2.5rem 0 1rem 0;\n font-size: 16px;\n font-weight: bold;\n}\n\nh3 {\n color: inherit;\n margin: 1em 0 1em 0;\n font-weight: bold;\n font-size: 14px;\n}\n\nh4 {\n color: inherit;\n margin: 0.6em 0 0.6em 0;\n font-weight: bold;\n font-size: 12px;\n}\n\np {\n color: initial;\n font-size: 16px;\n line-height: 1.5em;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n font-size: 14px;\n line-height: 1.5em;\n}\n\nblockquote {\n font-style: normal;\n border-left: none;\n margin: 1em 0;\n line-height: 1.5em;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-size: 14px;\n font-weight: 400;\n letter-spacing: normal;\n word-spacing: 0px;\n border-radius: 5px;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 1em;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3rem 0 0.6rem 0;\n padding-left: 0.2rem;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:""}},_w={underscore:[{select:"a",name:"color",value:"{{color}}"},{select:"h1",name:"box-shadow",value:"inset 0 -0.9rem 0 0 {{color}}"},{select:"h2",name:"box-shadow",value:"inset 0 -0.7rem 0 0 {{color}}"},{select:"h3",name:"border-left",value:"5px solid {{color}}"}],default:[{select:"a",name:"color",value:"{{color}}"},{select:"h1",name:"border-bottom",value:"3px solid {{color}}"},{select:"h2",name:"background",value:"{{color}}"},{select:"h3",name:"border-left",value:"5px solid {{color}}"}],simple:[{select:"a",name:"color",value:"{{color}}"},{select:"h1",name:"border-bottom",value:"3px solid {{color}}"},{select:"h2",name:"background",value:"{{color}}"},{select:"h3",name:"border-left",value:"5px solid {{color}}"},{select:".code-spans",name:"color",value:"{{color}}"}],base:[]},Pw=(Object.keys(Cw).map(e=>Cw[e].color),K.createContext({preColor:"",setPreColor:()=>{},isLoading:!0,setIsLoading:()=>{},markdown:Aw,setMarkdown:()=>{},css:Cw.underscore.value,setCss:()=>{},previewTheme:"underscore",setPreviewTheme:()=>{},theme:"default",setTheme:()=>{}})),Dw=Do.div``,Mw=Do.div` position: relative; height: 2.8rem; `,Nw=Do.header` -webkit-app-region: drag; display: flex; flex-direction: row; justify-content: space-between; background: var(--color-canvas-default); border-bottom: 1px solid var(--color-border-muted); padding: 0.5rem 0.6rem 0.5rem 0.8rem; position: fixed; width: 100%; z-index: 9; `,Rw=Do.article` display: flex; flex-direction: row; align-items: center; gap: 0.6rem; `,Iw=Do(Ts)` max-width: 3.6rem; `,Qw=Do.h1` font-size: 1rem; margin: 0; display: flex; align-items: center; user-select: none; sup { color: var(--color-fg-subtle); margin-left: 0.4rem; background-color: var(--color-border-muted); border-radius: 0.1rem; padding: 0 0.2rem 0 0.1rem; font-weight: normal; font-size: 0.7rem; letter-spacing: -0.1rem; } `,Lw=Do.section` display: flex; align-items: center; gap: 0.5rem; dark-mode { font-size: 1.05rem; display: block; line-height: 12px; margin-left: 0.6rem; } a svg { display: block; } a { text-decoration: none; color: var(--color-theme-text); padding: 0.1rem 0.3rem; transition: all 0.3s; font-size: 0.9rem; border-radius: 0.2rem; &.active { background-color: var(--color-accent-fg); box-shadow: inset 0 -0.3rem 0 var(--color-accent-fg); color: #fff; } &:hover:not(.active):not(:last-child) { background-color: var(--color-accent-fg); color: #fff; border-radius: 0.2rem; } } `;function Fw(){const{isLoading:e}=(0,K.useContext)(Pw);return(0,Nt.jsxs)(Dw,{className:"wmde-markdown-color",children:[(0,Nt.jsx)(Mw,{children:(0,Nt.jsxs)(Nw,{className:"header",children:[(0,Nt.jsxs)(Rw,{className:"logo",children:[(0,Nt.jsx)(Iw,{width:28,height:28}),(0,Nt.jsxs)(Qw,{children:["\u5fae\u4fe1\u516c\u4f17\u53f7\u6392\u7248\u7f16\u8f91\u5668",(0,Nt.jsxs)("sup",{children:[" v","2.4.1"," "]})]}),e&&(0,Nt.jsx)(Hs,{})]}),(0,Nt.jsxs)(Lw,{children:[(0,Nt.jsx)(Tt,{to:"/",children:"\u9996\u9875"}),(0,Nt.jsx)(Tt,{to:"/editor/theme",children:"\u7f16\u8f91\u4e3b\u9898"}),(0,Nt.jsx)(Tt,{to:"/doc",children:"\u6587\u6863"}),(0,Nt.jsx)("dark-mode",{permanent:!0,dark:"Dark",light:"Light"}),(0,Nt.jsx)("a",{href:"https://github.com/jaywcjlove/wxmp",target:"__blank",children:(0,Nt.jsx)(Ps,{width:23,height:23})})]})]})}),(0,Nt.jsx)(ut,{})]})}const $w=10,Bw=11,zw=12,Hw=13,qw=15,Uw=16,jw=17,Xw=18,Zw=19,Yw=20,Gw=21,Vw=22,Ww=23,Kw=24,Jw=25;function eS(e){return e>=48&&e<=57}function tS(e){return eS(e)||e>=65&&e<=70||e>=97&&e<=102}function nS(e){return e>=65&&e<=90}function rS(e){return function(e){return nS(e)||function(e){return e>=97&&e<=122}(e)}(e)||function(e){return e>=128}(e)||95===e}function iS(e){return rS(e)||eS(e)||45===e}function oS(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function sS(e){return 10===e||13===e||12===e}function aS(e){return sS(e)||32===e||9===e}function lS(e,t){return 92===e&&(!sS(t)&&0!==t)}function cS(e,t,n){return 45===e?rS(t)||45===t||lS(t,n):!!rS(e)||92===e&&lS(e,t)}function uS(e,t,n){return 43===e||45===e?eS(t)?2:46===t&&eS(n)?3:0:46===e?eS(t)?2:0:eS(e)?1:0}function hS(e){return 65279===e||65534===e?1:0}const dS=new Array(128),pS=130;for(let f$=0;f$e.length)return!1;for(let i=t;i=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}const TS=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token"];function ES(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return null===e||e.length0?hS(t.charCodeAt(0)):0,i=ES(e.lines,n),o=ES(e.columns,n);let s=e.startLine,a=e.startColumn;for(let l=r;l1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this.source=e,this.startOffset=t,this.startLine=n,this.startColumn=r,this.computed=!1}getLocation(e,t){return this.computed||CS(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||CS(this),{source:n,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}}}const PS=16777215,DS=24,MS=new Map([[2,Vw],[Gw,Vw],[Zw,Yw],[Ww,Kw]]);class NS{constructor(e,t){this.setSource(e,t)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};e=String(e||"");const n=e.length,r=ES(this.offsetAndType,e.length+1),i=ES(this.balance,e.length+1);let o=0,s=0,a=0,l=-1;for(this.offsetAndType=null,this.balance=null,t(e,(e,t,c)=>{switch(e){default:i[o]=n;break;case s:{let e=a&PS;for(a=i[e],s=a>>DS,i[o]=e,i[e++]=o;e>DS:0}lookupOffset(e){return(e+=this.tokenIndex)0?e>DS,this.tokenEnd=t&PS):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e>DS,this.tokenEnd=e&PS):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===Hw||this.tokenType===Jw;)this.next()}skipUntilBalanced(e,t){let n,r,i=e;e:for(;i0?this.offsetAndType[i-1]&PS:this.firstCharOffset,t(this.source.charCodeAt(r))){case 1:break e;case 2:i++;break e;default:this.balance[n]===i&&(i=n)}this.skip(i-this.tokenIndex)}forEachToken(e){for(let t=0,n=this.firstCharOffset;t>DS,r,o,t)}}dump(){const e=new Array(this.tokenCount);return this.forEachToken((t,n,r,i)=>{e[i]={idx:i,type:TS[t],chunk:this.source.substring(n,r),balance:this.balance[i]}}),e}}function RS(e,t){function n(t){return t=e.length?void(c1&&void 0!==arguments[1]?arguments[1]:this;const n=this.allocateCursor(null,this.head);for(;null!==n.next;){const r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;const n=this.allocateCursor(this.tail,null);for(;null!==n.prev;){const r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,i=this.allocateCursor(null,this.head),o=t;for(;null!==i.next;)n=i.next,i.next=n.next,o=e.call(r,o,n.data,n,this);return this.releaseCursor(),o}reduceRight(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,i=this.allocateCursor(this.tail,null),o=t;for(;null!==i.prev;)n=i.prev,i.prev=n.prev,o=e.call(r,o,n.data,n,this);return this.releaseCursor(),o}some(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(let n=this.head;null!==n;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;const n=new QS;for(let r=this.head;null!==r;r=r.next)n.appendData(e.call(t,r.data,r,this));return n}filter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;const n=new QS;for(let r=this.head;null!==r;r=r.next)e.call(t,r.data,r,this)&&n.appendData(r.data);return n}nextUntil(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null===e)return;const r=this.allocateCursor(null,e);for(;null!==r.next;){const e=r.next;if(r.next=e.next,t.call(n,e.data,e,this))break}this.releaseCursor()}prevUntil(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null===e)return;const r=this.allocateCursor(e,null);for(;null!==r.prev;){const e=r.prev;if(r.prev=e.prev,t.call(n,e.data,e,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const e=new QS;for(let t of this)e.appendData(t);return e}prepend(e){return this.updateCursors(null,e,this.head,e),null!==this.head?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(e){return this.prepend(QS.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(QS.createItem(e))}insert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==t)if(this.updateCursors(t.prev,e,t,e),null===t.prev){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),null!==this.tail?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(e,t){return this.insert(QS.createItem(e),t)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),null!==e.prev)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(null!==e.next)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(e){this.insert(QS.createItem(e))}pop(){return null!==this.tail?this.remove(this.tail):null}unshift(e){this.prepend(QS.createItem(e))}shift(){return null!==this.head?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return null===e.head||(void 0!==t&&null!==t?(this.updateCursors(t.prev,e.tail,t,e.head),null!==t.prev?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),null!==this.tail?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null),this}replace(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}}function LS(e,t){const n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${t}\n`)}})}const FS=" ";function $S(e,t){let{source:n,line:r,column:i}=e;function o(e,t){return s.slice(e,t).map((t,n)=>String(e+n+1).padStart(c)+" |"+t).join("\n")}const s=n.split(/\r\n?|\n|\f/),a=Math.max(1,r-t)-1,l=Math.min(r+t,s.length+1),c=Math.max(4,String(l).length)+1;let u=0;i+=3*(s[r-1].substr(0,i-1).match(/\t/g)||[]).length,i>100&&(u=i-60+3,i=58);for(let h=a;h<=l;h++)h>=0&&h0&&s[h].length>u?"\u2026":"")+s[h].substr(u,98)+(s[h].length>u+100-1?"\u2026":""));return[o(a,r),new Array(i+c+2).join("-")+"^",o(r,l)].filter(Boolean).join("\n")}function BS(e,t,n,r,i){return Object.assign(LS("SyntaxError",e),{source:t,offset:n,line:r,column:i,sourceFragment:e=>$S({source:t,line:r,column:i},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+$S({source:t,line:r,column:i},2)}})}function zS(e){const t=this.createList();let n=!1;const r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case Jw:this.next();continue;case Hw:n=!0,this.next();continue}let i=e.getNode.call(this,r);if(void 0===i)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,i,t,r),n=!1),t.push(i)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}const HS=()=>{};function qS(e){return function(){return this[e]()}}function US(e){const t=Object.create(null);for(const n in e){const r=e[n],i=r.parse||r;i&&(t[n]=i)}return t}function jS(e){let t="",n="",r=!1,i=HS,o=!1;const s=new _S,a=Object.assign(new NS,function(e){const t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:US(e.atrule),pseudo:US(e.pseudo),node:US(e.node)};for(const n in e.parseContext)switch(typeof e.parseContext[n]){case"function":t.context[n]=e.parseContext[n];break;case"string":t.context[n]=qS(e.parseContext[n])}return{config:t,...t,...t.node}}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:zS,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket:e=>123===e?1:0,consumeUntilLeftCurlyBracketOrSemicolon:e=>123===e||59===e?1:0,consumeUntilExclamationMarkOrSemicolon:e=>33===e||59===e?1:0,consumeUntilSemicolonIncluded:e=>59===e?2:0,createList:()=>new QS,createSingleNodeList:e=>(new QS).appendData(e),getFirstListNode:e=>e&&e.first,getLastListNode:e=>e&&e.last,parseWithFallback(e,t){const n=this.tokenIndex;try{return e.call(this)}catch(zt){if(o)throw zt;const r=t.call(this,n);return o=!0,i(zt,r),o=!1,r}},lookupNonWSType(e){let t;do{if(t=this.lookupType(e++),t!==Hw)return t}while(0!==t);return 0},charCodeAt:e=>e>=0&&et.substring(e,n),substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar:(e,n)=>OS(t,e,n),cmpStr:(e,n,r)=>bS(t,e,n,r),consume(e){const t=this.tokenStart;return this.eat(e),this.substrToCursor(t)},consumeFunctionName(){const e=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(2),e},consumeNumber(e){const n=t.substring(this.tokenStart,wS(t,this.tokenStart));return this.eat(e),n},eat(e){if(this.tokenType!==e){const t=TS[e].slice(0,-6).replace(/-/g," ").replace(/^./,e=>e.toUpperCase());let n=`${/[[\](){}]/.test(t)?`"${t}"`:t} is expected`,r=this.tokenStart;switch(e){case 1:2===this.tokenType||7===this.tokenType?(r=this.tokenEnd-1,n="Identifier is expected but function found"):n="Identifier is expected";break;case 4:this.isDelim(35)&&(this.next(),r++,n="Name is expected");break;case Bw:this.tokenType===$w&&(r=this.tokenEnd,n="Percent sign is expected")}this.error(n,r)}this.next()},eatIdent(e){1===this.tokenType&&!1!==this.lookupValue(0,e)||this.error(`Identifier "${e}" is expected`),this.next()},eatDelim(e){this.isDelim(e)||this.error(`Delim "${String.fromCharCode(e)}" is expected`),this.next()},getLocation:(e,t)=>r?s.getLocationRange(e,t,n):null,getLocationFromList(e){if(r){const t=this.getFirstListNode(e),r=this.getLastListNode(e);return s.getLocationRange(null!==t?t.loc.start.offset-s.startOffset:this.tokenStart,null!==r?r.loc.end.offset-s.startOffset:this.tokenStart,n)}return null},error(e,n){const r="undefined"!==typeof n&&n=0&&aS(e.charCodeAt(t));t--);return t+1}(t,t.length-1)):s.getLocation(this.tokenStart);throw new BS(e||"Unexpected input",t,r.offset,r.line,r.column)}});return Object.assign(function(e,l){t=e,l=l||{},a.setSource(t,RS),s.setSource(t,l.offset,l.line,l.column),n=l.filename||"",r=Boolean(l.positions),i="function"===typeof l.onParseError?l.onParseError:HS,o=!1,a.parseAtrulePrelude=!("parseAtrulePrelude"in l)||Boolean(l.parseAtrulePrelude),a.parseRulePrelude=!("parseRulePrelude"in l)||Boolean(l.parseRulePrelude),a.parseValue=!("parseValue"in l)||Boolean(l.parseValue),a.parseCustomProperty="parseCustomProperty"in l&&Boolean(l.parseCustomProperty);const{context:c="default",onComment:u}=l;if(c in a.context===!1)throw new Error("Unknown context `"+c+"`");"function"===typeof u&&a.forEachToken((e,n,r)=>{if(e===Jw){const e=a.getLocation(n,r),i=bS(t,r-2,r,"*/")?t.slice(n+2,r-2):t.slice(n+2,r);u(i,e)}});const h=a.context[c].call(a,l);return a.eof||a.error(),h},{SyntaxError:BS,config:a.config})}var XS=n(7428);const ZS=new Set(["Atrule","Selector","Declaration"]);const YS=(e,t)=>{if(9===e&&(e=t),"string"===typeof e){const t=e.charCodeAt(0);return t>127?32768:t<<8}return e},GS=[[1,1],[1,2],[1,7],[1,8],[1,"-"],[1,$w],[1,Bw],[1,zw],[1,qw],[1,Gw],[3,1],[3,2],[3,7],[3,8],[3,"-"],[3,$w],[3,Bw],[3,zw],[3,qw],[4,1],[4,2],[4,7],[4,8],[4,"-"],[4,$w],[4,Bw],[4,zw],[4,qw],[zw,1],[zw,2],[zw,7],[zw,8],[zw,"-"],[zw,$w],[zw,Bw],[zw,zw],[zw,qw],["#",1],["#",2],["#",7],["#",8],["#","-"],["#",$w],["#",Bw],["#",zw],["#",qw],["-",1],["-",2],["-",7],["-",8],["-","-"],["-",$w],["-",Bw],["-",zw],["-",qw],[$w,1],[$w,2],[$w,7],[$w,8],[$w,$w],[$w,Bw],[$w,zw],[$w,"%"],[$w,qw],["@",1],["@",2],["@",7],["@",8],["@","-"],["@",qw],[".",$w],[".",Bw],[".",zw],["+",$w],["+",Bw],["+",zw],["/","*"]],VS=GS.concat([[1,4],[zw,4],[4,4],[3,Gw],[3,5],[3,Uw],[Bw,Bw],[Bw,zw],[Bw,2],[Bw,"-"],[Vw,1],[Vw,2],[Vw,Bw],[Vw,zw],[Vw,4],[Vw,"-"]]);function WS(e){const t=new Set(e.map(e=>{let[t,n]=e;return YS(t)<<16|YS(n)}));return function(e,n,r){const i=YS(n,r),o=r.charCodeAt(0);return(45===o&&1!==n&&2!==n&&n!==qw||43===o?t.has(e<<16|o<<8):t.has(e<<16|i))&&this.emit(" ",Hw,!0),i}}const KS=WS(GS),JS=WS(VS);function eA(e,t){if("function"===typeof t){let n=null;return void e.children.forEach(e=>{null!==n&&t.call(this,n),this.node(e),n=e})}e.children.forEach(this.node,this)}function tA(e){RS(e,(t,n,r)=>{this.token(t,e.slice(n,r))})}function nA(e){const t=new Map;for(let n in e.node){const r=e.node[n];"function"===typeof(r.generate||r)&&t.set(n,r.generate||r)}return function(e,n){let r="",o=0,s={node(e){if(!t.has(e.type))throw new Error("Unknown node type: "+e.type);t.get(e.type).call(a,e)},tokenBefore:JS,token(e,t){o=this.tokenBefore(o,e,t),this.emit(t,e,!1),9===e&&92===t.charCodeAt(0)&&this.emit("\n",Hw,!0)},emit(e){r+=e},result:()=>r};n&&("function"===typeof n.decorator&&(s=n.decorator(s)),n.sourceMap&&(s=function(e){const t=new XS.x,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},o={generated:i};let s=1,a=0,l=!1;const c=e.node;e.node=function(e){if(e.loc&&e.loc.start&&ZS.has(e.type)){const c=e.loc.start.line,u=e.loc.start.column-1;r.line===c&&r.column===u||(r.line=c,r.column=u,n.line=s,n.column=a,l&&(l=!1,n.line===i.line&&n.column===i.column||t.addMapping(o)),l=!0,t.addMapping({source:e.loc.source,original:r,generated:n}))}c.call(this,e),l&&ZS.has(e.type)&&(i.line=s,i.column=a)};const u=e.emit;e.emit=function(e,t,n){for(let r=0;rs.node(e),children:eA,token:(e,t)=>s.token(e,t),tokenize:tA};return s.node(e),s.result()}}const{hasOwnProperty:rA}=Object.prototype,iA=function(){};function oA(e){return"function"===typeof e?e:iA}function sA(e,t){return function(n,r,i){n.type===t&&e.call(this,n,r,i)}}function aA(e,t){const n=t.structure,r=[];for(const i in n){if(!1===rA.call(n,i))continue;let e=n[i];const t={name:i,type:!1,nullable:!1};Array.isArray(e)||(e=[e]);for(const n of e)null===n?t.nullable=!0:"string"===typeof n?t.type="node":Array.isArray(n)&&(t.type="list");t.type&&r.push(t)}return r.length?{context:t.walkContext,fields:r}:null}function lA(e,t){const n=e.fields.slice(),r=e.context,i="string"===typeof r;return t&&n.reverse(),function(e,o,s,a){let l;i&&(l=o[r],o[r]=e);for(const r of n){const n=e[r.name];if(!r.nullable||n)if("list"===r.type){if(t?n.reduceRight(a,!1):n.reduce(a,!1))return!0}else if(s(n))return!0}i&&(o[r]=l)}}function cA(e){let{StyleSheet:t,Atrule:n,Rule:r,Block:i,DeclarationList:o}=e;return{Atrule:{StyleSheet:t,Atrule:n,Rule:r,Block:i},Rule:{StyleSheet:t,Atrule:n,Rule:r,Block:i},Declaration:{StyleSheet:t,Atrule:n,Rule:r,Block:i,DeclarationList:o}}}function uA(e){const t=function(e){const t={};for(const n in e.node)if(rA.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=aA(0,r)}return t}(e),n={},r={},i=Symbol("break-walk"),o=Symbol("skip-node");for(const c in t)rA.call(t,c)&&null!==t[c]&&(n[c]=lA(t[c],!1),r[c]=lA(t[c],!0));const s=cA(n),a=cA(r),l=function(e,l){function c(e,t,n){const r=u.call(f,e,t,n);return r===i||r!==o&&(!(!d.hasOwnProperty(e.type)||!d[e.type](e,f,c,p))||h.call(f,e,t,n)===i)}let u=iA,h=iA,d=n,p=(e,t,n,r)=>e||c(t,n,r);const f={break:i,skip:o,root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"===typeof l)u=l;else if(l&&(u=oA(l.enter),h=oA(l.leave),l.reverse&&(d=r),l.visit)){if(s.hasOwnProperty(l.visit))d=l.reverse?a[l.visit]:s[l.visit];else if(!t.hasOwnProperty(l.visit))throw new Error("Bad value `"+l.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");u=sA(u,l.visit),h=sA(h,l.visit)}if(u===iA&&h===iA)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");c(e)};return l.break=i,l.skip=o,l.find=function(e,t){let n=null;return l(e,function(e,r,o){if(t.call(this,e,r,o))return n=e,i}),n},l.findLast=function(e,t){let n=null;return l(e,{reverse:!0,enter(e,r,o){if(t.call(this,e,r,o))return n=e,i}}),n},l.findAll=function(e,t){const n=[];return l(e,function(e,r,i){t.call(this,e,r,i)&&n.push(e)}),n},l}function hA(e){return e}function dA(e,t,n,r){let i;switch(e.type){case"Group":i=function(e,t,n,r){const i=" "===e.combinator||r?e.combinator:" "+e.combinator+" ",o=e.terms.map(e=>dA(e,t,n,r)).join(i);return e.explicit||n?(r||","===o[0]?"[":"[ ")+o+(r?"]":" ]"):o}(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return dA(e.term,t,n,r)+t(function(e){const{min:t,max:n,comma:r}=e;return 0===t&&0===n?r?"#?":"*":0===t&&1===n?"?":1===t&&0===n?r?"#":"+":1===t&&1===n?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(0!==n?n:"")+"}")}(e),e);case"Type":i="<"+e.name+(e.opts?t(function(e){if("Range"===e.type)return" ["+(null===e.min?"-\u221e":e.min)+","+(null===e.max?"\u221e":e.max)+"]";throw new Error("Unknown node type `"+e.type+"`")}(e.opts),e.opts):"")+">";break;case"Property":i="<'"+e.name+"'>";break;case"Keyword":i=e.name;break;case"AtKeyword":i="@"+e.name;break;case"Function":i=e.name+"(";break;case"String":case"Token":i=e.value;break;case"Comma":i=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(i,e)}function pA(e,t){let n=hA,r=!1,i=!1;return"function"===typeof t?n=t:t&&(r=Boolean(t.forceBraces),i=Boolean(t.compact),"function"===typeof t.decorate&&(n=t.decorate)),dA(e,n,r,i)}const fA={offset:0,line:1,column:1};function mA(e,t){const n=e&&e.loc&&e.loc[t];return n?"line"in n?gA(n):n:null}function gA(e,t){let{offset:n,line:r,column:i}=e;const o={offset:n,line:r,column:i};if(t){const e=t.split(/\n|\r\n?|\f/);o.offset+=t.length,o.line+=e.length-1,o.column=1===e.length?o.column+t.length:e.pop().length+1}return o}const OA=function(e,t){const n=LS("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},bA=function(e,t,n,r){const i=LS("SyntaxMatchError",e),{css:o,mismatchOffset:s,mismatchLength:a,start:l,end:c}=function(e,t){const n=e.tokens,r=e.longestMatch,i=r1?(s=mA(o||t,"end")||gA(fA,h),a=gA(s)):(s=mA(o,"start")||gA(mA(t,"start")||fA,h.slice(0,l)),a=mA(o,"end")||gA(s,h.substr(l,c))),{css:h,mismatchOffset:l,mismatchLength:c,start:s,end:a}}(r,n);return i.rawMessage=e,i.syntax=t?pA(t):"",i.css=o,i.mismatchOffset=s,i.mismatchLength=a,i.message=e+"\n syntax: "+i.syntax+"\n value: "+(o||"")+"\n --------"+new Array(i.mismatchOffset+1).join("-")+"^",Object.assign(i,l),i.loc={source:n&&n.loc&&n.loc.source||"",start:l,end:c},i},yA=new Map,vA=new Map,xA=function(e){if(yA.has(e))return yA.get(e);const t=e.toLowerCase();let n=yA.get(t);if(void 0===n){const e=wA(t,0),r=e?"":SA(t,0);n=Object.freeze({basename:t.substr(r.length),name:t,prefix:r,vendor:r,custom:e})}return yA.set(e,n),n},kA=function(e){if(vA.has(e))return vA.get(e);let t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");const r=wA(t,n.length);if(!r&&(t=t.toLowerCase(),vA.has(t))){const n=vA.get(t);return vA.set(e,n),n}const i=r?"":SA(t,n.length),o=t.substr(0,n.length+i.length),s=Object.freeze({basename:t.substr(o.length),name:t.substr(n.length),hack:n,vendor:i,prefix:o,custom:r});return vA.set(e,s),s};function wA(e,t){return t=t||0,e.length-t>=2&&45===e.charCodeAt(t)&&45===e.charCodeAt(t+1)}function SA(e,t){if(t=t||0,e.length-t>=3&&45===e.charCodeAt(t)&&45!==e.charCodeAt(t+1)){const n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}const AA=["initial","inherit","unset","revert","revert-layer"],TA=45,EA=!0;function CA(e,t){return null!==e&&9===e.type&&e.value.charCodeAt(0)===t}function _A(e,t,n){for(;null!==e&&(e.type===Hw||e.type===Jw);)e=n(++t);return t}function PA(e,t,n,r){if(!e)return 0;const i=e.value.charCodeAt(t);if(43===i||i===TA){if(n)return 0;t++}for(;t6)return 0}return r}function RA(e,t,n){if(!e)return 0;for(;MA(n(t),63);){if(++e>6)return 0;t++}return t}const IA=["calc(","-moz-calc(","-webkit-calc("],QA=new Map([[2,Vw],[Gw,Vw],[Zw,Yw],[Ww,Kw]]);function LA(e,t){return te.max&&"string"!==typeof e.max)return!0}return!1}function HA(e){return function(t,n,r){return null===t?0:2===t.type&&$A(t.value,IA)?function(e,t){let n=0,r=[],i=0;e:do{switch(e.type){case Kw:case Vw:case Yw:if(e.type!==n)break e;if(n=r.pop(),0===r.length){i++;break e}break;case 2:case Gw:case Zw:case Ww:r.push(n),n=QA.get(e.type)}i++}while(e=t(i));return i}(t,n):e(t,n,r)}}function qA(e){return function(t){return null===t||t.type!==e?0:1}}function UA(e){return e&&(e=new Set(e)),function(t,n,r){if(null===t||t.type!==zw)return 0;const i=wS(t.value,0);if(null!==e){const n=t.value.indexOf("\\",i),r=-1!==n&&BA(t.value,n)?t.value.substring(i,n):t.value.substr(i);if(!1===e.has(r.toLowerCase()))return 0}return zA(r,t.value,i)?0:1}}function jA(e){return"function"!==typeof e&&(e=function(){return 0}),function(t,n,r){return null!==t&&t.type===$w&&0===Number(t.value)?1:e(t,n,r)}}const XA={"ident-token":qA(1),"function-token":qA(2),"at-keyword-token":qA(3),"hash-token":qA(4),"string-token":qA(5),"bad-string-token":qA(6),"url-token":qA(7),"bad-url-token":qA(8),"delim-token":qA(9),"number-token":qA($w),"percentage-token":qA(Bw),"dimension-token":qA(zw),"whitespace-token":qA(Hw),"CDO-token":qA(14),"CDC-token":qA(qw),"colon-token":qA(Uw),"semicolon-token":qA(jw),"comma-token":qA(Xw),"[-token":qA(Zw),"]-token":qA(Yw),"(-token":qA(Gw),")-token":qA(Vw),"{-token":qA(Ww),"}-token":qA(Kw)},ZA={string:qA(5),ident:qA(1),percentage:HA(function(e,t,n){return null===e||e.type!==Bw||zA(n,e.value,e.value.length-1)?0:1}),zero:jA(),number:HA(function(e,t,n){if(null===e)return 0;const r=wS(e.value,0);return r===e.value.length||BA(e.value,r)?zA(n,e.value,r)?0:1:0}),integer:HA(function(e,t,n){if(null===e||e.type!==$w)return 0;let r=43===LA(e.value,0)||45===LA(e.value,0)?1:0;for(;r/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0),aT={" ":1,"&&":2,"||":3,"|":4};function lT(e){return e.substringToPos(e.findWsEnd(e.pos))}function cT(e){let t=e.pos;for(;t=128||0===sT[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function uT(e){let t=e.pos;for(;t57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function hT(e){const t=e.str.indexOf("'",e.pos+1);return-1===t&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function dT(e){let t=null,n=null;return e.eat(oT),t=uT(e),44===e.charCode()?(e.pos++,125!==e.charCode()&&(n=uT(e))):n=t,e.eat(125),{min:Number(t),max:n?Number(n):0}}function pT(e,t){const n=function(e){let t=null,n=!1;switch(e.charCode()){case 42:e.pos++,t={min:0,max:0};break;case 43:e.pos++,t={min:1,max:0};break;case 63:e.pos++,t={min:0,max:1};break;case 35:e.pos++,n=!0,e.charCode()===oT?t=dT(e):63===e.charCode()?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case oT:t=dT(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}(e);return null!==n?(n.term=t,35===e.charCode()&&43===e.charCodeAt(e.pos-1)?pT(e,n):n):t}function fT(e){const t=e.peek();return""===t?null:{type:"Token",value:t}}function mT(e){let t,n=null;return e.eat(60),t=cT(e),40===e.charCode()&&41===e.nextCharCode()&&(e.pos+=2,t+="()"),91===e.charCodeAt(e.findWsEnd(e.pos))&&(lT(e),n=function(e){let t=null,n=null,r=1;return e.eat(91),45===e.charCode()&&(e.peek(),r=-1),-1==r&&8734===e.charCode()?e.peek():(t=r*Number(uT(e)),0!==sT[e.charCode()]&&(t+=cT(e))),lT(e),e.eat(44),lT(e),8734===e.charCode()?e.peek():(r=1,45===e.charCode()&&(e.peek(),r=-1),n=r*Number(uT(e)),0!==sT[e.charCode()]&&(n+=cT(e))),e.eat(93),{type:"Range",min:t,max:n}}(e)),e.eat(62),pT(e,{type:"Type",name:t,opts:n})}function gT(e,t){function n(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort((e,t)=>aT[e]-aT[t]);t.length>0;){r=t.shift();let i=0,o=0;for(;i1&&(e.splice(o,i-o,n(e.slice(o,i),r)),i=o+1),o=-1))}-1!==o&&t.length&&e.splice(o,i-o,n(e.slice(o,i),r))}return r}function OT(e){const t=[],n={};let r,i=null,o=e.pos;for(;r=bT(e);)"Spaces"!==r.type&&("Combinator"===r.type?(null!==i&&"Combinator"!==i.type||(e.pos=o,e.error("Unexpected combinator")),n[r.value]=!0):null!==i&&"Combinator"!==i.type&&(n[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(r),i=r,o=e.pos);return null!==i&&"Combinator"===i.type&&(e.pos-=o,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:gT(t,n)||" ",disallowEmpty:!1,explicit:!1}}function bT(e){let t=e.charCode();if(t<128&&1===sT[t])return function(e){const t=cT(e);return 40===e.charCode()?(e.pos++,{type:"Function",name:t}):pT(e,{type:"Keyword",name:t})}(e);switch(t){case 93:break;case 91:return pT(e,function(e){let t;return e.eat(91),t=OT(e),e.eat(93),t.explicit=!0,33===e.charCode()&&(e.pos++,t.disallowEmpty=!0),t}(e));case 60:return 39===e.nextCharCode()?function(e){let t;return e.eat(60),e.eat(39),t=cT(e),e.eat(39),e.eat(62),pT(e,{type:"Property",name:t})}(e):mT(e);case 124:return{type:"Combinator",value:e.substringToPos(e.pos+(124===e.nextCharCode()?2:1))};case 38:return e.pos++,e.eat(38),{type:"Combinator",value:"&&"};case 44:return e.pos++,{type:"Comma"};case 39:return pT(e,{type:"String",value:hT(e)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:lT(e)};case 64:return t=e.nextCharCode(),t<128&&1===sT[t]?(e.pos++,{type:"AtKeyword",name:cT(e)}):fT(e);case 42:case 43:case 63:case 35:case 33:break;case oT:if(t=e.nextCharCode(),t<48||t>57)return fT(e);break;default:return fT(e)}}function yT(e){const t=new iT(e),n=OT(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type?n.terms[0]:n}const vT=function(){};function xT(e){return"function"===typeof e?e:vT}const kT={decorator(e){const t=[];let n=null;return{...e,node(t){const r=n;n=t,e.node.call(this,t),n=r},emit(e,r,i){t.push({type:r,value:e,node:i?null:n})},result:()=>t}}};function wT(e,t){return"string"===typeof e?function(e){const t=[];return RS(e,(n,r,i)=>t.push({type:n,value:e.slice(r,i),node:null})),t}(e):t.generate(e,kT)}const ST={type:"Match"},AT={type:"Mismatch"},TT={type:"DisallowEmpty"};function ET(e,t,n){return t===ST&&n===AT||e===ST&&t===ST&&n===ST?e:("If"===e.type&&e.else===AT&&t===ST&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function CT(e){return e.length>2&&40===e.charCodeAt(e.length-2)&&41===e.charCodeAt(e.length-1)}function _T(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&CT(e.name)}function PT(e,t,n){switch(e){case" ":{let e=ST;for(let n=t.length-1;n>=0;n--){e=ET(t[n],e,AT)}return e}case"|":{let e=AT,n=null;for(let r=t.length-1;r>=0;r--){let i=t[r];if(_T(i)&&(null===n&&r>0&&_T(t[r-1])&&(n=Object.create(null),e=ET({type:"Enum",map:n},ST,e)),null!==n)){const e=(CT(i.name)?i.name.slice(0,-1):i.name).toLowerCase();if(e in n===!1){n[e]=i;continue}}n=null,e=ET(i,ST,e)}return e}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let n=AT;for(let r=t.length-1;r>=0;r--){const i=t[r];let o;o=t.length>1?PT(e,t.filter(function(e){return e!==i}),!1):ST,n=ET(i,o,n)}return n}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?ST:AT;for(let n=t.length-1;n>=0;n--){const i=t[n];let o;o=t.length>1?PT(e,t.filter(function(e){return e!==i}),!0):ST,r=ET(i,o,r)}return r}}}function DT(e){if("function"===typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=PT(e.combinator,e.terms.map(DT),!1);return e.disallowEmpty&&(t=ET(t,TT,AT)),t}case"Multiplier":return function(e){let t=ST,n=DT(e.term);if(0===e.max)n=ET(n,TT,AT),t=ET(n,null,AT),t.then=ET(ST,ST,t),e.comma&&(t.then.else=ET({type:"Comma",syntax:e},t,AT));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==ST&&(t=ET({type:"Comma",syntax:e},t,AT)),t=ET(n,ET(ST,ST,t),AT);if(0===e.min)t=ET(ST,ST,t);else for(let r=0;r=65&&i<=90&&(i|=32),i!==r)return!1}return!0}function FT(e){return null===e||(e.type===Xw||2===e.type||e.type===Gw||e.type===Zw||e.type===Ww||function(e){return 9===e.type&&"?"!==e.value}(e))}function $T(e){return null===e||(e.type===Vw||e.type===Yw||e.type===Kw||9===e.type&&"/"===e.value)}function BT(e,t,n){function r(){do{b++,O=by&&(y=b)}function c(){h={syntax:t.syntax,opts:t.syntax.opts||null!==h&&h.opts||null,prev:h},v={type:2,syntax:t.syntax,token:v.token,prev:v}}function u(){v=2===v.type?v.prev:{type:3,syntax:h.syntax,token:v.token,prev:v},h=h.prev}let h=null,d=null,p=null,f=null,m=0,g=null,O=null,b=-1,y=0,v={type:0,syntax:null,token:null,prev:null};for(r();null===g&&++m<15e3;)switch(t.type){case"Match":if(null===d){if(null!==O&&(b!==e.length-1||"\\0"!==O.value&&"\\9"!==O.value)){t=AT;break}g=RT;break}if((t=d.nextState)===TT){if(d.matchStack===v){t=AT;break}t=ST}for(;d.syntaxStack!==h;)u();d=d.prev;break;case"Mismatch":if(null!==f&&!1!==f)(null===p||b>p.tokenIndex)&&(p=f,f=!1);else if(null===p){g="Mismatch";break}t=p.nextState,d=p.thenStack,h=p.syntaxStack,v=p.matchStack,b=p.tokenIndex,O=bb){for(;b":"<'"+t.name+"'>"));if(!1!==f&&null!==O&&"Type"===t.type){if("custom-ident"===t.name&&1===O.type||"length"===t.name&&"0"===O.value){null===f&&(f=o(t,p)),t=AT;break}}c(),t=r.match;break}case"Keyword":{const e=t.name;if(null!==O){let n=O.value;if(-1!==n.indexOf("\\")&&(n=n.replace(/\\[09].*$/,"")),LT(n,e)){l(),t=ST;break}}t=AT;break}case"AtKeyword":case"Function":if(null!==O&<(O.value,t.name)){l(),t=ST;break}t=AT;break;case"Token":if(null!==O&&O.value===t.value){l(),t=ST;break}t=AT;break;case"Comma":null!==O&&O.type===Xw?FT(v.token)?t=AT:(l(),t=$T(O)?AT:ST):t=FT(v.token)||$T(O)?ST:AT;break;case"String":let r="",m=b;for(;m"Type"===e.type&&e.name===t)}function UT(e,t){return XT(this,e,e=>"Property"===e.type&&e.name===t)}function jT(e){return XT(this,e,e=>"Keyword"===e.type)}function XT(e,t,n){const r=HT.call(e,t);return null!==r&&r.some(n)}function ZT(e){return"node"in e?e.node:ZT(e.match[0])}function YT(e){return"node"in e?e.node:YT(e.match[e.match.length-1])}function GT(e,t,n,r,i){const o=[];return null!==n.matched&&function n(s){if(null!==s.syntax&&s.syntax.type===r&&s.syntax.name===i){const n=ZT(s),r=YT(s);e.syntax.walk(t,function(e,t,i){if(e===n){const e=new QS;do{if(e.appendData(t.data),t.data===r)break;t=t.next}while(null!==t);o.push({parent:i,nodes:e})}})}Array.isArray(s.match)&&s.match.forEach(n)}(n.matched),o}const{hasOwnProperty:VT}=Object.prototype;function WT(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function KT(e){return Boolean(e)&&WT(e.offset)&&WT(e.line)&&WT(e.column)}function JT(e,t){return function(n,r){if(!n||n.constructor!==Object)return r(n,"Type of node should be an Object");for(let i in n){let o=!0;if(!1!==VT.call(n,i)){if("type"===i)n.type!==e&&r(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if("loc"===i){if(null===n.loc)continue;if(n.loc&&n.loc.constructor===Object)if("string"!==typeof n.loc.source)i+=".source";else if(KT(n.loc.start)){if(KT(n.loc.end))continue;i+=".end"}else i+=".start";o=!1}else if(t.hasOwnProperty(i)){o=!1;for(let e=0;!o&&e");else{if(!Array.isArray(r))throw new Error("Wrong value `"+r+"` in `"+e+"."+o+"` structure definition");t.push("List")}}i[o]=t.join(" | ")}return{docs:i,check:JT(e,r)}}const tE=MT(AA.join(" | "));function nE(e,t,n){const r={};for(const i in e)e[i].syntax&&(r[i]=n?e[i].syntax:pA(e[i].syntax,{compact:t}));return r}function rE(e,t,n){const r={};for(const[i,o]of Object.entries(e))r[i]={prelude:o.prelude&&(n?o.prelude.syntax:pA(o.prelude.syntax,{compact:t})),descriptors:o.descriptors&&nE(o.descriptors,t,n)};return r}function iE(e,t,n){return{matched:e,iterations:n,error:t,...s}}function oE(e,t,n,r){const i=wT(n,e.syntax);let o;return function(e){for(let t=0;t3&&void 0!==arguments[3]?arguments[3]:null,serializable:"string"===typeof e||e&&"string"===typeof e.type,syntax:null,match:null};return"function"===typeof e?i.match=MT(e,r):("string"===typeof e?Object.defineProperty(i,"syntax",{get:()=>(Object.defineProperty(i,"syntax",{value:yT(e)}),i.syntax)}):i.syntax=e,Object.defineProperty(i,"match",{get:()=>(Object.defineProperty(i,"match",{value:MT(i.syntax,r)}),i.match)})),i}addAtrule_(e,t){t&&(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce((n,r)=>(n[r]=this.createDescriptor(t.descriptors[r],"AtruleDescriptor",r,e),n),Object.create(null)):null})}addProperty_(e,t){t&&(this.properties[e]=this.createDescriptor(t,"Property",e))}addType_(e,t){t&&(this.types[e]=this.createDescriptor(t,"Type",e))}checkAtruleName(e){if(!this.getAtrule(e))return new OA("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){const n=this.checkAtruleName(e);if(n)return n;const r=this.getAtrule(e);return!r.prelude&&t?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):!r.prelude||t||oE(this,r.prelude,"",!1).matched?void 0:new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){const n=this.checkAtruleName(e);if(n)return n;const r=this.getAtrule(e),i=xA(t);return r.descriptors?r.descriptors[i.name]||r.descriptors[i.basename]?void 0:new OA("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}checkPropertyName(e){if(!this.getProperty(e))return new OA("Unknown property",e)}matchAtrulePrelude(e,t){const n=this.checkAtrulePrelude(e,t);if(n)return iE(null,n);const r=this.getAtrule(e);return r.prelude?oE(this,r.prelude,t||"",!1):iE(null,null)}matchAtruleDescriptor(e,t,n){const r=this.checkAtruleDescriptorName(e,t);if(r)return iE(null,r);const i=this.getAtrule(e),o=xA(t);return oE(this,i.descriptors[o.name]||i.descriptors[o.basename],n,!1)}matchDeclaration(e){return"Declaration"!==e.type?iE(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(kA(e).custom)return iE(null,new Error("Lexer matching doesn't applicable for custom properties"));const n=this.checkPropertyName(e);return n?iE(null,n):oE(this,this.getProperty(e),t,!0)}matchType(e,t){const n=this.getType(e);return n?oE(this,n,t,!1):iE(null,new OA("Unknown type",e))}match(e,t){return"string"===typeof e||e&&e.type?("string"!==typeof e&&e.match||(e=this.createDescriptor(e,"Type","anonymous")),oE(this,e,t,!1)):iE(null,new OA("Bad syntax"))}findValueFragments(e,t,n,r){return GT(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return GT(this,e.value,this.matchDeclaration(e),t,n)}findAllFragments(e,t,n){const r=[];return this.syntax.walk(e,{visit:"Declaration",enter:e=>{r.push.apply(r,this.findDeclarationValueFragments(e,t,n))}}),r}getAtrule(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=xA(e);return(n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name])||null}getAtrulePrelude(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.getAtrule(e,t);return n&&n.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=kA(e);return(n.vendor&&t?this.properties[n.name]||this.properties[n.basename]:this.properties[n.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(r,i,o,s){if(o.has(i))return o.get(i);o.set(i,!1),null!==s.syntax&&function(e,t,n){let r=vT,i=vT;if("function"===typeof t?r=t:t&&(r=xT(t.enter),i=xT(t.leave)),r===vT&&i===vT)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function e(t){switch(r.call(n,t),t.type){case"Group":t.terms.forEach(e);break;case"Multiplier":e(t.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+t.type)}i.call(n,t)}(e)}(s.syntax,function(s){if("Type"!==s.type&&"Property"!==s.type)return;const a="Type"===s.type?r.types:r.properties,l="Type"===s.type?t:n;hasOwnProperty.call(a,s.name)&&!e(r,s.name,l,a[s.name])||o.set(i,!0)},this)}let t=new Map,n=new Map;for(const r in this.types)e(this,r,t,this.types[r]);for(const r in this.properties)e(this,r,n,this.properties[r]);return t=[...t.keys()].filter(e=>t.get(e)),n=[...n.keys()].filter(e=>n.get(e)),t.length||n.length?{types:t,properties:n}:null}dump(e,t){return{generic:this.generic,units:this.units,types:nE(this.types,!t,e),properties:nE(this.properties,!t,e),atrules:rE(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}}function aE(e,t){return"string"===typeof t&&/^\s*\|/.test(t)?"string"===typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function lE(e,t){const n=Object.create(null);for(const[r,i]of Object.entries(e))if(i){n[r]={};for(const e of Object.keys(i))t.includes(e)&&(n[r][e]=i[e])}return n}function cE(e,t){const n={...e};for(const[r,i]of Object.entries(t))switch(r){case"generic":n[r]=Boolean(i);break;case"units":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]=Array.isArray(t)?t:[];break;case"atrules":n[r]={...e[r]};for(const[e,t]of Object.entries(i)){const i=n[r][e]||{},o=n[r][e]={prelude:i.prelude||null,descriptors:{...i.descriptors}};if(t){o.prelude=t.prelude?aE(o.prelude,t.prelude):o.prelude||null;for(const[e,n]of Object.entries(t.descriptors||{}))o.descriptors[e]=n?aE(o.descriptors[e],n):null;Object.keys(o.descriptors).length||(o.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]=aE(n[r][e],t);break;case"scope":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]={...n[r][e],...t};break;case"parseContext":n[r]={...e[r],...i};break;case"atrule":case"pseudo":n[r]={...e[r],...lE(i,["parse"])};break;case"node":n[r]={...e[r],...lE(i,["name","structure","parse","generate","walkContext"])}}return n}function uE(e){const t=jS(e),n=uA(e),r=nA(e),{fromPlainObject:i,toPlainObject:o}=function(e){return{fromPlainObject:t=>(e(t,{enter(e){e.children&&e.children instanceof QS===!1&&(e.children=(new QS).fromArray(e.children))}}),t),toPlainObject:t=>(e(t,{leave(e){e.children&&e.children instanceof QS&&(e.children=e.children.toArray())}}),t)}}(n),s={lexer:null,createLexer:e=>new sE(e,s,s.lexer.structure),tokenize:RS,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:i,toPlainObject:o,fork(t){const n=cE({},e);return uE("function"===typeof t?t(n,Object.assign):cE(n,t))}};return s.lexer=new sE({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},s),s}const hE=43,dE=45,pE=110,fE=!0;function mE(e,t){let n=this.tokenStart+e;const r=this.charCodeAt(n);for(r!==hE&&r!==dE||(t&&this.error("Number sign is not allowed"),n++);n0&&this.skip(e),0===t&&(n=this.charCodeAt(this.tokenStart),n!==hE&&n!==dE&&this.error("Number sign is expected")),gE.call(this,0!==t),t===dE?"-"+this.consume($w):this.consume($w)}const yE="AnPlusB",vE={a:[String,null],b:[String,null]};function xE(){const e=this.tokenStart;let t=null,n=null;if(this.tokenType===$w)gE.call(this,false),n=this.consume($w);else if(1===this.tokenType&&this.cmpChar(this.tokenStart,dE))switch(t="-1",OE.call(this,1,pE),this.tokenEnd-this.tokenStart){case 2:this.next(),n=bE.call(this);break;case 3:OE.call(this,2,dE),this.next(),this.skipSC(),gE.call(this,fE),n="-"+this.consume($w);break;default:OE.call(this,2,dE),mE.call(this,3,fE),this.next(),n=this.substrToCursor(e+2)}else if(1===this.tokenType||this.isDelim(hE)&&1===this.lookupType(1)){let r=0;switch(t="1",this.isDelim(hE)&&(r=1,this.next()),OE.call(this,0,pE),this.tokenEnd-this.tokenStart){case 1:this.next(),n=bE.call(this);break;case 2:OE.call(this,1,dE),this.next(),this.skipSC(),gE.call(this,fE),n="-"+this.consume($w);break;default:OE.call(this,1,dE),mE.call(this,2,fE),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===zw){const r=this.charCodeAt(this.tokenStart),i=r===hE||r===dE;let o=this.tokenStart+i;for(;o0&&void 0!==arguments[0]&&arguments[0];const t=this.tokenStart;let n,r,i=null,o=null;switch(this.eat(3),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),!1===this.eof&&this.tokenType!==Ww&&this.tokenType!==jw&&(i=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),wE):wE.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case jw:this.next();break;case Ww:o=hasOwnProperty.call(this.atrule,r)&&"function"===typeof this.atrule[r].block?this.atrule[r].block.call(this,e):this.Block(SE.call(this))}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:i,block:o}}function _E(e){this.token(3,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?this.node(e.block):this.token(jw,";")}const PE="AtrulePrelude",DE="atrulePrelude",ME={children:[[]]};function NE(e){let t=null;return null!==e&&(e=e.toLowerCase()),this.skipSC(),t=hasOwnProperty.call(this.atrule,e)&&"function"===typeof this.atrule[e].prelude?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),!0!==this.eof&&this.tokenType!==Ww&&this.tokenType!==jw&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function RE(e){this.children(e)}function IE(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(42)?(t=!0,this.next()):this.isDelim(124)||this.eat(1),this.isDelim(124)?61!==this.charCodeAt(this.tokenStart+1)?(this.next(),this.eat(1)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function QE(){const e=this.tokenStart,t=this.charCodeAt(e);return 61!==t&&126!==t&&94!==t&&36!==t&&42!==t&&124!==t&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),61!==t&&(this.isDelim(61)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}const LE="AttributeSelector",FE={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function $E(){const e=this.tokenStart;let t,n=null,r=null,i=null;return this.eat(Zw),this.skipSC(),t=IE.call(this),this.skipSC(),this.tokenType!==Yw&&(1!==this.tokenType&&(n=QE.call(this),this.skipSC(),r=5===this.tokenType?this.String():this.Identifier(),this.skipSC()),1===this.tokenType&&(i=this.consume(1),this.skipSC())),this.eat(Yw),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:i}}function BE(e){this.token(9,"["),this.node(e.name),null!==e.matcher&&(this.tokenize(e.matcher),this.node(e.value)),null!==e.flags&&this.token(1,e.flags),this.token(9,"]")}function zE(e){return this.Raw(e,null,!0)}function HE(){return this.parseWithFallback(this.Rule,zE)}function qE(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function UE(){if(this.tokenType===jw)return qE.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,qE);return this.tokenType===jw&&this.next(),e}const jE="Block",XE="block",ZE={children:[["Atrule","Rule","Declaration"]]};function YE(e){const t=e?UE:HE,n=this.tokenStart;let r=this.createList();this.eat(Ww);e:for(;!this.eof;)switch(this.tokenType){case Kw:break e;case Hw:case Jw:this.next();break;case 3:r.push(this.parseWithFallback(this.Atrule.bind(this,e),zE));break;default:e&&this.isDelim(38)?r.push(HE.call(this)):r.push(t.call(this))}return this.eof||this.eat(Kw),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function GE(e){this.token(Ww,"{"),this.children(e,e=>{"Declaration"===e.type&&this.token(jw,";")}),this.token(Kw,"}")}const VE="Brackets",WE={children:[[]]};function KE(e,t){const n=this.tokenStart;let r=null;return this.eat(Zw),r=e.call(this,t),this.eof||this.eat(Yw),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function JE(e){this.token(9,"["),this.children(e),this.token(9,"]")}const eC="CDC",tC=[];function nC(){const e=this.tokenStart;return this.eat(qw),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function rC(){this.token(qw,"--\x3e")}const iC="CDO",oC=[];function sC(){const e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function aC(){this.token(14,"\x3c!--")}const lC="ClassSelector",cC={name:String};function uC(){return this.eatDelim(46),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function hC(e){this.token(9,"."),this.token(1,e.name)}const dC="Combinator",pC={name:String};function fC(){const e=this.tokenStart;let t;switch(this.tokenType){case Hw:t=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case 62:case 43:case 126:this.next();break;case 47:this.next(),this.eatIdent("deep"),this.eatDelim(47);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e)}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function mC(e){this.tokenize(e.name)}const gC="Comment",OC={value:String};function bC(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(Jw),t-e+2>=2&&42===this.charCodeAt(t-2)&&47===this.charCodeAt(t-1)&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function yC(e){this.token(Jw,"/*"+e.value+"*/")}function vC(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function xC(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function kC(){const e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&this.tokenType!==jw&&!1===this.isDelim(33)&&!1===this.isBalanceEdge(e)&&this.error(),t}const wC="Declaration",SC="declaration",AC={important:[Boolean,String],property:String,value:["Value","Raw"]};function TC(){const e=this.tokenStart,t=this.tokenIndex,n=CC.call(this),r=wA(n),i=r?this.parseCustomProperty:this.parseValue,o=r?xC:vC;let s,a=!1;this.skipSC(),this.eat(Uw);const l=this.tokenIndex;if(r||this.skipSC(),s=i?this.parseWithFallback(kC,o):o.call(this,this.tokenIndex),r&&"Value"===s.type&&s.children.isEmpty)for(let c=l-this.tokenIndex;c<=0;c++)if(this.lookupType(c)===Hw){s.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(33)&&(a=_C.call(this),this.skipSC()),!1===this.eof&&this.tokenType!==jw&&!1===this.isBalanceEdge(t)&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:a,property:n,value:s}}function EC(e){this.token(1,e.property),this.token(Uw,":"),this.node(e.value),e.important&&(this.token(9,"!"),this.token(1,!0===e.important?"important":e.important))}function CC(){const e=this.tokenStart;if(9===this.tokenType)switch(this.charCodeAt(this.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.next();break;case 47:this.next(),this.isDelim(47)&&this.next()}return 4===this.tokenType?this.eat(4):this.eat(1),this.substrToCursor(e)}function _C(){this.eat(9),this.skipSC();const e=this.consume(1);return"important"===e||e}function PC(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}const DC="DeclarationList",MC={children:[["Declaration","Atrule","Rule"]]};function NC(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case Hw:case Jw:case jw:this.next();break;case 3:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),PC));break;default:this.isDelim(38)?e.push(this.parseWithFallback(this.Rule,PC)):e.push(this.parseWithFallback(this.Declaration,PC))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function RC(e){this.children(e,e=>{"Declaration"===e.type&&this.token(jw,";")})}const IC="Dimension",QC={value:String,unit:String};function LC(){const e=this.tokenStart,t=this.consumeNumber(zw);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function FC(e){this.token(zw,e.value+e.unit)}const $C="Function",BC="function",zC={name:String,children:[[]]};function HC(e,t){const n=this.tokenStart,r=this.consumeFunctionName(),i=r.toLowerCase();let o;return o=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(Vw),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:o}}function qC(e){this.token(2,e.name+"("),this.children(e),this.token(Vw,")")}const UC="XXX",jC="Hash",XC={value:String};function ZC(){const e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function YC(e){this.token(4,"#"+e.value)}const GC="Identifier",VC={name:String};function WC(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function KC(e){this.token(1,e.name)}const JC="IdSelector",e_={name:String};function t_(){const e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function n_(e){this.token(9,"#"+e.name)}const r_="MediaFeature",i_={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function o_(){const e=this.tokenStart;let t,n=null;if(this.eat(Gw),this.skipSC(),t=this.consume(1),this.skipSC(),this.tokenType!==Vw){switch(this.eat(Uw),this.skipSC(),this.tokenType){case $w:n=9===this.lookupNonWSType(1)?this.Ratio():this.Number();break;case zw:n=this.Dimension();break;case 1:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(Vw),{type:"MediaFeature",loc:this.getLocation(e,this.tokenStart),name:t,value:n}}function s_(e){this.token(Gw,"("),this.token(1,e.name),null!==e.value&&(this.token(Uw,":"),this.node(e.value)),this.token(Vw,")")}const a_="MediaQuery",l_={children:[["Identifier","MediaFeature","WhiteSpace"]]};function c_(){const e=this.createList();let t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case Jw:case Hw:this.next();continue;case 1:t=this.Identifier();break;case Gw:t=this.MediaFeature();break;default:break e}e.push(t)}return null===t&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}}function u_(e){this.children(e)}const h_="MediaQueryList",d_={children:[["MediaQuery"]]};function p_(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===Xw);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function f_(e){this.children(e,()=>this.token(Xw,","))}const m_="NestingSelector",g_={};function O_(){const e=this.tokenStart;return this.eatDelim(38),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function b_(){this.token(9,"&")}const y_="Nth",v_={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function x_(){this.skipSC();const e=this.tokenStart;let t,n=e,r=null;return t=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),n=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),r=this.SelectorList(),n=this.tokenStart),{type:"Nth",loc:this.getLocation(e,n),nth:t,selector:r}}function k_(e){this.node(e.nth),null!==e.selector&&(this.token(1,"of"),this.node(e.selector))}const w_="Number",S_={value:String};function A_(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume($w)}}function T_(e){this.token($w,e.value)}const E_="Operator",C_={value:String};function __(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function P_(e){this.tokenize(e.value)}const D_="Parentheses",M_={children:[[]]};function N_(e,t){const n=this.tokenStart;let r=null;return this.eat(Gw),r=e.call(this,t),this.eof||this.eat(Vw),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function R_(e){this.token(Gw,"("),this.children(e),this.token(Vw,")")}const I_="Percentage",Q_={value:String};function L_(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(Bw)}}function F_(e){this.token(Bw,e.value+"%")}const $_="PseudoClassSelector",B_="function",z_={name:String,children:[["Raw"],null]};function H_(){const e=this.tokenStart;let t,n,r=null;return this.eat(Uw),2===this.tokenType?(t=this.consumeFunctionName(),n=t.toLowerCase(),hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),r=this.pseudo[n].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(this.tokenIndex,null,!1))),this.eat(Vw)):t=this.consume(1),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}}function q_(e){this.token(Uw,":"),null===e.children?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(Vw,")"))}const U_="PseudoElementSelector",j_="function",X_={name:String,children:[["Raw"],null]};function Z_(){const e=this.tokenStart;let t,n,r=null;return this.eat(Uw),this.eat(Uw),2===this.tokenType?(t=this.consumeFunctionName(),n=t.toLowerCase(),hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),r=this.pseudo[n].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(this.tokenIndex,null,!1))),this.eat(Vw)):t=this.consume(1),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}}function Y_(e){this.token(Uw,":"),this.token(Uw,":"),null===e.children?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(Vw,")"))}function G_(){this.skipSC();const e=this.consume($w);for(let t=0;t0&&this.lookupType(-1)===Hw?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const tP="Raw",nP={value:String};function rP(e,t,n){const r=this.getTokenStart(e);let i;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),i=n&&this.tokenStart>r?eP.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(r,i),value:this.substring(r,i)}}function iP(e){this.tokenize(e.value)}function oP(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function sP(){const e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&this.tokenType!==Ww&&this.error(),e}const aP="Rule",lP="rule",cP={prelude:["SelectorList","Raw"],block:["Block"]};function uP(){const e=this.tokenIndex,t=this.tokenStart;let n,r;return n=this.parseRulePrelude?this.parseWithFallback(sP,oP):oP.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function hP(e){this.node(e.prelude),this.node(e.block)}const dP="Selector",pP={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function fP(){const e=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(e)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}}function mP(e){this.children(e)}const gP="SelectorList",OP="selector",bP={children:[["Selector","Raw"]]};function yP(){const e=this.createList();for(;!this.eof&&(e.push(this.Selector()),this.tokenType===Xw);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function vP(e){this.children(e,()=>this.token(Xw,","))}function xP(e){const t=e.length,n=e.charCodeAt(0),r=34===n||39===n?1:0,i=1===r&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1;let o="";for(let s=r;s<=i;s++){let n=e.charCodeAt(s);if(92===n){if(s===i){s!==t-1&&(o=e.substr(s+1));break}if(n=e.charCodeAt(++s),lS(92,n)){const t=s-1,n=xS(e,t);s=n-1,o+=AS(e.substring(t+1,n))}else 13===n&&10===e.charCodeAt(s+1)&&s++}else o+=e[s]}return o}const kP="String",wP={value:String};function SP(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:xP(this.consume(5))}}function AP(e){this.token(5,function(e,t){const n=t?"'":'"',r=t?39:34;let i="",o=!1;for(let s=0;s6&&this.error("Too many hex digits",r)}return this.next(),n}function FP(e){let t=0;for(;this.isDelim(63);)++t>e&&this.error("Too many question marks"),this.next()}function $P(e){this.charCodeAt(this.tokenStart)!==e&&this.error((43===e?"Plus sign":"Hyphen minus")+" is expected")}function BP(){let e=0;switch(this.tokenType){case $w:if(e=LP.call(this,1,!0),this.isDelim(63)){FP.call(this,6-e);break}if(this.tokenType===zw||this.tokenType===$w){$P.call(this,45),LP.call(this,1,!1);break}break;case zw:e=LP.call(this,1,!0),e>0&&FP.call(this,6-e);break;default:if(this.eatDelim(43),1===this.tokenType){e=LP.call(this,0,!0),e>0&&FP.call(this,6-e);break}if(this.isDelim(63)){this.next(),FP.call(this,5);break}this.error("Hex digit or question mark is expected")}}const zP="UnicodeRange",HP={value:String};function qP(){const e=this.tokenStart;return this.eatIdent("u"),BP.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function UP(e){this.tokenize(e.value)}const jP="Url",XP={value:String};function ZP(){const e=this.tokenStart;let t;switch(this.tokenType){case 7:t=function(e){const t=e.length;let n=4,r=41===e.charCodeAt(t-1)?t-2:t-1,i="";for(;n )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( )","alpha-value":"|","angle-percentage":"|","angular-color-hint":"","angular-color-stop":"&&?","angular-color-stop-list":"[ [, ]?]# , ","animateable-feature":"scroll-position|contents|","asin()":"asin( )","atan()":"atan( )","atan2()":"atan2( , )",attachment:"scroll|fixed|local","attr()":"attr( ? [, ]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' ']'|'[' [|] ? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [? ]+ ? )","auto-track-list":"[? [|]]* ? [? [|]]* ?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"||||","bg-image":"none|","bg-layer":"|| [/ ]?||||||||","bg-position":"[[left|center|right|top|bottom|]|[left|center|right|] [top|center|bottom|]|[center|[left|right] ?]&&[center|[top|bottom] ?]]","bg-size":"[|auto]{1,2}|cover|contain","blur()":"blur( )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( )","calc()":"calc( )","calc-sum":" [['+'|'-'] ]*","calc-product":" ['*' |'/' ]*","calc-value":"||||( )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"|","cf-mixing-image":"?&&","circle()":"circle( []? [at ]? )","clamp()":"clamp( #{3} )","class-selector":"'.' ","clip-source":"",color:"|||||||||currentcolor|","color-stop":"|","color-stop-angle":"{1,2}","color-stop-length":"{1,2}","color-stop-list":"[ [, ]?]# , ",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[? * [ *]*]!","compound-selector-list":"#","complex-selector":" [? ]*","complex-selector-list":"#","conic-gradient()":"conic-gradient( [from ]? [at ]? , )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[|contents||||||]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"","contrast()":"contrast( [] )","cos()":"cos( )",counter:"|","counter()":"counter( , ? )","counter-name":"","counter-style":"|symbols( )","counter-style-name":"","counters()":"counters( , , ? )","cross-fade()":"cross-fade( , ? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( , , , )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( {2,3} ? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( , [first|start|last|first-except]? )|element( )","ellipse()":"ellipse( [{2}]? [at ]? )","ending-shape":"circle|ellipse","env()":"env( , ? )","exp()":"exp( )","explicit-track-list":"[? ]+ ?","family-name":"|+","feature-tag-value":" [|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":" '{' '}'","feature-value-block-list":"+","feature-value-declaration":" : + ;","feature-value-declaration-list":"","feature-value-name":"","fill-rule":"nonzero|evenodd","filter-function":"|||||||||","filter-function-list":"[|]+","final-bg-layer":"<'background-color'>|||| [/ ]?||||||||","fixed-breadth":"","fixed-repeat":"repeat( [] , [? ]+ ? )","fixed-size":"|minmax( , )|minmax( , )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|","frequency-percentage":"|","general-enclosed":"[ )]|( )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"|fill-box|stroke-box|view-box",gradient:"||||||<-legacy-gradient>","grayscale()":"grayscale( )","grid-line":"auto||[&&?]|[span&&[||]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( [/ ]? )|hsl( , , , ? )","hsla()":"hsla( [/ ]? )|hsla( , , , ? )",hue:"|","hue-rotate()":"hue-rotate( )","hwb()":"hwb( [|none] [|none] [|none] [/ [|none]]? )","hypot()":"hypot( # )",image:"||||||","image()":"image( ? [? , ?]! )","image-set()":"image-set( # )","image-set-option":"[|] [||type( )]","image-src":"|","image-tags":"ltr|rtl","inflexible-breadth":"|min-content|max-content|auto","inset()":"inset( {1,4} [round <'border-radius'>]? )","invert()":"invert( )","keyframes-name":"|","keyframe-block":"# { }","keyframe-block-list":"+","keyframe-selector":"from|to|","lab()":"lab( [||none] [||none] [||none] [/ [|none]]? )","layer()":"layer( )","layer-name":" ['.' ]*","lch()":"lch( [||none] [||none] [|none] [/ [|none]]? )","leader()":"leader( )","leader-type":"dotted|solid|space|","length-percentage":"|","line-names":"'[' * ']'","line-name-list":"[|]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"|thin|medium|thick","linear-color-hint":"","linear-color-stop":" ?","linear-gradient()":"linear-gradient( [|to ]? , )","log()":"log( , ? )","mask-layer":"|| [/ ]?||||||[|no-clip]||||","mask-position":"[|left|center|right] [|top|center|bottom]?","mask-reference":"none||","mask-source":"","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( #{6} )","matrix3d()":"matrix3d( #{16} )","max()":"max( # )","media-and":" [and ]+","media-condition":"|||","media-condition-without-or":"||","media-feature":"( [||] )","media-in-parens":"( )||","media-not":"not ","media-or":" [or ]+","media-query":"|[not|only]? [and ]?","media-query-list":"#","media-type":"","mf-boolean":"","mf-name":"","mf-plain":" : ","mf-range":" ['<'|'>']? '='? | ['<'|'>']? '='? | '<' '='? '<' '='? | '>' '='? '>' '='? ","mf-value":"|||","min()":"min( # )","minmax()":"minmax( [|min-content|max-content|auto] , [||min-content|max-content|auto] )","mod()":"mod( , )","name-repeat":"repeat( [|auto-fill] , + )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"","ns-prefix":"[|'*']? '|'","number-percentage":"|","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"|even|odd","opacity()":"opacity( [] )","overflow-position":"unsafe|safe","outline-radius":"|","page-body":"? [; ]?| ","page-margin-box":" '{' '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[#]?","page-selector":"+| *","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [ ,]? )","paint()":"paint( , ? )","perspective()":"perspective( [|none] )","polygon()":"polygon( ? , [ ]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|] [top|center|bottom|]?|[[left|right] ]&&[[top|bottom] ]]","pow()":"pow( , )","pseudo-class-selector":"':' |':' ')'","pseudo-element-selector":"':' ","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [||]? [at ]? , )",ratio:" [/ ]?","relative-selector":"? ","relative-selector-list":"#","relative-size":"larger|smaller","rem()":"rem( , )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from ]? [at ]? , )","repeating-linear-gradient()":"repeating-linear-gradient( [|to ]? , )","repeating-radial-gradient()":"repeating-radial-gradient( [||]? [at ]? , )","reversed-counter-name":"reversed( )","rgb()":"rgb( {3} [/ ]? )|rgb( {3} [/ ]? )|rgb( #{3} , ? )|rgb( #{3} , ? )","rgba()":"rgba( {3} [/ ]? )|rgba( {3} [/ ]? )|rgba( #{3} , ? )|rgba( #{3} , ? )","rotate()":"rotate( [|] )","rotate3d()":"rotate3d( , , , [|] )","rotateX()":"rotateX( [|] )","rotateY()":"rotateY( [|] )","rotateZ()":"rotateZ( [|] )","round()":"round( ? , , )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( )","scale()":"scale( [|]#{1,2} )","scale3d()":"scale3d( [|]#{3} )","scaleX()":"scaleX( [|] )","scaleY()":"scaleY( [|] )","scaleZ()":"scaleZ( [|] )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"|closest-side|farthest-side","sign()":"sign( )","skew()":"skew( [|] , [|]? )","skewX()":"skewX( [|] )","skewY()":"skewY( [|] )","sepia()":"sepia( )",shadow:"inset?&&{2,4}&&?","shadow-t":"[{2,3}&&?]",shape:"rect( , , , )|rect( )","shape-box":"|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( )","single-animation":"