@knapsack/app
Version:
Build Design Systems on top of knapsack, by Basalt
2 lines • 128 kB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["vendors~custom-page-KXWAf~pattern-view-page-WE7TE~97390721"],{"../node_modules/@miksu/prettier/lib/language-js/clean.js":function(e,t,n){function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function clean(e,t,n){if(["range","raw","comments","leadingComments","trailingComments","extra","start","end","flags"].forEach((function(e){delete t[e]})),"BigIntLiteral"===e.type&&(t.value=t.value.toLowerCase()),"EmptyStatement"===e.type)return null;if("JSXText"===e.type)return null;if("JSXExpressionContainer"===e.type&&"Literal"===e.expression.type&&" "===e.expression.value)return null;if("TSParameterProperty"===e.type&&null===e.accessibility&&!e.readonly)return{type:"Identifier",name:e.parameter.name,typeAnnotation:t.parameter.typeAnnotation,decorators:t.decorators};if("TSNamespaceExportDeclaration"===e.type&&e.specifiers&&0===e.specifiers.length&&delete t.specifiers,"TSParenthesizedType"===e.type)return t.typeAnnotation;"JSXOpeningElement"===e.type&&delete t.selfClosing,"JSXElement"===e.type&&delete t.closingElement,"Property"!==e.type&&"ObjectProperty"!==e.type&&"MethodDefinition"!==e.type&&"ClassProperty"!==e.type&&"TSPropertySignature"!==e.type&&"ObjectTypeProperty"!==e.type||"object"!==_typeof(e.key)||!e.key||"Literal"!==e.key.type&&"StringLiteral"!==e.key.type&&"Identifier"!==e.key.type||delete t.key,"OptionalMemberExpression"===e.type&&!1===e.optional&&(t.type="MemberExpression",delete t.optional),"JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some((function(e){return"jsx"===e.name.name}))&&t.children.filter((function(e){return"JSXExpressionContainer"===e.type&&"TemplateLiteral"===e.expression.type})).map((function(e){return e.expression})).reduce((function(e,t){return e.concat(t.quasis)}),[]).forEach((function(e){return delete e.value})),"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&t.value.expression.quasis.forEach((function(e){return delete e.value}));var r=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===r.type&&"Component"===r.callee.name&&1===r.arguments.length){var a=e.expression.arguments[0].properties;t.expression.arguments[0].properties.forEach((function(e,t){var n=null;switch(a[t].key.name){case"styles":"ArrayExpression"===e.value.type&&(n=e.value.elements[0]);break;case"template":"TemplateLiteral"===e.value.type&&(n=e.value)}n&&n.quasis.forEach((function(e){return delete e.value}))}))}"TaggedTemplateExpression"!==e.type||"MemberExpression"!==e.tag.type&&("Identifier"!==e.tag.type||"gql"!==e.tag.name&&"graphql"!==e.tag.name&&"css"!==e.tag.name&&"md"!==e.tag.name&&"markdown"!==e.tag.name&&"html"!==e.tag.name)&&"CallExpression"!==e.tag.type||t.quasi.quasis.forEach((function(e){return delete e.value})),"TemplateLiteral"===e.type&&(e.leadingComments&&e.leadingComments.some((function(e){return"CommentBlock"===e.type&&["GraphQL","HTML"].some((function(t){return e.value===" ".concat(t," ")}))}))||"CallExpression"===n.type&&"graphql"===n.callee.name)&&t.quasis.forEach((function(e){return delete e.value}))}},"../node_modules/@miksu/prettier/lib/language-js/comments.js":function(e,t,n){var r=n("../node_modules/@miksu/prettier/lib/common/util.js"),a=n("../node_modules/@miksu/prettier/lib/common/util-shared.js"),s=a.addLeadingComment,o=a.addTrailingComment,i=a.addDanglingComment;function addBlockStatementFirstComment(e,t){var n=e.body.filter((function(e){return"EmptyStatement"!==e.type}));0===n.length?i(e,t):s(n[0],t)}function addBlockOrNotComment(e,t){"BlockStatement"===e.type?addBlockStatementFirstComment(e,t):s(e,t)}function handleIfStatementComments(e,t,n,a,p,l){return!(!n||"IfStatement"!==n.type||!a)&&(")"===r.getNextNonSpaceNonCommentCharacter(e,p,l.locEnd)?(o(t,p),!0):t===n.consequent&&a===n.alternate?("BlockStatement"===t.type?o(t,p):i(n,p),!0):"BlockStatement"===a.type?(addBlockStatementFirstComment(a,p),!0):"IfStatement"===a.type?(addBlockOrNotComment(a.consequent,p),!0):n.consequent===a&&(s(a,p),!0))}function handleWhileComments(e,t,n,a,s,i){return!(!n||"WhileStatement"!==n.type||!a)&&(")"===r.getNextNonSpaceNonCommentCharacter(e,s,i.locEnd)?(o(t,s),!0):"BlockStatement"===a.type&&(addBlockStatementFirstComment(a,s),!0))}function handleTryStatementComments(e,t,n,r){return!(!e||"TryStatement"!==e.type&&"CatchClause"!==e.type||!n)&&("CatchClause"===e.type&&t?(o(t,r),!0):"BlockStatement"===n.type?(addBlockStatementFirstComment(n,r),!0):"TryStatement"===n.type?(addBlockOrNotComment(n.finalizer,r),!0):"CatchClause"===n.type&&(addBlockOrNotComment(n.body,r),!0))}function handleClassComments(e,t,n,r){return!(!(e&&("ClassDeclaration"===e.type||"ClassExpression"===e.type)&&e.decorators&&e.decorators.length>0)||n&&"Decorator"===n.type)&&(e.decorators&&0!==e.decorators.length?o(e.decorators[e.decorators.length-1],r):s(e,r),!0)}function handleMethodNameComments(e,t,n,a,s){return t&&n&&("Property"===t.type||"MethodDefinition"===t.type)&&"Identifier"===n.type&&t.key===n&&":"!==r.getNextNonSpaceNonCommentCharacter(e,n,s.locEnd)?(o(n,a),!0):!(!n||!t||"Decorator"!==n.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"MethodDefinition"!==t.type)&&(o(n,a),!0)}function handleLastFunctionArgComments(e,t,n,a,s,i){if(t&&"FunctionTypeParam"===t.type&&n&&"FunctionTypeAnnotation"===n.type&&a&&"FunctionTypeParam"!==a.type)return o(t,s),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&n&&("ArrowFunctionExpression"===n.type||"FunctionExpression"===n.type||"FunctionDeclaration"===n.type||"ObjectMethod"===n.type||"ClassMethod"===n.type)&&")"===r.getNextNonSpaceNonCommentCharacter(e,s,i.locEnd))return o(t,s),!0;if(n&&"FunctionDeclaration"===n.type&&a&&"BlockStatement"===a.type){var p=function(){if(0!==n.params.length)return r.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,i.locEnd(r.getLast(n.params)));var t=r.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,i.locEnd(n.id));return r.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,t+1)}();if(i.locStart(s)>p)return addBlockStatementFirstComment(a,s),!0}return!1}function handleImportSpecifierComments(e,t){return!(!e||"ImportSpecifier"!==e.type)&&(s(e,t),!0)}function handleOnlyComments(e,t,n,r){return t&&t.body&&0===t.body.length?(r?i(t,n):s(t,n),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length)&&(r?i(e,n):s(e,n),!0)}e.exports={handleOwnLineComment:function handleOwnLineComment(e,t,n,a,i){var p=e.precedingNode,l=e.enclosingNode,c=e.followingNode;return!!(handleLastFunctionArgComments(t,p,l,c,e,n)||function handleMemberExpressionComments(e,t,n){if(e&&"MemberExpression"===e.type&&t&&"Identifier"===t.type)return s(e,n),!0;return!1}(l,c,e)||handleIfStatementComments(t,p,l,c,e,n)||handleWhileComments(t,p,l,c,e,n)||handleTryStatementComments(l,p,c,e)||handleClassComments(l,p,c,e)||handleImportSpecifierComments(l,e)||function handleForComments(e,t,n){if(e&&("ForInStatement"===e.type||"ForOfStatement"===e.type))return s(e,n),!0;return!1}(l,0,e)||function handleUnionTypeComments(e,t,n,r){if(t&&("UnionTypeAnnotation"===t.type||"TSUnionType"===t.type))return o(e,r),!0;return!1}(p,l,0,e)||handleOnlyComments(l,a,e,i)||function handleImportDeclarationComments(e,t,n,a,s){if(n&&"ImportSpecifier"===n.type&&t&&"ImportDeclaration"===t.type&&r.hasNewline(e,s.locEnd(a)))return o(n,a),!0;return!1}(t,l,p,e,n)||function handleAssignmentPatternComments(e,t){if(e&&"AssignmentPattern"===e.type)return s(e,t),!0;return!1}(l,e)||handleMethodNameComments(t,l,p,e,n))},handleEndOfLineComment:function handleEndOfLineComment(e,t,n,a,o){var i=e.precedingNode,p=e.enclosingNode,l=e.followingNode;return!!(handleLastFunctionArgComments(t,i,p,l,e,n)||function handleConditionalExpressionComments(e,t,n,a,o,i){var p=t&&!r.hasNewlineInRange(o,i.locEnd(t),i.locStart(a));if((!t||!p)&&e&&"ConditionalExpression"===e.type&&n)return s(n,a),!0;return!1}(p,i,l,e,t,n)||handleImportSpecifierComments(p,e)||handleIfStatementComments(t,i,p,l,e,n)||handleWhileComments(t,i,p,l,e,n)||handleTryStatementComments(p,i,l,e)||handleClassComments(p,i,l,e)||function handleLabeledStatementComments(e,t){if(e&&"LabeledStatement"===e.type)return s(e,t),!0;return!1}(p,e)||function handleCallExpressionComments(e,t,n){if(t&&"CallExpression"===t.type&&e&&t.callee===e&&t.arguments.length>0)return s(t.arguments[0],n),!0;return!1}(i,p,e)||function handlePropertyComments(e,t){if(e&&("Property"===e.type||"ObjectProperty"===e.type))return s(e,t),!0;return!1}(p,e)||handleOnlyComments(p,a,e,o)||function handleTypeAliasComments(e,t,n){if(e&&"TypeAlias"===e.type)return s(e,n),!0;return!1}(p,0,e)||function handleVariableDeclaratorComments(e,t,n){if(e&&("VariableDeclarator"===e.type||"AssignmentExpression"===e.type)&&t&&("ObjectExpression"===t.type||"ArrayExpression"===t.type||"TemplateLiteral"===t.type||"TaggedTemplateExpression"===t.type))return s(t,n),!0;return!1}(p,l,e))},handleRemainingComment:function handleRemainingComment(e,t,n,p,l){var c=e.precedingNode,u=e.enclosingNode,m=e.followingNode;return!!(handleIfStatementComments(t,c,u,m,e,n)||handleWhileComments(t,c,u,m,e,n)||function handleObjectPropertyAssignment(e,t,n){if(e&&("ObjectProperty"===e.type||"Property"===e.type)&&e.shorthand&&e.key===t&&"AssignmentPattern"===e.value.type)return o(e.value.left,n),!0;return!1}(u,c,e)||function handleCommentInEmptyParens(e,t,n,a){if(")"!==r.getNextNonSpaceNonCommentCharacter(e,n,a.locEnd))return!1;if(t&&(("FunctionDeclaration"===t.type||"FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type||"ClassMethod"===t.type||"ObjectMethod"===t.type)&&0===t.params.length||("CallExpression"===t.type||"NewExpression"===t.type)&&0===t.arguments.length))return i(t,n),!0;if(t&&"MethodDefinition"===t.type&&0===t.value.params.length)return i(t.value,n),!0;return!1}(t,u,e,n)||handleMethodNameComments(t,u,c,e,n)||handleOnlyComments(u,p,e,l)||function handleCommentAfterArrowParams(e,t,n,r){if(!t||"ArrowFunctionExpression"!==t.type)return!1;var s=a.getNextNonSpaceNonCommentCharacterIndex(e,n,r);if("=>"===e.substr(s,2))return i(t,n),!0;return!1}(t,u,e,n)||function handleFunctionNameComments(e,t,n,a,s){if("("!==r.getNextNonSpaceNonCommentCharacter(e,a,s.locEnd))return!1;if(n&&t&&("FunctionDeclaration"===t.type||"FunctionExpression"===t.type||"ClassMethod"===t.type||"MethodDefinition"===t.type||"ObjectMethod"===t.type))return o(n,a),!0;return!1}(t,u,c,e,n)||function handleTSMappedTypeComments(e,t,n,r,a){if(!t||"TSMappedType"!==t.type)return!1;if(r&&"TSTypeParameter"===r.type&&r.name)return s(r.name,a),!0;if(n&&"TSTypeParameter"===n.type&&n.constraint)return o(n.constraint,a),!0;return!1}(0,u,c,m,e)||function handleBreakAndContinueStatementComments(e,t){if(e&&("ContinueStatement"===e.type||"BreakStatement"===e.type)&&!e.label)return o(e,t),!0;return!1}(u,e))},hasLeadingComment:function hasLeadingComment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some((function(e){return e.leading&&t(e)}))},isBlockComment:function isBlockComment(e){return"Block"===e.type||"CommentBlock"===e.type}}},"../node_modules/@miksu/prettier/lib/language-js/embed.js":function(e,t,n){var r=n("../node_modules/@miksu/prettier/lib/language-js/comments.js"),a=r.isBlockComment,s=r.hasLeadingComment,o=n("../node_modules/@miksu/prettier/lib/doc/index.js"),i=o.builders,p=i.indent,l=i.join,c=i.hardline,u=i.softline,m=i.literalline,y=i.concat,d=i.group,g=i.dedentToRoot,f=o.utils,h=f.mapDoc,x=f.stripTrailingHardline;function uncook(e){return e.replace(/([\\`]|\$\{)/g,"\\$1")}function escapeTemplateCharacters(e,t){return h(e,(function(e){if(!e.parts)return e;var n=[];return e.parts.forEach((function(e){"string"==typeof e?n.push(t?e.replace(/(\\*)`/g,"$1$1\\`"):uncook(e)):n.push(e)})),Object.assign({},e,{parts:n})}))}function printGraphqlComments(e){var t=[],n=!1;return e.map((function(e){return e.trim()})).forEach((function(e,r,a){""!==e&&(""===a[r-1]&&n?t.push(y([c,e])):t.push(e),n=!0)})),0===t.length?null:l(c,t)}function isStyledJsx(e){var t=e.getValue(),n=e.getParentNode(),r=e.getParentNode(1);return r&&t.quasis&&"JSXExpressionContainer"===n.type&&"JSXElement"===r.type&&"style"===r.openingElement.name.name&&r.openingElement.attributes.some((function(e){return"jsx"===e.name.name}))||n&&"TaggedTemplateExpression"===n.type&&"Identifier"===n.tag.type&&"css"===n.tag.name||n&&"TaggedTemplateExpression"===n.type&&"MemberExpression"===n.tag.type&&"css"===n.tag.object.name&&("global"===n.tag.property.name||"resolve"===n.tag.property.name)}function isAngularComponentStyles(e){return isPathMatch(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"ArrayExpression"===e.type&&"elements"===t},function(e,t){return"Property"===e.type&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t}].concat([function(e,t){return"ObjectExpression"===e.type&&"properties"===t},function(e,t){return"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t},function(e,t){return"Decorator"===e.type&&"expression"===t}]))}function isStyledComponents(e){var t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;var n=t.tag;switch(n.type){case"MemberExpression":return isStyledIdentifier(n.object)||isStyledExtend(n);case"CallExpression":return isStyledIdentifier(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(isStyledIdentifier(n.callee.object.object)||isStyledExtend(n.callee.object))||"CallExpression"===n.callee.object.type&&isStyledIdentifier(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}function isCssProp(e){var t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}function isStyledIdentifier(e){return"Identifier"===e.type&&"styled"===e.name}function isStyledExtend(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function hasLanguageComment(e,t){return s(e,(function(e){return a(e)&&e.value===" ".concat(t," ")}))}function isPathMatch(e,t){var n=e.stack.slice(),r=null,a=n.pop(),s=!0,o=!1,i=void 0;try{for(var p,l=t[Symbol.iterator]();!(s=(p=l.next()).done);s=!0){var c=p.value;if(void 0===a)return!1;if("number"==typeof r&&(r=n.pop(),a=n.pop()),!c(a,r))return!1;r=n.pop(),a=n.pop()}}catch(e){o=!0,i=e}finally{try{s||null==l.return||l.return()}finally{if(o)throw i}}return!0}var T=0;e.exports=function embed(e,t,n,r){var a=e.getValue(),s=e.getParentNode(),o=e.getParentNode(1);switch(a.type){case"TemplateLiteral":if([isStyledJsx,isStyledComponents,isCssProp,isAngularComponentStyles].some((function(t){return t(e)}))){var i=a.quasis.map((function(e){return e.value.raw})),f=0,S=i.reduce((function(e,t,n){return 0==n?t:e+"@prettier-placeholder-"+f+++"-id"+t}),"");return function transformCssDoc(e,t,n){var r=t.getValue();if(1===r.quasis.length&&!r.quasis[0].value.raw.trim())return"``";var a=r.expressions?t.map(n,"expressions"):[],s=function replacePlaceholders(e,t){if(!t||!t.length)return e;var n=t.slice(),r=0,a=h(e,(function(e){if(!e||!e.parts||!e.parts.length)return e;var t=e.parts,a=t.indexOf("@"),s=a+1;if(a>-1&&"string"==typeof t[s]&&t[s].startsWith("prettier-placeholder")){var o=t[a],i=t[s],p=t.slice(s+1);t=t.slice(0,a).concat([o+i]).concat(p)}var l=t.findIndex((function(e){return"string"==typeof e&&e.startsWith("@prettier-placeholder")}));if(l>-1){var c=t[l],u=t.slice(l+1),m=c.match(/@prettier-placeholder-(.+)-id([\s\S]*)/),y=m[1],d=m[2],g=n[y];r++,t=t.slice(0,l).concat(["${",g,"}"+d]).concat(u)}return Object.assign({},e,{parts:t})}));return n.length===r?a:null}(e,a);if(!s)throw new Error("Couldn't insert all the expressions");return y(["`",p(y([c,x(s)])),u,"`"])}(n(S,{parser:"css"}),e,t)}if(function isGraphQL(e){var t=e.getValue(),n=e.getParentNode();return hasLanguageComment(t,"GraphQL")||n&&("TaggedTemplateExpression"===n.type&&("MemberExpression"===n.tag.type&&"graphql"===n.tag.object.name&&"experimental"===n.tag.property.name||"Identifier"===n.tag.type&&("gql"===n.tag.name||"graphql"===n.tag.name))||"CallExpression"===n.type&&"Identifier"===n.callee.type&&"graphql"===n.callee.name)}(e)){var E=a.expressions?e.map(t,"expressions"):[],b=a.quasis.length;if(1===b&&""===a.quasis[0].value.raw.trim())return"``";for(var v=[],C=0;C<b;C++){var A=0===C,P=C===b-1,N=a.quasis[C].value.cooked;if("string"!=typeof N)return null;var w=N.split("\n"),k=w.length,j=E[C],O=k>2&&""===w[0].trim()&&""===w[1].trim(),L=k>2&&""===w[k-1].trim()&&""===w[k-2].trim(),D=w.every((function(e){return/^\s*(?:#[^\r\n]*)?$/.test(e)}));if(!P&&/#[^\r\n]*$/.test(w[k-1]))return null;var I=null;(I=D?printGraphqlComments(w):x(n(N,{parser:"graphql"})))?(I=escapeTemplateCharacters(I,!1),!A&&O&&v.push(""),v.push(I),!P&&L&&v.push("")):A||P||!O||v.push(""),j&&v.push(y(["${",j,"}"]))}return y(["`",p(y([c,l(c,v)])),c,"`"])}var F=function isHtml(e){return hasLanguageComment(e.getValue(),"HTML")||isPathMatch(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t}])}(e)?"html":function isAngularComponentTemplate(e){return isPathMatch(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"Property"===e.type&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t}].concat([function(e,t){return"ObjectExpression"===e.type&&"properties"===t},function(e,t){return"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t},function(e,t){return"Decorator"===e.type&&"expression"===t}]))}(e)?"angular":void 0;if(F)return function printHtmlTemplateLiteral(e,t,n,r,a){var s=e.getValue(),o=T;T=T+1>>>0;var i=function composePlaceholder(e){return"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(o,"_IN_JS")},l=s.quasis.map((function(e,t,n){return t===n.length-1?e.value.cooked:e.value.cooked+i(t)})).join(""),m=e.map(t,"expressions");if(0===m.length&&0===l.trim().length)return"``";var g=RegExp(i("(\\d+)"),"g"),f=h(x(n(l,{parser:r})),(function(e){if("string"!=typeof e)return e;for(var t=[],n=e.split(g),r=0;r<n.length;r++){var s=n[r];if(r%2!=0){var o=+s;t.push(y(["${",d(m[o]),"}"]))}else s&&(s=uncook(s),a&&(s=s.replace(/<\/(script)\b/gi,"<\\/$1")),t.push(s))}return y(t)}));return d(y(["`",p(y([c,d(f)])),u,"`"]))}(e,t,n,F,r.embeddedInHtml);break;case"TemplateElement":if(o&&"TaggedTemplateExpression"===o.type&&1===s.quasis.length&&"Identifier"===o.tag.type&&("md"===o.tag.name||"markdown"===o.tag.name)){var M=s.quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(function(e,t){return"\\".repeat(t.length/2)+"`"})),B=function getIndentation(e){var t=e.match(/^([^\S\n]*)\S/m);return null===t?"":t[1]}(M);return y([""!==B?p(y([u,printMarkdown(M.replace(new RegExp("^".concat(B),"gm"),""))])):y([m,g(printMarkdown(M))]),u])}}function printMarkdown(e){var t=n(e,{parser:"markdown",__inJsTemplate:!0});return x(escapeTemplateCharacters(t,!0))}}},"../node_modules/@miksu/prettier/lib/language-js/html-binding.js":function(e,t,n){var r=n("../node_modules/@miksu/prettier/lib/doc/index.js").builders,a=r.concat,s=r.join,o=r.line;e.exports={isVueEventBindingExpression:function isVueEventBindingExpression(e){switch(e.type){case"MemberExpression":switch(e.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return isVueEventBindingExpression(e.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function printHtmlBinding(e,t,n){var r=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(r),"File"===r.type)return t.__isVueForBindingLeft?e.call((function(e){var t=e.getValue().params;return a([t.length>1?"(":"",s(a([",",o]),e.map(n,"params")),t.length>1?")":""])}),"program","body",0):t.__isVueSlotScope?e.call((function(e){return s(a([",",o]),e.map(n,"params"))}),"program","body",0):void 0}}},"../node_modules/@miksu/prettier/lib/language-js/index.js":function(e,t,n){var r=n("../node_modules/@miksu/prettier/lib/language-js/printer-estree.js"),a=n("../node_modules/@miksu/prettier/lib/language-js/printer-estree-json.js"),s=n("../node_modules/@miksu/prettier/lib/language-js/options.js"),o=n("../node_modules/@miksu/prettier/lib/utils/create-language.js"),i=[o(n("../node_modules/linguist-languages/data/JavaScript.json"),{override:{since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript"]},extend:{interpreters:["nodejs"]}}),o(n("../node_modules/linguist-languages/data/JavaScript.json"),{override:{name:"Flow",since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]}}),o(n("../node_modules/linguist-languages/data/JSX.json"),{override:{since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascriptreact"]}})],p={estree:r,"estree-json":a};e.exports={languages:i,options:s,printers:p}},"../node_modules/@miksu/prettier/lib/language-js/loc.js":function(e,t,n){var r=n("../node_modules/@miksu/prettier/lib/utils/get-last.js");e.exports={locStart:function locStart(e,t){return!(t=t||{}).ignoreDecorators&&e.declaration&&e.declaration.decorators&&e.declaration.decorators.length>0?locStart(e.declaration.decorators[0]):!t.ignoreDecorators&&e.decorators&&e.decorators.length>0?locStart(e.decorators[0]):e.__location?e.__location.startOffset:e.range?e.range[0]:"number"==typeof e.start?e.start:e.loc?e.loc.start:null},locEnd:function locEnd(e){var t=e.nodes&&r(e.nodes);if(t&&e.source&&!e.source.end&&(e=t),e.__location)return e.__location.endOffset;var n=e.range?e.range[1]:"number"==typeof e.end?e.end:null;return e.typeAnnotation?Math.max(n,locEnd(e.typeAnnotation)):e.loc&&!n?e.loc.end:n}}},"../node_modules/@miksu/prettier/lib/language-js/needs-parens.js":function(e,t,n){var r=n("../node_modules/assert/assert.js"),a=n("../node_modules/@miksu/prettier/lib/common/util.js"),s=n("../node_modules/@miksu/prettier/lib/language-js/comments.js"),o=n("../node_modules/@miksu/prettier/lib/language-js/utils.js"),i=o.getLeftSidePathName,p=o.hasNakedLeftSide,l=o.hasFlowShorthandAnnotationComment;function hasClosureCompilerTypeCastComment(e,t){var n=t.getValue();return isParenthesized(n)&&(hasTypeCastComment(n)||function hasAncestorTypeCastComment(e){var n=t.getParentNode(e);return!(!n||isParenthesized(n))&&(hasTypeCastComment(n)||hasAncestorTypeCastComment(e+1))}(0));function hasTypeCastComment(e){return e.comments&&e.comments.some((function(e){return e.leading&&s.isBlockComment(e)&&function isTypeCastComment(e){var t=e.trim().split("\n").map((function(e){return e.replace(/^[\s*]+/,"")})).join(" ").trim();if(!/^@type\s*\{[^]+\}$/.test(t))return!1;var n=!1,r=0,a=!0,s=!1,o=void 0;try{for(var i,p=t[Symbol.iterator]();!(a=(i=p.next()).done);a=!0){var l=i.value;if("{"===l){if(n)return!1;r++}else if("}"===l){if(0===r)return!1;0===--r&&(n=!0)}}}catch(e){s=!0,o=e}finally{try{a||null==p.return||p.return()}finally{if(s)throw o}}return 0===r}(e.value)}))}function isParenthesized(e){return e.extra&&e.extra.parenthesized}}function needsParens(e,t){var n=e.getParentNode();if(!n)return!1;var s=e.getName(),o=e.getNode();if(e.getValue()!==o)return!1;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function endsWithRightBracket(e){switch(e.type){case"ObjectExpression":return!0;default:return!1}}(o)&&isFollowedByRightBracket(e))return!0;if(function isStatement(e){return"BlockStatement"===e.type||"BreakStatement"===e.type||"ClassBody"===e.type||"ClassDeclaration"===e.type||"ClassMethod"===e.type||"ClassProperty"===e.type||"ClassPrivateProperty"===e.type||"ContinueStatement"===e.type||"DebuggerStatement"===e.type||"DeclareClass"===e.type||"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type||"DeclareFunction"===e.type||"DeclareInterface"===e.type||"DeclareModule"===e.type||"DeclareModuleExports"===e.type||"DeclareVariable"===e.type||"DoWhileStatement"===e.type||"ExportAllDeclaration"===e.type||"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExpressionStatement"===e.type||"ForAwaitStatement"===e.type||"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type||"FunctionDeclaration"===e.type||"IfStatement"===e.type||"ImportDeclaration"===e.type||"InterfaceDeclaration"===e.type||"LabeledStatement"===e.type||"MethodDefinition"===e.type||"ReturnStatement"===e.type||"SwitchStatement"===e.type||"ThrowStatement"===e.type||"TryStatement"===e.type||"TSDeclareFunction"===e.type||"TSEnumDeclaration"===e.type||"TSImportEqualsDeclaration"===e.type||"TSInterfaceDeclaration"===e.type||"TSModuleDeclaration"===e.type||"TSNamespaceExportDeclaration"===e.type||"TypeAlias"===e.type||"VariableDeclaration"===e.type||"WhileStatement"===e.type||"WithStatement"===e.type}(o))return!1;if(hasClosureCompilerTypeCastComment(t.originalText,e))return!0;if("flow"!==t.parser&&l(e.getValue()))return!0;if("Identifier"===o.type)return!!(o.extra&&o.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(o.name));if("ParenthesizedExpression"===n.type)return!1;if(!("ClassDeclaration"!==n.type&&"ClassExpression"!==n.type||n.superClass!==o||"ArrowFunctionExpression"!==o.type&&"AssignmentExpression"!==o.type&&"AwaitExpression"!==o.type&&"BinaryExpression"!==o.type&&"ConditionalExpression"!==o.type&&"LogicalExpression"!==o.type&&"NewExpression"!==o.type&&"ObjectExpression"!==o.type&&"ParenthesizedExpression"!==o.type&&"SequenceExpression"!==o.type&&"TaggedTemplateExpression"!==o.type&&"UnaryExpression"!==o.type&&"UpdateExpression"!==o.type&&"YieldExpression"!==o.type))return!0;if("ExportDefaultDeclaration"===n.type)return function shouldWrapFunctionForExportDefault(e,t){var n=e.getValue(),r=e.getParentNode();if("FunctionExpression"===n.type||"ClassExpression"===n.type)return"ExportDefaultDeclaration"===r.type||!needsParens(e,t);if(!p(n)||"ExportDefaultDeclaration"!==r.type&&needsParens(e,t))return!1;return e.call.apply(e,[function(e){return shouldWrapFunctionForExportDefault(e,t)}].concat(i(e,n)))}(e,t);if("Decorator"===n.type&&n.expression===o){for(var c=!1,u=!1,m=o;m;)switch(m.type){case"MemberExpression":u=!0,m=m.object;break;case"CallExpression":if(u||c)return!0;c=!0,m=m.callee;break;case"Identifier":return!1;default:return!0}return!0}if("ArrowFunctionExpression"===n.type&&n.body===o&&"SequenceExpression"!==o.type&&a.startsWithNoLookaheadToken(o,!1)||"ExpressionStatement"===n.type&&a.startsWithNoLookaheadToken(o,!0))return!0;switch(o.type){case"SpreadElement":case"SpreadProperty":return"MemberExpression"===n.type&&"object"===s&&n.object===o;case"UpdateExpression":if("UnaryExpression"===n.type)return o.prefix&&("++"===o.operator&&"+"===n.operator||"--"===o.operator&&"-"===n.operator);case"UnaryExpression":switch(n.type){case"UnaryExpression":return o.operator===n.operator&&("+"===o.operator||"-"===o.operator);case"BindExpression":return!0;case"MemberExpression":return"object"===s&&n.object===o;case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":return"callee"===s&&n.callee===o;case"BinaryExpression":return"**"===n.operator&&"left"===s;case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if("UpdateExpression"===n.type)return!0;if("in"===o.operator&&function isLeftOfAForStatement(t){for(var n=0;t;){var r=e.getParentNode(n++);if(!r)return!1;if("ForStatement"===r.type&&r.init===t)return!0;t=r}return!1}(o))return!0;case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(n.type){case"ConditionalExpression":return"TSAsExpression"===o.type;case"CallExpression":case"NewExpression":return"callee"===s&&n.callee===o;case"ClassExpression":case"ClassDeclaration":return"superClass"===s&&n.superClass===o;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSAsExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===s&&n.object===o;case"AssignmentExpression":return n.left===o&&("TSTypeAssertion"===o.type||"TSAsExpression"===o.type);case"BinaryExpression":case"LogicalExpression":if(!o.operator&&"TSTypeAssertion"!==o.type)return!0;var y=n.operator,d=a.getPrecedence(y),g=o.operator,f=a.getPrecedence(g);return d>f||(("||"===y||"??"===y)&&"&&"===g||(d===f&&"right"===s?(r.strictEqual(n.right,o),!0):d===f&&!a.shouldFlatten(y,g)||(d<f&&"%"===g?"+"===y||"-"===y:!!a.isBitwiseOperator(y))));default:return!1}case"TSParenthesizedType":var h=e.getParentNode(1);return"TSFunctionType"===function getUnparenthesizedNode(e){return"TSParenthesizedType"===e.type?getUnparenthesizedNode(e.typeAnnotation):e}(o).type&&"TSTypeAnnotation"===n.type&&"ArrowFunctionExpression"===h.type&&h.returnType===n||("TSTypeParameter"!==n.type&&"TypeParameter"!==n.type&&"TSTypeAliasDeclaration"!==n.type&&"TSTypeAnnotation"!==n.type&&"TSParenthesizedType"!==n.type&&"TSTypeParameterInstantiation"!==n.type||"TSTypeOperator"===h.type||"TSOptionalType"===h.type)&&("TSParenthesizedType"!==o.typeAnnotation.type||"TSArrayType"===n.type);case"SequenceExpression":switch(n.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==s;case"ArrowFunctionExpression":return"body"!==s;default:return!0}case"YieldExpression":if("UnaryExpression"===n.type||"AwaitExpression"===n.type||"TSAsExpression"===n.type||"TSNonNullExpression"===n.type)return!0;case"AwaitExpression":switch(n.type){case"TaggedTemplateExpression":case"UnaryExpression":case"BinaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":case"OptionalMemberExpression":return!0;case"MemberExpression":return n.object===o;case"NewExpression":case"CallExpression":return n.callee===o;case"ConditionalExpression":return n.test===o;default:return!1}case"ArrayTypeAnnotation":return"NullableTypeAnnotation"===n.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"ArrayTypeAnnotation"===n.type||"NullableTypeAnnotation"===n.type||"IntersectionTypeAnnotation"===n.type||"UnionTypeAnnotation"===n.type;case"NullableTypeAnnotation":return"ArrayTypeAnnotation"===n.type;case"FunctionTypeAnnotation":var x="NullableTypeAnnotation"===n.type?e.getParentNode(1):n;return"UnionTypeAnnotation"===x.type||"IntersectionTypeAnnotation"===x.type||"ArrayTypeAnnotation"===x.type||"NullableTypeAnnotation"===x.type;case"StringLiteral":case"NumericLiteral":case"Literal":if("string"==typeof o.value&&"ExpressionStatement"===n.type&&("typescript"!==t.parser&&!n.directive||"typescript"===t.parser&&"("===t.originalText.substr(t.locStart(o)-1,1))){var T=e.getParentNode(1);return"Program"===T.type||"BlockStatement"===T.type}return"MemberExpression"===n.type&&"number"==typeof o.value&&"object"===s&&n.object===o;case"AssignmentExpression":var S=e.getParentNode(1);return"ArrowFunctionExpression"===n.type&&n.body===o||("ClassProperty"!==n.type||n.key!==o||!n.computed)&&(("TSPropertySignature"!==n.type||n.name!==o)&&(("ForStatement"!==n.type||n.init!==o&&n.update!==o)&&("ExpressionStatement"===n.type?"ObjectPattern"===o.left.type:("TSPropertySignature"!==n.type||n.key!==o)&&("AssignmentExpression"!==n.type&&(("SequenceExpression"!==n.type||!S||"ForStatement"!==S.type||S.init!==n&&S.update!==n)&&(("Property"!==n.type||n.value!==o)&&"NGChainedExpression"!==n.type))))));case"ConditionalExpression":switch(n.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSNonNullExpression":case"OptionalMemberExpression":return!0;case"NewExpression":case"CallExpression":return"callee"===s&&n.callee===o;case"ConditionalExpression":return"test"===s&&n.test===o;case"MemberExpression":return"object"===s&&n.object===o;default:return!1}case"FunctionExpression":switch(n.type){case"NewExpression":case"CallExpression":return"callee"===s;case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(n.type){case"CallExpression":case"NewExpression":return"callee"===s;case"MemberExpression":return"object"===s;case"TSAsExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"BinaryExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return"test"===s;default:return!1}case"ClassExpression":switch(n.type){case"NewExpression":return"callee"===s&&n.callee===o;default:return!1}case"OptionalMemberExpression":return"MemberExpression"===n.type;case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if(("BindExpression"===n.type||"NewExpression"===n.type)&&"callee"===s&&n.callee===o)for(var E=o;E;)switch(E.type){case"CallExpression":return!0;case"MemberExpression":case"BindExpression":E=E.object;break;case"TaggedTemplateExpression":E=E.tag;break;case"TSNonNullExpression":E=E.expression;break;default:return!1}return!1;case"BindExpression":return"BindExpression"===n.type&&"callee"===s&&n.callee===o||"MemberExpression"===n.type&&"object"===s&&n.object===o||"NewExpression"===n.type&&"callee"===s&&n.callee===o;case"NGPipeExpression":return!("NGRoot"===n.type||"NGMicrosyntaxExpression"===n.type||"ObjectProperty"===n.type||"ArrayExpression"===n.type||("CallExpression"===n.type||"OptionalCallExpression"===n.type)&&n.arguments[s]===o||"NGPipeExpression"===n.type&&"right"===s||"MemberExpression"===n.type&&"property"===s||"AssignmentExpression"===n.type)}return!1}function isFollowedByRightBracket(e){var t=e.getValue(),n=e.getParentNode(),r=e.getName();switch(n.type){case"NGPipeExpression":if("number"==typeof r&&n.arguments[r]===t&&n.arguments.length-1===r)return e.callParent(isFollowedByRightBracket);break;case"ObjectProperty":if("value"===r){var a=e.getParentNode(1);return a.properties[a.properties.length-1]===n}break;case"BinaryExpression":case"LogicalExpression":if("right"===r)return e.callParent(isFollowedByRightBracket);break;case"ConditionalExpression":if("alternate"===r)return e.callParent(isFollowedByRightBracket);break;case"UnaryExpression":if(n.prefix)return e.callParent(isFollowedByRightBracket)}return!1}e.exports=needsParens},"../node_modules/@miksu/prettier/lib/language-js/options.js":function(e,t,n){var r=n("../node_modules/@miksu/prettier/lib/common/common-options.js");e.exports={arrowParens:{since:"1.9.0",category:"JavaScript",type:"choice",default:"avoid",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"avoid",description:"Omit parens when possible. Example: `x => x`"},{value:"always",description:"Always include parens. Example: `(x) => x`"}]},bracketSpacing:r.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:"JavaScript",type:"boolean",default:!1,description:"Put > on the last line instead of at a new line."},semi:{since:"1.0.0",category:"JavaScript",type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:r.singleQuote,jsxSingleQuote:{since:"1.15.0",category:"JavaScript",type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:"JavaScript",type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:"JavaScript",type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"none",description:"No trailing commas."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:!0,deprecated:"0.19.0",redirect:"es5"},{value:!1,deprecated:"0.19.0",redirect:"none"}]}}},"../node_modules/@miksu/prettier/lib/language-js/parser-babylon.js":function(e,t,n){var r=n("../node_modules/@miksu/prettier/lib/common/parser-create-error.js"),a=n("../node_modules/@miksu/prettier/lib/language-js/pragma.js").hasPragma,s=n("../node_modules/@miksu/prettier/lib/language-js/loc.js"),o=n("../node_modules/@miksu/prettier/lib/language-js/postprocess.js"),i=n("../node_modules/@babel/parser/lib/index.js");function babelOptions(e,t){return Object.assign({sourceType:"module",allowAwaitOutsideFunction:!0,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,plugins:["jsx","doExpressions","objectRestSpread","classProperties","exportDefaultFrom","exportNamespaceFrom","asyncGenerators","functionBind","functionSent","dynamicImport","numericSeparator","importMeta","optionalCatchBinding","optionalChaining","classPrivateProperties",["pipelineOperator",{proposal:"minimal"}],"nullishCoalescingOperator","bigInt","throwExpressions","logicalAssignment","classPrivateMethods"].concat(t)},e)}function createParse(e,t){return function(n,a,s){var p,l=[babelOptions({strictMode:!0},["decorators-legacy"].concat(t)),babelOptions({strictMode:!1},["decorators-legacy"].concat(t)),babelOptions({strictMode:!0},[["decorators",{decoratorsBeforeExport:!1}]].concat(t)),babelOptions({strictMode:!1},[["decorators",{decoratorsBeforeExport:!1}]].concat(t))];try{p=function tryCombinations(e,t){for(var n,r=0;r<t.length;r++)try{return e(t[r])}catch(e){n||(n=e)}throw n}(i[e].bind(null,n),l)}catch(e){throw r(e.message.replace(/ \(.*\)/,""),{start:{line:e.loc.line,column:e.loc.column+1}})}return delete p.tokens,o(p,Object.assign({},s,{originalText:n}))}}var p=createParse("parse",["flow"]),l=createParse("parse",[["flow",{all:!0}]]),c=createParse("parseExpression");function assertJsonNode(e,t){switch(e.type){case"ArrayExpression":return e.elements.forEach(assertJsonChildNode);case"ObjectExpression":return e.properties.forEach(assertJsonChildNode);case"ObjectProperty":if(e.computed)throw createJsonError("computed");if(e.shorthand)throw createJsonError("shorthand");return[e.key,e.value].forEach(assertJsonChildNode);case"UnaryExpression":switch(e.operator){case"+":case"-":return assertJsonChildNode(e.argument);default:throw createJsonError("operator")}case"Identifier":if(t&&"ObjectProperty"===t.type&&t.key===e)return;throw createJsonError();case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":return;default:throw createJsonError()}function assertJsonChildNode(t){return assertJsonNode(t,e)}function createJsonError(t){var n=t?"".concat(e.type," with ").concat(t,"=").concat(JSON.stringify(e[t])):e.type;return r("".concat(n," is not allowed in JSON."),{start:{line:e.loc.start.line,column:e.loc.start.column+1}})}}var u=Object.assign({parse:p,astFormat:"estree",hasPragma:a},s),m=Object.assign({},u,{parse:l}),y=Object.assign({},u,{parse:c});e.exports={parsers:{babel:u,"babel-flow":m,babylon:u,json:Object.assign({},y,{hasPragma:function hasPragma(){return!0}}),json5:y,"json-stringify":Object.assign({parse:function parseJson(e,t,n){var r=c(e,t,n);return r.comments.forEach(assertJsonNode),assertJsonNode(r),r},astFormat:"estree-json"},s),__js_expression:y,__vue_expression:y,__vue_event_binding:u}}},"../node_modules/@miksu/prettier/lib/language-js/postprocess.js":function(e,t,n){function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=n("../node_modules/@miksu/prettier/lib/common/util.js").getLast;e.exports=function postprocess(e,t){return function visitNode(e,t){if(!e||"object"!==_typeof(e))return;if(Array.isArray(e)){var n=!0,r=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var i=s.value;visitNode(i,t)}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return}if("string"!=typeof e.type)return;for(var p=0,l=Object.keys(e);p<l.length;p++){var c=l[p];visitNode(e[c],t)}t(e)}(e,(function(e){switch(e.type){case"VariableDeclaration":var n=r(e.declarations);n&&n.init&&function overrideLocEnd(e,n){if(";"===t.originalText[function locEnd(e){return"flow"===t.parser?e.range[1]:e.end}(n)])return;"flow"===t.parser?e.range=[e.range[0],n.range[1]]:e.end=n.end;e.loc=Object.assign({},e.loc,{end:e.loc.end})}(e,n)}})),e}},"../node_modules/@miksu/prettier/lib/language-js/pragma.js":function(e,t,n){var r=n("../node_modules/jest-docblock/build/index.js");e.exports={hasPragma:function hasPragma(e){var t=Object.keys(r.parse(r.extract(e)));return-1!==t.indexOf("prettier")||-1!==t.indexOf("format")},insertPragma:function insertPragma(e){var t=r.parseWithComments(r.extract(e)),n=Object.assign({format:""},t.pragmas),a=r.print({pragmas:n,comments:t.comments.replace(/^(\s+?\r?\n)+/,"")}).replace(/(\r\n|\r)/g,"\n"),s=r.strip(e);return a+(s.startsWith("\n")?"\n":"\n\n")+s}}},"../node_modules/@miksu/prettier/lib/language-js/preprocess.js":function(e,t,n){e.exports=function preprocess(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign({},e,{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[]});default:return e}}},"../node_modules/@miksu/prettier/lib/language-js/printer-estree-json.js":function(e,t,n){var r=n("../node_modules/@miksu/prettier/lib/doc/index.js").builders,a=r.concat,s=r.hardline,o=r.indent,i=r.join,p=n("../node_modules/@miksu/prettier/lib/language-js/preprocess.js");e.exports={preprocess:p,print:function genericPrint(e,t,n){var r=e.getValue();switch(r.type){case"JsonRoot":return a([e.call(n,"node"),s]);case"ArrayExpression":return 0===r.elements.length?"[]":a(["[",o(a([s,i(a([",",s]),e.map(n,"elements"))])),s,"]"]);case"ObjectExpression":return 0===r.properties.length?"{}":a(["{",o(a([s,i(a([",",s]),e.map(n,"properties"))])),s,"}"]);case"ObjectProperty":return a([e.call(n,"key"),": ",e.call(n,"value")]);case"UnaryExpression":return a(["+"===r.operator?"":r.operator,e.call(n,"argument")]);case"NullLiteral":return"null";case"BooleanLiteral":return r.value?"true":"false";case"StringLiteral":case"NumericLiteral":return JSON.stringify(r.value);case"Identifier":return JSON.stringify(r.name);default:throw new Error("unknown type: "+JSON.stringify(r.type))}},massageAstNode:function clean(e,t){return delete t.start,delete t.end,delete t.extra,delete t.loc,delete t.comments,"Identifier"===e.type?{type:"StringLiteral",value:e.name}:"UnaryExpression"===e.type&&"+"===e.operator?t.argument:void 0}}},"../node_modules/@miksu/prettier/lib/language-js/printer-estree.js":function(e,t,n){function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=n("../node_modules/assert/assert.js"),a=n("../node_modules/@miksu/prettier/lib/main/comments.js"),s=n("../node_modules/@miksu/prettier/lib/common/util.js"),o=s.getParentExportDeclaration,i=s.isExportDeclaration,p=s.shouldFlatten,l=s.getNextNonSpaceNonCommentCharacter,c=s.hasNewline,u=s.hasNewlineInRange,m=s.getLast,y=s.getStringWidth,d=s.printString,g=s.printNumber,f=s.hasIgnoreComment,h=s.skipWhitespace,x=s.hasNodeIgnoreComment,T=s.getPenultimate,S=s.startsWithNoLookaheadToken,E=s.getIndentSize,b=s.matchAncestorTypes,v=s.getPreferredQuote,C=n("../node_modules/@miksu/prettier/lib/common/util-shared.js"),A=C.isNextLineEmpty,P=C.isNextLineEmptyAfterIndex,N=C.getNextNonSpaceNonCommentCharacterIndex,w=n("../node_modules/@miksu/prettier/node_modules/esutils/lib/utils.js").keyword.isIdentifierNameES5,k=n("../node_modules/@miksu/prettier/lib/language-js/embed.js"),j=n("../node_modules/@miksu/prettier/lib/language-js/clean.js"),O=n("../node_modules/@miksu/prettier/lib/language-js/pragma.js").insertPragma,L=n("../node_modules/@miksu/prettier/lib/language-js/comments.js"),D=n("../node_modules/@miksu/prettier/lib/language-js/needs-parens.js"),I=n("../node_modules/@miksu/prettier/lib/language-js/html-binding.js"),F=I.printHtmlBinding,M=I.isVueEventBindingExpression,B=n("../node_modules/@miksu/prettier/lib/language-js/preprocess.js"),J=n("../node_modules/@miksu/prettier/lib/language-js/utils.js"),_=J.getLeftSide,X=J.getLeftSidePathName,q=J.hasNakedLeftSide,V=J.hasNode,R=J.hasFlowAnnotationComment,W=J.hasFlowShorthandAnnotationComment,G=new WeakMap,K=n("../node_modules/@miksu/prettier/lib/doc/index.js"),U=K.builders,H=U.concat,z=U.join,$=U.line,Q=U.hardline,Y=U.softline,Z=U.literalline,ee=U.group,te=U.indent,ne=U.align,re=U.conditionalGroup,ae=U.fill,se=U.ifBreak,oe=U.breakParent,ie=U.lineSuffixBoundary,pe=U.addAlignmentToDoc,le=U.dedent,ce=K.utils,ue=ce.willBreak,me=ce.isLineNext,ye=ce.isEmpty,de=ce.removeLines,ge=K.printer.printDocToString,fe=0;function shouldPrintComma(e,t){switch(t=t||"es5",e.trailingComma){case"all":if("all"===t)return!0;case"es5":if("es5"===t)return!0;case"none":default:return!1}}function hasNewlineBetweenOrAfterDecorators(e,t){return u(t.originalText,t.locStart(e.decorators[0]),t.locEnd(m(e.decorators)))||c(t.originalText,t.locEnd(m(e.decorators)))}function printDecorators(e,t,n){var r=e.getValue();return ee(H([z($,e.map(n,"decorators")),hasNewlineBetweenOrAfterDecorators(r,t)?Q:$]))}function printTernaryOperator(e,t,n,r){var a,s,o=e.getValue(),i=o[r.testNodePropertyName],p=o[r.consequentNodePropertyName],l=o[r.alternateNodePropertyName],c=[],u=!1,m=e.getParentNode(),y=m.type===r.conditionalNodeType,d=0;do{s=a||o,a=e.getParentNode(d),d++}while(a&&a.type===r.conditionalNodeType);var g=a||m,f=s;if(r.shouldCheckJsx&&(isJSXNode(i)||isJSXNode(p)||isJSXNode(l)||function conditionalExpressionChainContainsJSX(e){return Boolean(function getConditionalChainContents(e){var t=[];return function recurse(e){"ConditionalExpression"===e.type?(recurse(e.test),recurse(e.consequent),recurse(e.alternate)):t.push(e)}(e),t}(e).find(isJSXNode))}(f))){u=!0,y=!0;var h=function wrap(e){return H([se("(",""),te(H([Y,e])),Y,se(")","")])},x=function isNull(e){return"NullLiteral"===e.type||"Literal"===e.type&&null===e.value};c.push(" ? ",x(p)?e.call(n,r.consequentNodePropertyName):h(e.call(n,r.consequentNodePropertyName))," : ",l.type===r.conditionalNodeType||x(l)?e.call(n,r.alternateNodePropertyName):h(e.call(n,r.alternateNodePropertyName)))}else{var T=H([$,"? ",p.type===r.conditionalNodeType?se("","("):"",ne(2,e.call(n,r.consequentNodePropertyName)),p.type===r.conditionalNodeType?se("",")"):"",$,": ",l.type===r.conditionalNodeType?e.call(n,r.alternateNodePropertyName):ne(2,e.call(n,r.alternateNodePropertyName))]);c.push(m.type!==r.conditionalNodeType||m[r.alternateNodePropertyName]===o?T:t.useTabs?le(te(T)):ne(Math.max(0,t.tabWidth-2),T))}var S,E=!(u||"MemberExpression"!==m.type&&"OptionalMemberExpression"!==m.type||m.computed);return function maybeGroup(e){return r.breakNested?m===g?ee(e):e:ee(e)}(H([].concat((S=H(r.beforeParts()),m.type===r.conditionalNodeType&&m[r.alternateNodePropertyName]===o?ne(2,S):S),y?H(c):te(H(c)),r.afterParts(E))))}function getTypeScriptMappedTypeModifier(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t}function isNgForOf(e,t,n){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===n.body[0].type&&null===n.body[0].value}function printStatementSequence(e,t,n){var r=[],a=e.getNode(),s="ClassBody"===a.type;return e.map((function(e,o){var i=e.getValue();if(i&&"EmptyStatement"!==i.type){var p=n(e),l=t.originalText,c=[];if(t.semi||s||isTheOnlyJSXElementInMarkdown(t,e)||!function stmtNeedsASIProtection(e,t){if("ExpressionStatement"!==e.getNode().type)return!1;return e.call((function(e){return function exprNeedsASIProtection(e,t){var n=e.getValue();if(D(e,t)||"ParenthesizedExpression"===n.type||"TypeCastExpression"===n.type||"ArrowFunctionExpression"===n.type&&!shouldPrintParamsWithoutParens(e,t)||"ArrayExpression"===n.type||"ArrayPattern"===n.type||"UnaryExpression"===n.type&&n.prefix&&("+"===n.operator||"-"===n.operator)||"TemplateLiteral"===n.type||"TemplateElement"===n.type||isJSXNode(n)||"BindExpression"===n.type&&!n.object||"RegExpLiteral"===n.type||"Literal"===n.type&&n.pattern||"Literal"===n.type&&n.regex)return!0;if(!q(n))return!1;return e.call.apply(e,[function(e){return exprNeedsASIProtection(e,t)}].concat(X(e,n)))}(e,t)}),"expression")}(e,t)?c.push(p):i.comments&&i.comments.some((function(e){return e.leading}))?c.push(n(e,{needsSemi:!0})):c.push(";",p),!t.semi&&s)if(function classPropMayCauseASIProblems(e){var t=e.getNode();if("ClassProperty"!==t.type)return!1;var n=t.key&&t.key.name;if(!("static"!==n&&"get"!==n&&"set"!==n||t.value||t.typeAnnotation))return!0}(e))c.push(";");else if("ClassProperty"===i.type){(function classChildNeedsASIProtection(e){if(!e)return;if(e.static||e.accessibility)return!1;if(!e.computed){var t=e.key&&e.key.name;if("in"===t||"instanceof"===t)return!0}switch(e.type){case"ClassProperty":case"TSAbstractClassProperty":return e.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":var n=e.value?e.value.async:e.async,r=e.value?e.value.generator:e.generator;return!n&&"get"!==e.kind&&"set"!==e.kind&&!(!e.computed&&!r);default:return!1}})(a.body[o+1])&&c.push(";")}A(l,i,t)&&!function isLastStatement(e){var t=e.getParentNode();if(!t)return!0;var n=e.getValue(),r=(t.body||t.consequent).filter((function(e){return"EmptyStatement"!==e.type}));return r&&r[r.length-1]===n}(e)&&c.push(Q),r.push(H(c))}})),z(Q,r)}function printPropertyKey(e,t,n){var r=e.getNode(),s=e.getParentNode(),o=r.key;if("consistent"===t.quoteProps&&!G.has(s)){var i=(s.properties||s.body||s.members).some((function(e){return!e.computed&&e.key&&isStringLiteral(e.key)&&!isStringPropSafeToCoerceToIdentifier(e,t)}));G.set(s,i)}if("Identifier"===o.type&&!r.computed&&("json"===t.parser||"consistent"===t.quoteProps&&G.get(s))){var p=d(JSON.stringify(o.name),t);return e.call((function(e){return a.printComments(e,(function(){return p}),t)}),"key")}return r.computed||!isStringPropSafeToCoerceToIdentifier(r,t)||"as-needed"!==t.quoteProps&&("consistent"!==t.quoteProps||G.get(s))?e.call(n,"key"):e.call((function(e){return a.printComments(e,(function(){return o.value}),t)}),"key")}function printMethod(e,t,n){var a=e.getNode(),s=t.semi?";":"",o=a.kind,i=[];"ObjectMethod"!==a.type&&"ClassMethod"!==a.type&&"ClassPrivateMethod"!==a.type||(a.value=a),a.value.async&&i.push("async "),o&&"init"!==o&&"method"!==o&&"constructor"!==o?(r.ok("get"===o||"set"===o),i.push(o," ")):a.value.generator&&i.push("*");var p=printPropertyKey(e,t,n);return a.computed&&(p=H(["[",p,"]"])),i.push(p,H(e.call((function(e){return[printFunctionTypeParameters(e,t,n),ee(H([printFunctionParams(e,n,t),printReturnType(e,n,t)]))]}),"value"))),a.value.body&&0!==a.value.body.length?i.push(" ",e.call(n,"value","body")):i.push(s),H(i)}function couldGroupArg(e){return"ObjectExpression"===e.type&&(e.properties.length>0||e.comments)||"ArrayExpression"===e.type&&(e.elements.length>0||e.comments)||"TSTypeAssertion"===e.type||"TSAsExpression"===e.type||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type)&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||"CallExpression"===e.body.type||"OptionalCallExpression"===e.body.type||"ConditionalExpression"===e.body.type||isJSXNode(e.body))}function isSimpleFlowType(e){return e&&-1!==["AnyTypeAnnotation","NullLiteralTypeAnnotation","GenericTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation","BooleanTypeAnnotation","BooleanLiteralTypeAnnotation","StringTypeAnnotation"].indexOf(e.type)&&!("GenericTypeAnnotation"===e.type&&e.typeParameters)}var he=new Set(["pipe","pipeP","pipeK","compose","composeFlipped","composeP","composeK","flow","flowRight","connect","createSelector"]),xe=new Set(["connect"]);function printArgumentsList(e,t,n){var r=e.getValue(),s=r.arguments;if(0===s.length)return H(["(",a.printDanglingComments(e,t,!0),")"]);if(2===s.length&&"ArrowFunctionExpression"===s[0].type&&0===s[0].params.length&&"BlockStatement"===s[0].body.type&&"ArrayExpression"===s[1].type&&!s.find((function(e){return e.comments})))return H(["(",e.call(n,"arguments",0),", ",e.call(n,"arguments",1),")"]);var o=!1,i=!1,p=s.length-1,l=e.map((function(e,r){var a=e.getNode(),s=[n(e)];return r===p||(A(t.originalText,a,t)?(0===r&&(i=!0),o=!0,s.push(",",Q,Q)):s.push(",",$)),o=function hasEmptyLineInObjectArgInArrowFunction(e){return e&&"ArrowFunctionExpression"===e.type&&e.params&&e.params.some((function(e){return e.type&&"ObjectPattern"===e.type&&e.properties&&e.properties.some((function(e,n,r){return n<r.length-1&&A(t.originalText,e,t)}))}))}(a),H(s)}),"arguments"),c=r.callee&&"Import"===r.callee.type||!shouldPrintComma(t,"all")?"":",";function allArgsBrokenOut(){return ee(H(["(",te(H([$,H(l)])),c,$,")"]),{shouldBreak:!0})}if(function isFunctionCompositionFunction(e){switch(e.type){case"OptionalMemberExpression":case"MemberExpression":return isFunctionCompositionFunction(e.property)&&!xe.has(e.property.name);case"Identifier":return he.has(e.name);case"StringLiteral":case"Literal":return he.has(e.value)}}(r.callee)&&s.length>1)return allArgsBrokenOut();var u=function shouldGroupFirstArg(e){if(2!==e.length)return!1;var t=e[0],n=e[1];return!(t.comments&&t.comments.length||"FunctionExpression"!==t.type&&("ArrowFunctionExpression"!==t.type||"BlockStatement"!==t.body.type)||"FunctionExpression"===n.type||"ArrowFunctionExpression"===n.type||"ConditionalExpression"===n.type||couldGroupArg(n))}(s),y=function shouldGroupLastArg(e){var t=m(e),n=T(e);return!hasLeadingComment(t)&&!hasTrailingComment(t)&&couldGroupArg(t)&&(!n||n.type!==t.type)}(s);if(u||y){var d,g=(u?l.slice(1).some(ue):l.slice(0,-1).some(ue))||o,f=0;e.each((function(e){u&&0===f&&(d=[H([e.call((function(e){return n(e,{expandFirstArg:!0})})),l.length>1?",":"",i?Q:$,i?Q:""])].concat(l.slice(1))),y&&f===s.length-1&&(d=l.slice(0,-1).concat(e.call((function(e){return n(e,{expandLastArg:!0})})))),f++}),"arguments");var h=l.some(ue),x=H(["(",H(d),")"]);return H([h?oe:"",re([h?se(allArgsBrokenOut(),x):x,H(u?["(",ee(d[0],{shouldBreak:!0}),H(d.slice(1)),")"]:["(",H(l.slice(0,-1)),ee(m(d),{shouldBreak:!0}),")"]),allArgsBrokenOut()],{shouldBreak:g})])}return ee(H(["(",te(H([Y,H(l)])),se(c),Y,")"]),{shouldBreak:l.some(ue)||o})}function printTypeAnnotation(e,t,n){var r=e.getValue();if(!r.typeAnnotation)return"";var a=e.getParentNode(),s=r.definite||a&&"VariableDeclarator"===a.type&&a.definite,o="DeclareFunction"===a.type&&a.id===r;return isFlowAnnotationComment(t.originalText,r.typeAnnotation,t)?H([" /*: ",e.call(n,"typeAnnotation")," */"]):H([o?"":s?"!: ":": ",e.call(n,"typeAnnotation")])}function printFunctionTypeParameters(e,t,n){var r=e.getValue();return r.typeArguments?e.call(n,"typeArguments"):r.typeParameters?e.call(n,"typeParameters"):""}function printFunctionParams(e,t,n,r,s){var o=e.getValue(),i=e.getParentNode(),p=o.parameters?"parameters":"params",c=isTestCall(i),u=shouldHugArguments(o),y=r&&!(o[p]&&o[p].some((function(e){return e.comments}))),d=s?printFunctionTypeParameters(e,0,t):"",g=[];if(o[p]){var f=o[p].length-1;g=e.map((function(e,r){var a=[],s=e.getValue();return a.push(t(e)),r===f?o.rest&&a.push(",",$):c||u||y?a.push(", "):A(n.originalText,s,n)?a.push(",",Q,Q):a.push(",",$),H(a)}),p)}if(o.rest&&g.push(H(["...",e.call(t,"rest")])),0===g.length)return H([d,"(",a.printDanglingComments(e,n,!0,(function(e){return")"===l(n.originalText,e,n.locEnd)})),")"]);var h=m(o[p]);if(y)return ee(H([de(d),"(",H(g.map(de)),")"]));var x=o[p].every((function(e){return!e.decorators}));if(u&&x)return H([d,"(",H(g),")"]);if(c)return H([d,"(",H(g),")"]);if((isObjectTypePropertyAFunction(i,n)||function isTypeAnnotationAFunction(e,t){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||sameLocStart(e,e.typeAnnotation,t))}(i,n)||"TypeAlias"===i.type||"UnionTypeAnnotation"===i.type||"TSUnionType"===i.type||"IntersectionTypeAnnotation"===i.type||"FunctionTypeAnnotation"===i.type&&i.returnType===o)&&1===o[p].length&&null===o[p][0].name&&o[p][0].typeAnnotation&&null===o.typeParameters&&isSimpleFlowType(o[p][0].typeAnnotation)&&!o.rest)return"always"===n.arrowParens?H(["(",H(g),")"]):H(g);var T=!(h&&"RestElement"===h.type||o.rest);return H([d,"(",te(H([Y,H(g)])),se(T&&shouldPrintComma(n,"all")?",":""),Y,")"])}function shouldPrintParamsWithoutParens(e,t){return"always"!==t.arrowParens&&("avoid"===t.arrowParens&&function canPrintParamsWithoutParens(e){return!(1!==e.params.length||e.rest||e.typeParameters||hasDanglingComments(e)||"Identifier"!==e.params[0].type||e.params[0].typeAnnotation||e.params[0].comments||e.params[0].optional||e.predicate||e.returnType)}(e.getValue()))}function printFunctionDeclaration(e,t,n){var r=e.getValue(),a=[];return r.async&&a.push("async "),a.push("function"),r.generator&&a.push("*"),r.id&&a.push(" ",e.call(t,"id")),a.push(printFunctionTypeParameters(e,0,t),ee(H([printFunctionParams(e,t,n),printReturnType(e,t,n)])),r.body?" ":"",e.call(t,"body")),H(a)}function printObjectMethod(e,t,n){var r=e.getValue(),a=[];if(r.async&&a.push("async "),r.generator&&a.push("*"),r.method||"get"===r.kind||"set"===r.kind)return printMethod(e,t,n);var s=printPropertyKey(e,t,n);return r.computed?a.push("[",s,"]"):a.push(s),a.push(printFunctionTypeParameters(e,0,n),ee(H([printFunctionParams(e,n,t),printReturnType(e,n,t)]))," ",e.call(n,"body")),H(a)}function printReturnType(e,t,n){var r=e.getValue(),a=e.call(t,"returnType");if(r.returnType&&isFlowAnnotationComment(n.originalText,r.returnType,n))return H([" /*: ",a," */"]);var s=[a];return r.returnType&&r.returnType.typeAnnotation&&s.unshift(": "),r.predicate&&s.push(r.returnType?" ":": ",e.call(t,"predicate")),H(s)}function printExportDeclaration(e,t,n){var r=e.getValue(),s=t.semi?";":"",o=["export "],i=r.default||"ExportDefaultDeclaration"===r.type;if(i&&o.push("default "),o.push(a.printDanglingComments(e,t,!0)),needsHardlineAfterDanglingComment(r)&&o.push(Q),r.declaration)o.push(e.call(n,"declaration")),i&&"ClassDeclaration"!==r.declaration.type&&"FunctionDeclaration"!==r.declaration.type&&"TSInterfaceDeclaration"!==r.declaration.type&&"DeclareClass"!==r.declaration.type&&"DeclareFunction"!==r.declaration.type&&"TSDeclareFunction"!==r.declaration.type&&o.push(s);else{if(r.specifiers&&r.specifiers.length>0){var p=[],l=[],c=[];e.each((function(t){var r=e.getValue().type;"ExportSpecifier"===r?p.push(n(t)):"ExportDefaultSpecifier"===r?l.push(n(t)):"ExportNamespaceSpecifier"===r&&c.push(H(["* as ",n(t)]))}),"specifiers");var u=0!==c.length&&0!==p.length,m=0!==l.length&&(0!==c.length||0!==p.length),y=p.length>1||l.length>0||r.specifiers&&r.specifiers.some((function(e){return e.comments})),d="";0!==p.length&&(d=y?ee(H(["{",te(H([t.bracketSpacing?$:Y,z(H([",",$]),p)])),se(shouldPrintComma(t)?",":""),t.bracketSpacing?$:Y,"}"])):H(["{",t.bracketSpacing?" ":"",H(p),t.bracketSpacing?" ":"","}"])),o.push("type"===r.exportKind?"type ":"",H(l),H([m?", ":""]),H(c),H([u?", ":""]),d)}else o.push("{}");r.source&&o.push(" from ",e.call(n,"source")),o.push(s)}return H(o)}function printFlowDeclaration(e,t){var n=o(e);return n?r.strictEqual(n.type,"DeclareExportDeclaration"):t.unshift("declare "),H(t)}function getFlowVariance(e){if(!e.variance)return null;var t=e.variance.kind||e.variance;switch(t){case"plus":return"+";case"minus":return"-";default:return t}}function printTypeScriptModifiers(e,t,n){var r=e.getValue();return r.modifiers&&r.modifiers.length?H([z(" ",e.map(n,"modifiers"))," "]):""}function printTypeParameters(e,t,n,r){var a=e.getValue();if(!a[r])return"";if(!Array.isArray(a[r]))return e.call(n,r);var s=e.getNode(2);return null!=s&&isTestCall(s)||0===a[r].length||1===a[r].length&&(shouldHugType(a[r][0])||"GenericTypeAnnotation"===a[r][0].type&&shouldHugType(a[r][0].id)||"TSTypeReference"===a[r][0].type&&shouldHugType(a[r][0].typeName)||"NullableTypeAnnotation"===a[r][0].type)?H(["<",z(", ",e.map(n,r)),">"]):ee(H(["<",te(H([Y,z(H([",",$]),e.map(n,r))])),se("typescript"!==t.parser&&shouldPrintComma(t,"all")?",":""),Y,">"]))}function printClass(e,t,n){var r=e.getValue(),s=[];r.abstract&&s.push("abstract "),s.push("class"),r.id&&s.push(" ",e.call(n,"id")),s.push(e.call(n,"typeParameters"));var o=[];if(r.superClass){var i=H(["extends ",e.call(n,"superClass"),e.call(n,"superTypeParameters")]);r.implements&&0!==r.implements.length||r.superClass.comments&&0!==r.superClass.comments.length?o.push(ee(H([$,e.call((function(e){return a.printComments(e,(function(){return i}),t)}),"superClass")]))):s.push(H([" ",e.call((function(e){return a.printComments(e,(function(){return i}),t)}),"superClass")]))}else r.extends&&r.extends.length>0&&s.push(" extends ",z(", ",e.map(n,"extends")));return r.mixins&&r.mixins.length>0&&o.push($,"mixins ",ee(te(z(H([",",$]),e.map(n,"mixins"))))),r.implements&&r.implements.length>0&&o.push($,"implements",ee(te(H([$,z(H([",",$]),e.map(n,"implements"))])))),o.length>0&&s.push(ee(te(H(o)))),r.body&&r.body.comments&&hasLeadingOwnLineComment(t.originalText,r.body,t)?s.push(Q):s.push(" "),s.push(e.call(n,"body")),s}function printOptionalToken(e){var t=e.getValue();return t.optional?"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?":""}function printMemberLookup(e,t,n){var r=e.call(n,"property"),a=e.getValue(),s=printOptionalToken(e);return a.computed?!a.property||isNumericLiteral(a.property)?H([s,"[",r,"]"]):ee(H([s,"[",te(H([Y,r])),Y,"]"])):H([s,".",r])}function printBindExpressionCallee(e,t,n){return H(["::",e.call(n,"callee")])}function isCallOrOptionalCallExpression(e){return"CallExpression"===e.type||"OptionalCallExpression"===e.type}function isJSXNode(e){return"JSXElement"===e.type||"JSXFragment"===e.type}var Te=new RegExp("[^ \n\r\t]"),Se=new RegExp("([ \n\r\t]+)");function isMeaningfulJSXText(e){return isLiteral(e)&&(Te.test(rawText(e))||!/\n/.test(rawText(e)))}function separatorNoWhitespace(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?Y:Q:Y}function separatorWithWhitespace(e,t,n,r){return e?Q:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?Q:Y:Q}function isBinaryish(e){return"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type}function isMemberish(e){return"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"BindExpression"===e.type&&e.object}function shouldInlineLogicalExpression(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&0!==e.right.properties.length||("ArrayExpression"===e.right.type&&0!==e.right.elements.length||!!isJSXNode(e.right)))}function printAssignmentRight(e,t,n,r){return hasLeadingOwnLineComment(r.originalText,t,r)?te(H([Q,n])):isBinaryish(t)&&!shouldInlineLogicalExpression(t)||"ConditionalExpression"===t.type&&isBinaryish(t.test)&&!shouldInlineLogicalExpression(t.test)||"StringLiteralTypeAnnotation"===t.type||"ClassExpression"===t.type&&t.decorators&&t.decorators.length||("Identifier"===e.type||isStringLiteral(e)||"MemberExpression"===e.type)&&(isStringLiteral(t)||function isMemberExpressionChain(e){if("MemberExpression"!==e.type&&"OptionalMemberExpression"!==e.type)return!1;if("Identifier"===e.object.type)return!0;return isMemberExpressionChain(e.object)}(t))&&"json"!==r.parser&&"json5"!==r.parser||"SequenceExpression"===t.type?ee(te(H([$,n]))):H([" ",n])}function printAssignment(e,t,n,r,a,s){if(!r)return t;var o=printAssignmentRight(e,r,a,s);return ee(H([t,n,o]))}function adjustClause(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?H([" ",t]):te(H([$,t]))}function nodeStr(e,t,n){var r=rawText(e),a=n||"DirectiveLiteral"===e.type;return d(r,t,a)}function printRegex(e){var t=e.flags.split("").sort().join("");return"/".concat(e.pattern,"/").concat(t)}function hasLeadingComment(e){return e.comments&&e.comments.some((function(e){return e.leading}))}function hasTrailingComment(e){return e.comments&&e.comments.some((function(e){return e.trailing}))}function hasLeadingOwnLineComment(e,t,n){return isJSXNode(t)?x(t):t.comments&&t.comments.some((function(t){return t.leading&&c(e,n.locEnd(t))}))}function isFlowAnnotationComment(e,t,n){var r=n.locStart(t),a=h(e,n.locEnd(t));return"/*"===e.substr(r,2)&&"*/"===e.substr(a,2)}function isObjectTypePropertyAFunction(e,t){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||isFunctionNotation(e,t))}function isFunctionNotation(e,t){return isGetterOrSetter(e)||sameLocStart(e,e.value,t)}function isGetterOrSetter(e){return"get"===e.kind||"set"===e.kind}function sameLocStart(e,t,n){return n.locStart(e)===n.locStart(t)}function isNodeStartingWithDeclare(e,t){return("flow"===t.parser||"typescript"===t.parser)&&(t.originalText.slice(0,t.locStart(e)).match(/declare[ \t]*$/)||t.originalText.slice(e.range[0],e.range[1]).startsWith("declare "))}function shouldHugType(e){if(isSimpleFlowType(e)||isObjectType(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){var t=e.types.filter((function(e){return"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type})).length,n=e.types.filter((function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type})).length;if(e.types.length-1===t&&n>0)return!0}return!1}function shouldHugArguments(e){return e&&e.params&&1===e.params.length&&!e.params[0].comments&&("ObjectPattern"===e.params[0].type||"ArrayPattern"===e.params[0].type||"Identifier"===e.params[0].type&&e.params[0].typeAnnotation&&("TypeAnnotation"===e.params[0].typeAnnotation.type||"TSTypeAnnotation"===e.params[0].typeAnnotation.type)&&isObjectType(e.params[0].typeAnnotation.typeAnnotation)||"FunctionTypeParam"===e.params[0].type&&isObjectType(e.params[0].typeAnnotation)||"AssignmentPattern"===e.params[0].type&&("ObjectPattern"===e.params[0].left.type||"ArrayPattern"===e.params[0].left.type)&&("Identifier"===e.params[0].right.type||"ObjectExpression"===e.params[0].right.type&&0===e.params[0].right.properties.length||"ArrayExpression"===e.params[0].right.type&&0===e.params[0].right.elements.length))&&!e.rest}function templateLiteralHasNewLines(e){return e.quasis.some((function(e){return e.value.raw.includes("\n")}))}function isTemplateOnItsOwnLine(e,t,n){return("TemplateLiteral"===e.type&&templateLiteralHasNewLines(e)||"TaggedTemplateExpression"===e.type&&templateLiteralHasNewLines(e.quasi))&&!c(t,n.locStart(e),{backwards:!0})}function printArrayItems(e,t,n,r){var a=[],s=[];return e.each((function(e){a.push(H(s)),a.push(ee(r(e))),s=[",",$],e.getValue()&&A(t.originalText,e.getValue(),t)&&s.push(Y)}),n),H(a)}function hasDanglingComments(e){return e.comments&&e.comments.some((function(e){return!e.leading&&!e.trailing}))}function needsHardlineAfterDanglingComment(e){if(!e.comments)return!1;var t=m(e.comments.filter((function(e){return!e.leading&&!e.trailing})));return t&&!L.isBlockComment(t)}function isLiteral(e){return"BooleanLiteral"===e.type||"DirectiveLiteral"===e.type||"Literal"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"TemplateLiteral"===e.type||"TSTypeLiteral"===e.type||"JSXText"===e.type}function isStringPropSafeToCoerceToIdentifier(e,t){return isStringLiteral(e.key)&&w(e.key.value)&&"json"!==t.parser&&!("typescript"===t.parser&&"ClassProperty"===e.type)}function isNumericLiteral(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function isStringLiteral(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}function isObjectType(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type}var Ee=/^(skip|[fx]?(it|describe|test))$/;function isTestCall(e,t){if("CallExpression"!==e.type)return!1;if(1===e.arguments.length){if(isAngularTestWrapper(e)&&t&&isTestCall(t))return isFunctionOrArrowExpression(e.arguments[0]);if(function isUnitTestSetUp(e){return"Identifier"===e.callee.type&&/^(before|after)(Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(e))return isAngularTestWrapper(e.arguments[0])}else if((2===e.arguments.length||3===e.arguments.length)&&("Identifier"===e.callee.type&&Ee.test(e.callee.name)||function isSkipOrOnlyBlock(e){return("MemberExpression"===e.callee.type||"OptionalMemberExpression"===e.callee.type)&&"Identifier"===e.callee.object.type&&"Identifier"===e.callee.property.type&&Ee.test(e.callee.object.name)&&("only"===e.callee.property.name||"skip"===e.callee.property.name)}(e))&&(function isTemplateLiteral(e){return"TemplateLiteral"===e.type}(e.arguments[0])||isStringLiteral(e.arguments[0])))return!(e.arguments[2]&&!isNumericLiteral(e.arguments[2]))&&((2===e.arguments.length?isFunctionOrArrowExpression(e.arguments[1]):function isFunctionOrArrowExpressionWithBody(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(e.arguments[1])&&e.arguments[1].params.length<=1)||isAngularTestWrapper(e.arguments[1]));return!1}function isAngularTestWrapper(e){return!("CallExpression"!==e.type&&"OptionalCallExpression"!==e.type||"Identifier"!==e.callee.type||"async"!==e.callee.name&&"inject"!==e.callee.name&&"fakeAsync"!==e.callee.name)}function isFunctionOrArrowExpression(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function isTheOnlyJSXElementInMarkdown(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;var n=t.getNode();if(!n.expression||!isJSXNode(n.expression))return!1;var r=t.getParentNode();return"Program"===r.type&&1==r.body.length}function rawText(e){return e.value}function identity(e){return e}e.exports={preprocess:B,print:function genericPrint(e,t,n,s){var l=e.getValue(),d=!1,f=function printPathNoParens(e,t,n,s){var o=e.getValue(),i=t.semi?";":"";if(!o)return"";if("string"==typeof o)return o;var l=F(e,t,n);if(l)return l;var d=[];switch(o.type){case"JsExpressionRoot":return e.call(n,"node");case"JsonRoot":return H([e.call(n,"node"),Q]);case"File":return o.program&&o.program.interpreter&&d.push(e.call((function(e){return e.call(n,"interpreter")}),"program")),d.push(e.call(n,"program")),H(d);case"Program":return o.directives&&e.each((function(e){d.push(n(e),i,Q),A(t.originalText,e.getValue(),t)&&d.push(Q)}),"directives"),d.push(e.call((function(e){return printStatementSequence(e,t,n)}),"body")),d.push(a.printDanglingComments(e,t,!0)),(o.body.length||o.comments)&&d.push(Q),H(d);case"EmptyStatement":return"";case"ExpressionStatement":if(o.directive)return H([nodeStr(o.expression,t,!0),i]);if("__vue_event_binding"===t.parser){var f=e.getParentNode();if("Program"===f.type&&1===f.body.length&&f.body[0]===o)return H([e.call(n,"expression"),M(o.expression)?";":""])}return H([e.call(n,"expression"),isTheOnlyJSXElementInMarkdown(t,e)?"":i]);case"ParenthesizedExpression":return H(["(",e.call(n,"expression"),")"]);case"AssignmentExpression":return printAssignment(o.left,e.call(n,"left"),H([" ",o.operator]),o.right,e.call(n,"right"),t);case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":var h=e.getParentNode(),T=e.getParentNode(1),C=o!==h.body&&("IfStatement"===h.type||"WhileStatement"===h.type||"DoWhileStatement"===h.type),w=function printBinaryishExpressions(e,t,n,r,s){var o=[],i=e.getValue();if(isBinaryish(i)){p(i.operator,i.left.operator)?o=o.concat(e.call((function(e){return printBinaryishExpressions(e,t,n,!0,s)}),"left")):o.push(e.call(t,"left"));var l=shouldInlineLogicalExpression(i),c=("|>"===i.operator||"NGPipeExpression"===i.type||"|"===i.operator&&"__vue_expression"===n.parser)&&!hasLeadingOwnLineComment(n.originalText,i.right,n),u="NGPipeExpression"===i.type?"|":i.operator,m="NGPipeExpression"===i.type&&0!==i.arguments.length?ee(te(H([Y,": ",z(H([Y,":",se(" ")]),e.map(t,"arguments").map((function(e){return ne(2,ee(e))})))]))):"",y=H(l?[u," ",e.call(t,"right"),m]:[c?Y:"",u,c?" ":$,e.call(t,"right"),m]),d=e.getParentNode(),g=!(s&&"LogicalExpression"===i.type)&&d.type!==i.type&&i.left.type!==i.type&&i.right.type!==i.type;o.push(" ",g?ee(y):y),r&&i.comments&&(o=a.printComments(e,(function(){return H(o)}),n))}else o.push(e.call(t));return o}(e,n,t,!1,C);if(C)return H(w);if("CallExpression"===h.type&&h.callee===o||"UnaryExpression"===h.type||("MemberExpression"===h.type||"OptionalMemberExpression"===h.type)&&!h.computed)return ee(H([te(H([Y,H(w)])),Y]));var k="ReturnStatement"===h.type||"JSXExpressionContainer"===h.type&&"JSXAttribute"===T.type||"NGPipeExpression"!==o.type&&("NGRoot"===h.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===h.type&&"NGMicrosyntax"===T.type&&1===T.body.length)||o===h.body&&"ArrowFunctionExpression"===h.type||o!==h.body&&"ForStatement"===h.type||"ConditionalExpression"===h.type&&"ReturnStatement"!==T.type&&"CallExpression"!==T.type,j="AssignmentExpression"===h.type||"VariableDeclarator"===h.type||"ClassProperty"===h.type||"TSAbstractClassProperty"===h.type||"ClassPrivateProperty"===h.type||"ObjectProperty"===h.type||"Property"===h.type,O=isBinaryish(o.left)&&p(o.operator,o.left.operator);if(k||shouldInlineLogicalExpression(o)&&!O||!shouldInlineLogicalExpression(o)&&j)return ee(H(w));if(0===w.length)return"";var I=isJSXNode(o.right),B=H(I?w.slice(1,-1):w.slice(1)),J=Symbol("logicalChain-"+ ++fe),X=ee(H([w.length>0?w[0]:"",te(B)]),{id:J});if(!I)return X;var W=m(w);return ee(H([X,se(te(W),W,{groupId:J})]));case"AssignmentPattern":return H([e.call(n,"left")," = ",e.call(n,"right")]);case"TSTypeAssertion":var G=!("ArrayExpression"===o.expression.type||"ObjectExpression"===o.expression.type),K=ee(H(["<",te(H([Y,e.call(n,"typeAnnotation")])),Y,">"])),U=H([se("("),te(H([Y,e.call(n,"expression")])),Y,se(")")]);return G?re([H([K,e.call(n,"expression")]),H([K,ee(U,{shouldBreak:!0})]),H([K,e.call(n,"expression")])]):ee(H([K,e.call(n,"expression")]));case"OptionalMemberExpression":case"MemberExpression":var le,ce=e.getParentNode(),de=0;do{le=e.getParentNode(de),de++}while(le&&("MemberExpression"===le.type||"OptionalMemberExpression"===le.type||"TSNonNullExpression"===le.type));var he=le&&("NewExpression"===le.type||"BindExpression"===le.type||"VariableDeclarator"===le.type&&"Identifier"!==le.id.type||"AssignmentExpression"===le.type&&"Identifier"!==le.left.type)||o.computed||"Identifier"===o.object.type&&"Identifier"===o.property.type&&"MemberExpression"!==ce.type&&"OptionalMemberExpression"!==ce.type;return H([e.call(n,"object"),he?printMemberLookup(e,t,n):ee(te(H([Y,printMemberLookup(e,t,n)])))]);case"MetaProperty":return H([e.call(n,"meta"),".",e.call(n,"property")]);case"BindExpression":return o.object&&d.push(e.call(n,"object")),d.push(ee(te(H([Y,printBindExpressionCallee(e,t,n)])))),H(d);case"Identifier":return H([o.name,printOptionalToken(e),printTypeAnnotation(e,t,n)]);case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return H(["...",e.call(n,"argument"),printTypeAnnotation(e,t,n)]);case"FunctionDeclaration":case"FunctionExpression":return d.push(printFunctionDeclaration(e,n,t)),o.body||d.push(i),H(d);case"ArrowFunctionExpression":o.async&&d.push("async "),shouldPrintParamsWithoutParens(e,t)?d.push(e.call(n,"params",0)):d.push(ee(H([printFunctionParams(e,n,t,s&&(s.expandLastArg||s.expandFirstArg),!0),printReturnType(e,n,t)])));var xe=a.printDanglingComments(e,t,!0,(function(e){var n=N(t.originalText,e,t);return"=>"===t.originalText.substr(n,2)}));xe&&d.push(" ",xe),d.push(" =>");var Te=e.call((function(e){return n(e,s)}),"body");if(!hasLeadingOwnLineComment(t.originalText,o.body,t)&&("ArrayExpression"===o.body.type||"ObjectExpression"===o.body.type||"BlockStatement"===o.body.type||isJSXNode(o.body)||isTemplateOnItsOwnLine(o.body,t.originalText,t)||"ArrowFunctionExpression"===o.body.type||"DoExpression"===o.body.type))return ee(H([H(d)," ",Te]));if("SequenceExpression"===o.body.type)return ee(H([H(d),ee(H([" (",te(H([Y,Te])),Y,")"]))]));var Ee=(s&&s.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!(o.comments&&o.comments.length),be=s&&s.expandLastArg&&shouldPrintComma(t,"all"),ve="ConditionalExpression"===o.body.type&&!S(o.body,!1);return ee(H([H(d),ee(H([te(H([$,ve?se("","("):"",Te,ve?se("",")"):""])),Ee?H([se(be?",":""),Y]):""]))]));case"MethodDefinition":case"TSAbstractMethodDefinition":return o.decorators&&0!==o.decorators.length&&d.push(printDecorators(e,t,n)),o.accessibility&&d.push(o.accessibility+" "),o.static&&d.push("static "),"TSAbstractMethodDefinition"===o.type&&d.push("abstract "),d.push(printMethod(e,t,n)),H(d);case"YieldExpression":return d.push("yield"),o.delegate&&d.push("*"),o.argument&&d.push(" ",e.call(n,"argument")),H(d);case"AwaitExpression":return H(["await ",e.call(n,"argument")]);case"ImportSpecifier":return o.importKind&&d.push(e.call(n,"importKind")," "),d.push(e.call(n,"imported")),o.local&&o.local.name!==o.imported.name&&d.push(" as ",e.call(n,"local")),H(d);case"ExportSpecifier":return d.push(e.call(n,"local")),o.exported&&o.exported.name!==o.local.name&&d.push(" as ",e.call(n,"exported")),H(d);case"ImportNamespaceSpecifier":return d.push("* as "),d.push(e.call(n,"local")),H(d);case"ImportDefaultSpecifier":return e.call(n,"local");case"TSExportAssignment":return H(["export = ",e.call(n,"expression"),i]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return printExportDeclaration(e,t,n);case"ExportAllDeclaration":return d.push("export "),"type"===o.exportKind&&d.push("type "),d.push("* from ",e.call(n,"source"),i),H(d);case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return e.call(n,"exported");case"ImportDeclaration":d.push("import "),o.importKind&&"value"!==o.importKind&&d.push(o.importKind+" ");var Ce=[],Ae=[];return o.specifiers&&o.specifiers.length>0?(e.each((function(e){var t=e.getValue();"ImportDefaultSpecifier"===t.type||"ImportNamespaceSpecifier"===t.type?Ce.push(n(e)):Ae.push(n(e))}),"specifiers"),Ce.length>0&&d.push(z(", ",Ce)),Ce.length>0&&Ae.length>0&&d.push(", "),1===Ae.length&&0===Ce.length&&o.specifiers&&!o.specifiers.some((function(e){return e.comments}))?d.push(H(["{",t.bracketSpacing?" ":"",H(Ae),t.bracketSpacing?" ":"","}"])):Ae.length>=1&&d.push(ee(H(["{",te(H([t.bracketSpacing?$:Y,z(H([",",$]),Ae)])),se(shouldPrintComma(t)?",":""),t.bracketSpacing?$:Y,"}"]))),d.push(" from ")):(o.importKind&&"type"===o.importKind||/{\s*}/.test(t.originalText.slice(t.locStart(o),t.locStart(o.source))))&&d.push("{} from "),d.push(e.call(n,"source"),i),H(d);case"Import":return"import";case"TSModuleBlock":case"BlockStatement":var Pe=e.call((function(e){return printStatementSequence(e,t,n)}),"body"),Ne=o.body.find((function(e){return"EmptyStatement"!==e.type})),we=o.directives&&o.directives.length>0,ke=e.getParentNode(),je=e.getParentNode(1);return Ne||we||hasDanglingComments(o)||"ArrowFunctionExpression"!==ke.type&&"FunctionExpression"!==ke.type&&"FunctionDeclaration"!==ke.type&&"ObjectMethod"!==ke.type&&"ClassMethod"!==ke.type&&"ClassPrivateMethod"!==ke.type&&"ForStatement"!==ke.type&&"WhileStatement"!==ke.type&&"DoWhileStatement"!==ke.type&&"DoExpression"!==ke.type&&("CatchClause"!==ke.type||je.finalizer)&&"TSModuleDeclaration"!==ke.type?(d.push("{"),we&&e.each((function(e){d.push(te(H([Q,n(e),i]))),A(t.originalText,e.getValue(),t)&&d.push(Q)}),"directives"),Ne&&d.push(te(H([Q,Pe]))),d.push(a.printDanglingComments(e,t)),d.push(Q,"}"),H(d)):"{}";case"ReturnStatement":return d.push("return"),o.argument&&(!function returnArgumentHasLeadingComment(e,t){if(hasLeadingOwnLineComment(e.originalText,t,e))return!0;if(q(t))for(var n,r=t;n=_(r);)if(r=n,hasLeadingOwnLineComment(e.originalText,r,e))return!0;return!1}(t,o.argument)?"LogicalExpression"===o.argument.type||"BinaryExpression"===o.argument.type||"SequenceExpression"===o.argument.type?d.push(ee(H([se(" ("," "),te(H([Y,e.call(n,"argument")])),Y,se(")")]))):d.push(" ",e.call(n,"argument")):d.push(H([" (",te(H([Q,e.call(n,"argument")])),Q,")"]))),hasDanglingComments(o)&&d.push(" ",a.printDanglingComments(e,t,!0)),d.push(i),H(d);case"NewExpression":case"OptionalCallExpression":case"CallExpression":var Oe="NewExpression"===o.type,Le=printOptionalToken(e);if(!Oe&&"Identifier"===o.callee.type&&("require"===o.callee.name||"define"===o.callee.name)||1===o.arguments.length&&isTemplateOnItsOwnLine(o.arguments[0],t.originalText,t)||!Oe&&isTestCall(o,e.getParentNode()))return H([Oe?"new ":"",e.call(n,"callee"),Le,printFunctionTypeParameters(e,t,n),H(["(",z(", ",e.map(n,"arguments")),")"])]);var De="Identifier"===o.callee.type&&R(o.callee.trailingComments);return De&&(o.callee.trailingComments[0].printed=!0),!Oe&&isMemberish(o.callee)?function printMemberChain(e,t,n){var r=[];function shouldInsertEmptyLineAfter(e){var n=t.originalText,r=N(n,e,t);return")"==n.charAt(r)?P(n,r+1,t):A(n,e,t)}var s=e.getValue();r.unshift({node:s,printed:H([printOptionalToken(e),printFunctionTypeParameters(e,t,n),printArgumentsList(e,t,n)])}),e.call((function(e){return function rec(e){var s=e.getValue();"CallExpression"!==s.type&&"OptionalCallExpression"!==s.type||!isMemberish(s.callee)&&"CallExpression"!==s.callee.type&&"OptionalCallExpression"!==s.callee.type?isMemberish(s)?(r.unshift({node:s,needsParens:D(e,t),printed:a.printComments(e,(function(){return"OptionalMemberExpression"===s.type||"MemberExpression"===s.type?printMemberLookup(e,t,n):printBindExpressionCallee(e,t,n)}),t)}),e.call((function(e){return rec(e)}),"object")):"TSNonNullExpression"===s.type?(r.unshift({node:s,printed:a.printComments(e,(function(){return"!"}),t)}),e.call((function(e){return rec(e)}),"expression")):r.unshift({node:s,printed:e.call(n)}):(r.unshift({node:s,printed:H([a.printComments(e,(function(){return H([printOptionalToken(e),printFunctionTypeParameters(e,t,n),printArgumentsList(e,t,n)])}),t),shouldInsertEmptyLineAfter(s)?Q:""])}),e.call((function(e){return rec(e)}),"callee"))}(e)}),"callee");for(var o=[],i=[r[0]],p=1;p<r.length&&("TSNonNullExpression"===r[p].node.type||"OptionalCallExpression"===r[p].node.type||"CallExpression"===r[p].node.type||("MemberExpression"===r[p].node.type||"OptionalMemberExpression"===r[p].node.type)&&r[p].node.computed&&isNumericLiteral(r[p].node.property));++p)i.push(r[p]);if("CallExpression"!==r[0].node.type&&"OptionalCallExpression"!==r[0].node.type)for(;p+1<r.length&&(isMemberish(r[p].node)&&isMemberish(r[p+1].node));++p)i.push(r[p]);o.push(i),i=[];for(var l=!1;p<r.length;++p){if(l&&isMemberish(r[p].node)){if(r[p].node.computed&&isNumericLiteral(r[p].node.property)){i.push(r[p]);continue}o.push(i),i=[],l=!1}"CallExpression"!==r[p].node.type&&"OptionalCallExpression"!==r[p].node.type||(l=!0),i.push(r[p]),r[p].node.comments&&r[p].node.comments.some((function(e){return e.trailing}))&&(o.push(i),i=[],l=!1)}i.length>0&&o.push(i);function isFactory(e){return/^[A-Z]|^[_$]+$/.test(e)}var c=o.length>=2&&!o[1][0].node.comments&&function shouldNotWrap(n){var r=e.getParentNode(),a=r&&"ExpressionStatement"===r.type,s=n[1].length&&n[1][0].node.computed;if(1===n[0].length){var o=n[0][0].node;return"ThisExpression"===o.type||"Identifier"===o.type&&(isFactory(o.name)||a&&function isShort(e){return e.length<=t.tabWidth}(o.name)||s)}var i=m(n[0]).node;return("MemberExpression"===i.type||"OptionalMemberExpression"===i.type)&&"Identifier"===i.property.type&&(isFactory(i.property.name)||s)}(o);function printGroup(e){var t=e.map((function(e){return e.printed}));return e.length>0&&e[e.length-1].needsParens?H(["("].concat(_toConsumableArray(t),[")"])):H(t)}var u=o.map(printGroup),y=H(u),d=c?3:2,g=o.slice(0,d).reduce((function(e,t){return e.concat(t)}),[]),f=g.slice(1,-1).some((function(e){return hasLeadingComment(e.node)}))||g.slice(0,-1).some((function(e){return hasTrailingComment(e.node)}))||o[d]&&hasLeadingComment(o[d][0].node);if(o.length<=d&&!f)return ee(y);var h=m(c?o.slice(1,2)[0]:o[0]).node,x="CallExpression"!==h.type&&"OptionalCallExpression"!==h.type&&shouldInsertEmptyLineAfter(h),T=H([printGroup(o[0]),c?H(o.slice(1,2).map(printGroup)):"",x?Q:"",function printIndentedGroup(e){return 0===e.length?"":te(ee(H([Q,z(Q,e.map(printGroup))])))}(o.slice(c?2:1))]),S=r.map((function(e){return e.node})).filter(isCallOrOptionalCallExpression);if(f||S.length>=3||u.slice(0,-1).some(ue)||(E=m(u),b=m(m(o)).node,isCallOrOptionalCallExpression(b)&&ue(E)&&S.slice(0,-1).some((function(e){return e.arguments.some(isFunctionOrArrowExpression)}))))return ee(T);var E,b;return H([ue(y)||x?oe:"",re([y,T])])}(e,t,n):H([Oe?"new ":"",e.call(n,"callee"),Le,De?"/*:: ".concat(o.callee.trailingComments[0].value.substring(2).trim()," */"):"",printFunctionTypeParameters(e,t,n),printArgumentsList(e,t,n)]);case"TSInterfaceDeclaration":return isNodeStartingWithDeclare(o,t)&&d.push("declare "),d.push(o.abstract?"abstract ":"",printTypeScriptModifiers(e,t,n),"interface ",e.call(n,"id"),o.typeParameters?e.call(n,"typeParameters"):""," "),o.extends&&o.extends.length&&d.push(ee(te(H([Y,"extends ",(1===o.extends.length?identity:te)(z(H([",",$]),e.map(n,"extends")))," "])))),d.push(e.call(n,"body")),H(d);case"ObjectTypeInternalSlot":return H([o.static?"static ":"","[[",e.call(n,"id"),"]]",printOptionalToken(e),o.method?"":": ",e.call(n,"value")]);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":var Ie;Ie="TSTypeLiteral"===o.type?"members":"TSInterfaceBody"===o.type?"body":"properties";var Fe="ObjectTypeAnnotation"===o.type,Me=[];Fe&&Me.push("indexers","callProperties","internalSlots"),Me.push(Ie);var Be=Me.map((function(e){return o[e][0]})).sort((function(e,n){return t.locStart(e)-t.locStart(n)}))[0],Je=e.getParentNode(0),_e=Fe&&Je&&("InterfaceDeclaration"===Je.type||"DeclareInterface"===Je.type||"DeclareClass"===Je.type)&&"body"===e.getName(),Xe="TSInterfaceBody"===o.type||_e||"ObjectPattern"===o.type&&"FunctionDeclaration"!==Je.type&&"FunctionExpression"!==Je.type&&"ArrowFunctionExpression"!==Je.type&&"AssignmentPattern"!==Je.type&&"CatchClause"!==Je.type&&o.properties.some((function(e){return e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type)}))||"ObjectPattern"!==o.type&&Be&&u(t.originalText,t.locStart(o),t.locStart(Be)),qe=_e?";":"TSInterfaceBody"===o.type||"TSTypeLiteral"===o.type?se(i,";"):",",Ve=o.exact?"{|":"{",Re=o.exact?"|}":"}",We=[];Me.forEach((function(r){e.each((function(e){var r=e.getValue();We.push({node:r,printed:n(e),loc:t.locStart(r)})}),r)}));var Ge=[],Ke=We.sort((function(e,t){return e.loc-t.loc})).map((function(e){var n=H(Ge.concat(ee(e.printed)));return Ge=[qe,$],"TSPropertySignature"!==e.node.type&&"TSMethodSignature"!==e.node.type&&"TSConstructSignatureDeclaration"!==e.node.type||!x(e.node)||Ge.shift(),A(t.originalText,e.node,t)&&Ge.push(Q),n}));o.inexact&&Ke.push(H(Ge.concat(ee("..."))));var Ue,He=m(o[Ie]),ze=!(He&&("RestProperty"===He.type||"RestElement"===He.type||x(He)||o.inexact));if(0===Ke.length){if(!hasDanglingComments(o))return H([Ve,Re,printTypeAnnotation(e,t,n)]);Ue=ee(H([Ve,a.printDanglingComments(e,t),Y,Re,printOptionalToken(e),printTypeAnnotation(e,t,n)]))}else Ue=H([Ve,te(H([t.bracketSpacing?$:Y,H(Ke)])),se(ze&&(","!==qe||shouldPrintComma(t))?qe:""),H([t.bracketSpacing?$:Y,Re]),printOptionalToken(e),printTypeAnnotation(e,t,n)]);var $e=e.getParentNode(2);return"ObjectPattern"===o.type&&Je&&shouldHugArguments(Je)&&!o.decorators&&Je.params[0]===o||shouldHugType(o)&&$e&&shouldHugArguments($e)&&$e.params[0].typeAnnotation&&$e.params[0].typeAnnotation.typeAnnotation===o?Ue:ee(Ue,{shouldBreak:Xe});case"ObjectProperty":case"Property":if(o.method||"get"===o.kind||"set"===o.kind)return printMethod(e,t,n);var Qe;if(o.shorthand)d.push(e.call(n,"value"));else Qe=o.computed?H(["[",e.call(n,"key"),"]"]):printPropertyKey(e,t,n),d.push(printAssignment(o.key,Qe,":",o.value,e.call(n,"value"),t));return H(d);case"ClassMethod":case"ClassPrivateMethod":return o.decorators&&0!==o.decorators.length&&d.push(printDecorators(e,t,n)),o.static&&d.push("static "),d=d.concat(printObjectMethod(e,t,n)),H(d);case"ObjectMethod":return printObjectMethod(e,t,n);case"Decorator":return H(["@",e.call(n,"expression"),e.call(n,"callee")]);case"ArrayExpression":case"ArrayPattern":if(0===o.elements.length)hasDanglingComments(o)?d.push(ee(H(["[",a.printDanglingComments(e,t),Y,"]"]))):d.push("[]");else{var Ye=m(o.elements),Ze=!(Ye&&"RestElement"===Ye.type),et=Ze&&null===Ye;d.push(ee(H(["[",te(H([Y,printArrayItems(e,t,"elements",n)])),et?",":"",se(Ze&&!et&&shouldPrintComma(t)?",":""),a.printDanglingComments(e,t,!0),Y,"]"])))}return d.push(printOptionalToken(e),printTypeAnnotation(e,t,n)),H(d);case"SequenceExpression":var tt=e.getParentNode(0);if("ExpressionStatement"===tt.type||"ForStatement"===tt.type){var nt=[];return e.each((function(e){0===e.getName()?nt.push(n(e)):nt.push(",",te(H([$,n(e)])))}),"expressions"),ee(H(nt))}return ee(H([z(H([",",$]),e.map(n,"expressions"))]));case"ThisExpression":return"this";case"Super":return"super";case"NullLiteral":return"null";case"RegExpLiteral":return printRegex(o);case"NumericLiteral":return g(o.extra.raw);case"BigIntLiteral":return H([g(o.extra?o.extra.rawValue:o.value),"n"]);case"BooleanLiteral":case"StringLiteral":case"Literal":if(o.regex)return printRegex(o.regex);if("number"==typeof o.value)return g(o.raw);if("string"!=typeof o.value)return""+o.value;var rt=e.getParentNode(1),at="typescript"===t.parser&&"string"==typeof o.value&&rt&&("Program"===rt.type||"BlockStatement"===rt.type);return nodeStr(o,t,at);case"Directive":return e.call(n,"value");case"DirectiveLiteral":return nodeStr(o,t);case"UnaryExpression":return d.push(o.operator),/[a-z]$/.test(o.operator)&&d.push(" "),o.argument.comments&&o.argument.comments.length>0?d.push(ee(H(["(",te(H([Y,e.call(n,"argument")])),Y,")"]))):d.push(e.call(n,"argument")),H(d);case"UpdateExpression":return d.push(e.call(n,"argument"),o.operator),o.prefix&&d.reverse(),H(d);case"ConditionalExpression":return printTernaryOperator(e,t,n,{beforeParts:function beforeParts(){return[e.call(n,"test")]},afterParts:function afterParts(e){return[e?Y:""]},shouldCheckJsx:!0,conditionalNodeType:"ConditionalExpression",consequentNodePropertyName:"consequent",alternateNodePropertyName:"alternate",testNodePropertyName:"test",breakNested:!0});case"VariableDeclaration":var st,ot=e.map((function(e){return n(e)}),"declarations"),it=e.getParentNode(),pt="ForStatement"===it.type||"ForInStatement"===it.type||"ForOfStatement"===it.type||"ForAwaitStatement"===it.type,lt=o.declarations.some((function(e){return e.init}));return 1!==ot.length||o.declarations[0].comments?ot.length>0&&(st=te(ot[0])):st=ot[0],d=[isNodeStartingWithDeclare(o,t)?"declare ":"",o.kind,st?H([" ",st]):"",te(H(ot.slice(1).map((function(e){return H([",",lt&&!pt?Q:$,e])}))))],pt&&it.body!==o||d.push(i),ee(H(d));case"TSTypeAliasDeclaration":o.declare&&d.push("declare ");var ct=printAssignmentRight(o.id,o.typeAnnotation,o.typeAnnotation&&e.call(n,"typeAnnotation"),t);return d.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",ct,i),ee(H(d));case"VariableDeclarator":return printAssignment(o.id,e.call(n,"id")," =",o.init,o.init&&e.call(n,"init"),t);case"WithStatement":return ee(H(["with (",e.call(n,"object"),")",adjustClause(o.body,e.call(n,"body"))]));case"IfStatement":var ut=adjustClause(o.consequent,e.call(n,"consequent")),mt=ee(H(["if (",ee(H([te(H([Y,e.call(n,"test")])),Y])),")",ut]));if(d.push(mt),o.alternate){var yt=hasTrailingComment(o.consequent)&&o.consequent.comments.some((function(e){return e.trailing&&!L.isBlockComment(e)}))||needsHardlineAfterDanglingComment(o),dt="BlockStatement"===o.consequent.type&&!yt;d.push(dt?" ":Q),hasDanglingComments(o)&&d.push(a.printDanglingComments(e,t,!0),yt?Q:" "),d.push("else",ee(adjustClause(o.alternate,e.call(n,"alternate"),"IfStatement"===o.alternate.type)))}return H(d);case"ForStatement":var gt=adjustClause(o.body,e.call(n,"body")),ft=a.printDanglingComments(e,t,!0),ht=ft?H([ft,Y]):"";return o.init||o.test||o.update?H([ht,ee(H(["for (",ee(H([te(H([Y,e.call(n,"init"),";",$,e.call(n,"test"),";",$,e.call(n,"update")])),Y])),")",gt]))]):H([ht,ee(H(["for (;;)",gt]))]);case"WhileStatement":return ee(H(["while (",ee(H([te(H([Y,e.call(n,"test")])),Y])),")",adjustClause(o.body,e.call(n,"body"))]));case"ForInStatement":return ee(H([o.each?"for each (":"for (",e.call(n,"left")," in ",e.call(n,"right"),")",adjustClause(o.body,e.call(n,"body"))]));case"ForOfStatement":case"ForAwaitStatement":var xt="ForAwaitStatement"===o.type||o.await;return ee(H(["for",xt?" await":""," (",e.call(n,"left")," of ",e.call(n,"right"),")",adjustClause(o.body,e.call(n,"body"))]));case"DoWhileStatement":var Tt=adjustClause(o.body,e.call(n,"body")),St=ee(H(["do",Tt]));return d=[St],"BlockStatement"===o.body.type?d.push(" "):d.push(Q),d.push("while ("),d.push(ee(H([te(H([Y,e.call(n,"test")])),Y])),")",i),H(d);case"DoExpression":return H(["do ",e.call(n,"body")]);case"BreakStatement":return d.push("break"),o.label&&d.push(" ",e.call(n,"label")),d.push(i),H(d);case"ContinueStatement":return d.push("continue"),o.label&&d.push(" ",e.call(n,"label")),d.push(i),H(d);case"LabeledStatement":return"EmptyStatement"===o.body.type?H([e.call(n,"label"),":;"]):H([e.call(n,"label"),": ",e.call(n,"body")]);case"TryStatement":return H(["try ",e.call(n,"block"),o.handler?H([" ",e.call(n,"handler")]):"",o.finalizer?H([" finally ",e.call(n,"finalizer")]):""]);case"CatchClause":if(o.param){var Et=o.param.comments&&o.param.comments.some((function(e){return!L.isBlockComment(e)||e.leading&&c(t.originalText,t.locEnd(e))||e.trailing&&c(t.originalText,t.locStart(e),{backwards:!0})})),bt=e.call(n,"param");return H(["catch ",H(Et?["(",te(H([Y,bt])),Y,") "]:["(",bt,") "]),e.call(n,"body")])}return H(["catch ",e.call(n,"body")]);case"ThrowStatement":return H(["throw ",e.call(n,"argument"),i]);case"SwitchStatement":return H([ee(H(["switch (",te(H([Y,e.call(n,"discriminant")])),Y,")"]))," {",o.cases.length>0?te(H([Q,z(Q,e.map((function(e){var r=e.getValue();return H([e.call(n),o.cases.indexOf(r)!==o.cases.length-1&&A(t.originalText,r,t)?Q:""])}),"cases"))])):"",Q,"}"]);case"SwitchCase":o.test?d.push("case ",e.call(n,"test"),":"):d.push("default:");var vt=o.consequent.filter((function(e){return"EmptyStatement"!==e.type}));if(vt.length>0){var Ct=e.call((function(e){return printStatementSequence(e,t,n)}),"consequent");d.push(1===vt.length&&"BlockStatement"===vt[0].type?H([" ",Ct]):te(H([Q,Ct])))}return H(d);case"DebuggerStatement":return H(["debugger",i]);case"JSXAttribute":if(d.push(e.call(n,"name")),o.value){var At;if(isStringLiteral(o.value)){var Pt=rawText(o.value).replace(/'/g,"'").replace(/"/g,'"'),Nt=v(Pt,t.jsxSingleQuote?"'":'"'),wt="'"===Nt?"'":""";Pt=Pt.replace(new RegExp(Nt,"g"),wt),At=H([Nt,Pt,Nt])}else At=e.call(n,"value");d.push("=",At)}return H(d);case"JSXIdentifier":return""+o.name;case"JSXNamespacedName":return z(":",[e.call(n,"namespace"),e.call(n,"name")]);case"JSXMemberExpression":return z(".",[e.call(n,"object"),e.call(n,"property")]);case"TSQualifiedName":return z(".",[e.call(n,"left"),e.call(n,"right")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return H(["{",e.call((function(e){var r=H(["...",n(e)]),s=e.getValue();return s.comments&&s.comments.length?H([te(H([Y,a.printComments(e,(function(){return r}),t)])),Y]):r}),"JSXSpreadAttribute"===o.type?"argument":"expression"),"}"]);case"JSXExpressionContainer":var kt=e.getParentNode(0),jt=!("JSXAttribute"===kt.type&&o.expression.comments&&o.expression.comments.length>0)&&("ArrayExpression"===o.expression.type||"ObjectExpression"===o.expression.type||"ArrowFunctionExpression"===o.expression.type||"CallExpression"===o.expression.type||"OptionalCallExpression"===o.expression.type||"FunctionExpression"===o.expression.type||"JSXEmptyExpression"===o.expression.type||"TemplateLiteral"===o.expression.type||"TaggedTemplateExpression"===o.expression.type||"DoExpression"===o.expression.type||isJSXNode(kt)&&("ConditionalExpression"===o.expression.type||isBinaryish(o.expression)));return ee(jt?H(["{",e.call(n,"expression"),ie,"}"]):H(["{",te(H([Y,e.call(n,"expression")])),Y,ie,"}"]));case"JSXFragment":case"JSXElement":var Ot=a.printComments(e,(function(){return function printJSXElement(e,t,n){var r=e.getValue();if("JSXElement"===r.type&&function isEmptyJSXElement(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;var t=e.children[0];return isLiteral(t)&&!isMeaningfulJSXText(t)}(r))return H([e.call(n,"openingElement"),e.call(n,"closingElement")]);var a="JSXElement"===r.type?e.call(n,"openingElement"):e.call(n,"openingFragment"),s="JSXElement"===r.type?e.call(n,"closingElement"):e.call(n,"closingFragment");if(1===r.children.length&&"JSXExpressionContainer"===r.children[0].type&&("TemplateLiteral"===r.children[0].expression.type||"TaggedTemplateExpression"===r.children[0].expression.type))return H([a,H(e.map(n,"children")),s]);r.children=r.children.map((function(e){return function isJSXWhitespaceExpression(e){return"JSXExpressionContainer"===e.type&&isLiteral(e.expression)&&" "===e.expression.value&&!e.expression.comments}(e)?{type:"JSXText",value:" ",raw:" "}:e}));for(var o=r.children.filter(isJSXNode).length>0,i=r.children.filter((function(e){return"JSXExpressionContainer"===e.type})).length>1,p="JSXElement"===r.type&&r.openingElement.attributes.length>1,l=ue(a)||o||p||i,c=t.singleQuote?"{' '}":'{" "}',u=se(H([c,Y])," "),y=r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name,d=function printJSXChildren(e,t,n,r,a){var s=e.getValue(),o=[];return e.map((function(e,t){var i=e.getValue();if(isLiteral(i)){var p=rawText(i);if(isMeaningfulJSXText(i)){var l,c=p.split(Se);if(""===c[0]){if(o.push(""),c.shift(),/\n/.test(c[0])){var u=s.children[t+1];o.push(separatorWithWhitespace(a,c[1],i,u))}else o.push(r);c.shift()}if(""===m(c)&&(c.pop(),l=c.pop()),0===c.length)return;if(c.forEach((function(e,t){t%2==1?o.push($):o.push(e)})),void 0!==l)if(/\n/.test(l)){var y=s.children[t+1];o.push(separatorWithWhitespace(a,m(o),i,y))}else o.push(r);else{var d=s.children[t+1];o.push(separatorNoWhitespace(a,m(o),i,d))}}else/\n/.test(p)?p.match(/\n/g).length>1&&(o.push(""),o.push(Q)):(o.push(""),o.push(r))}else{var g=n(e);o.push(g);var f=s.children[t+1];if(f&&isMeaningfulJSXText(f)){var h=rawText(f).trim().split(Se)[0];o.push(separatorNoWhitespace(a,h,i,f))}else o.push(Q)}}),"children"),o}(e,0,n,u,y),g=r.children.filter((function(e){return isMeaningfulJSXText(e)})).length>0,f=d.length-2;f>=0;f--){var h=""===d[f]&&""===d[f+1],x=d[f]===Q&&""===d[f+1]&&d[f+2]===Q,T=(d[f]===Y||d[f]===Q)&&""===d[f+1]&&d[f+2]===u,S=d[f]===u&&""===d[f+1]&&(d[f+2]===Y||d[f+2]===Q),E=d[f]===u&&""===d[f+1]&&d[f+2]===u,b=d[f]===Y&&""===d[f+1]&&d[f+2]===Q||d[f]===Q&&""===d[f+1]&&d[f+2]===Y;x&&g||h||T||E||b?d.splice(f,2):S&&d.splice(f+1,2)}for(;d.length&&(me(m(d))||ye(m(d)));)d.pop();for(;d.length&&(me(d[0])||ye(d[0]))&&(me(d[1])||ye(d[1]));)d.shift(),d.shift();var v=[];d.forEach((function(e,t){if(e===u){if(1===t&&""===d[t-1])return 2===d.length?void v.push(c):void v.push(H([c,Q]));if(t===d.length-1)return void v.push(c);if(""===d[t-1]&&d[t-2]===Q)return void v.push(c)}v.push(e),ue(e)&&(l=!0)}));var C=g?ae(v):ee(H(v),{shouldBreak:!0}),A=ee(H([a,te(H([Q,C])),Q,s]));if(l)return A;return re([ee(H([a,H(d),s])),A])}(e,t,n)}),t);return function maybeWrapJSXElementInParens(e,t){var n=e.getParentNode();if(!n)return t;if({ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[n.type])return t;var r=b(e,["ArrowFunctionExpression","CallExpression","JSXExpressionContainer"]);return ee(H([se("("),te(H([Y,t])),Y,se(")")]),{shouldBreak:r})}(e,Ot);case"JSXOpeningElement":var Lt=e.getValue(),Dt=Lt.name&&Lt.name.comments&&Lt.name.comments.length>0||Lt.typeParameters&&Lt.typeParameters.comments&&Lt.typeParameters.comments.length>0;if(Lt.selfClosing&&!Lt.attributes.length&&!Dt)return H(["<",e.call(n,"name"),e.call(n,"typeParameters")," />"]);if(Lt.attributes&&1===Lt.attributes.length&&Lt.attributes[0].value&&isStringLiteral(Lt.attributes[0].value)&&!Lt.attributes[0].value.value.includes("\n")&&!Dt&&(!Lt.attributes[0].comments||!Lt.attributes[0].comments.length))return ee(H(["<",e.call(n,"name"),e.call(n,"typeParameters")," ",H(e.map(n,"attributes")),Lt.selfClosing?" />":">"]));var It=Lt.attributes.length&&hasTrailingComment(m(Lt.attributes)),Ft=!Lt.attributes.length&&!Dt||t.jsxBracketSameLine&&(!Dt||Lt.attributes.length)&&!It,Mt=Lt.attributes&&Lt.attributes.some((function(e){return e.value&&isStringLiteral(e.value)&&e.value.value.includes("\n")}));return ee(H(["<",e.call(n,"name"),e.call(n,"typeParameters"),H([te(H(e.map((function(e){return H([$,n(e)])}),"attributes"))),Lt.selfClosing?$:Ft?">":Y]),Lt.selfClosing?"/>":Ft?"":">"]),{shouldBreak:Mt});case"JSXClosingElement":return H(["</",e.call(n,"name"),">"]);case"JSXOpeningFragment":case"JSXClosingFragment":var Bt=o.comments&&o.comments.length,Jt=Bt&&!o.comments.every(L.isBlockComment),_t="JSXOpeningFragment"===o.type;return H([_t?"<":"</",te(H([Jt?Q:Bt&&!_t?" ":"",a.printDanglingComments(e,t,!0)])),Jt?Q:"",">"]);case"JSXText":throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":var Xt=o.comments&&!o.comments.every(L.isBlockComment);return H([a.printDanglingComments(e,t,!Xt),Xt?Q:""]);case"ClassBody":return o.comments||0!==o.body.length?H(["{",o.body.length>0?te(H([Q,e.call((function(e){return printStatementSequence(e,t,n)}),"body")])):a.printDanglingComments(e,t),Q,"}"]):"{}";case"ClassProperty":case"TSAbstractClassProperty":case"ClassPrivateProperty":o.decorators&&0!==o.decorators.length&&d.push(printDecorators(e,t,n)),o.accessibility&&d.push(o.accessibility+" "),o.static&&d.push("static "),"TSAbstractClassProperty"===o.type&&d.push("abstract "),o.readonly&&d.push("readonly ");var qt=getFlowVariance(o);return qt&&d.push(qt),o.computed?d.push("[",e.call(n,"key"),"]"):d.push(printPropertyKey(e,t,n)),d.push(printOptionalToken(e)),d.push(printTypeAnnotation(e,t,n)),o.value&&d.push(" =",printAssignmentRight(o.key,o.value,e.call(n,"value"),t)),d.push(i),ee(H(d));case"ClassDeclaration":case"ClassExpression":return isNodeStartingWithDeclare(o,t)&&d.push("declare "),d.push(H(printClass(e,t,n))),H(d);case"TSInterfaceHeritage":return d.push(e.call(n,"expression")),o.typeParameters&&d.push(e.call(n,"typeParameters")),H(d);case"TemplateElement":return z(Z,o.value.raw.split(/\r?\n/g));case"TemplateLiteral":var Vt=e.map(n,"expressions"),Rt=e.getParentNode();if(function isJestEachTemplateLiteral(e,t){var n=/^[xf]?(describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&n.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&n.test(t.tag.object.object.name))}(o,Rt)){var Wt=function printJestEachTemplateLiteral(e,t,n){var r=e.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(r.length>1||r.some((function(e){return 0!==e.length}))){for(var a=[],s=t.map((function(e){return"${"+ge(e,Object.assign({},n,{printWidth:1/0,endOfLine:"lf"})).formatted+"}"})),o=[{hasLineBreak:!1,cells:[]}],i=1;i<e.quasis.length;i++){var p=o[o.length-1],l=s[i-1];p.cells.push(l),-1!==l.indexOf("\n")&&(p.hasLineBreak=!0),-1!==e.quasis[i].value.raw.indexOf("\n")&&o.push({hasLineBreak:!1,cells:[]})}var c=o.reduce((function(e,t){return Math.max(e,t.cells.length)}),r.length),u=Array.from(new Array(c),(function(){return 0})),m=[{cells:r}].concat(o.filter((function(e){return 0!==e.cells.length})));return m.filter((function(e){return!e.hasLineBreak})).forEach((function(e){e.cells.forEach((function(e,t){u[t]=Math.max(u[t],y(e))}))})),a.push(ie,"`",te(H([Q,z(Q,m.map((function(e){return z(" | ",e.cells.map((function(t,n){return e.hasLineBreak?t:t+" ".repeat(u[n]-y(t))})))})))])),Q,"`"),H(a)}}(o,Vt,t);if(Wt)return Wt}var Gt=function isSimpleTemplateLiteral(e){if(0===e.expressions.length)return!1;return e.expressions.every((function(e){if(e.comments)return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if(!("MemberExpression"!==e.type&&"OptionalMemberExpression"!==e.type||"Identifier"!==e.property.type&&"Literal"!==e.property.type)){for(var t=e;"MemberExpression"===t.type||"OptionalMemberExpression"===t.type;)if((t=t.object).comments)return!1;return"Identifier"===t.type||"ThisExpression"===t.type}return!1}))}(o);return Gt&&(Vt=Vt.map((function(e){return ge(e,Object.assign({},t,{printWidth:1/0})).formatted}))),d.push(ie,"`"),e.each((function(e){var r=e.getName();if(d.push(n(e)),r<Vt.length){var a=t.tabWidth,s=e.getValue(),i=E(s.value.raw,a),p=Vt[r];Gt||(o.expressions[r].comments&&o.expressions[r].comments.length||"MemberExpression"===o.expressions[r].type||"OptionalMemberExpression"===o.expressions[r].type||"ConditionalExpression"===o.expressions[r].type)&&(p=H([te(H([Y,p])),Y]));var l=0===i&&s.value.raw.endsWith("\n")?ne(-1/0,p):pe(p,i,a);d.push(ee(H(["${",l,ie,"}"])))}}),"quasis"),d.push("`"),H(d);case"TaggedTemplateExpression":return H([e.call(n,"tag"),e.call(n,"typeParameters"),e.call(n,"quasi")]);case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(o.type));case"TypeAnnotation":case"TSTypeAnnotation":return o.typeAnnotation?e.call(n,"typeAnnotation"):"";case"TSTupleType":case"TupleTypeAnnotation":var Kt="TSTupleType"===o.type?"elementTypes":"types";return ee(H(["[",te(H([Y,printArrayItems(e,t,Kt,n)])),se(shouldPrintComma(t,"all")?",":""),a.printDanglingComments(e,t,!0),Y,"]"]));case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"AnyTypeAnnotation":return"any";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return H([e.call(n,"elementType"),"[]"]);case"BooleanTypeAnnotation":return"boolean";case"BooleanLiteralTypeAnnotation":return""+o.value;case"DeclareClass":return printFlowDeclaration(e,printClass(e,t,n));case"TSDeclareFunction":return H([o.declare?"declare ":"",printFunctionDeclaration(e,n,t),i]);case"DeclareFunction":return printFlowDeclaration(e,["function ",e.call(n,"id"),o.predicate?" ":"",e.call(n,"predicate"),i]);case"DeclareModule":return printFlowDeclaration(e,["module ",e.call(n,"id")," ",e.call(n,"body")]);case"DeclareModuleExports":return printFlowDeclaration(e,["module.exports",": ",e.call(n,"typeAnnotation"),i]);case"DeclareVariable":return printFlowDeclaration(e,["var ",e.call(n,"id"),i]);case"DeclareExportAllDeclaration":return H(["declare export * from ",e.call(n,"source")]);case"DeclareExportDeclaration":return H(["declare ",printExportDeclaration(e,t,n)]);case"DeclareOpaqueType":case"OpaqueType":return d.push("opaque type ",e.call(n,"id"),e.call(n,"typeParameters")),o.supertype&&d.push(": ",e.call(n,"supertype")),o.impltype&&d.push(" = ",e.call(n,"impltype")),d.push(i),"DeclareOpaqueType"===o.type?printFlowDeclaration(e,d):H(d);case"FunctionTypeAnnotation":case"TSFunctionType":var Ut=e.getParentNode(0),Ht=e.getParentNode(1),zt=e.getParentNode(2),$t="TSFunctionType"===o.type||!(("ObjectTypeProperty"===Ut.type||"ObjectTypeInternalSlot"===Ut.type)&&!getFlowVariance(Ut)&&!Ut.optional&&t.locStart(Ut)===t.locStart(o)||"ObjectTypeCallProperty"===Ut.type||zt&&"DeclareFunction"===zt.type),Qt=$t&&("TypeAnnotation"===Ut.type||"TSTypeAnnotation"===Ut.type),Yt=Qt&&$t&&("TypeAnnotation"===Ut.type||"TSTypeAnnotation"===Ut.type)&&"ArrowFunctionExpression"===Ht.type;return isObjectTypePropertyAFunction(Ut,t)&&($t=!0,Qt=!0),Yt&&d.push("("),d.push(printFunctionParams(e,n,t,!1,!0)),(o.returnType||o.predicate||o.typeAnnotation)&&d.push($t?" => ":": ",e.call(n,"returnType"),e.call(n,"predicate"),e.call(n,"typeAnnotation")),Yt&&d.push(")"),ee(H(d));case"TSRestType":return H(["...",e.call(n,"typeAnnotation")]);case"TSOptionalType":return H([e.call(n,"typeAnnotation"),"?"]);case"FunctionTypeParam":return H([e.call(n,"name"),printOptionalToken(e),o.name?": ":"",e.call(n,"typeAnnotation")]);case"GenericTypeAnnotation":return H([e.call(n,"id"),e.call(n,"typeParameters")]);case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return("DeclareInterface"===o.type||isNodeStartingWithDeclare(o,t))&&d.push("declare "),d.push("interface"),"DeclareInterface"!==o.type&&"InterfaceDeclaration"!==o.type||d.push(" ",e.call(n,"id"),e.call(n,"typeParameters")),o.extends.length>0&&d.push(ee(te(H([$,"extends ",(1===o.extends.length?identity:te)(z(H([",",$]),e.map(n,"extends")))])))),d.push(" ",e.call(n,"body")),ee(H(d));case"ClassImplements":case"InterfaceExtends":return H([e.call(n,"id"),e.call(n,"typeParameters")]);case"TSClassImplements":return H([e.call(n,"expression"),e.call(n,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":for(var Zt=e.map(n,"types"),en=[],tn=!1,nn=0;nn<Zt.length;++nn)0===nn?en.push(Zt[nn]):isObjectType(o.types[nn-1])&&isObjectType(o.types[nn])?en.push(H([" & ",tn?te(Zt[nn]):Zt[nn]])):isObjectType(o.types[nn-1])||isObjectType(o.types[nn])?(nn>1&&(tn=!0),en.push(" & ",nn>1?te(Zt[nn]):Zt[nn])):en.push(te(H([" &",$,Zt[nn]])));return ee(H(en));case"TSUnionType":case"UnionTypeAnnotation":var rn=e.getParentNode(),an=!("TypeParameterInstantiation"===rn.type||"TSTypeParameterInstantiation"===rn.type||"GenericTypeAnnotation"===rn.type||"TSTypeReference"===rn.type||"TSTypeAssertion"===rn.type||"FunctionTypeParam"===rn.type&&!rn.name||("TypeAlias"===rn.type||"VariableDeclarator"===rn.type||"TSTypeAliasDeclaration"===rn.type)&&hasLeadingOwnLineComment(t.originalText,o,t)),sn=shouldHugType(o),on=e.map((function(e){var r=e.call(n);return sn||(r=ne(2,r)),a.printComments(e,(function(){return r}),t)}),"types");if(sn)return z(" | ",on);var pn,ln=an&&!hasLeadingOwnLineComment(t.originalText,o,t),cn=H([se(H([ln?$:"","| "])),z(H([$,"| "]),on)]);if("TSUnionType"===o.type){var un=e.getNode(2),mn=e.getParentNode(2),yn=e.getParentNode(3);pn="TSParenthesizedType"===rn.type&&("TSAsExpression"===un.type||"TSUnionType"===un.type||"TSIntersectionType"===un.type||"TSTypeOperator"===un.type||"TSArrayType"===un.type)||mn&&"TSParenthesizedType"===mn.type&&yn&&("TSUnionType"===yn.type||"TSIntersectionType"===yn.type)}else pn=D(e,t);return ee(pn?H([te(cn),Y]):an?te(cn):cn);case"NullableTypeAnnotation":return H(["?",e.call(n,"typeAnnotation")]);case"TSNullKeyword":case"NullLiteralTypeAnnotation":return"null";case"ThisTypeAnnotation":return"this";case"NumberTypeAnnotation":return"number";case"ObjectTypeCallProperty":return o.static&&d.push("static "),d.push(e.call(n,"value")),H(d);case"ObjectTypeIndexer":var dn=getFlowVariance(o);return H([dn||"","[",e.call(n,"id"),o.id?": ":"",e.call(n,"key"),"]: ",e.call(n,"value")]);case"ObjectTypeProperty":var gn=getFlowVariance(o),fn="";return o.proto?fn="proto ":o.static&&(fn="static "),H([fn,isGetterOrSetter(o)?o.kind+" ":"",gn||"",printPropertyKey(e,t,n),printOptionalToken(e),isFunctionNotation(o,t)?"":": ",e.call(n,"value")]);case"QualifiedTypeIdentifier":return H([e.call(n,"qualification"),".",e.call(n,"id")]);case"StringLiteralTypeAnnotation":return nodeStr(o,t);case"NumberLiteralTypeAnnotation":return r.strictEqual(_typeof(o.value),"number"),null!=o.extra?g(o.extra.raw):g(o.raw);case"StringTypeAnnotation":return"string";case"DeclareTypeAlias":case"TypeAlias":("DeclareTypeAlias"===o.type||isNodeStartingWithDeclare(o,t))&&d.push("declare ");var hn=printAssignmentRight(o.id,o.right,e.call(n,"right"),t);return d.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",hn,i),ee(H(d));case"TypeCastExpression":var xn=e.getValue(),Tn=xn&&xn.typeAnnotation&&xn.typeAnnotation.range&&t.originalText.substring(xn.typeAnnotation.range[0]).match(/^\/\*\s*:/);return H(["(",e.call(n,"expression"),Tn?" /*":"",": ",e.call(n,"typeAnnotation"),Tn?" */":"",")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":var Sn=e.getValue(),En=Sn.range?t.originalText.substring(0,Sn.range[0]).lastIndexOf("/*"):-1;return En>=0&&t.originalText.substring(En).match(/^\/\*\s*::/)?H(["/*:: ",printTypeParameters(e,t,n,"params")," */"]):printTypeParameters(e,t,n,"params");case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return printTypeParameters(e,t,n,"params");case"TSTypeParameter":case"TypeParameter":var bn=e.getParentNode();if("TSMappedType"===bn.type)return d.push("[",e.call(n,"name")),o.constraint&&d.push(" in ",e.call(n,"constraint")),d.push("]"),H(d);var vn=getFlowVariance(o);vn&&d.push(vn),d.push(e.call(n,"name")),o.bound&&(d.push(": "),d.push(e.call(n,"bound"))),o.constraint&&d.push(" extends ",e.call(n,"constraint")),o.default&&d.push(" = ",e.call(n,"default"));var Cn=e.getNode(2);return bn.params&&1===bn.params.length&&t.filepath&&/\.tsx$/i.test(t.filepath)&&!o.constraint&&"ArrowFunctionExpression"===Cn.type&&d.push(","),H(d);case"TypeofTypeAnnotation":return H(["typeof ",e.call(n,"argument")]);case"VoidTypeAnnotation":return"void";case"InferredPredicate":return"%checks";case"DeclaredPredicate":return H(["%checks(",e.call(n,"value"),")"]);case"TSAbstractKeyword":return"abstract";case"TSAnyKeyword":return"any";case"TSAsyncKeyword":return"async";case"TSBooleanKeyword":return"boolean";case"TSBigIntKeyword":return"bigint";case"TSConstKeyword":return"const";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"TSNeverKeyword":return"never";case"TSNumberKeyword":return"number";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"TSSymbolKeyword":return"symbol";case"TSStaticKeyword":return"static";case"TSStringKeyword":return"string";case"TSUndefinedKeyword":return"undefined";case"TSUnknownKeyword":return"unknown";case"TSVoidKeyword":return"void";case"TSAsExpression":return H([e.call(n,"expression")," as ",e.call(n,"typeAnnotation")]);case"TSArrayType":return H([e.call(n,"elementType"),"[]"]);case"TSPropertySignature":return o.export&&d.push("export "),o.accessibility&&d.push(o.accessibility+" "),o.static&&d.push("static "),o.readonly&&d.push("readonly "),o.computed&&d.push("["),d.push(printPropertyKey(e,t,n)),o.computed&&d.push("]"),d.push(printOptionalToken(e)),o.typeAnnotation&&(d.push(": "),d.push(e.call(n,"typeAnnotation"))),o.initializer&&d.push(" = ",e.call(n,"initializer")),H(d);case"TSParameterProperty":return o.accessibility&&d.push(o.accessibility+" "),o.export&&d.push("export "),o.static&&d.push("static "),o.readonly&&d.push("readonly "),d.push(e.call(n,"parameter")),H(d);case"TSTypeReference":return H([e.call(n,"typeName"),printTypeParameters(e,t,n,"typeParameters")]);case"TSTypeQuery":return H(["typeof ",e.call(n,"exprName")]);case"TSParenthesizedType":return e.call(n,"typeAnnotation");case"TSIndexSignature":var An=e.getParentNode();return H([o.export?"export ":"",o.accessibility?H([o.accessibility," "]):"",o.static?"static ":"",o.readonly?"readonly ":"","[",o.parameters?H(e.map(n,"parameters")):"","]: ",e.call(n,"typeAnnotation"),"ClassBody"===An.type?i:""]);case"TSTypePredicate":return H([e.call(n,"parameterName")," is ",e.call(n,"typeAnnotation")]);case"TSNonNullExpression":return H([e.call(n,"expression"),"!"]);case"TSThisType":return"this";case"TSImportType":return H([o.isTypeOf?"typeof ":"","import(",e.call(n,"parameter"),")",o.qualifier?H([".",e.call(n,"qualifier")]):"",printTypeParameters(e,t,n,"typeParameters")]);case"TSLiteralType":return e.call(n,"literal");case"TSIndexedAccessType":return H([e.call(n,"objectType"),"[",e.call(n,"indexType"),"]"]);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSCallSignatureDeclaration"!==o.type&&d.push("new "),d.push(ee(printFunctionParams(e,n,t,!1,!0))),o.returnType){var Pn="TSConstructorType"===o.type;d.push(Pn?" => ":": ",e.call(n,"returnType"))}return H(d);case"TSTypeOperator":return H([o.operator," ",e.call(n,"typeAnnotation")]);case"TSMappedType":var Nn=u(t.originalText,t.locStart(o),t.locEnd(o));return ee(H(["{",te(H([t.bracketSpacing?$:Y,o.readonly?H([getTypeScriptMappedTypeModifier(o.readonly,"readonly")," "]):"",printTypeScriptModifiers(e,t,n),e.call(n,"typeParameter"),o.optional?getTypeScriptMappedTypeModifier(o.optional,"?"):"",": ",e.call(n,"typeAnnotation"),se(i,"")])),a.printDanglingComments(e,t,!0),t.bracketSpacing?$:Y,"}"]),{shouldBreak:Nn});case"TSMethodSignature":return d.push(o.accessibility?H([o.accessibility," "]):"",o.export?"export ":"",o.static?"static ":"",o.readonly?"readonly ":"",o.computed?"[":"",e.call(n,"key"),o.computed?"]":"",printOptionalToken(e),printFunctionParams(e,n,t,!1,!0)),o.returnType&&d.push(": ",e.call(n,"returnType")),ee(H(d));case"TSNamespaceExportDeclaration":return d.push("export as namespace ",e.call(n,"id")),t.semi&&d.push(";"),ee(H(d));case"TSEnumDeclaration":return isNodeStartingWithDeclare(o,t)&&d.push("declare "),o.modifiers&&d.push(printTypeScriptModifiers(e,t,n)),o.const&&d.push("const "),d.push("enum ",e.call(n,"id")," "),0===o.members.length?d.push(ee(H(["{",a.printDanglingComments(e,t),Y,"}"]))):d.push(ee(H(["{",te(H([Q,printArrayItems(e,t,"members",n),shouldPrintComma(t,"es5")?",":""])),a.printDanglingComments(e,t,!0),Q,"}"]))),H(d);case"TSEnumMember":return d.push(e.call(n,"id")),o.initializer&&d.push(" = ",e.call(n,"initializer")),H(d);case"TSImportEqualsDeclaration":return o.isExport&&d.push("export "),d.push("import ",e.call(n,"id")," = ",e.call(n,"moduleReference")),t.semi&&d.push(";"),ee(H(d));case"TSExternalModuleReference":return H(["require(",e.call(n,"expression"),")"]);case"TSModuleDeclaration":var wn=e.getParentNode(),kn=isLiteral(o.id),jn="TSModuleDeclaration"===wn.type,On=o.body&&"TSModuleDeclaration"===o.body.type;if(jn)d.push(".");else{!0===o.declare&&d.push("declare "),d.push(printTypeScriptModifiers(e,t,n));var Ln=t.originalText.slice(t.locStart(o),t.locStart(o.id));"Identifier"===o.id.type&&"global"===o.id.name&&!/namespace|module/.test(Ln)||d.push(kn||/(^|\s)module(\s|$)/.test(Ln)?"module ":"namespace ")}return d.push(e.call(n,"id")),On?d.push(e.call(n,"body")):o.body?d.push(" ",ee(e.call(n,"body"))):d.push(i),H(d);case"PrivateName":return H(["#",e.call(n,"id")]);case"TSConditionalType":return printTernaryOperator(e,t,n,{beforeParts:function beforeParts(){return[e.call(n,"checkType")," ","extends"," ",e.call(n,"extendsType")]},afterParts:function afterParts(){return[]},shouldCheckJsx:!1,conditionalNodeType:"TSConditionalType",consequentNodePropertyName:"trueType",alternateNodePropertyName:"falseType",testNodePropertyName:"checkType",breakNested:!0});case"TSInferType":return H(["infer"," ",e.call(n,"typeParameter")]);case"InterpreterDirective":return d.push("#!",o.value,Q),A(t.originalText,o,t)&&d.push(Q),H(d);case"NGRoot":return H([].concat(e.call(n,"node"),o.node.comments&&0!==o.node.comments.length?H([" //",o.node.comments[0].value.trimRight()]):[]));case"NGChainedExpression":return ee(z(H([";",$]),e.map((function(e){return function hasNgSideEffect(e){return V(e.getValue(),(function(e){switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}}))}(e)?n(e):H(["(",n(e),")"])}),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return H([o.prefix,":",o.value]);case"NGMicrosyntax":return H(e.map((function(e,t){return H([0===t?"":isNgForOf(e.getValue(),t,o)?" ":H([";",$]),n(e)])}),"body"));case"NGMicrosyntaxKey":return/^[a-z_$][a-z0-9_$]*(-[a-z_$][a-z0-9_$])*$/i.test(o.name)?o.name:JSON.stringify(o.name);case"NGMicrosyntaxExpression":return H([e.call(n,"expression"),null===o.alias?"":H([" as ",e.call(n,"alias")])]);case"NGMicrosyntaxKeyedExpression":var Dn=e.getName(),In=e.getParentNode(),Fn=isNgForOf(o,Dn,In)||(1===Dn&&("then"===o.key.name||"else"===o.key.name)||2===Dn&&"else"===o.key.name&&"NGMicrosyntaxKeyedExpression"===In.body[Dn-1].type&&"then"===In.body[Dn-1].key.name)&&"NGMicrosyntaxExpression"===In.body[0].type;return H([e.call(n,"key"),Fn?" ":": ",e.call(n,"expression")]);case"NGMicrosyntaxLet":return H(["let ",e.call(n,"key"),null===o.value?"":H([" = ",e.call(n,"value")])]);case"NGMicrosyntaxAs":return H([e.call(n,"key")," as ",e.call(n,"alias")]);default:throw new Error("unknown type: "+JSON.stringify(o.type))}}(e,t,n,s);if(!l||ye(f))return f;var h=o(e),T=[];if("ClassMethod"===l.type||"ClassPrivateMethod"===l.type||"ClassProperty"===l.type||"TSAbstractClassProperty"===l.type||"ClassPrivateProperty"===l.type||"MethodDefinition"===l.type||"TSAbstractMethodDefinition"===l.type);else if(l.decorators&&l.decorators.length>0&&!(h&&t.locStart(h,{ignoreDecorators:!0})>t.locStart(l.decorators[0]))){var C="ClassExpression"===l.type||"ClassDeclaration"===l.type||hasNewlineBetweenOrAfterDecorators(l,t)?Q:$;e.each((function(e){var t=e.getValue();t=t.expression?t.expression:t.callee,T.push(n(e),C)}),"decorators"),h&&T.unshift(Q)}else i(l)&&l.declaration&&l.declaration.decorators&&l.declaration.decorators.length>0&&t.locStart(l,{ignoreDecorators:!0})>t.locStart(l.declaration.decorators[0])?e.each((function(e){var t="Decorator"===e.getValue().type?"":"@";T.push(t,n(e),Q)}),"declaration","decorators"):d=D(e,t);var w=[];if(d&&w.unshift("("),w.push(f),d){var k=e.getValue();W(k)&&(w.push(" /*"),w.push(k.trailingComments[0].value.trimLeft()),w.push("*/"),k.trailingComments[0].printed=!0),w.push(")")}return T.length>0?ee(H(T.concat(w))):H(w)},embed:k,insertPragma:O,massageAstNode:j,hasPrettierIgnore:function hasPrettierIgnore(e){return f(e)||function hasJsxIgnoreComment(e){var t=e.getValue(),n=e.getParentNode();if(!(n&&t&&isJSXNode(t)&&isJSXNode(n)))return!1;for(var r=n.children.indexOf(t),a=null,s=r;s>0;s--){var o=n.children[s-1];if("JSXText"!==o.type||isMeaningfulJSXText(o)){a=o;break}}return a&&"JSXExpressionContainer"===a.type&&"JSXEmptyExpression"===a.expression.type&&a.expression.comments&&a.expression.comments.find((function(e){return"prettier-ignore"===e.value.trim()}))}(e)},willPrintOwnComments:function willPrintOwnComments(e){var t=e.getValue(),n=e.getParentNode();return(t&&(isJSXNode(t)||W(t)||n&&"CallExpression"===n.type&&(R(t.leadingComments)||R(t.trailingComments)))||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&!f(e)},canAttachComment:function canAttachComment(e){return e.type&&"CommentBlock"!==e.type&&"CommentLine"!==e.type&&"Line"!==e.type&&"Block"!==e.type&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type},printComment:function printComment(e,t){var n=e.getValue();switch(n.type){case"CommentBlock":case"Block":if(function isIndentableBlockComment(e){var t="*".concat(e.value,"*").split("\n");return t.length>1&&t.every((function(e){return"*"===e.trim()[0]}))}(n)){var r=function printIndentableBlockComment(e){var t=e.value.split("\n");return H(["/*",z(Q,t.map((function(e,n){return 0===n?e.trimRight():" "+(n<t.length-1?e.trim():e.trimLeft())}))),"*/"])}(n);return n.trailing&&!c(t.originalText,t.locStart(n),{backwards:!0})?H([Q,r]):r}var a="*-/"===t.originalText.substr(t.locEnd(n)-3,3);return"/*"+n.value+(a?"*-/":"*/");case"CommentLine":case"Line":return t.originalText.slice(t.locStart(n)).startsWith("#!")?"#!"+n.value.trimRight():"//"+n.value.trimRight();default:throw new Error("Not a comment: "+JSON.stringify(n))}},isBlockComment:L.isBlockComment,handleComments:{ownLine:L.handleOwnLineComment,endOfLine:L.handleEndOfLineComment,remaining:L.handleRemainingComment}}},"../node_modules/@miksu/prettier/lib/language-js/utils.js":function(e,t,n){function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=new RegExp("^".concat("(?:(?=.)\\s)","*:")),a=new RegExp("^".concat("(?:(?=.)\\s)","*::"));e.exports={getLeftSide:function getLeftSide(e){return e.expressions?e.expressions[0]:e.left||e.test||e.callee||e.object||e.tag||e.argument||e.expression},getLeftSidePathName:function getLeftSidePathName(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side",t)},hasNakedLeftSide:function hasNakedLeftSide(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||"CallExpression"===e.type||"OptionalCallExpression"===e.type||"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||"TSAsExpression"===e.type||"TSNonNullExpression"===e.type},hasNode:function hasNode(e,t){if(!e||"object"!==_typeof(e))return!1;if(Array.isArray(e))return e.some((function(e){return hasNode(e,t)}));var n=t(e);return"boolean"==typeof n?n:Object.keys(e).some((function(n){return hasNode(e[n],t)}))},hasFlowShorthandAnnotationComment:function hasFlowShorthandAnnotationComment(e){return e.extra&&e.extra.parenthesized&&e.trailingComments&&e.trailingComments[0].value.match(r)},hasFlowAnnotationComment:function hasFlowAnnotationComment(e){return e&&e[0].value.match(a)}}}}]);
//# sourceMappingURL=vendors~custom-page-KXWAf~pattern-view-page-WE7TE~97390721.chunk.eaa5497fb7f7db0479e3.js.map