@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,4 +1,4 @@
|
|
|
1
|
-
import"regenerator-runtime/runtime.js";function _wrapNativeSuper(Class){var _cache=typeof Map==="function"?new Map():undefined;_wrapNativeSuper=function _wrapNativeSuper(Class){if(Class===null||!_isNativeFunction(Class))return Class;if(typeof Class!=="function"){throw new TypeError("Super expression must either be null or a function");}if(typeof _cache!=="undefined"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper);}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,Class);};return _wrapNativeSuper(Class);}function _construct(Parent,args,Class){if(_isNativeReflectConstruct()){_construct=Reflect.construct;}else{_construct=function _construct(Parent,args,Class){var a=[null];a.push.apply(a,args);var Constructor=Function.bind.apply(Parent,a);var instance=new Constructor();if(Class)_setPrototypeOf(instance,Class.prototype);return instance;};}return _construct.apply(null,arguments);}function _isNativeFunction(fn){return Function.toString.call(fn).indexOf("[native code]")!==-1;}function _toArray(arr){return _arrayWithHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableRest();}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get;}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e217){throw _e217;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e218){didErr=true;err=_e218;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++){arr2[i]=arr[i];}return arr2;}function _iterableToArrayLimit(arr,i){var _i=arr==null?null:typeof Symbol!=="undefined"&&arr[Symbol.iterator]||arr["@@iterator"];if(_i==null)return;var _arr=[];var _n=true;var _d=false;var _s,_e;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"]!=null)_i["return"]();}finally{if(_d)throw _e;}}return _arr;}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}import"core-js/modules/esnext.global-this.js";import"core-js/modules/es.function.name.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.map.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.string.trim.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.object.get-prototype-of.js";import"core-js/modules/es.array.map.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.string.split.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.set.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.number.is-nan.js";import"core-js/modules/es.number.constructor.js";import"core-js/modules/es.string.code-point-at.js";import"core-js/modules/es.object.freeze.js";import"core-js/modules/es.number.max-safe-integer.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.weak-map.js";import"core-js/modules/es.array.sort.js";import"core-js/modules/es.object.entries.js";import"core-js/modules/es.object.assign.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.string.starts-with.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"core-js/modules/es.string.ends-with.js";import"core-js/modules/es.string.from-code-point.js";import"core-js/modules/es.array.splice.js";import"core-js/modules/es.symbol.iterator.js";import"core-js/modules/web.url.to-json.js";import"core-js/modules/es.array.from.js";import"core-js/modules/es.array.fill.js";import"core-js/modules/es.string.repeat.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array-buffer.constructor.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/es.symbol.async-iterator.js";import"core-js/modules/es.typed-array.uint16-array.js";import"core-js/modules/es.number.is-integer.js";import"core-js/modules/es.regexp.flags.js";import"core-js/modules/es.string.bold.js";import"core-js/modules/es.object.get-own-property-names.js";import"core-js/modules/es.typed-array.float32-array.js";import"core-js/modules/es.typed-array.float64-array.js";import"core-js/modules/es.string.search.js";import"core-js/modules/es.string.trim-end.js";import"core-js/modules/es.object.values.js";import"core-js/modules/es.string.trim-start.js";import"core-js/modules/es.array.find-index.js";import"core-js/modules/es.string.anchor.js";import"core-js/modules/es.reflect.construct.js";import"core-js/modules/es.reflect.get.js";import{c as commonjsGlobal,g as getDefaultExportFromCjs,m as memoizerific,d as dedent}from'./index-f6d446d8.js';import'react';import'@storybook/theming';import'@storybook/csf';import'qs';import'@storybook/client-logger';var parserHtml={exports:{}};(function(module,exports){!function(e,t){module.exports=t();}(commonjsGlobal,function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?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;}/**
|
|
1
|
+
import"regenerator-runtime/runtime.js";function _wrapNativeSuper(Class){var _cache=typeof Map==="function"?new Map():undefined;_wrapNativeSuper=function _wrapNativeSuper(Class){if(Class===null||!_isNativeFunction(Class))return Class;if(typeof Class!=="function"){throw new TypeError("Super expression must either be null or a function");}if(typeof _cache!=="undefined"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper);}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,Class);};return _wrapNativeSuper(Class);}function _construct(Parent,args,Class){if(_isNativeReflectConstruct()){_construct=Reflect.construct;}else{_construct=function _construct(Parent,args,Class){var a=[null];a.push.apply(a,args);var Constructor=Function.bind.apply(Parent,a);var instance=new Constructor();if(Class)_setPrototypeOf(instance,Class.prototype);return instance;};}return _construct.apply(null,arguments);}function _isNativeFunction(fn){return Function.toString.call(fn).indexOf("[native code]")!==-1;}function _toArray(arr){return _arrayWithHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableRest();}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get;}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e217){throw _e217;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e218){didErr=true;err=_e218;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++){arr2[i]=arr[i];}return arr2;}function _iterableToArrayLimit(arr,i){var _i=arr==null?null:typeof Symbol!=="undefined"&&arr[Symbol.iterator]||arr["@@iterator"];if(_i==null)return;var _arr=[];var _n=true;var _d=false;var _s,_e;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"]!=null)_i["return"]();}finally{if(_d)throw _e;}}return _arr;}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}import"core-js/modules/esnext.global-this.js";import"core-js/modules/es.function.name.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.map.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.string.trim.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.object.get-prototype-of.js";import"core-js/modules/es.array.map.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.string.split.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.set.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.number.is-nan.js";import"core-js/modules/es.number.constructor.js";import"core-js/modules/es.string.code-point-at.js";import"core-js/modules/es.object.freeze.js";import"core-js/modules/es.number.max-safe-integer.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.weak-map.js";import"core-js/modules/es.array.sort.js";import"core-js/modules/es.object.entries.js";import"core-js/modules/es.object.assign.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.string.starts-with.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"core-js/modules/es.string.ends-with.js";import"core-js/modules/es.string.from-code-point.js";import"core-js/modules/es.array.splice.js";import"core-js/modules/es.symbol.iterator.js";import"core-js/modules/web.url.to-json.js";import"core-js/modules/es.array.from.js";import"core-js/modules/es.array.fill.js";import"core-js/modules/es.string.repeat.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array-buffer.constructor.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/es.symbol.async-iterator.js";import"core-js/modules/es.typed-array.uint16-array.js";import"core-js/modules/es.number.is-integer.js";import"core-js/modules/es.regexp.flags.js";import"core-js/modules/es.string.bold.js";import"core-js/modules/es.object.get-own-property-names.js";import"core-js/modules/es.typed-array.float32-array.js";import"core-js/modules/es.typed-array.float64-array.js";import"core-js/modules/es.string.search.js";import"core-js/modules/es.string.trim-end.js";import"core-js/modules/es.object.values.js";import"core-js/modules/es.string.trim-start.js";import"core-js/modules/es.array.find-index.js";import"core-js/modules/es.string.anchor.js";import"core-js/modules/es.reflect.construct.js";import"core-js/modules/es.reflect.get.js";import memoize from'memoizerific';import{c as commonjsGlobal,g as getDefaultExportFromCjs,d as dedent}from'./index-b45716e8.js';import'react';import'@storybook/theming';import'@storybook/csf';import'qs';import'@storybook/client-logger';var parserHtml={exports:{}};(function(module,exports){!function(e,t){module.exports=t();}(commonjsGlobal,function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?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 @@ import"regenerator-runtime/runtime.js";function _wrapNativeSuper(Class){var _cac
|
|
|
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
|
-
*/var n=/*#__PURE__*/function(){function n(e,t,_n117,r){_classCallCheck(this,n);this.file=e,this.offset=t,this.line=_n117,this.col=r;}_createClass(n,[{key:"toString",value:function toString(){return null!=this.offset?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url;}},{key:"moveBy",value:function moveBy(e){var t=this.file.content,r=t.length;var o=this.offset,i=this.line,u=this.col;for(;o>0&&e<0;){o--,e++;if(t.charCodeAt(o)==MO.$LF){i--;var _e198=t.substr(0,o-1).lastIndexOf(String.fromCharCode(MO.$LF));u=_e198>0?o-_e198:o;}else u--;}for(;o<r&&e>0;){var _n120=t.charCodeAt(o);o++,e--,_n120==MO.$LF?(i++,u=0):u++;}return new n(this.file,o,i,u);}},{key:"getContext",value:function getContext(e,t){var _n119=this.file.content;var r=this.offset;if(null!=r){r>_n119.length-1&&(r=_n119.length-1);var _o71=r,_i88=0,_u35=0;for(;_i88<e&&r>0&&(r--,_i88++,"\n"!=_n119[r]||++_u35!=t);){;}for(_i88=0,_u35=0;_i88<e&&_o71<_n119.length-1&&(_o71++,_i88++,"\n"!=_n119[_o71]||++_u35!=t);){;}return{before:_n119.substring(r,this.offset),after:_n119.substring(this.offset,_o71+1)};}return null;}}]);return n;}();t.ParseLocation=n;var r=/*#__PURE__*/_createClass(function r(e,t){_classCallCheck(this,r);this.content=e,this.url=t;});t.ParseSourceFile=r;var o=/*#__PURE__*/function(){function o(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;_classCallCheck(this,o);this.start=e,this.end=t,this.details=n;}_createClass(o,[{key:"toString",value:function toString(){return this.start.file.content.substring(this.start.offset,this.end.offset);}}]);return o;}();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=/*#__PURE__*/function(){function _class18(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:i.ERROR;_classCallCheck(this,_class18);this.span=e,this.msg=t,this.level=n;}_createClass(_class18,[{key:"contextualMessage",value:function contextualMessage(){var e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(i[this.level]," ->]").concat(e.after,'")'):this.msg;}},{key:"toString",value:function toString(){var e=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(e);}}]);return _class18;}(),t.typeSourceSpan=function(e,t){var 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){var 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));};});var bI=EI.ParseSourceSpan,CI=_O.htmlTrim,vI=_O.getLeadingAndTrailingHtmlWhitespace,AI=_O.hasHtmlWhitespace,FI=_O.canHaveInterpolation,xI=_O.getNodeCssStyleDisplay,SI=_O.isDanglingSpaceSensitiveNode,wI=_O.isIndentationSensitiveNode,TI=_O.isLeadingSpaceSensitiveNode,BI=_O.isTrailingSpaceSensitiveNode,kI=_O.isWhitespaceSensitiveNode,NI=[function(e){return e.map(function(e){if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){var _e$children2=_toArray(e.children),_t172=_e$children2[0],_n121=_e$children2.slice(1);return e.clone({children:1===_t172.value.length?_n121:[_t172.clone({value:_t172.value.slice(1)})].concat(_toConsumableArray(_n121))});}return e;});},function(e){var t=function t(e){return"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(function(e){if(e.children){var _n122=e.children.map(t);if(_n122.some(Boolean)){var _t173=[];for(var _r119=0;_r119<e.children.length;_r119++){var _o72=e.children[_r119];if(!_n122[_r119+1])if(_n122[_r119]){var _e199=_o72.prev,_n123=_o72.firstChild,_r120=new bI(_e199.sourceSpan.start,_n123.sourceSpan.end),_i89=new bI(_r120.start,_o72.sourceSpan.end);_t173.push(_o72.clone({condition:_e199.condition,sourceSpan:_i89,startSourceSpan:_r120,children:_o72.children.slice(1)}));}else _t173.push(_o72);}return e.clone({children:_t173});}}return e;});},function(e){return function(e,t,n){return e.map(function(e){if(e.children){var _r121=e.children.map(t);if(_r121.some(Boolean)){var _t174=[];for(var _o73=0;_o73<e.children.length;_o73++){var _i90=e.children[_o73];if("text"!==_i90.type&&!_r121[_o73]){_t174.push(_i90);continue;}var _u36="text"===_i90.type?_i90:_i90.clone({type:"text",value:n(_i90)});if(0===_t174.length||"text"!==ke(_t174).type){_t174.push(_u36);continue;}var _s35=_t174.pop();_t174.push(_s35.clone({value:_s35.value+_u36.value,sourceSpan:new bI(_s35.sourceSpan.start,_u36.sourceSpan.end)}));}return e.clone({children:_t174});}}return e;});}(e,function(e){return"cdata"===e.type;},function(e){return"<![CDATA[".concat(e.value,"]]>");});},function(e,t){if("html"===t.parser)return e;var n=/{{([\S\s]+?)}}/g;return e.map(function(e){if(!FI(e))return e;var t=[];var _iterator73=_createForOfIteratorHelper(e.children),_step73;try{for(_iterator73.s();!(_step73=_iterator73.n()).done;){var _r122=_step73.value;if("text"!==_r122.type){t.push(_r122);continue;}var _e200=_r122.sourceSpan.start,_o74=null;var _i91=_r122.value.split(n);for(var _n124=0;_n124<_i91.length;_n124++,_e200=_o74){var _r123=_i91[_n124];_n124%2!=0?(_o74=_e200.moveBy(_r123.length+4),t.push({type:"interpolation",sourceSpan:new bI(_e200,_o74),children:0===_r123.length?[]:[{type:"text",value:_r123,sourceSpan:new bI(_e200.moveBy(2),_o74.moveBy(-2))}]})):(_o74=_e200.moveBy(_r123.length),_r123.length>0&&t.push({type:"text",value:_r123,sourceSpan:new bI(_e200,_o74)}));}}}catch(err){_iterator73.e(err);}finally{_iterator73.f();}return e.clone({children:t});});},function(e){var t="whitespace";return e.map(function(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});var n=kI(e),r=wI(e);return e.clone({isWhitespaceSensitive:n,isIndentationSensitive:r,children:e.children.reduce(function(e,r){if("text"!==r.type||n)return[].concat(_toConsumableArray(e),[r]);var o=[],_vI=vI(r.value),i=_vI.leadingWhitespace,u=_vI.text,s=_vI.trailingWhitespace;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}),[].concat(_toConsumableArray(e),o);},[]).reduce(function(e,n,r,o){if(n.type===t)return e;var i=0!==r&&o[r-1].type===t,u=r!==o.length-1&&o[r+1].type===t;return[].concat(_toConsumableArray(e),[Object.assign({},n,{hasLeadingSpaces:i,hasTrailingSpaces:u})]);},[])});});},function(e,t){return e.map(function(e){return Object.assign(e,{cssDisplay:xI(e,t)});});},function(e){return e.map(function(e){return Object.assign(e,{isSelfClosing:!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)});});},function(e,t){return e.map(function(e){return"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(function(e){return e.children?0===e.children.length?e.clone({isDanglingSpaceSensitive:SI(e)}):e.clone({children:e.children.map(function(e){return Object.assign({},e,{isLeadingSpaceSensitive:TI(e,t),isTrailingSpaceSensitive:BI(e,t)});}).map(function(e,t,n){return 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){var t=function t(e){return"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(function(e){if(e.children){var _n125=e.children.map(t);if(_n125.some(Boolean)){var _t175=[];for(var _r124=0;_r124<e.children.length;_r124++){var _o75=e.children[_r124];if(_n125[_r124]){var _n126=_t175.pop(),_i92=e.children[++_r124],_u37=_i92.isTrailingSpaceSensitive,_s36=_i92.hasTrailingSpaces;_t175.push(_n126.clone({value:_n126.value+"<".concat(_o75.rawName,">")+_o75.firstChild.value+"</".concat(_o75.rawName,">")+_i92.value,sourceSpan:new bI(_n126.sourceSpan.start,_i92.sourceSpan.end),isTrailingSpaceSensitive:_u37,hasTrailingSpaces:_s36}));}else _t175.push(_o75);}return e.clone({children:_t175});}}return e;});}];var PI=function PI(e,t){var _iterator74=_createForOfIteratorHelper(NI),_step74;try{for(_iterator74.s();!(_step74=_iterator74.n()).done;){var _n127=_step74.value;e=_n127(e,t);}}catch(err){_iterator74.e(err);}finally{_iterator74.f();}return e;};var OI={hasPragma:function hasPragma(e){return /^\s*<!--\s*@(format|prettier)\s*-->/.test(e);},insertPragma:function insertPragma(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"");}};var II={locStart:function locStart(e){return e.sourceSpan.start.offset;},locEnd:function locEnd(e){return e.sourceSpan.end.offset;}};var jI=Rn.builders.group;var LI={isVueEventBindingExpression:function isVueEventBindingExpression(e){var 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 printVueFor(e,t){var _ref116=function(e){var t=/([^]*?)\s+(in|of)\s+([^]*)/,n=/,([^,\]}]*)(?:,([^,\]}]*))?$/,r=/^\(|\)$/g,o=e.match(t);if(!o)return;var i={};i.for=o[3].trim();var 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),n=_ref116.left,r=_ref116.operator,o=_ref116.right;return[jI(t("function _(".concat(n,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",r," ",t(o,{parser:"__js_expression"},{stripTrailingHardline:!0})];},printVueBindings:function printVueBindings(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));}};});});var _Rn$builders40=Rn.builders,MI=_Rn$builders40.group,RI=_Rn$builders40.ifBreak,VI=_Rn$builders40.indent,$I=_Rn$builders40.join,qI=_Rn$builders40.line,WI=_Rn$builders40.softline;var UI=["__","--","_","-"];function zI(e){var t=e.search(/[^_-]/);if(-1!==t){var _iterator75=_createForOfIteratorHelper(UI),_step75;try{for(_iterator75.s();!(_step75=_iterator75.n()).done;){var _n128=_step75.value;var _r125=e.indexOf(_n128,t);if(-1!==_r125)return e.slice(0,_r125);}}catch(err){_iterator75.e(err);}finally{_iterator75.f();}}return e;}var HI={printImgSrcset:function printImgSrcset(e){var t=_I(e,{logger:{error:function error(e){throw new Error(e);}}}),n=t.some(function(_ref117){var e=_ref117.w;return e;}),r=t.some(function(_ref118){var e=_ref118.h;return e;});if(n+r+t.some(function(_ref119){var e=_ref119.d;return e;})>1)throw new Error("Mixed descriptor in srcset is not supported");var o=n?"w":r?"h":"d",i=n?"w":r?"h":"x",u=function u(e){return Math.max.apply(Math,_toConsumableArray(e));},s=t.map(function(e){return e.url;}),a=u(s.map(function(e){return e.length;})),c=t.map(function(e){return e[o];}).map(function(e){return e?e.toString():"";}),l=c.map(function(e){var t=e.indexOf(".");return-1===t?e.length:t;}),p=u(l);return $I([",",qI],s.map(function(e,t){var n=[e],r=c[t];if(r){var _o76=a-e.length+1,_u38=p-l[t],_s37=" ".repeat(_o76+_u38);n.push(RI(_s37," "),r+i);}return n;}));},printClassNames:function printClassNames(e){var t=e.trim().split(/\s+/),n=[];var r;for(var _e201=0;_e201<t.length;_e201++){var _o77=zI(t[_e201]);_o77!==r&&_o77!==t[_e201-1]&&n.push([]),ke(n).push(t[_e201]),r=_o77;}return[VI([WI,$I(qI,n.map(function(e){return MI($I(qI,e));}))]),WI];}};var _Rn$builders41=Rn.builders,GI=_Rn$builders41.breakParent,JI=_Rn$builders41.dedentToRoot,XI=_Rn$builders41.fill,YI=_Rn$builders41.group,KI=_Rn$builders41.hardline,QI=_Rn$builders41.ifBreak,ZI=_Rn$builders41.indentIfBreak,ej=_Rn$builders41.indent,tj=_Rn$builders41.join,nj=_Rn$builders41.line,rj=_Rn$builders41.literalline,oj=_Rn$builders41.softline,_Rn$utils5=Rn.utils,ij=_Rn$utils5.mapDoc,uj=_Rn$utils5.cleanDoc,sj=_Rn$utils5.getDocParts,aj=_Rn$utils5.isConcat,cj=rn.replaceEndOfLineWith,lj=rn.isNonEmptyArray,pj=_O.htmlTrimPreserveIndentation,fj=_O.splitByHtmlWhitespace,dj=_O.countChars,hj=_O.countParents,mj=_O.dedentString,gj=_O.forceBreakChildren,yj=_O.forceBreakContent,Dj=_O.forceNextEmptyLine,Ej=_O.getLastDescendant,bj=_O.getPrettierIgnoreAttributeCommentData,Cj=_O.hasPrettierIgnore,vj=_O.inferScriptParser,Aj=_O.isVueCustomBlock,Fj=_O.isVueNonHtmlBlock,xj=_O.isVueSlotAttribute,Sj=_O.isVueSfcBindingsAttribute,wj=_O.isScriptLikeTag,Tj=_O.isTextLikeNode,Bj=_O.preferHardlineAsLeadingSpaces,kj=_O.shouldNotPrintClosingTag,Nj=_O.shouldPreserveContent,Pj=_O.unescapeQuoteEntities,Oj=_O.isPreLikeNode,Ij=OI.insertPragma,jj=II.locStart,Lj=II.locEnd,_j=LI.printVueFor,Mj=LI.printVueBindings,Rj=LI.isVueEventBindingExpression,Vj=HI.printImgSrcset,$j=HI.printClassNames;function qj(e,t,n){var r=e.getValue();if(gj(r))return[GI].concat(_toConsumableArray(e.map(function(e){var t=e.getValue(),n=t.prev?u(t.prev,t):"";return[n?[n,Dj(t.prev)?KI:""]:"",i(e)];},"children")));var o=r.children.map(function(){return Symbol("");});return e.map(function(e,t){var n=e.getValue();if(Tj(n)){if(n.prev&&Tj(n.prev)){var _t176=u(n.prev,n);if(_t176)return Dj(n.prev)?[KI,KI,i(e)]:[_t176,i(e)];}return i(e);}var 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)),[].concat(r,[YI([].concat(s,[YI([i(e)].concat(a),{id:o[t]})]))],c);},"children");function i(e){var r=e.getValue();return Cj(r)?[nL(r,t)].concat(_toConsumableArray(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){var n=e.startSourceSpan.end.offset;e.firstChild&&Qj(e.firstChild)&&(n-=uL(e).length);var 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){var r=e.getValue();if(!lj(r.attrs))return r.isSelfClosing?" ":"";var o=r.prev&&"comment"===r.prev.type&&bj(r.prev.value),i="boolean"==typeof o?function(){return o;}:Array.isArray(o)?function(e){return o.includes(e.rawName);}:function(){return!1;},u=e.map(function(e){var 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){var 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){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]: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 print(e,t,n){var 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))].concat(_toConsumableArray(cj(Wj(r,t),rj)),_toConsumableArray(Jj(r,t)),[oL(r,t)]);var _i93=1===r.children.length&&"interpolation"===r.firstChild.type&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,_u39=Symbol("element-attr-group-id");return[YI([YI(zj(e,t,n),{id:_u39}),0===r.children.length?r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?nj:"":[yj(r)?GI:"",(o=[_i93?QI(oj,"",{groupId:_u39}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?nj:"text"===r.firstChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive?JI(oj):oj,qj(e,t,n)],_i93?ZI(o,{groupId:_u39}):!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?" ":"":_i93?QI(oj,"",{groupId:_u39}):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,function(e){return 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)].concat(_toConsumableArray(e.map(n,"children")),[Yj(r,t)]);case"text":{if("interpolation"===r.parent.type){var _e203=/\n[^\S\n]*?$/,_t177=_e203.test(r.value),_n129=_t177?r.value.replace(_e203,""):r.value;return[].concat(_toConsumableArray(cj(_n129,rj)),[_t177?KI:""]);}var _e202=uj([nL(r,t)].concat(_toConsumableArray(cL(r)),[oL(r,t)]));return aj(_e202)||"fill"===_e202.type?XI(sj(_e202)):_e202;}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)].concat(_toConsumableArray(cj(t.originalText.slice(jj(r),Lj(r)),rj)),[oL(r,t)]);case"attribute":{if(null===r.value)return r.rawName;var _e204=Pj(r.value),_t178=dj(_e204,"'")<dj(_e204,'"')?"'":'"';return[r.rawName,"=",_t178].concat(_toConsumableArray(cj('"'===_t178?_e204.replace(/"/g,"""):_e204.replace(/'/g,"'"),rj)),[_t178]);}default:throw new Error("Unexpected node type ".concat(r.type));}var o;},insertPragma:Ij,massageAstNode:oO,embed:function embed(e,t,n,r){var o=e.getValue();switch(o.type){case"element":if(wj(o)||"interpolation"===o.type)return;if(!o.isSelfClosing&&Fj(o,r)){var _i94=vj(o,r);if(!_i94)return;var _u40=Wj(o,r);var _s38=/^\s*$/.test(_u40),_a18="";return _s38||(_a18=n(pj(_u40),{parser:_i94,__embeddedInHtml:!0},{stripTrailingHardline:!0}),_s38=""===_a18),[nL(o,r),YI(zj(e,r,t)),_s38?"":KI,_a18,_s38?"":KI,Jj(o,r),oL(o,r)];}break;case"text":if(wj(o.parent)){var _e205=vj(o.parent);if(_e205){var _t179="markdown"===_e205?mj(o.value.replace(/^[^\S\n]*?\n/,"")):o.value,_i95={parser:_e205,__embeddedInHtml:!0};if("html"===r.parser&&"babel"===_e205){var _e206="script";var _t180=o.parent.attrMap;_t180&&("module"===_t180.type||"text/babel"===_t180.type&&"module"===_t180["data-type"])&&(_e206="module"),_i95.__babelSourceType=_e206;}return[GI,nL(o,r),n(_t179,_i95,{stripTrailingHardline:!0}),oL(o,r)];}}else if("interpolation"===o.parent.type){var _e207={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return"angular"===r.parser?(_e207.parser="__ng_interpolation",_e207.trailingComma="none"):"vue"===r.parser?_e207.parser="__vue_expression":_e207.parser="__js_expression",[ej([nj,n(o.value,_e207,{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];}var _e208=function(e,t,n){var r=function r(t){return new RegExp(t.join("|")).test(e.fullName);},o=function o(){return Pj(e.value);};var i=!1;var u=function u(e,t){var 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=function s(e){return YI(e);},a=function a(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!0;return YI([ej([oj,e]),t?oj:""]);},c=function c(e){return i?s(e):a(e);},l=function l(e,n){return 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){var _e209=o();if(!_e209.includes("{{"))return $j(_e209);}if("style"===e.fullName&&!n.parentParser){var _e210=o();if(!_e210.includes("{{"))return a(l(_e210,{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);var _t181=["^:","^v-bind:"],_i96=["^v-"];if(r(["^@","^v-on:"])){var _e211=o();return c(l(_e211,{parser:Rj(_e211)?"__js_expression":"__vue_event_binding"}));}if(r(_t181))return c(l(o(),{parser:"__vue_expression"}));if(r(_i96))return c(l(o(),{parser:"__js_expression"}));}if("angular"===n.parser){var _t182=function _t182(e,t){return l(e,Object.assign({},t,{trailingComma:"none"}));},_n130=["^\\*"],_i97=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],_u41=["^i18n(-.+)?$"];if(r(["^\\(.+\\)$","^on-"]))return c(_t182(o(),{parser:"__ng_action"}));if(r(_i97))return c(_t182(o(),{parser:"__ng_binding"}));if(r(_u41)){var _t183=o().trim();return a(XI(cL(e,_t183)),!_t183.includes("@@"));}if(r(_n130))return c(_t182(o(),{parser:"__ng_directive"}));var _s39=/{{([\S\s]+?)}}/g,_p14=o();if(_s39.test(_p14)){var _e212=[];var _iterator76=_createForOfIteratorHelper(_p14.split(_s39).entries()),_step76;try{for(_iterator76.s();!(_step76=_iterator76.n()).done;){var _step76$value=_slicedToArray(_step76.value,2),_n131=_step76$value[0],_r126=_step76$value[1];if(_n131%2==0)_e212.push(cj(_r126,rj));else try{_e212.push(YI(["{{",ej([nj,_t182(_r126,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),nj,"}}"]));}catch(t){_e212.push("{{",cj(_r126,rj),"}}");}}}catch(err){_iterator76.e(err);}finally{_iterator76.f();}return YI(_e212);}}return null;}(o,function(e,t){return n(e,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},t),{stripTrailingHardline:!0});},r);if(_e208)return[o.rawName,'="',YI(ij(_e208,function(e){return"string"==typeof e?e.replace(/"/g,"""):e;})),'"'];break;}case"front-matter":return Xw(o,n);}}};var 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,function(){return{name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]};}),df(dL,function(e){return{since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[].concat(_toConsumableArray(e.extensions),[".mjml"])};}),df(dL,function(){return{name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]};}),df(hL,function(){return{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 isPragma(e){return /^\s*@(prettier|format)\s*$/.test(e);},hasPragma:function hasPragma(e){return /^\s*#[^\S\n]*@(prettier|format)\s*?(\n|$)/.test(e);},insertPragma:function insertPragma(e){return"# @format\n\n".concat(e);}};var yL={locStart:function locStart(e){return e.position.start.offset;},locEnd:function locEnd(e){return e.position.end.offset;}};var DL=function DL(e,t,n,r){if("root"===e.getValue().type&&r.filepath&&/(?:[/\\]|^)\.prettierrc$/.test(r.filepath))return n(r.originalText,Object.assign({},r,{parser:"json"}));};var EL=rn.getLast,bL=rn.isNonEmptyArray;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){var t=[];var n;var _iterator77=_createForOfIteratorHelper(e.split(/( +)/g)),_step77;try{for(_iterator77.s();!(_step77=_iterator77.n()).done;){var _r127=_step77.value;" "!==_r127?" "===n?t.push(_r127):t.push((t.pop()||"")+_r127):void 0===n&&t.unshift(""),n=_r127;}}catch(err){_iterator77.e(err);}finally{_iterator77.f();}return" "===n&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t;}var BL={getLast:EL,getAncestorCount:function getAncestorCount(e,t){var n=0;var r=e.stack.length-1;for(var _o78=0;_o78<r;_o78++){var _r128=e.stack[_o78];CL(_r128)&&t(_r128)&&n++;}return n;},isNode:CL,isEmptyNode:function isEmptyNode(e){return!bL(e.children)&&!function(e){return AL(e)||FL(e)||xL(e)||SL(e)||wL(e);}(e);},isInlineNode:function isInlineNode(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(function(r){return e(r,n,t);})}):t,r);},defineShortcut:function defineShortcut(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1});},isNextLineEmpty:function isNextLineEmpty(e,t){var n=0;var r=t.length;for(var _o79=e.position.end.offset-1;_o79<r;_o79++){var _e213=t[_o79];if("\n"===_e213&&n++,1===n&&/\S/.test(_e213))return!1;if(2===n)return!0;}return!1;},isLastDescendantNode:function isLastDescendantNode(e){switch(e.getValue().type){case"tag":case"anchor":case"comment":return!1;}var t=e.stack.length;for(var _n132=1;_n132<t;_n132++){var _t184=e.stack[_n132],_r129=e.stack[_n132-1];if(Array.isArray(_r129)&&"number"==typeof _t184&&_t184!==_r129.length-1)return!1;}return!0;},getBlockValueLineContents:function getBlockValueLineContents(e,_ref120){var t=_ref120.parentIndent,n=_ref120.isLastDescendant,r=_ref120.options;var 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;var s=o.split("\n").map(function(e){return e.slice(i);});return"preserve"===r.proseWrap||"blockLiteral"===e.type?a(s.map(function(e){return 0===e.length?[]:[e];})):a(s.map(function(e){return 0===e.length?[]:TL(e);}).reduce(function(e,t,n){return 0!==n&&s[n-1].length>0&&t.length>0&&!/^\s/.test(t[0])&&!/^\s|\s$/.test(EL(e))?[].concat(_toConsumableArray(e.slice(0,-1)),[[].concat(_toConsumableArray(EL(e)),_toConsumableArray(t))]):[].concat(_toConsumableArray(e),[t]);},[]).map(function(e){return e.reduce(function(e,t){return e.length>0&&/\s$/.test(EL(e))?[].concat(_toConsumableArray(e.slice(0,-1)),[EL(e)+" "+t]):[].concat(_toConsumableArray(e),[t]);},[]);}).map(function(e){return"never"===r.proseWrap?[e.join(" ")]:e;}));function a(t){if("keep"===e.chomping)return 0===EL(t).length?t.slice(0,-1):t;var r=0;for(var _e214=t.length-1;_e214>=0&&0===t[_e214].length;_e214--){r++;}return 0===r?t:r>=2&&!n?t.slice(0,-(r-1)):t.slice(0,-r);}},getFlowScalarLineContents:function getFlowScalarLineContents(e,t,n){var r=t.split("\n").map(function(e,t,n){return 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(function(e){return 0===e.length?[]:[e];}):r.map(function(e){return 0===e.length?[]:TL(e);}).reduce(function(t,n,o){return 0!==o&&r[o-1].length>0&&n.length>0&&("quoteDouble"!==e||!EL(EL(t)).endsWith("\\"))?[].concat(_toConsumableArray(t.slice(0,-1)),[[].concat(_toConsumableArray(EL(t)),_toConsumableArray(n))]):[].concat(_toConsumableArray(t),[n]);},[]).map(function(e){return"never"===n.proseWrap?[e.join(" ")]:e;});},getLastDescendantNode:function e(t){return bL(t.children)?e(EL(t.children)):t;},hasPrettierIgnore:function hasPrettierIgnore(e){var t=e.getValue();if("documentBody"===t.type){var _t185=e.getParentNode();return wL(_t185.head)&&vL(EL(_t185.head.endComments));}return AL(t)&&vL(EL(t.leadingComments));},hasLeadingComments:AL,hasMiddleComments:FL,hasIndicatorComment:xL,hasTrailingComment:SL,hasEndComments:wL};var kL=BL.defineShortcut,NL=BL.mapNode;function PL(e){switch(e.type){case"document":kL(e,"head",function(){return e.children[0];}),kL(e,"body",function(){return e.children[1];});break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":kL(e,"content",function(){return e.children[0];});break;case"mappingItem":case"flowMappingItem":kL(e,"key",function(){return e.children[0];}),kL(e,"value",function(){return e.children[1];});}return e;}var OL=function OL(e){return NL(e,PL);};var _Rn$builders42=Rn.builders,IL=_Rn$builders42.softline,jL=_Rn$builders42.align,LL=BL.hasEndComments,_L=BL.isNextLineEmpty,ML=BL.isNode,RL=new WeakMap();function VL(e){return LL(e)&&!ML(e,["documentHead","documentBody","flowMapping","flowSequence"]);}var $L={alignWithSpaces:function alignWithSpaces(e,t){return jL(" ".repeat(e),t);},shouldPrintEndComments:VL,printNextEmptyLine:function printNextEmptyLine(e,t){var n=e.getValue(),r=e.stack[0];var 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;}};var _Rn$builders43=Rn.builders,qL=_Rn$builders43.ifBreak,WL=_Rn$builders43.line,UL=_Rn$builders43.softline,zL=_Rn$builders43.hardline,HL=_Rn$builders43.join,GL=BL.isEmptyNode,JL=BL.getLast,XL=BL.hasEndComments,YL=$L.printNextEmptyLine,KL=$L.alignWithSpaces;function QL(e,t,n){var r=e.getValue(),o="flowMapping"===r.type,i=o?"{":"[",u=o?"}":"]";var s=UL;o&&r.children.length>0&&n.bracketSpacing&&(s=WL);var 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){var r=e.getValue();return e.map(function(e,o){return[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};var _Rn$builders44=Rn.builders,t_=_Rn$builders44.conditionalGroup,n_=_Rn$builders44.group,r_=_Rn$builders44.hardline,o_=_Rn$builders44.ifBreak,i_=_Rn$builders44.join,u_=_Rn$builders44.line,s_=BL.hasLeadingComments,a_=BL.hasMiddleComments,c_=BL.hasTrailingComment,l_=BL.hasEndComments,p_=BL.isNode,f_=BL.isEmptyNode,d_=BL.isInlineNode,h_=$L.alignWithSpaces;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 g_(e,t,n,r,o){var i=e.key,u=e.value,s=f_(i),a=f_(u);if(s&&a)return": ";var 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,":"];var 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(function(e){return[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];var 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);var g=h_(o.tabWidth,m);return t_([[d,o_(h,g,{groupId:f})]]);};var _Rn$builders45=Rn.builders,y_=_Rn$builders45.dedent,D_=_Rn$builders45.dedentToRoot,E_=_Rn$builders45.fill,b_=_Rn$builders45.hardline,C_=_Rn$builders45.join,v_=_Rn$builders45.line,A_=_Rn$builders45.literalline,F_=_Rn$builders45.markAsRoot,x_=Rn.utils.getDocParts,S_=BL.getAncestorCount,w_=BL.getBlockValueLineContents,T_=BL.hasIndicatorComment,B_=BL.isLastDescendantNode,k_=BL.isNode,N_=$L.alignWithSpaces;var P_=function P_(e,t,n){var r=e.getValue(),o=S_(e,function(e){return 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"));var s=w_(r,{parentIndent:o,isLastDescendant:i,options:n}),a=[];var _iterator78=_createForOfIteratorHelper(s.entries()),_step78;try{for(_iterator78.s();!(_step78=_iterator78.n()).done;){var _step78$value=_slicedToArray(_step78.value,2),_e215=_step78$value[0],_t186=_step78$value[1];0===_e215&&a.push(b_),a.push(E_(x_(C_(v_,_t186)))),_e215!==s.length-1?a.push(0===_t186.length?b_:F_(A_)):"keep"===r.chomping&&i&&a.push(D_(0===_t186.length?b_:A_));}}catch(err){_iterator78.e(err);}finally{_iterator78.f();}return null===r.indent?u.push(y_(N_(n.tabWidth,a))):u.push(D_(N_(r.indent-1+o,a))),u;};var _Rn$builders46=Rn.builders,O_=_Rn$builders46.breakParent,I_=_Rn$builders46.fill,j_=_Rn$builders46.group,L_=_Rn$builders46.hardline,__=_Rn$builders46.join,M_=_Rn$builders46.line,R_=_Rn$builders46.lineSuffix,V_=_Rn$builders46.literalline,$_=Rn.utils.getDocParts,q_=rn.replaceEndOfLineWith,W_=rn.isPreviousLineEmpty,U_=gL.insertPragma,z_=gL.isPragma,H_=yL.locStart,G_=BL.getFlowScalarLineContents,J_=BL.getLastDescendantNode,X_=BL.hasLeadingComments,Y_=BL.hasMiddleComments,K_=BL.hasTrailingComment,Q_=BL.hasEndComments,Z_=BL.hasPrettierIgnore,eM=BL.isLastDescendantNode,tM=BL.isNode,nM=BL.isInlineNode,rM=$L.alignWithSpaces,oM=$L.printNextEmptyLine,iM=$L.shouldPrintEndComments,uM=e_.printFlowMapping,sM=e_.printFlowSequence;function aM(e,t){return K_(e)||t&&(t.head.children.length>0||Q_(t.head));}function cM(e,t,n){var r=G_(e,t,n);return __(L_,r.map(function(e){return I_($_(__(M_,e)));}));}var lM={preprocess:OL,embed:DL,print:function print(e,t,n){var r=e.getValue(),o=[];"mappingValue"!==r.type&&X_(r)&&o.push([__(L_,e.map(n,"leadingComments")),L_]);var i=r.tag,u=r.anchor;i&&o.push(n("tag")),i&&u&&o.push(" "),u&&o.push(n("anchor"));var 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_]);var 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":{var _t187=e.children,_r130=[];n.each(function(e,n){var i=_t187[n],u=_t187[n+1];0!==n&&_r130.push(L_),_r130.push(o()),aM(i,u)?(_r130.push(L_,"..."),K_(i)&&_r130.push(" ",o("trailingComment"))):u&&!K_(u.head)&&_r130.push(L_,"---");},"children");var _i98=J_(e);return tM(_i98,["blockLiteral","blockFolded"])&&"keep"===_i98.chomping||_r130.push(L_),_r130;}case"document":{var _i99=[];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)&&_i99.push(o("head")),K_(e.head)?_i99.push(["---"," ",o(["head","trailingComment"])]):_i99.push("---")),function(e){return e.body.children.length>0||Q_(e.body);}(e)&&_i99.push(o("body")),__(L_,_i99);}case"documentHead":return __(L_,[].concat(_toConsumableArray(n.map(o,"children")),_toConsumableArray(n.map(o,"endComments"))));case"documentBody":{var _t188=e.children,_r131=e.endComments;var _i100="";if(_t188.length>0&&_r131.length>0){var _t189=J_(e);tM(_t189,["blockFolded","blockLiteral"])?"keep"!==_t189.chomping&&(_i100=[L_,L_]):_i100=L_;}return[__(L_,n.map(o,"children")),_i100,__(L_,n.map(o,"endComments"))];}case"directive":return["%",__(" ",[e.name].concat(_toConsumableArray(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":{var _t190="'",_n133='"',_o80=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&_o80.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(_o80)){var _i102="quoteDouble"===e.type?_n133:_t190;return[_i102,cM(e.type,_o80,r),_i102];}if(_o80.includes(_n133))return[_t190,cM(e.type,"quoteDouble"===e.type?_o80.replace(/\\"/g,_n133).replace(/'/g,_t190.repeat(2)):_o80,r),_t190];if(_o80.includes(_t190))return[_n133,cM(e.type,"quoteSingle"===e.type?_o80.replace(/''/g,_t190):_o80,r),_n133];var _i101=r.singleQuote?_t190:_n133;return[_i101,cM(e.type,_o80,r),_i101];}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(function(e){return[W_(t.originalText,e.getValue(),H_)?L_:"",n()];},"endComments"))])),o.push(s),o;},massageAstNode:function massageAstNode(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},function(e){return{since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[].concat(_toConsumableArray(e.filenames.filter(function(e){return"yarn.lock"!==e;})),[".prettierrc"])};})],printers:{yaml:lM},options:pM,parsers:{get yaml(){return{}.parsers.yaml;}}}];var dM=n.version,hM=Mt.getSupportInfo,mM=fM.map(function(t){return e(t,["parsers"]);});function gM(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;return function(){for(var _len16=arguments.length,n=new Array(_len16),_key16=0;_key16<_len16;_key16++){n[_key16]=arguments[_key16];}var r=n[t]||{},o=r.plugins||[];return n[t]=Object.assign({},r,{plugins:[].concat(_toConsumableArray(mM),_toConsumableArray(Array.isArray(o)?o:Object.values(o)))}),e.apply(void 0,n);};}var yM=gM($p.formatWithCursor);return{formatWithCursor:yM,format:function format(e,t){return yM(e,t).formatted;},check:function check(e,t){var _yM=yM(e,t),n=_yM.formatted;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__*/getDefaultExportFromCjs(standalone.exports);var formatter=memoizerific(2)(function(type,source){if(type===false){return source;}if(type==='dedent'||type===true){return dedent(source);}return prettier.format(source,{parser:type,plugins:[prettierHtml],htmlWhitespaceSensitivity:'ignore'}).trim();});export{formatter};
|
|
128
|
+
*/var n=/*#__PURE__*/function(){function n(e,t,_n117,r){_classCallCheck(this,n);this.file=e,this.offset=t,this.line=_n117,this.col=r;}_createClass(n,[{key:"toString",value:function toString(){return null!=this.offset?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url;}},{key:"moveBy",value:function moveBy(e){var t=this.file.content,r=t.length;var o=this.offset,i=this.line,u=this.col;for(;o>0&&e<0;){o--,e++;if(t.charCodeAt(o)==MO.$LF){i--;var _e198=t.substr(0,o-1).lastIndexOf(String.fromCharCode(MO.$LF));u=_e198>0?o-_e198:o;}else u--;}for(;o<r&&e>0;){var _n120=t.charCodeAt(o);o++,e--,_n120==MO.$LF?(i++,u=0):u++;}return new n(this.file,o,i,u);}},{key:"getContext",value:function getContext(e,t){var _n119=this.file.content;var r=this.offset;if(null!=r){r>_n119.length-1&&(r=_n119.length-1);var _o71=r,_i88=0,_u35=0;for(;_i88<e&&r>0&&(r--,_i88++,"\n"!=_n119[r]||++_u35!=t);){;}for(_i88=0,_u35=0;_i88<e&&_o71<_n119.length-1&&(_o71++,_i88++,"\n"!=_n119[_o71]||++_u35!=t);){;}return{before:_n119.substring(r,this.offset),after:_n119.substring(this.offset,_o71+1)};}return null;}}]);return n;}();t.ParseLocation=n;var r=/*#__PURE__*/_createClass(function r(e,t){_classCallCheck(this,r);this.content=e,this.url=t;});t.ParseSourceFile=r;var o=/*#__PURE__*/function(){function o(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;_classCallCheck(this,o);this.start=e,this.end=t,this.details=n;}_createClass(o,[{key:"toString",value:function toString(){return this.start.file.content.substring(this.start.offset,this.end.offset);}}]);return o;}();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=/*#__PURE__*/function(){function _class18(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:i.ERROR;_classCallCheck(this,_class18);this.span=e,this.msg=t,this.level=n;}_createClass(_class18,[{key:"contextualMessage",value:function contextualMessage(){var e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(i[this.level]," ->]").concat(e.after,'")'):this.msg;}},{key:"toString",value:function toString(){var e=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(e);}}]);return _class18;}(),t.typeSourceSpan=function(e,t){var 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){var 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));};});var bI=EI.ParseSourceSpan,CI=_O.htmlTrim,vI=_O.getLeadingAndTrailingHtmlWhitespace,AI=_O.hasHtmlWhitespace,FI=_O.canHaveInterpolation,xI=_O.getNodeCssStyleDisplay,SI=_O.isDanglingSpaceSensitiveNode,wI=_O.isIndentationSensitiveNode,TI=_O.isLeadingSpaceSensitiveNode,BI=_O.isTrailingSpaceSensitiveNode,kI=_O.isWhitespaceSensitiveNode,NI=[function(e){return e.map(function(e){if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){var _e$children2=_toArray(e.children),_t172=_e$children2[0],_n121=_e$children2.slice(1);return e.clone({children:1===_t172.value.length?_n121:[_t172.clone({value:_t172.value.slice(1)})].concat(_toConsumableArray(_n121))});}return e;});},function(e){var t=function t(e){return"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(function(e){if(e.children){var _n122=e.children.map(t);if(_n122.some(Boolean)){var _t173=[];for(var _r119=0;_r119<e.children.length;_r119++){var _o72=e.children[_r119];if(!_n122[_r119+1])if(_n122[_r119]){var _e199=_o72.prev,_n123=_o72.firstChild,_r120=new bI(_e199.sourceSpan.start,_n123.sourceSpan.end),_i89=new bI(_r120.start,_o72.sourceSpan.end);_t173.push(_o72.clone({condition:_e199.condition,sourceSpan:_i89,startSourceSpan:_r120,children:_o72.children.slice(1)}));}else _t173.push(_o72);}return e.clone({children:_t173});}}return e;});},function(e){return function(e,t,n){return e.map(function(e){if(e.children){var _r121=e.children.map(t);if(_r121.some(Boolean)){var _t174=[];for(var _o73=0;_o73<e.children.length;_o73++){var _i90=e.children[_o73];if("text"!==_i90.type&&!_r121[_o73]){_t174.push(_i90);continue;}var _u36="text"===_i90.type?_i90:_i90.clone({type:"text",value:n(_i90)});if(0===_t174.length||"text"!==ke(_t174).type){_t174.push(_u36);continue;}var _s35=_t174.pop();_t174.push(_s35.clone({value:_s35.value+_u36.value,sourceSpan:new bI(_s35.sourceSpan.start,_u36.sourceSpan.end)}));}return e.clone({children:_t174});}}return e;});}(e,function(e){return"cdata"===e.type;},function(e){return"<![CDATA[".concat(e.value,"]]>");});},function(e,t){if("html"===t.parser)return e;var n=/{{([\S\s]+?)}}/g;return e.map(function(e){if(!FI(e))return e;var t=[];var _iterator73=_createForOfIteratorHelper(e.children),_step73;try{for(_iterator73.s();!(_step73=_iterator73.n()).done;){var _r122=_step73.value;if("text"!==_r122.type){t.push(_r122);continue;}var _e200=_r122.sourceSpan.start,_o74=null;var _i91=_r122.value.split(n);for(var _n124=0;_n124<_i91.length;_n124++,_e200=_o74){var _r123=_i91[_n124];_n124%2!=0?(_o74=_e200.moveBy(_r123.length+4),t.push({type:"interpolation",sourceSpan:new bI(_e200,_o74),children:0===_r123.length?[]:[{type:"text",value:_r123,sourceSpan:new bI(_e200.moveBy(2),_o74.moveBy(-2))}]})):(_o74=_e200.moveBy(_r123.length),_r123.length>0&&t.push({type:"text",value:_r123,sourceSpan:new bI(_e200,_o74)}));}}}catch(err){_iterator73.e(err);}finally{_iterator73.f();}return e.clone({children:t});});},function(e){var t="whitespace";return e.map(function(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});var n=kI(e),r=wI(e);return e.clone({isWhitespaceSensitive:n,isIndentationSensitive:r,children:e.children.reduce(function(e,r){if("text"!==r.type||n)return[].concat(_toConsumableArray(e),[r]);var o=[],_vI=vI(r.value),i=_vI.leadingWhitespace,u=_vI.text,s=_vI.trailingWhitespace;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}),[].concat(_toConsumableArray(e),o);},[]).reduce(function(e,n,r,o){if(n.type===t)return e;var i=0!==r&&o[r-1].type===t,u=r!==o.length-1&&o[r+1].type===t;return[].concat(_toConsumableArray(e),[Object.assign({},n,{hasLeadingSpaces:i,hasTrailingSpaces:u})]);},[])});});},function(e,t){return e.map(function(e){return Object.assign(e,{cssDisplay:xI(e,t)});});},function(e){return e.map(function(e){return Object.assign(e,{isSelfClosing:!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)});});},function(e,t){return e.map(function(e){return"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(function(e){return e.children?0===e.children.length?e.clone({isDanglingSpaceSensitive:SI(e)}):e.clone({children:e.children.map(function(e){return Object.assign({},e,{isLeadingSpaceSensitive:TI(e,t),isTrailingSpaceSensitive:BI(e,t)});}).map(function(e,t,n){return 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){var t=function t(e){return"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(function(e){if(e.children){var _n125=e.children.map(t);if(_n125.some(Boolean)){var _t175=[];for(var _r124=0;_r124<e.children.length;_r124++){var _o75=e.children[_r124];if(_n125[_r124]){var _n126=_t175.pop(),_i92=e.children[++_r124],_u37=_i92.isTrailingSpaceSensitive,_s36=_i92.hasTrailingSpaces;_t175.push(_n126.clone({value:_n126.value+"<".concat(_o75.rawName,">")+_o75.firstChild.value+"</".concat(_o75.rawName,">")+_i92.value,sourceSpan:new bI(_n126.sourceSpan.start,_i92.sourceSpan.end),isTrailingSpaceSensitive:_u37,hasTrailingSpaces:_s36}));}else _t175.push(_o75);}return e.clone({children:_t175});}}return e;});}];var PI=function PI(e,t){var _iterator74=_createForOfIteratorHelper(NI),_step74;try{for(_iterator74.s();!(_step74=_iterator74.n()).done;){var _n127=_step74.value;e=_n127(e,t);}}catch(err){_iterator74.e(err);}finally{_iterator74.f();}return e;};var OI={hasPragma:function hasPragma(e){return /^\s*<!--\s*@(format|prettier)\s*-->/.test(e);},insertPragma:function insertPragma(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"");}};var II={locStart:function locStart(e){return e.sourceSpan.start.offset;},locEnd:function locEnd(e){return e.sourceSpan.end.offset;}};var jI=Rn.builders.group;var LI={isVueEventBindingExpression:function isVueEventBindingExpression(e){var 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 printVueFor(e,t){var _ref116=function(e){var t=/([^]*?)\s+(in|of)\s+([^]*)/,n=/,([^,\]}]*)(?:,([^,\]}]*))?$/,r=/^\(|\)$/g,o=e.match(t);if(!o)return;var i={};i.for=o[3].trim();var 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),n=_ref116.left,r=_ref116.operator,o=_ref116.right;return[jI(t("function _(".concat(n,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",r," ",t(o,{parser:"__js_expression"},{stripTrailingHardline:!0})];},printVueBindings:function printVueBindings(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));}};});});var _Rn$builders40=Rn.builders,MI=_Rn$builders40.group,RI=_Rn$builders40.ifBreak,VI=_Rn$builders40.indent,$I=_Rn$builders40.join,qI=_Rn$builders40.line,WI=_Rn$builders40.softline;var UI=["__","--","_","-"];function zI(e){var t=e.search(/[^_-]/);if(-1!==t){var _iterator75=_createForOfIteratorHelper(UI),_step75;try{for(_iterator75.s();!(_step75=_iterator75.n()).done;){var _n128=_step75.value;var _r125=e.indexOf(_n128,t);if(-1!==_r125)return e.slice(0,_r125);}}catch(err){_iterator75.e(err);}finally{_iterator75.f();}}return e;}var HI={printImgSrcset:function printImgSrcset(e){var t=_I(e,{logger:{error:function error(e){throw new Error(e);}}}),n=t.some(function(_ref117){var e=_ref117.w;return e;}),r=t.some(function(_ref118){var e=_ref118.h;return e;});if(n+r+t.some(function(_ref119){var e=_ref119.d;return e;})>1)throw new Error("Mixed descriptor in srcset is not supported");var o=n?"w":r?"h":"d",i=n?"w":r?"h":"x",u=function u(e){return Math.max.apply(Math,_toConsumableArray(e));},s=t.map(function(e){return e.url;}),a=u(s.map(function(e){return e.length;})),c=t.map(function(e){return e[o];}).map(function(e){return e?e.toString():"";}),l=c.map(function(e){var t=e.indexOf(".");return-1===t?e.length:t;}),p=u(l);return $I([",",qI],s.map(function(e,t){var n=[e],r=c[t];if(r){var _o76=a-e.length+1,_u38=p-l[t],_s37=" ".repeat(_o76+_u38);n.push(RI(_s37," "),r+i);}return n;}));},printClassNames:function printClassNames(e){var t=e.trim().split(/\s+/),n=[];var r;for(var _e201=0;_e201<t.length;_e201++){var _o77=zI(t[_e201]);_o77!==r&&_o77!==t[_e201-1]&&n.push([]),ke(n).push(t[_e201]),r=_o77;}return[VI([WI,$I(qI,n.map(function(e){return MI($I(qI,e));}))]),WI];}};var _Rn$builders41=Rn.builders,GI=_Rn$builders41.breakParent,JI=_Rn$builders41.dedentToRoot,XI=_Rn$builders41.fill,YI=_Rn$builders41.group,KI=_Rn$builders41.hardline,QI=_Rn$builders41.ifBreak,ZI=_Rn$builders41.indentIfBreak,ej=_Rn$builders41.indent,tj=_Rn$builders41.join,nj=_Rn$builders41.line,rj=_Rn$builders41.literalline,oj=_Rn$builders41.softline,_Rn$utils5=Rn.utils,ij=_Rn$utils5.mapDoc,uj=_Rn$utils5.cleanDoc,sj=_Rn$utils5.getDocParts,aj=_Rn$utils5.isConcat,cj=rn.replaceEndOfLineWith,lj=rn.isNonEmptyArray,pj=_O.htmlTrimPreserveIndentation,fj=_O.splitByHtmlWhitespace,dj=_O.countChars,hj=_O.countParents,mj=_O.dedentString,gj=_O.forceBreakChildren,yj=_O.forceBreakContent,Dj=_O.forceNextEmptyLine,Ej=_O.getLastDescendant,bj=_O.getPrettierIgnoreAttributeCommentData,Cj=_O.hasPrettierIgnore,vj=_O.inferScriptParser,Aj=_O.isVueCustomBlock,Fj=_O.isVueNonHtmlBlock,xj=_O.isVueSlotAttribute,Sj=_O.isVueSfcBindingsAttribute,wj=_O.isScriptLikeTag,Tj=_O.isTextLikeNode,Bj=_O.preferHardlineAsLeadingSpaces,kj=_O.shouldNotPrintClosingTag,Nj=_O.shouldPreserveContent,Pj=_O.unescapeQuoteEntities,Oj=_O.isPreLikeNode,Ij=OI.insertPragma,jj=II.locStart,Lj=II.locEnd,_j=LI.printVueFor,Mj=LI.printVueBindings,Rj=LI.isVueEventBindingExpression,Vj=HI.printImgSrcset,$j=HI.printClassNames;function qj(e,t,n){var r=e.getValue();if(gj(r))return[GI].concat(_toConsumableArray(e.map(function(e){var t=e.getValue(),n=t.prev?u(t.prev,t):"";return[n?[n,Dj(t.prev)?KI:""]:"",i(e)];},"children")));var o=r.children.map(function(){return Symbol("");});return e.map(function(e,t){var n=e.getValue();if(Tj(n)){if(n.prev&&Tj(n.prev)){var _t176=u(n.prev,n);if(_t176)return Dj(n.prev)?[KI,KI,i(e)]:[_t176,i(e)];}return i(e);}var 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)),[].concat(r,[YI([].concat(s,[YI([i(e)].concat(a),{id:o[t]})]))],c);},"children");function i(e){var r=e.getValue();return Cj(r)?[nL(r,t)].concat(_toConsumableArray(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){var n=e.startSourceSpan.end.offset;e.firstChild&&Qj(e.firstChild)&&(n-=uL(e).length);var 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){var r=e.getValue();if(!lj(r.attrs))return r.isSelfClosing?" ":"";var o=r.prev&&"comment"===r.prev.type&&bj(r.prev.value),i="boolean"==typeof o?function(){return o;}:Array.isArray(o)?function(e){return o.includes(e.rawName);}:function(){return!1;},u=e.map(function(e){var 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){var 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){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]: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 print(e,t,n){var 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))].concat(_toConsumableArray(cj(Wj(r,t),rj)),_toConsumableArray(Jj(r,t)),[oL(r,t)]);var _i93=1===r.children.length&&"interpolation"===r.firstChild.type&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,_u39=Symbol("element-attr-group-id");return[YI([YI(zj(e,t,n),{id:_u39}),0===r.children.length?r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?nj:"":[yj(r)?GI:"",(o=[_i93?QI(oj,"",{groupId:_u39}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?nj:"text"===r.firstChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive?JI(oj):oj,qj(e,t,n)],_i93?ZI(o,{groupId:_u39}):!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?" ":"":_i93?QI(oj,"",{groupId:_u39}):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,function(e){return 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)].concat(_toConsumableArray(e.map(n,"children")),[Yj(r,t)]);case"text":{if("interpolation"===r.parent.type){var _e203=/\n[^\S\n]*?$/,_t177=_e203.test(r.value),_n129=_t177?r.value.replace(_e203,""):r.value;return[].concat(_toConsumableArray(cj(_n129,rj)),[_t177?KI:""]);}var _e202=uj([nL(r,t)].concat(_toConsumableArray(cL(r)),[oL(r,t)]));return aj(_e202)||"fill"===_e202.type?XI(sj(_e202)):_e202;}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)].concat(_toConsumableArray(cj(t.originalText.slice(jj(r),Lj(r)),rj)),[oL(r,t)]);case"attribute":{if(null===r.value)return r.rawName;var _e204=Pj(r.value),_t178=dj(_e204,"'")<dj(_e204,'"')?"'":'"';return[r.rawName,"=",_t178].concat(_toConsumableArray(cj('"'===_t178?_e204.replace(/"/g,"""):_e204.replace(/'/g,"'"),rj)),[_t178]);}default:throw new Error("Unexpected node type ".concat(r.type));}var o;},insertPragma:Ij,massageAstNode:oO,embed:function embed(e,t,n,r){var o=e.getValue();switch(o.type){case"element":if(wj(o)||"interpolation"===o.type)return;if(!o.isSelfClosing&&Fj(o,r)){var _i94=vj(o,r);if(!_i94)return;var _u40=Wj(o,r);var _s38=/^\s*$/.test(_u40),_a18="";return _s38||(_a18=n(pj(_u40),{parser:_i94,__embeddedInHtml:!0},{stripTrailingHardline:!0}),_s38=""===_a18),[nL(o,r),YI(zj(e,r,t)),_s38?"":KI,_a18,_s38?"":KI,Jj(o,r),oL(o,r)];}break;case"text":if(wj(o.parent)){var _e205=vj(o.parent);if(_e205){var _t179="markdown"===_e205?mj(o.value.replace(/^[^\S\n]*?\n/,"")):o.value,_i95={parser:_e205,__embeddedInHtml:!0};if("html"===r.parser&&"babel"===_e205){var _e206="script";var _t180=o.parent.attrMap;_t180&&("module"===_t180.type||"text/babel"===_t180.type&&"module"===_t180["data-type"])&&(_e206="module"),_i95.__babelSourceType=_e206;}return[GI,nL(o,r),n(_t179,_i95,{stripTrailingHardline:!0}),oL(o,r)];}}else if("interpolation"===o.parent.type){var _e207={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return"angular"===r.parser?(_e207.parser="__ng_interpolation",_e207.trailingComma="none"):"vue"===r.parser?_e207.parser="__vue_expression":_e207.parser="__js_expression",[ej([nj,n(o.value,_e207,{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];}var _e208=function(e,t,n){var r=function r(t){return new RegExp(t.join("|")).test(e.fullName);},o=function o(){return Pj(e.value);};var i=!1;var u=function u(e,t){var 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=function s(e){return YI(e);},a=function a(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!0;return YI([ej([oj,e]),t?oj:""]);},c=function c(e){return i?s(e):a(e);},l=function l(e,n){return 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){var _e209=o();if(!_e209.includes("{{"))return $j(_e209);}if("style"===e.fullName&&!n.parentParser){var _e210=o();if(!_e210.includes("{{"))return a(l(_e210,{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);var _t181=["^:","^v-bind:"],_i96=["^v-"];if(r(["^@","^v-on:"])){var _e211=o();return c(l(_e211,{parser:Rj(_e211)?"__js_expression":"__vue_event_binding"}));}if(r(_t181))return c(l(o(),{parser:"__vue_expression"}));if(r(_i96))return c(l(o(),{parser:"__js_expression"}));}if("angular"===n.parser){var _t182=function _t182(e,t){return l(e,Object.assign({},t,{trailingComma:"none"}));},_n130=["^\\*"],_i97=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],_u41=["^i18n(-.+)?$"];if(r(["^\\(.+\\)$","^on-"]))return c(_t182(o(),{parser:"__ng_action"}));if(r(_i97))return c(_t182(o(),{parser:"__ng_binding"}));if(r(_u41)){var _t183=o().trim();return a(XI(cL(e,_t183)),!_t183.includes("@@"));}if(r(_n130))return c(_t182(o(),{parser:"__ng_directive"}));var _s39=/{{([\S\s]+?)}}/g,_p14=o();if(_s39.test(_p14)){var _e212=[];var _iterator76=_createForOfIteratorHelper(_p14.split(_s39).entries()),_step76;try{for(_iterator76.s();!(_step76=_iterator76.n()).done;){var _step76$value=_slicedToArray(_step76.value,2),_n131=_step76$value[0],_r126=_step76$value[1];if(_n131%2==0)_e212.push(cj(_r126,rj));else try{_e212.push(YI(["{{",ej([nj,_t182(_r126,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),nj,"}}"]));}catch(t){_e212.push("{{",cj(_r126,rj),"}}");}}}catch(err){_iterator76.e(err);}finally{_iterator76.f();}return YI(_e212);}}return null;}(o,function(e,t){return n(e,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},t),{stripTrailingHardline:!0});},r);if(_e208)return[o.rawName,'="',YI(ij(_e208,function(e){return"string"==typeof e?e.replace(/"/g,"""):e;})),'"'];break;}case"front-matter":return Xw(o,n);}}};var 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,function(){return{name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]};}),df(dL,function(e){return{since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[].concat(_toConsumableArray(e.extensions),[".mjml"])};}),df(dL,function(){return{name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]};}),df(hL,function(){return{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 isPragma(e){return /^\s*@(prettier|format)\s*$/.test(e);},hasPragma:function hasPragma(e){return /^\s*#[^\S\n]*@(prettier|format)\s*?(\n|$)/.test(e);},insertPragma:function insertPragma(e){return"# @format\n\n".concat(e);}};var yL={locStart:function locStart(e){return e.position.start.offset;},locEnd:function locEnd(e){return e.position.end.offset;}};var DL=function DL(e,t,n,r){if("root"===e.getValue().type&&r.filepath&&/(?:[/\\]|^)\.prettierrc$/.test(r.filepath))return n(r.originalText,Object.assign({},r,{parser:"json"}));};var EL=rn.getLast,bL=rn.isNonEmptyArray;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){var t=[];var n;var _iterator77=_createForOfIteratorHelper(e.split(/( +)/g)),_step77;try{for(_iterator77.s();!(_step77=_iterator77.n()).done;){var _r127=_step77.value;" "!==_r127?" "===n?t.push(_r127):t.push((t.pop()||"")+_r127):void 0===n&&t.unshift(""),n=_r127;}}catch(err){_iterator77.e(err);}finally{_iterator77.f();}return" "===n&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t;}var BL={getLast:EL,getAncestorCount:function getAncestorCount(e,t){var n=0;var r=e.stack.length-1;for(var _o78=0;_o78<r;_o78++){var _r128=e.stack[_o78];CL(_r128)&&t(_r128)&&n++;}return n;},isNode:CL,isEmptyNode:function isEmptyNode(e){return!bL(e.children)&&!function(e){return AL(e)||FL(e)||xL(e)||SL(e)||wL(e);}(e);},isInlineNode:function isInlineNode(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(function(r){return e(r,n,t);})}):t,r);},defineShortcut:function defineShortcut(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1});},isNextLineEmpty:function isNextLineEmpty(e,t){var n=0;var r=t.length;for(var _o79=e.position.end.offset-1;_o79<r;_o79++){var _e213=t[_o79];if("\n"===_e213&&n++,1===n&&/\S/.test(_e213))return!1;if(2===n)return!0;}return!1;},isLastDescendantNode:function isLastDescendantNode(e){switch(e.getValue().type){case"tag":case"anchor":case"comment":return!1;}var t=e.stack.length;for(var _n132=1;_n132<t;_n132++){var _t184=e.stack[_n132],_r129=e.stack[_n132-1];if(Array.isArray(_r129)&&"number"==typeof _t184&&_t184!==_r129.length-1)return!1;}return!0;},getBlockValueLineContents:function getBlockValueLineContents(e,_ref120){var t=_ref120.parentIndent,n=_ref120.isLastDescendant,r=_ref120.options;var 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;var s=o.split("\n").map(function(e){return e.slice(i);});return"preserve"===r.proseWrap||"blockLiteral"===e.type?a(s.map(function(e){return 0===e.length?[]:[e];})):a(s.map(function(e){return 0===e.length?[]:TL(e);}).reduce(function(e,t,n){return 0!==n&&s[n-1].length>0&&t.length>0&&!/^\s/.test(t[0])&&!/^\s|\s$/.test(EL(e))?[].concat(_toConsumableArray(e.slice(0,-1)),[[].concat(_toConsumableArray(EL(e)),_toConsumableArray(t))]):[].concat(_toConsumableArray(e),[t]);},[]).map(function(e){return e.reduce(function(e,t){return e.length>0&&/\s$/.test(EL(e))?[].concat(_toConsumableArray(e.slice(0,-1)),[EL(e)+" "+t]):[].concat(_toConsumableArray(e),[t]);},[]);}).map(function(e){return"never"===r.proseWrap?[e.join(" ")]:e;}));function a(t){if("keep"===e.chomping)return 0===EL(t).length?t.slice(0,-1):t;var r=0;for(var _e214=t.length-1;_e214>=0&&0===t[_e214].length;_e214--){r++;}return 0===r?t:r>=2&&!n?t.slice(0,-(r-1)):t.slice(0,-r);}},getFlowScalarLineContents:function getFlowScalarLineContents(e,t,n){var r=t.split("\n").map(function(e,t,n){return 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(function(e){return 0===e.length?[]:[e];}):r.map(function(e){return 0===e.length?[]:TL(e);}).reduce(function(t,n,o){return 0!==o&&r[o-1].length>0&&n.length>0&&("quoteDouble"!==e||!EL(EL(t)).endsWith("\\"))?[].concat(_toConsumableArray(t.slice(0,-1)),[[].concat(_toConsumableArray(EL(t)),_toConsumableArray(n))]):[].concat(_toConsumableArray(t),[n]);},[]).map(function(e){return"never"===n.proseWrap?[e.join(" ")]:e;});},getLastDescendantNode:function e(t){return bL(t.children)?e(EL(t.children)):t;},hasPrettierIgnore:function hasPrettierIgnore(e){var t=e.getValue();if("documentBody"===t.type){var _t185=e.getParentNode();return wL(_t185.head)&&vL(EL(_t185.head.endComments));}return AL(t)&&vL(EL(t.leadingComments));},hasLeadingComments:AL,hasMiddleComments:FL,hasIndicatorComment:xL,hasTrailingComment:SL,hasEndComments:wL};var kL=BL.defineShortcut,NL=BL.mapNode;function PL(e){switch(e.type){case"document":kL(e,"head",function(){return e.children[0];}),kL(e,"body",function(){return e.children[1];});break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":kL(e,"content",function(){return e.children[0];});break;case"mappingItem":case"flowMappingItem":kL(e,"key",function(){return e.children[0];}),kL(e,"value",function(){return e.children[1];});}return e;}var OL=function OL(e){return NL(e,PL);};var _Rn$builders42=Rn.builders,IL=_Rn$builders42.softline,jL=_Rn$builders42.align,LL=BL.hasEndComments,_L=BL.isNextLineEmpty,ML=BL.isNode,RL=new WeakMap();function VL(e){return LL(e)&&!ML(e,["documentHead","documentBody","flowMapping","flowSequence"]);}var $L={alignWithSpaces:function alignWithSpaces(e,t){return jL(" ".repeat(e),t);},shouldPrintEndComments:VL,printNextEmptyLine:function printNextEmptyLine(e,t){var n=e.getValue(),r=e.stack[0];var 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;}};var _Rn$builders43=Rn.builders,qL=_Rn$builders43.ifBreak,WL=_Rn$builders43.line,UL=_Rn$builders43.softline,zL=_Rn$builders43.hardline,HL=_Rn$builders43.join,GL=BL.isEmptyNode,JL=BL.getLast,XL=BL.hasEndComments,YL=$L.printNextEmptyLine,KL=$L.alignWithSpaces;function QL(e,t,n){var r=e.getValue(),o="flowMapping"===r.type,i=o?"{":"[",u=o?"}":"]";var s=UL;o&&r.children.length>0&&n.bracketSpacing&&(s=WL);var 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){var r=e.getValue();return e.map(function(e,o){return[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};var _Rn$builders44=Rn.builders,t_=_Rn$builders44.conditionalGroup,n_=_Rn$builders44.group,r_=_Rn$builders44.hardline,o_=_Rn$builders44.ifBreak,i_=_Rn$builders44.join,u_=_Rn$builders44.line,s_=BL.hasLeadingComments,a_=BL.hasMiddleComments,c_=BL.hasTrailingComment,l_=BL.hasEndComments,p_=BL.isNode,f_=BL.isEmptyNode,d_=BL.isInlineNode,h_=$L.alignWithSpaces;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 g_(e,t,n,r,o){var i=e.key,u=e.value,s=f_(i),a=f_(u);if(s&&a)return": ";var 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,":"];var 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(function(e){return[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];var 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);var g=h_(o.tabWidth,m);return t_([[d,o_(h,g,{groupId:f})]]);};var _Rn$builders45=Rn.builders,y_=_Rn$builders45.dedent,D_=_Rn$builders45.dedentToRoot,E_=_Rn$builders45.fill,b_=_Rn$builders45.hardline,C_=_Rn$builders45.join,v_=_Rn$builders45.line,A_=_Rn$builders45.literalline,F_=_Rn$builders45.markAsRoot,x_=Rn.utils.getDocParts,S_=BL.getAncestorCount,w_=BL.getBlockValueLineContents,T_=BL.hasIndicatorComment,B_=BL.isLastDescendantNode,k_=BL.isNode,N_=$L.alignWithSpaces;var P_=function P_(e,t,n){var r=e.getValue(),o=S_(e,function(e){return 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"));var s=w_(r,{parentIndent:o,isLastDescendant:i,options:n}),a=[];var _iterator78=_createForOfIteratorHelper(s.entries()),_step78;try{for(_iterator78.s();!(_step78=_iterator78.n()).done;){var _step78$value=_slicedToArray(_step78.value,2),_e215=_step78$value[0],_t186=_step78$value[1];0===_e215&&a.push(b_),a.push(E_(x_(C_(v_,_t186)))),_e215!==s.length-1?a.push(0===_t186.length?b_:F_(A_)):"keep"===r.chomping&&i&&a.push(D_(0===_t186.length?b_:A_));}}catch(err){_iterator78.e(err);}finally{_iterator78.f();}return null===r.indent?u.push(y_(N_(n.tabWidth,a))):u.push(D_(N_(r.indent-1+o,a))),u;};var _Rn$builders46=Rn.builders,O_=_Rn$builders46.breakParent,I_=_Rn$builders46.fill,j_=_Rn$builders46.group,L_=_Rn$builders46.hardline,__=_Rn$builders46.join,M_=_Rn$builders46.line,R_=_Rn$builders46.lineSuffix,V_=_Rn$builders46.literalline,$_=Rn.utils.getDocParts,q_=rn.replaceEndOfLineWith,W_=rn.isPreviousLineEmpty,U_=gL.insertPragma,z_=gL.isPragma,H_=yL.locStart,G_=BL.getFlowScalarLineContents,J_=BL.getLastDescendantNode,X_=BL.hasLeadingComments,Y_=BL.hasMiddleComments,K_=BL.hasTrailingComment,Q_=BL.hasEndComments,Z_=BL.hasPrettierIgnore,eM=BL.isLastDescendantNode,tM=BL.isNode,nM=BL.isInlineNode,rM=$L.alignWithSpaces,oM=$L.printNextEmptyLine,iM=$L.shouldPrintEndComments,uM=e_.printFlowMapping,sM=e_.printFlowSequence;function aM(e,t){return K_(e)||t&&(t.head.children.length>0||Q_(t.head));}function cM(e,t,n){var r=G_(e,t,n);return __(L_,r.map(function(e){return I_($_(__(M_,e)));}));}var lM={preprocess:OL,embed:DL,print:function print(e,t,n){var r=e.getValue(),o=[];"mappingValue"!==r.type&&X_(r)&&o.push([__(L_,e.map(n,"leadingComments")),L_]);var i=r.tag,u=r.anchor;i&&o.push(n("tag")),i&&u&&o.push(" "),u&&o.push(n("anchor"));var 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_]);var 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":{var _t187=e.children,_r130=[];n.each(function(e,n){var i=_t187[n],u=_t187[n+1];0!==n&&_r130.push(L_),_r130.push(o()),aM(i,u)?(_r130.push(L_,"..."),K_(i)&&_r130.push(" ",o("trailingComment"))):u&&!K_(u.head)&&_r130.push(L_,"---");},"children");var _i98=J_(e);return tM(_i98,["blockLiteral","blockFolded"])&&"keep"===_i98.chomping||_r130.push(L_),_r130;}case"document":{var _i99=[];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)&&_i99.push(o("head")),K_(e.head)?_i99.push(["---"," ",o(["head","trailingComment"])]):_i99.push("---")),function(e){return e.body.children.length>0||Q_(e.body);}(e)&&_i99.push(o("body")),__(L_,_i99);}case"documentHead":return __(L_,[].concat(_toConsumableArray(n.map(o,"children")),_toConsumableArray(n.map(o,"endComments"))));case"documentBody":{var _t188=e.children,_r131=e.endComments;var _i100="";if(_t188.length>0&&_r131.length>0){var _t189=J_(e);tM(_t189,["blockFolded","blockLiteral"])?"keep"!==_t189.chomping&&(_i100=[L_,L_]):_i100=L_;}return[__(L_,n.map(o,"children")),_i100,__(L_,n.map(o,"endComments"))];}case"directive":return["%",__(" ",[e.name].concat(_toConsumableArray(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":{var _t190="'",_n133='"',_o80=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&_o80.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(_o80)){var _i102="quoteDouble"===e.type?_n133:_t190;return[_i102,cM(e.type,_o80,r),_i102];}if(_o80.includes(_n133))return[_t190,cM(e.type,"quoteDouble"===e.type?_o80.replace(/\\"/g,_n133).replace(/'/g,_t190.repeat(2)):_o80,r),_t190];if(_o80.includes(_t190))return[_n133,cM(e.type,"quoteSingle"===e.type?_o80.replace(/''/g,_t190):_o80,r),_n133];var _i101=r.singleQuote?_t190:_n133;return[_i101,cM(e.type,_o80,r),_i101];}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(function(e){return[W_(t.originalText,e.getValue(),H_)?L_:"",n()];},"endComments"))])),o.push(s),o;},massageAstNode:function massageAstNode(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},function(e){return{since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[].concat(_toConsumableArray(e.filenames.filter(function(e){return"yarn.lock"!==e;})),[".prettierrc"])};})],printers:{yaml:lM},options:pM,parsers:{get yaml(){return{}.parsers.yaml;}}}];var dM=n.version,hM=Mt.getSupportInfo,mM=fM.map(function(t){return e(t,["parsers"]);});function gM(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;return function(){for(var _len16=arguments.length,n=new Array(_len16),_key16=0;_key16<_len16;_key16++){n[_key16]=arguments[_key16];}var r=n[t]||{},o=r.plugins||[];return n[t]=Object.assign({},r,{plugins:[].concat(_toConsumableArray(mM),_toConsumableArray(Array.isArray(o)?o:Object.values(o)))}),e.apply(void 0,n);};}var yM=gM($p.formatWithCursor);return{formatWithCursor:yM,format:function format(e,t){return yM(e,t).formatted;},check:function check(e,t){var _yM=yM(e,t),n=_yM.formatted;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__*/getDefaultExportFromCjs(standalone.exports);var formatter=memoize(2)(function(type,source){if(type===false){return source;}if(type==='dedent'||type===true){return dedent(source);}return prettier.format(source,{parser:type,plugins:[prettierHtml],htmlWhitespaceSensitivity:'ignore'}).trim();});export{formatter};
|