UNPKG

prettier

Version:

Prettier is an opinionated code formatter

16 lines (15 loc) 168 kB
var Nr=Object.defineProperty;var Dr=e=>{throw TypeError(e)};var es=(e,t,r)=>t in e?Nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ir=(e,t)=>{for(var r in t)Nr(e,r,{get:t[r],enumerable:!0})};var Wt=(e,t,r)=>es(e,typeof t!="symbol"?t+"":t,r),ts=(e,t,r)=>t.has(e)||Dr("Cannot "+r);var qe=(e,t,r)=>(ts(e,t,"read from private field"),r?r.call(e):t.get(e)),Rr=(e,t,r)=>t.has(e)?Dr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);var Zi={};Ir(Zi,{languages:()=>Ui,options:()=>zi,parsers:()=>Pr,printers:()=>Go});var ke=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i);var rs=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},ns=ke("replaceAll",function(){if(typeof this=="string")return rs}),T=ns;function is(e){return this[e<0?this.length+e:e]}var ss=ke("at",function(){if(Array.isArray(this)||typeof this=="string")return is}),I=ss;var as=()=>{},He=as;var Fe="string",Ve="array",ot="cursor",be="indent",we="align",lt="trim",Te="group",ye="fill",Ee="if-break",xe="indent-if-break",ct="line-suffix",ut="line-suffix-boundary",z="line",pt="label",Le="break-parent",ht=new Set([ot,be,we,lt,Te,ye,Ee,xe,ct,ut,z,pt,Le]);function mt(e,t,r){if(!e.has(t)){let n=r(t);e.set(t,n)}return e.get(t)}function os(e){if(typeof e=="string")return Fe;if(Array.isArray(e))return Ve;if(!e)return;let{type:t}=e;if(ht.has(t))return t}var ft=os;var ls=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function cs(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', Expected it to be 'string' or 'object'.`;if(ft(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=ls([...ht].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. Expected it to be ${n}.`}var zt=class extends Error{name="InvalidDocError";constructor(t){super(cs(t)),this.doc=t}},Or=zt;function Gt(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(s){return mt(r,s,i)}function i(s){switch(ft(s)){case Ve:return t(s.map(n));case ye:return t({...s,parts:s.parts.map(n)});case Ee:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case Te:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),t({...s,contents:o,expandedStates:a})}case we:case be:case xe:case pt:case ct:return t({...s,contents:n(s.contents)});case Fe:case ot:case lt:case ut:case z:case Le:return t(s);default:throw new Or(s)}}}function L(e,t=Mr){return Gt(e,r=>typeof r=="string"?R(t,r.split(` `)):r)}var D=He,dt=He,Br=He,qr=He;function A(e){return D(e),{type:be,contents:e}}function us(e,t){return qr(e),D(t),{type:we,contents:t,n:e}}function Hr(e){return us(Number.NEGATIVE_INFINITY,e)}var G={type:Le};function gt(e){return Br(e),{type:ye,parts:e}}function C(e,t={}){return D(e),dt(t.expandedStates,!0),{type:Te,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function $(e,t="",r={}){return D(e),t!==""&&D(t),{type:Ee,breakContents:e,flatContents:t,groupId:r.groupId}}function Fr(e,t){return D(e),{type:xe,contents:e,groupId:t.groupId,negate:t.negate}}function R(e,t){D(e),dt(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}var S={type:z},y={type:z,soft:!0},ps={type:z,hard:!0},k=[ps,G],hs={type:z,hard:!0,literal:!0},Mr=[hs,G];var Vr=Object.freeze({character:"'",codePoint:39}),Ur=Object.freeze({character:'"',codePoint:34}),ms=Object.freeze({preferred:Vr,alternate:Ur}),fs=Object.freeze({preferred:Ur,alternate:Vr});function Wr(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?ms:fs,{length:i}=e,s=0,a=0;for(let o=0;o<i;o++){let l=e.charCodeAt(o);l===r.codePoint?s++:l===n.codePoint&&a++}return(s>a?n:r).character}function $t(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var jt=class{#e;constructor(t){this.#e=new Set(t)}getLeadingWhitespaceCount(t){let r=this.#e,n=0;for(let i=0;i<t.length&&r.has(t.charAt(i));i++)n++;return n}getTrailingWhitespaceCount(t){let r=this.#e,n=0;for(let i=t.length-1;i>=0&&r.has(t.charAt(i));i--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return this.#e.has(t.charAt(0))}hasTrailingWhitespace(t){return this.#e.has(I(0,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${$t([...this.#e].join(""))}]+`,i=new RegExp(r?`(${n})`:n);return t.split(i)}hasWhitespaceCharacter(t){let r=this.#e;return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=this.#e;return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=this.#e;return Array.prototype.every.call(t,n=>r.has(n))}#t(t){let r=Number.POSITIVE_INFINITY;for(let n of t.split(` `)){if(n.length===0)continue;let i=this.getLeadingWhitespaceCount(n);if(i===0)return 0;n.length!==i&&i<r&&(r=i)}return r===Number.POSITIVE_INFINITY?0:r}dedentString(t){let r=this.#t(t);return r===0?t:t.split(` `).map(n=>n.slice(r)).join(` `)}},zr=jt;var ds=[" ",` `,"\f","\r"," "],gs=new zr(ds),P=gs;var Yt=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},Gr=Yt;function j(e,t=!0){return[A([y,e]),t?y:""]}function q(e,t){let r=e.type==="NGRoot"?e.node.type==="NGMicrosyntax"&&e.node.body.length===1&&e.node.body[0].type==="NGMicrosyntaxExpression"?e.node.body[0].expression:e.node:e.type==="JsExpressionRoot"?e.node:e;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression"||t.parser==="__ng_binding"||t.parser==="__ng_directive")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function E(e,t,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let i=!0;n&&(r.__onHtmlBindingRoot=(a,o)=>{i=n(a,o)});let s=await t(e,r,t);return i?C(s):j(s)}function _s(e,t,r,n){let{node:i}=r,s=n.originalText.slice(i.sourceSpan.start.offset,i.sourceSpan.end.offset);return/^\s*$/.test(s)?"":E(s,e,{parser:"__ng_directive",__isInHtmlAttribute:!1},q)}var $r=_s;var Ss=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),se=Ss;var vs=Array.prototype.toReversed??function(){return[...this].reverse()},Cs=ke("toReversed",function(){if(Array.isArray(this))return vs}),jr=Cs;function ks(){let e=globalThis,t=e.process?.platform;if(typeof t=="string")return t.startsWith("win");let r=e.Deno?.build?.os;return typeof r=="string"?r==="windows":e.navigator?.platform?.startsWith("Win")??!1}var bs=ks();function Yr(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function ws(e){return e=Yr(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function Ts(e){e=Yr(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function Kt(e){return bs?Ts(e):ws(e)}var Kr=e=>String(e).split(/[/\\]/).pop(),Qr=e=>String(e).startsWith("file:");function ys(e){return Array.isArray(e)&&e.length>0}var X=ys;function Xr(e,t){if(!t)return;let r=Kr(t).toLowerCase();return e.find(({filenames:n})=>n?.some(i=>i.toLowerCase()===r))??e.find(({extensions:n})=>n?.some(i=>r.endsWith(i)))}function Es(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r?.includes(t))??e.find(({extensions:r})=>r?.includes(`.${t}`))}var xs=void 0;function Jr(e,t){if(t){if(Qr(t))try{t=Kt(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r?.({filepath:t}))}}function Ls(e,t){let r=jr(0,e.plugins).flatMap(i=>i.languages??[]);return(Es(r,t.language)??Xr(r,t.physicalFile)??Xr(r,t.file)??Jr(r,t.physicalFile)??Jr(r,t.file)??xs?.(r,t.physicalFile))?.parsers[0]}var _t=Ls;var St=Symbol.for("PRETTIER_IS_FRONT_MATTER");function As(e){return!!e?.[St]}var ae=As;function Ps(e){return T(0,e,/[^\n]/g," ")}var vt=Ps;var Ue=3;function Ns(e){let t=e.slice(0,Ue);if(t!=="---"&&t!=="+++")return;let r=e.indexOf(` `,Ue);if(r===-1)return;let n=e.slice(Ue,r).trim(),i=e.indexOf(` ${t}`,r),s=n;if(s||(s=t==="+++"?"toml":"yaml"),i===-1&&t==="---"&&s==="yaml"&&(i=e.indexOf(` ...`,r)),i===-1)return;let a=i+1+Ue,o=e.charAt(a+1);if(!/\s?/.test(o))return;let l=e.slice(0,a),c;return{language:s,explicitLanguage:n||null,value:e.slice(r+1,i),startDelimiter:t,endDelimiter:l.slice(-Ue),raw:l,start:{line:1,column:0,index:0},end:{index:l.length,get line(){return c??(c=l.split(` `)),c.length},get column(){return c??(c=l.split(` `)),I(0,c,-1).length}},[St]:!0}}function Ds(e){let t=Ns(e);return t?{frontMatter:t,get content(){let{raw:r}=t;return vt(r)+e.slice(r.length)}}:{content:e}}var Qt=Ds;var Zr="inline",Xt={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",select:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",option:"block",optgroup:"block"},en="normal",Jt={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function Is(e){return e.kind==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}var oe=Is;var Rs=e=>T(0,e,/^[\t\f\r ]*\n/g,""),Zt=e=>Rs(P.trimEnd(e)),tn=e=>{let t=e,r=P.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=P.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}};function Ct(e,t){return!!(e.kind==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.kind==="ieConditionalComment"&&!e.complete||Y(e)&&e.children.some(r=>r.kind!=="text"&&r.kind!=="interpolation")||wt(e,t)&&!O(e,t)&&e.kind!=="interpolation")}function le(e){return e.kind==="attribute"||!e.parent||!e.prev?!1:Os(e.prev)}function Os(e){return e.kind==="comment"&&e.value.trim()==="prettier-ignore"}function N(e){return e.kind==="text"||e.kind==="comment"}function O(e,t){return e.kind==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||e.fullName==="svg:script"||e.fullName==="mj-style"&&t.parser==="mjml"||oe(e)&&(e.name==="script"||e.name==="style"))}function rn(e,t){return e.children&&!O(e,t)}function nn(e,t){return O(e,t)||e.kind==="interpolation"||er(e)}function er(e){return dn(e).startsWith("pre")}function sn(e,t){let r=n();if(r&&!e.prev&&e.parent?.tagDefinition?.ignoreFirstLf)return e.kind==="interpolation";return r;function n(){return ae(e)||e.kind==="angularControlFlowBlock"?!1:(e.kind==="text"||e.kind==="interpolation")&&e.prev&&(e.prev.kind==="text"||e.prev.kind==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:Y(e.parent)?!0:!(!e.prev&&(e.parent.kind==="root"||Y(e)&&e.parent||O(e.parent,t)||Ge(e.parent,t)||!Vs(e.parent.cssDisplay))||e.prev&&!zs(e.prev.cssDisplay))}}function an(e,t){return ae(e)||e.kind==="angularControlFlowBlock"?!1:(e.kind==="text"||e.kind==="interpolation")&&e.next&&(e.next.kind==="text"||e.next.kind==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:Y(e.parent)?!0:!(!e.next&&(e.parent.kind==="root"||Y(e)&&e.parent||O(e.parent,t)||Ge(e.parent,t)||!Us(e.parent.cssDisplay))||e.next&&!Ws(e.next.cssDisplay))}function on(e,t){return Gs(e.cssDisplay)&&!O(e,t)}function We(e){return ae(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function ln(e){return tr(e)||e.kind==="element"&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some(t=>Bs(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.kind!=="text"&&un(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||pn(e.lastChild))}function tr(e){return e.kind==="element"&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&e.cssDisplay!=="table-cell")}function kt(e){return hn(e)||e.prev&&Ms(e.prev)||cn(e)}function Ms(e){return hn(e)||e.kind==="element"&&e.fullName==="br"||cn(e)}function cn(e){return un(e)&&pn(e)}function un(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:e.parent.kind==="root"||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function pn(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:e.parent.kind==="root"||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function hn(e){switch(e.kind){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function bt(e){return e.lastChild?bt(e.lastChild):e}function Bs(e){return e.children?.some(t=>t.kind!=="text")}function mn(e){if(e)switch(e){case"module":case"text/javascript":case"text/babel":case"text/jsx":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(e.endsWith("json")||e.endsWith("importmap")||e==="speculationrules")return"json"}}function qs(e,t){let{name:r,attrMap:n}=e;if(r!=="script"||se(n,"src"))return;let{type:i,lang:s}=e.attrMap;return!s&&!i?"babel":_t(t,{language:s})??mn(i)}function Hs(e,t){if(!wt(e,t))return;let{attrMap:r}=e;if(se(r,"src"))return;let{type:n,lang:i}=r;return _t(t,{language:i})??mn(n)}function Fs(e,t){if(e.name==="style"){let{lang:r}=e.attrMap;return r?_t(t,{language:r}):"css"}if(e.name==="mj-style"&&t.parser==="mjml")return"css"}function rr(e,t){return qs(e,t)??Fs(e,t)??Hs(e,t)}function ze(e){return e==="block"||e==="list-item"||e.startsWith("table")}function Vs(e){return!ze(e)&&e!=="inline-block"}function Us(e){return!ze(e)&&e!=="inline-block"}function Ws(e){return!ze(e)}function zs(e){return!ze(e)}function Gs(e){return!ze(e)&&e!=="inline-block"}function Y(e){return dn(e).startsWith("pre")}function $s(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function fn(e,t){if(ce(e,t))return"block";if(e.prev?.kind==="comment"){let n=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(n)return n[1]}let r=!1;if(e.kind==="element"&&e.namespace==="svg")if($s(e,n=>n.fullName==="svg:foreignObject"))r=!0;else return e.name==="svg"?"inline-block":"block";switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:if(e.kind==="element"&&(!e.namespace||r||oe(e))&&se(Xt,e.name))return Xt[e.name]}return Zr}function dn(e){return e.kind==="element"&&(!e.namespace||oe(e))&&se(Jt,e.name)?Jt[e.name]:en}function nr(e){return T(0,T(0,e,"&apos;","'"),"&quot;",'"')}function w(e){return nr(e.value)}var js=new Set(["template","style","script"]);function Ge(e,t){return ce(e,t)&&!js.has(e.fullName)}function ce(e,t){return t.parser==="vue"&&e.kind==="element"&&e.parent.kind==="root"&&e.fullName.toLowerCase()!=="html"}function wt(e,t){return ce(e,t)&&(Ge(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function gn(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function _n(e,t){let r=e.parent;if(!ce(r,t))return!1;let n=r.fullName,i=e.fullName;return n==="script"&&i==="setup"||n==="style"&&i==="vars"}function Tt(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?L(t):L(P.dedentString(Zt(t)),k):R(S,P.split(t))}function yt(e,t){return ce(e,t)&&e.name==="script"}function Ys(e){let{valueSpan:t,value:r}=e;return t.end.offset-t.start.offset===r.length+2}function Et(e,t){if(Ys(e))return!1;let{value:r}=e;return/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(r)||t.parser==="lwc"&&r.startsWith("{")&&r.endsWith("}")}var Sn=/\{\{(.+?)\}\}/s,vn=({node:{value:e}})=>Sn.test(e);async function Cn(e,t,r){let n=w(r.node),i=[];for(let[s,a]of n.split(Sn).entries())if(s%2===0)i.push(L(a));else try{i.push(C(["{{",A([S,await E(a,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),S,"}}"]))}catch{i.push("{{",L(a),"}}")}return i}var ir=e=>(t,r,n)=>E(w(n.node),t,{parser:e},q),Ks=[{test(e){let t=e.node.fullName;return t.startsWith("(")&&t.endsWith(")")||t.startsWith("on-")},print:ir("__ng_action")},{test(e){let t=e.node.fullName;return t.startsWith("[")&&t.endsWith("]")||/^bind(?:on)?-/.test(t)||/^ng-(?:if|show|hide|class|style)$/.test(t)},print:ir("__ng_binding")},{test:e=>e.node.fullName.startsWith("*"),print:ir("__ng_directive")},{test:e=>/^i18n(?:-.+)?$/.test(e.node.fullName),print:Qs},{test:vn,print:Cn}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="angular"&&e(r),print:t}));function Qs(e,t,{node:r}){let n=w(r);return j(gt(Tt(r,n.trim())),!n.includes("@@"))}var kn=Ks;var bn=({node:e},t)=>!t.parentParser&&e.fullName==="class"&&!e.value.includes("{{"),wn=(e,t,r)=>T(0,w(r.node).trim(),/\s+/g," ");var sr=["onabort","onafterprint","onauxclick","onbeforeinput","onbeforematch","onbeforeprint","onbeforetoggle","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncommand","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpagereveal","onpageshow","onpageswap","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"];var Js=new Set(sr),Tn=({node:e},t)=>Js.has(e.fullName)&&!t.parentParser&&!e.value.includes("{{"),yn=(e,t,r)=>E(w(r.node),e,{parser:"babel",__isHtmlInlineEventHandler:!0},()=>!1);function Zs(e){let t=[];for(let r of e.split(";")){if(r=P.trim(r),!r)continue;let[n,...i]=P.split(r);t.push({name:n,value:i})}return t}var En=Zs;var xn=({node:e},t)=>e.fullName==="allow"&&!t.parentParser&&e.parent.fullName==="iframe"&&!e.value.includes("{{");function Ln(e,t,r){let{node:n}=r,i=En(w(n));return i.length===0?[""]:j(i.map(({name:s,value:a},o)=>[[s,...a].join(" "),o===i.length-1?$(";"):[";",S]]))}function An(e){return e===" "||e===` `||e==="\f"||e==="\r"||e===" "}var ea=/^[ \t\n\r\u000c]+/,ta=/^[, \t\n\r\u000c]+/,ra=/^[^ \t\n\r\u000c]+/,na=/[,]+$/,Pn=/^\d+$/,ia=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function sa(e){let t=e.length,r,n,i,s,a,o=0,l;function c(h){let f,g=h.exec(e.substring(o));if(g)return[f]=g,o+=f.length,f}let u=[];for(;;){if(c(ta),o>=t){if(u.length===0)throw new Error("Must contain one or more image candidate strings.");return u}l=o,r=c(ra),n=[],r.slice(-1)===","?(r=r.replace(na,""),_()):d()}function d(){for(c(ea),i="",s="in descriptor";;){if(a=e.charAt(o),s==="in descriptor")if(An(a))i&&(n.push(i),i="",s="after descriptor");else if(a===","){o+=1,i&&n.push(i),_();return}else if(a==="(")i+=a,s="in parens";else if(a===""){i&&n.push(i),_();return}else i+=a;else if(s==="in parens")if(a===")")i+=a,s="in descriptor";else if(a===""){n.push(i),_();return}else i+=a;else if(s==="after descriptor"&&!An(a))if(a===""){_();return}else s="in descriptor",o-=1;o+=1}}function _(){let h=!1,f,g,v,W,ie={},Q,at,Ce,Be,Ut;for(W=0;W<n.length;W++)Q=n[W],at=Q[Q.length-1],Ce=Q.substring(0,Q.length-1),Be=parseInt(Ce,10),Ut=parseFloat(Ce),Pn.test(Ce)&&at==="w"?((f||g)&&(h=!0),Be===0?h=!0:f=Be):ia.test(Ce)&&at==="x"?((f||g||v)&&(h=!0),Ut<0?h=!0:g=Ut):Pn.test(Ce)&&at==="h"?((v||g)&&(h=!0),Be===0?h=!0:v=Be):h=!0;if(!h)ie.source={value:r,startOffset:l},f&&(ie.width={value:f}),g&&(ie.density={value:g}),v&&(ie.height={value:v}),u.push(ie);else throw new Error(`Invalid srcset descriptor found in "${e}" at "${Q}".`)}}var Nn=sa;var Dn=e=>e.node.fullName==="srcset"&&(e.parent.fullName==="img"||e.parent.fullName==="source"),In={width:"w",height:"h",density:"x"},aa=Object.keys(In);function Rn(e,t,r){let n=w(r.node),i=Nn(n),s=aa.filter(h=>i.some(f=>se(f,h)));if(s.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[a]=s,o=In[a],l=i.map(h=>h.source.value),c=Math.max(...l.map(h=>h.length)),u=i.map(h=>h[a]?String(h[a].value):""),d=u.map(h=>{let f=h.indexOf(".");return f===-1?h.length:f}),_=Math.max(...d);return j(R([",",S],l.map((h,f)=>{let g=[h],v=u[f];if(v){let W=c-h.length+1,ie=_-d[f],Q=" ".repeat(W+ie);g.push($(Q," "),v+o)}return g})))}var On=({node:e},t)=>e.fullName==="style"&&!t.parentParser&&!e.value.includes("{{"),Mn=async(e,t,r)=>j(await e(w(r.node),{parser:"css",__isHTMLStyleAttribute:!0}));var oa=new WeakMap;function la(e,t){return mt(oa,e.root,r=>r.children.some(n=>yt(n,t)&&["ts","typescript"].includes(n.attrMap.lang)))}var H=la;function Bn(e,t,r){let n=w(r.node);return E(`type T<${n}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},q)}function qn(e,t,r,n){let i=w(r.node),s=H(r,n)?"babel-ts":"babel";return E(`function _(${i}) {}`,e,{parser:s,__isVueBindings:!0})}async function Hn(e,t,r,n){let i=w(r.node),{left:s,operator:a,right:o}=ca(i),l=H(r,n);return[C(await E(`function _(${s}) {}`,e,{parser:l?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await E(o,e,{parser:l?"__ts_expression":"__js_expression"})]}function ca(e){let t=/(.*?)\s+(in|of)\s+(.*)/s,r=e.match(t);if(!r)return;let n={for:r[3].trim()};if(!n.for)return;let i=/,([^,\]}]*)(?:,([^,\]}]*))?$/,s=/^\(|\)$/g,a=T(0,r[1].trim(),s,""),o=a.match(i);o?(n.alias=a.replace(i,""),n.iterator1=o[1].trim(),o[2]&&(n.iterator2=o[2].trim())):n.alias=a;let l=[n.alias,n.iterator1,n.iterator2];if(!l.some((c,u)=>!c&&(u===0||l.slice(u+1).some(Boolean))))return{left:l.filter(Boolean).join(","),operator:r[2],right:n.for}}var ua=[{test:e=>e.node.fullName==="v-for",print:Hn},{test:(e,t)=>e.node.fullName==="generic"&&yt(e.parent,t),print:Bn},{test:({node:e},t)=>gn(e)||_n(e,t),print:qn},{test(e){let t=e.node.fullName;return t.startsWith("@")||t.startsWith("v-on:")},print:pa},{test(e){let t=e.node.fullName;return t.startsWith(":")||t.startsWith(".")||t.startsWith("v-bind:")},print:ha},{test:e=>e.node.fullName.startsWith("v-"),print:Fn}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="vue"&&e(r,n),print:t}));async function pa(e,t,r,n){try{return await Fn(e,t,r,n)}catch(a){if(a.cause?.code!=="BABEL_PARSER_SYNTAX_ERROR")throw a}let i=w(r.node),s=H(r,n)?"__vue_ts_event_binding":"__vue_event_binding";return E(i,e,{parser:s},q)}function ha(e,t,r,n){let i=w(r.node),s=H(r,n)?"__vue_ts_expression":"__vue_expression";return E(i,e,{parser:s},q)}function Fn(e,t,r,n){let i=w(r.node),s=H(r,n)?"__ts_expression":"__js_expression";return E(i,e,{parser:s},q)}var Vn=ua;var ma=[{test:Dn,print:Rn},{test:On,print:Mn},{test:Tn,print:yn},{test:bn,print:wn},{test:xn,print:Ln},...Vn,...kn].map(({test:e,print:t})=>({test:e,print:da(t)}));function fa(e,t){let{node:r}=e,{value:n}=r;if(n)return Et(r,t)?[r.rawName,"=",n]:ma.find(({test:i})=>i(e,t))?.print}function da(e){return async(t,r,n,i)=>{let s=await e(t,r,n,i);if(s)return s=Gt(s,a=>typeof a=="string"?T(0,a,'"',"&quot;"):a),[n.node.rawName,'="',C(s),'"']}}var Un=fa;var F=e=>e.sourceSpan.start.offset,J=e=>e.sourceSpan.end.offset;function $e(e,t){return[e.isSelfClosing?"":ga(e,t),ue(e,t)]}function ga(e,t){return e.lastChild&&K(e.lastChild)?"":[_a(e,t),xt(e,t)]}function ue(e,t){return(e.next?V(e.next):he(e.parent))?"":[pe(e,t),M(e,t)]}function _a(e,t){return he(e)?pe(e.lastChild,t):""}function M(e,t){return K(e)?xt(e.parent,t):je(e)?Lt(e.next,t):""}function xt(e,t){if(zn(e,t))return"";switch(e.kind){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return`</${e.rawName}`}}function pe(e,t){if(zn(e,t))return"";switch(e.kind){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function zn(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(le(e)||Ct(e.parent,t))}function V(e){return e.prev&&e.prev.kind!=="docType"&&e.kind!=="angularControlFlowBlock"&&!N(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function he(e){return e.lastChild?.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!N(bt(e.lastChild))&&!Y(e)}function K(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&N(bt(e))}function je(e){return e.next&&!N(e.next)&&N(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function Sa(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return t?t[1]?t[1].split(/\s+/):!0:!1}function Ye(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function va(e,t,r){let{node:n}=e,{attrs:i=[],startTagComments:s=[]}=n;if(i.length===0&&s.length===0)return n.isSelfClosing?" ":"";let a=n.prev?.kind==="comment"&&Sa(n.prev.value),o=typeof a=="boolean"?()=>a:Array.isArray(a)?g=>a.includes(g.rawName):()=>!1,l=["attrs","startTagComments"].filter(g=>X(n[g])),c=l.flatMap(g=>e.map(({node:v})=>({loc:F(v),printed:v.kind==="attribute"&&o(v)?L(t.originalText.slice(F(v),J(v))):r()}),g));l.length>1&&c.sort((g,v)=>g.loc-v.loc);let u=n.kind==="element"&&n.fullName==="script"&&i.length===1&&i[0].fullName==="src"&&n.children.length===0&&s.length===0,d=s.some(g=>g.type==="single"),h=d||t.singleAttributePerLine&&i.length>1&&!ce(n,t)?k:S,f=[A([u?" ":d?k:S,R(h,c.map(({printed:g})=>g))])];return n.firstChild&&Ye(n.firstChild)||n.isSelfClosing&&he(n.parent)||u?f.push(n.isSelfClosing?" ":""):f.push(t.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?S:y),f}function Ca(e){return e.firstChild&&Ye(e.firstChild)?"":At(e)}function Ke(e,t,r){let{node:n}=e;return[me(n,t),va(e,t,r),n.isSelfClosing?"":Ca(n)]}function me(e,t){return e.prev&&je(e.prev)?"":[B(e,t),Lt(e,t)]}function B(e,t){return Ye(e)?At(e.parent):V(e)?pe(e.prev,t):""}var Wn="<!doctype";function Lt(e,t){switch(e.kind){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${e.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":{if(e.value==="html"){let{filepath:n}=t;if(n&&/\.html?$/.test(n))return Wn}let r=F(e);return t.originalText.slice(r,r+Wn.length)}case"angularIcuExpression":return"{";case"element":if(e.condition)return`<!--[if ${e.condition}]><!--><${e.rawName}`;default:return`<${e.rawName}`}}function At(e){switch(e.kind){case"ieConditionalComment":return"]>";case"element":if(e.condition)return"><!--<![endif]-->";default:return">"}}function ka(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&Ye(e.firstChild)&&(r-=At(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&K(e.lastChild)?n+=xt(e,t).length:he(e)&&(n-=pe(e.lastChild,t).length),t.originalText.slice(r,n)}var Pt=ka;var ba=new Set(["if","else if","for","switch","case"]);function wa(e,t){let{node:r}=e;switch(r.kind){case"element":if(O(r,t)||r.kind==="interpolation")return;if(!r.isSelfClosing&&wt(r,t)){let n=rr(r,t);return n?async(i,s)=>{let a=Pt(r,t),o=/^\s*$/.test(a),l="";return o||(l=await i(Zt(a),{parser:n,__embeddedInHtml:!0}),o=l===""),[B(r,t),C(Ke(e,t,s)),o?"":k,l,o?"":k,$e(r,t),M(r,t)]}:void 0}break;case"text":if(O(r.parent,t)){let n=rr(r.parent,t);if(n)return async i=>{let s=n==="markdown"?P.dedentString(r.value.replace(/^[^\S\n]*\n/,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(t.parser==="html"&&n==="babel"){let o="script",{attrMap:l}=r.parent;l&&(l.type==="module"||(l.type==="text/babel"||l.type==="text/jsx")&&l["data-type"]==="module")&&(o="module"),a.__babelSourceType=o}return[G,B(r,t),await i(s,a),M(r,t)]}}else if(r.parent.kind==="interpolation")return async n=>{let i={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return t.parser==="angular"?i.parser="__ng_interpolation":t.parser==="vue"?i.parser=H(e,t)?"__vue_ts_expression":"__vue_expression":i.parser="__js_expression",[A([S,await n(r.value,i)]),r.parent.next&&V(r.parent.next)?" ":S]};break;case"attribute":return Un(e,t);case"angularControlFlowBlockParameters":return ba.has(e.parent.name)?$r:void 0;case"angularLetDeclarationInitializer":return n=>E(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var Gn=wa;var Qe=null;function Xe(e){if(Qe!==null&&typeof Qe.property){let t=Qe;return Qe=Xe.prototype=null,t}return Qe=Xe.prototype=e??Object.create(null),new Xe}var Ta=10;for(let e=0;e<=Ta;e++)Xe();function ar(e){return Xe(e)}function ya(e,t="type"){ar(e);function r(n){let i=n[t],s=e[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var $n=ya;var Je=[["children"]],jn={root:Je[0],element:["attrs","startTagComments","children"],ieConditionalComment:Je[0],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:Je[0],text:Je[0],docType:[],comment:[],attribute:[],startTagComment:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:Je[0],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]};var Ea=$n(jn,"kind"),Yn=Ea;var xa=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),La=new Set(["if","else if","for","switch","case"]);function or(e,t,r){if(e.kind==="text"||e.kind==="comment")return null;if(e.kind==="yaml"&&delete t.value,e.kind==="attribute"){let{fullName:n,value:i}=e;n==="style"||n==="class"||n==="srcset"&&(r.fullName==="img"||r.fullName==="source")||n==="allow"&&r.fullName==="iframe"||n.startsWith("on")||n.startsWith("@")||n.startsWith(":")||n.startsWith(".")||n.startsWith("#")||n.startsWith("v-")||n==="vars"&&r.fullName==="style"||(n==="setup"||n==="generic")&&r.fullName==="script"||n==="slot-scope"||n.startsWith("(")||n.startsWith("[")||n.startsWith("*")||n.startsWith("bind")||n.startsWith("i18n")||n.startsWith("on-")||n.startsWith("ng-")||i?.includes("{{")?delete t.value:i&&(t.value=T(0,i,/'|&quot;|&apos;/g,'"'))}if(e.kind==="docType"&&(t.value=T(0,e.value.toLowerCase(),/\s+/g," ")),e.kind==="angularControlFlowBlock"&&e.parameters?.children)for(let n of t.parameters.children)La.has(e.name)?delete n.expression:n.expression=n.expression.trim();e.kind==="angularIcuExpression"&&(t.switchValue=e.switchValue.trim()),e.kind==="angularLetDeclarationInitializer"&&delete t.value,e.kind==="element"&&e.isVoid&&!e.isSelfClosing&&(t.isSelfClosing=!0)}or.ignoredProperties=xa;var Kn="format";var Qn=/^\s*<!--\s*@(?:noformat|noprettier)\s*-->/,Xn=/^\s*<!--\s*@(?:format|prettier)\s*-->/;var Jn=e=>Xn.test(e),Zn=e=>Qn.test(e),ei=e=>`<!-- @${Kn} --> ${e}`;var ti=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function ri(e){let t=J(e);return e.kind==="element"&&!e.endSourceSpan&&X(e.children)?Math.max(t,ri(I(0,e.children,-1))):t}function Ze(e,t,r){let n=e.node;if(le(n)){let i=ri(n);return[B(n,t),L(P.trimEnd(t.originalText.slice(F(n)+(n.prev&&je(n.prev)?Lt(n).length:0),i-(n.next&&V(n.next)?pe(n,t).length:0)))),M(n,t)]}return r()}function Nt(e,t){return N(e)&&N(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?kt(t)?k:S:"":kt(t)?k:y:je(e)&&(le(t)||t.firstChild||t.isSelfClosing||t.kind==="element"&&t.attrs.length>0)||e.kind==="element"&&e.isSelfClosing&&V(t)?"":t.kind==="comment"&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces?y:!t.isLeadingSpaceSensitive||kt(t)||V(t)&&e.lastChild&&K(e.lastChild)&&e.lastChild.lastChild&&K(e.lastChild.lastChild)?k:t.hasLeadingSpaces?S:y}function Ae(e,t,r){let{node:n}=e;if(tr(n))return[G,...e.map(()=>{let s=e.node,a=s.prev?Nt(s.prev,s):"";return[a?[a,We(s.prev)?k:""]:"",Ze(e,t,r)]},"children")];let i=n.children.map(()=>Symbol(""));return e.map(({node:s,index:a})=>{if(N(s)){if(s.prev&&N(s.prev)){let h=Nt(s.prev,s);if(h)return We(s.prev)?[k,k,Ze(e,t,r)]:[h,Ze(e,t,r)]}return Ze(e,t,r)}let o=[],l=[],c=[],u=[],d=s.prev?Nt(s.prev,s):"",_=s.next?Nt(s,s.next):"";return d&&(We(s.prev)?o.push(k,k):d===k?o.push(k):N(s.prev)?l.push(d):l.push($("",y,{groupId:i[a-1]}))),_&&(We(s)?N(s.next)&&u.push(k,k):_===k?N(s.next)&&u.push(k):c.push(_)),[...o,C([...l,C([Ze(e,t,r),...c],{id:i[a]})]),...u]},"children")}var Aa=new Set(["content"]);function ni(e,t,r){let{node:n}=e,i=[];if(Ia(e)&&i.push("} "),i.push("@",n.name),Na(n))return i.push(";"),i;if(n.parameters&&i.push(Aa.has(n.name)?"":" ","(",C(r("parameters")),")"),!Da(n)){i.push(" {");let s=ii(n);n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,i.push(A([k,Ae(e,t,r)])),s&&i.push(k,"}")):s&&i.push("}")}return C(i,{shouldBreak:!0})}function ii(e){return!(e.next?.kind==="angularControlFlowBlock"&&ti.get(e.name)?.has(e.next.name))}var Pa=e=>e?.kind==="angularControlFlowBlock"&&(e.name==="case"||e.name==="default"),Na=e=>e?.kind==="angularControlFlowBlock"&&e.name==="default never";function Da(e){return Pa(e)&&e.endSourceSpan&&e.endSourceSpan.start.offset===e.endSourceSpan.end.offset}function Ia(e){let{previous:t}=e;return t?.kind==="angularControlFlowBlock"&&!le(t)&&!ii(t)}function si(e,t,r){return[A([y,R([";",S],e.map(r,"children"))]),y]}function ai(e,t,r){let{node:n}=e;return[me(n,t),C([n.switchValue.trim(),", ",n.type,n.cases.length>0?[",",A([S,R(S,e.map(r,"cases"))])]:"",y]),ue(n,t)]}function oi(e,t,r){let{node:n}=e;return[n.value," {",C([A([y,e.map(({node:i,isLast:s})=>{let a=[r()];return i.kind==="text"&&(i.hasLeadingSpaces&&a.unshift(S),i.hasTrailingSpaces&&!s&&a.push(S)),a},"expression")]),y]),"}"]}function li(e,t,r){let{node:n}=e;if(Ct(n,t))return[B(n,t),C(Ke(e,t,r)),L(Pt(n,t)),...$e(n,t),M(n,t)];let i=n.children.length===1&&(n.firstChild.kind==="interpolation"||n.firstChild.kind==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id"),a=u=>C([C(Ke(e,t,r),{id:s}),u,$e(n,t)]);if(n.children.length===0)return a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?S:"");let o=u=>i?Fr(u,{groupId:s}):(O(n,t)||Ge(n,t))&&n.parent.kind==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?u:A(u),l=()=>i?$(y,"",{groupId:s}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?S:n.firstChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?Hr(y):y,c=()=>(n.next?V(n.next):he(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":Y(n)&&K(n.lastChild)?"":i?$(y,"",{groupId:s}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?S:(n.lastChild.kind==="comment"||n.lastChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`).test(n.lastChild.value)?"":y;return a([ln(n)?G:"",o([l(),Ae(e,t,r)]),c()])}function ci(e){let{node:{value:t,type:r}}=e;return r==="single"?`//${t.trimEnd()}`:["/*",L(t),"*/"]}var lr=(function(e){return e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA",e})({});function Z(e,t=!0){if(e[0]!=":")return[null,e];let r=e.indexOf(":",1);if(r===-1){if(t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,r),e.slice(r+1)]}function cr(e){return Z(e)[1]==="ng-container"}function ur(e){return Z(e)[1]==="ng-content"}function Pe(e){return e===null?null:Z(e)[0]}function fe(e,t){return e?`:${e}:${t}`:t}var et;var Ra="math";var pr=()=>Object.create(null);function Oa(){return et||(et=pr(),ee(1,void 0,[["iframe",["srcdoc"]],["*",["innerHTML","outerHTML"]]]),ee(2,void 0,[["*",["style"]]]),ee(4,void 0,[["*",["formAction"]],["area",["href"]],["a",["href","xlink:href"]],["form",["action"]],["img",["src"]],["video",["src"]]]),ee(4,Ra,[["*",["href","xlink:href"]]]),ee(5,void 0,[["base",["href"]],["embed",["src"]],["frame",["src"]],["iframe",["src"]],["link",["href"]],["object",["codebase","data"]]]),ee(4,"svg",[["a",["href","xlink:href"]]]),ee(6,"svg",[["animate",["attributeName","values","to","from"]],["set",["to","attributeName"]],["animateMotion",["attributeName"]],["animateTransform",["attributeName"]]]),ee(6,void 0,[["unknown",["attributeName","values","to","from","sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority","credentialless"]],["iframe",["sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority","credentialless"]]]),et)}function ee(e,t,r){let n=t??"";for(let[s,a]of r){let o=s.toLowerCase();for(let l of a){var i;let c=l.toLowerCase(),u=(i=et)[c]??(i[c]=pr()),d=u[n]??(u[n]=pr());d[o]=e}}}function ui(e,t,r){let n=Oa()[t.toLowerCase()];if(!n)return 0;let i=e.toLowerCase(),s;if(r){let a=n[r];a&&(s=a[i]??a["*"])}if(s===void 0){let a=n[""];a&&(s=a[i]??a["*"])}return s??0}var hr={name:"custom-elements"},mr={name:"no-errors-schema"};var Ma=/-+([a-z0-9])/g;function pi(e){return e.replace(Ma,(...t)=>t[1].toUpperCase())}var hi=class{};var Ba="boolean",qa="number",Ha="string",Fa="object";function Dt(e){let[t,r]=Z(e.toLowerCase(),!1);return t==="svg"||t==="math"?`:${t}:${r}`:r}var Va=["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","geolocation^[HTMLElement]|accuracymode,!autolocate,*location,*promptaction,*promptdismiss,*validationstatuschange,!watch","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,!credentialless,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","selectedcontent^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","search^[HTMLELement]|","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":s