@storybook/components 6.5.9-alpha.1 → 6.5.9-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Color-d3116a31.js → Color-a62ba7e9.js} +3 -1
- package/dist/cjs/{OverlayScrollbars-b655a091.js → OverlayScrollbars-c574dc71.js} +3 -1
- package/dist/cjs/{WithTooltip-aa7ec521.js → WithTooltip-f49e8812.js} +6 -2
- package/dist/cjs/{formatter-42139f42.js → formatter-e9350ac6.js} +2 -2
- package/dist/cjs/{index-82acc4b4.js → index-967d55af.js} +9 -22
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/{syntaxhighlighter-3f6db113.js → syntaxhighlighter-9522fde9.js} +6 -2
- package/dist/esm/{Color-e9687cd5.js → Color-3c22bb81.js} +2 -1
- package/dist/esm/{OverlayScrollbars-d54f9566.js → OverlayScrollbars-26c4a78d.js} +2 -1
- package/dist/esm/{WithTooltip-5d9955be.js → WithTooltip-508b8277.js} +3 -2
- package/dist/esm/{formatter-c2d2643c.js → formatter-9dc562d4.js} +2 -2
- package/dist/esm/{index-f6d446d8.js → index-b45716e8.js} +9 -22
- package/dist/esm/index.js +2 -1
- package/dist/esm/{syntaxhighlighter-75381027.js → syntaxhighlighter-82dea71a.js} +3 -2
- package/dist/modern/{Color-31c3091f.js → Color-f9ce6f57.js} +2 -1
- package/dist/modern/{OverlayScrollbars-0d0d9ac6.js → OverlayScrollbars-119b80c2.js} +2 -1
- package/dist/modern/{WithTooltip-c478b6c7.js → WithTooltip-040f3a83.js} +3 -2
- package/dist/modern/{formatter-781ca345.js → formatter-12a1a8d1.js} +2 -2
- package/dist/modern/{index-4e034b71.js → index-9ef3b84b.js} +9 -22
- package/dist/modern/index.js +2 -1
- package/dist/modern/{syntaxhighlighter-848db87b.js → syntaxhighlighter-5c1fdb3d.js} +3 -2
- package/package.json +5 -5
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-967d55af.js');
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
|
|
7
7
|
var theming = require('@storybook/theming');
|
|
8
8
|
|
|
9
|
+
require('memoizerific');
|
|
10
|
+
|
|
9
11
|
require('@storybook/csf');
|
|
10
12
|
|
|
11
13
|
require('qs');
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-967d55af.js');
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
|
|
7
7
|
require('@storybook/theming');
|
|
8
8
|
|
|
9
|
+
require('memoizerific');
|
|
10
|
+
|
|
9
11
|
require('@storybook/csf');
|
|
10
12
|
|
|
11
13
|
require('qs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-967d55af.js');
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
|
|
@@ -8,6 +8,8 @@ var theming = require('@storybook/theming');
|
|
|
8
8
|
|
|
9
9
|
var reactDom = require('react-dom');
|
|
10
10
|
|
|
11
|
+
var memoize = require('memoizerific');
|
|
12
|
+
|
|
11
13
|
require('@storybook/csf');
|
|
12
14
|
|
|
13
15
|
require('qs');
|
|
@@ -46,6 +48,8 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
46
48
|
|
|
47
49
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
48
50
|
|
|
51
|
+
var memoize__default = /*#__PURE__*/_interopDefaultLegacy(memoize);
|
|
52
|
+
|
|
49
53
|
function getNodeName(element) {
|
|
50
54
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
51
55
|
}
|
|
@@ -2923,7 +2927,7 @@ TooltipTrigger.defaultProps = {
|
|
|
2923
2927
|
modifiers: []
|
|
2924
2928
|
};
|
|
2925
2929
|
var TooltipTrigger$1 = TooltipTrigger;
|
|
2926
|
-
const match =
|
|
2930
|
+
const match = memoize__default["default"](1000)((requests, actual, value, fallback = 0) => actual.split('-')[0] === requests ? value : fallback);
|
|
2927
2931
|
const ArrowSpacing = 8;
|
|
2928
2932
|
const Arrow = theming.styled.div({
|
|
2929
2933
|
position: 'absolute',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';require("core-js/modules/es.typed-array.set.js");var index=require('./index-
|
|
1
|
+
'use strict';require("core-js/modules/es.typed-array.set.js");var memoize=require('memoizerific');var index=require('./index-967d55af.js');require('react');require('@storybook/theming');require('@storybook/csf');require('qs');require('@storybook/client-logger');function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e};}var memoize__default=/*#__PURE__*/_interopDefaultLegacy(memoize);var parserHtml={exports:{}};(function(module,exports){!function(e,t){module.exports=t();}(index.commonjsGlobal,function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof index.commonjsGlobal?index.commonjsGlobal:"undefined"!=typeof self?self:{};function t(e){var t={exports:{}};return e(t,t.exports),t.exports;}var r=t(function(e,t){function r(e){return t.$0<=e&&e<=t.$9;}/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright Google Inc. All Rights Reserved.
|
|
4
4
|
*
|
|
@@ -125,4 +125,4 @@
|
|
|
125
125
|
*
|
|
126
126
|
* Use of this source code is governed by an MIT-style license that can be
|
|
127
127
|
* found in the LICENSE file at https://angular.io/license
|
|
128
|
-
*/class n{constructor(e,t,n,r){this.file=e,this.offset=t,this.line=n,this.col=r;}toString(){return null!=this.offset?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url;}moveBy(e){const t=this.file.content,r=t.length;let o=this.offset,i=this.line,u=this.col;for(;o>0&&e<0;){o--,e++;if(t.charCodeAt(o)==MO.$LF){i--;const e=t.substr(0,o-1).lastIndexOf(String.fromCharCode(MO.$LF));u=e>0?o-e:o;}else u--;}for(;o<r&&e>0;){const n=t.charCodeAt(o);o++,e--,n==MO.$LF?(i++,u=0):u++;}return new n(this.file,o,i,u);}getContext(e,t){const n=this.file.content;let r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);let o=r,i=0,u=0;for(;i<e&&r>0&&(r--,i++,"\n"!=n[r]||++u!=t););for(i=0,u=0;i<e&&o<n.length-1&&(o++,i++,"\n"!=n[o]||++u!=t););return{before:n.substring(r,this.offset),after:n.substring(this.offset,o+1)};}return null;}}t.ParseLocation=n;class r{constructor(e,t){this.content=e,this.url=t;}}t.ParseSourceFile=r;class o{constructor(e,t,n=null){this.start=e,this.end=t,this.details=n;}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset);}}var i;t.ParseSourceSpan=o,t.EMPTY_PARSE_LOCATION=new n(new r("",""),0,0,0),t.EMPTY_SOURCE_SPAN=new o(t.EMPTY_PARSE_LOCATION,t.EMPTY_PARSE_LOCATION),function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR";}(i=t.ParseErrorLevel||(t.ParseErrorLevel={}));t.ParseError=class{constructor(e,t,n=i.ERROR){this.span=e,this.msg=t,this.level=n;}contextualMessage(){const e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(i[this.level]," ->]").concat(e.after,'")'):this.msg;}toString(){const e=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(e);}},t.typeSourceSpan=function(e,t){const i=DI.identifierModuleUrl(t),u=null!=i?"in ".concat(e," ").concat(DI.identifierName(t)," in ").concat(i):"in ".concat(e," ").concat(DI.identifierName(t)),s=new r("",u);return new o(new n(s,-1,-1,-1),new n(s,-1,-1,-1));},t.r3JitTypeSourceSpan=function(e,t,i){const u="in ".concat(e," ").concat(t," in ").concat(i),s=new r("",u);return new o(new n(s,-1,-1,-1),new n(s,-1,-1,-1));};});const{ParseSourceSpan:bI}=EI,{htmlTrim:CI,getLeadingAndTrailingHtmlWhitespace:vI,hasHtmlWhitespace:AI,canHaveInterpolation:FI,getNodeCssStyleDisplay:xI,isDanglingSpaceSensitiveNode:SI,isIndentationSensitiveNode:wI,isLeadingSpaceSensitiveNode:TI,isTrailingSpaceSensitiveNode:BI,isWhitespaceSensitiveNode:kI}=_O,NI=[function(e){return e.map(e=>{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){const[t,...n]=e.children;return e.clone({children:1===t.value.length?n:[t.clone({value:t.value.slice(1)}),...n]});}return e;});},function(e){const t=e=>"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;return e.map(e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r<e.children.length;r++){const o=e.children[r];if(!n[r+1])if(n[r]){const e=o.prev,n=o.firstChild,r=new bI(e.sourceSpan.start,n.sourceSpan.end),i=new bI(r.start,o.sourceSpan.end);t.push(o.clone({condition:e.condition,sourceSpan:i,startSourceSpan:r,children:o.children.slice(1)}));}else t.push(o);}return e.clone({children:t});}}return e;});},function(e){return function(e,t,n){return e.map(e=>{if(e.children){const r=e.children.map(t);if(r.some(Boolean)){const t=[];for(let o=0;o<e.children.length;o++){const i=e.children[o];if("text"!==i.type&&!r[o]){t.push(i);continue;}const u="text"===i.type?i:i.clone({type:"text",value:n(i)});if(0===t.length||"text"!==ke(t).type){t.push(u);continue;}const s=t.pop();t.push(s.clone({value:s.value+u.value,sourceSpan:new bI(s.sourceSpan.start,u.sourceSpan.end)}));}return e.clone({children:t});}}return e;});}(e,e=>"cdata"===e.type,e=>"<![CDATA[".concat(e.value,"]]>"));},function(e,t){if("html"===t.parser)return e;const n=/{{([\S\s]+?)}}/g;return e.map(e=>{if(!FI(e))return e;const t=[];for(const r of e.children){if("text"!==r.type){t.push(r);continue;}let e=r.sourceSpan.start,o=null;const i=r.value.split(n);for(let n=0;n<i.length;n++,e=o){const r=i[n];n%2!=0?(o=e.moveBy(r.length+4),t.push({type:"interpolation",sourceSpan:new bI(e,o),children:0===r.length?[]:[{type:"text",value:r,sourceSpan:new bI(e.moveBy(2),o.moveBy(-2))}]})):(o=e.moveBy(r.length),r.length>0&&t.push({type:"text",value:r,sourceSpan:new bI(e,o)}));}}return e.clone({children:t});});},function(e){const t="whitespace";return e.map(e=>{if(!e.children)return e;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===CI(e.children[0].value).length)return e.clone({children:[],hasDanglingSpaces:e.children.length>0});const n=kI(e),r=wI(e);return e.clone({isWhitespaceSensitive:n,isIndentationSensitive:r,children:e.children.reduce((e,r)=>{if("text"!==r.type||n)return[...e,r];const o=[],{leadingWhitespace:i,text:u,trailingWhitespace:s}=vI(r.value);return i&&o.push({type:t}),u&&o.push({type:"text",value:u,sourceSpan:new bI(r.sourceSpan.start.moveBy(i.length),r.sourceSpan.end.moveBy(-s.length))}),s&&o.push({type:t}),[...e,...o];},[]).reduce((e,n,r,o)=>{if(n.type===t)return e;const i=0!==r&&o[r-1].type===t,u=r!==o.length-1&&o[r+1].type===t;return[...e,Object.assign({},n,{hasLeadingSpaces:i,hasTrailingSpaces:u})];},[])});});},function(e,t){return e.map(e=>Object.assign(e,{cssDisplay:xI(e,t)}));},function(e){return e.map(e=>Object.assign(e,{isSelfClosing:!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)}));},function(e,t){return e.map(e=>"element"!==e.type?e:Object.assign(e,{hasHtmComponentClosingTag:e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset))}));},function(e,t){return e.map(e=>e.children?0===e.children.length?e.clone({isDanglingSpaceSensitive:SI(e)}):e.clone({children:e.children.map(e=>Object.assign({},e,{isLeadingSpaceSensitive:TI(e,t),isTrailingSpaceSensitive:BI(e,t)})).map((e,t,n)=>Object.assign({},e,{isLeadingSpaceSensitive:(0===t||n[t-1].isTrailingSpaceSensitive)&&e.isLeadingSpaceSensitive,isTrailingSpaceSensitive:(t===n.length-1||n[t+1].isLeadingSpaceSensitive)&&e.isTrailingSpaceSensitive}))}):e);},function(e){const t=e=>"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!AI(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type;return e.map(e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r<e.children.length;r++){const o=e.children[r];if(n[r]){const n=t.pop(),i=e.children[++r],{isTrailingSpaceSensitive:u,hasTrailingSpaces:s}=i;t.push(n.clone({value:n.value+"<".concat(o.rawName,">")+o.firstChild.value+"</".concat(o.rawName,">")+i.value,sourceSpan:new bI(n.sourceSpan.start,i.sourceSpan.end),isTrailingSpaceSensitive:u,hasTrailingSpaces:s}));}else t.push(o);}return e.clone({children:t});}}return e;});}];var PI=function(e,t){for(const n of NI)e=n(e,t);return e;};var OI={hasPragma:function(e){return /^\s*<!--\s*@(format|prettier)\s*-->/.test(e);},insertPragma:function(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"");}};var II={locStart:function(e){return e.sourceSpan.start.offset;},locEnd:function(e){return e.sourceSpan.end.offset;}};const{builders:{group:jI}}=Rn;var LI={isVueEventBindingExpression:function(e){const t=e.trim();return /^([\w$]+|\([^)]*?\))\s*=>|^function\s*\(/.test(t)||/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/.test(t);},printVueFor:function(e,t){const{left:n,operator:r,right:o}=function(e){const t=/([^]*?)\s+(in|of)\s+([^]*)/,n=/,([^,\]}]*)(?:,([^,\]}]*))?$/,r=/^\(|\)$/g,o=e.match(t);if(!o)return;const i={};i.for=o[3].trim();const u=o[1].trim().replace(r,""),s=u.match(n);s?(i.alias=u.replace(n,""),i.iterator1=s[1].trim(),s[2]&&(i.iterator2=s[2].trim())):i.alias=u;return{left:"".concat([i.alias,i.iterator1,i.iterator2].filter(Boolean).join(",")),operator:o[2],right:i.for};}(e);return[jI(t("function _(".concat(n,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",r," ",t(o,{parser:"__js_expression"},{stripTrailingHardline:!0})];},printVueBindings:function(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueBindings:!0});}},_I=i(function(e){!function(t,n){e.exports?e.exports=n():t.parseSrcset=n();}(r,function(){return function(e,t){var n=t&&t.logger||console;function r(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e;}function o(t){var n,r=t.exec(e.substring(y));if(r)return n=r[0],y+=n.length,n;}for(var i,u,s,a,c,l=e.length,p=/^[ \t\n\r\u000c]+/,f=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,h=/[,]+$/,m=/^\d+$/,g=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,y=0,D=[];;){if(o(f),y>=l)return D;i=o(d),u=[],","===i.slice(-1)?(i=i.replace(h,""),b()):E();}function E(){for(o(p),s="",a="in descriptor";;){if(c=e.charAt(y),"in descriptor"===a){if(r(c))s&&(u.push(s),s="",a="after descriptor");else{if(","===c)return y+=1,s&&u.push(s),void b();if("("===c)s+=c,a="in parens";else{if(""===c)return s&&u.push(s),void b();s+=c;}}}else if("in parens"===a){if(")"===c)s+=c,a="in descriptor";else{if(""===c)return u.push(s),void b();s+=c;}}else if("after descriptor"===a)if(r(c));else{if(""===c)return void b();a="in descriptor",y-=1;}y+=1;}}function b(){var t,r,o,s,a,c,l,p,f,d=!1,h={};for(s=0;s<u.length;s++)c=(a=u[s])[a.length-1],l=a.substring(0,a.length-1),p=parseInt(l,10),f=parseFloat(l),m.test(l)&&"w"===c?((t||r)&&(d=!0),0===p?d=!0:t=p):g.test(l)&&"x"===c?((t||r||o)&&(d=!0),f<0?d=!0:r=f):m.test(l)&&"h"===c?((o||r)&&(d=!0),0===p?d=!0:o=p):d=!0;d?n&&n.error&&n.error("Invalid srcset descriptor found in '"+e+"' at '"+a+"'."):(h.url=i,t&&(h.w=t),r&&(h.d=r),o&&(h.h=o),D.push(h));}};});});const{builders:{group:MI,ifBreak:RI,indent:VI,join:$I,line:qI,softline:WI}}=Rn;const UI=["__","--","_","-"];function zI(e){const t=e.search(/[^_-]/);if(-1!==t)for(const n of UI){const r=e.indexOf(n,t);if(-1!==r)return e.slice(0,r);}return e;}var HI={printImgSrcset:function(e){const t=_I(e,{logger:{error(e){throw new Error(e);}}}),n=t.some(({w:e})=>e),r=t.some(({h:e})=>e);if(n+r+t.some(({d:e})=>e)>1)throw new Error("Mixed descriptor in srcset is not supported");const o=n?"w":r?"h":"d",i=n?"w":r?"h":"x",u=e=>Math.max(...e),s=t.map(e=>e.url),a=u(s.map(e=>e.length)),c=t.map(e=>e[o]).map(e=>e?e.toString():""),l=c.map(e=>{const t=e.indexOf(".");return-1===t?e.length:t;}),p=u(l);return $I([",",qI],s.map((e,t)=>{const n=[e],r=c[t];if(r){const o=a-e.length+1,u=p-l[t],s=" ".repeat(o+u);n.push(RI(s," "),r+i);}return n;}));},printClassNames:function(e){const t=e.trim().split(/\s+/),n=[];let r;for(let e=0;e<t.length;e++){const o=zI(t[e]);o!==r&&o!==t[e-1]&&n.push([]),ke(n).push(t[e]),r=o;}return[VI([WI,$I(qI,n.map(e=>MI($I(qI,e))))]),WI];}};const{builders:{breakParent:GI,dedentToRoot:JI,fill:XI,group:YI,hardline:KI,ifBreak:QI,indentIfBreak:ZI,indent:ej,join:tj,line:nj,literalline:rj,softline:oj},utils:{mapDoc:ij,cleanDoc:uj,getDocParts:sj,isConcat:aj}}=Rn,{replaceEndOfLineWith:cj,isNonEmptyArray:lj}=rn,{htmlTrimPreserveIndentation:pj,splitByHtmlWhitespace:fj,countChars:dj,countParents:hj,dedentString:mj,forceBreakChildren:gj,forceBreakContent:yj,forceNextEmptyLine:Dj,getLastDescendant:Ej,getPrettierIgnoreAttributeCommentData:bj,hasPrettierIgnore:Cj,inferScriptParser:vj,isVueCustomBlock:Aj,isVueNonHtmlBlock:Fj,isVueSlotAttribute:xj,isVueSfcBindingsAttribute:Sj,isScriptLikeTag:wj,isTextLikeNode:Tj,preferHardlineAsLeadingSpaces:Bj,shouldNotPrintClosingTag:kj,shouldPreserveContent:Nj,unescapeQuoteEntities:Pj,isPreLikeNode:Oj}=_O,{insertPragma:Ij}=OI,{locStart:jj,locEnd:Lj}=II,{printVueFor:_j,printVueBindings:Mj,isVueEventBindingExpression:Rj}=LI,{printImgSrcset:Vj,printClassNames:$j}=HI;function qj(e,t,n){const r=e.getValue();if(gj(r))return[GI,...e.map(e=>{const t=e.getValue(),n=t.prev?u(t.prev,t):"";return[n?[n,Dj(t.prev)?KI:""]:"",i(e)];},"children")];const o=r.children.map(()=>Symbol(""));return e.map((e,t)=>{const n=e.getValue();if(Tj(n)){if(n.prev&&Tj(n.prev)){const t=u(n.prev,n);if(t)return Dj(n.prev)?[KI,KI,i(e)]:[t,i(e)];}return i(e);}const r=[],s=[],a=[],c=[],l=n.prev?u(n.prev,n):"",p=n.next?u(n,n.next):"";return l&&(Dj(n.prev)?r.push(KI,KI):l===KI?r.push(KI):Tj(n.prev)?s.push(l):s.push(QI("",oj,{groupId:o[t-1]}))),p&&(Dj(n)?Tj(n.next)&&c.push(KI,KI):p===KI?Tj(n.next)&&c.push(KI):a.push(p)),[...r,YI([...s,YI([i(e),...a],{id:o[t]})]),...c];},"children");function i(e){const r=e.getValue();return Cj(r)?[nL(r,t),...cj(t.originalText.slice(jj(r)+(r.prev&&Kj(r.prev)?iL(r).length:0),Lj(r)-(r.next&&Zj(r.next)?aL(r,t).length:0)),rj),oL(r,t)]:n();}function u(e,t){return Tj(e)&&Tj(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?Bj(t)?KI:nj:"":Bj(t)?KI:oj:Kj(e)&&(Cj(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&t.attrs.length>0)||"element"===e.type&&e.isSelfClosing&&Zj(t)?"":!t.isLeadingSpaceSensitive||Bj(t)||Zj(t)&&e.lastChild&&tL(e.lastChild)&&e.lastChild.lastChild&&tL(e.lastChild.lastChild)?KI:t.hasLeadingSpaces?nj:oj;}}function Wj(e,t){let n=e.startSourceSpan.end.offset;e.firstChild&&Qj(e.firstChild)&&(n-=uL(e).length);let r=e.endSourceSpan.start.offset;return e.lastChild&&tL(e.lastChild)?r+=sL(e,t).length:eL(e)&&(r-=aL(e.lastChild,t).length),t.originalText.slice(n,r);}function Uj(e,t,n){const r=e.getValue();if(!lj(r.attrs))return r.isSelfClosing?" ":"";const o=r.prev&&"comment"===r.prev.type&&bj(r.prev.value),i="boolean"==typeof o?()=>o:Array.isArray(o)?e=>o.includes(e.rawName):()=>!1,u=e.map(e=>{const r=e.getValue();return i(r)?cj(t.originalText.slice(jj(r),Lj(r)),rj):n();},"attrs"),s="element"===r.type&&"script"===r.fullName&&1===r.attrs.length&&"src"===r.attrs[0].fullName&&0===r.children.length,a=[ej([s?" ":nj,tj(nj,u)])];return r.firstChild&&Qj(r.firstChild)||r.isSelfClosing&&eL(r.parent)||s?a.push(r.isSelfClosing?" ":""):a.push(r.isSelfClosing?nj:oj),a;}function zj(e,t,n){const r=e.getValue();return[Hj(r,t),Uj(e,t,n),r.isSelfClosing?"":Gj(r)];}function Hj(e,t){return e.prev&&Kj(e.prev)?"":[nL(e,t),iL(e)];}function Gj(e){return e.firstChild&&Qj(e.firstChild)?"":uL(e);}function Jj(e,t){return[e.isSelfClosing?"":Xj(e,t),Yj(e,t)];}function Xj(e,t){return e.lastChild&&tL(e.lastChild)?"":[rL(e,t),sL(e,t)];}function Yj(e,t){return(e.next?Zj(e.next):eL(e.parent))?"":[aL(e,t),oL(e,t)];}function Kj(e){return e.next&&!Tj(e.next)&&Tj(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces;}function Qj(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces;}function Zj(e){return e.prev&&"docType"!==e.prev.type&&!Tj(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces;}function eL(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!Tj(Ej(e.lastChild))&&!Oj(e);}function tL(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&Tj(Ej(e));}function nL(e,t){return Qj(e)?uL(e.parent):Zj(e)?aL(e.prev,t):"";}function rL(e,t){return eL(e)?aL(e.lastChild,t):"";}function oL(e,t){return tL(e)?sL(e.parent,t):Kj(e)?iL(e.next):"";}function iL(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return"\x3c!--[if ".concat(e.condition);case"ieConditionalEndComment":return"\x3c!--<!";case"interpolation":return"{{";case"docType":return"<!DOCTYPE";case"element":if(e.condition)return"\x3c!--[if ".concat(e.condition,"]>\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName);}}function uL(e){switch(Il(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--<![endif]--\x3e";default:return">";}}function sL(e,t){if(Il(!e.isSelfClosing),kj(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return"</".concat(e.rawName);}}function aL(e,t){if(kj(e,t))return"";switch(e.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]--\x3e";case"ieConditionalStartComment":return"]>\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">";}}function cL(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?cj(t,rj):cj(mj(pj(t)),KI):sj(tj(nj,fj(t)));}var lL={preprocess:PI,print:function(e,t,n){const r=e.getValue();switch(r.type){case"front-matter":return cj(r.raw,rj);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(r),[YI(qj(e,t,n)),KI];case"element":case"ieConditionalComment":{if(Nj(r,t))return[nL(r,t),YI(zj(e,t,n)),...cj(Wj(r,t),rj),...Jj(r,t),oL(r,t)];const i=1===r.children.length&&"interpolation"===r.firstChild.type&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,u=Symbol("element-attr-group-id");return[YI([YI(zj(e,t,n),{id:u}),0===r.children.length?r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?nj:"":[yj(r)?GI:"",(o=[i?QI(oj,"",{groupId:u}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?nj:"text"===r.firstChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive?JI(oj):oj,qj(e,t,n)],i?ZI(o,{groupId:u}):!wj(r)&&!Aj(r,t)||"root"!==r.parent.type||"vue"!==t.parser||t.vueIndentScriptAndStyle?ej(o):o),(r.next?Zj(r.next):eL(r.parent))?r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?" ":"":i?QI(oj,"",{groupId:u}):r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?nj:("comment"===r.lastChild.type||"text"===r.lastChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive)&&new RegExp("\\n[\\t ]{".concat(t.tabWidth*hj(e,e=>e.parent&&"root"!==e.parent.type),"}$")).test(r.lastChild.value)?"":oj]]),Jj(r,t)];}case"ieConditionalStartComment":case"ieConditionalEndComment":return[Hj(r),Yj(r)];case"interpolation":return[Hj(r,t),...e.map(n,"children"),Yj(r,t)];case"text":{if("interpolation"===r.parent.type){const e=/\n[^\S\n]*?$/,t=e.test(r.value),n=t?r.value.replace(e,""):r.value;return[...cj(n,rj),t?KI:""];}const e=uj([nL(r,t),...cL(r),oL(r,t)]);return aj(e)||"fill"===e.type?XI(sj(e)):e;}case"docType":return[YI([Hj(r,t)," ",r.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),Yj(r,t)];case"comment":return[nL(r,t),...cj(t.originalText.slice(jj(r),Lj(r)),rj),oL(r,t)];case"attribute":{if(null===r.value)return r.rawName;const e=Pj(r.value),t=dj(e,"'")<dj(e,'"')?"'":'"';return[r.rawName,"=",t,...cj('"'===t?e.replace(/"/g,"""):e.replace(/'/g,"'"),rj),t];}default:throw new Error("Unexpected node type ".concat(r.type));}var o;},insertPragma:Ij,massageAstNode:oO,embed:function(e,t,n,r){const o=e.getValue();switch(o.type){case"element":if(wj(o)||"interpolation"===o.type)return;if(!o.isSelfClosing&&Fj(o,r)){const i=vj(o,r);if(!i)return;const u=Wj(o,r);let s=/^\s*$/.test(u),a="";return s||(a=n(pj(u),{parser:i,__embeddedInHtml:!0},{stripTrailingHardline:!0}),s=""===a),[nL(o,r),YI(zj(e,r,t)),s?"":KI,a,s?"":KI,Jj(o,r),oL(o,r)];}break;case"text":if(wj(o.parent)){const e=vj(o.parent);if(e){const t="markdown"===e?mj(o.value.replace(/^[^\S\n]*?\n/,"")):o.value,i={parser:e,__embeddedInHtml:!0};if("html"===r.parser&&"babel"===e){let e="script";const{attrMap:t}=o.parent;t&&("module"===t.type||"text/babel"===t.type&&"module"===t["data-type"])&&(e="module"),i.__babelSourceType=e;}return[GI,nL(o,r),n(t,i,{stripTrailingHardline:!0}),oL(o,r)];}}else if("interpolation"===o.parent.type){const e={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return"angular"===r.parser?(e.parser="__ng_interpolation",e.trailingComma="none"):"vue"===r.parser?e.parser="__vue_expression":e.parser="__js_expression",[ej([nj,n(o.value,e,{stripTrailingHardline:!0})]),o.parent.next&&Zj(o.parent.next)?" ":nj];}break;case"attribute":{if(!o.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(r.originalText.slice(o.valueSpan.start.offset,o.valueSpan.end.offset)))return[o.rawName,"=",o.value];if("lwc"===r.parser){if(/^{[\S\s]*}$/.test(r.originalText.slice(o.valueSpan.start.offset,o.valueSpan.end.offset)))return[o.rawName,"=",o.value];}const e=function(e,t,n){const r=t=>new RegExp(t.join("|")).test(e.fullName),o=()=>Pj(e.value);let i=!1;const u=(e,t)=>{const n="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;!n||"ObjectExpression"!==n.type&&"ArrayExpression"!==n.type&&("__vue_expression"!==t.parser||"TemplateLiteral"!==n.type&&"StringLiteral"!==n.type)||(i=!0);},s=e=>YI(e),a=(e,t=!0)=>YI([ej([oj,e]),t?oj:""]),c=e=>i?s(e):a(e),l=(e,n)=>t(e,Object.assign({__onHtmlBindingRoot:u,__embeddedInHtml:!0},n),{stripTrailingHardline:!0});if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return a(Vj(o()));if("class"===e.fullName&&!n.parentParser){const e=o();if(!e.includes("{{"))return $j(e);}if("style"===e.fullName&&!n.parentParser){const e=o();if(!e.includes("{{"))return a(l(e,{parser:"css",__isHTMLStyleAttribute:!0}));}if("vue"===n.parser){if("v-for"===e.fullName)return _j(o(),l);if(xj(e)||Sj(e,n))return Mj(o(),l);const t=["^:","^v-bind:"],i=["^v-"];if(r(["^@","^v-on:"])){const e=o();return c(l(e,{parser:Rj(e)?"__js_expression":"__vue_event_binding"}));}if(r(t))return c(l(o(),{parser:"__vue_expression"}));if(r(i))return c(l(o(),{parser:"__js_expression"}));}if("angular"===n.parser){const t=(e,t)=>l(e,Object.assign({},t,{trailingComma:"none"})),n=["^\\*"],i=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],u=["^i18n(-.+)?$"];if(r(["^\\(.+\\)$","^on-"]))return c(t(o(),{parser:"__ng_action"}));if(r(i))return c(t(o(),{parser:"__ng_binding"}));if(r(u)){const t=o().trim();return a(XI(cL(e,t)),!t.includes("@@"));}if(r(n))return c(t(o(),{parser:"__ng_directive"}));const s=/{{([\S\s]+?)}}/g,p=o();if(s.test(p)){const e=[];for(const[n,r]of p.split(s).entries())if(n%2==0)e.push(cj(r,rj));else try{e.push(YI(["{{",ej([nj,t(r,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),nj,"}}"]));}catch(t){e.push("{{",cj(r,rj),"}}");}return YI(e);}}return null;}(o,(e,t)=>n(e,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},t),{stripTrailingHardline:!0}),r);if(e)return[o.rawName,'="',YI(ij(e,e=>"string"==typeof e?e.replace(/"/g,"""):e)),'"'];break;}case"front-matter":return Xw(o,n);}}};const pL="HTML";var fL={htmlWhitespaceSensitivity:{since:"1.15.0",category:pL,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},vueIndentScriptAndStyle:{since:"1.19.0",category:pL,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},dL={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".htm",".html.hl",".inc",".xht",".xhtml"],languageId:146},hL={name:"Vue",type:"markup",color:"#2c3e50",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",languageId:391};var mL={languages:[df(dL,()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]})),df(dL,e=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[...e.extensions,".mjml"]})),df(dL,()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]})),df(hL,()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}))],printers:{html:lL},options:fL,parsers:{get html(){return{}.parsers.html;},get vue(){return{}.parsers.vue;},get angular(){return{}.parsers.angular;},get lwc(){return{}.parsers.lwc;}}};var gL={isPragma:function(e){return /^\s*@(prettier|format)\s*$/.test(e);},hasPragma:function(e){return /^\s*#[^\S\n]*@(prettier|format)\s*?(\n|$)/.test(e);},insertPragma:function(e){return"# @format\n\n".concat(e);}};var yL={locStart:function(e){return e.position.start.offset;},locEnd:function(e){return e.position.end.offset;}};var DL=function(e,t,n,r){if("root"===e.getValue().type&&r.filepath&&/(?:[/\\]|^)\.prettierrc$/.test(r.filepath))return n(r.originalText,Object.assign({},r,{parser:"json"}));};const{getLast:EL,isNonEmptyArray:bL}=rn;function CL(e,t){return e&&"string"==typeof e.type&&(!t||t.includes(e.type));}function vL(e){return"prettier-ignore"===e.value.trim();}function AL(e){return e&&bL(e.leadingComments);}function FL(e){return e&&bL(e.middleComments);}function xL(e){return e&&e.indicatorComment;}function SL(e){return e&&e.trailingComment;}function wL(e){return e&&bL(e.endComments);}function TL(e){const t=[];let n;for(const r of e.split(/( +)/g))" "!==r?" "===n?t.push(r):t.push((t.pop()||"")+r):void 0===n&&t.unshift(""),n=r;return" "===n&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t;}var BL={getLast:EL,getAncestorCount:function(e,t){let n=0;const r=e.stack.length-1;for(let o=0;o<r;o++){const r=e.stack[o];CL(r)&&t(r)&&n++;}return n;},isNode:CL,isEmptyNode:function(e){return!bL(e.children)&&!function(e){return AL(e)||FL(e)||xL(e)||SL(e)||wL(e);}(e);},isInlineNode:function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1;}},mapNode:function e(t,n,r){return n("children"in t?Object.assign({},t,{children:t.children.map(r=>e(r,n,t))}):t,r);},defineShortcut:function(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1});},isNextLineEmpty:function(e,t){let n=0;const r=t.length;for(let o=e.position.end.offset-1;o<r;o++){const e=t[o];if("\n"===e&&n++,1===n&&/\S/.test(e))return!1;if(2===n)return!0;}return!1;},isLastDescendantNode:function(e){switch(e.getValue().type){case"tag":case"anchor":case"comment":return!1;}const t=e.stack.length;for(let n=1;n<t;n++){const t=e.stack[n],r=e.stack[n-1];if(Array.isArray(r)&&"number"==typeof t&&t!==r.length-1)return!1;}return!0;},getBlockValueLineContents:function(e,{parentIndent:t,isLastDescendant:n,options:r}){const o=e.position.start.line===e.position.end.line?"":r.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*?\n([\S\s]*)$/)[1],i=null===e.indent?(u=o.match(/^( *)\S/m))?u[1].length:Number.POSITIVE_INFINITY:e.indent-1+t;var u;const s=o.split("\n").map(e=>e.slice(i));return"preserve"===r.proseWrap||"blockLiteral"===e.type?a(s.map(e=>0===e.length?[]:[e])):a(s.map(e=>0===e.length?[]:TL(e)).reduce((e,t,n)=>0!==n&&s[n-1].length>0&&t.length>0&&!/^\s/.test(t[0])&&!/^\s|\s$/.test(EL(e))?[...e.slice(0,-1),[...EL(e),...t]]:[...e,t],[]).map(e=>e.reduce((e,t)=>e.length>0&&/\s$/.test(EL(e))?[...e.slice(0,-1),EL(e)+" "+t]:[...e,t],[])).map(e=>"never"===r.proseWrap?[e.join(" ")]:e));function a(t){if("keep"===e.chomping)return 0===EL(t).length?t.slice(0,-1):t;let r=0;for(let e=t.length-1;e>=0&&0===t[e].length;e--)r++;return 0===r?t:r>=2&&!n?t.slice(0,-(r-1)):t.slice(0,-r);}},getFlowScalarLineContents:function(e,t,n){const r=t.split("\n").map((e,t,n)=>0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimEnd():e.trimStart());return"preserve"===n.proseWrap?r.map(e=>0===e.length?[]:[e]):r.map(e=>0===e.length?[]:TL(e)).reduce((t,n,o)=>0!==o&&r[o-1].length>0&&n.length>0&&("quoteDouble"!==e||!EL(EL(t)).endsWith("\\"))?[...t.slice(0,-1),[...EL(t),...n]]:[...t,n],[]).map(e=>"never"===n.proseWrap?[e.join(" ")]:e);},getLastDescendantNode:function e(t){return bL(t.children)?e(EL(t.children)):t;},hasPrettierIgnore:function(e){const t=e.getValue();if("documentBody"===t.type){const t=e.getParentNode();return wL(t.head)&&vL(EL(t.head.endComments));}return AL(t)&&vL(EL(t.leadingComments));},hasLeadingComments:AL,hasMiddleComments:FL,hasIndicatorComment:xL,hasTrailingComment:SL,hasEndComments:wL};const{defineShortcut:kL,mapNode:NL}=BL;function PL(e){switch(e.type){case"document":kL(e,"head",()=>e.children[0]),kL(e,"body",()=>e.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":kL(e,"content",()=>e.children[0]);break;case"mappingItem":case"flowMappingItem":kL(e,"key",()=>e.children[0]),kL(e,"value",()=>e.children[1]);}return e;}var OL=function(e){return NL(e,PL);};const{builders:{softline:IL,align:jL}}=Rn,{hasEndComments:LL,isNextLineEmpty:_L,isNode:ML}=BL,RL=new WeakMap();function VL(e){return LL(e)&&!ML(e,["documentHead","documentBody","flowMapping","flowSequence"]);}var $L={alignWithSpaces:function(e,t){return jL(" ".repeat(e),t);},shouldPrintEndComments:VL,printNextEmptyLine:function(e,t){const n=e.getValue(),r=e.stack[0];let o;return RL.has(r)?o=RL.get(r):(o=new Set(),RL.set(r,o)),o.has(n.position.end.line)||(o.add(n.position.end.line),!_L(n,t)||VL(e.getParentNode()))?"":IL;}};const{builders:{ifBreak:qL,line:WL,softline:UL,hardline:zL,join:HL}}=Rn,{isEmptyNode:GL,getLast:JL,hasEndComments:XL}=BL,{printNextEmptyLine:YL,alignWithSpaces:KL}=$L;function QL(e,t,n){const r=e.getValue(),o="flowMapping"===r.type,i=o?"{":"[",u=o?"}":"]";let s=UL;o&&r.children.length>0&&n.bracketSpacing&&(s=WL);const a=JL(r.children),c=a&&"flowMappingItem"===a.type&&GL(a.key)&&GL(a.value);return[i,KL(n.tabWidth,[s,ZL(e,t,n),"none"===n.trailingComma?"":qL(","),XL(r)?[zL,HL(zL,e.map(t,"endComments"))]:""]),c?"":s,u];}function ZL(e,t,n){const r=e.getValue();return e.map((e,o)=>[t(),o===r.children.length-1?"":[",",WL,r.children[o].position.start.line!==r.children[o+1].position.start.line?YL(e,n.originalText):""]],"children");}var e_={printFlowMapping:QL,printFlowSequence:QL};const{builders:{conditionalGroup:t_,group:n_,hardline:r_,ifBreak:o_,join:i_,line:u_}}=Rn,{hasLeadingComments:s_,hasMiddleComments:a_,hasTrailingComment:c_,hasEndComments:l_,isNode:p_,isEmptyNode:f_,isInlineNode:d_}=BL,{alignWithSpaces:h_}=$L;function m_(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1;}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes("\n");case"always":return!/[\n ]/.test(e.value);default:return!1;}}var g_=function(e,t,n,r,o){const{key:i,value:u}=e,s=f_(i),a=f_(u);if(s&&a)return": ";const c=r("key"),l=function(e){return e.key.content&&"alias"===e.key.content.type;}(e)?" ":"";if(a)return"flowMappingItem"===e.type&&"flowMapping"===t.type?c:"mappingItem"!==e.type||!m_(i.content,o)||c_(i.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?["? ",h_(2,c)]:[c,l,":"];const p=r("value");if(s)return[": ",h_(2,p)];if(s_(u)||!d_(i.content))return["? ",h_(2,c),r_,i_("",n.map(r,"value","leadingComments").map(e=>[e,r_])),": ",h_(2,p)];if(function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1;}}(i.content)&&!s_(i.content)&&!a_(i.content)&&!c_(i.content)&&!l_(i)&&!s_(u.content)&&!a_(u.content)&&!l_(u)&&m_(u.content,o))return[c,l,": ",p];const f=Symbol("mappingKey"),d=n_([o_("? "),n_(h_(2,c),{id:f})]),h=[r_,": ",h_(2,p)],m=[l,":"];s_(u.content)||l_(u)&&u.content&&!p_(u.content,["mapping","sequence"])||"mapping"===t.type&&c_(i.content)&&d_(u.content)||p_(u.content,["mapping","sequence"])&&null===u.content.tag&&null===u.content.anchor?m.push(r_):u.content&&m.push(u_),m.push(p);const g=h_(o.tabWidth,m);return t_([[d,o_(h,g,{groupId:f})]]);};const{builders:{dedent:y_,dedentToRoot:D_,fill:E_,hardline:b_,join:C_,line:v_,literalline:A_,markAsRoot:F_},utils:{getDocParts:x_}}=Rn,{getAncestorCount:S_,getBlockValueLineContents:w_,hasIndicatorComment:T_,isLastDescendantNode:B_,isNode:k_}=BL,{alignWithSpaces:N_}=$L;var P_=function(e,t,n){const r=e.getValue(),o=S_(e,e=>k_(e,["sequence","mapping"])),i=B_(e),u=["blockFolded"===r.type?">":"|"];null!==r.indent&&u.push(r.indent.toString()),"clip"!==r.chomping&&u.push("keep"===r.chomping?"+":"-"),T_(r)&&u.push(" ",t("indicatorComment"));const s=w_(r,{parentIndent:o,isLastDescendant:i,options:n}),a=[];for(const[e,t]of s.entries())0===e&&a.push(b_),a.push(E_(x_(C_(v_,t)))),e!==s.length-1?a.push(0===t.length?b_:F_(A_)):"keep"===r.chomping&&i&&a.push(D_(0===t.length?b_:A_));return null===r.indent?u.push(y_(N_(n.tabWidth,a))):u.push(D_(N_(r.indent-1+o,a))),u;};const{builders:{breakParent:O_,fill:I_,group:j_,hardline:L_,join:__,line:M_,lineSuffix:R_,literalline:V_},utils:{getDocParts:$_}}=Rn,{replaceEndOfLineWith:q_,isPreviousLineEmpty:W_}=rn,{insertPragma:U_,isPragma:z_}=gL,{locStart:H_}=yL,{getFlowScalarLineContents:G_,getLastDescendantNode:J_,hasLeadingComments:X_,hasMiddleComments:Y_,hasTrailingComment:K_,hasEndComments:Q_,hasPrettierIgnore:Z_,isLastDescendantNode:eM,isNode:tM,isInlineNode:nM}=BL,{alignWithSpaces:rM,printNextEmptyLine:oM,shouldPrintEndComments:iM}=$L,{printFlowMapping:uM,printFlowSequence:sM}=e_;function aM(e,t){return K_(e)||t&&(t.head.children.length>0||Q_(t.head));}function cM(e,t,n){const r=G_(e,t,n);return __(L_,r.map(e=>I_($_(__(M_,e)))));}var lM={preprocess:OL,embed:DL,print:function(e,t,n){const r=e.getValue(),o=[];"mappingValue"!==r.type&&X_(r)&&o.push([__(L_,e.map(n,"leadingComments")),L_]);const{tag:i,anchor:u}=r;i&&o.push(n("tag")),i&&u&&o.push(" "),u&&o.push(n("anchor"));let s="";tM(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!eM(e)&&(s=oM(e,t.originalText)),(i||u)&&(tM(r,["sequence","mapping"])&&!Y_(r)?o.push(L_):o.push(" ")),Y_(r)&&o.push([1===r.middleComments.length?"":L_,__(L_,e.map(n,"middleComments")),L_]);const a=e.getParentNode();return Z_(e)?o.push(q_(t.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd(),V_)):o.push(j_(function(e,t,n,r,o){switch(e.type){case"root":{const{children:t}=e,r=[];n.each((e,n)=>{const i=t[n],u=t[n+1];0!==n&&r.push(L_),r.push(o()),aM(i,u)?(r.push(L_,"..."),K_(i)&&r.push(" ",o("trailingComment"))):u&&!K_(u.head)&&r.push(L_,"---");},"children");const i=J_(e);return tM(i,["blockLiteral","blockFolded"])&&"keep"===i.chomping||r.push(L_),r;}case"document":{const i=[];return"head"===function(e,t,n,r){if(n.children[0]===e&&/---(\s|$)/.test(r.originalText.slice(H_(e),H_(e)+4))||e.head.children.length>0||Q_(e.head)||K_(e.head))return"head";if(aM(e,t))return!1;return!!t&&"root";}(e,t.children[n.getName()+1],t,r)&&((e.head.children.length>0||e.head.endComments.length>0)&&i.push(o("head")),K_(e.head)?i.push(["---"," ",o(["head","trailingComment"])]):i.push("---")),function(e){return e.body.children.length>0||Q_(e.body);}(e)&&i.push(o("body")),__(L_,i);}case"documentHead":return __(L_,[...n.map(o,"children"),...n.map(o,"endComments")]);case"documentBody":{const{children:t,endComments:r}=e;let i="";if(t.length>0&&r.length>0){const t=J_(e);tM(t,["blockFolded","blockLiteral"])?"keep"!==t.chomping&&(i=[L_,L_]):i=L_;}return[__(L_,n.map(o,"children")),i,__(L_,n.map(o,"endComments"))];}case"directive":return["%",__(" ",[e.name,...e.parameters])];case"comment":return["#",e.value];case"alias":return["*",e.value];case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return["&",e.value];case"plain":return cM(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":{const t="'",n='"',o=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&o.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(o)){const i="quoteDouble"===e.type?n:t;return[i,cM(e.type,o,r),i];}if(o.includes(n))return[t,cM(e.type,"quoteDouble"===e.type?o.replace(/\\"/g,n).replace(/'/g,t.repeat(2)):o,r),t];if(o.includes(t))return[n,cM(e.type,"quoteSingle"===e.type?o.replace(/''/g,t):o,r),n];const i=r.singleQuote?t:n;return[i,cM(e.type,o,r),i];}case"blockFolded":case"blockLiteral":return P_(n,o,r);case"mapping":case"sequence":return __(L_,n.map(o,"children"));case"sequenceItem":return["- ",rM(2,e.content?o("content"):"")];case"mappingKey":case"mappingValue":return e.content?o("content"):"";case"mappingItem":case"flowMappingItem":return g_(e,t,n,o,r);case"flowMapping":return uM(n,o,r);case"flowSequence":return sM(n,o,r);case"flowSequenceItem":return o("content");default:throw new Error("Unexpected node type ".concat(e.type));}}(r,a,e,t,n))),K_(r)&&!tM(r,["document","documentHead"])&&o.push(R_(["mappingValue"!==r.type||r.content?" ":"","mappingKey"===a.type&&"mapping"===e.getParentNode(2).type&&nM(r)?"":O_,n("trailingComment")])),iM(r)&&o.push(rM("sequenceItem"===r.type?2:0,[L_,__(L_,e.map(e=>[W_(t.originalText,e.getValue(),H_)?L_:"",n()],"endComments"))])),o.push(s),o;},massageAstNode:function(e,t){if(tM(t))switch(delete t.position,t.type){case"comment":if(z_(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote";}},insertPragma:U_},pM={bracketSpacing:Ow.bracketSpacing,singleQuote:Ow.singleQuote,proseWrap:Ow.proseWrap};var fM=[qw,GB,rN,FN,eO,mL,{languages:[df({name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407},e=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[...e.filenames.filter(e=>"yarn.lock"!==e),".prettierrc"]}))],printers:{yaml:lM},options:pM,parsers:{get yaml(){return{}.parsers.yaml;}}}];const{version:dM}=n,{getSupportInfo:hM}=Mt,mM=fM.map(t=>e(t,["parsers"]));function gM(e,t=1){return(...n)=>{const r=n[t]||{},o=r.plugins||[];return n[t]=Object.assign({},r,{plugins:[...mM,...(Array.isArray(o)?o:Object.values(o))]}),e(...n);};}const yM=gM($p.formatWithCursor);return{formatWithCursor:yM,format:(e,t)=>yM(e,t).formatted,check(e,t){const{formatted:n}=yM(e,t);return n===e;},doc:Rn,getSupportInfo:gM(hM,0),version:dM,util:ff,__debug:{parse:gM($p.parse),formatAST:gM($p.formatAST),formatDoc:gM($p.formatDoc),printToDoc:gM($p.printToDoc),printDocToString:gM($p.printDocToString)}};});})(standalone);var prettier=/*@__PURE__*/index.getDefaultExportFromCjs(standalone.exports);const formatter=index.memoizerific(2)((type,source)=>{if(type===false){return source;}if(type==='dedent'||type===true){return index.dedent(source);}return prettier.format(source,{parser:type,plugins:[prettierHtml],htmlWhitespaceSensitivity:'ignore'}).trim();});exports.formatter=formatter;
|
|
128
|
+
*/class n{constructor(e,t,n,r){this.file=e,this.offset=t,this.line=n,this.col=r;}toString(){return null!=this.offset?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url;}moveBy(e){const t=this.file.content,r=t.length;let o=this.offset,i=this.line,u=this.col;for(;o>0&&e<0;){o--,e++;if(t.charCodeAt(o)==MO.$LF){i--;const e=t.substr(0,o-1).lastIndexOf(String.fromCharCode(MO.$LF));u=e>0?o-e:o;}else u--;}for(;o<r&&e>0;){const n=t.charCodeAt(o);o++,e--,n==MO.$LF?(i++,u=0):u++;}return new n(this.file,o,i,u);}getContext(e,t){const n=this.file.content;let r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);let o=r,i=0,u=0;for(;i<e&&r>0&&(r--,i++,"\n"!=n[r]||++u!=t););for(i=0,u=0;i<e&&o<n.length-1&&(o++,i++,"\n"!=n[o]||++u!=t););return{before:n.substring(r,this.offset),after:n.substring(this.offset,o+1)};}return null;}}t.ParseLocation=n;class r{constructor(e,t){this.content=e,this.url=t;}}t.ParseSourceFile=r;class o{constructor(e,t,n=null){this.start=e,this.end=t,this.details=n;}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset);}}var i;t.ParseSourceSpan=o,t.EMPTY_PARSE_LOCATION=new n(new r("",""),0,0,0),t.EMPTY_SOURCE_SPAN=new o(t.EMPTY_PARSE_LOCATION,t.EMPTY_PARSE_LOCATION),function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR";}(i=t.ParseErrorLevel||(t.ParseErrorLevel={}));t.ParseError=class{constructor(e,t,n=i.ERROR){this.span=e,this.msg=t,this.level=n;}contextualMessage(){const e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(i[this.level]," ->]").concat(e.after,'")'):this.msg;}toString(){const e=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(e);}},t.typeSourceSpan=function(e,t){const i=DI.identifierModuleUrl(t),u=null!=i?"in ".concat(e," ").concat(DI.identifierName(t)," in ").concat(i):"in ".concat(e," ").concat(DI.identifierName(t)),s=new r("",u);return new o(new n(s,-1,-1,-1),new n(s,-1,-1,-1));},t.r3JitTypeSourceSpan=function(e,t,i){const u="in ".concat(e," ").concat(t," in ").concat(i),s=new r("",u);return new o(new n(s,-1,-1,-1),new n(s,-1,-1,-1));};});const{ParseSourceSpan:bI}=EI,{htmlTrim:CI,getLeadingAndTrailingHtmlWhitespace:vI,hasHtmlWhitespace:AI,canHaveInterpolation:FI,getNodeCssStyleDisplay:xI,isDanglingSpaceSensitiveNode:SI,isIndentationSensitiveNode:wI,isLeadingSpaceSensitiveNode:TI,isTrailingSpaceSensitiveNode:BI,isWhitespaceSensitiveNode:kI}=_O,NI=[function(e){return e.map(e=>{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){const[t,...n]=e.children;return e.clone({children:1===t.value.length?n:[t.clone({value:t.value.slice(1)}),...n]});}return e;});},function(e){const t=e=>"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;return e.map(e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r<e.children.length;r++){const o=e.children[r];if(!n[r+1])if(n[r]){const e=o.prev,n=o.firstChild,r=new bI(e.sourceSpan.start,n.sourceSpan.end),i=new bI(r.start,o.sourceSpan.end);t.push(o.clone({condition:e.condition,sourceSpan:i,startSourceSpan:r,children:o.children.slice(1)}));}else t.push(o);}return e.clone({children:t});}}return e;});},function(e){return function(e,t,n){return e.map(e=>{if(e.children){const r=e.children.map(t);if(r.some(Boolean)){const t=[];for(let o=0;o<e.children.length;o++){const i=e.children[o];if("text"!==i.type&&!r[o]){t.push(i);continue;}const u="text"===i.type?i:i.clone({type:"text",value:n(i)});if(0===t.length||"text"!==ke(t).type){t.push(u);continue;}const s=t.pop();t.push(s.clone({value:s.value+u.value,sourceSpan:new bI(s.sourceSpan.start,u.sourceSpan.end)}));}return e.clone({children:t});}}return e;});}(e,e=>"cdata"===e.type,e=>"<![CDATA[".concat(e.value,"]]>"));},function(e,t){if("html"===t.parser)return e;const n=/{{([\S\s]+?)}}/g;return e.map(e=>{if(!FI(e))return e;const t=[];for(const r of e.children){if("text"!==r.type){t.push(r);continue;}let e=r.sourceSpan.start,o=null;const i=r.value.split(n);for(let n=0;n<i.length;n++,e=o){const r=i[n];n%2!=0?(o=e.moveBy(r.length+4),t.push({type:"interpolation",sourceSpan:new bI(e,o),children:0===r.length?[]:[{type:"text",value:r,sourceSpan:new bI(e.moveBy(2),o.moveBy(-2))}]})):(o=e.moveBy(r.length),r.length>0&&t.push({type:"text",value:r,sourceSpan:new bI(e,o)}));}}return e.clone({children:t});});},function(e){const t="whitespace";return e.map(e=>{if(!e.children)return e;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===CI(e.children[0].value).length)return e.clone({children:[],hasDanglingSpaces:e.children.length>0});const n=kI(e),r=wI(e);return e.clone({isWhitespaceSensitive:n,isIndentationSensitive:r,children:e.children.reduce((e,r)=>{if("text"!==r.type||n)return[...e,r];const o=[],{leadingWhitespace:i,text:u,trailingWhitespace:s}=vI(r.value);return i&&o.push({type:t}),u&&o.push({type:"text",value:u,sourceSpan:new bI(r.sourceSpan.start.moveBy(i.length),r.sourceSpan.end.moveBy(-s.length))}),s&&o.push({type:t}),[...e,...o];},[]).reduce((e,n,r,o)=>{if(n.type===t)return e;const i=0!==r&&o[r-1].type===t,u=r!==o.length-1&&o[r+1].type===t;return[...e,Object.assign({},n,{hasLeadingSpaces:i,hasTrailingSpaces:u})];},[])});});},function(e,t){return e.map(e=>Object.assign(e,{cssDisplay:xI(e,t)}));},function(e){return e.map(e=>Object.assign(e,{isSelfClosing:!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)}));},function(e,t){return e.map(e=>"element"!==e.type?e:Object.assign(e,{hasHtmComponentClosingTag:e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset))}));},function(e,t){return e.map(e=>e.children?0===e.children.length?e.clone({isDanglingSpaceSensitive:SI(e)}):e.clone({children:e.children.map(e=>Object.assign({},e,{isLeadingSpaceSensitive:TI(e,t),isTrailingSpaceSensitive:BI(e,t)})).map((e,t,n)=>Object.assign({},e,{isLeadingSpaceSensitive:(0===t||n[t-1].isTrailingSpaceSensitive)&&e.isLeadingSpaceSensitive,isTrailingSpaceSensitive:(t===n.length-1||n[t+1].isLeadingSpaceSensitive)&&e.isTrailingSpaceSensitive}))}):e);},function(e){const t=e=>"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!AI(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type;return e.map(e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r<e.children.length;r++){const o=e.children[r];if(n[r]){const n=t.pop(),i=e.children[++r],{isTrailingSpaceSensitive:u,hasTrailingSpaces:s}=i;t.push(n.clone({value:n.value+"<".concat(o.rawName,">")+o.firstChild.value+"</".concat(o.rawName,">")+i.value,sourceSpan:new bI(n.sourceSpan.start,i.sourceSpan.end),isTrailingSpaceSensitive:u,hasTrailingSpaces:s}));}else t.push(o);}return e.clone({children:t});}}return e;});}];var PI=function(e,t){for(const n of NI)e=n(e,t);return e;};var OI={hasPragma:function(e){return /^\s*<!--\s*@(format|prettier)\s*-->/.test(e);},insertPragma:function(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"");}};var II={locStart:function(e){return e.sourceSpan.start.offset;},locEnd:function(e){return e.sourceSpan.end.offset;}};const{builders:{group:jI}}=Rn;var LI={isVueEventBindingExpression:function(e){const t=e.trim();return /^([\w$]+|\([^)]*?\))\s*=>|^function\s*\(/.test(t)||/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/.test(t);},printVueFor:function(e,t){const{left:n,operator:r,right:o}=function(e){const t=/([^]*?)\s+(in|of)\s+([^]*)/,n=/,([^,\]}]*)(?:,([^,\]}]*))?$/,r=/^\(|\)$/g,o=e.match(t);if(!o)return;const i={};i.for=o[3].trim();const u=o[1].trim().replace(r,""),s=u.match(n);s?(i.alias=u.replace(n,""),i.iterator1=s[1].trim(),s[2]&&(i.iterator2=s[2].trim())):i.alias=u;return{left:"".concat([i.alias,i.iterator1,i.iterator2].filter(Boolean).join(",")),operator:o[2],right:i.for};}(e);return[jI(t("function _(".concat(n,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",r," ",t(o,{parser:"__js_expression"},{stripTrailingHardline:!0})];},printVueBindings:function(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueBindings:!0});}},_I=i(function(e){!function(t,n){e.exports?e.exports=n():t.parseSrcset=n();}(r,function(){return function(e,t){var n=t&&t.logger||console;function r(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e;}function o(t){var n,r=t.exec(e.substring(y));if(r)return n=r[0],y+=n.length,n;}for(var i,u,s,a,c,l=e.length,p=/^[ \t\n\r\u000c]+/,f=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,h=/[,]+$/,m=/^\d+$/,g=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,y=0,D=[];;){if(o(f),y>=l)return D;i=o(d),u=[],","===i.slice(-1)?(i=i.replace(h,""),b()):E();}function E(){for(o(p),s="",a="in descriptor";;){if(c=e.charAt(y),"in descriptor"===a){if(r(c))s&&(u.push(s),s="",a="after descriptor");else{if(","===c)return y+=1,s&&u.push(s),void b();if("("===c)s+=c,a="in parens";else{if(""===c)return s&&u.push(s),void b();s+=c;}}}else if("in parens"===a){if(")"===c)s+=c,a="in descriptor";else{if(""===c)return u.push(s),void b();s+=c;}}else if("after descriptor"===a)if(r(c));else{if(""===c)return void b();a="in descriptor",y-=1;}y+=1;}}function b(){var t,r,o,s,a,c,l,p,f,d=!1,h={};for(s=0;s<u.length;s++)c=(a=u[s])[a.length-1],l=a.substring(0,a.length-1),p=parseInt(l,10),f=parseFloat(l),m.test(l)&&"w"===c?((t||r)&&(d=!0),0===p?d=!0:t=p):g.test(l)&&"x"===c?((t||r||o)&&(d=!0),f<0?d=!0:r=f):m.test(l)&&"h"===c?((o||r)&&(d=!0),0===p?d=!0:o=p):d=!0;d?n&&n.error&&n.error("Invalid srcset descriptor found in '"+e+"' at '"+a+"'."):(h.url=i,t&&(h.w=t),r&&(h.d=r),o&&(h.h=o),D.push(h));}};});});const{builders:{group:MI,ifBreak:RI,indent:VI,join:$I,line:qI,softline:WI}}=Rn;const UI=["__","--","_","-"];function zI(e){const t=e.search(/[^_-]/);if(-1!==t)for(const n of UI){const r=e.indexOf(n,t);if(-1!==r)return e.slice(0,r);}return e;}var HI={printImgSrcset:function(e){const t=_I(e,{logger:{error(e){throw new Error(e);}}}),n=t.some(({w:e})=>e),r=t.some(({h:e})=>e);if(n+r+t.some(({d:e})=>e)>1)throw new Error("Mixed descriptor in srcset is not supported");const o=n?"w":r?"h":"d",i=n?"w":r?"h":"x",u=e=>Math.max(...e),s=t.map(e=>e.url),a=u(s.map(e=>e.length)),c=t.map(e=>e[o]).map(e=>e?e.toString():""),l=c.map(e=>{const t=e.indexOf(".");return-1===t?e.length:t;}),p=u(l);return $I([",",qI],s.map((e,t)=>{const n=[e],r=c[t];if(r){const o=a-e.length+1,u=p-l[t],s=" ".repeat(o+u);n.push(RI(s," "),r+i);}return n;}));},printClassNames:function(e){const t=e.trim().split(/\s+/),n=[];let r;for(let e=0;e<t.length;e++){const o=zI(t[e]);o!==r&&o!==t[e-1]&&n.push([]),ke(n).push(t[e]),r=o;}return[VI([WI,$I(qI,n.map(e=>MI($I(qI,e))))]),WI];}};const{builders:{breakParent:GI,dedentToRoot:JI,fill:XI,group:YI,hardline:KI,ifBreak:QI,indentIfBreak:ZI,indent:ej,join:tj,line:nj,literalline:rj,softline:oj},utils:{mapDoc:ij,cleanDoc:uj,getDocParts:sj,isConcat:aj}}=Rn,{replaceEndOfLineWith:cj,isNonEmptyArray:lj}=rn,{htmlTrimPreserveIndentation:pj,splitByHtmlWhitespace:fj,countChars:dj,countParents:hj,dedentString:mj,forceBreakChildren:gj,forceBreakContent:yj,forceNextEmptyLine:Dj,getLastDescendant:Ej,getPrettierIgnoreAttributeCommentData:bj,hasPrettierIgnore:Cj,inferScriptParser:vj,isVueCustomBlock:Aj,isVueNonHtmlBlock:Fj,isVueSlotAttribute:xj,isVueSfcBindingsAttribute:Sj,isScriptLikeTag:wj,isTextLikeNode:Tj,preferHardlineAsLeadingSpaces:Bj,shouldNotPrintClosingTag:kj,shouldPreserveContent:Nj,unescapeQuoteEntities:Pj,isPreLikeNode:Oj}=_O,{insertPragma:Ij}=OI,{locStart:jj,locEnd:Lj}=II,{printVueFor:_j,printVueBindings:Mj,isVueEventBindingExpression:Rj}=LI,{printImgSrcset:Vj,printClassNames:$j}=HI;function qj(e,t,n){const r=e.getValue();if(gj(r))return[GI,...e.map(e=>{const t=e.getValue(),n=t.prev?u(t.prev,t):"";return[n?[n,Dj(t.prev)?KI:""]:"",i(e)];},"children")];const o=r.children.map(()=>Symbol(""));return e.map((e,t)=>{const n=e.getValue();if(Tj(n)){if(n.prev&&Tj(n.prev)){const t=u(n.prev,n);if(t)return Dj(n.prev)?[KI,KI,i(e)]:[t,i(e)];}return i(e);}const r=[],s=[],a=[],c=[],l=n.prev?u(n.prev,n):"",p=n.next?u(n,n.next):"";return l&&(Dj(n.prev)?r.push(KI,KI):l===KI?r.push(KI):Tj(n.prev)?s.push(l):s.push(QI("",oj,{groupId:o[t-1]}))),p&&(Dj(n)?Tj(n.next)&&c.push(KI,KI):p===KI?Tj(n.next)&&c.push(KI):a.push(p)),[...r,YI([...s,YI([i(e),...a],{id:o[t]})]),...c];},"children");function i(e){const r=e.getValue();return Cj(r)?[nL(r,t),...cj(t.originalText.slice(jj(r)+(r.prev&&Kj(r.prev)?iL(r).length:0),Lj(r)-(r.next&&Zj(r.next)?aL(r,t).length:0)),rj),oL(r,t)]:n();}function u(e,t){return Tj(e)&&Tj(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?Bj(t)?KI:nj:"":Bj(t)?KI:oj:Kj(e)&&(Cj(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&t.attrs.length>0)||"element"===e.type&&e.isSelfClosing&&Zj(t)?"":!t.isLeadingSpaceSensitive||Bj(t)||Zj(t)&&e.lastChild&&tL(e.lastChild)&&e.lastChild.lastChild&&tL(e.lastChild.lastChild)?KI:t.hasLeadingSpaces?nj:oj;}}function Wj(e,t){let n=e.startSourceSpan.end.offset;e.firstChild&&Qj(e.firstChild)&&(n-=uL(e).length);let r=e.endSourceSpan.start.offset;return e.lastChild&&tL(e.lastChild)?r+=sL(e,t).length:eL(e)&&(r-=aL(e.lastChild,t).length),t.originalText.slice(n,r);}function Uj(e,t,n){const r=e.getValue();if(!lj(r.attrs))return r.isSelfClosing?" ":"";const o=r.prev&&"comment"===r.prev.type&&bj(r.prev.value),i="boolean"==typeof o?()=>o:Array.isArray(o)?e=>o.includes(e.rawName):()=>!1,u=e.map(e=>{const r=e.getValue();return i(r)?cj(t.originalText.slice(jj(r),Lj(r)),rj):n();},"attrs"),s="element"===r.type&&"script"===r.fullName&&1===r.attrs.length&&"src"===r.attrs[0].fullName&&0===r.children.length,a=[ej([s?" ":nj,tj(nj,u)])];return r.firstChild&&Qj(r.firstChild)||r.isSelfClosing&&eL(r.parent)||s?a.push(r.isSelfClosing?" ":""):a.push(r.isSelfClosing?nj:oj),a;}function zj(e,t,n){const r=e.getValue();return[Hj(r,t),Uj(e,t,n),r.isSelfClosing?"":Gj(r)];}function Hj(e,t){return e.prev&&Kj(e.prev)?"":[nL(e,t),iL(e)];}function Gj(e){return e.firstChild&&Qj(e.firstChild)?"":uL(e);}function Jj(e,t){return[e.isSelfClosing?"":Xj(e,t),Yj(e,t)];}function Xj(e,t){return e.lastChild&&tL(e.lastChild)?"":[rL(e,t),sL(e,t)];}function Yj(e,t){return(e.next?Zj(e.next):eL(e.parent))?"":[aL(e,t),oL(e,t)];}function Kj(e){return e.next&&!Tj(e.next)&&Tj(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces;}function Qj(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces;}function Zj(e){return e.prev&&"docType"!==e.prev.type&&!Tj(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces;}function eL(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!Tj(Ej(e.lastChild))&&!Oj(e);}function tL(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&Tj(Ej(e));}function nL(e,t){return Qj(e)?uL(e.parent):Zj(e)?aL(e.prev,t):"";}function rL(e,t){return eL(e)?aL(e.lastChild,t):"";}function oL(e,t){return tL(e)?sL(e.parent,t):Kj(e)?iL(e.next):"";}function iL(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return"\x3c!--[if ".concat(e.condition);case"ieConditionalEndComment":return"\x3c!--<!";case"interpolation":return"{{";case"docType":return"<!DOCTYPE";case"element":if(e.condition)return"\x3c!--[if ".concat(e.condition,"]>\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName);}}function uL(e){switch(Il(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--<![endif]--\x3e";default:return">";}}function sL(e,t){if(Il(!e.isSelfClosing),kj(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return"</".concat(e.rawName);}}function aL(e,t){if(kj(e,t))return"";switch(e.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]--\x3e";case"ieConditionalStartComment":return"]>\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">";}}function cL(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?cj(t,rj):cj(mj(pj(t)),KI):sj(tj(nj,fj(t)));}var lL={preprocess:PI,print:function(e,t,n){const r=e.getValue();switch(r.type){case"front-matter":return cj(r.raw,rj);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(r),[YI(qj(e,t,n)),KI];case"element":case"ieConditionalComment":{if(Nj(r,t))return[nL(r,t),YI(zj(e,t,n)),...cj(Wj(r,t),rj),...Jj(r,t),oL(r,t)];const i=1===r.children.length&&"interpolation"===r.firstChild.type&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,u=Symbol("element-attr-group-id");return[YI([YI(zj(e,t,n),{id:u}),0===r.children.length?r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?nj:"":[yj(r)?GI:"",(o=[i?QI(oj,"",{groupId:u}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?nj:"text"===r.firstChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive?JI(oj):oj,qj(e,t,n)],i?ZI(o,{groupId:u}):!wj(r)&&!Aj(r,t)||"root"!==r.parent.type||"vue"!==t.parser||t.vueIndentScriptAndStyle?ej(o):o),(r.next?Zj(r.next):eL(r.parent))?r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?" ":"":i?QI(oj,"",{groupId:u}):r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?nj:("comment"===r.lastChild.type||"text"===r.lastChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive)&&new RegExp("\\n[\\t ]{".concat(t.tabWidth*hj(e,e=>e.parent&&"root"!==e.parent.type),"}$")).test(r.lastChild.value)?"":oj]]),Jj(r,t)];}case"ieConditionalStartComment":case"ieConditionalEndComment":return[Hj(r),Yj(r)];case"interpolation":return[Hj(r,t),...e.map(n,"children"),Yj(r,t)];case"text":{if("interpolation"===r.parent.type){const e=/\n[^\S\n]*?$/,t=e.test(r.value),n=t?r.value.replace(e,""):r.value;return[...cj(n,rj),t?KI:""];}const e=uj([nL(r,t),...cL(r),oL(r,t)]);return aj(e)||"fill"===e.type?XI(sj(e)):e;}case"docType":return[YI([Hj(r,t)," ",r.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),Yj(r,t)];case"comment":return[nL(r,t),...cj(t.originalText.slice(jj(r),Lj(r)),rj),oL(r,t)];case"attribute":{if(null===r.value)return r.rawName;const e=Pj(r.value),t=dj(e,"'")<dj(e,'"')?"'":'"';return[r.rawName,"=",t,...cj('"'===t?e.replace(/"/g,"""):e.replace(/'/g,"'"),rj),t];}default:throw new Error("Unexpected node type ".concat(r.type));}var o;},insertPragma:Ij,massageAstNode:oO,embed:function(e,t,n,r){const o=e.getValue();switch(o.type){case"element":if(wj(o)||"interpolation"===o.type)return;if(!o.isSelfClosing&&Fj(o,r)){const i=vj(o,r);if(!i)return;const u=Wj(o,r);let s=/^\s*$/.test(u),a="";return s||(a=n(pj(u),{parser:i,__embeddedInHtml:!0},{stripTrailingHardline:!0}),s=""===a),[nL(o,r),YI(zj(e,r,t)),s?"":KI,a,s?"":KI,Jj(o,r),oL(o,r)];}break;case"text":if(wj(o.parent)){const e=vj(o.parent);if(e){const t="markdown"===e?mj(o.value.replace(/^[^\S\n]*?\n/,"")):o.value,i={parser:e,__embeddedInHtml:!0};if("html"===r.parser&&"babel"===e){let e="script";const{attrMap:t}=o.parent;t&&("module"===t.type||"text/babel"===t.type&&"module"===t["data-type"])&&(e="module"),i.__babelSourceType=e;}return[GI,nL(o,r),n(t,i,{stripTrailingHardline:!0}),oL(o,r)];}}else if("interpolation"===o.parent.type){const e={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return"angular"===r.parser?(e.parser="__ng_interpolation",e.trailingComma="none"):"vue"===r.parser?e.parser="__vue_expression":e.parser="__js_expression",[ej([nj,n(o.value,e,{stripTrailingHardline:!0})]),o.parent.next&&Zj(o.parent.next)?" ":nj];}break;case"attribute":{if(!o.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(r.originalText.slice(o.valueSpan.start.offset,o.valueSpan.end.offset)))return[o.rawName,"=",o.value];if("lwc"===r.parser){if(/^{[\S\s]*}$/.test(r.originalText.slice(o.valueSpan.start.offset,o.valueSpan.end.offset)))return[o.rawName,"=",o.value];}const e=function(e,t,n){const r=t=>new RegExp(t.join("|")).test(e.fullName),o=()=>Pj(e.value);let i=!1;const u=(e,t)=>{const n="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;!n||"ObjectExpression"!==n.type&&"ArrayExpression"!==n.type&&("__vue_expression"!==t.parser||"TemplateLiteral"!==n.type&&"StringLiteral"!==n.type)||(i=!0);},s=e=>YI(e),a=(e,t=!0)=>YI([ej([oj,e]),t?oj:""]),c=e=>i?s(e):a(e),l=(e,n)=>t(e,Object.assign({__onHtmlBindingRoot:u,__embeddedInHtml:!0},n),{stripTrailingHardline:!0});if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return a(Vj(o()));if("class"===e.fullName&&!n.parentParser){const e=o();if(!e.includes("{{"))return $j(e);}if("style"===e.fullName&&!n.parentParser){const e=o();if(!e.includes("{{"))return a(l(e,{parser:"css",__isHTMLStyleAttribute:!0}));}if("vue"===n.parser){if("v-for"===e.fullName)return _j(o(),l);if(xj(e)||Sj(e,n))return Mj(o(),l);const t=["^:","^v-bind:"],i=["^v-"];if(r(["^@","^v-on:"])){const e=o();return c(l(e,{parser:Rj(e)?"__js_expression":"__vue_event_binding"}));}if(r(t))return c(l(o(),{parser:"__vue_expression"}));if(r(i))return c(l(o(),{parser:"__js_expression"}));}if("angular"===n.parser){const t=(e,t)=>l(e,Object.assign({},t,{trailingComma:"none"})),n=["^\\*"],i=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],u=["^i18n(-.+)?$"];if(r(["^\\(.+\\)$","^on-"]))return c(t(o(),{parser:"__ng_action"}));if(r(i))return c(t(o(),{parser:"__ng_binding"}));if(r(u)){const t=o().trim();return a(XI(cL(e,t)),!t.includes("@@"));}if(r(n))return c(t(o(),{parser:"__ng_directive"}));const s=/{{([\S\s]+?)}}/g,p=o();if(s.test(p)){const e=[];for(const[n,r]of p.split(s).entries())if(n%2==0)e.push(cj(r,rj));else try{e.push(YI(["{{",ej([nj,t(r,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),nj,"}}"]));}catch(t){e.push("{{",cj(r,rj),"}}");}return YI(e);}}return null;}(o,(e,t)=>n(e,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},t),{stripTrailingHardline:!0}),r);if(e)return[o.rawName,'="',YI(ij(e,e=>"string"==typeof e?e.replace(/"/g,"""):e)),'"'];break;}case"front-matter":return Xw(o,n);}}};const pL="HTML";var fL={htmlWhitespaceSensitivity:{since:"1.15.0",category:pL,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},vueIndentScriptAndStyle:{since:"1.19.0",category:pL,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},dL={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".htm",".html.hl",".inc",".xht",".xhtml"],languageId:146},hL={name:"Vue",type:"markup",color:"#2c3e50",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",languageId:391};var mL={languages:[df(dL,()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]})),df(dL,e=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[...e.extensions,".mjml"]})),df(dL,()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]})),df(hL,()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}))],printers:{html:lL},options:fL,parsers:{get html(){return{}.parsers.html;},get vue(){return{}.parsers.vue;},get angular(){return{}.parsers.angular;},get lwc(){return{}.parsers.lwc;}}};var gL={isPragma:function(e){return /^\s*@(prettier|format)\s*$/.test(e);},hasPragma:function(e){return /^\s*#[^\S\n]*@(prettier|format)\s*?(\n|$)/.test(e);},insertPragma:function(e){return"# @format\n\n".concat(e);}};var yL={locStart:function(e){return e.position.start.offset;},locEnd:function(e){return e.position.end.offset;}};var DL=function(e,t,n,r){if("root"===e.getValue().type&&r.filepath&&/(?:[/\\]|^)\.prettierrc$/.test(r.filepath))return n(r.originalText,Object.assign({},r,{parser:"json"}));};const{getLast:EL,isNonEmptyArray:bL}=rn;function CL(e,t){return e&&"string"==typeof e.type&&(!t||t.includes(e.type));}function vL(e){return"prettier-ignore"===e.value.trim();}function AL(e){return e&&bL(e.leadingComments);}function FL(e){return e&&bL(e.middleComments);}function xL(e){return e&&e.indicatorComment;}function SL(e){return e&&e.trailingComment;}function wL(e){return e&&bL(e.endComments);}function TL(e){const t=[];let n;for(const r of e.split(/( +)/g))" "!==r?" "===n?t.push(r):t.push((t.pop()||"")+r):void 0===n&&t.unshift(""),n=r;return" "===n&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t;}var BL={getLast:EL,getAncestorCount:function(e,t){let n=0;const r=e.stack.length-1;for(let o=0;o<r;o++){const r=e.stack[o];CL(r)&&t(r)&&n++;}return n;},isNode:CL,isEmptyNode:function(e){return!bL(e.children)&&!function(e){return AL(e)||FL(e)||xL(e)||SL(e)||wL(e);}(e);},isInlineNode:function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1;}},mapNode:function e(t,n,r){return n("children"in t?Object.assign({},t,{children:t.children.map(r=>e(r,n,t))}):t,r);},defineShortcut:function(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1});},isNextLineEmpty:function(e,t){let n=0;const r=t.length;for(let o=e.position.end.offset-1;o<r;o++){const e=t[o];if("\n"===e&&n++,1===n&&/\S/.test(e))return!1;if(2===n)return!0;}return!1;},isLastDescendantNode:function(e){switch(e.getValue().type){case"tag":case"anchor":case"comment":return!1;}const t=e.stack.length;for(let n=1;n<t;n++){const t=e.stack[n],r=e.stack[n-1];if(Array.isArray(r)&&"number"==typeof t&&t!==r.length-1)return!1;}return!0;},getBlockValueLineContents:function(e,{parentIndent:t,isLastDescendant:n,options:r}){const o=e.position.start.line===e.position.end.line?"":r.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*?\n([\S\s]*)$/)[1],i=null===e.indent?(u=o.match(/^( *)\S/m))?u[1].length:Number.POSITIVE_INFINITY:e.indent-1+t;var u;const s=o.split("\n").map(e=>e.slice(i));return"preserve"===r.proseWrap||"blockLiteral"===e.type?a(s.map(e=>0===e.length?[]:[e])):a(s.map(e=>0===e.length?[]:TL(e)).reduce((e,t,n)=>0!==n&&s[n-1].length>0&&t.length>0&&!/^\s/.test(t[0])&&!/^\s|\s$/.test(EL(e))?[...e.slice(0,-1),[...EL(e),...t]]:[...e,t],[]).map(e=>e.reduce((e,t)=>e.length>0&&/\s$/.test(EL(e))?[...e.slice(0,-1),EL(e)+" "+t]:[...e,t],[])).map(e=>"never"===r.proseWrap?[e.join(" ")]:e));function a(t){if("keep"===e.chomping)return 0===EL(t).length?t.slice(0,-1):t;let r=0;for(let e=t.length-1;e>=0&&0===t[e].length;e--)r++;return 0===r?t:r>=2&&!n?t.slice(0,-(r-1)):t.slice(0,-r);}},getFlowScalarLineContents:function(e,t,n){const r=t.split("\n").map((e,t,n)=>0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimEnd():e.trimStart());return"preserve"===n.proseWrap?r.map(e=>0===e.length?[]:[e]):r.map(e=>0===e.length?[]:TL(e)).reduce((t,n,o)=>0!==o&&r[o-1].length>0&&n.length>0&&("quoteDouble"!==e||!EL(EL(t)).endsWith("\\"))?[...t.slice(0,-1),[...EL(t),...n]]:[...t,n],[]).map(e=>"never"===n.proseWrap?[e.join(" ")]:e);},getLastDescendantNode:function e(t){return bL(t.children)?e(EL(t.children)):t;},hasPrettierIgnore:function(e){const t=e.getValue();if("documentBody"===t.type){const t=e.getParentNode();return wL(t.head)&&vL(EL(t.head.endComments));}return AL(t)&&vL(EL(t.leadingComments));},hasLeadingComments:AL,hasMiddleComments:FL,hasIndicatorComment:xL,hasTrailingComment:SL,hasEndComments:wL};const{defineShortcut:kL,mapNode:NL}=BL;function PL(e){switch(e.type){case"document":kL(e,"head",()=>e.children[0]),kL(e,"body",()=>e.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":kL(e,"content",()=>e.children[0]);break;case"mappingItem":case"flowMappingItem":kL(e,"key",()=>e.children[0]),kL(e,"value",()=>e.children[1]);}return e;}var OL=function(e){return NL(e,PL);};const{builders:{softline:IL,align:jL}}=Rn,{hasEndComments:LL,isNextLineEmpty:_L,isNode:ML}=BL,RL=new WeakMap();function VL(e){return LL(e)&&!ML(e,["documentHead","documentBody","flowMapping","flowSequence"]);}var $L={alignWithSpaces:function(e,t){return jL(" ".repeat(e),t);},shouldPrintEndComments:VL,printNextEmptyLine:function(e,t){const n=e.getValue(),r=e.stack[0];let o;return RL.has(r)?o=RL.get(r):(o=new Set(),RL.set(r,o)),o.has(n.position.end.line)||(o.add(n.position.end.line),!_L(n,t)||VL(e.getParentNode()))?"":IL;}};const{builders:{ifBreak:qL,line:WL,softline:UL,hardline:zL,join:HL}}=Rn,{isEmptyNode:GL,getLast:JL,hasEndComments:XL}=BL,{printNextEmptyLine:YL,alignWithSpaces:KL}=$L;function QL(e,t,n){const r=e.getValue(),o="flowMapping"===r.type,i=o?"{":"[",u=o?"}":"]";let s=UL;o&&r.children.length>0&&n.bracketSpacing&&(s=WL);const a=JL(r.children),c=a&&"flowMappingItem"===a.type&&GL(a.key)&&GL(a.value);return[i,KL(n.tabWidth,[s,ZL(e,t,n),"none"===n.trailingComma?"":qL(","),XL(r)?[zL,HL(zL,e.map(t,"endComments"))]:""]),c?"":s,u];}function ZL(e,t,n){const r=e.getValue();return e.map((e,o)=>[t(),o===r.children.length-1?"":[",",WL,r.children[o].position.start.line!==r.children[o+1].position.start.line?YL(e,n.originalText):""]],"children");}var e_={printFlowMapping:QL,printFlowSequence:QL};const{builders:{conditionalGroup:t_,group:n_,hardline:r_,ifBreak:o_,join:i_,line:u_}}=Rn,{hasLeadingComments:s_,hasMiddleComments:a_,hasTrailingComment:c_,hasEndComments:l_,isNode:p_,isEmptyNode:f_,isInlineNode:d_}=BL,{alignWithSpaces:h_}=$L;function m_(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1;}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes("\n");case"always":return!/[\n ]/.test(e.value);default:return!1;}}var g_=function(e,t,n,r,o){const{key:i,value:u}=e,s=f_(i),a=f_(u);if(s&&a)return": ";const c=r("key"),l=function(e){return e.key.content&&"alias"===e.key.content.type;}(e)?" ":"";if(a)return"flowMappingItem"===e.type&&"flowMapping"===t.type?c:"mappingItem"!==e.type||!m_(i.content,o)||c_(i.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?["? ",h_(2,c)]:[c,l,":"];const p=r("value");if(s)return[": ",h_(2,p)];if(s_(u)||!d_(i.content))return["? ",h_(2,c),r_,i_("",n.map(r,"value","leadingComments").map(e=>[e,r_])),": ",h_(2,p)];if(function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1;}}(i.content)&&!s_(i.content)&&!a_(i.content)&&!c_(i.content)&&!l_(i)&&!s_(u.content)&&!a_(u.content)&&!l_(u)&&m_(u.content,o))return[c,l,": ",p];const f=Symbol("mappingKey"),d=n_([o_("? "),n_(h_(2,c),{id:f})]),h=[r_,": ",h_(2,p)],m=[l,":"];s_(u.content)||l_(u)&&u.content&&!p_(u.content,["mapping","sequence"])||"mapping"===t.type&&c_(i.content)&&d_(u.content)||p_(u.content,["mapping","sequence"])&&null===u.content.tag&&null===u.content.anchor?m.push(r_):u.content&&m.push(u_),m.push(p);const g=h_(o.tabWidth,m);return t_([[d,o_(h,g,{groupId:f})]]);};const{builders:{dedent:y_,dedentToRoot:D_,fill:E_,hardline:b_,join:C_,line:v_,literalline:A_,markAsRoot:F_},utils:{getDocParts:x_}}=Rn,{getAncestorCount:S_,getBlockValueLineContents:w_,hasIndicatorComment:T_,isLastDescendantNode:B_,isNode:k_}=BL,{alignWithSpaces:N_}=$L;var P_=function(e,t,n){const r=e.getValue(),o=S_(e,e=>k_(e,["sequence","mapping"])),i=B_(e),u=["blockFolded"===r.type?">":"|"];null!==r.indent&&u.push(r.indent.toString()),"clip"!==r.chomping&&u.push("keep"===r.chomping?"+":"-"),T_(r)&&u.push(" ",t("indicatorComment"));const s=w_(r,{parentIndent:o,isLastDescendant:i,options:n}),a=[];for(const[e,t]of s.entries())0===e&&a.push(b_),a.push(E_(x_(C_(v_,t)))),e!==s.length-1?a.push(0===t.length?b_:F_(A_)):"keep"===r.chomping&&i&&a.push(D_(0===t.length?b_:A_));return null===r.indent?u.push(y_(N_(n.tabWidth,a))):u.push(D_(N_(r.indent-1+o,a))),u;};const{builders:{breakParent:O_,fill:I_,group:j_,hardline:L_,join:__,line:M_,lineSuffix:R_,literalline:V_},utils:{getDocParts:$_}}=Rn,{replaceEndOfLineWith:q_,isPreviousLineEmpty:W_}=rn,{insertPragma:U_,isPragma:z_}=gL,{locStart:H_}=yL,{getFlowScalarLineContents:G_,getLastDescendantNode:J_,hasLeadingComments:X_,hasMiddleComments:Y_,hasTrailingComment:K_,hasEndComments:Q_,hasPrettierIgnore:Z_,isLastDescendantNode:eM,isNode:tM,isInlineNode:nM}=BL,{alignWithSpaces:rM,printNextEmptyLine:oM,shouldPrintEndComments:iM}=$L,{printFlowMapping:uM,printFlowSequence:sM}=e_;function aM(e,t){return K_(e)||t&&(t.head.children.length>0||Q_(t.head));}function cM(e,t,n){const r=G_(e,t,n);return __(L_,r.map(e=>I_($_(__(M_,e)))));}var lM={preprocess:OL,embed:DL,print:function(e,t,n){const r=e.getValue(),o=[];"mappingValue"!==r.type&&X_(r)&&o.push([__(L_,e.map(n,"leadingComments")),L_]);const{tag:i,anchor:u}=r;i&&o.push(n("tag")),i&&u&&o.push(" "),u&&o.push(n("anchor"));let s="";tM(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!eM(e)&&(s=oM(e,t.originalText)),(i||u)&&(tM(r,["sequence","mapping"])&&!Y_(r)?o.push(L_):o.push(" ")),Y_(r)&&o.push([1===r.middleComments.length?"":L_,__(L_,e.map(n,"middleComments")),L_]);const a=e.getParentNode();return Z_(e)?o.push(q_(t.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd(),V_)):o.push(j_(function(e,t,n,r,o){switch(e.type){case"root":{const{children:t}=e,r=[];n.each((e,n)=>{const i=t[n],u=t[n+1];0!==n&&r.push(L_),r.push(o()),aM(i,u)?(r.push(L_,"..."),K_(i)&&r.push(" ",o("trailingComment"))):u&&!K_(u.head)&&r.push(L_,"---");},"children");const i=J_(e);return tM(i,["blockLiteral","blockFolded"])&&"keep"===i.chomping||r.push(L_),r;}case"document":{const i=[];return"head"===function(e,t,n,r){if(n.children[0]===e&&/---(\s|$)/.test(r.originalText.slice(H_(e),H_(e)+4))||e.head.children.length>0||Q_(e.head)||K_(e.head))return"head";if(aM(e,t))return!1;return!!t&&"root";}(e,t.children[n.getName()+1],t,r)&&((e.head.children.length>0||e.head.endComments.length>0)&&i.push(o("head")),K_(e.head)?i.push(["---"," ",o(["head","trailingComment"])]):i.push("---")),function(e){return e.body.children.length>0||Q_(e.body);}(e)&&i.push(o("body")),__(L_,i);}case"documentHead":return __(L_,[...n.map(o,"children"),...n.map(o,"endComments")]);case"documentBody":{const{children:t,endComments:r}=e;let i="";if(t.length>0&&r.length>0){const t=J_(e);tM(t,["blockFolded","blockLiteral"])?"keep"!==t.chomping&&(i=[L_,L_]):i=L_;}return[__(L_,n.map(o,"children")),i,__(L_,n.map(o,"endComments"))];}case"directive":return["%",__(" ",[e.name,...e.parameters])];case"comment":return["#",e.value];case"alias":return["*",e.value];case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return["&",e.value];case"plain":return cM(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":{const t="'",n='"',o=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&o.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(o)){const i="quoteDouble"===e.type?n:t;return[i,cM(e.type,o,r),i];}if(o.includes(n))return[t,cM(e.type,"quoteDouble"===e.type?o.replace(/\\"/g,n).replace(/'/g,t.repeat(2)):o,r),t];if(o.includes(t))return[n,cM(e.type,"quoteSingle"===e.type?o.replace(/''/g,t):o,r),n];const i=r.singleQuote?t:n;return[i,cM(e.type,o,r),i];}case"blockFolded":case"blockLiteral":return P_(n,o,r);case"mapping":case"sequence":return __(L_,n.map(o,"children"));case"sequenceItem":return["- ",rM(2,e.content?o("content"):"")];case"mappingKey":case"mappingValue":return e.content?o("content"):"";case"mappingItem":case"flowMappingItem":return g_(e,t,n,o,r);case"flowMapping":return uM(n,o,r);case"flowSequence":return sM(n,o,r);case"flowSequenceItem":return o("content");default:throw new Error("Unexpected node type ".concat(e.type));}}(r,a,e,t,n))),K_(r)&&!tM(r,["document","documentHead"])&&o.push(R_(["mappingValue"!==r.type||r.content?" ":"","mappingKey"===a.type&&"mapping"===e.getParentNode(2).type&&nM(r)?"":O_,n("trailingComment")])),iM(r)&&o.push(rM("sequenceItem"===r.type?2:0,[L_,__(L_,e.map(e=>[W_(t.originalText,e.getValue(),H_)?L_:"",n()],"endComments"))])),o.push(s),o;},massageAstNode:function(e,t){if(tM(t))switch(delete t.position,t.type){case"comment":if(z_(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote";}},insertPragma:U_},pM={bracketSpacing:Ow.bracketSpacing,singleQuote:Ow.singleQuote,proseWrap:Ow.proseWrap};var fM=[qw,GB,rN,FN,eO,mL,{languages:[df({name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407},e=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[...e.filenames.filter(e=>"yarn.lock"!==e),".prettierrc"]}))],printers:{yaml:lM},options:pM,parsers:{get yaml(){return{}.parsers.yaml;}}}];const{version:dM}=n,{getSupportInfo:hM}=Mt,mM=fM.map(t=>e(t,["parsers"]));function gM(e,t=1){return(...n)=>{const r=n[t]||{},o=r.plugins||[];return n[t]=Object.assign({},r,{plugins:[...mM,...(Array.isArray(o)?o:Object.values(o))]}),e(...n);};}const yM=gM($p.formatWithCursor);return{formatWithCursor:yM,format:(e,t)=>yM(e,t).formatted,check(e,t){const{formatted:n}=yM(e,t);return n===e;},doc:Rn,getSupportInfo:gM(hM,0),version:dM,util:ff,__debug:{parse:gM($p.parse),formatAST:gM($p.formatAST),formatDoc:gM($p.formatDoc),printToDoc:gM($p.printToDoc),printDocToString:gM($p.printDocToString)}};});})(standalone);var prettier=/*@__PURE__*/index.getDefaultExportFromCjs(standalone.exports);const formatter=memoize__default["default"](2)((type,source)=>{if(type===false){return source;}if(type==='dedent'||type===true){return index.dedent(source);}return prettier.format(source,{parser:type,plugins:[prettierHtml],htmlWhitespaceSensitivity:'ignore'}).trim();});exports.formatter=formatter;
|