@plone/volto 15.3.0 → 15.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -1
- package/dist/assets.json +1 -1
- package/dist/chunks.json +70 -70
- package/dist/loadable-stats.json +158 -158
- package/dist/public/static/css/{14.a04d758b.chunk.css → 14.28a992d7.chunk.css} +2 -2
- package/dist/public/static/css/{client.4f2ad45a.chunk.css → client.d1eef743.chunk.css} +2 -2
- package/dist/public/static/js/{14.a04d758b.chunk.js → 14.28a992d7.chunk.js} +2 -2
- package/dist/public/static/js/{14.a04d758b.chunk.js.LICENSE.txt → 14.28a992d7.chunk.js.LICENSE.txt} +0 -0
- package/dist/public/static/js/{19.61ef8815.chunk.js → 18.8304f096.chunk.js} +3 -3
- package/dist/public/static/js/{19.61ef8815.chunk.js.LICENSE.txt → 18.8304f096.chunk.js.LICENSE.txt} +0 -0
- package/dist/public/static/js/{20.6b37f925.chunk.js → 19.11da9600.chunk.js} +2 -2
- package/dist/public/static/js/{21.8704b265.chunk.js → 20.8d540d9e.chunk.js} +2 -2
- package/dist/public/static/js/{22.5a2b56ff.chunk.js → 21.5eb5dd94.chunk.js} +2 -2
- package/dist/public/static/js/{23.a53c8d7b.chunk.js → 22.df7a39a6.chunk.js} +2 -2
- package/dist/public/static/js/{24.d44c620a.chunk.js → 23.d81c9266.chunk.js} +2 -2
- package/dist/public/static/js/{25.455376b6.chunk.js → 24.b937f292.chunk.js} +2 -2
- package/dist/public/static/js/{26.a821045d.chunk.js → 25.4ca4d9bb.chunk.js} +2 -2
- package/dist/public/static/js/{27.efbb318a.chunk.js → 26.2923056d.chunk.js} +2 -2
- package/dist/public/static/js/27.ce5e05d3.chunk.js +2 -0
- package/dist/public/static/js/{29.690d4b54.chunk.js → 28.6e152244.chunk.js} +2 -2
- package/dist/public/static/js/{30.5f174f94.chunk.js → 29.3311f523.chunk.js} +2 -2
- package/dist/public/static/js/{31.4a7cf109.chunk.js → 30.5813bed0.chunk.js} +2 -2
- package/dist/public/static/js/{32.2247dcf7.chunk.js → 31.ea75f89f.chunk.js} +2 -2
- package/dist/public/static/js/{33.87874f33.chunk.js → 32.93231c42.chunk.js} +2 -2
- package/dist/public/static/js/{34.aec37d56.chunk.js → 33.a7d2c488.chunk.js} +3 -3
- package/dist/public/static/js/{34.aec37d56.chunk.js.LICENSE.txt → 33.a7d2c488.chunk.js.LICENSE.txt} +0 -0
- package/dist/public/static/js/{35.73887e02.chunk.js → 34.54f44477.chunk.js} +3 -3
- package/dist/public/static/js/{35.73887e02.chunk.js.LICENSE.txt → 34.54f44477.chunk.js.LICENSE.txt} +0 -0
- package/dist/public/static/js/{36.19d2e05a.chunk.js → 35.14d24902.chunk.js} +3 -3
- package/dist/public/static/js/{36.19d2e05a.chunk.js.LICENSE.txt → 35.14d24902.chunk.js.LICENSE.txt} +0 -0
- package/dist/public/static/js/{37.96925a5f.chunk.js → 36.9224daf8.chunk.js} +3 -3
- package/dist/public/static/js/{37.96925a5f.chunk.js.LICENSE.txt → 36.9224daf8.chunk.js.LICENSE.txt} +0 -0
- package/dist/public/static/js/{38.701a2e85.chunk.js → 37.fba4ef54.chunk.js} +2 -2
- package/dist/public/static/js/38.e3318f33.chunk.js +2 -0
- package/dist/public/static/js/client.d1eef743.chunk.js +2 -0
- package/dist/public/static/js/{runtime~client.5ca655c6.js → runtime~client.99af7cc8.js} +2 -2
- package/dist/server.js +1 -1
- package/locales/it/LC_MESSAGES/volto.po +5 -5
- package/locales/it.json +1 -1
- package/package-why.json +71 -0
- package/package.json +4 -3
- package/src/components/manage/Blocks/HTML/Edit.jsx +1 -1
- package/src/components/manage/Blocks/Image/Edit.jsx +1 -1
- package/src/components/manage/Blocks/Image/ImageSidebar.jsx +3 -3
- package/src/components/manage/Blocks/LeadImage/LeadImageSidebar.jsx +2 -2
- package/src/components/manage/Blocks/Video/VideoSidebar.jsx +11 -4
- package/src/components/manage/Contents/Contents.jsx +1 -1
- package/src/components/manage/Form/Field.jsx +2 -5
- package/src/components/manage/Form/Field.test.jsx +27 -0
- package/src/components/manage/Sidebar/ObjectBrowserBody.jsx +4 -4
- package/src/components/manage/Widgets/ObjectBrowserWidget.jsx +15 -9
- package/src/components/manage/Widgets/ObjectBrowserWidget.stories.js +24 -0
- package/src/components/theme/Navigation/ContextNavigation.jsx +24 -18
- package/src/helpers/Utils/Utils.js +6 -5
- package/src/helpers/Utils/Utils.test.js +6 -0
- package/src/start-server.js +5 -1
- package/theme/themes/pastanaga/extras/contents.less +13 -0
- package/dist/public/static/js/18.0f0b1dfa.chunk.js +0 -2
- package/dist/public/static/js/28.b4840d60.chunk.js +0 -2
- package/dist/public/static/js/client.4f2ad45a.chunk.js +0 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! For license information please see
|
|
2
|
-
(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[36],{MlsZ:function(e,t,n){(function(t){var n;n=function(){"use strict";var e="Prettier is an opinionated code formatter",n="./bin/prettier.js",r={node:">=10.13.0"},u={"@angular/compiler":"9.0.5","@babel/code-frame":"7.8.0","@babel/parser":"7.9.4","@glimmer/syntax":"0.50.0","@iarna/toml":"2.2.3","@typescript-eslint/typescript-estree":"2.26.0","angular-estree-parser":"1.3.0","angular-html-parser":"1.4.0",camelcase:"5.3.1",chalk:"4.0.0","ci-info":"watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540","cjk-regex":"2.0.0",cosmiconfig:"6.0.0",dashify:"2.0.0",dedent:"0.7.0",diff:"4.0.2",editorconfig:"0.15.3","editorconfig-to-prettier":"0.1.1","escape-string-regexp":"2.0.0",esutils:"2.0.3","fast-glob":"3.2.2","find-parent-dir":"0.3.0","find-project-root":"1.1.1","flow-parser":"0.122.0","get-stream":"5.1.0",globby:"11.0.0",graphql:"15.0.0","html-element-attributes":"2.2.1","html-styles":"1.0.0","html-tag-names":"1.1.5",ignore:"4.0.6","jest-docblock":"25.2.6","json-stable-stringify":"1.0.1",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.9.0",lodash:"4.17.15",mem:"6.0.1",minimatch:"3.0.4",minimist:"1.2.5","n-readlines":"1.0.0","please-upgrade-node":"3.2.0","postcss-less":"3.1.4","postcss-media-query-parser":"0.2.3","postcss-scss":"2.0.0","postcss-selector-parser":"2.2.3","postcss-values-parser":"2.0.1","regexp-util":"1.2.2","remark-math":"1.0.6","remark-parse":"5.0.0",resolve:"1.16.1",semver:"7.1.3",srcset:"2.0.1","string-width":"4.2.0",typescript:"3.8.3","unicode-regex":"3.0.0",unified:"9.0.0",vnopts:"1.0.2","yaml-unist-parser":"1.1.1"},a={"@babel/core":"7.9.0","@babel/preset-env":"7.9.0","@rollup/plugin-alias":"3.0.1","@rollup/plugin-commonjs":"11.0.2","@rollup/plugin-json":"4.0.2","@rollup/plugin-node-resolve":"7.1.1","@rollup/plugin-replace":"2.3.1","babel-loader":"8.1.0",benchmark:"2.1.4","builtin-modules":"3.1.0",codecov:"3.6.5","cross-env":"7.0.2",cspell:"4.0.55",eslint:"6.8.0","eslint-config-prettier":"6.10.1","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.20.2","eslint-plugin-prettier":"3.1.2","eslint-plugin-react":"7.19.0","eslint-plugin-unicorn":"18.0.1",execa:"4.0.0",jest:"25.2.7","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.1.0","jest-watch-typeahead":"0.5.0",prettier:"2.0.4",rimraf:"3.0.2",rollup:"2.3.2","rollup-plugin-babel":"4.4.0","rollup-plugin-node-globals":"1.4.0","rollup-plugin-terser":"5.3.0",shelljs:"0.8.3","snapshot-diff":"0.7.0","strip-ansi":"6.0.0","synchronous-promise":"2.0.10",tempy:"0.5.0","terser-webpack-plugin":"2.3.5",webpack:"4.42.1"},o={prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dist":"cross-env NODE_ENV=production jest","test:dist-standalone":"cross-env NODE_ENV=production TEST_STANDALONE=1 jest tests/","test:integration":"jest tests_integration","perf:repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","lint:typecheck":"tsc","lint:eslint":"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint:changelog":"node ./scripts/lint-changelog.js","lint:prettier":'prettier "**/*.{md,json,yml,html,css}" --check',"lint:dist":'eslint --no-eslintrc --no-ignore --env=es6,browser --parser-options=ecmaVersion:2016 "dist/!(bin-prettier|index|third-party).js"',"lint:spellcheck":"cspell {bin,scripts,src,website}/**/*.js {docs,website/blog,changelog_unreleased}/**/*.md","lint:deps":"node ./scripts/check-deps.js",build:"node --max-old-space-size=3072 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js"},s={name:"prettier",version:"2.0.5",description:e,bin:n,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",engines:r,dependencies:u,devDependencies:a,scripts:o},i=Object.freeze({__proto__:null,name:"prettier",version:"2.0.5",description:e,bin:n,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",engines:r,dependencies:u,devDependencies:a,scripts:o,default:s});function l(){}function c(e,t,n,r,u){for(var a=0,o=t.length,s=0,i=0;a<o;a++){var l=t[a];if(l.removed){if(l.value=e.join(r.slice(i,i+l.count)),i+=l.count,a&&t[a-1].added){var c=t[a-1];t[a-1]=t[a],t[a]=c}}else{if(!l.added&&u){var p=n.slice(s,s+l.count);p=p.map((function(e,t){var n=r[i+t];return n.length>e.length?n:e})),l.value=e.join(p)}else l.value=e.join(n.slice(s,s+l.count));s+=l.count,l.added||(i+=l.count)}}var d=t[o-1];return o>1&&"string"===typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(t[o-2].value+=d.value,t.pop()),t}function p(e){return{newPos:e.newPos,components:e.components.slice(0)}}l.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"===typeof n&&(r=n,n={}),this.options=n;var u=this;function a(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var o=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,i=1,l=o+s,d=[{newPos:-1,components:[]}],f=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=o&&f+1>=s)return a([{value:this.join(t),count:t.length}]);function h(){for(var n=-1*i;n<=i;n+=2){var r=void 0,l=d[n-1],f=d[n+1],h=(f?f.newPos:0)-n;l&&(d[n-1]=void 0);var m=l&&l.newPos+1<o,D=f&&0<=h&&h<s;if(m||D){if(!m||D&&l.newPos<f.newPos?(r=p(f),u.pushComponent(r.components,void 0,!0)):((r=l).newPos++,u.pushComponent(r.components,!0,void 0)),h=u.extractCommon(r,t,e,n),r.newPos+1>=o&&h+1>=s)return a(c(u,r.components,t,e,u.useLongestToken));d[n]=r}else d[n]=void 0}i++}if(r)!function e(){setTimeout((function(){if(i>l)return r();h()||e()}),0)}();else for(;i<=l;){var m=h();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var u=t.length,a=n.length,o=e.newPos,s=o-r,i=0;o+1<u&&s+1<a&&this.equals(t[o+1],n[s+1]);)o++,s++,i++;return i&&e.components.push({count:i}),e.newPos=o,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var d=new l;function f(e,t){if("function"===typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var h=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,m=/\S/,D=new l;D.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!m.test(e)&&!m.test(t)},D.tokenize=function(e){for(var t=e.split(/(\s+|[()[\]{}'"]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&h.test(t[n])&&h.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var g=new l;function y(e,t,n){return g.diff(e,t,n)}g.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var u=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=u:(this.options.ignoreWhitespace&&(u=u.trim()),t.push(u))}return t};var E=new l;E.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var C=new l;function b(e){return(b="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e){return function(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(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}C.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var F=Object.prototype.toString,v=new l;function x(e,t,n,r,u){var a,o;for(t=t||[],n=n||[],r&&(e=r(u,e)),a=0;a<t.length;a+=1)if(t[a]===e)return n[a];if("[object Array]"===F.call(e)){for(t.push(e),o=new Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=x(e[a],t,n,r,u);return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),"object"===b(e)&&null!==e){t.push(e),o={},n.push(o);var s,i=[];for(s in e)e.hasOwnProperty(s)&&i.push(s);for(i.sort(),a=0;a<i.length;a+=1)o[s=i[a]]=x(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}v.useLongestToken=!0,v.tokenize=g.tokenize,v.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,u=void 0===r?function(e,t){return"undefined"===typeof t?n:t}:r;return"string"===typeof e?e:JSON.stringify(x(e,null,null,u),u," ")},v.equals=function(e,t){return l.prototype.equals.call(v,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var S=new l;function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],u=[],a=0;function o(){var e={};for(u.push(e);a<n.length;){var r=n[a];if(/^(\-\-\-|\+\+\+|@@)\s/.test(r))break;var o=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(r);o&&(e.index=o[1]),a++}for(s(e),s(e),e.hunks=[];a<n.length;){var l=n[a];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(l))break;if(/^@@/.test(l))e.hunks.push(i());else{if(l&&t.strict)throw new Error("Unknown line "+(a+1)+" "+JSON.stringify(l));a++}}}function s(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[a]);if(t){var r="---"===t[1]?"old":"new",u=t[2].split("\t",2),o=u[0].replace(/\\\\/g,"\\");/^".*"$/.test(o)&&(o=o.substr(1,o.length-2)),e[r+"FileName"]=o,e[r+"Header"]=(u[1]||"").trim(),a++}}function i(){for(var e=a,u=n[a++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),o={oldStart:+u[1],oldLines:+u[2]||1,newStart:+u[3],newLines:+u[4]||1,lines:[],linedelimiters:[]},s=0,i=0;a<n.length&&!(0===n[a].indexOf("--- ")&&a+2<n.length&&0===n[a+1].indexOf("+++ ")&&0===n[a+2].indexOf("@@"));a++){var l=0==n[a].length&&a!=n.length-1?" ":n[a][0];if("+"!==l&&"-"!==l&&" "!==l&&"\\"!==l)break;o.lines.push(n[a]),o.linedelimiters.push(r[a]||"\n"),"+"===l?s++:"-"===l?i++:" "===l&&(s++,i++)}if(s||1!==o.newLines||(o.newLines=0),i||1!==o.oldLines||(o.oldLines=0),t.strict){if(s!==o.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(i!==o.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return o}for(;a<n.length;)o();return u}function B(e,t,n){var r=!0,u=!1,a=!1,o=1;return function s(){if(r&&!a){if(u?o++:r=!1,e+o<=n)return o;a=!0}if(!u)return a||(r=!0),t<=e-o?-o++:(u=!0,s())}}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof t&&(t=w(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,u,a=e.split(/\r\n|[\n\v\f\r\x85]/),o=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],s=t.hunks,i=n.compareLine||function(e,t,n,r){return t===r},l=0,c=n.fuzzFactor||0,p=0,d=0;function f(e,t){for(var n=0;n<e.lines.length;n++){var r=e.lines[n],u=r.length>0?r[0]:" ",o=r.length>0?r.substr(1):r;if(" "===u||"-"===u){if(!i(t+1,a[t],u,o)&&++l>c)return!1;t++}}return!0}for(var h=0;h<s.length;h++){for(var m=s[h],D=a.length-m.oldLines,g=0,y=d+m.oldStart-1,E=B(y,p,D);void 0!==g;g=E())if(f(m,y+g)){m.offset=d+=g;break}if(void 0===g)return!1;p=m.offset+m.oldStart+m.oldLines}for(var C=0,b=0;b<s.length;b++){var A=s[b],F=A.oldStart+A.offset+C-1;C+=A.newLines-A.oldLines,F<0&&(F=0);for(var v=0;v<A.lines.length;v++){var x=A.lines[v],S=x.length>0?x[0]:" ",T=x.length>0?x.substr(1):x,k=A.linedelimiters[v];if(" "===S)F++;else if("-"===S)a.splice(F,1),o.splice(F,1);else if("+"===S)a.splice(F,0,T),o.splice(F,0,k),F++;else if("\\"===S){var N=A.lines[v-1]?A.lines[v-1][0]:null;"+"===N?r=!0:"-"===N&&(u=!0)}}}if(r)for(;!a[a.length-1];)a.pop(),o.pop();else u&&(a.push(""),o.push("\n"));for(var O=0;O<a.length-1;O++)a[O]=a[O]+o[O];return a.join("")}function k(e,t,n,r,u,a,o){o||(o={}),"undefined"===typeof o.context&&(o.context=4);var s=y(n,r,o);function i(e){return e.map((function(e){return" "+e}))}s.push({value:"",lines:[]});for(var l=[],c=0,p=0,d=[],f=1,h=1,m=function(e){var t=s[e],u=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=u,t.added||t.removed){var a;if(!c){var m=s[e-1];c=f,p=h,m&&(d=o.context>0?i(m.lines.slice(-o.context)):[],c-=d.length,p-=d.length)}(a=d).push.apply(a,A(u.map((function(e){return(t.added?"+":"-")+e})))),t.added?h+=u.length:f+=u.length}else{if(c)if(u.length<=2*o.context&&e<s.length-2){var D;(D=d).push.apply(D,A(i(u)))}else{var g,y=Math.min(u.length,o.context);(g=d).push.apply(g,A(i(u.slice(0,y))));var E={oldStart:c,oldLines:f-c+y,newStart:p,newLines:h-p+y,lines:d};if(e>=s.length-2&&u.length<=o.context){var C=/\n$/.test(n),b=/\n$/.test(r),F=0==u.length&&d.length>E.oldLines;!C&&F&&d.splice(E.oldLines,0,"\"),(C||F)&&b||d.push("\")}l.push(E),c=0,p=0,d=[]}f+=u.length,h+=u.length}},D=0;D<s.length;D++)m(D);return{oldFileName:e,newFileName:t,oldHeader:u,newHeader:a,hunks:l}}function N(e,t,n,r,u,a,o){var s=k(e,t,n,r,u,a,o),i=[];e==t&&i.push("Index: "+e),i.push("==================================================================="),i.push("--- "+s.oldFileName+("undefined"===typeof s.oldHeader?"":"\t"+s.oldHeader)),i.push("+++ "+s.newFileName+("undefined"===typeof s.newHeader?"":"\t"+s.newHeader));for(var l=0;l<s.hunks.length;l++){var c=s.hunks[l];i.push("@@ -"+c.oldStart+","+c.oldLines+" +"+c.newStart+","+c.newLines+" @@"),i.push.apply(i,c.lines)}return i.join("\n")+"\n"}function O(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function P(e){var t=function e(t){var n=0,r=0;return t.forEach((function(t){if("string"!==typeof t){var u=e(t.mine),a=e(t.theirs);void 0!==n&&(u.oldLines===a.oldLines?n+=u.oldLines:n=void 0),void 0!==r&&(u.newLines===a.newLines?r+=u.newLines:r=void 0)}else void 0===r||"+"!==t[0]&&" "!==t[0]||r++,void 0===n||"-"!==t[0]&&" "!==t[0]||n++})),{oldLines:n,newLines:r}}(e.lines),n=t.oldLines,r=t.newLines;void 0!==n?e.oldLines=n:delete e.oldLines,void 0!==r?e.newLines=r:delete e.newLines}function I(e,t){if("string"===typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return w(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return k(void 0,void 0,t,e)}return e}function M(e){return e.newFileName&&e.newFileName!==e.oldFileName}function _(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function j(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function L(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function R(e,t,n,r,u){var a={offset:t,lines:n,index:0},o={offset:r,lines:u,index:0};for(U(e,a,o),U(e,o,a);a.index<a.lines.length&&o.index<o.lines.length;){var s=a.lines[a.index],i=o.lines[o.index];if("-"!==s[0]&&"+"!==s[0]||"-"!==i[0]&&"+"!==i[0])if("+"===s[0]&&" "===i[0]){var l;(l=e.lines).push.apply(l,A($(a)))}else if("+"===i[0]&&" "===s[0]){var c;(c=e.lines).push.apply(c,A($(o)))}else"-"===s[0]&&" "===i[0]?V(e,a,o):"-"===i[0]&&" "===s[0]?V(e,o,a,!0):s===i?(e.lines.push(s),a.index++,o.index++):W(e,$(a),$(o));else q(e,a,o)}z(e,a),z(e,o),P(e)}function q(e,t,n){var r=$(t),u=$(n);if(J(r)&&J(u)){var a,o;if(O(r,u)&&G(n,r,r.length-u.length))return void(a=e.lines).push.apply(a,A(r));if(O(u,r)&&G(t,u,u.length-r.length))return void(o=e.lines).push.apply(o,A(u))}else if(function(e,t){return e.length===t.length&&O(e,t)}(r,u)){var s;return void(s=e.lines).push.apply(s,A(r))}W(e,r,u)}function V(e,t,n,r){var u,a=$(t),o=function(e,t){for(var n=[],r=[],u=0,a=!1,o=!1;u<t.length&&e.index<e.lines.length;){var s=e.lines[e.index],i=t[u];if("+"===i[0])break;if(a=a||" "!==s[0],r.push(i),u++,"+"===s[0])for(o=!0;"+"===s[0];)n.push(s),s=e.lines[++e.index];i.substr(1)===s.substr(1)?(n.push(s),e.index++):o=!0}if("+"===(t[u]||"")[0]&&a&&(o=!0),o)return n;for(;u<t.length;)r.push(t[u++]);return{merged:r,changes:n}}(n,a);o.merged?(u=e.lines).push.apply(u,A(o.merged)):W(e,r?o:a,r?a:o)}function W(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function U(e,t,n){for(;t.offset<n.offset&&t.index<t.lines.length;){var r=t.lines[t.index++];e.lines.push(r),t.offset++}}function z(e,t){for(;t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n)}}function $(e){for(var t=[],n=e.lines[e.index][0];e.index<e.lines.length;){var r=e.lines[e.index];if("-"===n&&"+"===r[0]&&(n="+"),n!==r[0])break;t.push(r),e.index++}return t}function J(e){return e.reduce((function(e,t){return e&&"-"===t[0]}),!0)}function G(e,t,n){for(var r=0;r<n;r++){var u=t[t.length-n+r].substr(1);if(e.lines[e.index+r]!==" "+u)return!1}return e.index+=n,!0}function H(e){var t=e;return t=(t=(t=(t=t.replace(/&/g,"&")).replace(/</g,"<")).replace(/>/g,">")).replace(/"/g,""")}S.tokenize=function(e){return e.slice()},S.join=S.removeEmpty=function(e){return e};var X=Object.freeze({__proto__:null,Diff:l,diffChars:function(e,t,n){return d.diff(e,t,n)},diffWords:function(e,t,n){return n=f(n,{ignoreWhitespace:!0}),D.diff(e,t,n)},diffWordsWithSpace:function(e,t,n){return D.diff(e,t,n)},diffLines:y,diffTrimmedLines:function(e,t,n){var r=f(n,{ignoreWhitespace:!0});return g.diff(e,t,r)},diffSentences:function(e,t,n){return E.diff(e,t,n)},diffCss:function(e,t,n){return C.diff(e,t,n)},diffJson:function(e,t,n){return v.diff(e,t,n)},diffArrays:function(e,t,n){return S.diff(e,t,n)},structuredPatch:k,createTwoFilesPatch:N,createPatch:function(e,t,n,r,u,a){return N(e,e,t,n,r,u,a)},applyPatch:T,applyPatches:function(e,t){"string"===typeof e&&(e=w(e));var n=0;!function r(){var u=e[n++];if(!u)return t.complete();t.loadFile(u,(function(e,n){if(e)return t.complete(e);var a=T(n,u,t);t.patched(u,a,(function(e){if(e)return t.complete(e);r()}))}))}()},parsePatch:w,merge:function(e,t,n){e=I(e,n),t=I(t,n);var r={};(e.index||t.index)&&(r.index=e.index||t.index),(e.newFileName||t.newFileName)&&(M(e)?M(t)?(r.oldFileName=_(r,e.oldFileName,t.oldFileName),r.newFileName=_(r,e.newFileName,t.newFileName),r.oldHeader=_(r,e.oldHeader,t.oldHeader),r.newHeader=_(r,e.newHeader,t.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=t.oldFileName||e.oldFileName,r.newFileName=t.newFileName||e.newFileName,r.oldHeader=t.oldHeader||e.oldHeader,r.newHeader=t.newHeader||e.newHeader)),r.hunks=[];for(var u=0,a=0,o=0,s=0;u<e.hunks.length||a<t.hunks.length;){var i=e.hunks[u]||{oldStart:1/0},l=t.hunks[a]||{oldStart:1/0};if(j(i,l))r.hunks.push(L(i,o)),u++,s+=i.newLines-i.oldLines;else if(j(l,i))r.hunks.push(L(l,s)),a++,o+=l.newLines-l.oldLines;else{var c={oldStart:Math.min(i.oldStart,l.oldStart),oldLines:0,newStart:Math.min(i.newStart+o,l.oldStart+s),newLines:0,lines:[]};R(c,i.oldStart,i.lines,l.oldStart,l.lines),a++,u++,r.hunks.push(c)}}return r},convertChangesToDMP:function(e){for(var t,n,r=[],u=0;u<e.length;u++)n=(t=e[u]).added?1:t.removed?-1:0,r.push([n,t.value]);return r},convertChangesToXML:function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r.added?t.push("<ins>"):r.removed&&t.push("<del>"),t.push(H(r.value)),r.added?t.push("</ins>"):r.removed&&t.push("</del>")}return t.join("")},canonicalize:x}),Y=Object.freeze({__proto__:null,default:{}});const K=/[\\/]/;function Q(e){return e.split(K).pop()}var Z=Object.freeze({__proto__:null,extname:function(e){const t=Q(e),n=t.lastIndexOf(".");return-1===n?"":t.slice(n)},basename:Q,isAbsolute:function(){return!0}}),ee="undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},te=[],ne=[],re="undefined"!==typeof Uint8Array?Uint8Array:Array,ue=!1;function ae(){ue=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)te[t]=e[t],ne[e.charCodeAt(t)]=t;ne["-".charCodeAt(0)]=62,ne["_".charCodeAt(0)]=63}function oe(e,t,n){for(var r,u,a=[],o=t;o<n;o+=3)r=(e[o]<<16)+(e[o+1]<<8)+e[o+2],a.push(te[(u=r)>>18&63]+te[u>>12&63]+te[u>>6&63]+te[63&u]);return a.join("")}function se(e){var t;ue||ae();for(var n=e.length,r=n%3,u="",a=[],o=0,s=n-r;o<s;o+=16383)a.push(oe(e,o,o+16383>s?s:o+16383));return 1===r?(t=e[n-1],u+=te[t>>2],u+=te[t<<4&63],u+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],u+=te[t>>10],u+=te[t>>4&63],u+=te[t<<2&63],u+="="),a.push(u),a.join("")}function ie(e,t,n,r,u){var a,o,s=8*u-r-1,i=(1<<s)-1,l=i>>1,c=-7,p=n?u-1:0,d=n?-1:1,f=e[t+p];for(p+=d,a=f&(1<<-c)-1,f>>=-c,c+=s;c>0;a=256*a+e[t+p],p+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+p],p+=d,c-=8);if(0===a)a=1-l;else{if(a===i)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),a-=l}return(f?-1:1)*o*Math.pow(2,a-r)}function le(e,t,n,r,u,a){var o,s,i,l=8*a-u-1,c=(1<<l)-1,p=c>>1,d=23===u?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:a-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(i=Math.pow(2,-o))<1&&(o--,i*=2),(t+=o+p>=1?d/i:d*Math.pow(2,1-p))*i>=2&&(o++,i/=2),o+p>=c?(s=0,o=c):o+p>=1?(s=(t*i-1)*Math.pow(2,u),o+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,u),o=0));u>=8;e[n+f]=255&s,f+=h,s/=256,u-=8);for(o=o<<u|s,l+=u;l>0;e[n+f]=255&o,f+=h,o/=256,l-=8);e[n+f-h]|=128*m}var ce={}.toString,pe=Array.isArray||function(e){return"[object Array]"==ce.call(e)};function de(){return he.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function fe(e,t){if(de()<t)throw new RangeError("Invalid typed array length");return he.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=he.prototype:(null===e&&(e=new he(t)),e.length=t),e}function he(e,t,n){if(!he.TYPED_ARRAY_SUPPORT&&!(this instanceof he))return new he(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return ge(this,e)}return me(this,e,t,n)}function me(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),he.TYPED_ARRAY_SUPPORT?(e=t).__proto__=he.prototype:e=ye(e,t),e}(e,t,n,r):"string"===typeof t?function(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!he.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|be(t,n),u=(e=fe(e,r)).write(t,n);return u!==r&&(e=e.slice(0,u)),e}(e,t,n):function(e,t){if(Ce(t)){var n=0|Ee(t.length);return 0===(e=fe(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||(r=t.length)!==r?fe(e,0):ye(e,t);if("Buffer"===t.type&&pe(t.data))return ye(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function De(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function ge(e,t){if(De(t),e=fe(e,t<0?0:0|Ee(t)),!he.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function ye(e,t){var n=t.length<0?0:0|Ee(t.length);e=fe(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function Ee(e){if(e>=de())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+de().toString(16)+" bytes");return 0|e}function Ce(e){return!(null==e||!e._isBuffer)}function be(e,t){if(Ce(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Je(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Ge(e).length;default:if(r)return Je(e).length;t=(""+t).toLowerCase(),r=!0}}function Ae(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return _e(this,t,n);case"utf8":case"utf-8":return Pe(this,t,n);case"ascii":return Ie(this,t,n);case"latin1":case"binary":return Me(this,t,n);case"base64":return Oe(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return je(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Fe(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function ve(e,t,n,r,u){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=u?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(u)return-1;n=e.length-1}else if(n<0){if(!u)return-1;n=0}if("string"===typeof t&&(t=he.from(t,r)),Ce(t))return 0===t.length?-1:xe(e,t,n,r,u);if("number"===typeof t)return t&=255,he.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?u?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):xe(e,[t],n,r,u);throw new TypeError("val must be string, number or Buffer")}function xe(e,t,n,r,u){var a,o=1,s=e.length,i=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,i/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(u){var c=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===i)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(n+i>s&&(n=s-i),a=n;a>=0;a--){for(var p=!0,d=0;d<i;d++)if(l(e,a+d)!==l(t,d)){p=!1;break}if(p)return a}return-1}function Se(e,t,n,r){n=Number(n)||0;var u=e.length-n;r?(r=Number(r))>u&&(r=u):r=u;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function we(e,t,n,r){return He(Je(t,e.length-n),e,n,r)}function Be(e,t,n,r){return He(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Te(e,t,n,r){return Be(e,t,n,r)}function ke(e,t,n,r){return He(Ge(t),e,n,r)}function Ne(e,t,n,r){return He(function(e,t){for(var n,r,u,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,u=n%256,a.push(u),a.push(r);return a}(t,e.length-n),e,n,r)}function Oe(e,t,n){return 0===t&&n===e.length?se(e):se(e.slice(t,n))}function Pe(e,t,n){n=Math.min(e.length,n);for(var r=[],u=t;u<n;){var a,o,s,i,l=e[u],c=null,p=l>239?4:l>223?3:l>191?2:1;if(u+p<=n)switch(p){case 1:l<128&&(c=l);break;case 2:128===(192&(a=e[u+1]))&&(i=(31&l)<<6|63&a)>127&&(c=i);break;case 3:a=e[u+1],o=e[u+2],128===(192&a)&&128===(192&o)&&(i=(15&l)<<12|(63&a)<<6|63&o)>2047&&(i<55296||i>57343)&&(c=i);break;case 4:a=e[u+1],o=e[u+2],s=e[u+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(i=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&i<1114112&&(c=i)}null===c?(c=65533,p=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),u+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function Ie(e,t,n){var r="";n=Math.min(e.length,n);for(var u=t;u<n;++u)r+=String.fromCharCode(127&e[u]);return r}function Me(e,t,n){var r="";n=Math.min(e.length,n);for(var u=t;u<n;++u)r+=String.fromCharCode(e[u]);return r}function _e(e,t,n){var r,u=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>u)&&(n=u);for(var a="",o=t;o<n;++o)a+=(r=e[o])<16?"0"+r.toString(16):r.toString(16);return a}function je(e,t,n){for(var r=e.slice(t,n),u="",a=0;a<r.length;a+=2)u+=String.fromCharCode(r[a]+256*r[a+1]);return u}function Le(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Re(e,t,n,r,u,a){if(!Ce(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>u||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function qe(e,t,n,r){t<0&&(t=65535+t+1);for(var u=0,a=Math.min(e.length-n,2);u<a;++u)e[n+u]=(t&255<<8*(r?u:1-u))>>>8*(r?u:1-u)}function Ve(e,t,n,r){t<0&&(t=4294967295+t+1);for(var u=0,a=Math.min(e.length-n,4);u<a;++u)e[n+u]=t>>>8*(r?u:3-u)&255}function We(e,t,n,r,u,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ue(e,t,n,r,u){return u||We(e,0,n,4),le(e,t,n,r,23,4),n+4}function ze(e,t,n,r,u){return u||We(e,0,n,8),le(e,t,n,r,52,8),n+8}he.TYPED_ARRAY_SUPPORT=void 0===ee.TYPED_ARRAY_SUPPORT||ee.TYPED_ARRAY_SUPPORT,he.poolSize=8192,he._augment=function(e){return e.__proto__=he.prototype,e},he.from=function(e,t,n){return me(null,e,t,n)},he.TYPED_ARRAY_SUPPORT&&(he.prototype.__proto__=Uint8Array.prototype,he.__proto__=Uint8Array),he.alloc=function(e,t,n){return function(e,t,n,r){return De(t),t<=0?fe(e,t):void 0!==n?"string"===typeof r?fe(e,t).fill(n,r):fe(e,t).fill(n):fe(e,t)}(null,e,t,n)},he.allocUnsafe=function(e){return ge(null,e)},he.allocUnsafeSlow=function(e){return ge(null,e)},he.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Xe(e)||function(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&Xe(e.slice(0,0))}(e))},he.compare=function(e,t){if(!Ce(e)||!Ce(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,u=0,a=Math.min(n,r);u<a;++u)if(e[u]!==t[u]){n=e[u],r=t[u];break}return n<r?-1:r<n?1:0},he.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},he.concat=function(e,t){if(!pe(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return he.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=he.allocUnsafe(t),u=0;for(n=0;n<e.length;++n){var a=e[n];if(!Ce(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,u),u+=a.length}return r},he.byteLength=be,he.prototype._isBuffer=!0,he.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Fe(this,t,t+1);return this},he.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Fe(this,t,t+3),Fe(this,t+1,t+2);return this},he.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Fe(this,t,t+7),Fe(this,t+1,t+6),Fe(this,t+2,t+5),Fe(this,t+3,t+4);return this},he.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Pe(this,0,e):Ae.apply(this,arguments)},he.prototype.equals=function(e){if(!Ce(e))throw new TypeError("Argument must be a Buffer");return this===e||0===he.compare(this,e)},he.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},he.prototype.compare=function(e,t,n,r,u){if(!Ce(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===u&&(u=this.length),t<0||n>e.length||r<0||u>this.length)throw new RangeError("out of range index");if(r>=u&&t>=n)return 0;if(r>=u)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(u>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),i=this.slice(r,u),l=e.slice(t,n),c=0;c<s;++c)if(i[c]!==l[c]){a=i[c],o=l[c];break}return a<o?-1:o<a?1:0},he.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},he.prototype.indexOf=function(e,t,n){return ve(this,e,t,n,!0)},he.prototype.lastIndexOf=function(e,t,n){return ve(this,e,t,n,!1)},he.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var u=this.length-t;if((void 0===n||n>u)&&(n=u),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return Se(this,e,t,n);case"utf8":case"utf-8":return we(this,e,t,n);case"ascii":return Be(this,e,t,n);case"latin1":case"binary":return Te(this,e,t,n);case"base64":return ke(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ne(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},he.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},he.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),he.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=he.prototype;else{var u=t-e;n=new he(u,void 0);for(var a=0;a<u;++a)n[a]=this[a+e]}return n},he.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||Le(e,t,this.length);for(var r=this[e],u=1,a=0;++a<t&&(u*=256);)r+=this[e+a]*u;return r},he.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||Le(e,t,this.length);for(var r=this[e+--t],u=1;t>0&&(u*=256);)r+=this[e+--t]*u;return r},he.prototype.readUInt8=function(e,t){return t||Le(e,1,this.length),this[e]},he.prototype.readUInt16LE=function(e,t){return t||Le(e,2,this.length),this[e]|this[e+1]<<8},he.prototype.readUInt16BE=function(e,t){return t||Le(e,2,this.length),this[e]<<8|this[e+1]},he.prototype.readUInt32LE=function(e,t){return t||Le(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},he.prototype.readUInt32BE=function(e,t){return t||Le(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},he.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Le(e,t,this.length);for(var r=this[e],u=1,a=0;++a<t&&(u*=256);)r+=this[e+a]*u;return r>=(u*=128)&&(r-=Math.pow(2,8*t)),r},he.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Le(e,t,this.length);for(var r=t,u=1,a=this[e+--r];r>0&&(u*=256);)a+=this[e+--r]*u;return a>=(u*=128)&&(a-=Math.pow(2,8*t)),a},he.prototype.readInt8=function(e,t){return t||Le(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},he.prototype.readInt16LE=function(e,t){t||Le(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},he.prototype.readInt16BE=function(e,t){t||Le(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},he.prototype.readInt32LE=function(e,t){return t||Le(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},he.prototype.readInt32BE=function(e,t){return t||Le(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},he.prototype.readFloatLE=function(e,t){return t||Le(e,4,this.length),ie(this,e,!0,23,4)},he.prototype.readFloatBE=function(e,t){return t||Le(e,4,this.length),ie(this,e,!1,23,4)},he.prototype.readDoubleLE=function(e,t){return t||Le(e,8,this.length),ie(this,e,!0,52,8)},he.prototype.readDoubleBE=function(e,t){return t||Le(e,8,this.length),ie(this,e,!1,52,8)},he.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Re(this,e,t,n,Math.pow(2,8*n)-1,0);var u=1,a=0;for(this[t]=255&e;++a<n&&(u*=256);)this[t+a]=e/u&255;return t+n},he.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Re(this,e,t,n,Math.pow(2,8*n)-1,0);var u=n-1,a=1;for(this[t+u]=255&e;--u>=0&&(a*=256);)this[t+u]=e/a&255;return t+n},he.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Re(this,e,t,1,255,0),he.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},he.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Re(this,e,t,2,65535,0),he.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):qe(this,e,t,!0),t+2},he.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Re(this,e,t,2,65535,0),he.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):qe(this,e,t,!1),t+2},he.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Re(this,e,t,4,4294967295,0),he.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ve(this,e,t,!0),t+4},he.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Re(this,e,t,4,4294967295,0),he.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ve(this,e,t,!1),t+4},he.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var u=Math.pow(2,8*n-1);Re(this,e,t,n,u-1,-u)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},he.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var u=Math.pow(2,8*n-1);Re(this,e,t,n,u-1,-u)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},he.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Re(this,e,t,1,127,-128),he.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},he.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Re(this,e,t,2,32767,-32768),he.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):qe(this,e,t,!0),t+2},he.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Re(this,e,t,2,32767,-32768),he.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):qe(this,e,t,!1),t+2},he.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Re(this,e,t,4,2147483647,-2147483648),he.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ve(this,e,t,!0),t+4},he.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Re(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),he.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ve(this,e,t,!1),t+4},he.prototype.writeFloatLE=function(e,t,n){return Ue(this,e,t,!0,n)},he.prototype.writeFloatBE=function(e,t,n){return Ue(this,e,t,!1,n)},he.prototype.writeDoubleLE=function(e,t,n){return ze(this,e,t,!0,n)},he.prototype.writeDoubleBE=function(e,t,n){return ze(this,e,t,!1,n)},he.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var u,a=r-n;if(this===e&&n<t&&t<r)for(u=a-1;u>=0;--u)e[u+t]=this[u+n];else if(a<1e3||!he.TYPED_ARRAY_SUPPORT)for(u=0;u<a;++u)e[u+t]=this[u+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},he.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var u=e.charCodeAt(0);u<256&&(e=u)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!he.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=Ce(e)?e:Je(new he(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var $e=/[^+\/0-9A-Za-z-_]/g;function Je(e,t){var n;t=t||1/0;for(var r=e.length,u=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!u){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}u=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),u=n;continue}n=65536+(u-55296<<10|n-56320)}else u&&(t-=3)>-1&&a.push(239,191,189);if(u=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function Ge(e){return function(e){var t,n,r,u,a,o;ue||ae();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===e[s-2]?2:"="===e[s-1]?1:0,o=new re(3*s/4-a),r=a>0?s-4:s;var i=0;for(t=0,n=0;t<r;t+=4,n+=3)u=ne[e.charCodeAt(t)]<<18|ne[e.charCodeAt(t+1)]<<12|ne[e.charCodeAt(t+2)]<<6|ne[e.charCodeAt(t+3)],o[i++]=u>>16&255,o[i++]=u>>8&255,o[i++]=255&u;return 2===a?(u=ne[e.charCodeAt(t)]<<2|ne[e.charCodeAt(t+1)]>>4,o[i++]=255&u):1===a&&(u=ne[e.charCodeAt(t)]<<10|ne[e.charCodeAt(t+1)]<<4|ne[e.charCodeAt(t+2)]>>2,o[i++]=u>>8&255,o[i++]=255&u),o}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace($e,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function He(e,t,n,r){for(var u=0;u<r&&!(u+n>=t.length||u>=e.length);++u)t[u+n]=e[u];return u}function Xe(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Ye="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{};function Ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qe(e,t){return e(t={exports:{}},t.exports),t.exports}function Ze(e){return e&&e.default||e}var et=Ze(Y),tt=class{constructor(e,t){(t=t||{}).readChunk||(t.readChunk=1024),t.newLineCharacter?t.newLineCharacter=t.newLineCharacter.charCodeAt(0):t.newLineCharacter=10,this.fd="number"===typeof e?e:et.openSync(e,"r"),this.options=t,this.newLineCharacter=t.newLineCharacter,this.reset()}_searchInBuffer(e,t){let n=-1;for(let r=0;r<=e.length;r++)if(e[r]===t){n=r;break}return n}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){et.closeSync(this.fd),this.fd=null}_extractLines(e){let t;const n=[];let r=0,u=0;for(;;){let a=e[r++];if(a===this.newLineCharacter)t=e.slice(u,r),n.push(t),u=r;else if(!a)break}let a=e.slice(u,r);return a.length&&n.push(a),n}_readChunk(e){let t,n=0;const r=[];do{const e=new he(this.options.readChunk);t=et.readSync(this.fd,e,0,this.options.readChunk,this.fdPosition),n+=t,this.fdPosition=this.fdPosition+t,r.push(e)}while(t&&-1===this._searchInBuffer(r[r.length-1],this.options.newLineCharacter));let u=he.concat(r);return t<this.options.readChunk&&(this.eofReached=!0,u=u.slice(0,n)),n&&(this.linesCache=this._extractLines(u),e&&(this.linesCache[0]=he.concat([e,this.linesCache[0]]))),n}next(){if(!this.fd)return!1;let e,t=!1;return this.eofReached&&0===this.linesCache.length||(this.linesCache.length||(e=this._readChunk()),this.linesCache.length&&(t=this.linesCache.shift(),10!==t[t.length-1]&&(e=this._readChunk(t),e&&(t=this.linesCache.shift()))),this.eofReached&&0===this.linesCache.length&&this.close(),t&&t[t.length-1]===this.newLineCharacter&&(t=t.slice(0,t.length-1))),t}},nt=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var u=e[t];r[u[0]]=u[1]}return r};class rt extends Error{}class ut extends Error{}class at extends Error{}var ot={ConfigError:rt,DebugError:ut,UndefinedParserError:at};function st(e,t){if(null==e)return{};var n,r,u={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(u[n]=e[n]);return u}function it(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function lt(){throw new Error("setTimeout has not been defined")}function ct(){throw new Error("clearTimeout has not been defined")}var pt=lt,dt=ct;function ft(e){if(pt===setTimeout)return setTimeout(e,0);if((pt===lt||!pt)&&setTimeout)return pt=setTimeout,setTimeout(e,0);try{return pt(e,0)}catch(t){try{return pt.call(null,e,0)}catch(t){return pt.call(this,e,0)}}}"function"===typeof ee.setTimeout&&(pt=setTimeout),"function"===typeof ee.clearTimeout&&(dt=clearTimeout);var ht,mt=[],Dt=!1,gt=-1;function yt(){Dt&&ht&&(Dt=!1,ht.length?mt=ht.concat(mt):gt=-1,mt.length&&Et())}function Et(){if(!Dt){var e=ft(yt);Dt=!0;for(var t=mt.length;t;){for(ht=mt,mt=[];++gt<t;)ht&&ht[gt].run();gt=-1,t=mt.length}ht=null,Dt=!1,function(e){if(dt===clearTimeout)return clearTimeout(e);if((dt===ct||!dt)&&clearTimeout)return dt=clearTimeout,clearTimeout(e);try{dt(e)}catch(t){try{return dt.call(null,e)}catch(t){return dt.call(this,e)}}}(e)}}function Ct(e,t){this.fun=e,this.array=t}function bt(){}Ct.prototype.run=function(){this.fun.apply(null,this.array)};var At=bt,Ft=bt,vt=bt,xt=bt,St=bt,wt=bt,Bt=bt,Tt=ee.performance||{},kt=Tt.now||Tt.mozNow||Tt.msNow||Tt.oNow||Tt.webkitNow||function(){return(new Date).getTime()},Nt=new Date,Ot={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];mt.push(new Ct(e,t)),1!==mt.length||Dt||ft(Et)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:At,addListener:Ft,once:vt,off:xt,removeListener:St,removeAllListeners:wt,emit:Bt,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*kt.call(Tt),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Nt)/1e3}},Pt="object"===typeof Ot&&Ot.env&&Ot.env.NODE_DEBUG&&/\bsemver\b/i.test(Ot.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},It={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},Mt=Qe((function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=It,r=(t=e.exports={}).re=[],u=t.src=[],a=t.t={};let o=0;const s=(e,t,n)=>{const s=o++;Pt(s,t),a[e]=s,u[s]=t,r[s]=new RegExp(t,n?"g":void 0)};s("NUMERICIDENTIFIER","0|[1-9]\\d*"),s("NUMERICIDENTIFIERLOOSE","[0-9]+"),s("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),s("MAINVERSION","(".concat(u[a.NUMERICIDENTIFIER],")\\.")+"(".concat(u[a.NUMERICIDENTIFIER],")\\.")+"(".concat(u[a.NUMERICIDENTIFIER],")")),s("MAINVERSIONLOOSE","(".concat(u[a.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(u[a.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(u[a.NUMERICIDENTIFIERLOOSE],")")),s("PRERELEASEIDENTIFIER","(?:".concat(u[a.NUMERICIDENTIFIER],"|").concat(u[a.NONNUMERICIDENTIFIER],")")),s("PRERELEASEIDENTIFIERLOOSE","(?:".concat(u[a.NUMERICIDENTIFIERLOOSE],"|").concat(u[a.NONNUMERICIDENTIFIER],")")),s("PRERELEASE","(?:-(".concat(u[a.PRERELEASEIDENTIFIER],"(?:\\.").concat(u[a.PRERELEASEIDENTIFIER],")*))")),s("PRERELEASELOOSE","(?:-?(".concat(u[a.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(u[a.PRERELEASEIDENTIFIERLOOSE],")*))")),s("BUILDIDENTIFIER","[0-9A-Za-z-]+"),s("BUILD","(?:\\+(".concat(u[a.BUILDIDENTIFIER],"(?:\\.").concat(u[a.BUILDIDENTIFIER],")*))")),s("FULLPLAIN","v?".concat(u[a.MAINVERSION]).concat(u[a.PRERELEASE],"?").concat(u[a.BUILD],"?")),s("FULL","^".concat(u[a.FULLPLAIN],"$")),s("LOOSEPLAIN","[v=\\s]*".concat(u[a.MAINVERSIONLOOSE]).concat(u[a.PRERELEASELOOSE],"?").concat(u[a.BUILD],"?")),s("LOOSE","^".concat(u[a.LOOSEPLAIN],"$")),s("GTLT","((?:<|>)?=?)"),s("XRANGEIDENTIFIERLOOSE","".concat(u[a.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),s("XRANGEIDENTIFIER","".concat(u[a.NUMERICIDENTIFIER],"|x|X|\\*")),s("XRANGEPLAIN","[v=\\s]*(".concat(u[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(u[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(u[a.XRANGEIDENTIFIER],")")+"(?:".concat(u[a.PRERELEASE],")?").concat(u[a.BUILD],"?")+")?)?"),s("XRANGEPLAINLOOSE","[v=\\s]*(".concat(u[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(u[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(u[a.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(u[a.PRERELEASELOOSE],")?").concat(u[a.BUILD],"?")+")?)?"),s("XRANGE","^".concat(u[a.GTLT],"\\s*").concat(u[a.XRANGEPLAIN],"$")),s("XRANGELOOSE","^".concat(u[a.GTLT],"\\s*").concat(u[a.XRANGEPLAINLOOSE],"$")),s("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:$|[^\\d])"),s("COERCERTL",u[a.COERCE],!0),s("LONETILDE","(?:~>?)"),s("TILDETRIM","(\\s*)".concat(u[a.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",s("TILDE","^".concat(u[a.LONETILDE]).concat(u[a.XRANGEPLAIN],"$")),s("TILDELOOSE","^".concat(u[a.LONETILDE]).concat(u[a.XRANGEPLAINLOOSE],"$")),s("LONECARET","(?:\\^)"),s("CARETTRIM","(\\s*)".concat(u[a.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",s("CARET","^".concat(u[a.LONECARET]).concat(u[a.XRANGEPLAIN],"$")),s("CARETLOOSE","^".concat(u[a.LONECARET]).concat(u[a.XRANGEPLAINLOOSE],"$")),s("COMPARATORLOOSE","^".concat(u[a.GTLT],"\\s*(").concat(u[a.LOOSEPLAIN],")$|^$")),s("COMPARATOR","^".concat(u[a.GTLT],"\\s*(").concat(u[a.FULLPLAIN],")$|^$")),s("COMPARATORTRIM","(\\s*)".concat(u[a.GTLT],"\\s*(").concat(u[a.LOOSEPLAIN],"|").concat(u[a.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",s("HYPHENRANGE","^\\s*(".concat(u[a.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(u[a.XRANGEPLAIN],")")+"\\s*$"),s("HYPHENRANGELOOSE","^\\s*(".concat(u[a.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(u[a.XRANGEPLAINLOOSE],")")+"\\s*$"),s("STAR","(<|>)?=?\\s*\\*")}));Mt.re,Mt.src,Mt.t,Mt.tildeTrimReplace,Mt.caretTrimReplace,Mt.comparatorTrimReplace;const _t=/^[0-9]+$/,jt=(e,t)=>{const n=_t.test(e),r=_t.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var Lt={compareIdentifiers:jt,rcompareIdentifiers:(e,t)=>jt(t,e)};const{MAX_LENGTH:Rt,MAX_SAFE_INTEGER:qt}=It,{re:Vt,t:Wt}=Mt,{compareIdentifiers:Ut}=Lt;class zt{constructor(e,t){if(t&&"object"===typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof zt){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!==typeof e)throw new TypeError("Invalid Version: ".concat(e));if(e.length>Rt)throw new TypeError("version is longer than ".concat(Rt," characters"));Pt("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?Vt[Wt.LOOSE]:Vt[Wt.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>qt||this.major<0)throw new TypeError("Invalid major version");if(this.minor>qt||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>qt||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<qt)return t}return e}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(e){if(Pt("SemVer.compare",this.version,this.options,e),!(e instanceof zt)){if("string"===typeof e&&e===this.version)return 0;e=new zt(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof zt||(e=new zt(e,this.options)),Ut(this.major,e.major)||Ut(this.minor,e.minor)||Ut(this.patch,e.patch)}comparePre(e){if(e instanceof zt||(e=new zt(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],r=e.prerelease[t];if(Pt("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return Ut(n,r)}while(++t)}compareBuild(e){e instanceof zt||(e=new zt(e,this.options));let t=0;do{const n=this.build[t],r=e.build[t];if(Pt("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return Ut(n,r)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"===typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}var $t=zt,Jt=(e,t,n)=>new $t(e,n).compare(new $t(t,n)),Gt=(e,t,n)=>Jt(e,t,n)<0,Ht=(e,t,n)=>Jt(e,t,n)>=0,Xt=Qe((function(e){e.exports=function(e){var t=void 0;t="string"===typeof e?[e]:e.raw;for(var n="",r=0;r<t.length;r++)n+=t[r].replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`"),r<(arguments.length<=1?0:arguments.length-1)&&(n+=arguments.length<=r+1?void 0:arguments[r+1]);var u=n.split("\n"),a=null;return u.forEach((function(e){var t=e.match(/^(\s+)\S+/);if(t){var n=t[1].length;a=a?Math.min(a,n):n}})),null!==a&&(n=u.map((function(e){return" "===e[0]?e.slice(a):e})).join("\n")),(n=n.trim()).replace(/\\n/g,"\n")}}));function Yt(){const e=it(["\n Require either '@prettier' or '@format' to be present in the file's first docblock comment\n in order for it to be formatted.\n "]);return Yt=function(){return e},e}function Kt(){const e=it(["\n Format code starting at a given character offset.\n The range will extend backwards to the start of the first line containing the selected statement.\n This option cannot be used with --cursor-offset.\n "]);return Kt=function(){return e},e}function Qt(){const e=it(["\n Format code ending at a given character offset (exclusive).\n The range will extend forwards to the end of the selected statement.\n This option cannot be used with --cursor-offset.\n "]);return Qt=function(){return e},e}function Zt(){const e=it(["\n Custom directory that contains prettier plugins in node_modules subdirectory.\n Overrides default behavior when plugins are searched relatively to the location of Prettier.\n Multiple values are accepted.\n "]);return Zt=function(){return e},e}function en(){const e=it(["\n Maintain existing\n (mixed values within one file are normalised by looking at what's used after the first line)\n "]);return en=function(){return e},e}function tn(){const e=it(["\n Print (to stderr) where a cursor at the given position would move to after formatting.\n This option cannot be used with --range-start and --range-end.\n "]);return tn=function(){return e},e}var nn={CATEGORY_CONFIG:"Config",CATEGORY_EDITOR:"Editor",CATEGORY_FORMAT:"Format",CATEGORY_OTHER:"Other",CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:"Global",CATEGORY_SPECIAL:"Special",options:{cursorOffset:{since:"1.4.0",category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:Xt(tn()),cliCategory:"Editor"},endOfLine:{since:"1.15.0",category:"Global",type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:Xt(en())}]},filepath:{since:"1.4.0",category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{since:"0.0.10",category:"Global",type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:e=>"string"===typeof e||"function"===typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:null,description:"Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"===typeof e||"object"===typeof e,cliName:"plugin",cliCategory:"Config"},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:"Global",description:Xt(Zt()),exception:e=>"string"===typeof e||"object"===typeof e,cliName:"plugin-search-dir",cliCategory:"Config"},printWidth:{since:"0.0.0",category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{since:"1.4.0",category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:Xt(Qt()),cliCategory:"Editor"},rangeStart:{since:"1.4.0",category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:Xt(Kt()),cliCategory:"Editor"},requirePragma:{since:"1.7.0",category:"Special",type:"boolean",default:!1,description:Xt(Yt()),cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{since:"1.0.0",category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."}}},rn=Ze(i);const un={compare:Jt,lt:Gt,gte:Ht},an=rn.version,on=nn.options;var sn={getSupportInfo:function({plugins:e=[],showUnreleased:t=!1,showDeprecated:n=!1,showInternal:r=!1}={}){const u=an.split("-",1)[0],a=((e,t)=>Object.entries(e).map(([e,n])=>Object.assign({[t]:e},n)))(Object.assign({},...e.map(({options:e})=>e),on),"name").filter(e=>o(e)&&s(e)).sort((e,t)=>e.name===t.name?0:e.name<t.name?-1:1).map((function(e){return r?e:st(e,["cliName","cliCategory","cliDescription"])})).map(t=>{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(o).sort((e,t)=>un.compare(t.since,e.since))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter(e=>o(e)&&s(e)));const n=e.filter(e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name]).reduce((e,n)=>(e[n.name]=n.defaultOptions[t.name],e),{});return Object.assign({},t,{pluginDefaults:n})});return{languages:e.reduce((e,t)=>e.concat(t.languages||[]),[]).filter(o),options:a};function o(e){return t||!("since"in e)||e.since&&un.gte(u,e.since)}function s(e){return n||!("deprecated"in e)||e.deprecated&&un.lt(u,e.deprecated)}}},ln=function(e,t){return(ln=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},cn=function(){return(cn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var u in t=arguments[n])Object.prototype.hasOwnProperty.call(t,u)&&(e[u]=t[u]);return e}).apply(this,arguments)};function pn(e){var t="function"===typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function dn(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,u,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){u={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(u)throw u.error}}return o}function fn(e){return this instanceof fn?(this.v=e,this):new fn(e)}var hn=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}ln(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return cn},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var u=0;for(r=Object.getOwnPropertySymbols(e);u<r.length;u++)t.indexOf(r[u])<0&&Object.prototype.propertyIsEnumerable.call(e,r[u])&&(n[r[u]]=e[r[u]])}return n},__decorate:function(e,t,n,r){var u,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(u=e[s])&&(o=(a<3?u(o):a>3?u(t,n,o):u(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(u,a){function o(e){try{i(r.next(e))}catch(t){a(t)}}function s(e){try{i(r.throw(e))}catch(t){a(t)}}function i(e){e.done?u(e.value):new n((function(t){t(e.value)})).then(o,s)}i((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,u,a,o={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=2&a[0]?r.return:a[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,a[1])).done)return u;switch(r=0,u&&(a=[2&a[0],u.value]),a[0]){case 0:case 1:u=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(u=(u=o.trys).length>0&&u[u.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!u||a[1]>u[0]&&a[1]<u[3])){o.label=a[1];break}if(6===a[0]&&o.label<u[1]){o.label=u[1],u=a;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(a);break}u[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(s){a=[6,s],r=0}finally{n=u=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},__exportStar:function(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])},__values:pn,__read:dn,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(dn(arguments[t]));return e},__spreadArrays:function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),u=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,u++)r[u]=a[o];return r},__await:fn,__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,u=n.apply(e,t||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){u[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=u[e](t)).value instanceof fn?Promise.resolve(n.value.v).then(i,l):c(a[0][2],n)}catch(r){c(a[0][3],r)}var n}function i(e){s("next",e)}function l(e){s("throw",e)}function c(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,u){t[r]=e[r]?function(t){return(n=!n)?{value:fn(e[r](t)),done:"return"===r}:u?u(t):t}:u}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=pn(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,u){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,u,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}}}),mn=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(null===e||"object"!==typeof e)return JSON.stringify(e);if(Array.isArray(e))return"[".concat(e.map(e=>t.apiDescriptor.value(e)).join(", "),"]");const n=Object.keys(e);return 0===n.length?"{}":"{ ".concat(n.map(n=>"".concat(t.apiDescriptor.key(n),": ").concat(t.apiDescriptor.value(e[n]))).join(", ")," }")},pair:({key:e,value:n})=>t.apiDescriptor.value({[e]:n})}}));Ke(mn),mn.apiDescriptor;var Dn=Ze(hn),gn=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Dn.__exportStar(mn,t)}));Ke(gn);var yn=/[|\\{}()[\]^$+*?.]/g,En=function(e){if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(yn,"\\$&")},Cn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},bn=Qe((function(e){var t={};for(var n in Cn)Cn.hasOwnProperty(n)&&(t[Cn[n]]=n);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var u in r)if(r.hasOwnProperty(u)){if(!("channels"in r[u]))throw new Error("missing channels property: "+u);if(!("labels"in r[u]))throw new Error("missing channel labels property: "+u);if(r[u].labels.length!==r[u].channels)throw new Error("channel and label counts mismatch: "+u);var a=r[u].channels,o=r[u].labels;delete r[u].channels,delete r[u].labels,Object.defineProperty(r[u],"channels",{value:a}),Object.defineProperty(r[u],"labels",{value:o})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,u=e[1]/255,a=e[2]/255,o=Math.min(r,u,a),s=Math.max(r,u,a),i=s-o;return s===o?t=0:r===s?t=(u-a)/i:u===s?t=2+(a-r)/i:a===s&&(t=4+(r-u)/i),(t=Math.min(60*t,360))<0&&(t+=360),n=(o+s)/2,[t,100*(s===o?0:n<=.5?i/(s+o):i/(2-s-o)),100*n]},r.rgb.hsv=function(e){var t,n,r,u,a,o=e[0]/255,s=e[1]/255,i=e[2]/255,l=Math.max(o,s,i),c=l-Math.min(o,s,i),p=function(e){return(l-e)/6/c+.5};return 0===c?u=a=0:(a=c/l,t=p(o),n=p(s),r=p(i),o===l?u=r-n:s===l?u=1/3+t-r:i===l&&(u=2/3+n-t),u<0?u+=1:u>1&&(u-=1)),[360*u,100*a,100*l]},r.rgb.hwb=function(e){var t=e[0],n=e[1],u=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,u))*100,100*(u=1-1/255*Math.max(t,Math.max(n,u)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,u=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-u)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-u-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,u,a,o=1/0;for(var s in Cn)if(Cn.hasOwnProperty(s)){var i=Cn[s],l=(u=e,a=i,Math.pow(u[0]-a[0],2)+Math.pow(u[1]-a[1],2)+Math.pow(u[2]-a[2],2));l<o&&(o=l,r=s)}return r},r.keyword.rgb=function(e){return Cn[e]},r.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],u=t[1],a=t[2];return u/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(u=u>.008856?Math.pow(u,1/3):7.787*u+16/116)-16,500*(n-u),200*(u-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},r.hsl.rgb=function(e){var t,n,r,u,a,o=e[0]/360,s=e[1]/100,i=e[2]/100;if(0===s)return[a=255*i,a,a];t=2*i-(n=i<.5?i*(1+s):i+s-i*s),u=[0,0,0];for(var l=0;l<3;l++)(r=o+1/3*-(l-1))<0&&r++,r>1&&r--,a=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,u[l]=255*a;return u},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,u=n,a=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,u*=a<=1?a:2-a,[t,100*(0===r?2*u/(a+u):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,u=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,u){case 0:return[r,i,o];case 1:return[s,r,o];case 2:return[o,r,i];case 3:return[o,s,r];case 4:return[i,o,r];case 5:return[r,o,s]}},r.hsv.hsl=function(e){var t,n,r,u=e[0],a=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return r=(2-a)*o,n=a*s,[u,100*(n=(n/=(t=(2-a)*s)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,u,a,o,s,i=e[0]/360,l=e[1]/100,c=e[2]/100,p=l+c;switch(p>1&&(l/=p,c/=p),r=6*i-(t=Math.floor(6*i)),0!==(1&t)&&(r=1-r),u=l+r*((n=1-c)-l),t){default:case 6:case 0:a=n,o=u,s=l;break;case 1:a=u,o=n,s=l;break;case 2:a=l,o=n,s=u;break;case 3:a=l,o=u,s=n;break;case 4:a=u,o=l,s=n;break;case 5:a=n,o=l,s=u}return[255*a,255*o,255*s]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,u=e[3]/100;return[255*(1-Math.min(1,t*(1-u)+u)),255*(1-Math.min(1,n*(1-u)+u)),255*(1-Math.min(1,r*(1-u)+u))]},r.xyz.rgb=function(e){var t,n,r,u=e[0]/100,a=e[1]/100,o=e[2]/100;return n=-.9689*u+1.8758*a+.0415*o,r=.0557*u+-.204*a+1.057*o,t=(t=3.2406*u+-1.5372*a+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,u=e[0];t=e[1]/500+(n=(u+16)/116),r=n-e[2]/200;var a=Math.pow(n,3),o=Math.pow(t,3),s=Math.pow(r,3);return n=a>.008856?a:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],u=e[2];return(t=360*Math.atan2(u,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+u*u),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],u=e[2],a=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var o=30+(Math.round(u/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===a&&(o+=60),o},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,u=e[2]/255,a=Math.max(Math.max(n,r),u),o=Math.min(Math.min(n,r),u),s=a-o;return t=s<=0?0:a===n?(r-u)/s%6:a===r?2+(u-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,u=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(u=(n-.5*r)/(1-r)),[e[0],100*r,100*u]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,u=0;return r<1&&(u=(n-r)/(1-r)),[e[0],100*r,100*u]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var u,a=[0,0,0],o=t%1*6,s=o%1,i=1-s;switch(Math.floor(o)){case 0:a[0]=1,a[1]=s,a[2]=0;break;case 1:a[0]=i,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=s;break;case 3:a[0]=0,a[1]=i,a[2]=1;break;case 4:a[0]=s,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=i}return u=(1-n)*r,[255*(n*a[0]+u),255*(n*a[1]+u),255*(n*a[2]+u)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,u=0;return r<1&&(u=(n-r)/(1-r)),[e[0],100*r,100*u]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function An(e){var t=function(){for(var e={},t=Object.keys(bn),n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var r=n.pop(),u=Object.keys(bn[r]),a=u.length,o=0;o<a;o++){var s=u[o],i=t[s];-1===i.distance&&(i.distance=t[r].distance+1,i.parent=r,n.unshift(s))}return t}function Fn(e,t){return function(n){return t(e(n))}}function vn(e,t){for(var n=[t[e].parent,e],r=bn[t[e].parent][e],u=t[e].parent;t[u].parent;)n.unshift(t[u].parent),r=Fn(bn[t[u].parent][u],r),u=t[u].parent;return r.conversion=n,r}bn.rgb,bn.hsl,bn.hsv,bn.hwb,bn.cmyk,bn.xyz,bn.lab,bn.lch,bn.hex,bn.keyword,bn.ansi16,bn.ansi256,bn.hcg,bn.apple,bn.gray;var xn={};Object.keys(bn).forEach((function(e){xn[e]={},Object.defineProperty(xn[e],"channels",{value:bn[e].channels}),Object.defineProperty(xn[e],"labels",{value:bn[e].labels});var t=function(e){for(var t=An(e),n={},r=Object.keys(t),u=r.length,a=0;a<u;a++){var o=r[a];null!==t[o].parent&&(n[o]=vn(o,t))}return n}(e);Object.keys(t).forEach((function(n){var r=t[n];xn[e][n]=function(e){var t=function(t){if(void 0===t||null===t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"===typeof n)for(var r=n.length,u=0;u<r;u++)n[u]=Math.round(n[u]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),xn[e][n].raw=function(e){var t=function(t){return void 0===t||null===t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var Sn=xn,wn=Qe((function(e){const t=(e,t)=>function(){const n=e.apply(Sn,arguments);return"\x1b[".concat(n+t,"m")},n=(e,t)=>function(){const n=e.apply(Sn,arguments);return"\x1b[".concat(38+t,";5;").concat(n,"m")},r=(e,t)=>function(){const n=e.apply(Sn,arguments);return"\x1b[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};u.color.grey=u.color.gray;for(const t of Object.keys(u)){const n=u[t];for(const t of Object.keys(n)){const r=n[t];u[t]={open:"\x1b[".concat(r[0],"m"),close:"\x1b[".concat(r[1],"m")},n[t]=u[t],e.set(r[0],r[1])}Object.defineProperty(u,t,{value:n,enumerable:!1}),Object.defineProperty(u,"codes",{value:e,enumerable:!1})}const a=e=>e,o=(e,t,n)=>[e,t,n];u.color.close="\x1b[39m",u.bgColor.close="\x1b[49m",u.color.ansi={ansi:t(a,0)},u.color.ansi256={ansi256:n(a,0)},u.color.ansi16m={rgb:r(o,0)},u.bgColor.ansi={ansi:t(a,10)},u.bgColor.ansi256={ansi256:n(a,10)},u.bgColor.ansi16m={rgb:r(o,10)};for(let s of Object.keys(Sn)){if("object"!==typeof Sn[s])continue;const e=Sn[s];"ansi16"===s&&(s="ansi"),"ansi16"in e&&(u.color.ansi[s]=t(e.ansi16,0),u.bgColor.ansi[s]=t(e.ansi16,10)),"ansi256"in e&&(u.color.ansi256[s]=n(e.ansi256,0),u.bgColor.ansi256[s]=n(e.ansi256,10)),"rgb"in e&&(u.color.ansi16m[s]=r(e.rgb,0),u.bgColor.ansi16m[s]=r(e.rgb,10))}return u}})})),Bn={EOL:"\n"},Tn=(e,t)=>{t=t||Ot.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),u=t.indexOf("--");return-1!==r&&(-1===u||r<u)};const kn=Ot.env;let Nn;function On(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===Nn)return 0;if(Tn("color=16m")||Tn("color=full")||Tn("color=truecolor"))return 3;if(Tn("color=256"))return 2;if(e&&!e.isTTY&&!0!==Nn)return 0;const t=Nn?1:0;if("win32"===Ot.platform){const e=Bn.release().split(".");return Number(Ot.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in kn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in kn)||"codeship"===kn.CI_NAME?1:t;if("TEAMCITY_VERSION"in kn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(kn.TEAMCITY_VERSION)?1:0;if("truecolor"===kn.COLORTERM)return 3;if("TERM_PROGRAM"in kn){const e=parseInt((kn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(kn.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(kn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(kn.TERM)||"COLORTERM"in kn?1:(kn.TERM,t)}(e))}Tn("no-color")||Tn("no-colors")||Tn("color=false")?Nn=!1:(Tn("color")||Tn("colors")||Tn("color=true")||Tn("color=always"))&&(Nn=!0),"FORCE_COLOR"in kn&&(Nn=0===kn.FORCE_COLOR.length||0!==parseInt(kn.FORCE_COLOR,10));var Pn={supportsColor:On,stdout:On(Ot.stdout),stderr:On(Ot.stderr)};const In=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Mn=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,_n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,jn=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Ln=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function Rn(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Ln.get(e)||e}function qn(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let u;for(const a of r)if(isNaN(a)){if(!(u=a.match(_n)))throw new Error("Invalid Chalk template style argument: ".concat(a," (in style '").concat(e,"')"));n.push(u[2].replace(jn,(e,t,n)=>t?Rn(t):n))}else n.push(Number(a));return n}function Vn(e){Mn.lastIndex=0;const t=[];let n;for(;null!==(n=Mn.exec(e));){const e=n[1];if(n[2]){const r=qn(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function Wn(e,t){const n={};for(const u of t)for(const e of u.styles)n[e[0]]=u.inverse?null:e.slice(1);let r=e;for(const u of Object.keys(n))if(Array.isArray(n[u])){if(!(u in r))throw new Error("Unknown Chalk style: ".concat(u));r=n[u].length>0?r[u].apply(r,n[u]):r[u]}return r}var Un=(e,t)=>{const n=[],r=[];let u=[];if(t.replace(In,(t,a,o,s,i,l)=>{if(a)u.push(Rn(a));else if(s){const t=u.join("");u=[],r.push(0===n.length?t:Wn(e,n)(t)),n.push({inverse:o,styles:Vn(s)})}else if(i){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(Wn(e,n)(u.join(""))),u=[],n.pop()}else u.push(l)}),r.push(u.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")},zn=Qe((function(e){const t=Pn.stdout,n="win32"===Ot.platform&&!(Ot.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],u=new Set(["gray"]),a=Object.create(null);function o(e,n){n=n||{};const r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function s(e){if(!this||!(this instanceof s)||this.template){const t={};return o(t,e),t.template=function(){const e=[].slice.call(arguments);return p.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,s.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=s,t.template}o(this,e)}n&&(wn.blue.open="\x1b[94m");for(const d of Object.keys(wn))wn[d].closeRe=new RegExp(En(wn[d].close),"g"),a[d]={get(){const e=wn[d];return l.call(this,this._styles?this._styles.concat(e):[e],this._empty,d)}};a.visible={get(){return l.call(this,this._styles||[],!0,"visible")}},wn.color.closeRe=new RegExp(En(wn.color.close),"g");for(const d of Object.keys(wn.color.ansi))u.has(d)||(a[d]={get(){const e=this.level;return function(){const t=wn.color[r[e]][d].apply(null,arguments),n={open:t,close:wn.color.close,closeRe:wn.color.closeRe};return l.call(this,this._styles?this._styles.concat(n):[n],this._empty,d)}}});wn.bgColor.closeRe=new RegExp(En(wn.bgColor.close),"g");for(const d of Object.keys(wn.bgColor.ansi))u.has(d)||(a["bg"+d[0].toUpperCase()+d.slice(1)]={get(){const e=this.level;return function(){const t=wn.bgColor[r[e]][d].apply(null,arguments),n={open:t,close:wn.bgColor.close,closeRe:wn.bgColor.closeRe};return l.call(this,this._styles?this._styles.concat(n):[n],this._empty,d)}}});const i=Object.defineProperties(()=>{},a);function l(e,t,n){const r=function e(){return c.apply(e,arguments)};r._styles=e,r._empty=t;const u=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>u.level,set(e){u.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>u.enabled,set(e){u.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=i,r}function c(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n<t;n++)r+=" "+e[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const u=wn.dim.open;n&&this.hasGrey&&(wn.dim.open="");for(const n of this._styles.slice().reverse())r=n.open+r.replace(n.closeRe,n.open)+n.close,r=r.replace(/\r?\n/g,"".concat(n.close,"$&").concat(n.open));return wn.dim.open=u,r}function p(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const n=[].slice.call(arguments,2),r=[t.raw[0]];for(let u=1;u<t.length;u++)r.push(String(n[u-1]).replace(/[{}\\]/g,"\\$&")),r.push(String(t.raw[u]));return Un(e,r.join(""))}Object.defineProperties(s.prototype,a),e.exports=s(),e.exports.supportsColor=t,e.exports.default=e.exports})),$n=(zn.supportsColor,Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.commonDeprecatedHandler=(e,t,{descriptor:n})=>{const r=["".concat(zn.default.yellow("string"===typeof e?n.key(e):n.pair(e))," is deprecated")];return t&&r.push("we now treat it as ".concat(zn.default.blue("string"===typeof t?n.key(t):n.pair(t)))),r.join("; ")+"."}})));Ke($n),$n.commonDeprecatedHandler;var Jn=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Dn.__exportStar($n,t)}));Ke(Jn);var Gn=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.commonInvalidHandler=(e,t,n)=>["Invalid ".concat(zn.default.red(n.descriptor.key(e))," value."),"Expected ".concat(zn.default.blue(n.schemas[e].expected(n)),","),"but received ".concat(zn.default.red(n.descriptor.value(t)),".")].join(" ")}));Ke(Gn),Gn.commonInvalidHandler;var Hn=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Dn.__exportStar(Gn,t)}));Ke(Hn);var Xn=[],Yn=[],Kn=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.levenUnknownHandler=(e,t,{descriptor:n,logger:r,schemas:u})=>{const a=["Ignored unknown option ".concat(zn.default.yellow(n.pair({key:e,value:t})),".")],o=Object.keys(u).sort().find(t=>function(e,t){if(e===t)return 0;var n=e;e.length>t.length&&(e=t,t=n);var r=e.length,u=t.length;if(0===r)return u;if(0===u)return r;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-u);)r--,u--;if(0===r)return u;for(var a,o,s,i,l=0;l<r&&e.charCodeAt(l)===t.charCodeAt(l);)l++;if(u-=l,0===(r-=l))return u;for(var c=0,p=0;c<r;)Yn[l+c]=e.charCodeAt(l+c),Xn[c]=++c;for(;p<u;)for(a=t.charCodeAt(l+p),s=p++,o=p,c=0;c<r;c++)i=a===Yn[l+c]?s:s+1,s=Xn[c],o=Xn[c]=s>o?i>o?o+1:i:i>s?s+1:i;return o}(e,t)<3);o&&a.push("Did you mean ".concat(zn.default.blue(n.key(o)),"?")),r.warn(a.join(" "))}}));Ke(Kn),Kn.levenUnknownHandler;var Qn=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Dn.__exportStar(Kn,t)}));Ke(Qn);var Zn=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Dn.__exportStar(Jn,t),Dn.__exportStar(Hn,t),Dn.__exportStar(Qn,t)}));Ke(Zn);var er=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function r(e,t){const r=new e(t),o=Object.create(r);for(const s of n)s in t&&(o[s]=a(t[s],r,u.prototype[s].length));return o}t.createSchema=r;class u{constructor(e){this.name=e.name}static create(e){return r(this,e)}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return e}}function a(e,t,n){return"function"===typeof e?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}t.Schema=u}));Ke(er),er.createSchema,er.Schema;var tr=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends er.Schema{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}}t.AliasSchema=n}));Ke(tr),tr.AliasSchema;var nr=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends er.Schema{expected(){return"anything"}validate(){return!0}}t.AnySchema=n}));Ke(nr),nr.AnySchema;var rr=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends er.Schema{constructor(e){var{valueSchema:t,name:n=t.name}=e,r=Dn.__rest(e,["valueSchema","name"]);super(Object.assign({},r,{name:n})),this._valueSchema=t}expected(e){return"an array of ".concat(this._valueSchema.expected(e))}validate(e,t){if(!Array.isArray(e))return!1;const n=[];for(const r of e){const e=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);!0!==e&&n.push(e.value)}return 0===n.length||{value:n}}deprecated(e,t){const n=[];for(const r of e){const e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);!1!==e&&n.push(...e.map(({value:e})=>({value:[e]})))}return n}forward(e,t){const n=[];for(const u of e){const e=t.normalizeForwardResult(this._valueSchema.forward(u,t),u);n.push(...e.map(r))}return n}redirect(e,t){const n=[],u=[];for(const a of e){const e=t.normalizeRedirectResult(this._valueSchema.redirect(a,t),a);"remain"in e&&n.push(e.remain),u.push(...e.redirect.map(r))}return 0===n.length?{redirect:u}:{redirect:u,remain:n}}overlap(e,t){return e.concat(t)}}function r({from:e,to:t}){return{from:[e],to:t}}t.ArraySchema=n}));Ke(rr),rr.ArraySchema;var ur=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends er.Schema{expected(){return"true or false"}validate(e){return"boolean"===typeof e}}t.BooleanSchema=n}));Ke(ur),ur.BooleanSchema;var ar=Qe((function(e,t){function n(e,t){return"string"===typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function r(e,t){return void 0===e?[]:Array.isArray(e)?e.map(e=>n(e,t)):[n(e,t)]}Object.defineProperty(t,"__esModule",{value:!0}),t.recordFromArray=function(e,t){const n=Object.create(null);for(const r of e){const e=r[t];if(n[e])throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(e)));n[e]=r}return n},t.mapFromArray=function(e,t){const n=new Map;for(const r of e){const e=r[t];if(n.has(e))throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(e)));n.set(e,r)}return n},t.createAutoChecklist=function(){const e=Object.create(null);return t=>{const n=JSON.stringify(t);return!!e[n]||(e[n]=!0,!1)}},t.partition=function(e,t){const n=[],r=[];for(const u of e)t(u)?n.push(u):r.push(u);return[n,r]},t.isInt=function(e){return e===Math.floor(e)},t.comparePrimitive=function(e,t){if(e===t)return 0;const n=typeof e,r=typeof t,u=["undefined","object","boolean","number","string"];return n!==r?u.indexOf(n)-u.indexOf(r):"string"!==n?Number(e)-Number(t):e.localeCompare(t)},t.normalizeDefaultResult=function(e){return void 0===e?{}:e},t.normalizeValidateResult=function(e,t){return!0===e||(!1===e?{value:t}:e)},t.normalizeDeprecatedResult=function(e,t,n=!1){return!1!==e&&(!0===e?!!n||[{value:t}]:"value"in e?[e]:0!==e.length&&e)},t.normalizeTransferResult=n,t.normalizeForwardResult=r,t.normalizeRedirectResult=function(e,t){const n=r("object"===typeof e&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"===typeof e&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}}));Ke(ar),ar.recordFromArray,ar.mapFromArray,ar.createAutoChecklist,ar.partition,ar.isInt,ar.comparePrimitive,ar.normalizeDefaultResult,ar.normalizeValidateResult,ar.normalizeDeprecatedResult,ar.normalizeTransferResult,ar.normalizeForwardResult,ar.normalizeRedirectResult;var or=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends er.Schema{constructor(e){super(e),this._choices=ar.mapFromArray(e.choices.map(e=>e&&"object"===typeof e?e:{value:e}),"value")}expected({descriptor:e}){const t=Array.from(this._choices.keys()).map(e=>this._choices.get(e)).filter(e=>!e.deprecated).map(e=>e.value).sort(ar.comparePrimitive).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return n.concat(r.join(" or ")).join(", ")}validate(e){return this._choices.has(e)}deprecated(e){const t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}forward(e){const t=this._choices.get(e);return t?t.forward:void 0}redirect(e){const t=this._choices.get(e);return t?t.redirect:void 0}}t.ChoiceSchema=n}));Ke(or),or.ChoiceSchema;var sr=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends er.Schema{expected(){return"a number"}validate(e,t){return"number"===typeof e}}t.NumberSchema=n}));Ke(sr),sr.NumberSchema;var ir=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends sr.NumberSchema{expected(){return"an integer"}validate(e,t){return!0===t.normalizeValidateResult(super.validate(e,t),e)&&ar.isInt(e)}}t.IntegerSchema=n}));Ke(ir),ir.IntegerSchema;var lr=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends er.Schema{expected(){return"a string"}validate(e){return"string"===typeof e}}t.StringSchema=n}));Ke(lr),lr.StringSchema;var cr=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Dn.__exportStar(tr,t),Dn.__exportStar(nr,t),Dn.__exportStar(rr,t),Dn.__exportStar(ur,t),Dn.__exportStar(or,t),Dn.__exportStar(ir,t),Dn.__exportStar(sr,t),Dn.__exportStar(lr,t)}));Ke(cr);var pr=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDescriptor=mn.apiDescriptor,t.defaultUnknownHandler=Kn.levenUnknownHandler,t.defaultInvalidHandler=Hn.commonInvalidHandler,t.defaultDeprecatedHandler=$n.commonDeprecatedHandler}));Ke(pr),pr.defaultDescriptor,pr.defaultUnknownHandler,pr.defaultInvalidHandler,pr.defaultDeprecatedHandler;var dr=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=(e,t,r)=>new n(t,r).normalize(e);class n{constructor(e,t){const{logger:n=console,descriptor:r=pr.defaultDescriptor,unknown:u=pr.defaultUnknownHandler,invalid:a=pr.defaultInvalidHandler,deprecated:o=pr.defaultDeprecatedHandler}=t||{};this._utils={descriptor:r,logger:n||{warn:()=>{}},schemas:ar.recordFromArray(e,"name"),normalizeDefaultResult:ar.normalizeDefaultResult,normalizeDeprecatedResult:ar.normalizeDeprecatedResult,normalizeForwardResult:ar.normalizeForwardResult,normalizeRedirectResult:ar.normalizeRedirectResult,normalizeValidateResult:ar.normalizeValidateResult},this._unknownHandler=u,this._invalidHandler=a,this._deprecatedHandler=o,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=ar.createAutoChecklist()}normalize(e){const t={},n=[e],r=()=>{for(;0!==n.length;){const e=n.shift(),r=this._applyNormalization(e,t);n.push(...r)}};r();for(const u of Object.keys(this._utils.schemas)){const e=this._utils.schemas[u];if(!(u in t)){const t=ar.normalizeDefaultResult(e.default(this._utils));"value"in t&&n.push({[u]:t.value})}}r();for(const u of Object.keys(this._utils.schemas)){const e=this._utils.schemas[u];u in t&&(t[u]=e.postprocess(t[u],this._utils))}return t}_applyNormalization(e,t){const n=[],[r,u]=ar.partition(Object.keys(e),e=>e in this._utils.schemas);for(const a of r){const r=this._utils.schemas[a],u=r.preprocess(e[a],this._utils),o=ar.normalizeValidateResult(r.validate(u,this._utils),u);if(!0!==o){const{value:e}=o,t=this._invalidHandler(a,e,this._utils);throw"string"===typeof t?new Error(t):t}const s=({from:e,to:t})=>{n.push("string"===typeof t?{[t]:e}:{[t.key]:t.value})},i=({value:e,redirectTo:t})=>{const n=ar.normalizeDeprecatedResult(r.deprecated(e,this._utils),u,!0);if(!1!==n)if(!0===n)this._hasDeprecationWarned(a)||this._utils.logger.warn(this._deprecatedHandler(a,t,this._utils));else for(const{value:r}of n){const e={key:a,value:r};if(!this._hasDeprecationWarned(e)){const n="string"===typeof t?{key:t,value:r}:t;this._utils.logger.warn(this._deprecatedHandler(e,n,this._utils))}}};ar.normalizeForwardResult(r.forward(u,this._utils),u).forEach(s);const l=ar.normalizeRedirectResult(r.redirect(u,this._utils),u);if(l.redirect.forEach(s),"remain"in l){const e=l.remain;t[a]=a in t?r.overlap(t[a],e,this._utils):e,i({value:e})}for(const{from:e,to:t}of l.redirect)i({value:e,redirectTo:t})}for(const a of u){const r=e[a],u=this._unknownHandler(a,r,this._utils);if(u)for(const e of Object.keys(u)){const r={[e]:u[e]};e in this._utils.schemas?n.push(r):Object.assign(t,r)}}return n}}t.Normalizer=n}));Ke(dr),dr.normalize,dr.Normalizer;var fr=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Dn.__exportStar(gn,t),Dn.__exportStar(Zn,t),Dn.__exportStar(cr,t),Dn.__exportStar(dr,t),Dn.__exportStar(er,t)}));Ke(fr);const hr=[],mr=[],Dr=(e,t)=>{if(e===t)return 0;const n=e;e.length>t.length&&(e=t,t=n);let r=e.length,u=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-u);)r--,u--;let a,o,s,i,l=0;for(;l<r&&e.charCodeAt(l)===t.charCodeAt(l);)l++;if(r-=l,u-=l,0===r)return u;let c=0,p=0;for(;c<r;)mr[c]=e.charCodeAt(l+c),hr[c]=++c;for(;p<u;)for(a=t.charCodeAt(l+p),s=p++,o=p,c=0;c<r;c++)i=a===mr[c]?s:s+1,s=hr[c],o=hr[c]=s>o?i>o?o+1:i:i>s?s+1:i;return o};var gr=Dr,yr=Dr;gr.default=yr;var Er={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const Cr={};for(const t of Object.keys(Er))Cr[Er[t]]=t;const br={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Ar=br;for(const t of Object.keys(br)){if(!("channels"in br[t]))throw new Error("missing channels property: "+t);if(!("labels"in br[t]))throw new Error("missing channel labels property: "+t);if(br[t].labels.length!==br[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:n}=br[t];delete br[t].channels,delete br[t].labels,Object.defineProperty(br[t],"channels",{value:e}),Object.defineProperty(br[t],"labels",{value:n})}function Fr(e){const t=function(){const e={},t=Object.keys(Ar);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),r=Object.keys(Ar[e]);for(let u=r.length,a=0;a<u;a++){const u=r[a],o=t[u];-1===o.distance&&(o.distance=t[e].distance+1,o.parent=e,n.unshift(u))}}return t}function vr(e,t){return function(n){return t(e(n))}}function xr(e,t){const n=[t[e].parent,e];let r=Ar[t[e].parent][e],u=t[e].parent;for(;t[u].parent;)n.unshift(t[u].parent),r=vr(Ar[t[u].parent][u],r),u=t[u].parent;return r.conversion=n,r}br.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,u=Math.min(t,n,r),a=Math.max(t,n,r),o=a-u;let s,i;a===u?s=0:t===a?s=(n-r)/o:n===a?s=2+(r-t)/o:r===a&&(s=4+(t-n)/o),s=Math.min(60*s,360),s<0&&(s+=360);const l=(u+a)/2;return i=a===u?0:l<=.5?o/(a+u):o/(2-a-u),[s,100*i,100*l]},br.rgb.hsv=function(e){let t,n,r,u,a;const o=e[0]/255,s=e[1]/255,i=e[2]/255,l=Math.max(o,s,i),c=l-Math.min(o,s,i),p=function(e){return(l-e)/6/c+.5};return 0===c?(u=0,a=0):(a=c/l,t=p(o),n=p(s),r=p(i),o===l?u=r-n:s===l?u=1/3+t-r:i===l&&(u=2/3+n-t),u<0?u+=1:u>1&&(u-=1)),[360*u,100*a,100*l]},br.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const u=br.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[u,100*a,100*r]},br.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,u=Math.min(1-t,1-n,1-r);return[100*((1-t-u)/(1-u)||0),100*((1-n-u)/(1-u)||0),100*((1-r-u)/(1-u)||0),100*u]},br.rgb.keyword=function(e){const t=Cr[e];if(t)return t;let n,r=1/0;for(const o of Object.keys(Er)){const t=(a=Er[o],((u=e)[0]-a[0])**2+(u[1]-a[1])**2+(u[2]-a[2])**2);t<r&&(r=t,n=o)}var u,a;return n},br.keyword.rgb=function(e){return Er[e]},br.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},br.rgb.lab=function(e){const t=br.rgb.xyz(e);let n=t[0],r=t[1],u=t[2];return n/=95.047,r/=100,u/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,u=u>.008856?u**(1/3):7.787*u+16/116,[116*r-16,500*(n-r),200*(r-u)]},br.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let u,a,o;if(0===n)return o=255*r,[o,o,o];u=r<.5?r*(1+n):r+n-r*n;const s=2*r-u,i=[0,0,0];for(let l=0;l<3;l++)a=t+1/3*-(l-1),a<0&&a++,a>1&&a--,o=6*a<1?s+6*(u-s)*a:2*a<1?u:3*a<2?s+(u-s)*(2/3-a)*6:s,i[l]=255*o;return i},br.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,u=n;const a=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,u*=a<=1?a:2-a,[t,100*(0===r?2*u/(a+u):2*n/(r+n)),(r+n)/2*100]},br.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const u=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,u){case 0:return[r,i,o];case 1:return[s,r,o];case 2:return[o,r,i];case 3:return[o,s,r];case 4:return[i,o,r];case 5:return[r,o,s]}},br.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,u=Math.max(r,.01);let a,o;o=(2-n)*r;const s=(2-n)*u;return a=n*u,a/=s<=1?s:2-s,a=a||0,o/=2,[t,100*a,100*o]},br.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const u=n+r;let a;u>1&&(n/=u,r/=u);const o=Math.floor(6*t),s=1-r;a=6*t-o,0!==(1&o)&&(a=1-a);const i=n+a*(s-n);let l,c,p;switch(o){default:case 6:case 0:l=s,c=i,p=n;break;case 1:l=i,c=s,p=n;break;case 2:l=n,c=s,p=i;break;case 3:l=n,c=i,p=s;break;case 4:l=i,c=n,p=s;break;case 5:l=s,c=n,p=i}return[255*l,255*c,255*p]},br.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,u=e[3]/100;return[255*(1-Math.min(1,t*(1-u)+u)),255*(1-Math.min(1,n*(1-u)+u)),255*(1-Math.min(1,r*(1-u)+u))]},br.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let u,a,o;return u=3.2406*t+-1.5372*n+-.4986*r,a=-.9689*t+1.8758*n+.0415*r,o=.0557*t+-.204*n+1.057*r,u=u>.0031308?1.055*u**(1/2.4)-.055:12.92*u,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,u=Math.min(Math.max(0,u),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[255*u,255*a,255*o]},br.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},br.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const u=n**3,a=t**3,o=r**3;return n=u>.008856?u:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=o>.008856?o:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},br.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let u;return u=360*Math.atan2(r,n)/2/Math.PI,u<0&&(u+=360),[t,Math.sqrt(n*n+r*r),u]},br.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},br.rgb.ansi16=function(e,t=null){const[n,r,u]=e;let a=null===t?br.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),0===a)return 30;let o=30+(Math.round(u/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===a&&(o+=60),o},br.hsv.ansi16=function(e){return br.rgb.ansi16(br.hsv.rgb(e),e[2])},br.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},br.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},br.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},br.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},br.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map(e=>e+e).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},br.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,u=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),o=u-a;let s,i;return s=o<1?a/(1-o):0,i=o<=0?0:u===t?(n-r)/o%6:u===n?2+(r-t)/o:4+(t-n)/o,i/=6,i%=1,[360*i,100*o,100*s]},br.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let u=0;return r<1&&(u=(n-.5*r)/(1-r)),[e[0],100*r,100*u]},br.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let u=0;return r<1&&(u=(n-r)/(1-r)),[e[0],100*r,100*u]},br.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const u=[0,0,0],a=t%1*6,o=a%1,s=1-o;let i=0;switch(Math.floor(a)){case 0:u[0]=1,u[1]=o,u[2]=0;break;case 1:u[0]=s,u[1]=1,u[2]=0;break;case 2:u[0]=0,u[1]=1,u[2]=o;break;case 3:u[0]=0,u[1]=s,u[2]=1;break;case 4:u[0]=o,u[1]=0,u[2]=1;break;default:u[0]=1,u[1]=0,u[2]=s}return i=(1-n)*r,[255*(n*u[0]+i),255*(n*u[1]+i),255*(n*u[2]+i)]},br.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},br.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},br.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},br.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let u=0;return r<1&&(u=(n-r)/(1-r)),[e[0],100*r,100*u]},br.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},br.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},br.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},br.gray.hsl=function(e){return[0,0,e[0]]},br.gray.hsv=br.gray.hsl,br.gray.hwb=function(e){return[0,100,e[0]]},br.gray.cmyk=function(e){return[0,0,0,e[0]]},br.gray.lab=function(e){return[e[0],0,0]},br.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},br.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Sr={};Object.keys(Ar).forEach(e=>{Sr[e]={},Object.defineProperty(Sr[e],"channels",{value:Ar[e].channels}),Object.defineProperty(Sr[e],"labels",{value:Ar[e].labels});const t=function(e){const t=Fr(e),n={},r=Object.keys(t);for(let u=r.length,a=0;a<u;a++){const e=r[a];null!==t[e].parent&&(n[e]=xr(e,t))}return n}(e);Object.keys(t).forEach(n=>{const r=t[n];Sr[e][n]=function(e){const t=function(...t){const n=t[0];if(void 0===n||null===n)return n;n.length>1&&(t=n);const r=e(t);if("object"===typeof r)for(let e=r.length,u=0;u<e;u++)r[u]=Math.round(r[u]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(r),Sr[e][n].raw=function(e){const t=function(...t){const n=t[0];return void 0===n||null===n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})});var wr=Sr,Br=Qe((function(e){const t=(e,t)=>(...n)=>{const r=e(...n);return"\x1b[".concat(r+t,"m")},n=(e,t)=>(...n)=>{const r=e(...n);return"\x1b[".concat(38+t,";5;").concat(r,"m")},r=(e,t)=>(...n)=>{const r=e(...n);return"\x1b[".concat(38+t,";2;").concat(r[0],";").concat(r[1],";").concat(r[2],"m")},u=e=>e,a=(e,t,n)=>[e,t,n],o=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let s;const i=(e,t,n,r)=>{void 0===s&&(s=wr);const u=r?10:0,a={};for(const[o,i]of Object.entries(s)){const r="ansi16"===o?"ansi":o;o===t?a[r]=e(n,u):"object"===typeof i&&(a[r]=e(i[t],u))}return a};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.gray=s.color.blackBright,s.bgColor.bgGray=s.bgColor.bgBlackBright,s.color.grey=s.color.blackBright,s.bgColor.bgGrey=s.bgColor.bgBlackBright;for(const[t,n]of Object.entries(s)){for(const[t,r]of Object.entries(n))s[t]={open:"\x1b[".concat(r[0],"m"),close:"\x1b[".concat(r[1],"m")},n[t]=s[t],e.set(r[0],r[1]);Object.defineProperty(s,t,{value:n,enumerable:!1})}return Object.defineProperty(s,"codes",{value:e,enumerable:!1}),s.color.close="\x1b[39m",s.bgColor.close="\x1b[49m",o(s.color,"ansi",()=>i(t,"ansi16",u,!1)),o(s.color,"ansi256",()=>i(n,"ansi256",u,!1)),o(s.color,"ansi16m",()=>i(r,"rgb",a,!1)),o(s.bgColor,"ansi",()=>i(t,"ansi16",u,!0)),o(s.bgColor,"ansi256",()=>i(n,"ansi256",u,!0)),o(s.bgColor,"ansi16m",()=>i(r,"rgb",a,!0)),s}})})),Tr={isatty:()=>!1},kr=(e,t=Ot.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),u=t.indexOf("--");return-1!==r&&(-1===u||r<u)};const{env:Nr}=Ot;let Or;function Pr(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Ir(e,t){if(0===Or)return 0;if(kr("color=16m")||kr("color=full")||kr("color=truecolor"))return 3;if(kr("color=256"))return 2;if(e&&!t&&void 0===Or)return 0;const n=Or||0;if("dumb"===Nr.TERM)return n;if("win32"===Ot.platform){const e=Bn.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Nr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in Nr)||"codeship"===Nr.CI_NAME?1:n;if("TEAMCITY_VERSION"in Nr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Nr.TEAMCITY_VERSION)?1:0;if("GITHUB_ACTIONS"in Nr)return 1;if("truecolor"===Nr.COLORTERM)return 3;if("TERM_PROGRAM"in Nr){const e=parseInt((Nr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Nr.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Nr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Nr.TERM)||"COLORTERM"in Nr?1:n}kr("no-color")||kr("no-colors")||kr("color=false")||kr("color=never")?Or=0:(kr("color")||kr("colors")||kr("color=true")||kr("color=always"))&&(Or=1),"FORCE_COLOR"in Nr&&(Or="true"===Nr.FORCE_COLOR?1:"false"===Nr.FORCE_COLOR?0:0===Nr.FORCE_COLOR.length?1:Math.min(parseInt(Nr.FORCE_COLOR,10),3));var Mr={supportsColor:function(e){return Pr(Ir(e,e&&e.isTTY))},stdout:Pr(Ir(!0,Tr.isatty(1))),stderr:Pr(Ir(!0,Tr.isatty(2)))},_r={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(-1===r)return e;const u=t.length;let a=0,o="";do{o+=e.substr(a,r-a)+t+n,a=r+u,r=e.indexOf(t,a)}while(-1!==r);return o+=e.substr(a),o},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let u=0,a="";do{const o="\r"===e[r-1];a+=e.substr(u,(o?r-1:r)-u)+t+(o?"\r\n":"\n")+n,u=r+1,r=e.indexOf("\n",u)}while(-1!==r);return a+=e.substr(u),a}};const jr=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Lr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Rr=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,qr=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Vr=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function Wr(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):Vr.get(e)||e}function Ur(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let u;for(const a of r){const t=Number(a);if(Number.isNaN(t)){if(!(u=a.match(Rr)))throw new Error("Invalid Chalk template style argument: ".concat(a," (in style '").concat(e,"')"));n.push(u[2].replace(qr,(e,t,n)=>t?Wr(t):n))}else n.push(t)}return n}function zr(e){Lr.lastIndex=0;const t=[];let n;for(;null!==(n=Lr.exec(e));){const e=n[1];if(n[2]){const r=Ur(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function $r(e,t){const n={};for(const u of t)for(const e of u.styles)n[e[0]]=u.inverse?null:e.slice(1);let r=e;for(const[u,a]of Object.entries(n))if(Array.isArray(a)){if(!(u in r))throw new Error("Unknown Chalk style: ".concat(u));r=a.length>0?r[u](...a):r[u]}return r}var Jr=(e,t)=>{const n=[],r=[];let u=[];if(t.replace(jr,(t,a,o,s,i,l)=>{if(a)u.push(Wr(a));else if(s){const t=u.join("");u=[],r.push(0===n.length?t:$r(e,n)(t)),n.push({inverse:o,styles:zr(s)})}else if(i){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push($r(e,n)(u.join(""))),u=[],n.pop()}else u.push(l)}),r.push(u.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")};const{stdout:Gr,stderr:Hr}=Mr,{stringReplaceAll:Xr,stringEncaseCRLFWithFirstIndex:Yr}=_r,Kr=["ansi","ansi","ansi256","ansi16m"],Qr=Object.create(null);class Zr{constructor(e){return eu(e)}}const eu=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=Gr?Gr.level:0;e.level=void 0===t.level?n:t.level})(t,e),t.template=(...e)=>iu(t.template,...e),Object.setPrototypeOf(t,tu.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Zr,t.template};function tu(e){return eu(e)}for(const[t,xA]of Object.entries(Br))Qr[t]={get(){const e=au(this,uu(xA.open,xA.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:e}),e}};Qr.visible={get(){const e=au(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const nu=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const t of nu)Qr[t]={get(){const{level:e}=this;return function(...n){const r=uu(Br.color[Kr[e]][t](...n),Br.color.close,this._styler);return au(this,r,this._isEmpty)}}};for(const t of nu)Qr["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const{level:e}=this;return function(...n){const r=uu(Br.bgColor[Kr[e]][t](...n),Br.bgColor.close,this._styler);return au(this,r,this._isEmpty)}}};const ru=Object.defineProperties(()=>{},Object.assign({},Qr,{level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}})),uu=(e,t,n)=>{let r,u;return void 0===n?(r=e,u=t):(r=n.openAll+e,u=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:u,parent:n}},au=(e,t,n)=>{const r=(...e)=>ou(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,ru),r._generator=e,r._styler=t,r._isEmpty=n,r},ou=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:r,closeAll:u}=n;if(-1!==t.indexOf("\x1b"))for(;void 0!==n;)t=Xr(t,n.close,n.open),n=n.parent;const a=t.indexOf("\n");return-1!==a&&(t=Yr(t,u,r,a)),r+t+u};let su;const iu=(e,...t)=>{const[n]=t;if(!Array.isArray(n))return t.join(" ");const r=t.slice(1),u=[n.raw[0]];for(let a=1;a<n.length;a++)u.push(String(r[a-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[a]));return void 0===su&&(su=Jr),su(e,u.join(""))};Object.defineProperties(tu.prototype,Qr);const lu=tu();lu.supportsColor=Gr,lu.stderr=tu({level:Hr?Hr.level:0}),lu.stderr.supportsColor=Hr;var cu=lu;const pu={key:e=>1===e.length?"-".concat(e):"--".concat(e),value:e=>fr.apiDescriptor.value(e),pair:({key:e,value:t})=>!1===t?"--no-".concat(e):!0===t?pu.key(e):""===t?"".concat(pu.key(e)," without an argument"):"".concat(pu.key(e),"=").concat(t)};class du extends fr.ChoiceSchema{constructor({name:e,flags:t}){super({name:e,choices:t}),this._flags=t.slice().sort()}preprocess(e,t){if("string"===typeof e&&0!==e.length&&!this._flags.includes(e)){const n=this._flags.find(t=>gr(t,e)<3);if(n)return t.logger.warn(["Unknown flag ".concat(cu.yellow(t.descriptor.value(e)),","),"did you mean ".concat(cu.blue(t.descriptor.value(n)),"?")].join(" ")),n}return e}expected(){return"a flag"}}let fu;function hu(e,t,{logger:n,isCLI:r=!1,passThrough:u=!1}={}){const a=u?Array.isArray(u)?(e,t)=>u.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):fr.levenUnknownHandler,o=r?pu:fr.apiDescriptor,s=function(e,{isCLI:t}){const n=[];t&&n.push(fr.AnySchema.create({name:"_"}));for(const r of e)n.push(mu(r,{isCLI:t,optionInfos:e})),r.alias&&t&&n.push(fr.AliasSchema.create({name:r.alias,sourceName:r.name}));return n}(t,{isCLI:r}),i=new fr.Normalizer(s,{logger:n,unknown:a,descriptor:o}),l=!1!==n;l&&fu&&(i._hasDeprecationWarned=fu);const c=i.normalize(e);return l&&(fu=i._hasDeprecationWarned),c}function mu(e,{isCLI:t,optionInfos:n}){let r;const u={name:e.name},a={};switch(e.type){case"int":r=fr.IntegerSchema,t&&(u.preprocess=e=>Number(e));break;case"string":r=fr.StringSchema;break;case"choice":r=fr.ChoiceSchema,u.choices=e.choices.map(t=>"object"===typeof t&&t.redirect?Object.assign({},t,{redirect:{to:{key:e.name,value:t.redirect}}}):t);break;case"boolean":r=fr.BooleanSchema;break;case"flag":r=du,u.flags=n.map(e=>[].concat(e.alias||[],e.description?e.name:[],e.oppositeDescription?"no-".concat(e.name):[])).reduce((e,t)=>e.concat(t),[]);break;case"path":r=fr.StringSchema;break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?u.validate=(t,n,r)=>e.exception(t)||n.validate(t,r):u.validate=(e,t,n)=>void 0===e||t.validate(e,n),e.redirect&&(a.redirect=t=>t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(a.deprecated=!0),t&&!e.array){const e=u.preprocess||(e=>e);u.preprocess=(t,n,r)=>n.preprocess(e(Array.isArray(t)?t[t.length-1]:t),r)}return e.array?fr.ArraySchema.create(Object.assign({},t?{preprocess:e=>[].concat(e)}:{},{},a,{valueSchema:r.create(u)})):r.create(Object.assign({},u,{},a))}var Du={normalizeApiOptions:function(e,t,n){return hu(e,t,n)},normalizeCliOptions:function(e,t,n){return hu(e,t,Object.assign({isCLI:!0},n))}},gu=e=>e[e.length-1];function yu(e,t){return!(t=t||{}).ignoreDecorators&&e.declaration&&e.declaration.decorators&&e.declaration.decorators.length>0?yu(e.declaration.decorators[0]):!t.ignoreDecorators&&e.decorators&&e.decorators.length>0?yu(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}function Eu(e){const t=e.nodes&&gu(e.nodes);if(t&&e.source&&!e.source.end&&(e=t),e.__location)return e.__location.endOffset;const n=e.range?e.range[1]:"number"===typeof e.end?e.end:null;return e.typeAnnotation?Math.max(n,Eu(e.typeAnnotation)):e.loc&&!n?e.loc.end:n}var Cu={locStart:yu,locEnd:Eu,composeLoc:function(e,t=e){const n="number"===typeof t?t:-1,r=yu(e),u=-1!==n?r+n:Eu(t),a=e.loc.start;return{start:r,end:u,range:[r,u],loc:{start:a,end:-1!==n?{line:a.line,column:a.column+n}:t.loc.end}}}},bu=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}}));Ke(bu),bu.matchToToken;var Au=Qe((function(e){!function(){function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=n(t)}while(t);return!1},trailingStatement:n}}()})),Fu=(Au.isExpression,Au.isStatement,Au.isIterationStatement,Au.isSourceElement,Au.isProblematicIfStatement,Au.trailingStatement,Qe((function(e){!function(){var t,n,r,u,a,o;function s(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],u=new Array(128),o=0;o<128;++o)u[o]=o>=97&&o<=122||o>=65&&o<=90||36===o||95===o;for(a=new Array(128),o=0;o<128;++o)a[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||36===o||95===o;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?u[e]:n.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES5:function(e){return e<128?a[e]:n.NonAsciiIdentifierPart.test(s(e))},isIdentifierStartES6:function(e){return e<128?u[e]:t.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES6:function(e){return e<128?a[e]:t.NonAsciiIdentifierPart.test(s(e))}}}()}))),vu=(Fu.isDecimalDigit,Fu.isHexDigit,Fu.isOctalDigit,Fu.isWhiteSpace,Fu.isLineTerminator,Fu.isIdentifierStartES5,Fu.isIdentifierPartES5,Fu.isIdentifierStartES6,Fu.isIdentifierPartES6,Qe((function(e){!function(){var t=Fu;function n(e,t){return!(!t&&"yield"===e)&&r(e,t)}function r(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function u(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function a(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function o(e){var n,r,u;if(0===e.length)return!1;if(u=e.charCodeAt(0),!t.isIdentifierStartES5(u))return!1;for(n=1,r=e.length;n<r;++n)if(u=e.charCodeAt(n),!t.isIdentifierPartES5(u))return!1;return!0}function s(e){var n,r,u,a,o;if(0===e.length)return!1;for(o=t.isIdentifierStartES6,n=0,r=e.length;n<r;++n){if(55296<=(u=e.charCodeAt(n))&&u<=56319){if(++n>=r)return!1;if(!(56320<=(a=e.charCodeAt(n))&&a<=57343))return!1;u=1024*(u-55296)+(a-56320)+65536}if(!o(u))return!1;o=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:n,isKeywordES6:r,isReservedWordES5:u,isReservedWordES6:a,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:o,isIdentifierNameES6:s,isIdentifierES5:function(e,t){return o(e)&&!u(e,t)},isIdentifierES6:function(e,t){return s(e)&&!a(e,t)}}}()}))),xu=(vu.isKeywordES5,vu.isKeywordES6,vu.isReservedWordES5,vu.isReservedWordES6,vu.isRestrictedWord,vu.isIdentifierNameES5,vu.isIdentifierNameES6,vu.isIdentifierES5,vu.isIdentifierES6,Qe((function(e,t){t.ast=Au,t.code=Fu,t.keyword=vu}))),Su=(xu.ast,xu.code,xu.keyword,/[|\\{}()[\]^$+*?.]/g),wu=function(e){if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(Su,"\\$&")},Bu={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Tu=Qe((function(e){var t={};for(var n in Bu)Bu.hasOwnProperty(n)&&(t[Bu[n]]=n);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var u in r)if(r.hasOwnProperty(u)){if(!("channels"in r[u]))throw new Error("missing channels property: "+u);if(!("labels"in r[u]))throw new Error("missing channel labels property: "+u);if(r[u].labels.length!==r[u].channels)throw new Error("channel and label counts mismatch: "+u);var a=r[u].channels,o=r[u].labels;delete r[u].channels,delete r[u].labels,Object.defineProperty(r[u],"channels",{value:a}),Object.defineProperty(r[u],"labels",{value:o})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,u=e[1]/255,a=e[2]/255,o=Math.min(r,u,a),s=Math.max(r,u,a),i=s-o;return s===o?t=0:r===s?t=(u-a)/i:u===s?t=2+(a-r)/i:a===s&&(t=4+(r-u)/i),(t=Math.min(60*t,360))<0&&(t+=360),n=(o+s)/2,[t,100*(s===o?0:n<=.5?i/(s+o):i/(2-s-o)),100*n]},r.rgb.hsv=function(e){var t,n,r,u,a,o=e[0]/255,s=e[1]/255,i=e[2]/255,l=Math.max(o,s,i),c=l-Math.min(o,s,i),p=function(e){return(l-e)/6/c+.5};return 0===c?u=a=0:(a=c/l,t=p(o),n=p(s),r=p(i),o===l?u=r-n:s===l?u=1/3+t-r:i===l&&(u=2/3+n-t),u<0?u+=1:u>1&&(u-=1)),[360*u,100*a,100*l]},r.rgb.hwb=function(e){var t=e[0],n=e[1],u=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,u))*100,100*(u=1-1/255*Math.max(t,Math.max(n,u)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,u=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-u)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-u-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,u,a,o=1/0;for(var s in Bu)if(Bu.hasOwnProperty(s)){var i=Bu[s],l=(u=e,a=i,Math.pow(u[0]-a[0],2)+Math.pow(u[1]-a[1],2)+Math.pow(u[2]-a[2],2));l<o&&(o=l,r=s)}return r},r.keyword.rgb=function(e){return Bu[e]},r.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],u=t[1],a=t[2];return u/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(u=u>.008856?Math.pow(u,1/3):7.787*u+16/116)-16,500*(n-u),200*(u-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},r.hsl.rgb=function(e){var t,n,r,u,a,o=e[0]/360,s=e[1]/100,i=e[2]/100;if(0===s)return[a=255*i,a,a];t=2*i-(n=i<.5?i*(1+s):i+s-i*s),u=[0,0,0];for(var l=0;l<3;l++)(r=o+1/3*-(l-1))<0&&r++,r>1&&r--,a=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,u[l]=255*a;return u},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,u=n,a=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,u*=a<=1?a:2-a,[t,100*(0===r?2*u/(a+u):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,u=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,u){case 0:return[r,i,o];case 1:return[s,r,o];case 2:return[o,r,i];case 3:return[o,s,r];case 4:return[i,o,r];case 5:return[r,o,s]}},r.hsv.hsl=function(e){var t,n,r,u=e[0],a=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return r=(2-a)*o,n=a*s,[u,100*(n=(n/=(t=(2-a)*s)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,u,a,o,s,i=e[0]/360,l=e[1]/100,c=e[2]/100,p=l+c;switch(p>1&&(l/=p,c/=p),r=6*i-(t=Math.floor(6*i)),0!==(1&t)&&(r=1-r),u=l+r*((n=1-c)-l),t){default:case 6:case 0:a=n,o=u,s=l;break;case 1:a=u,o=n,s=l;break;case 2:a=l,o=n,s=u;break;case 3:a=l,o=u,s=n;break;case 4:a=u,o=l,s=n;break;case 5:a=n,o=l,s=u}return[255*a,255*o,255*s]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,u=e[3]/100;return[255*(1-Math.min(1,t*(1-u)+u)),255*(1-Math.min(1,n*(1-u)+u)),255*(1-Math.min(1,r*(1-u)+u))]},r.xyz.rgb=function(e){var t,n,r,u=e[0]/100,a=e[1]/100,o=e[2]/100;return n=-.9689*u+1.8758*a+.0415*o,r=.0557*u+-.204*a+1.057*o,t=(t=3.2406*u+-1.5372*a+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,u=e[0];t=e[1]/500+(n=(u+16)/116),r=n-e[2]/200;var a=Math.pow(n,3),o=Math.pow(t,3),s=Math.pow(r,3);return n=a>.008856?a:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],u=e[2];return(t=360*Math.atan2(u,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+u*u),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],u=e[2],a=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var o=30+(Math.round(u/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===a&&(o+=60),o},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,u=e[2]/255,a=Math.max(Math.max(n,r),u),o=Math.min(Math.min(n,r),u),s=a-o;return t=s<=0?0:a===n?(r-u)/s%6:a===r?2+(u-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,u=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(u=(n-.5*r)/(1-r)),[e[0],100*r,100*u]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,u=0;return r<1&&(u=(n-r)/(1-r)),[e[0],100*r,100*u]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var u,a=[0,0,0],o=t%1*6,s=o%1,i=1-s;switch(Math.floor(o)){case 0:a[0]=1,a[1]=s,a[2]=0;break;case 1:a[0]=i,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=s;break;case 3:a[0]=0,a[1]=i,a[2]=1;break;case 4:a[0]=s,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=i}return u=(1-n)*r,[255*(n*a[0]+u),255*(n*a[1]+u),255*(n*a[2]+u)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,u=0;return r<1&&(u=(n-r)/(1-r)),[e[0],100*r,100*u]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function ku(e){var t=function(){for(var e={},t=Object.keys(Tu),n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var r=n.pop(),u=Object.keys(Tu[r]),a=u.length,o=0;o<a;o++){var s=u[o],i=t[s];-1===i.distance&&(i.distance=t[r].distance+1,i.parent=r,n.unshift(s))}return t}function Nu(e,t){return function(n){return t(e(n))}}function Ou(e,t){for(var n=[t[e].parent,e],r=Tu[t[e].parent][e],u=t[e].parent;t[u].parent;)n.unshift(t[u].parent),r=Nu(Tu[t[u].parent][u],r),u=t[u].parent;return r.conversion=n,r}Tu.rgb,Tu.hsl,Tu.hsv,Tu.hwb,Tu.cmyk,Tu.xyz,Tu.lab,Tu.lch,Tu.hex,Tu.keyword,Tu.ansi16,Tu.ansi256,Tu.hcg,Tu.apple,Tu.gray;var Pu={};Object.keys(Tu).forEach((function(e){Pu[e]={},Object.defineProperty(Pu[e],"channels",{value:Tu[e].channels}),Object.defineProperty(Pu[e],"labels",{value:Tu[e].labels});var t=function(e){for(var t=ku(e),n={},r=Object.keys(t),u=r.length,a=0;a<u;a++){var o=r[a];null!==t[o].parent&&(n[o]=Ou(o,t))}return n}(e);Object.keys(t).forEach((function(n){var r=t[n];Pu[e][n]=function(e){var t=function(t){if(void 0===t||null===t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"===typeof n)for(var r=n.length,u=0;u<r;u++)n[u]=Math.round(n[u]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),Pu[e][n].raw=function(e){var t=function(t){return void 0===t||null===t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var Iu=Pu,Mu=Qe((function(e){const t=(e,t)=>function(){const n=e.apply(Iu,arguments);return"\x1b[".concat(n+t,"m")},n=(e,t)=>function(){const n=e.apply(Iu,arguments);return"\x1b[".concat(38+t,";5;").concat(n,"m")},r=(e,t)=>function(){const n=e.apply(Iu,arguments);return"\x1b[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};u.color.grey=u.color.gray;for(const t of Object.keys(u)){const n=u[t];for(const t of Object.keys(n)){const r=n[t];u[t]={open:"\x1b[".concat(r[0],"m"),close:"\x1b[".concat(r[1],"m")},n[t]=u[t],e.set(r[0],r[1])}Object.defineProperty(u,t,{value:n,enumerable:!1}),Object.defineProperty(u,"codes",{value:e,enumerable:!1})}const a=e=>e,o=(e,t,n)=>[e,t,n];u.color.close="\x1b[39m",u.bgColor.close="\x1b[49m",u.color.ansi={ansi:t(a,0)},u.color.ansi256={ansi256:n(a,0)},u.color.ansi16m={rgb:r(o,0)},u.bgColor.ansi={ansi:t(a,10)},u.bgColor.ansi256={ansi256:n(a,10)},u.bgColor.ansi16m={rgb:r(o,10)};for(let s of Object.keys(Iu)){if("object"!==typeof Iu[s])continue;const e=Iu[s];"ansi16"===s&&(s="ansi"),"ansi16"in e&&(u.color.ansi[s]=t(e.ansi16,0),u.bgColor.ansi[s]=t(e.ansi16,10)),"ansi256"in e&&(u.color.ansi256[s]=n(e.ansi256,0),u.bgColor.ansi256[s]=n(e.ansi256,10)),"rgb"in e&&(u.color.ansi16m[s]=r(e.rgb,0),u.bgColor.ansi16m[s]=r(e.rgb,10))}return u}})}));const _u=Ot.env;let ju;function Lu(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===ju)return 0;if(Tn("color=16m")||Tn("color=full")||Tn("color=truecolor"))return 3;if(Tn("color=256"))return 2;if(e&&!e.isTTY&&!0!==ju)return 0;const t=ju?1:0;if("win32"===Ot.platform){const e=Bn.release().split(".");return Number(Ot.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in _u)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in _u)||"codeship"===_u.CI_NAME?1:t;if("TEAMCITY_VERSION"in _u)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(_u.TEAMCITY_VERSION)?1:0;if("truecolor"===_u.COLORTERM)return 3;if("TERM_PROGRAM"in _u){const e=parseInt((_u.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(_u.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(_u.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(_u.TERM)||"COLORTERM"in _u?1:(_u.TERM,t)}(e))}Tn("no-color")||Tn("no-colors")||Tn("color=false")?ju=!1:(Tn("color")||Tn("colors")||Tn("color=true")||Tn("color=always"))&&(ju=!0),"FORCE_COLOR"in _u&&(ju=0===_u.FORCE_COLOR.length||0!==parseInt(_u.FORCE_COLOR,10));var Ru={supportsColor:Lu,stdout:Lu(Ot.stdout),stderr:Lu(Ot.stderr)};const qu=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Vu=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Wu=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Uu=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,zu=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function $u(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):zu.get(e)||e}function Ju(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let u;for(const a of r)if(isNaN(a)){if(!(u=a.match(Wu)))throw new Error("Invalid Chalk template style argument: ".concat(a," (in style '").concat(e,"')"));n.push(u[2].replace(Uu,(e,t,n)=>t?$u(t):n))}else n.push(Number(a));return n}function Gu(e){Vu.lastIndex=0;const t=[];let n;for(;null!==(n=Vu.exec(e));){const e=n[1];if(n[2]){const r=Ju(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function Hu(e,t){const n={};for(const u of t)for(const e of u.styles)n[e[0]]=u.inverse?null:e.slice(1);let r=e;for(const u of Object.keys(n))if(Array.isArray(n[u])){if(!(u in r))throw new Error("Unknown Chalk style: ".concat(u));r=n[u].length>0?r[u].apply(r,n[u]):r[u]}return r}var Xu=(e,t)=>{const n=[],r=[];let u=[];if(t.replace(qu,(t,a,o,s,i,l)=>{if(a)u.push($u(a));else if(s){const t=u.join("");u=[],r.push(0===n.length?t:Hu(e,n)(t)),n.push({inverse:o,styles:Gu(s)})}else if(i){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(Hu(e,n)(u.join(""))),u=[],n.pop()}else u.push(l)}),r.push(u.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")},Yu=Qe((function(e){const t=Ru.stdout,n="win32"===Ot.platform&&!(Ot.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],u=new Set(["gray"]),a=Object.create(null);function o(e,n){n=n||{};const r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function s(e){if(!this||!(this instanceof s)||this.template){const t={};return o(t,e),t.template=function(){const e=[].slice.call(arguments);return p.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,s.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=s,t.template}o(this,e)}n&&(Mu.blue.open="\x1b[94m");for(const d of Object.keys(Mu))Mu[d].closeRe=new RegExp(wu(Mu[d].close),"g"),a[d]={get(){const e=Mu[d];return l.call(this,this._styles?this._styles.concat(e):[e],this._empty,d)}};a.visible={get(){return l.call(this,this._styles||[],!0,"visible")}},Mu.color.closeRe=new RegExp(wu(Mu.color.close),"g");for(const d of Object.keys(Mu.color.ansi))u.has(d)||(a[d]={get(){const e=this.level;return function(){const t=Mu.color[r[e]][d].apply(null,arguments),n={open:t,close:Mu.color.close,closeRe:Mu.color.closeRe};return l.call(this,this._styles?this._styles.concat(n):[n],this._empty,d)}}});Mu.bgColor.closeRe=new RegExp(wu(Mu.bgColor.close),"g");for(const d of Object.keys(Mu.bgColor.ansi))u.has(d)||(a["bg"+d[0].toUpperCase()+d.slice(1)]={get(){const e=this.level;return function(){const t=Mu.bgColor[r[e]][d].apply(null,arguments),n={open:t,close:Mu.bgColor.close,closeRe:Mu.bgColor.closeRe};return l.call(this,this._styles?this._styles.concat(n):[n],this._empty,d)}}});const i=Object.defineProperties(()=>{},a);function l(e,t,n){const r=function e(){return c.apply(e,arguments)};r._styles=e,r._empty=t;const u=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>u.level,set(e){u.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>u.enabled,set(e){u.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=i,r}function c(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n<t;n++)r+=" "+e[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const u=Mu.dim.open;n&&this.hasGrey&&(Mu.dim.open="");for(const n of this._styles.slice().reverse())r=n.open+r.replace(n.closeRe,n.open)+n.close,r=r.replace(/\r?\n/g,"".concat(n.close,"$&").concat(n.open));return Mu.dim.open=u,r}function p(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const n=[].slice.call(arguments,2),r=[t.raw[0]];for(let u=1;u<t.length;u++)r.push(String(n[u-1]).replace(/[{}\\]/g,"\\$&")),r.push(String(t.raw[u]));return Xu(e,r.join(""))}Object.defineProperties(s.prototype,a),e.exports=s(),e.exports.supportsColor=t,e.exports.default=e.exports})),Ku=(Yu.supportsColor,Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.shouldHighlight=c,t.getChalk=p,t.default=function(e,t={}){if(c(t)){const u=p(t);return function(e,t){return t.replace(n.default,(function(...t){const u=function(e){const[t,u]=e.slice(-2),a=(0,n.matchToToken)(e);if("name"===a.type){if(r.default.keyword.isReservedWordES6(a.value))return"keyword";if(i.test(a.value)&&("<"===u[t-1]||"</"==u.substr(t-2,2)))return"jsx_tag";if(a.value[0]!==a.value[0].toLowerCase())return"capitalized"}return"punctuator"===a.type&&l.test(a.value)?"bracket":"invalid"!==a.type||"@"!==a.value&&"#"!==a.value?a.type:"punctuator"}(t),a=e[u];return a?t[0].split(s).map(e=>a(e)).join("\n"):t[0]}))}(function(e){return{keyword:e.cyan,capitalized:e.yellow,jsx_tag:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}(u),e)}return e};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(Object.prototype.hasOwnProperty.call(e,u)){var a=r?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(n,u,a):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(bu),r=a(xu),u=a(Yu);function a(e){return e&&e.__esModule?e:{default:e}}function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}const s=/\r\n|[\n\r\u2028\u2029]/,i=/^[a-z][\w-]*$/i,l=/^[()[\]{}]$/;function c(e){return u.default.supportsColor||e.forceColor}function p(e){let t=u.default;return e.forceColor&&(t=new u.default.constructor({enabled:!0,level:1})),t}})));Ke(Ku),Ku.shouldHighlight,Ku.getChalk;var Qu=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=o,t.default=function(e,t,n,r={}){if(!u){u=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";Ot.emitWarning?Ot.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}return n=Math.max(n,0),o(e,{start:{column:n,line:t}},r)};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=u?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}(Ku);function r(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}let u=!1;const a=/\r\n|[\n\r\u2028\u2029]/;function o(e,t,r={}){const u=(r.highlightCode||r.forceColor)&&(0,n.shouldHighlight)(r),o=(0,n.getChalk)(r),s=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(o),i=(e,t)=>u?e(t):t,l=e.split(a),{start:c,end:p,markerLines:d}=function(e,t,n){const r=Object.assign({column:0,line:-1},e.start),u=Object.assign({},r,{},e.end),{linesAbove:a=2,linesBelow:o=3}=n||{},s=r.line,i=r.column,l=u.line,c=u.column;let p=Math.max(s-(a+1),0),d=Math.min(t.length,l+o);-1===s&&(p=0),-1===l&&(d=t.length);const f=l-s,h={};if(f)for(let m=0;m<=f;m++){const e=m+s;if(i)if(0===m){const n=t[e-1].length;h[e]=[i,n-i+1]}else if(m===f)h[e]=[0,c];else{const n=t[e-m].length;h[e]=[0,n]}else h[e]=!0}else h[s]=i===c?!i||[i,0]:[i,c-i];return{start:p,end:d,markerLines:h}}(t,l,r),f=t.start&&"number"===typeof t.start.column,h=String(p).length;let m=(u?(0,n.default)(e,r):e).split(a).slice(c,p).map((e,t)=>{const n=c+1+t,u=" ".concat(n).slice(-h),a=" ".concat(u," | "),o=d[n],l=!d[n+1];if(o){let t="";if(Array.isArray(o)){const n=e.slice(0,Math.max(o[0]-1,0)).replace(/[^\t]/g," "),u=o[1]||1;t=["\n ",i(s.gutter,a.replace(/\d/g," ")),n,i(s.marker,"^").repeat(u)].join(""),l&&r.message&&(t+=" "+i(s.message,r.message))}return[i(s.marker,">"),i(s.gutter,a),e,t].join("")}return" ".concat(i(s.gutter,a)).concat(e)}).join("\n");return r.message&&!f&&(m="".concat(" ".repeat(h+1)).concat(r.message,"\n").concat(m)),u?o.reset(m):m}}));Ke(Qu),Qu.codeFrameColumns;const{ConfigError:Zu}=ot,{locStart:ea,locEnd:ta}=Cu,na=Object.getOwnPropertyNames,ra=Object.getOwnPropertyDescriptor;function ua(e){const t={};for(const n of e.plugins)if(n.parsers)for(const e of na(n.parsers))Object.defineProperty(t,e,ra(n.parsers,e));return t}function aa(e,t){if(t=t||ua(e),"function"===typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:ea,locEnd:ta};if("string"===typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new Zu("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var oa={parse:function(e,t){const n=ua(t),r=Object.keys(n).reduce((e,t)=>Object.defineProperty(e,t,{enumerable:!0,get:()=>n[t].parse}),{}),u=aa(t,n);try{return u.preprocess&&(e=u.preprocess(e,t)),{text:e,ast:u.parse(e,r,t)}}catch(a){const{loc:t}=a;if(t){const n=Qu;throw a.codeFrame=n.codeFrameColumns(e,t,{highlightCode:!0}),a.message+="\n"+a.codeFrame,a}throw a.stack}},resolveParser:aa};const{UndefinedParserError:sa}=ot,{getSupportInfo:ia}=sn,{resolveParser:la}=oa,ca={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function pa(e,t){const n=Z.basename(e).toLowerCase(),r=ia({plugins:t}).languages.filter(e=>null!==e.since);let u=r.find(e=>e.extensions&&e.extensions.some(e=>n.endsWith(e))||e.filenames&&e.filenames.find(e=>e.toLowerCase()===n));if(!u&&!n.includes(".")){const t=function(e){if("string"!==typeof e)return"";let t;try{t=et.openSync(e,"r")}catch(n){return""}try{const e=new tt(t).next().toString("utf8"),r=e.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(r)return r[1];const u=e.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return u?u[1]:""}catch(n){return""}finally{try{et.closeSync(t)}catch(n){}}}(e);u=r.find(e=>e.interpreters&&e.interpreters.includes(t))}return u&&u.parsers[0]}var da={normalize:function(e,t){t=t||{};const n=Object.assign({},e),r=ia({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,u=Object.assign({},ca,{},nt(r.filter(e=>void 0!==e.default).map(e=>[e.name,e.default])));if(!n.parser)if(n.filepath){if(n.parser=pa(n.filepath,n.plugins),!n.parser)throw new sa("No parser could be inferred for file: ".concat(n.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),n.parser="babel";const a=la(Du.normalizeApiOptions(n,[r.find(e=>"parser"===e.name)],{passThrough:!0,logger:!1}));n.astFormat=a.astFormat,n.locEnd=a.locEnd,n.locStart=a.locStart;const o=function(e){const{astFormat:t}=e;if(!t)throw new Error("getPlugin() requires astFormat to be set");const n=e.plugins.find(e=>e.printers&&e.printers[t]);if(!n)throw new Error("Couldn't find plugin for AST format \"".concat(t,'"'));return n}(n);n.printer=o.printers[n.astFormat];const s=r.filter(e=>e.pluginDefaults&&void 0!==e.pluginDefaults[o.name]).reduce((e,t)=>Object.assign(e,{[t.name]:t.pluginDefaults[o.name]}),{}),i=Object.assign({},u,{},s);return Object.keys(i).forEach(e=>{null==n[e]&&(n[e]=i[e])}),"json"===n.parser&&(n.trailingComma="none"),Du.normalizeApiOptions(n,r,Object.assign({passThrough:Object.keys(ca)},t))},hiddenDefaults:ca,inferParser:pa},fa=function e(t,n,r){if(Array.isArray(t))return t.map(t=>e(t,n,r)).filter(Boolean);if(!t||"object"!==typeof t)return t;const u={};for(const a of Object.keys(t))"function"!==typeof t[a]&&(u[a]=e(t[a],n,t));if(n.printer.massageAstNode){const e=n.printer.massageAstNode(t,u,r);if(null===e)return;if(e)return e}return u};function ha(){}function ma(e){return{type:"concat",parts:e}}function Da(e){return{type:"indent",contents:e}}function ga(e,t){return{type:"align",contents:t,n:e}}function ya(e,t){return{type:"group",id:(t=t||{}).id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}ha.ok=function(){},ha.strictEqual=function(){};const Ea={type:"break-parent"},Ca=ma([{type:"line",hard:!0},Ea]),ba=ma([{type:"line",hard:!0,literal:!0},Ea]);var Aa={concat:ma,join:function(e,t){const n=[];for(let r=0;r<t.length;r++)0!==r&&n.push(e),n.push(t[r]);return ma(n)},line:{type:"line"},softline:{type:"line",soft:!0},hardline:Ca,literalline:ba,group:ya,conditionalGroup:function(e,t){return ya(e[0],Object.assign({},t,{expandedStates:e}))},fill:function(e){return{type:"fill",parts:e}},lineSuffix:function(e){return{type:"line-suffix",contents:e}},lineSuffixBoundary:{type:"line-suffix-boundary"},cursor:{type:"cursor",placeholder:Symbol("cursor")},breakParent:Ea,ifBreak:function(e,t,n){return{type:"if-break",breakContents:e,flatContents:t,groupId:(n=n||{}).groupId}},trim:{type:"trim"},indent:Da,align:ga,addAlignmentToDoc:function(e,t,n){let r=e;if(t>0){for(let e=0;e<Math.floor(t/n);++e)r=Da(r);r=ga(t%n,r),r=ga(-1/0,r)}return r},markAsRoot:function(e){return ga({type:"root"},e)},dedentToRoot:function(e){return ga(-1/0,e)},dedent:function(e){return ga(-1,e)}},Fa=e=>"string"===typeof e?e.replace((({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")})(),""):e;const va=e=>!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);var xa=va,Sa=va;xa.default=Sa;const wa=e=>{if("string"!==typeof(e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," "))||0===e.length)return 0;e=Fa(e);let t=0;for(let n=0;n<e.length;n++){const r=e.codePointAt(n);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,t+=xa(r)?2:1)}return t};var Ba=wa,Ta=wa;Ba.default=Ta;const ka=/[|\\{}()[\]^$+*?.-]/g;var Na=e=>{if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(ka,"\\$&")};const Oa=/[^\x20-\x7F]/;function Pa(e){return(t,n,r)=>{const u=r&&r.backwards;if(!1===n)return!1;const{length:a}=t;let o=n;for(;o>=0&&o<a;){const n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;u?o--:o++}return(-1===o||o===a)&&o}}const Ia=Pa(/\s/),Ma=Pa(" \t"),_a=Pa(",; \t"),ja=Pa(/[^\r\n]/);function La(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let n=t+2;n<e.length;++n)if("*"===e.charAt(n)&&"/"===e.charAt(n+1))return n+2;return t}function Ra(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?ja(e,t):t)}function qa(e,t,n){const r=n&&n.backwards;if(!1===t)return!1;const u=e.charAt(t);if(r){if("\r"===e.charAt(t-1)&&"\n"===u)return t-2;if("\n"===u||"\r"===u||"\u2028"===u||"\u2029"===u)return t-1}else{if("\r"===u&&"\n"===e.charAt(t+1))return t+2;if("\n"===u||"\r"===u||"\u2028"===u||"\u2029"===u)return t+1}return t}function Va(e,t,n){const r=Ma(e,(n=n||{}).backwards?t-1:t,n);return r!==qa(e,r,n)}function Wa(e,t){let n=null,r=t;for(;r!==n;)n=r,r=_a(e,r),r=La(e,r),r=Ma(e,r);return r=Ra(e,r),r=qa(e,r),!1!==r&&Va(e,r)}function Ua(e,t){let n=null,r=t;for(;r!==n;)n=r,r=Ma(e,r),r=La(e,r),r=Ra(e,r),r=qa(e,r);return r}function za(e,t,n){return Ua(e,n(t))}const $a={};function Ja(e){return $a[e]}[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((e,t)=>{e.forEach(e=>{$a[e]=t})});const Ga={"==":!0,"!=":!0,"===":!0,"!==":!0},Ha={"*":!0,"/":!0,"%":!0},Xa={">>":!0,">>>":!0,"<<":!0};function Ya(e,t,n){let r=0;for(let u=n=n||0;u<e.length;++u)"\t"===e[u]?r=r+t-r%t:r++;return r}function Ka(e,t){const n=e.slice(1,-1),r={quote:'"',regex:/"/g},u={quote:"'",regex:/'/g},a="'"===t?u:r,o=a===u?r:u;let s=a.quote;return(n.includes(a.quote)||n.includes(o.quote))&&(s=(n.match(a.regex)||[]).length>(n.match(o.regex)||[]).length?o.quote:a.quote),s}function Qa(e,t,n){const r='"'===t?"'":'"',u=e.replace(/\\([\s\S])|(['"])/g,(e,u,a)=>u===r?u:a===t?"\\"+a:a||(n&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(u)?u:"\\"+u));return t+u+t}function Za(e){return e&&(e.comments&&e.comments.length>0&&e.comments.some(e=>eo(e)&&!e.unignore)||e.prettierIgnore)}function eo(e){return"prettier-ignore"===e.value.trim()}function to(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var no={replaceEndOfLineWith:function(e,t){const n=[];for(const r of e.split("\n"))0!==n.length&&n.push(t),n.push(r);return n},getStringWidth:function(e){return e?Oa.test(e)?Ba(e):e.length:0},getMaxContinuousCount:function(e,t){const n=e.match(new RegExp("(".concat(Na(t),")+"),"g"));return null===n?0:n.reduce((e,n)=>Math.max(e,n.length/t.length),0)},getMinNotPresentContinuousCount:function(e,t){const n=e.match(new RegExp("(".concat(Na(t),")+"),"g"));if(null===n)return 0;const r=new Map;let u=0;for(const a of n){const e=a.length/t.length;r.set(e,!0),e>u&&(u=e)}for(let a=1;a<u;a++)if(!r.get(a))return a;return u+1},getPrecedence:Ja,shouldFlatten:function(e,t){return Ja(t)===Ja(e)&&"**"!==e&&(!Ga[e]||!Ga[t])&&!("%"===t&&Ha[e]||"%"===e&&Ha[t])&&(t===e||!Ha[t]||!Ha[e])&&(!Xa[e]||!Xa[t])},isBitwiseOperator:function(e){return!!Xa[e]||"|"===e||"^"===e||"&"===e},getPenultimate:function(e){return e.length>1?e[e.length-2]:null},getLast:gu,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Ua,getNextNonSpaceNonCommentCharacterIndex:za,getNextNonSpaceNonCommentCharacter:function(e,t,n){return e.charAt(za(e,t,n))},skip:Pa,skipWhitespace:Ia,skipSpaces:Ma,skipToLineEnd:_a,skipEverythingButNewLine:ja,skipInlineComment:La,skipTrailingComment:Ra,skipNewline:qa,isNextLineEmptyAfterIndex:Wa,isNextLineEmpty:function(e,t,n){return Wa(e,n(t))},isPreviousLineEmpty:function(e,t,n){let r=n(t)-1;return r=Ma(e,r,{backwards:!0}),r=qa(e,r,{backwards:!0}),r=Ma(e,r,{backwards:!0}),r!==qa(e,r,{backwards:!0})},hasNewline:Va,hasNewlineInRange:function(e,t,n){for(let r=t;r<n;++r)if("\n"===e.charAt(r))return!0;return!1},hasSpaces:function(e,t,n){return Ma(e,(n=n||{}).backwards?t-1:t,n)!==t},setLocStart:function(e,t){e.range?e.range[0]=t:e.start=t},setLocEnd:function(e,t){e.range?e.range[1]=t:e.end=t},startsWithNoLookaheadToken:function e(t,n){switch((t=function e(t){return t.left?e(t.left):t}(t)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return n;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return e(t.object,n);case"TaggedTemplateExpression":return"FunctionExpression"!==t.tag.type&&e(t.tag,n);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==t.callee.type&&e(t.callee,n);case"ConditionalExpression":return e(t.test,n);case"UpdateExpression":return!t.prefix&&e(t.argument,n);case"BindExpression":return t.object&&e(t.object,n);case"SequenceExpression":return e(t.expressions[0],n);case"TSAsExpression":return e(t.expression,n);default:return!1}},getAlignmentSize:Ya,getIndentSize:function(e,t){const n=e.lastIndexOf("\n");return-1===n?0:Ya(e.slice(n+1).match(/^[ \t]*/)[0],t)},getPreferredQuote:Ka,printString:function(e,t,n){const r=e.slice(1,-1),u=!r.includes('"')&&!r.includes("'"),a="json"===t.parser?'"':t.__isInHtmlAttribute?"'":Ka(e,t.singleQuote?"'":'"');return n?u?a+r+a:e:Qa(r,a,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.embeddedInHtml))},printNumber:function(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},hasIgnoreComment:function(e){return Za(e.getValue())},hasNodeIgnoreComment:Za,isNodeIgnoreComment:eo,makeString:Qa,addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,to(e,t)},addDanglingComment:function(e,t){t.leading=!1,t.trailing=!1,to(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,to(e,t)},isWithinParentArrayProperty:function(e,t){const n=e.getValue(),r=e.getParentNode();if(null==r)return!1;if(!Array.isArray(r[t]))return!1;const u=e.getName();return r[t][u]===n}},ro={guessEndOfLine:function(e){const t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}};const{getStringWidth:uo}=no,{convertEndOfLineToChars:ao}=ro,{concat:oo,fill:so,cursor:io}=Aa;let lo;function co(e,t){return fo(e,{type:"indent"},t)}function po(e,t,n){return t===-1/0?e.root||{value:"",length:0,queue:[]}:t<0?fo(e,{type:"dedent"},n):t?"root"===t.type?Object.assign({},e,{root:e}):fo(e,"string"===typeof t?{type:"stringAlign",n:t}:{type:"numberAlign",n:t},n):e}function fo(e,t,n){const r="dedent"===t.type?e.queue.slice(0,-1):e.queue.concat(t);let u="",a=0,o=0,s=0;for(const f of r)switch(f.type){case"indent":c(),n.useTabs?i(1):l(n.tabWidth);break;case"stringAlign":c(),u+=f.n,a+=f.n.length;break;case"numberAlign":o+=1,s+=f.n;break;default:throw new Error("Unexpected type '".concat(f.type,"'"))}return p(),Object.assign({},e,{value:u,length:a,queue:r});function i(e){u+="\t".repeat(e),a+=n.tabWidth*e}function l(e){u+=" ".repeat(e),a+=e}function c(){n.useTabs?(o>0&&i(o),d()):p()}function p(){s>0&&l(s),d()}function d(){o=0,s=0}}function ho(e){if(0===e.length)return 0;let t=0;for(;e.length>0&&"string"===typeof e[e.length-1]&&e[e.length-1].match(/^[ \t]*$/);)t+=e.pop().length;if(e.length&&"string"===typeof e[e.length-1]){const n=e[e.length-1].replace(/[ \t]*$/,"");t+=e[e.length-1].length-n.length,e[e.length-1]=n}return t}function mo(e,t,n,r,u){let a=t.length;const o=[e],s=[];for(;n>=0;){if(0===o.length){if(0===a)return!0;o.push(t[a-1]),a--;continue}const[e,i,l]=o.pop();if("string"===typeof l)s.push(l),n-=uo(l);else switch(l.type){case"concat":for(let t=l.parts.length-1;t>=0;t--)o.push([e,i,l.parts[t]]);break;case"indent":o.push([co(e,r),i,l.contents]);break;case"align":o.push([po(e,l.n,r),i,l.contents]);break;case"trim":n+=ho(s);break;case"group":if(u&&l.break)return!1;o.push([e,l.break?1:i,l.contents]),l.id&&(lo[l.id]=o[o.length-1][1]);break;case"fill":for(let t=l.parts.length-1;t>=0;t--)o.push([e,i,l.parts[t]]);break;case"if-break":{const t=l.groupId?lo[l.groupId]:i;1===t&&l.breakContents&&o.push([e,i,l.breakContents]),2===t&&l.flatContents&&o.push([e,i,l.flatContents]);break}case"line":switch(i){case 2:if(!l.hard){l.soft||(s.push(" "),n-=1);break}return!0;case 1:return!0}}}return!1}const Do={};function go(e,t,n,r){const u=[e];for(;0!==u.length;){const e=u.pop();if(e===Do){n(u.pop());continue}let a=!0;if(t&&!1===t(e)&&(a=!1),n&&(u.push(e),u.push(Do)),a)if("concat"===e.type||"fill"===e.type)for(let t=e.parts.length-1;t>=0;--t)u.push(e.parts[t]);else if("if-break"===e.type)e.flatContents&&u.push(e.flatContents),e.breakContents&&u.push(e.breakContents);else if("group"===e.type&&e.expandedStates)if(r)for(let t=e.expandedStates.length-1;t>=0;--t)u.push(e.expandedStates[t]);else u.push(e.contents);else e.contents&&u.push(e.contents)}}function yo(e,t){if("concat"===e.type||"fill"===e.type){const n=e.parts.map(e=>yo(e,t));return t(Object.assign({},e,{parts:n}))}if("if-break"===e.type){const n=e.breakContents&&yo(e.breakContents,t),r=e.flatContents&&yo(e.flatContents,t);return t(Object.assign({},e,{breakContents:n,flatContents:r}))}if(e.contents){const n=yo(e.contents,t);return t(Object.assign({},e,{contents:n}))}return t(e)}function Eo(e,t,n){let r=n,u=!1;return go(e,(function(e){const n=t(e);if(void 0!==n&&(u=!0,r=n),u)return!1})),r}function Co(e){return"string"!==typeof e&&("line"===e.type||void 0)}function bo(e){return!("group"!==e.type||!e.break)||!("line"!==e.type||!e.hard)||"break-parent"===e.type||void 0}function Ao(e){if(e.length>0){const t=e[e.length-1];t.expandedStates||(t.break=!0)}return null}function Fo(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}function vo(e){if("concat"===e.type){const t=[];for(let n=0;n<e.parts.length;++n){const r=e.parts[n];if("string"!==typeof r&&"concat"===r.type)t.push(...vo(r).parts);else{const e=vo(r);""!==e&&t.push(e)}}return Object.assign({},e,{parts:t})}return"if-break"===e.type?Object.assign({},e,{breakContents:null!=e.breakContents?vo(e.breakContents):null,flatContents:null!=e.flatContents?vo(e.flatContents):null}):"group"===e.type?Object.assign({},e,{contents:vo(e.contents),expandedStates:e.expandedStates?e.expandedStates.map(vo):e.expandedStates}):e.contents?Object.assign({},e,{contents:vo(e.contents)}):e}function xo(e){if("string"===typeof e)return JSON.stringify(e);if("line"===e.type)return e.literal?"literalline":e.hard?"hardline":e.soft?"softline":"line";if("break-parent"===e.type)return"breakParent";if("trim"===e.type)return"trim";if("concat"===e.type)return"["+e.parts.map(xo).join(", ")+"]";if("indent"===e.type)return"indent("+xo(e.contents)+")";if("align"===e.type)return e.n===-1/0?"dedentToRoot("+xo(e.contents)+")":e.n<0?"dedent("+xo(e.contents)+")":"root"===e.n.type?"markAsRoot("+xo(e.contents)+")":"align("+JSON.stringify(e.n)+", "+xo(e.contents)+")";if("if-break"===e.type)return"ifBreak("+xo(e.breakContents)+(e.flatContents?", "+xo(e.flatContents):"")+")";if("group"===e.type)return e.expandedStates?"conditionalGroup(["+e.expandedStates.map(xo).join(",")+"])":(e.break?"wrappedGroup":"group")+"("+xo(e.contents)+")";if("fill"===e.type)return"fill("+e.parts.map(xo).join(", ")+")";if("line-suffix"===e.type)return"lineSuffix("+xo(e.contents)+")";if("line-suffix-boundary"===e.type)return"lineSuffixBoundary";throw new Error("Unknown doc type "+e.type)}var So={builders:Aa,printer:{printDocToString:function(e,t){lo={};const n=t.printWidth,r=ao(t.endOfLine);let u=0;const a=[[{value:"",length:0,queue:[]},1,e]],o=[];let s=!1,i=[];for(;0!==a.length;){const[e,l,c]=a.pop();if("string"===typeof c){const e="\n"!==r&&c.includes("\n")?c.replace(/\n/g,r):c;o.push(e),u+=uo(e)}else switch(c.type){case"cursor":o.push(io.placeholder);break;case"concat":for(let t=c.parts.length-1;t>=0;t--)a.push([e,l,c.parts[t]]);break;case"indent":a.push([co(e,t),l,c.contents]);break;case"align":a.push([po(e,c.n,t),l,c.contents]);break;case"trim":u-=ho(o);break;case"group":switch(l){case 2:if(!s){a.push([e,c.break?1:2,c.contents]);break}case 1:{s=!1;const r=[e,2,c.contents],o=n-u;if(!c.break&&mo(r,a,o,t))a.push(r);else if(c.expandedStates){const n=c.expandedStates[c.expandedStates.length-1];if(c.break){a.push([e,1,n]);break}for(let r=1;r<c.expandedStates.length+1;r++){if(r>=c.expandedStates.length){a.push([e,1,n]);break}{const n=[e,2,c.expandedStates[r]];if(mo(n,a,o,t)){a.push(n);break}}}}else a.push([e,1,c.contents]);break}}c.id&&(lo[c.id]=a[a.length-1][1]);break;case"fill":{const r=n-u,{parts:o}=c;if(0===o.length)break;const[s,i]=o,p=[e,2,s],d=[e,1,s],f=mo(p,[],r,t,!0);if(1===o.length){f?a.push(p):a.push(d);break}const h=[e,2,i],m=[e,1,i];if(2===o.length){f?(a.push(h),a.push(p)):(a.push(m),a.push(d));break}o.splice(0,2);const D=[e,l,so(o)],g=o[0];mo([e,2,oo([s,i,g])],[],r,t,!0)?(a.push(D),a.push(h),a.push(p)):f?(a.push(D),a.push(m),a.push(p)):(a.push(D),a.push(m),a.push(d));break}case"if-break":{const t=c.groupId?lo[c.groupId]:l;1===t&&c.breakContents&&a.push([e,l,c.breakContents]),2===t&&c.flatContents&&a.push([e,l,c.flatContents]);break}case"line-suffix":i.push([e,l,c.contents]);break;case"line-suffix-boundary":i.length>0&&a.push([e,l,{type:"line",hard:!0}]);break;case"line":switch(l){case 2:if(!c.hard){c.soft||(o.push(" "),u+=1);break}s=!0;case 1:if(i.length){a.push([e,l,c]),a.push(...i.reverse()),i=[];break}c.literal?e.root?(o.push(r,e.root.value),u=e.root.length):(o.push(r),u=0):(u-=ho(o),o.push(r+e.value),u=e.length)}}}const l=o.indexOf(io.placeholder);if(-1!==l){const e=o.indexOf(io.placeholder,l+1),t=o.slice(0,l).join(""),n=o.slice(l+1,e).join("");return{formatted:t+n+o.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:n}}return{formatted:o.join("")}}},utils:{isEmpty:function(e){return"string"===typeof e&&0===e.length},willBreak:function(e){return Eo(e,bo,!1)},isLineNext:function(e){return Eo(e,Co,!1)},traverseDoc:go,findInDoc:Eo,mapDoc:yo,propagateBreaks:function(e){const t=new Set,n=[];go(e,(function(e){if("break-parent"===e.type&&Ao(n),"group"===e.type){if(n.push(e),t.has(e))return!1;t.add(e)}}),(function(e){"group"===e.type&&n.pop().break&&Ao(n)}),!0)},removeLines:function(e){return yo(e,Fo)},stripTrailingHardline:function e(t){if("concat"===t.type&&0!==t.parts.length){const n=t.parts[t.parts.length-1];if("concat"===n.type)return 2===n.parts.length&&n.parts[0].hard&&"break-parent"===n.parts[1].type?{type:"concat",parts:t.parts.slice(0,-1)}:{type:"concat",parts:t.parts.slice(0,-1).concat(e(n))}}return t}},debug:{printDocToDebug:e=>xo(vo(e))}};const{getMaxContinuousCount:wo,getStringWidth:Bo,getAlignmentSize:To,getIndentSize:ko,skip:No,skipWhitespace:Oo,skipSpaces:Po,skipNewline:Io,skipToLineEnd:Mo,skipEverythingButNewLine:_o,skipInlineComment:jo,skipTrailingComment:Lo,hasNewline:Ro,hasNewlineInRange:qo,hasSpaces:Vo,isNextLineEmpty:Wo,isNextLineEmptyAfterIndex:Uo,isPreviousLineEmpty:zo,getNextNonSpaceNonCommentCharacterIndex:$o,makeString:Jo,addLeadingComment:Go,addDanglingComment:Ho,addTrailingComment:Xo}=no;var Yo={getMaxContinuousCount:wo,getStringWidth:Bo,getAlignmentSize:To,getIndentSize:ko,skip:No,skipWhitespace:Oo,skipSpaces:Po,skipNewline:Io,skipToLineEnd:Mo,skipEverythingButNewLine:_o,skipInlineComment:jo,skipTrailingComment:Lo,hasNewline:Ro,hasNewlineInRange:qo,hasSpaces:Vo,isNextLineEmpty:Wo,isNextLineEmptyAfterIndex:Uo,isPreviousLineEmpty:zo,getNextNonSpaceNonCommentCharacterIndex:$o,makeString:Jo,addLeadingComment:Go,addDanglingComment:Ho,addTrailingComment:Xo};const{concat:Ko,line:Qo,hardline:Zo,breakParent:es,indent:ts,lineSuffix:ns,join:rs,cursor:us}=So.builders,{hasNewline:as,skipNewline:os,isPreviousLineEmpty:ss}=no,{addLeadingComment:is,addDanglingComment:ls,addTrailingComment:cs}=Yo,ps=Symbol("child-nodes");function ds(e,t,n){if(!e)return;const{printer:r,locStart:u,locEnd:a}=t;if(n){if(r.canAttachComment&&r.canAttachComment(e)){let t;for(t=n.length-1;t>=0&&!(u(n[t])<=u(e)&&a(n[t])<=a(e));--t);return void n.splice(t+1,0,e)}}else if(e[ps])return e[ps];const o=r.getCommentChildNodes&&r.getCommentChildNodes(e,t)||"object"===typeof e&&Object.keys(e).filter(e=>"enclosingNode"!==e&&"precedingNode"!==e&&"followingNode"!==e).map(t=>e[t]);return o?(n||Object.defineProperty(e,ps,{value:n=[],enumerable:!1}),o.forEach(e=>{ds(e,t,n)}),n):void 0}function fs(e,t,n){const r=e.length;if(0===r)return;const{precedingNode:u,followingNode:a,enclosingNode:o}=e[0],s=n.printer.getGapRegex&&n.printer.getGapRegex(o)||/^[\s(]*$/;let i,l=n.locStart(a);for(i=r;i>0;--i){const r=e[i-1];ha.strictEqual(r.precedingNode,u),ha.strictEqual(r.followingNode,a);const o=t.slice(n.locEnd(r),l);if(!s.test(o))break;l=n.locStart(r)}e.forEach((e,t)=>{t<i?cs(u,e):is(a,e)}),e.length=0}function hs(e,t){return e.getValue().printed=!0,t.printer.printComment(e,t)}function ms(e,t,n){const r=n.locStart(t)-1;for(let a=1;a<e.length;++a)if(r<(u=e[a],void 0!==u.start?{start:u.start,end:u.end}:{start:u.range[0],end:u.range[1]}).start)return a-1;var u;return 0}function Ds(e,t,n){return e.getNode()===t.cursorNode&&e.getValue()?Ko([us,n,us]):n}var gs={attach:function(e,t,n,r){if(!Array.isArray(e))return;const u=[],{locStart:a,locEnd:o}=r;e.forEach((s,i)=>{if("json"===r.parser||"json5"===r.parser||"__js_expression"===r.parser||"__vue_expression"===r.parser){if(a(s)-a(t)<=0)return void is(t,s);if(o(s)-o(t)>=0)return void cs(t,s)}!function e(t,n,r){const{locStart:u,locEnd:a}=r,o=ds(t,r);let s,i,l=0,c=o.length;for(;l<c;){const t=l+c>>1,p=o[t];if(u(p)-u(n)<=0&&a(n)-a(p)<=0)return n.enclosingNode=p,void e(p,n,r);if(a(p)-u(n)<=0)s=p,l=t+1;else{if(!(a(n)-u(p)<=0))throw new Error("Comment location overlaps with node location");i=p,c=t}}if(n.enclosingNode&&"TemplateLiteral"===n.enclosingNode.type){const{quasis:e}=n.enclosingNode,t=ms(e,n,r);s&&ms(e,s,r)!==t&&(s=null),i&&ms(e,i,r)!==t&&(i=null)}s&&(n.precedingNode=s),i&&(n.followingNode=i)}(t,s,r);const{precedingNode:l,enclosingNode:c,followingNode:p}=s,d=r.printer.handleComments&&r.printer.handleComments.ownLine?r.printer.handleComments.ownLine:()=>!1,f=r.printer.handleComments&&r.printer.handleComments.endOfLine?r.printer.handleComments.endOfLine:()=>!1,h=r.printer.handleComments&&r.printer.handleComments.remaining?r.printer.handleComments.remaining:()=>!1,m=e.length-1===i;if(as(n,a(s),{backwards:!0}))d(s,n,r,t,m)||(p?is(p,s):l?cs(l,s):ls(c||t,s));else if(as(n,o(s)))f(s,n,r,t,m)||(l?cs(l,s):p?is(p,s):ls(c||t,s));else if(h(s,n,r,t,m));else if(l&&p){const e=u.length;e>0&&u[e-1].followingNode!==s.followingNode&&fs(u,n,r),u.push(s)}else l?cs(l,s):p?is(p,s):ls(c||t,s)}),fs(u,n,r),e.forEach(e=>{delete e.precedingNode,delete e.enclosingNode,delete e.followingNode})},printComments:function(e,t,n,r){const u=e.getValue(),a=t(e),o=u&&u.comments;if(!o||0===o.length)return Ds(e,n,a);const s=[],i=[r?";":"",a];return e.each(e=>{const t=e.getValue(),{leading:r,trailing:u}=t;if(r){const r=function(e,t,n){const r=e.getValue(),u=hs(e,n);if(!u)return"";if(n.printer.isBlockComment&&n.printer.isBlockComment(r)){const e=as(n.originalText,n.locEnd(r))?as(n.originalText,n.locStart(r),{backwards:!0})?Zo:Qo:" ";return Ko([u,e])}return Ko([u,Zo])}(e,0,n);if(!r)return;s.push(r);const u=n.originalText,a=os(u,n.locEnd(t));!1!==a&&as(u,a)&&s.push(Zo)}else u&&i.push(function(e,t,n){const r=e.getValue(),u=hs(e,n);if(!u)return"";const a=n.printer.isBlockComment&&n.printer.isBlockComment(r),o=e.getNode(1),s=e.getNode(2),i=s&&("ClassDeclaration"===s.type||"ClassExpression"===s.type)&&s.superClass===o;if(as(n.originalText,n.locStart(r),{backwards:!0})){const e=ss(n.originalText,r,n.locStart);return ns(Ko([Zo,e?Zo:"",u]))}return Ko(a||i?[" ",u]:[ns(Ko([" ",u])),a?"":es])}(e,0,n))},"comments"),Ds(e,n,Ko(s.concat(i)))},printDanglingComments:function(e,t,n,r){const u=[],a=e.getValue();return a&&a.comments?(e.each(e=>{const n=e.getValue();!n||n.leading||n.trailing||r&&!r(n)||u.push(hs(e,t))},"comments"),0===u.length?"":n?rs(Zo,u):ts(Ko([Zo,rs(Zo,u)]))):""},getSortedChildNodes:ds};function ys(e,t){const n=Es(e.stack,t);return-1===n?null:e.stack[n]}function Es(e,t){for(let n=e.length-1;n>=0;n-=2){const r=e[n];if(r&&!Array.isArray(r)&&--t<0)return n}return-1}var Cs=class{constructor(e){this.stack=[e]}getName(){const{stack:e}=this,{length:t}=e;return t>1?e[t-2]:null}getValue(){return gu(this.stack)}getNode(e=0){return ys(this,e)}getParentNode(e=0){return ys(this,e+1)}call(e,...t){const{stack:n}=this,{length:r}=n;let u=gu(n);for(const o of t)u=u[o],n.push(o,u);const a=e(this);return n.length=r,a}callParent(e,t=0){const n=Es(this.stack,t+1),r=this.stack.splice(n+1),u=e(this);return this.stack.push(...r),u}each(e,...t){const{stack:n}=this,{length:r}=n;let u=gu(n);for(const a of t)u=u[a],n.push(a,u);for(let a=0;a<u.length;++a)a in u&&(n.push(a,u[a]),e(this),n.length-=2);n.length=r}map(e,...t){const{stack:n}=this,{length:r}=n;let u=gu(n);for(const o of t)u=u[o],n.push(o,u);const a=new Array(u.length);for(let o=0;o<u.length;++o)o in u&&(n.push(o,u[o]),a[o]=e(this,o),n.length-=2);return n.length=r,a}match(...e){let t=this.stack.length-1,n=null,r=this.stack[t--];for(const u of e){if(void 0===r)return!1;let e=null;if("number"===typeof n&&(e=n,n=this.stack[t--],r=this.stack[t--]),u&&!u(r,n,e))return!1;n=this.stack[t--],r=this.stack[t--]}return!0}};const{normalize:bs}=da;var As={printSubtree:function(e,t,n,r){if(n.printer.embed)return n.printer.embed(e,t,(e,t)=>function(e,t,n,r){const u=bs(Object.assign({},n,{},t,{parentParser:n.parser,embeddedInHtml:!(!n.embeddedInHtml&&"html"!==n.parser&&"vue"!==n.parser&&"angular"!==n.parser&&"lwc"!==n.parser),originalText:e}),{passThrough:!0}),a=oa.parse(e,u),{ast:o}=a;e=a.text;const s=o.comments;return delete o.comments,gs.attach(s,o,e,u),r(o,u)}(e,t,n,r),n)}};const Fs=So,vs=Fs.builders,{concat:xs,hardline:Ss,addAlignmentToDoc:ws}=vs,Bs=Fs.utils;function Ts(e,t,n=0){const{printer:r}=t;r.preprocess&&(e=r.preprocess(e,t));const u=new Map;let a=function e(n,a){const o=n.getValue(),s=o&&"object"===typeof o&&void 0===a;if(s&&u.has(o))return u.get(o);let i;return i=r.willPrintOwnComments&&r.willPrintOwnComments(n,t)?ks(n,t,e,a):gs.printComments(n,n=>ks(n,t,e,a),t,a&&a.needsSemi),s&&u.set(o,i),i}(new Cs(e));return n>0&&(a=ws(xs([Ss,a]),n,t.tabWidth)),Bs.propagateBreaks(a),a}function ks(e,t,n,r){ha.ok(e instanceof Cs);const u=e.getValue(),{printer:a}=t;if(a.hasPrettierIgnore&&a.hasPrettierIgnore(e))return t.originalText.slice(t.locStart(u),t.locEnd(u));if(u)try{const r=As.printSubtree(e,n,t,Ts);if(r)return r}catch(o){if(Ye.PRETTIER_DEBUG)throw o}return a.print(e,t,n,r)}var Ns=Ts;function Os(e,t,n,r,u){r=r||(()=>!0),u=u||[];const a=n.locStart(e,n.locStart),o=n.locEnd(e,n.locEnd);if(a<=t&&t<=o){for(const a of gs.getSortedChildNodes(e,n)){const o=Os(a,t,n,r,[e].concat(u));if(o)return o}if(r(e))return{node:e,parentNodes:u}}}function Ps(e,t){if(null==t)return!1;const n=["FunctionDeclaration","BlockStatement","BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","EmptyStatement","ExpressionStatement","ForInStatement","ForStatement","IfStatement","LabeledStatement","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","VariableDeclaration","WhileStatement","WithStatement","ClassDeclaration","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","TypeAlias","InterfaceDeclaration","TypeAliasDeclaration","ExportAssignment","ExportDeclaration"],r=["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral"],u=["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"];switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":return n.includes(t.type);case"json":return r.includes(t.type);case"graphql":return u.includes(t.kind);case"vue":return"root"!==t.tag}return!1}var Is={calculateRange:function(e,t,n){const r=e.slice(t.rangeStart,t.rangeEnd),u=Math.max(t.rangeStart+r.search(/\S/),t.rangeStart);let a;for(a=t.rangeEnd;a>t.rangeStart&&!e[a-1].match(/\S/);--a);const o=Os(n,u,t,e=>Ps(t,e)),s=Os(n,a,t,e=>Ps(t,e));if(!o||!s)return{rangeStart:0,rangeEnd:0};const i=function(e,t,n){let r=e.node,u=t.node;if(r===u)return{startNode:r,endNode:u};for(const a of t.parentNodes){if(!("Program"!==a.type&&"File"!==a.type&&n.locStart(a)>=n.locStart(e.node)))break;u=a}for(const a of e.parentNodes){if(!("Program"!==a.type&&"File"!==a.type&&n.locEnd(a)<=n.locEnd(t.node)))break;r=a}return{startNode:r,endNode:u}}(o,s,t),{startNode:l,endNode:c}=i;return{rangeStart:Math.min(t.locStart(l,t.locStart),t.locStart(c,t.locStart)),rangeEnd:Math.max(t.locEnd(l,t.locEnd),t.locEnd(c,t.locEnd))}},findNodeAtOffset:Os},Ms=Ze(X);const _s=da.normalize,{guessEndOfLine:js,convertEndOfLineToChars:Ls}=ro,{printer:{printDocToString:Rs},debug:{printDocToDebug:qs}}=So,Vs=Symbol("cursor"),Ws={cursorOffset:"<<<PRETTIER_CURSOR>>>",rangeStart:"<<<PRETTIER_RANGE_START>>>",rangeEnd:"<<<PRETTIER_RANGE_END>>>"};function Us(e,t,n){const r=t.comments;return r&&(delete t.comments,gs.attach(r,t,e,n)),t.tokens=[],n.originalText="yaml"===n.parser?e:e.trimEnd(),r}function zs(e,t,n){if(!e||!e.trim().length)return{formatted:"",cursorOffset:0};n=n||0;const r=oa.parse(e,t),{ast:u}=r;if(e=r.text,t.cursorOffset>=0){const e=Is.findNodeAtOffset(u,t.cursorOffset,t);e&&e.node&&(t.cursorNode=e.node)}const a=Us(e,u,t),o=Ns(u,t,n),s=Rs(o,t);if(function(e){if(e){for(let t=0;t<e.length;++t)if(no.isNodeIgnoreComment(e[t]))return;e.forEach(e=>{if(!e.printed)throw new Error('Comment "'+e.value.trim()+'" was not printed. Please report this error!');delete e.printed})}}(a),n>0){const e=s.formatted.trim();void 0!==s.cursorNodeStart&&(s.cursorNodeStart-=s.formatted.indexOf(e)),s.formatted=e+Ls(t.endOfLine)}if(t.cursorOffset>=0){let n,r,u,a,o;if(t.cursorNode&&s.cursorNodeText?(n=t.locStart(t.cursorNode),r=e.slice(n,t.locEnd(t.cursorNode)),u=t.cursorOffset-n,a=s.cursorNodeStart,o=s.cursorNodeText):(n=0,r=e,u=t.cursorOffset,a=0,o=s.formatted),r===o)return{formatted:s.formatted,cursorOffset:a+u};const i=r.split("");i.splice(u,0,Vs);const l=o.split(""),c=Ms.diffArrays(i,l);let p=a;for(const e of c)if(e.removed){if(e.value.includes(Vs))break}else p+=e.count;return{formatted:s.formatted,cursorOffset:p}}return{formatted:s.formatted}}function $s(e,t){const n=oa.resolveParser(t),r=!n.hasPragma||n.hasPragma(e);if(t.requirePragma&&!r)return{formatted:e};"auto"===t.endOfLine&&(t.endOfLine=js(e));const u=t.cursorOffset>=0,a=t.rangeStart>0,o=t.rangeEnd<e.length;if(e.includes("\r")){const n=[u&&"cursorOffset",a&&"rangeStart",o&&"rangeEnd"].filter(Boolean).sort((e,n)=>t[e]-t[n]);for(let r=n.length-1;r>=0;r--){const u=n[r];e=e.slice(0,t[u])+Ws[u]+e.slice(t[u])}e=e.replace(/\r\n?/g,"\n");for(let r=0;r<n.length;r++){const u=n[r];e=e.replace(Ws[u],(e,n)=>(t[u]=n,""))}}const s="\ufeff"===e.charAt(0);s&&(e=e.slice(1),u&&t.cursorOffset++,a&&t.rangeStart++,o&&t.rangeEnd++),u||(t.cursorOffset=-1),t.rangeStart<0&&(t.rangeStart=0),t.rangeEnd>e.length&&(t.rangeEnd=e.length);const i=a||o?function(e,t){const n=oa.parse(e,t),{ast:r}=n;e=n.text;const u=Is.calculateRange(e,t,r),{rangeStart:a,rangeEnd:o}=u,s=e.slice(a,o),i=Math.min(a,e.lastIndexOf("\n",a)+1),l=e.slice(i,a),c=no.getAlignmentSize(l,t.tabWidth),p=zs(s,Object.assign({},t,{rangeStart:0,rangeEnd:1/0,cursorOffset:t.cursorOffset>=a&&t.cursorOffset<o?t.cursorOffset-a:-1}),c),d=p.formatted.trimEnd(),f=e.slice(0,a),h=e.slice(o);let m,{cursorOffset:D}=t;if(t.cursorOffset>=o?D=t.cursorOffset-o+(a+d.length):void 0!==p.cursorOffset&&(D=p.cursorOffset+a),"lf"===t.endOfLine)m=f+d+h;else{const e=Ls(t.endOfLine);if(D>=0){const t=[f,d,h];let n=0,r=D;for(;n<t.length;){const e=t[n];if(r<e.length){t[n]=t[n].slice(0,r)+Ws.cursorOffset+t[n].slice(r);break}n++,r-=e.length}const[u,a,o]=t;m=(u.replace(/\n/g,e)+a+o.replace(/\n/g,e)).replace(Ws.cursorOffset,(e,t)=>(D=t,""))}else m=f.replace(/\n/g,e)+d+h.replace(/\n/g,e)}return{formatted:m,cursorOffset:D}}(e,t):zs(t.insertPragma&&t.printer.insertPragma&&!r?t.printer.insertPragma(e):e,t);return s&&(i.formatted="\ufeff"+i.formatted,u&&i.cursorOffset++),i}var Js={formatWithCursor:(e,t)=>$s(e,t=_s(t)),parse(e,t,n){t=_s(t),e.includes("\r")&&(e=e.replace(/\r\n?/g,"\n"));const r=oa.parse(e,t);return n&&(r.ast=fa(r.ast,t)),r},formatAST(e,t){t=_s(t);const n=Ns(e,t);return Rs(n,t)},formatDoc:(e,t)=>$s(qs(e),t=_s(Object.assign({},t,{parser:"babel"}))).formatted,printToDoc(e,t){t=_s(t);const n=oa.parse(e,t),{ast:r}=n;return Us(e=n.text,r,t),Ns(r,t)},printDocToString:(e,t)=>Rs(e,_s(t))},Gs=function(e,t,n){if(["raw","raws","sourceIndex","source","before","after","trailingComma"].forEach(e=>{delete t[e]}),"yaml"===e.type&&delete t.value,"css-comment"===e.type&&"css-root"===n.type&&0!==n.nodes.length&&(n.nodes[0]===e||("yaml"===n.nodes[0].type||"toml"===n.nodes[0].type)&&n.nodes[1]===e)&&(delete t.text,/^\*\s*@(format|prettier)\s*$/.test(e.text)))return null;if("media-query"!==e.type&&"media-query-list"!==e.type&&"media-feature-expression"!==e.type||delete t.value,"css-rule"===e.type&&delete t.params,"selector-combinator"===e.type&&(t.value=t.value.replace(/\s+/g," ")),"media-feature"===e.type&&(t.value=t.value.replace(/ /g,"")),("value-word"===e.type&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerCase()),"css-decl"===e.type&&(t.prop=t.prop.toLowerCase()),"css-atrule"!==e.type&&"css-import"!==e.type||(t.name=t.name.toLowerCase()),"value-number"===e.type&&(t.unit=t.unit.toLowerCase()),"media-feature"!==e.type&&"media-keyword"!==e.type&&"media-type"!==e.type&&"media-unknown"!==e.type&&"media-url"!==e.type&&"media-value"!==e.type&&"selector-attribute"!==e.type&&"selector-string"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"value-string"!==e.type||!t.value||(t.value=t.value.replace(/'/g,'"').replace(/\\([^a-fA-F\d])/g,"$1")),"selector-attribute"===e.type&&(t.attribute=t.attribute.trim(),t.namespace&&"string"===typeof t.namespace&&(t.namespace=t.namespace.trim(),0===t.namespace.length&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^['"]|['"]$/g,""),delete t.quoted)),"media-value"!==e.type&&"media-type"!==e.type&&"value-number"!==e.type&&"selector-root-invalid"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"selector-tag"!==e.type||!t.value||(t.value=t.value.replace(/([\d.eE+-]+)([a-zA-Z]*)/g,(e,t,n)=>{const r=Number(t);return isNaN(r)?e:r+n.toLowerCase()})),"selector-tag"===e.type){const n=e.value.toLowerCase();["from","to"].includes(n)&&(t.value=n)}"css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value};const{builders:{hardline:Hs,literalline:Xs,concat:Ys,markAsRoot:Ks},utils:{mapDoc:Qs}}=So;var Zs=function(e,t,n){const r=e.getValue();return"yaml"===r.type?Ks(Ys(["---",Hs,r.value.trim()?function(e){return Qs(e,e=>"string"===typeof e&&e.includes("\n")?Ys(e.split(/(\n)/g).map((e,t)=>t%2===0?e:Xs)):e)}(n(r.value,{parser:"yaml"})):"","---",Hs])):null};const ei=e=>{if("string"!==typeof e)throw new TypeError("Expected a string");const t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;const n=t.filter(e=>"\r\n"===e).length;return n>t.length-n?"\r\n":"\n"};var ti=ei;ti.graceful=e=>"string"===typeof e&&ei(e)||"\n";var ni=Qe((function(e,t){function n(){const e=Bn;return n=function(){return e},e}function r(){const e=(t=ti)&&t.__esModule?t:{default:t};var t;return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){const t=e.match(o);return t?t[0].trimLeft():""},t.strip=function(e){const t=e.match(o);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return d(e).pragmas},t.parseWithComments=d,t.print=function({comments:e="",pragmas:t={}}){const u=(0,r().default)(e)||n().EOL,a=Object.keys(t),o=a.map(e=>f(e,t[e])).reduce((e,t)=>e.concat(t),[]).map(e=>" * "+e+u).join("");if(!e){if(0===a.length)return"";if(1===a.length&&!Array.isArray(t[a[0]])){const e=t[a[0]];return"".concat("/**"," ").concat(f(a[0],e)[0]).concat(" */")}}const s=e.split(u).map(e=>"".concat(" *"," ").concat(e)).join(u)+u;return"/**"+u+(e?s:"")+(e&&a.length?" *"+u:"")+o+" */"};const u=/\*\/$/,a=/^\/\*\*/,o=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,s=/(^|\s+)\/\/([^\r\n]*)/g,i=/^(\r?\n)+/,l=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,c=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g;function d(e){const t=(0,r().default)(e)||n().EOL;e=e.replace(a,"").replace(u,"").replace(p,"$1");let o="";for(;o!==e;)o=e,e=e.replace(l,"".concat(t,"$1 $2").concat(t));e=e.replace(i,"").trimRight();const d=Object.create(null),f=e.replace(c,"").replace(i,"").trimRight();let h;for(;h=c.exec(e);){const e=h[2].replace(s,"");"string"===typeof d[h[1]]||Array.isArray(d[h[1]])?d[h[1]]=[].concat(d[h[1]],e):d[h[1]]=e}return{comments:f,pragmas:d}}function f(e,t){return[].concat(t).map(t=>"@".concat(e," ").concat(t).trim())}}));Ke(ni),ni.extract,ni.strip,ni.parse,ni.parseWithComments,ni.print;var ri={hasPragma:function(e){const t=Object.keys(ni.parse(ni.extract(e)));return t.includes("prettier")||t.includes("format")},insertPragma:function(e){const t=ni.parseWithComments(ni.extract(e)),n=Object.assign({format:""},t.pragmas),r=ni.print({pragmas:n,comments:t.comments.replace(/^(\s+?\r?\n)+/,"")}).replace(/(\r\n|\r)/g,"\n"),u=ni.strip(e);return r+(u.startsWith("\n")?"\n":"\n\n")+u}};const ui={"---":"yaml","+++":"toml"};var ai=function(e){const t=Object.keys(ui).map(Na).join("|"),n=e.match(new RegExp("^(".concat(t,")[^\\n\\S]*\\n(?:([\\s\\S]*?)\\n)?\\1[^\\n\\S]*(\\n|$)")));if(null===n)return{frontMatter:null,content:e};const[r,u,a]=n;return{frontMatter:{type:ui[u],value:a,raw:r.replace(/\n$/,"")},content:r.replace(/[^\n]/g," ")+e.slice(r.length)}},oi={hasPragma:function(e){return ri.hasPragma(ai(e).content)},insertPragma:function(e){const{frontMatter:t,content:n}=ai(e);return(t?t.raw+"\n\n":"")+ri.insertPragma(n)}},si=function(e,t){let n=0;for(let r=0;r<e.line-1;++r)if(n=t.indexOf("\n",n)+1,-1===n)return-1;return n+e.column};const{getLast:ii,skipEverythingButNewLine:li}=no;var ci={calculateLoc:function e(t,n){if(t&&"object"===typeof t){t.source&&(t.source.startOffset=function(e,t){return e.source?si(e.source.start,t)-1:null}(t,n),t.source.endOffset=function(e,t){if("css-comment"===e.type&&e.inline)return li(t,e.source.startOffset);const n=e.nodes&&ii(e.nodes);return n&&e.source&&!e.source.end&&(e=n),e.source&&e.source.end?si(e.source.end,t):null}(t,n));for(const r in t)e(t[r],n)}},replaceQuotesInInlineComments:function(e){let t,n="initial",r="initial",u=!1;const a=[];for(let o=0;o<e.length;o++){const s=e[o];switch(n){case"initial":if("'"===s){n="single-quotes";continue}if('"'===s){n="double-quotes";continue}if(("u"===s||"U"===s)&&"url("===e.slice(o,o+4).toLowerCase()){n="url",o+=3;continue}if("*"===s&&"/"===e[o-1]){n="comment-block";continue}if("/"===s&&"/"===e[o-1]){n="comment-inline",t=o-1;continue}continue;case"single-quotes":if("'"===s&&"\\"!==e[o-1]&&(n=r,r="initial"),"\n"===s||"\r"===s)return e;continue;case"double-quotes":if('"'===s&&"\\"!==e[o-1]&&(n=r,r="initial"),"\n"===s||"\r"===s)return e;continue;case"url":if(")"===s&&(n="initial"),"\n"===s||"\r"===s)return e;if("'"===s){n="single-quotes",r="url";continue}if('"'===s){n="double-quotes",r="url";continue}continue;case"comment-block":"/"===s&&"*"===e[o-1]&&(n="initial");continue;case"comment-inline":'"'!==s&&"'"!==s||(u=!0),"\n"!==s&&"\r"!==s||(u&&a.push([t,o]),n="initial",u=!1);continue}}for(const[o,s]of a)e=e.slice(0,o)+e.slice(o,s).replace(/'/g,"\ufffe").replace(/"/g,"\uffff")+e.slice(s);return e},restoreQuotesInInlineComments:function(e){return e.replace(/\ufffe/g,"'").replace(/\uffff/g,'"')}};const pi=["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"];function di(e,t){const n=[].concat(t);let r,u=-1;for(;r=e.getParentNode(++u);)if(n.includes(r.type))return u;return-1}function fi(e,t){const n=di(e,t);return-1===n?null:e.getParentNode(n)}function hi(e){return"value-operator"===e.type&&"*"===e.value}function mi(e){return"value-operator"===e.type&&"/"===e.value}function Di(e){return"value-operator"===e.type&&"+"===e.value}function gi(e){return"value-operator"===e.type&&"-"===e.value}function yi(e){return"value-operator"===e.type&&"%"===e.value}function Ei(e){return"value-comma_group"===e.type&&e.groups&&e.groups[1]&&"value-colon"===e.groups[1].type}function Ci(e){return"value-paren_group"===e.type&&e.groups&&e.groups[0]&&Ei(e.groups[0])}var bi={getAncestorCounter:di,getAncestorNode:fi,getPropOfDeclNode:function(e){const t=fi(e,"css-decl");return t&&t.prop&&t.prop.toLowerCase()},maybeToLowerCase:function(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()},insideValueFunctionNode:function(e,t){const n=fi(e,"value-func");return n&&n.value&&n.value.toLowerCase()===t},insideICSSRuleNode:function(e){const t=fi(e,"css-rule");return t&&t.raws&&t.raws.selector&&(t.raws.selector.startsWith(":import")||t.raws.selector.startsWith(":export"))},insideAtRuleNode:function(e,t){const n=[].concat(t),r=fi(e,"css-atrule");return r&&n.includes(r.name.toLowerCase())},insideURLFunctionInImportAtRuleNode:function(e){const t=e.getValue(),n=fi(e,"css-atrule");return n&&"import"===n.name&&"url"===t.groups[0].value&&2===t.groups.length},isKeyframeAtRuleKeywords:function(e,t){const n=fi(e,"css-atrule");return n&&n.name&&n.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(t.toLowerCase())},isWideKeywords:function(e){return["initial","inherit","unset","revert"].includes(e.toLowerCase())},isSCSS:function(e,t){return"less"===e||"scss"===e?"scss"===e:/(\w\s*:\s*[^}:]+|#){|@import[^\n]+(?:url|,)/.test(t)},isLastNode:function(e,t){const n=e.getParentNode();if(!n)return!1;const{nodes:r}=n;return r&&r.indexOf(t)===r.length-1},isLessParser:function(e){return"css"===e.parser||"less"===e.parser},isSCSSControlDirectiveNode:function(e){return"css-atrule"===e.type&&["if","else","for","each","while"].includes(e.name)},isDetachedRulesetDeclarationNode:function(e){return!!e.selector&&("string"===typeof e.selector&&/^@.+:.*$/.test(e.selector)||e.selector.value&&/^@.+:.*$/.test(e.selector.value))},isRelationalOperatorNode:function(e){return"value-word"===e.type&&["<",">","<=",">="].includes(e.value)},isEqualityOperatorNode:function(e){return"value-word"===e.type&&["==","!="].includes(e.value)},isMultiplicationNode:hi,isDivisionNode:mi,isAdditionNode:Di,isSubtractionNode:gi,isModuloNode:yi,isMathOperatorNode:function(e){return hi(e)||mi(e)||Di(e)||gi(e)||yi(e)},isEachKeywordNode:function(e){return"value-word"===e.type&&"in"===e.value},isForKeywordNode:function(e){return"value-word"===e.type&&["from","through","end"].includes(e.value)},isURLFunctionNode:function(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()},isIfElseKeywordNode:function(e){return"value-word"===e.type&&["and","or","not"].includes(e.value)},hasComposesNode:function(e){return e.value&&"value-root"===e.value.type&&e.value.group&&"value-value"===e.value.group.type&&"composes"===e.prop.toLowerCase()},hasParensAroundNode:function(e){return e.value&&e.value.group&&e.value.group.group&&"value-paren_group"===e.value.group.group.type&&null!==e.value.group.group.open&&null!==e.value.group.group.close},hasEmptyRawBefore:function(e){return e.raws&&""===e.raws.before},isSCSSNestedPropertyNode:function(e){return!!e.selector&&e.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*?\n/,"").trim().endsWith(":")},isDetachedRulesetCallNode:function(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},isTemplatePlaceholderNode:function(e){return e.name.startsWith("prettier-placeholder")},isTemplatePropNode:function(e){return e.prop.startsWith("@prettier-placeholder")},isPostcssSimpleVarNode:function(e,t){return"$$"===e.value&&"value-func"===e.type&&t&&"value-word"===t.type&&!t.raws.before},isKeyValuePairNode:Ei,isKeyValuePairInParenGroupNode:Ci,isSCSSMapItemNode:function(e){const t=e.getValue();if(0===t.groups.length)return!1;const n=e.getParentNode(1);if(!Ci(t)&&(!n||!Ci(n)))return!1;const r=fi(e,"css-decl");return!!(r&&r.prop&&r.prop.startsWith("$"))||!!Ci(n)||"value-func"===n.type},isInlineValueCommentNode:function(e){return"value-comment"===e.type&&e.inline},isHashNode:function(e){return"value-word"===e.type&&"#"===e.value},isLeftCurlyBraceNode:function(e){return"value-word"===e.type&&"{"===e.value},isRightCurlyBraceNode:function(e){return"value-word"===e.type&&"}"===e.value},isWordNode:function(e){return["value-word","value-atword"].includes(e.type)},isColonNode:function(e){return"value-colon"===e.type},isMediaAndSupportsKeywords:function(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())},isColorAdjusterFuncNode:function(e){return"value-func"===e.type&&pi.includes(e.value.toLowerCase())},lastLineHasInlineComment:function(e){return/\/\//.test(e.split(/[\r\n]/).pop())}};const{insertPragma:Ai}=oi,{printNumber:Fi,printString:vi,hasIgnoreComment:xi,hasNewline:Si}=no,{isNextLineEmpty:wi}=Yo,{restoreQuotesInInlineComments:Bi}=ci,{builders:{concat:Ti,join:ki,line:Ni,hardline:Oi,softline:Pi,group:Ii,fill:Mi,indent:_i,dedent:ji,ifBreak:Li},utils:{removeLines:Ri}}=So,{getAncestorNode:qi,getPropOfDeclNode:Vi,maybeToLowerCase:Wi,insideValueFunctionNode:Ui,insideICSSRuleNode:zi,insideAtRuleNode:$i,insideURLFunctionInImportAtRuleNode:Ji,isKeyframeAtRuleKeywords:Gi,isWideKeywords:Hi,isSCSS:Xi,isLastNode:Yi,isLessParser:Ki,isSCSSControlDirectiveNode:Qi,isDetachedRulesetDeclarationNode:Zi,isRelationalOperatorNode:el,isEqualityOperatorNode:tl,isMultiplicationNode:nl,isDivisionNode:rl,isAdditionNode:ul,isSubtractionNode:al,isMathOperatorNode:ol,isEachKeywordNode:sl,isForKeywordNode:il,isURLFunctionNode:ll,isIfElseKeywordNode:cl,hasComposesNode:pl,hasParensAroundNode:dl,hasEmptyRawBefore:fl,isKeyValuePairNode:hl,isDetachedRulesetCallNode:ml,isTemplatePlaceholderNode:Dl,isTemplatePropNode:gl,isPostcssSimpleVarNode:yl,isSCSSMapItemNode:El,isInlineValueCommentNode:Cl,isHashNode:bl,isLeftCurlyBraceNode:Al,isRightCurlyBraceNode:Fl,isWordNode:vl,isColonNode:xl,isMediaAndSupportsKeywords:Sl,isColorAdjusterFuncNode:wl,lastLineHasInlineComment:Bl}=bi;function Tl(e){switch(e.trailingComma){case"all":case"es5":return!0;case"none":default:return!1}}function kl(e,t,n){const r=e.getValue(),u=[];let a=0;return e.map(e=>{const o=r.nodes[a-1];if(o&&"css-comment"===o.type&&"prettier-ignore"===o.text.trim()){const n=e.getValue();u.push(t.originalText.slice(t.locStart(n),t.locEnd(n)))}else u.push(e.call(n));a!==r.nodes.length-1&&("css-comment"===r.nodes[a+1].type&&!Si(t.originalText,t.locStart(r.nodes[a+1]),{backwards:!0})&&"yaml"!==r.nodes[a].type&&"toml"!==r.nodes[a].type||"css-atrule"===r.nodes[a+1].type&&"else"===r.nodes[a+1].name&&"css-comment"!==r.nodes[a].type?u.push(" "):(u.push(t.__isHTMLStyleAttribute?Ni:Oi),wi(t.originalText,e.getValue(),t.locEnd)&&"yaml"!==r.nodes[a].type&&"toml"!==r.nodes[a].type&&u.push(Oi))),a++},"nodes"),Ti(u)}const Nl=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g,Ol=new RegExp(Nl.source+"|"+"(".concat(/[$@]?[a-zA-Z_\u0080-\uFFFF][\w\-\u0080-\uFFFF]*/g.source,")?")+"(".concat(/(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g.source,")")+"(".concat(/[a-zA-Z]+/g.source,")?"),"g");function Pl(e,t){return e.replace(Nl,e=>vi(e,t))}function Il(e,t){const n=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:n+e+n}function Ml(e){return e.replace(Ol,(e,t,n,r,u)=>!n&&r?_l(r)+Wi(u||""):e)}function _l(e){return Fi(e).replace(/\.0(?=$|e)/,"")}var jl={print:function(e,t,n){const r=e.getValue();if(!r)return"";if("string"===typeof r)return r;switch(r.type){case"yaml":case"toml":return Ti([r.raw,Oi]);case"css-root":{const r=kl(e,t,n);return r.parts.length?Ti([r,t.__isHTMLStyleAttribute?"":Oi]):r}case"css-comment":{const e=r.inline||r.raws.inline,n=t.originalText.slice(t.locStart(r),t.locEnd(r));return e?n.trimEnd():n}case"css-rule":return Ti([e.call(n,"selector"),r.important?" !important":"",r.nodes?Ti([r.selector&&"selector-unknown"===r.selector.type&&Bl(r.selector.value)?Ni:" ","{",r.nodes.length>0?_i(Ti([Oi,kl(e,t,n)])):"",Oi,"}",Zi(r)?";":""]):";"]);case"css-decl":{const u=e.getParentNode();return Ti([r.raws.before.replace(/[\s;]/g,""),zi(e)?r.prop:Wi(r.prop),":"===r.raws.between.trim()?":":r.raws.between.trim(),r.extend?"":" ",pl(r)?Ri(e.call(n,"value")):e.call(n,"value"),r.raws.important?r.raws.important.replace(/\s*!\s*important/i," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/i," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/i," !global"):r.scssGlobal?" !global":"",r.nodes?Ti([" {",_i(Ti([Pi,kl(e,t,n)])),Pi,"}"]):gl(r)&&!u.raws.semicolon&&";"!==t.originalText[t.locEnd(r)-1]?"":";"])}case"css-atrule":{const u=e.getParentNode(),a=Dl(r)&&!u.raws.semicolon&&";"!==t.originalText[t.locEnd(r)-1];if(Ki(t)){if(r.mixin)return Ti([e.call(n,"selector"),r.important?" !important":"",a?"":";"]);if(r.function)return Ti([r.name,Ti([e.call(n,"params")]),a?"":";"]);if(r.variable)return Ti(["@",r.name,": ",r.value?Ti([e.call(n,"value")]):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?Ti(["{",_i(Ti([r.nodes.length>0?Pi:"",kl(e,t,n)])),Pi,"}"]):"",a?"":";"])}return Ti(["@",ml(r)||r.name.endsWith(":")?r.name:Wi(r.name),r.params?Ti([ml(r)?"":Dl(r)?""===r.raws.afterName?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(r.raws.afterName)?Ti([Oi,Oi]):/^\s*\n/.test(r.raws.afterName)?Oi:" ":" ",e.call(n,"params")]):"",r.selector?_i(Ti([" ",e.call(n,"selector")])):"",r.value?Ii(Ti([" ",e.call(n,"value"),Qi(r)?dl(r)?" ":Ni:""])):"else"===r.name?" ":"",r.nodes?Ti([Qi(r)?"":" ","{",_i(Ti([r.nodes.length>0?Pi:"",kl(e,t,n)])),Pi,"}"]):a?"":";"])}case"media-query-list":{const t=[];return e.each(e=>{const r=e.getValue();"media-query"===r.type&&""===r.value||t.push(e.call(n))},"nodes"),Ii(_i(ki(Ni,t)))}case"media-query":return Ti([ki(" ",e.map(n,"nodes")),Yi(e,r)?"":","]);case"media-type":return Ml(Pl(r.value,t));case"media-feature-expression":return r.nodes?Ti(["(",Ti(e.map(n,"nodes")),")"]):r.value;case"media-feature":return Wi(Pl(r.value.replace(/ +/g," "),t));case"media-colon":return Ti([r.value," "]);case"media-value":return Ml(Pl(r.value,t));case"media-keyword":return Pl(r.value,t);case"media-url":return Pl(r.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":return r.value;case"selector-root":return Ii(Ti([$i(e,"custom-selector")?Ti([qi(e,"css-atrule").customSelector,Ni]):"",ki(Ti([",",$i(e,["extend","custom-selector","nest"])?Ni:Oi]),e.map(n,"nodes"))]));case"selector-selector":return Ii(_i(Ti(e.map(n,"nodes"))));case"selector-comment":return r.value;case"selector-string":return Pl(r.value,t);case"selector-tag":{const t=e.getParentNode(),n=t&&t.nodes.indexOf(r),u=n&&t.nodes[n-1];return Ti([r.namespace?Ti([!0===r.namespace?"":r.namespace.trim(),"|"]):"","selector-nesting"===u.type?r.value:Ml(Gi(e,r.value)?r.value.toLowerCase():r.value)])}case"selector-id":return Ti(["#",r.value]);case"selector-class":return Ti([".",Ml(Pl(r.value,t))]);case"selector-attribute":return Ti(["[",r.namespace?Ti([!0===r.namespace?"":r.namespace.trim(),"|"]):"",r.attribute.trim(),r.operator?r.operator:"",r.value?Il(Pl(r.value.trim(),t),t):"",r.insensitive?" i":"","]"]);case"selector-combinator":{if("+"===r.value||">"===r.value||"~"===r.value||">>>"===r.value){const t=e.getParentNode(),n="selector-selector"===t.type&&t.nodes[0]===r?"":Ni;return Ti([n,r.value,Yi(e,r)?"":" "])}const n=r.value.trim().startsWith("(")?Ni:"",u=Ml(Pl(r.value.trim(),t))||Ni;return Ti([n,u])}case"selector-universal":return Ti([r.namespace?Ti([!0===r.namespace?"":r.namespace.trim(),"|"]):"",r.value]);case"selector-pseudo":return Ti([Wi(r.value),r.nodes&&r.nodes.length>0?Ti(["(",ki(", ",e.map(n,"nodes")),")"]):""]);case"selector-nesting":return r.value;case"selector-unknown":{const n=qi(e,"css-rule");if(n&&n.isSCSSNesterProperty)return Ml(Pl(Wi(r.value),t));const u=e.getParentNode();if(u.raws&&u.raws.selector){const e=t.locStart(u),n=e+u.raws.selector.length;return t.originalText.slice(e,n).trim()}return r.value}case"value-value":case"value-root":return e.call(n,"group");case"value-comment":return Ti([r.inline?"//":"/*",Bi(r.value),r.inline?"":"*/"]);case"value-comma_group":{const t=e.getParentNode(),u=e.getParentNode(1),a=Vi(e),o=a&&"value-value"===t.type&&("grid"===a||a.startsWith("grid-template")),s=qi(e,"css-atrule"),i=s&&Qi(s),l=e.map(n,"groups"),c=[],p=Ui(e,"url");let d=!1,f=!1;for(let n=0;n<r.groups.length;++n){c.push(l[n]);const t=r.groups[n-1],a=r.groups[n],h=r.groups[n+1],m=r.groups[n+2];if(p){(h&&ul(h)||ul(a))&&c.push(" ");continue}if(!h)continue;if(!t&&"--"===a.value&&"value-atword"===h.type)continue;const D="value-string"===a.type&&a.value.startsWith("#{"),g=d&&"value-string"===h.type&&h.value.endsWith("}");if(D||g){d=!d;continue}if(d)continue;if(xl(a)||xl(h))continue;if("value-atword"===a.type&&""===a.value)continue;if("~"===a.value)continue;if(a.value&&a.value.includes("\\")&&h&&"value-comment"!==h.type)continue;if(t&&t.value&&t.value.indexOf("\\")===t.value.length-1&&"value-operator"===a.type&&"/"===a.value)continue;if("\\"===a.value)continue;if(yl(a,h))continue;if(bl(a)||Al(a)||Fl(h)||Al(h)&&fl(h)||Fl(a)&&fl(h))continue;if("--"===a.value&&bl(h))continue;const y=ol(a),E=ol(h);if((y&&bl(h)||E&&Fl(a))&&fl(h))continue;if(Ui(e,"calc")&&(ul(a)||ul(h)||al(a)||al(h))&&fl(h))continue;const C=(ul(a)||al(a))&&0===n&&("value-number"===h.type||h.isHex)&&u&&wl(u)&&!fl(h),b=m&&"value-func"===m.type||m&&vl(m)||"value-func"===a.type||vl(a),A="value-func"===h.type||vl(h)||t&&"value-func"===t.type||t&&vl(t);(nl(h)||nl(a)||Ui(e,"calc")||C||!(rl(h)&&!b||rl(a)&&!A||ul(h)&&!b||ul(a)&&!A||al(h)||al(a))||!(fl(h)||y&&(!t||t&&ol(t))))&&(Cl(a)?c.push(Oi):i&&(tl(h)||el(h)||cl(h)||sl(a)||il(a))||s&&"namespace"===s.name.toLowerCase()?c.push(" "):o?a.source&&h.source&&a.source.start.line!==h.source.start.line?(c.push(Oi),f=!0):c.push(" "):E?c.push(" "):c.push(Ni))}return f&&c.unshift(Oi),i?Ii(_i(Ti(c))):Ji(e)?Ii(Mi(c)):Ii(_i(Mi(c)))}case"value-paren_group":{const u=e.getParentNode();if(u&&ll(u)&&(1===r.groups.length||r.groups.length>0&&"value-comma_group"===r.groups[0].type&&r.groups[0].groups.length>0&&"value-word"===r.groups[0].groups[0].type&&r.groups[0].groups[0].value.startsWith("data:")))return Ti([r.open?e.call(n,"open"):"",ki(",",e.map(n,"groups")),r.close?e.call(n,"close"):""]);if(!r.open){const t=e.map(n,"groups"),r=[];for(let e=0;e<t.length;e++)0!==e&&r.push(Ti([",",Ni])),r.push(t[e]);return Ii(_i(Mi(r)))}const a=El(e),o=r.groups[r.groups.length-1],s=o&&"value-comment"===o.type;return Ii(Ti([r.open?e.call(n,"open"):"",_i(Ti([Pi,ki(Ti([",",Ni]),e.map(e=>{const t=e.getValue(),r=n(e);return hl(t)&&"value-comma_group"===t.type&&t.groups&&t.groups[2]&&"value-paren_group"===t.groups[2].type?(r.contents.contents.parts[1]=Ii(r.contents.contents.parts[1]),Ii(ji(r))):r},"groups"))])),Li(!s&&Xi(t.parser,t.originalText)&&a&&Tl(t)?",":""),Pi,r.close?e.call(n,"close"):""]),{shouldBreak:a})}case"value-func":return Ti([r.value,$i(e,"supports")&&Sl(r)?" ":"",e.call(n,"group")]);case"value-paren":return r.value;case"value-number":return Ti([_l(r.value),Wi(r.unit)]);case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||Hi(r.value)?r.value.toLowerCase():r.value;case"value-colon":return Ti([r.value,Ui(e,"url")?"":Ni]);case"value-comma":return Ti([r.value," "]);case"value-string":return vi(r.raws.quote+r.value+r.raws.quote,t);case"value-atword":return Ti(["@",r.value]);case"value-unicode-range":case"value-unknown":return r.value;default:throw new Error("Unknown postcss type ".concat(JSON.stringify(r.type)))}},embed:Zs,insertPragma:Ai,hasPrettierIgnore:xi,massageAstNode:Gs},Ll={bracketSpacing:{since:"0.0.0",category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:"Common",type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]}},Rl={singleQuote:Ll.singleQuote},ql=function(e,t){const{languageId:n}=e,r=st(e,["languageId"]);return Object.assign({linguistLanguageId:n},r,{},t(e))},Vl=[".css"],Wl={name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:Vl,languageId:50},Ul=Object.freeze({__proto__:null,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:Vl,languageId:50,default:Wl}),zl=[".pcss",".postcss"],$l={name:"PostCSS",type:"markup",tmScope:"source.postcss",group:"CSS",extensions:zl,aceMode:"text",languageId:262764437},Jl=Object.freeze({__proto__:null,name:"PostCSS",type:"markup",tmScope:"source.postcss",group:"CSS",extensions:zl,aceMode:"text",languageId:262764437,default:$l}),Gl=[".less"],Hl={name:"Less",type:"markup",group:"CSS",extensions:Gl,tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198},Xl=Object.freeze({__proto__:null,name:"Less",type:"markup",group:"CSS",extensions:Gl,tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198,default:Hl}),Yl=[".scss"],Kl={name:"SCSS",type:"markup",tmScope:"source.css.scss",group:"CSS",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:Yl,languageId:329},Ql=Object.freeze({__proto__:null,name:"SCSS",type:"markup",tmScope:"source.css.scss",group:"CSS",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:Yl,languageId:329,default:Kl}),Zl=Ze(Ul),ec=Ze(Jl),tc=Ze(Xl),nc=Ze(Ql),rc={languages:[ql(Zl,()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"]})),ql(ec,()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]})),ql(tc,()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]})),ql(nc,()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}))],options:Rl,printers:{postcss:jl}},uc={hasPragma:function(e){return/^\s*#[^\n\S]*@(format|prettier)\s*(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n"+e}};const{concat:ac,join:oc,hardline:sc,line:ic,softline:lc,group:cc,indent:pc,ifBreak:dc}=So.builders,{hasIgnoreComment:fc}=no,{isNextLineEmpty:hc}=Yo,{insertPragma:mc}=uc;function Dc(e,t,n){return 0===n.directives.length?"":ac([" ",cc(pc(ac([lc,oc(ac([dc(""," "),lc]),e.map(t,"directives"))])))])}function gc(e,t,n){const r=e.getValue().length;return e.map((e,u)=>{const a=n(e);return hc(t.originalText,e.getValue(),t.locEnd)&&u<r-1?ac([a,sc]):a})}function yc(e,t,n){return","===n.originalText.slice(e.loc.end,t.loc.start).replace(/#.*/g,"").trim()?", ":" & "}function Ec(e,t,n){const r=e.getNode(),u=[],{interfaces:a}=r,o=e.map(e=>n(e),"interfaces");for(let s=0;s<a.length;s++){const e=a[s];s>0&&u.push(yc(a[s-1],e,t)),u.push(o[s])}return u}var Cc={print:function(e,t,n){const r=e.getValue();if(!r)return"";if("string"===typeof r)return r;switch(r.kind){case"Document":{const u=[];return e.map((e,a)=>{u.push(ac([e.call(n)])),a!==r.definitions.length-1&&(u.push(sc),hc(t.originalText,e.getValue(),t.locEnd)&&u.push(sc))},"definitions"),ac([ac(u),sc])}case"OperationDefinition":{const u="{"!==t.originalText[t.locStart(r)],a=!!r.name;return ac([u?r.operation:"",u&&a?ac([" ",e.call(n,"name")]):"",r.variableDefinitions&&r.variableDefinitions.length?cc(ac(["(",pc(ac([lc,oc(ac([dc("",", "),lc]),e.map(n,"variableDefinitions"))])),lc,")"])):"",Dc(e,n,r),r.selectionSet&&(u||a)?" ":"",e.call(n,"selectionSet")])}case"FragmentDefinition":return ac(["fragment ",e.call(n,"name"),r.variableDefinitions&&r.variableDefinitions.length?cc(ac(["(",pc(ac([lc,oc(ac([dc("",", "),lc]),e.map(n,"variableDefinitions"))])),lc,")"])):""," on ",e.call(n,"typeCondition"),Dc(e,n,r)," ",e.call(n,"selectionSet")]);case"SelectionSet":return ac(["{",pc(ac([sc,oc(sc,e.call(e=>gc(e,t,n),"selections"))])),sc,"}"]);case"Field":return cc(ac([r.alias?ac([e.call(n,"alias"),": "]):"",e.call(n,"name"),r.arguments.length>0?cc(ac(["(",pc(ac([lc,oc(ac([dc("",", "),lc]),e.call(e=>gc(e,t,n),"arguments"))])),lc,")"])):"",Dc(e,n,r),r.selectionSet?" ":"",e.call(n,"selectionSet")]));case"Name":return r.value;case"StringValue":return r.block?ac(['"""',sc,oc(sc,r.value.replace(/"""/g,"\\$&").split("\n")),sc,'"""']):ac(['"',r.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']);case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return ac(["$",e.call(n,"name")]);case"ListValue":return cc(ac(["[",pc(ac([lc,oc(ac([dc("",", "),lc]),e.map(n,"values"))])),lc,"]"]));case"ObjectValue":return cc(ac(["{",t.bracketSpacing&&r.fields.length>0?" ":"",pc(ac([lc,oc(ac([dc("",", "),lc]),e.map(n,"fields"))])),lc,dc("",t.bracketSpacing&&r.fields.length>0?" ":""),"}"]));case"ObjectField":case"Argument":return ac([e.call(n,"name"),": ",e.call(n,"value")]);case"Directive":return ac(["@",e.call(n,"name"),r.arguments.length>0?cc(ac(["(",pc(ac([lc,oc(ac([dc("",", "),lc]),e.call(e=>gc(e,t,n),"arguments"))])),lc,")"])):""]);case"NamedType":return e.call(n,"name");case"VariableDefinition":return ac([e.call(n,"variable"),": ",e.call(n,"type"),r.defaultValue?ac([" = ",e.call(n,"defaultValue")]):"",Dc(e,n,r)]);case"TypeExtensionDefinition":return ac(["extend ",e.call(n,"definition")]);case"ObjectTypeExtension":case"ObjectTypeDefinition":return ac([e.call(n,"description"),r.description?sc:"","ObjectTypeExtension"===r.kind?"extend ":"","type ",e.call(n,"name"),r.interfaces.length>0?ac([" implements ",ac(Ec(e,t,n))]):"",Dc(e,n,r),r.fields.length>0?ac([" {",pc(ac([sc,oc(sc,e.call(e=>gc(e,t,n),"fields"))])),sc,"}"]):""]);case"FieldDefinition":return ac([e.call(n,"description"),r.description?sc:"",e.call(n,"name"),r.arguments.length>0?cc(ac(["(",pc(ac([lc,oc(ac([dc("",", "),lc]),e.call(e=>gc(e,t,n),"arguments"))])),lc,")"])):"",": ",e.call(n,"type"),Dc(e,n,r)]);case"DirectiveDefinition":return ac([e.call(n,"description"),r.description?sc:"","directive ","@",e.call(n,"name"),r.arguments.length>0?cc(ac(["(",pc(ac([lc,oc(ac([dc("",", "),lc]),e.call(e=>gc(e,t,n),"arguments"))])),lc,")"])):"",r.repeatable?" repeatable":"",ac([" on ",oc(" | ",e.map(n,"locations"))])]);case"EnumTypeExtension":case"EnumTypeDefinition":return ac([e.call(n,"description"),r.description?sc:"","EnumTypeExtension"===r.kind?"extend ":"","enum ",e.call(n,"name"),Dc(e,n,r),r.values.length>0?ac([" {",pc(ac([sc,oc(sc,e.call(e=>gc(e,t,n),"values"))])),sc,"}"]):""]);case"EnumValueDefinition":return ac([e.call(n,"description"),r.description?sc:"",e.call(n,"name"),Dc(e,n,r)]);case"InputValueDefinition":return ac([e.call(n,"description"),r.description?r.description.block?sc:ic:"",e.call(n,"name"),": ",e.call(n,"type"),r.defaultValue?ac([" = ",e.call(n,"defaultValue")]):"",Dc(e,n,r)]);case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return ac([e.call(n,"description"),r.description?sc:"","InputObjectTypeExtension"===r.kind?"extend ":"","input ",e.call(n,"name"),Dc(e,n,r),r.fields.length>0?ac([" {",pc(ac([sc,oc(sc,e.call(e=>gc(e,t,n),"fields"))])),sc,"}"]):""]);case"SchemaDefinition":return ac(["schema",Dc(e,n,r)," {",r.operationTypes.length>0?pc(ac([sc,oc(sc,e.call(e=>gc(e,t,n),"operationTypes"))])):"",sc,"}"]);case"OperationTypeDefinition":return ac([e.call(n,"operation"),": ",e.call(n,"type")]);case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return ac([e.call(n,"description"),r.description?sc:"","InterfaceTypeExtension"===r.kind?"extend ":"","interface ",e.call(n,"name"),Dc(e,n,r),r.fields.length>0?ac([" {",pc(ac([sc,oc(sc,e.call(e=>gc(e,t,n),"fields"))])),sc,"}"]):""]);case"FragmentSpread":return ac(["...",e.call(n,"name"),Dc(e,n,r)]);case"InlineFragment":return ac(["...",r.typeCondition?ac([" on ",e.call(n,"typeCondition")]):"",Dc(e,n,r)," ",e.call(n,"selectionSet")]);case"UnionTypeExtension":case"UnionTypeDefinition":return cc(ac([e.call(n,"description"),r.description?sc:"",cc(ac(["UnionTypeExtension"===r.kind?"extend ":"","union ",e.call(n,"name"),Dc(e,n,r),r.types.length>0?ac([" =",dc(""," "),pc(ac([dc(ac([ic," "])),oc(ac([ic,"| "]),e.map(n,"types"))]))]):""]))]));case"ScalarTypeExtension":case"ScalarTypeDefinition":return ac([e.call(n,"description"),r.description?sc:"","ScalarTypeExtension"===r.kind?"extend ":"","scalar ",e.call(n,"name"),Dc(e,n,r)]);case"NonNullType":return ac([e.call(n,"type"),"!"]);case"ListType":return ac(["[",e.call(n,"type"),"]"]);default:throw new Error("unknown graphql type: "+JSON.stringify(r.kind))}},massageAstNode:function(e,t){delete t.loc,delete t.comments},hasPrettierIgnore:fc,insertPragma:mc,printComment:function(e){const t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return e.kind&&"Comment"!==e.kind}},bc={bracketSpacing:Ll.bracketSpacing},Ac=[".graphql",".gql",".graphqls"],Fc={name:"GraphQL",type:"data",extensions:Ac,tmScope:"source.graphql",aceMode:"text",languageId:139},vc={languages:[ql(Ze(Object.freeze({__proto__:null,name:"GraphQL",type:"data",extensions:Ac,tmScope:"source.graphql",aceMode:"text",languageId:139,default:Fc})),()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}))],options:bc,printers:{graphql:Cc}};function xc(e,t){return e&&t.some(t=>e.type===t)}function Sc(e,t){const n=e.getValue(),r=e.getParentNode(0)||{},u=r.children||r.body||[],a=u.indexOf(n);return-1!==a&&u[a+t]}function wc(e,t=1){return Sc(e,-t)}function Bc(e){return Sc(e,1)}function Tc(e){return xc(e,["MustacheCommentStatement"])&&"string"===typeof e.value&&"prettier-ignore"===e.value.trim()}var kc={getNextNode:Bc,getPreviousNode:wc,hasPrettierIgnore:function(e){const t=e.getValue(),n=wc(e,2);return Tc(t)||Tc(n)},isGlimmerComponent:function(e){return xc(e,["ElementNode"])&&"string"===typeof e.tag&&(function(e){return e.toUpperCase()===e}(e.tag[0])||e.tag.includes("."))},isNextNodeOfSomeType:function(e,t){return xc(Bc(e),t)},isNodeOfSomeType:xc,isParentOfSomeType:function(e,t){return xc(e.getParentNode(0),t)},isPreviousNodeOfSomeType:function(e,t){return xc(wc(e),t)},isWhitespaceNode:function(e){return xc(e,["TextNode"])&&!/\S/.test(e.chars)}};const{concat:Nc,join:Oc,softline:Pc,hardline:Ic,line:Mc,group:_c,indent:jc,ifBreak:Lc}=So.builders,{getNextNode:Rc,getPreviousNode:qc,hasPrettierIgnore:Vc,isGlimmerComponent:Wc,isNextNodeOfSomeType:Uc,isParentOfSomeType:zc,isPreviousNodeOfSomeType:$c,isWhitespaceNode:Jc}=kc,Gc=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function Hc(e,t,n){return Nc(e.map((r,u)=>{const a=e.getValue(),o=0===u,s=u===e.getParentNode(0).children.length-1&&!o;return Jc(a)&&s?n(r,t,n):o?Nc([Pc,n(r,t,n)]):n(r,t,n)},"children"))}function Xc(e,t){const n={quote:'"',regex:/"/g},r={quote:"'",regex:/'/g},u=t.singleQuote?r:n,a=u===r?n:r;let o=!1;(e.includes(u.quote)||e.includes(a.quote))&&(o=(e.match(u.regex)||[]).length>(e.match(a.regex)||[]).length);const s=o?a:u,i=e.replace(s.regex,"\\".concat(s.quote));return Nc([s.quote,i,s.quote])}function Yc(e,t){return e.call(t,"path")}function Kc(e,t){const n=e.getValue();let r=[];return n.params.length>0&&(r=r.concat(e.map(t,"params"))),n.hash&&n.hash.pairs.length>0&&r.push(e.call(t,"hash")),r}function Qc(e,t){const n=[Yc(e,t),...Kc(e,t)];return jc(_c(Oc(Mc,n)))}function Zc(e){const t=e.getValue();return t.program&&t.program.blockParams.length?Nc([" as |",t.program.blockParams.join(" "),"|"]):""}function ep(e,t,{open:n=!1,close:r=!1}={}){return _c(Nc([n?"{{~#":"{{#",Qc(e,t),Zc(e),Pc,r?"~}}":"}}"]))}function tp(e,t,{open:n=!1,close:r=!1}={}){return Nc([n?"{{~/":"{{/",e.call(t,"path"),r?"~}}":"}}"])}function np(e){return(e="string"===typeof e?e:"").split("\n").length-1}function rp(e=0,t=0){return new Array(Math.min(e,t)).fill(Ic)}function up(e,t,n){let r=0,u=0;for(;;){if(u===e.length)return null;let a=e.indexOf("\n",u);if(-1===a&&(a=e.length),r===t)return u+n>a?null:u+n;if(-1===a)return null;r+=1,u=a+1}}var ap={print:function(e,t,n){const r=e.getValue();if(!r)return"";if(Vc(e)){const e=up(t.originalText,r.loc.start.line-1,r.loc.start.column),n=up(t.originalText,r.loc.end.line-1,r.loc.end.column);return t.originalText.slice(e,n)}switch(r.type){case"Block":case"Program":case"Template":return _c(Nc(e.map(n,"body")));case"ElementNode":{const u=r.children.length>0,a=r.children.some(e=>!Jc(e)),o=Wc(r)&&(!u||!a)||Gc.includes(r.tag),s=o?Nc([" />",Pc]):">",i=o?"/>":">",l=(e,t)=>jc(Nc([r.attributes.length?Mc:"",Oc(Mc,e.map(t,"attributes")),r.modifiers.length?Mc:"",Oc(Mc,e.map(t,"modifiers")),r.comments.length?Mc:"",Oc(Mc,e.map(t,"comments"))])),c=Rc(e);return Nc([_c(Nc(["<",r.tag,l(e,n),r.blockParams.length?" as |".concat(r.blockParams.join(" "),"|"):"",Lc(Pc,""),Lc(i,s)])),o?"":_c(Nc([a?jc(Hc(e,t,n)):"",Lc(u?Ic:"",""),Nc(["</",r.tag,">"])])),c&&"ElementNode"===c.type?Ic:""])}case"BlockStatement":{const t=e.getParentNode(1),u=t&&t.inverse&&1===t.inverse.body.length&&t.inverse.body[0]===r&&"if"===t.inverse.body[0].path.parts[0],a=r.inverse&&1===r.inverse.body.length&&"BlockStatement"===r.inverse.body[0].type&&"if"===r.inverse.body[0].path.parts[0],o=a?e=>e:jc,s=(r.inverseStrip.open?"{{~":"{{")+"else"+(r.inverseStrip.close?"~}}":"}}");if(r.inverse)return Nc([u?Nc([r.openStrip.open?"{{~else ":"{{else ",Qc(e,n),r.openStrip.close?"~}}":"}}"]):ep(e,n,r.openStrip),jc(Nc([Ic,e.call(n,"program")])),r.inverse&&!a?Nc([Ic,s]):"",r.inverse?o(Nc([Ic,e.call(n,"inverse")])):"",u?"":Nc([Ic,tp(e,n,r.closeStrip)])]);if(u)return Nc([Nc([r.openStrip.open?"{{~else":"{{else ",Qc(e,n),r.openStrip.close?"~}}":"}}"]),jc(Nc([Ic,e.call(n,"program")]))]);const i=r.program.body.some(e=>!Jc(e));return Nc([ep(e,n,r.openStrip),_c(Nc([jc(Nc([Pc,e.call(n,"program")])),i?Ic:Pc,tp(e,n,r.closeStrip)]))])}case"ElementModifierStatement":return _c(Nc(["{{",Qc(e,n),Pc,"}}"]));case"MustacheStatement":{const t=!1===r.escaped,{open:u,close:a}=r.strip,o=(t?"{{{":"{{")+(u?"~":""),s=(a?"~":"")+(t?"}}}":"}}"),i=zc(e,["AttrNode","ConcatStatement","ElementNode"])?[o,jc(Pc)]:[o];return _c(Nc([...i,Qc(e,n),Pc,s]))}case"SubExpression":{const t=Kc(e,n),r=t.length>0?jc(Nc([Mc,_c(Oc(Mc,t))])):"";return _c(Nc(["(",Yc(e,n),r,Pc,")"]))}case"AttrNode":{const u="TextNode"===r.value.type;if(u&&""===r.value.chars&&r.value.loc.start.column===r.value.loc.end.column)return Nc([r.name]);const a=e.call(n,"value"),o=u?Xc(a.parts.join(),t):a;return Nc([r.name,"=",o])}case"ConcatStatement":return Nc(['"',Nc(e.map(e=>n(e),"parts").filter(e=>""!==e)),'"']);case"Hash":return Nc([Oc(Mc,e.map(n,"pairs"))]);case"HashPair":return Nc([r.key,"=",e.call(n,"value")]);case"TextNode":{const t=2,n=!qc(e),u=!Rc(e),a=!/\S/.test(r.chars),o=np(r.chars),s="Block"===e.getParentNode(0).type,i="ElementNode"===e.getParentNode(0).type,l="Template"===e.getParentNode(0).type;let c=function(e){return np(((e="string"===typeof e?e:"").match(/^([^\S\r\n]*[\r\n])+/g)||[])[0]||"")}(r.chars),p=function(e){return np(((e="string"===typeof e?e:"").match(/([\r\n][^\S\r\n]*)+$/g)||[])[0]||"")}(r.chars);if((n||u)&&a&&(s||i||l))return"";a&&o?(c=Math.min(o,t),p=0):(Uc(e,["BlockStatement","ElementNode"])&&(p=Math.max(p,1)),($c(e,["ElementNode"])||$c(e,["BlockStatement"]))&&(c=Math.max(c,1)));let d="",f="";if(e.stack.includes("attributes")){const t=e.getParentNode(0);if("ConcatStatement"===t.type){const{parts:e}=t,n=e.indexOf(r);n>0&&"MustacheStatement"===e[n-1].type&&(d=" "),n<e.length-1&&"MustacheStatement"===e[n+1].type&&(f=" ")}}else 0===p&&Uc(e,["MustacheStatement"])&&(f=" "),0===c&&$c(e,["MustacheStatement"])&&(d=" "),n&&(c=0,d=""),u&&(p=0,f="");return Nc([...rp(c,t),r.chars.replace(/^[\s ]+/g,d).replace(/[\s ]+$/,f),...rp(p,t)].filter(Boolean))}case"MustacheCommentStatement":{const e=r.value.includes("}}")?"--":"";return Nc(["{{!",e,r.value,e,"}}"])}case"PathExpression":return r.original;case"BooleanLiteral":return String(r.value);case"CommentStatement":return Nc(["\x3c!--",r.value,"--\x3e"]);case"StringLiteral":return Xc(r.value,t);case"NumberLiteral":return String(r.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(r.type))}},massageAstNode:function(e,t){if(delete t.loc,delete t.selfClosing,"TextNode"===e.type){const n=e.chars.trim();if(!n)return null;t.chars=n}}},op=["hbs","htmlbars"],sp=[".handlebars",".hbs"],ip={name:"Handlebars",type:"markup",group:"HTML",aliases:op,extensions:sp,tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155},lp={languages:[ql(Ze(Object.freeze({__proto__:null,name:"Handlebars",type:"markup",group:"HTML",aliases:op,extensions:sp,tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155,default:ip})),()=>({since:null,parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}))],printers:{glimmer:ap}},cp=Object.freeze({__proto__:null,default:["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]}),pp=["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],dp=["title"],fp=["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],hp=["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],mp=["autoplay","controls","crossorigin","loop","muted","preload","src"],Dp=["href","target"],gp=["color","face","size"],yp=["dir"],Ep=["cite"],Cp=["alink","background","bgcolor","link","text","vlink"],bp=["clear"],Ap=["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],Fp=["height","width"],vp=["align"],xp=["align","char","charoff","span","valign","width"],Sp=["align","char","charoff","span","valign","width"],wp=["value"],Bp=["cite","datetime"],Tp=["open"],kp=["title"],Np=["open"],Op=["compact"],Pp=["align"],Ip=["compact"],Mp=["height","src","type","width"],_p=["disabled","form","name"],jp=["color","face","size"],Lp=["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],Rp=["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],qp=["cols","rows"],Vp=["align"],Wp=["align"],Up=["align"],zp=["align"],$p=["align"],Jp=["align"],Gp=["profile"],Hp=["align","noshade","size","width"],Xp=["manifest","version"],Yp=["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],Kp=["align","alt","border","crossorigin","decoding","height","hspace","ismap","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],Qp=["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],Zp=["cite","datetime"],ed=["prompt"],td=["accesskey","for","form"],nd=["accesskey","align"],rd=["type","value"],ud=["as","charset","color","crossorigin","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],ad=["name"],od=["compact"],sd=["charset","content","http-equiv","name","scheme"],id=["high","low","max","min","optimum","value"],ld=["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],cd=["compact","reversed","start","type"],pd=["disabled","label"],dd=["disabled","label","selected","value"],fd=["for","form","name"],hd=["align"],md=["name","type","value","valuetype"],Dd=["width"],gd=["max","value"],yd=["cite"],Ed=["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],Cd=["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],bd=["name"],Ad=["media","sizes","src","srcset","type"],Fd=["media","nonce","title","type"],vd=["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],xd=["align","char","charoff","valign"],Sd=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],wd=["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],Bd=["align","char","charoff","valign"],Td=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],kd=["align","char","charoff","valign"],Nd=["datetime"],Od=["align","bgcolor","char","charoff","valign"],Pd=["default","kind","label","src","srclang"],Id=["compact","type"],Md=["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"],_d={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:pp,abbr:dp,applet:fp,area:hp,audio:mp,base:Dp,basefont:gp,bdo:yp,blockquote:Ep,body:Cp,br:bp,button:Ap,canvas:Fp,caption:vp,col:xp,colgroup:Sp,data:wp,del:Bp,details:Tp,dfn:kp,dialog:Np,dir:Op,div:Pp,dl:Ip,embed:Mp,fieldset:_p,font:jp,form:Lp,frame:Rp,frameset:qp,h1:Vp,h2:Wp,h3:Up,h4:zp,h5:$p,h6:Jp,head:Gp,hr:Hp,html:Xp,iframe:Yp,img:Kp,input:Qp,ins:Zp,isindex:ed,label:td,legend:nd,li:rd,link:ud,map:ad,menu:od,meta:sd,meter:id,object:ld,ol:cd,optgroup:pd,option:dd,output:fd,p:hd,param:md,pre:Dd,progress:gd,q:yd,script:Ed,select:Cd,slot:bd,source:Ad,style:Fd,table:vd,tbody:xd,td:Sd,textarea:wd,tfoot:Bd,th:Td,thead:kd,time:Nd,tr:Od,track:Pd,ul:Id,video:Md},jd=Object.freeze({__proto__:null,a:pp,abbr:dp,applet:fp,area:hp,audio:mp,base:Dp,basefont:gp,bdo:yp,blockquote:Ep,body:Cp,br:bp,button:Ap,canvas:Fp,caption:vp,col:xp,colgroup:Sp,data:wp,del:Bp,details:Tp,dfn:kp,dialog:Np,dir:Op,div:Pp,dl:Ip,embed:Mp,fieldset:_p,font:jp,form:Lp,frame:Rp,frameset:qp,h1:Vp,h2:Wp,h3:Up,h4:zp,h5:$p,h6:Jp,head:Gp,hr:Hp,html:Xp,iframe:Yp,img:Kp,input:Qp,ins:Zp,isindex:ed,label:td,legend:nd,li:rd,link:ud,map:ad,menu:od,meta:sd,meter:id,object:ld,ol:cd,optgroup:pd,option:dd,output:fd,p:hd,param:md,pre:Dd,progress:gd,q:yd,script:Ed,select:Cd,slot:bd,source:Ad,style:Fd,table:vd,tbody:xd,td:Sd,textarea:wd,tfoot:Bd,th:Td,thead:kd,time:Nd,tr:Od,track:Pd,ul:Id,video:Md,default:_d}),Ld=Ze(cp),Rd=Ze(jd);const{CSS_DISPLAY_TAGS:qd,CSS_DISPLAY_DEFAULT:Vd,CSS_WHITE_SPACE_TAGS:Wd,CSS_WHITE_SPACE_DEFAULT:Ud}={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"none",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",video:"inline-block",audio:"inline-block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"},zd=$d(Ld);function $d(e){const t=Object.create(null);for(const n of e)t[n]=!0;return t}function Jd(e,t){return!!e.endSourceSpan&&(!("element"!==e.type||"template"!==e.fullName||!e.attrMap.lang||"html"===e.attrMap.lang)||!("ieConditionalComment"!==e.type||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)||"ieConditionalComment"===e.type&&!e.complete||"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&!["template","style","script","html"].includes(e.fullName)||!(!uf(e)||!e.children.some(e=>"text"!==e.type&&"interpolation"!==e.type)))}function Gd(e){return"attribute"!==e.type&&(!!e.parent&&("number"===typeof e.index&&0!==e.index&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.parent.children[e.index-1])))}function Hd(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||af(e)&&("script"===e.name||"style"===e.name))}function Xd(e){return"yaml"===e.type||"toml"===e.type}function Yd(e){return of(e).startsWith("pre")}function Kd(e){return"element"===e.type&&0!==e.children.length&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function Qd(e){return nf(e)||"element"===e.type&&"br"===e.fullName||Zd(e)}function Zd(e){return ef(e)&&tf(e)}function ef(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:"root"===e.parent.type||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function tf(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function nf(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function rf(e){return"block"===e||"list-item"===e||e.startsWith("table")}function uf(e){return of(e).startsWith("pre")}function af(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function of(e){return"element"===e.type&&(!e.namespace||af(e))&&Wd[e.name]||Ud}var sf={HTML_ELEMENT_ATTRIBUTES:function(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}(Rd,$d),HTML_TAGS:zd,canHaveInterpolation:function(e){return e.children&&!Hd(e)},countChars:function(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===t&&n++;return n},countParents:function(e,t=(()=>!0)){let n=0;for(let r=e.stack.length-1;r>=0;r--){const u=e.stack[r];u&&"object"===typeof u&&!Array.isArray(u)&&t(u)&&n++}return n},dedentString:function(e,t=function(e){let t=1/0;for(const n of e.split("\n")){if(0===n.length)continue;if(/\S/.test(n[0]))return 0;const e=n.match(/^\s*/)[0].length;n.length!==e&&e<t&&(t=e)}return t===1/0?0:t}(e)){return 0===t?e:e.split("\n").map(e=>e.slice(t)).join("\n")},forceBreakChildren:Kd,forceBreakContent:function(e){return Kd(e)||"element"===e.type&&0!==e.children.length&&(["body","script","style"].includes(e.name)||e.children.some(e=>function(e){return e.children&&e.children.some(e=>"text"!==e.type)}(e)))||e.firstChild&&e.firstChild===e.lastChild&&ef(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||tf(e.lastChild))},forceNextEmptyLine:function(e){return Xd(e)||e.next&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line},getLastDescendant:function e(t){return t.lastChild?e(t.lastChild):t},getNodeCssStyleDisplay:function(e,t){if(e.prev&&"comment"===e.prev.type){const t=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(t)return t[1]}let n=!1;if("element"===e.type&&"svg"===e.namespace){if(!function(e,t){let n=e;for(;n;){if(t(n))return!0;n=n.parent}return!1}(e,e=>"svg:foreignObject"===e.fullName))return"svg"===e.name?"inline-block":"block";n=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return"element"===e.type&&(!e.namespace||n||af(e))&&qd[e.name]||Vd}},getNodeCssStyleWhiteSpace:of,getPrettierIgnoreAttributeCommentData:function(e){const t=e.trim().match(/^prettier-ignore-attribute(?:\s+([^]+))?$/);return!!t&&(!t[1]||t[1].split(/\s+/))},hasPrettierIgnore:Gd,identity:function(e){return e},inferScriptParser:function(e){if("script"===e.name&&!e.attrMap.src){if(!e.attrMap.lang&&!e.attrMap.type||"module"===e.attrMap.type||"text/javascript"===e.attrMap.type||"text/babel"===e.attrMap.type||"application/javascript"===e.attrMap.type||"jsx"===e.attrMap.lang)return"babel";if("application/x-typescript"===e.attrMap.type||"ts"===e.attrMap.lang||"tsx"===e.attrMap.lang)return"typescript";if("text/markdown"===e.attrMap.type)return"markdown";if(e.attrMap.type.endsWith("json")||e.attrMap.type.endsWith("importmap"))return"json";if("text/x-handlebars-template"===e.attrMap.type)return"glimmer"}if("style"===e.name){if(!e.attrMap.lang||"postcss"===e.attrMap.lang||"css"===e.attrMap.lang)return"css";if("scss"===e.attrMap.lang)return"scss";if("less"===e.attrMap.lang)return"less"}return null},isDanglingSpaceSensitiveNode:function(e){return!rf(t=e.cssDisplay)&&"inline-block"!==t&&!Hd(e);var t},isFrontMatterNode:Xd,isIndentationSensitiveNode:Yd,isLeadingSpaceSensitiveNode:function(e){const t=function(){return!Xd(e)&&(!("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!uf(e.parent)||!(!e.prev&&("root"===e.parent.type||uf(e)&&e.parent||Hd(e.parent)||(t=e.parent.cssDisplay,rf(t)||"inline-block"===t)))&&!(e.prev&&!function(e){return!rf(e)}(e.prev.cssDisplay))));var t}();return t&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?"interpolation"===e.type:t},isPreLikeNode:uf,isScriptLikeTag:Hd,isTextLikeNode:function(e){return"text"===e.type||"comment"===e.type},isTrailingSpaceSensitiveNode:function(e){return!Xd(e)&&(!("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!uf(e.parent)||!(!e.next&&("root"===e.parent.type||uf(e)&&e.parent||Hd(e.parent)||(t=e.parent.cssDisplay,rf(t)||"inline-block"===t)))&&!(e.next&&!function(e){return!rf(e)}(e.next.cssDisplay))));var t},isWhitespaceSensitiveNode:function(e){return Hd(e)||"interpolation"===e.type||Yd(e)},isUnknownNamespace:af,normalizeParts:function(e){const t=[],n=e.slice();for(;0!==n.length;){const e=n.shift();e&&("concat"!==e.type?0===t.length||"string"!==typeof t[t.length-1]||"string"!==typeof e?t.push(e):t.push(t.pop()+e):n.unshift(...e.parts))}return t},preferHardlineAsLeadingSpaces:function(e){return nf(e)||e.prev&&Qd(e.prev)||Zd(e)},preferHardlineAsTrailingSpaces:Qd,shouldNotPrintClosingTag:function(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Gd(e)||Jd(e.parent,t))},shouldPreserveContent:Jd,unescapeQuoteEntities:function(e){return e.replace(/'/g,"'").replace(/"/g,'"')}};const{canHaveInterpolation:lf,getNodeCssStyleDisplay:cf,isDanglingSpaceSensitiveNode:pf,isIndentationSensitiveNode:df,isLeadingSpaceSensitiveNode:ff,isTrailingSpaceSensitiveNode:hf,isWhitespaceSensitiveNode:mf}=sf,Df=[function(e){return e.map(e=>{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&0!==e.children.length&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){const[t,...n]=e.children;return e.clone({children:1===t.value.length?n:[t.clone({value:t.value.slice(1)}),...n]})}return e})},function(e){const t=e=>"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;return e.map(e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r<e.children.length;r++){const u=e.children[r];if(!n[r+1])if(n[r]){const e=u.prev,n=u.firstChild,r=u.sourceSpan.constructor,a=new r(e.sourceSpan.start,n.sourceSpan.end),o=new r(a.start,u.sourceSpan.end);t.push(u.clone({condition:e.condition,sourceSpan:o,startSourceSpan:a,children:u.children.slice(1)}))}else t.push(u)}return e.clone({children:t})}}return e})},function(e){return function(e,t,n){return e.map(e=>{if(e.children){const r=e.children.map(t);if(r.some(Boolean)){const t=[];for(let u=0;u<e.children.length;u++){const a=e.children[u];if("text"!==a.type&&!r[u]){t.push(a);continue}const o="text"===a.type?a:a.clone({type:"text",value:n(a)});if(0===t.length||"text"!==t[t.length-1].type){t.push(o);continue}const s=t.pop(),i=s.sourceSpan.constructor;t.push(s.clone({value:s.value+o.value,sourceSpan:new i(s.sourceSpan.start,o.sourceSpan.end)}))}return e.clone({children:t})}}return e})}(e,e=>"cdata"===e.type,e=>"<![CDATA[".concat(e.value,"]]>"))},function(e,t){if("html"===t.parser)return e;const n=/\{\{([\s\S]+?)\}\}/g;return e.map(e=>{if(!lf(e))return e;const t=[];for(const r of e.children){if("text"!==r.type){t.push(r);continue}const e=r.sourceSpan.constructor;let u=r.sourceSpan.start,a=null;const o=r.value.split(n);for(let n=0;n<o.length;n++,u=a){const r=o[n];n%2!==0?(a=u.moveBy(r.length+4),t.push({type:"interpolation",sourceSpan:new e(u,a),children:0===r.length?[]:[{type:"text",value:r,sourceSpan:new e(u.moveBy(2),a.moveBy(-2))}]})):(a=u.moveBy(r.length),0!==r.length&&t.push({type:"text",value:r,sourceSpan:new e(u,a)}))}}return e.clone({children:t})})},function(e){return e.map(e=>{if(!e.children)return e;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===e.children[0].value.trim().length)return e.clone({children:[],hasDanglingSpaces:0!==e.children.length});const t=mf(e),n=df(e);return e.clone({isWhitespaceSensitive:t,isIndentationSensitive:n,children:e.children.reduce((e,n)=>{if("text"!==n.type||t)return e.concat(n);const r=[],[,u,a,o]=n.value.match(/^(\s*)([\s\S]*?)(\s*)$/);u&&r.push({type:"whitespace"});const s=n.sourceSpan.constructor;return a&&r.push({type:"text",value:a,sourceSpan:new s(n.sourceSpan.start.moveBy(u.length),n.sourceSpan.end.moveBy(-o.length))}),o&&r.push({type:"whitespace"}),e.concat(r)},[]).reduce((e,t,n,r)=>{if("whitespace"===t.type)return e;const u=0!==n&&"whitespace"===r[n-1].type,a=n!==r.length-1&&"whitespace"===r[n+1].type;return e.concat(Object.assign({},t,{hasLeadingSpaces:u,hasTrailingSpaces:a}))},[])})})},function(e,t){return e.map(e=>Object.assign(e,{cssDisplay:cf(e,t)}))},function(e){return e.map(e=>Object.assign(e,{isSelfClosing:!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)}))},function(e,t){return e.map(e=>"element"!==e.type?e:Object.assign(e,{hasHtmComponentClosingTag:e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset))}))},function(e){return e.map(e=>e.children?0===e.children.length?e.clone({isDanglingSpaceSensitive:pf(e)}):e.clone({children:e.children.map(e=>Object.assign({},e,{isLeadingSpaceSensitive:ff(e),isTrailingSpaceSensitive:hf(e)})).map((e,t,n)=>Object.assign({},e,{isLeadingSpaceSensitive:(0===t||n[t-1].isTrailingSpaceSensitive)&&e.isLeadingSpaceSensitive,isTrailingSpaceSensitive:(t===n.length-1||n[t+1].isLeadingSpaceSensitive)&&e.isTrailingSpaceSensitive}))}):e)},function(e){const t=e=>"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!/[^\S\xA0]/.test(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type;return e.map(e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r<e.children.length;r++){const u=e.children[r];if(n[r]){const n=t.pop(),a=e.children[++r],o=e.sourceSpan.constructor,{isTrailingSpaceSensitive:s,hasTrailingSpaces:i}=a;t.push(n.clone({value:n.value+"<".concat(u.rawName,">")+u.firstChild.value+"</".concat(u.rawName,">")+a.value,sourceSpan:new o(n.sourceSpan.start,a.sourceSpan.end),isTrailingSpaceSensitive:s,hasTrailingSpaces:i}))}else t.push(u)}return e.clone({children:t})}}return e})}];var gf=function(e,t){for(const n of Df)e=n(e,t);return e},yf={hasPragma:function(e){return/^\s*<!--\s*@(format|prettier)\s*-->/.test(e)},insertPragma:function(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}};const{builders:{concat:Ef,group:Cf}}=So;var bf={isVueEventBindingExpression:function(e){const t=e.trim();return/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/.test(t)||/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/.test(t)},printVueFor:function(e,t){const{left:n,operator:r,right:u}=function(e){const t=/,([^,}\]]*)(?:,([^,}\]]*))?$/,n=e.match(/([^]*?)\s+(in|of)\s+([^]*)/);if(!n)return;const r={};r.for=n[3].trim();const u=n[1].trim().replace(/^\(|\)$/g,""),a=u.match(t);return a?(r.alias=u.replace(t,""),r.iterator1=a[1].trim(),a[2]&&(r.iterator2=a[2].trim())):r.alias=u,{left:"".concat([r.alias,r.iterator1,r.iterator2].filter(Boolean).join(",")),operator:n[2],right:r.for}}(e);return Ef([Cf(t("function _(".concat(n,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",r," ",t(u,{parser:"__js_expression"})])},printVueSlotScope:function(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueSlotScope:!0})}};const Af=/^\d+$/;var Ff=e=>function(e){return e.sort().filter((t,n)=>JSON.stringify(t)!==JSON.stringify(e[n-1]))}(e.split(",").map(e=>{const t={};return e.trim().split(/\s+/).forEach((e,n)=>{if(0===n)return void(t.url=e);const r=e.slice(0,e.length-1),u=e[e.length-1],a=parseInt(r,10),o=parseFloat(r);if("w"===u&&Af.test(r))t.width=a;else if("h"===u&&Af.test(r))t.height=a;else{if("x"!==u||Number.isNaN(o))throw new Error("Invalid srcset descriptor: ".concat(e));t.density=o}}),t}));const{builders:{concat:vf,ifBreak:xf,join:Sf,line:wf}}=So,Bf=Ff;var Tf={printImgSrcset:function(e){const t=Bf(e),n=t.some(e=>e.width),r=t.some(e=>e.height);if(n+r+t.some(e=>e.density)>1)throw new Error("Mixed descriptor in srcset is not supported");const u=n?"width":r?"height":"density",a=n?"w":r?"h":"x",o=e=>Math.max(...e),s=t.map(e=>e.url),i=o(s.map(e=>e.length)),l=t.map(e=>e[u]).map(e=>e?e.toString():""),c=l.map(e=>{const t=e.indexOf(".");return-1===t?e.length:t}),p=o(c);return Sf(vf([",",wf]),s.map((e,t)=>{const n=[e],r=l[t];if(r){const u=i-e.length+1,o=p-c[t],s=" ".repeat(u+o);n.push(xf(s," "),r+a)}return vf(n)}))},printClassNames:function(e){return e.trim().split(/\s+/).join(" ")}};const{builders:kf,utils:{stripTrailingHardline:Nf,mapDoc:Of}}=So,{breakParent:Pf,dedentToRoot:If,fill:Mf,group:_f,hardline:jf,ifBreak:Lf,indent:Rf,join:qf,line:Vf,literalline:Wf,markAsRoot:Uf,softline:zf}=kf,{countChars:$f,countParents:Jf,dedentString:Gf,forceBreakChildren:Hf,forceBreakContent:Xf,forceNextEmptyLine:Yf,getLastDescendant:Kf,getPrettierIgnoreAttributeCommentData:Qf,hasPrettierIgnore:Zf,inferScriptParser:eh,isScriptLikeTag:th,isTextLikeNode:nh,normalizeParts:rh,preferHardlineAsLeadingSpaces:uh,shouldNotPrintClosingTag:ah,shouldPreserveContent:oh,unescapeQuoteEntities:sh}=sf,{replaceEndOfLineWith:ih}=no,{insertPragma:lh}=yf,{printVueFor:ch,printVueSlotScope:ph,isVueEventBindingExpression:dh}=bf,{printImgSrcset:fh,printClassNames:hh}=Tf;function mh(e){const t=rh(e);return 0===t.length?"":1===t.length?t[0]:kf.concat(t)}function Dh(e,t,n){const r=e.getValue();if(Hf(r))return mh([Pf,mh(e.map(e=>{const t=e.getValue(),n=t.prev?o(t.prev,t):"";return mh([n?mh([n,Yf(t.prev)?jf:""]):"",a(e)])},"children"))]);const u=r.children.map(()=>Symbol(""));return mh(e.map((e,t)=>{const n=e.getValue();if(nh(n)){if(n.prev&&nh(n.prev)){const t=o(n.prev,n);if(t)return Yf(n.prev)?mh([jf,jf,a(e)]):mh([t,a(e)])}return a(e)}const r=[],s=[],i=[],l=[],c=n.prev?o(n.prev,n):"",p=n.next?o(n,n.next):"";return c&&(Yf(n.prev)?r.push(jf,jf):c===jf?r.push(jf):nh(n.prev)?s.push(c):s.push(Lf("",zf,{groupId:u[t-1]}))),p&&(Yf(n)?nh(n.next)&&l.push(jf,jf):p===jf?nh(n.next)&&l.push(jf):i.push(p)),mh([].concat(r,_f(mh([mh(s),_f(mh([a(e),mh(i)]),{id:u[t]})])),l))},"children"));function a(e){const r=e.getValue();return Zf(r)?mh([].concat(Bh(r,t),ih(t.originalText.slice(t.locStart(r)+(r.prev&&Fh(r.prev)?Nh(r).length:0),t.locEnd(r)-(r.next&&xh(r.next)?Ih(r,t).length:0)),Wf),kh(r,t))):oh(r,t)?mh([].concat(Bh(r,t),_f(gh(e,t,n)),ih(t.originalText.slice(r.startSourceSpan.end.offset+(r.firstChild&&vh(r.firstChild)?-Oh(r).length:0),r.endSourceSpan.start.offset+(r.lastChild&&wh(r.lastChild)?Ph(r,t).length:Sh(r)?-Ih(r.lastChild,t).length:0)),Wf),Ch(r,t),kh(r,t))):n(e)}function o(e,t){return nh(e)&&nh(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?uh(t)?jf:Vf:"":uh(t)?jf:zf:Fh(e)&&(Zf(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&0!==t.attrs.length)||"element"===e.type&&e.isSelfClosing&&xh(t)?"":!t.isLeadingSpaceSensitive||uh(t)||xh(t)&&e.lastChild&&wh(e.lastChild)&&e.lastChild.lastChild&&wh(e.lastChild.lastChild)?jf:t.hasLeadingSpaces?Vf:zf}}function gh(e,t,n){const r=e.getValue(),u="element"===r.type&&"script"===r.fullName&&1===r.attrs.length&&"src"===r.attrs[0].fullName&&0===r.children.length;return mh([yh(r,t),r.attrs&&0!==r.attrs.length?mh([Rf(mh([u?" ":Vf,qf(Vf,(r=>{const u="boolean"===typeof r?()=>r:Array.isArray(r)?e=>r.includes(e.rawName):()=>!1;return e.map(e=>{const r=e.getValue();return u(r)?mh(ih(t.originalText.slice(t.locStart(r),t.locEnd(r)),Wf)):n(e)},"attrs")})(r.prev&&"comment"===r.prev.type&&Qf(r.prev.value)))])),r.firstChild&&vh(r.firstChild)||r.isSelfClosing&&Sh(r.parent)?r.isSelfClosing?" ":"":r.isSelfClosing?u?" ":Vf:u?"":zf]):r.isSelfClosing?" ":"",r.isSelfClosing?"":Eh(r)])}function yh(e,t){return e.prev&&Fh(e.prev)?"":mh([Bh(e,t),Nh(e)])}function Eh(e){return e.firstChild&&vh(e.firstChild)?"":Oh(e)}function Ch(e,t){return mh([e.isSelfClosing?"":bh(e,t),Ah(e,t)])}function bh(e,t){return e.lastChild&&wh(e.lastChild)?"":mh([Th(e,t),Ph(e,t)])}function Ah(e,t){return(e.next?xh(e.next):Sh(e.parent))?"":mh([Ih(e,t),kh(e,t)])}function Fh(e){return e.next&&!nh(e.next)&&nh(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function vh(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function xh(e){return e.prev&&!nh(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Sh(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!nh(Kf(e.lastChild))}function wh(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&nh(Kf(e))}function Bh(e,t){return vh(e)?Oh(e.parent):xh(e)?Ih(e.prev,t):""}function Th(e,t){return Sh(e)?Ih(e.lastChild,t):""}function kh(e,t){return wh(e)?Ph(e.parent,t):Fh(e)?Nh(e.next):""}function Nh(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return"\x3c!--[if ".concat(e.condition);case"ieConditionalEndComment":return"\x3c!--<!";case"interpolation":return"{{";case"docType":return"<!DOCTYPE";case"element":if(e.condition)return"\x3c!--[if ".concat(e.condition,"]>\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName)}}function Oh(e){switch(e.isSelfClosing,e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--<![endif]--\x3e";default:return">"}}function Ph(e,t){if(e.isSelfClosing,ah(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return"</".concat(e.rawName)}}function Ih(e,t){if(ah(e,t))return"";switch(e.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]--\x3e";case"ieConditionalStartComment":return"]>\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function Mh(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?ih(t,Wf):ih(Gf(t.replace(/^\s*?\n|\n\s*?$/g,"")),jf):qf(Vf,t.split(/[\t\n\f\r ]+/)).parts}var _h={preprocess:gf,print:function(e,t,n){const r=e.getValue();switch(r.type){case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(r),kf.concat([_f(Dh(e,t,n)),jf]);case"element":case"ieConditionalComment":{const a=1===r.children.length&&"interpolation"===r.firstChild.type&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,o=Symbol("element-attr-group-id");return mh([_f(mh([_f(gh(e,t,n),{id:o}),0===r.children.length?r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?Vf:"":mh([Xf(r)?Pf:"",(u=mh([a?Lf(zf,"",{groupId:o}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?Vf:"text"===r.firstChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive?If(zf):zf,Dh(e,t,n)]),a?Lf(Rf(u),u,{groupId:o}):th(r)&&"root"===r.parent.type&&"vue"===t.parser&&!t.vueIndentScriptAndStyle?u:Rf(u)),(r.next?xh(r.next):Sh(r.parent))?r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?" ":"":a?Lf(zf,"",{groupId:o}):r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?Vf:("comment"===r.lastChild.type||"text"===r.lastChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive)&&new RegExp("\\n\\s{".concat(t.tabWidth*Jf(e,e=>e.parent&&"root"!==e.parent.type),"}$")).test(r.lastChild.value)?"":zf])])),Ch(r,t)])}case"ieConditionalStartComment":case"ieConditionalEndComment":return mh([yh(r),Ah(r)]);case"interpolation":return mh([yh(r,t),mh(e.map(n,"children")),Ah(r,t)]);case"text":if("interpolation"===r.parent.type){const e=/\n[^\S\n]*?$/,t=e.test(r.value),n=t?r.value.replace(e,""):r.value;return mh([mh(ih(n,Wf)),t?jf:""])}return Mf(rh([].concat(Bh(r,t),Mh(r),kh(r,t))));case"docType":return mh([_f(mh([yh(r,t)," ",r.value.replace(/^html\b/i,"html").replace(/\s+/g," ")])),Ah(r,t)]);case"comment":return mh([Bh(r,t),mh(ih(t.originalText.slice(t.locStart(r),t.locEnd(r)),Wf)),kh(r,t)]);case"attribute":{if(null===r.value)return r.rawName;const e=sh(r.value),t=$f(e,"'")<$f(e,'"')?"'":'"';return mh([r.rawName,mh(["=",t,mh(ih('"'===t?e.replace(/"/g,"""):e.replace(/'/g,"'"),Wf)),t])])}case"yaml":case"toml":return mh(ih(r.raw,Wf));default:throw new Error("Unexpected node type ".concat(r.type))}var u},insertPragma:lh,massageAstNode:function(e,t){return delete t.sourceSpan,delete t.startSourceSpan,delete t.endSourceSpan,delete t.nameSpan,delete t.valueSpan,"text"===e.type||"comment"===e.type||"yaml"===e.type||"toml"===e.type?null:("attribute"===e.type&&delete t.value,void("docType"===e.type&&delete t.value))},embed:function(e,t,n,r){const u=e.getValue();switch(u.type){case"text":if(th(u.parent)){const e=eh(u.parent);if(e){const t="markdown"===e?Gf(u.value.replace(/^[^\S\n]*?\n/,"")):u.value;return kf.concat([mh([Pf,Bh(u,r),Nf(n(t,{parser:e})),kh(u,r)])])}}else if("interpolation"===u.parent.type)return mh([Rf(mh([Vf,n(u.value,Object.assign({__isInHtmlInterpolation:!0},"angular"===r.parser?{parser:"__ng_interpolation",trailingComma:"none"}:"vue"===r.parser?{parser:"__vue_expression"}:{parser:"__js_expression"}))])),u.parent.next&&xh(u.parent.next)?" ":Vf]);break;case"attribute":{if(!u.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(r.originalText.slice(u.valueSpan.start.offset,u.valueSpan.end.offset)))return mh([u.rawName,"=",u.value]);if("lwc"===r.parser&&/^\{[\s\S]*\}$/.test(r.originalText.slice(u.valueSpan.start.offset,u.valueSpan.end.offset)))return mh([u.rawName,"=",u.value]);const e=function(e,t,n){const r=t=>new RegExp(t.join("|")).test(e.fullName),u=()=>sh(e.value);let a=!1;const o=(e,t)=>{const n="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;!n||"ObjectExpression"!==n.type&&"ArrayExpression"!==n.type&&("__vue_expression"!==t.parser||"TemplateLiteral"!==n.type&&"StringLiteral"!==n.type)||(a=!0)},s=(e,t=!0)=>_f(mh([Rf(mh([zf,e])),t?zf:""])),i=e=>a?(e=>_f(e))(e):s(e),l=(e,n)=>t(e,Object.assign({__onHtmlBindingRoot:o},n));if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return s(fh(u()));if("class"===e.fullName&&!n.parentParser){const e=u();if(!e.includes("{{"))return hh(e)}if("style"===e.fullName&&!n.parentParser){const e=u();if(!e.includes("{{"))return s(l(e,{parser:"css",__isHTMLStyleAttribute:!0}))}if("vue"===n.parser){if("v-for"===e.fullName)return ch(u(),l);if("slot-scope"===e.fullName)return ph(u(),l);const t=["^:","^v-bind:"],n=["^v-"];if(r(["^@","^v-on:"])){const e=u();return i(dh(e)?l(e,{parser:"__js_expression"}):Nf(l(e,{parser:"__vue_event_binding"})))}if(r(t))return i(l(u(),{parser:"__vue_expression"}));if(r(n))return i(l(u(),{parser:"__js_expression"}))}if("angular"===n.parser){const t=(e,t)=>l(e,Object.assign({},t,{trailingComma:"none"})),n=["^\\*"],a=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],o=["^i18n(-.+)?$"];if(r(["^\\(.+\\)$","^on-"]))return i(t(u(),{parser:"__ng_action"}));if(r(a))return i(t(u(),{parser:"__ng_binding"}));if(r(o)){const t=u().trim();return s(Mf(Mh(e,t)),!t.includes("@@"))}if(r(n))return i(t(u(),{parser:"__ng_directive"}));const c=/\{\{([\s\S]+?)\}\}/g,p=u();if(c.test(p)){const e=[];return p.split(c).forEach((n,r)=>{if(r%2===0)e.push(mh(ih(n,Wf)));else try{e.push(_f(mh(["{{",Rf(mh([Vf,t(n,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})])),Vf,"}}"])))}catch(u){e.push("{{",mh(ih(n,Wf)),"}}")}}),_f(mh(e))}}return null}(u,(e,t)=>n(e,Object.assign({__isInHtmlAttribute:!0},t)),r);if(e)return mh([u.rawName,'="',_f(Of(e,e=>"string"===typeof e?e.replace(/"/g,"""):e)),'"']);break}case"yaml":return Uf(mh(["---",jf,0===u.value.trim().length?"":n(u.value,{parser:"yaml"}),"---"]))}}},jh={htmlWhitespaceSensitivity:{since:"1.15.0",category:"HTML",type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},vueIndentScriptAndStyle:{since:"1.19.0",category:"HTML",type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Lh=["xhtml"],Rh=[".html",".htm",".html.hl",".inc",".st",".xht",".xhtml"],qh={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:Lh,extensions:Rh,languageId:146},Vh=Object.freeze({__proto__:null,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:Lh,extensions:Rh,languageId:146,default:qh}),Wh=[".vue"],Uh={name:"Vue",type:"markup",color:"#2c3e50",extensions:Wh,tmScope:"text.html.vue",aceMode:"html",languageId:391},zh=Object.freeze({__proto__:null,name:"Vue",type:"markup",color:"#2c3e50",extensions:Wh,tmScope:"text.html.vue",aceMode:"html",languageId:391,default:Uh}),$h=Ze(Vh),Jh=Ze(zh),Gh={languages:[ql($h,()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]})),ql($h,e=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:e.extensions.concat([".mjml"])})),ql($h,()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]})),ql(Jh,()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}))],printers:{html:_h},options:jh};const{addLeadingComment:Hh,addTrailingComment:Xh,addDanglingComment:Yh,getNextNonSpaceNonCommentCharacterIndex:Kh}=Yo;function Qh(e,t){const n=e.body.filter(e=>"EmptyStatement"!==e.type);0===n.length?Yh(e,t):Hh(n[0],t)}function Zh(e,t){"BlockStatement"===e.type?Qh(e,t):Hh(e,t)}function em(e,t,n,r,u,a){return!(!n||"IfStatement"!==n.type||!r)&&(")"===no.getNextNonSpaceNonCommentCharacter(e,u,a.locEnd)?(Xh(t,u),!0):t===n.consequent&&r===n.alternate?("BlockStatement"===t.type?Xh(t,u):Yh(n,u),!0):"BlockStatement"===r.type?(Qh(r,u),!0):"IfStatement"===r.type?(Zh(r.consequent,u),!0):n.consequent===r&&(Hh(r,u),!0))}function tm(e,t,n,r,u,a){return!(!n||"WhileStatement"!==n.type||!r)&&(")"===no.getNextNonSpaceNonCommentCharacter(e,u,a.locEnd)?(Xh(t,u),!0):"BlockStatement"===r.type&&(Qh(r,u),!0))}function nm(e,t,n,r){return!(!e||"TryStatement"!==e.type&&"CatchClause"!==e.type||!n)&&("CatchClause"===e.type&&t?(Xh(t,r),!0):"BlockStatement"===n.type?(Qh(n,r),!0):"TryStatement"===n.type?(Zh(n.finalizer,r),!0):"CatchClause"===n.type&&(Zh(n.body,r),!0))}function rm(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?Xh(e.decorators[e.decorators.length-1],r):Hh(e,r),!0)}function um(e,t,n,r,u){return(t&&n&&("Property"===t.type||"TSDeclareMethod"===t.type||"TSAbstractMethodDefinition"===t.type)&&"Identifier"===n.type&&t.key===n&&":"!==no.getNextNonSpaceNonCommentCharacter(e,n,u.locEnd)||!(!n||!t||"Decorator"!==n.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"TSDeclareMethod"!==t.type&&"MethodDefinition"!==t.type))&&(Xh(n,r),!0)}function am(e,t,n,r,u,a){if(t&&"FunctionTypeParam"===t.type&&n&&"FunctionTypeAnnotation"===n.type&&r&&"FunctionTypeParam"!==r.type)return Xh(t,u),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&n&&cm(n)&&")"===no.getNextNonSpaceNonCommentCharacter(e,u,a.locEnd))return Xh(t,u),!0;if(n&&"FunctionDeclaration"===n.type&&r&&"BlockStatement"===r.type){const t=(()=>{if(0!==(n.params||n.parameters).length)return no.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,a.locEnd(no.getLast(n.params||n.parameters)));const t=no.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,a.locEnd(n.id));return no.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,t+1)})();if(a.locStart(u)>t)return Qh(r,u),!0}return!1}function om(e,t){return!(!e||"ImportSpecifier"!==e.type)&&(Hh(e,t),!0)}function sm(e,t){return!(!e||"LabeledStatement"!==e.type)&&(Hh(e,t),!0)}function im(e,t,n,r){return t&&t.body&&0===t.body.length?(r?Yh(t,n):Hh(t,n),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length)&&(r?Yh(e,n):Hh(e,n),!0)}function lm(e){return"Block"===e.type||"CommentBlock"===e.type}function cm(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function pm(e){return lm(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}var dm={handleOwnLineComment:function(e,t,n,r,u){const{precedingNode:a,enclosingNode:o,followingNode:s}=e;return am(t,a,o,s,e,n)||function(e,t,n){return!(!e||"MemberExpression"!==e.type&&"OptionalMemberExpression"!==e.type||!t||"Identifier"!==t.type)&&(Hh(e,n),!0)}(o,s,e)||em(t,a,o,s,e,n)||tm(t,a,o,s,e,n)||nm(o,a,s,e)||rm(o,0,s,e)||om(o,e)||function(e,t,n){return!(!e||"ForInStatement"!==e.type&&"ForOfStatement"!==e.type)&&(Hh(e,n),!0)}(o,0,e)||function(e,t,n,r){return!t||"UnionTypeAnnotation"!==t.type&&"TSUnionType"!==t.type?(n&&("UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)&&no.isNodeIgnoreComment(r)&&(n.types[0].prettierIgnore=!0,r.unignore=!0),!1):(no.isNodeIgnoreComment(r)&&(n.prettierIgnore=!0,r.unignore=!0),!!e&&(Xh(e,r),!0))}(a,o,s,e)||im(o,r,e,u)||function(e,t,n,r,u){return!!(n&&"ImportSpecifier"===n.type&&t&&"ImportDeclaration"===t.type&&no.hasNewline(e,u.locEnd(r)))&&(Xh(n,r),!0)}(t,o,a,e,n)||function(e,t){return!(!e||"AssignmentPattern"!==e.type)&&(Hh(e,t),!0)}(o,e)||um(t,o,a,e,n)||sm(o,e)},handleEndOfLineComment:function(e,t,n,r,u){const{precedingNode:a,enclosingNode:o,followingNode:s}=e;return function(e,t){return!(!e||!pm(t))&&(Hh(e,t),!0)}(s,e)||am(t,a,o,s,e,n)||function(e,t,n,r,u,a){const o=t&&!no.hasNewlineInRange(u,a.locEnd(t),a.locStart(r));return!(t&&o||!e||"ConditionalExpression"!==e.type||!n)&&(Hh(n,r),!0)}(o,a,s,e,t,n)||om(o,e)||em(t,a,o,s,e,n)||tm(t,a,o,s,e,n)||nm(o,a,s,e)||rm(o,0,s,e)||sm(o,e)||function(e,t,n){return!!(t&&("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&e&&t.callee===e&&t.arguments.length>0)&&(Hh(t.arguments[0],n),!0)}(a,o,e)||function(e,t){return!(!e||"Property"!==e.type&&"ObjectProperty"!==e.type)&&(Hh(e,t),!0)}(o,e)||im(o,r,e,u)||function(e,t,n){return!(!e||"TypeAlias"!==e.type)&&(Hh(e,n),!0)}(o,0,e)||function(e,t,n){return!(!e||"VariableDeclarator"!==e.type&&"AssignmentExpression"!==e.type||!t||"ObjectExpression"!==t.type&&"ArrayExpression"!==t.type&&"TemplateLiteral"!==t.type&&"TaggedTemplateExpression"!==t.type&&!lm(n))&&(Hh(t,n),!0)}(o,s,e)},handleRemainingComment:function(e,t,n,r,u){const{precedingNode:a,enclosingNode:o,followingNode:s}=e;return!!(em(t,a,o,s,e,n)||tm(t,a,o,s,e,n)||function(e,t,n){return!(!e||"ObjectProperty"!==e.type&&"Property"!==e.type||!e.shorthand||e.key!==t||"AssignmentPattern"!==e.value.type)&&(Xh(e.value.left,n),!0)}(o,a,e)||function(e,t,n,r){return")"===no.getNextNonSpaceNonCommentCharacter(e,n,r.locEnd)&&(t&&(cm(t)&&0===(t.params||t.parameters).length||("CallExpression"===t.type||"OptionalCallExpression"===t.type||"NewExpression"===t.type)&&0===t.arguments.length)?(Yh(t,n),!0):!(!t||"MethodDefinition"!==t.type||0!==t.value.params.length)&&(Yh(t.value,n),!0))}(t,o,e,n)||um(t,o,a,e,n)||im(o,r,e,u)||function(e,t,n,r){if(!t||"ArrowFunctionExpression"!==t.type)return!1;const u=Kh(e,n,r.locEnd);return"=>"===e.slice(u,u+2)&&(Yh(t,n),!0)}(t,o,e,n)||function(e,t,n,r,u){return"("===no.getNextNonSpaceNonCommentCharacter(e,r,u.locEnd)&&(!(!n||!t||"FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"MethodDefinition"!==t.type&&"ObjectMethod"!==t.type)&&(Xh(n,r),!0))}(t,o,a,e,n)||function(e,t,n,r,u){return!(!t||"TSMappedType"!==t.type)&&(r&&"TSTypeParameter"===r.type&&r.name?(Hh(r.name,u),!0):!(!n||"TSTypeParameter"!==n.type||!n.constraint)&&(Xh(n.constraint,u),!0))}(0,o,a,s,e)||function(e,t){return!(!e||"ContinueStatement"!==e.type&&"BreakStatement"!==e.type||e.label)&&(Xh(e,t),!0)}(o,e)||function(e,t,n,r,u){return!(n||!t||"TSMethodSignature"!==t.type&&"TSDeclareFunction"!==t.type&&"TSAbstractMethodDefinition"!==t.type||";"!==no.getNextNonSpaceNonCommentCharacter(e,r,u.locEnd))&&(Xh(t,r),!0)}(t,o,s,e,n))},hasLeadingComment:function(e,t=(()=>!0)){return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some(e=>e.leading&&t(e))},isBlockComment:lm,isTypeCastComment:pm,getGapRegex:function(e){if(e&&"BinaryExpression"!==e.type&&"LogicalExpression"!==e.type)return/^[\s(&|]*$/},getCommentChildNodes:function(e,t){if(("typescript"===t.parser||"flow"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===e.value.params.length&&!e.value.returnType&&(!e.value.typeParameters||0===e.value.typeParameters.length)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}};const{isBlockComment:fm,hasLeadingComment:hm}=dm,{builders:{indent:mm,join:Dm,line:gm,hardline:ym,softline:Em,literalline:Cm,concat:bm,group:Am,dedentToRoot:Fm},utils:{mapDoc:vm,stripTrailingHardline:xm}}=So;function Sm(e){return e.replace(/([\\`]|\$\{)/g,"\\$1")}function wm(e,t){return vm(e,e=>{if(!e.parts)return e;const n=[];return e.parts.forEach(e=>{"string"===typeof e?n.push(t?e.replace(/(\\*)`/g,"$1$1\\`"):Sm(e)):n.push(e)}),Object.assign({},e,{parts:n})})}function Bm(e){const t=[];let n=!1;return e.map(e=>e.trim()).forEach((e,r,u)=>{""!==e&&(""===u[r-1]&&n?t.push(bm([ym,e])):t.push(e),n=!0)}),0===t.length?null:Dm(ym,t)}function Tm(e){const 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(e=>"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 km(e){return e.match(e=>"TemplateLiteral"===e.type,(e,t)=>"ArrayExpression"===e.type&&"elements"===t,(e,t)=>("Property"===e.type||"ObjectProperty"===e.type)&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t,...Nm)}const Nm=[(e,t)=>"ObjectExpression"===e.type&&"properties"===t,(e,t)=>"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t,(e,t)=>"Decorator"===e.type&&"expression"===t];function Om(e){const t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;const{tag:n}=t;switch(n.type){case"MemberExpression":return Im(n.object)||Mm(n);case"CallExpression":return Im(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(Im(n.callee.object.object)||Mm(n.callee.object))||"CallExpression"===n.callee.object.type&&Im(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}function Pm(e){const t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}function Im(e){return"Identifier"===e.type&&"styled"===e.name}function Mm(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function _m(e,t){return hm(e,e=>fm(e)&&e.value===" ".concat(t," "))}let jm=0;var Lm=function(e,t,n,r){const u=e.getValue(),a=e.getParentNode(),o=e.getParentNode(1);switch(u.type){case"TemplateLiteral":{if([Tm,Om,Pm,km].some(t=>t(e))){const r=u.quasis.map(e=>e.value.raw);let a=0;const o=r.reduce((e,t,n)=>0===n?t:e+"@prettier-placeholder-"+a+++"-id"+t,"");return function(e,t,n){const r=t.getValue();if(1===r.quasis.length&&!r.quasis[0].value.raw.trim())return"``";const u=r.expressions?t.map(n,"expressions"):[],a=function(e,t){if(!t||!t.length)return e;const n=t.slice();let r=0;const u=vm(e,e=>{if(!e||!e.parts||!e.parts.length)return e;let{parts:t}=e;const u=t.indexOf("@"),a=u+1;if(u>-1&&"string"===typeof t[a]&&t[a].startsWith("prettier-placeholder")){const e=t[u],n=t[a],r=t.slice(a+1);t=t.slice(0,u).concat([e+n]).concat(r)}const o=t.findIndex(e=>"string"===typeof e&&e.startsWith("@prettier-placeholder"));if(o>-1){const e=t[o],u=t.slice(o+1),a=e.match(/@prettier-placeholder-(.+)-id([\s\S]*)/),s=a[1],i=a[2],l=n[s];r++,t=t.slice(0,o).concat(["${",l,"}"+i]).concat(u)}return Object.assign({},e,{parts:t})});return n.length===r?u:null}(e,u);if(!a)throw new Error("Couldn't insert all the expressions");return bm(["`",mm(bm([ym,xm(a)])),Em,"`"])}(n(o,{parser:"scss"}),e,t)}if(function(e){const t=e.getValue(),n=e.getParentNode();return _m(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)){const r=u.expressions?e.map(t,"expressions"):[],a=u.quasis.length;if(1===a&&""===u.quasis[0].value.raw.trim())return"``";const o=[];for(let e=0;e<a;e++){const t=0===e,s=e===a-1,i=u.quasis[e].value.cooked;if("string"!==typeof i)return null;const l=i.split("\n"),c=l.length,p=r[e],d=c>2&&""===l[0].trim()&&""===l[1].trim(),f=c>2&&""===l[c-1].trim()&&""===l[c-2].trim(),h=l.every(e=>/^\s*(?:#[^\r\n]*)?$/.test(e));if(!s&&/#[^\r\n]*$/.test(l[c-1]))return null;let m=null;m=h?Bm(l):xm(n(i,{parser:"graphql"})),m?(m=wm(m,!1),!t&&d&&o.push(""),o.push(m),!s&&f&&o.push("")):t||s||!d||o.push(""),p&&o.push(bm(["${",p,"}"]))}return bm(["`",mm(bm([ym,Dm(ym,o)])),ym,"`"])}const a=function(e){return _m(e.getValue(),"HTML")||e.match(e=>"TemplateLiteral"===e.type,(e,t)=>"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t)}(e)?"html":function(e){return e.match(e=>"TemplateLiteral"===e.type,(e,t)=>("Property"===e.type||"ObjectProperty"===e.type)&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t,...Nm)}(e)?"angular":void 0;if(a)return function(e,t,n,r,u){const a=e.getValue(),o=jm;jm=jm+1>>>0;const s=e=>"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(o,"_IN_JS"),i=a.quasis.map((e,t,n)=>t===n.length-1?e.value.cooked:e.value.cooked+s(t)).join(""),l=e.map(t,"expressions");if(0===l.length&&0===i.trim().length)return"``";const c=new RegExp(s("(\\d+)"),"g");let p=0;const d=vm(xm(n(i,{parser:r,__onHtmlRoot(e){p=e.children.length}})),e=>{if("string"!==typeof e)return e;const t=[],n=e.split(c);for(let r=0;r<n.length;r++){let e=n[r];if(r%2===0){e&&(e=Sm(e),u.embeddedInHtml&&(e=e.replace(/<\/(script)\b/gi,"<\\/$1")),t.push(e));continue}const a=+e;t.push(bm(["${",Am(l[a]),"}"]))}return bm(t)}),f=/^\s/.test(i)?" ":"",h=/\s$/.test(i)?" ":"",m="ignore"===u.htmlWhitespaceSensitivity?ym:f&&h?gm:null;return Am(bm(m?["`",mm(bm([m,Am(d)])),m,"`"]:["`",f,p>1?mm(Am(d)):Am(d),h,"`"]))}(e,t,n,a,r);break}case"TemplateElement":if(o&&"TaggedTemplateExpression"===o.type&&1===a.quasis.length&&"Identifier"===o.tag.type&&("md"===o.tag.name||"markdown"===o.tag.name)){const e=a.quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(e,t)=>"\\".repeat(t.length/2)+"`"),t=function(e){const t=e.match(/^([^\S\n]*)\S/m);return null===t?"":t[1]}(e);return bm([""!==t?mm(bm([Em,s(e.replace(new RegExp("^".concat(t),"gm"),""))])):bm([Cm,Fm(s(e))]),Em])}}function s(e){const t=n(e,{parser:"markdown",__inJsTemplate:!0});return xm(wm(t,!0))}},Rm=function(e,t,n){if(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","flags","errors"].forEach(e=>{delete t[e]}),e.loc&&null===e.loc.source&&delete t.loc.source,"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};"TSNamespaceExportDeclaration"===e.type&&e.specifiers&&0===e.specifiers.length&&delete t.specifiers,"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(e=>"jsx"===e.name.name)&&t.children.filter(e=>"JSXExpressionContainer"===e.type&&"TemplateLiteral"===e.expression.type).map(e=>e.expression).reduce((e,t)=>e.concat(t.quasis),[]).forEach(e=>delete e.value),"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&t.value.expression.quasis.forEach(e=>delete e.value);const r=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===r.type&&"Component"===r.callee.name&&1===r.arguments.length){const n=e.expression.arguments[0].properties;t.expression.arguments[0].properties.forEach((e,t)=>{let r=null;switch(n[t].key.name){case"styles":"ArrayExpression"===e.value.type&&(r=e.value.elements[0]);break;case"template":"TemplateLiteral"===e.value.type&&(r=e.value)}r&&r.quasis.forEach(e=>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(e=>delete e.value),"TemplateLiteral"===e.type&&(e.leadingComments&&e.leadingComments.some(e=>"CommentBlock"===e.type&&["GraphQL","HTML"].some(t=>e.value===" ".concat(t," ")))||"CallExpression"===n.type&&"graphql"===n.callee.name)&&t.quasis.forEach(e=>delete e.value)};const{getLast:qm,hasNewline:Vm,hasNewlineInRange:Wm,hasIgnoreComment:Um,hasNodeIgnoreComment:zm,skipWhitespace:$m}=no,Jm=xu.keyword.isIdentifierNameES5,Gm=new RegExp("^".concat("(?:(?=.)\\s)","*:")),Hm=new RegExp("^".concat("(?:(?=.)\\s)","*::"));function Xm(e,t){if(!e||"object"!==typeof e)return!1;if(Array.isArray(e))return e.some(e=>Xm(e,t));const n=t(e);return"boolean"===typeof n?n:Object.keys(e).some(n=>Xm(e[n],t))}function Ym(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}const Km=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function Qm(e){return e&&Km.has(e.type)}function Zm(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 eD(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"===typeof e.value}function tD(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"===typeof e.value}function nD(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function rD(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 uD(e){return"JSXElement"===e.type||"JSXFragment"===e.type}function aD(e){return"get"===e.kind||"set"===e.kind}function oD(e,t,n){return n.locStart(e)===n.locStart(t)}function sD(e,t){return aD(e)||oD(e,e.value,t)}const iD=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]),lD=/^(skip|[fx]?(it|describe|test))$/;function cD(e){return"CallExpression"===e.type||"OptionalCallExpression"===e.type}const pD=new RegExp("([ \n\r\t]+)"),dD=new RegExp("[^ \n\r\t]");function fD(e){return Zm(e)&&(dD.test(DD(e))||!/\n/.test(DD(e)))}function hD(e,t,n){return uD(t)?zm(t):t.comments&&t.comments.some(t=>t.leading&&Vm(e,n.locEnd(t)))}function mD(e){return e.quasis.some(e=>e.value.raw.includes("\n"))}function DD(e){return e.extra?e.extra.raw:e.raw}var gD={classChildNeedsASIProtection:function(e){if(e){if(e.static||e.accessibility)return!1;if(!e.computed){const 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":{const t=e.value?e.value.async:e.async,n=e.value?e.value.generator:e.generator;return!t&&"get"!==e.kind&&"set"!==e.kind&&!(!e.computed&&!n)}case"TSIndexSignature":return!0;default:return!1}}},classPropMayCauseASIProblems:function(e){const t=e.getNode();if("ClassProperty"!==t.type)return!1;const n=t.key&&t.key.name;return!("static"!==n&&"get"!==n&&"set"!==n||t.value||t.typeAnnotation)||void 0},conditionalExpressionChainContainsJSX:function(e){return Boolean(function(e){const t=[];return function e(n){"ConditionalExpression"===n.type?(e(n.test),e(n.consequent),e(n.alternate)):t.push(n)}(e),t}(e).find(uD))},getFlowVariance:function(e){if(!e.variance)return null;const t=e.variance.kind||e.variance;switch(t){case"plus":return"+";case"minus":return"-";default:return t}},getLeftSidePathName:function(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)},getParentExportDeclaration:function(e){const t=e.getParentNode();return"declaration"===e.getName()&&Qm(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t},hasDanglingComments:function(e){return e.comments&&e.comments.some(e=>!e.leading&&!e.trailing)},hasFlowAnnotationComment:function(e){return e&&e[0].value.match(Hm)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&e.trailingComments&&e.trailingComments[0].value.match(Gm)},hasLeadingComment:function(e){return e.comments&&e.comments.some(e=>e.leading)},hasLeadingOwnLineComment:hD,hasNakedLeftSide:Ym,hasNewlineBetweenOrAfterDecorators:function(e,t){return Wm(t.originalText,t.locStart(e.decorators[0]),t.locEnd(qm(e.decorators)))||Vm(t.originalText,t.locEnd(qm(e.decorators)))},hasNgSideEffect:function(e){return Xm(e.getValue(),e=>{switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})},hasNode:Xm,hasPrettierIgnore:function(e){return Um(e)||function(e){const t=e.getValue(),n=e.getParentNode();if(!n||!t||!uD(t)||!uD(n))return!1;let r=null;for(let u=n.children.indexOf(t);u>0;u--){const e=n.children[u-1];if("JSXText"!==e.type||fD(e)){r=e;break}}return r&&"JSXExpressionContainer"===r.type&&"JSXEmptyExpression"===r.expression.type&&r.expression.comments&&r.expression.comments.find(e=>"prettier-ignore"===e.value.trim())}(e)},hasTrailingComment:function(e){return e.comments&&e.comments.some(e=>e.trailing)},identity:function(e){return e},isBinaryish:function(e){return iD.has(e.type)},isCallOrOptionalCallExpression:cD,isEmptyJSXElement:function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;const t=e.children[0];return Zm(t)&&!fD(t)},isExportDeclaration:Qm,isFlowAnnotationComment:function(e,t,n){const r=n.locStart(t),u=$m(e,n.locEnd(t));return"/*"===e.slice(r,r+2)&&"*/"===e.slice(u,u+2)},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;let t=0;for(const n of e)if(nD(n)){if(t+=1,t>1)return!0}else if(cD(n))for(const e of n.arguments)if(nD(e))return!0;return!1},isFunctionNotation:sD,isFunctionOrArrowExpression:nD,isGetterOrSetter:aD,isJestEachTemplateLiteral:function(e,t){const 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))},isJSXNode:uD,isJSXWhitespaceExpression:function(e){return"JSXExpressionContainer"===e.type&&Zm(e.expression)&&" "===e.expression.value&&!e.expression.comments},isLastStatement:function(e){const t=e.getParentNode();if(!t)return!0;const n=e.getValue(),r=(t.body||t.consequent).filter(e=>"EmptyStatement"!==e.type);return r&&r[r.length-1]===n},isLiteral:Zm,isLongCurriedCallExpression:function(e){const t=e.getValue(),n=e.getParentNode();return cD(t)&&cD(n)&&n.callee===t&&t.arguments.length>n.arguments.length&&n.arguments.length>0},isSimpleCallArgument:function e(t,n){if(n>=2)return!1;const r=t=>e(t,n+1),u="Literal"===t.type&&t.regex&&t.regex.pattern||"RegExpLiteral"===t.type&&t.pattern;return!(u&&u.length>5)&&("Literal"===t.type||"BooleanLiteral"===t.type||"NullLiteral"===t.type||"NumericLiteral"===t.type||"StringLiteral"===t.type||"Identifier"===t.type||"ThisExpression"===t.type||"Super"===t.type||"BigIntLiteral"===t.type||"PrivateName"===t.type||"ArgumentPlaceholder"===t.type||"RegExpLiteral"===t.type||"Import"===t.type||("TemplateLiteral"===t.type?t.expressions.every(r):"ObjectExpression"===t.type?t.properties.every(e=>!e.computed&&(e.shorthand||e.value&&r(e.value))):"ArrayExpression"===t.type?t.elements.every(e=>null==e||r(e)):"CallExpression"===t.type||"OptionalCallExpression"===t.type||"NewExpression"===t.type?e(t.callee,n)&&t.arguments.every(r):"MemberExpression"===t.type||"OptionalMemberExpression"===t.type?e(t.object,n)&&e(t.property,n):"UnaryExpression"!==t.type||"!"!==t.operator&&"-"!==t.operator?"TSNonNullExpression"===t.type&&e(t.expression,n):e(t.argument,n)))},isMeaningfulJSXText:fD,isMemberExpressionChain:function e(t){return("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&("Identifier"===t.object.type||e(t.object))},isMemberish:function(e){return"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"BindExpression"===e.type&&e.object},isNgForOf:function(e,t,n){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===n.body[0].type&&null===n.body[0].value},isNumericLiteral:eD,isObjectType:function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type},isObjectTypePropertyAFunction:function(e,t){return("ObjectTypeProperty"===e.type||"ObjectTypeInternalSlot"===e.type)&&"FunctionTypeAnnotation"===e.value.type&&!e.static&&!sD(e,t)},isSimpleFlowType:function(e){return e&&["AnyTypeAnnotation","NullLiteralTypeAnnotation","GenericTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation","BooleanTypeAnnotation","BooleanLiteralTypeAnnotation","StringTypeAnnotation"].includes(e.type)&&!("GenericTypeAnnotation"===e.type&&e.typeParameters)},isSimpleTemplateLiteral:function(e){return 0!==e.expressions.length&&e.expressions.every(e=>{if(e.comments)return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if("MemberExpression"===e.type||"OptionalMemberExpression"===e.type){let t=e;for(;"MemberExpression"===t.type||"OptionalMemberExpression"===t.type;){if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type)return!1;if(t=t.object,t.comments)return!1}return"Identifier"===t.type||"ThisExpression"===t.type}return!1})},isStringLiteral:tD,isStringPropSafeToCoerceToIdentifier:function(e,t){return tD(e.key)&&Jm(e.key.value)&&"json"!==t.parser&&!(("typescript"===t.parser||"babel-ts"===t.parser)&&"ClassProperty"===e.type)},isTemplateOnItsOwnLine:function(e,t,n){return("TemplateLiteral"===e.type&&mD(e)||"TaggedTemplateExpression"===e.type&&mD(e.quasi))&&!Vm(t,n.locStart(e),{backwards:!0})},isTestCall:function e(t,n){if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){if(rD(t)&&n&&e(n))return nD(t.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(before|after)(Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(t))return rD(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("Identifier"===t.callee.type&&lD.test(t.callee.name)||("MemberExpression"===(r=t).callee.type||"OptionalMemberExpression"===r.callee.type)&&"Identifier"===r.callee.object.type&&"Identifier"===r.callee.property.type&&lD.test(r.callee.object.name)&&("only"===r.callee.property.name||"skip"===r.callee.property.name))&&(function(e){return"TemplateLiteral"===e.type}(t.arguments[0])||tD(t.arguments[0])))return!(t.arguments[2]&&!eD(t.arguments[2]))&&((2===t.arguments.length?nD(t.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(t.arguments[1])&&t.arguments[1].params.length<=1)||rD(t.arguments[1]));var r;return!1},isTheOnlyJSXElementInMarkdown:function(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;const n=t.getNode();if(!n.expression||!uD(n.expression))return!1;const r=t.getParentNode();return"Program"===r.type&&1===r.body.length},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e,t){return("TypeAnnotation"===e.type||"TSTypeAnnotation"===e.type)&&"FunctionTypeAnnotation"===e.typeAnnotation.type&&!e.static&&!oD(e,e.typeAnnotation,t)},matchJsxWhitespaceRegex:pD,needsHardlineAfterDanglingComment:function(e){if(!e.comments)return!1;const t=qm(e.comments.filter(e=>!e.leading&&!e.trailing));return t&&!dm.isBlockComment(t)},rawText:DD,returnArgumentHasLeadingComment:function(e,t){if(hD(e.originalText,t,e))return!0;if(Ym(t)){let r,u=t;for(;r=(n=u).expressions?n.expressions[0]:n.left||n.test||n.callee||n.object||n.tag||n.argument||n.expression;)if(u=r,hD(e.originalText,u,e))return!0}var n;return!1}};const{getLeftSidePathName:yD,hasFlowShorthandAnnotationComment:ED,hasNakedLeftSide:CD,hasNode:bD}=gD;function AD(e,t){const n=e.getParentNode();if(!n)return!1;const r=e.getName(),u=e.getNode();if(e.getValue()!==u)return!1;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(e){switch(e.type){case"ObjectExpression":return!0;default:return!1}}(u)&&FD(e))return!0;if(function(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||"EnumDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExpressionStatement"===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}(u))return!1;if("flow"!==t.parser&&ED(e.getValue()))return!0;if("Identifier"===u.type)return!!(u.extra&&u.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(u.name));if("ParenthesizedExpression"===n.type)return!1;if(("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===u&&("ArrowFunctionExpression"===u.type||"AssignmentExpression"===u.type||"AwaitExpression"===u.type||"BinaryExpression"===u.type||"ConditionalExpression"===u.type||"LogicalExpression"===u.type||"NewExpression"===u.type||"ObjectExpression"===u.type||"ParenthesizedExpression"===u.type||"SequenceExpression"===u.type||"TaggedTemplateExpression"===u.type||"UnaryExpression"===u.type||"UpdateExpression"===u.type||"YieldExpression"===u.type))return!0;if("ExportDefaultDeclaration"===n.type)return function e(t,n){const r=t.getValue(),u=t.getParentNode();return"FunctionExpression"===r.type||"ClassExpression"===r.type?"ExportDefaultDeclaration"===u.type||!AD(t,n):!(!CD(r)||"ExportDefaultDeclaration"!==u.type&&AD(t,n))&&t.call(t=>e(t,n),...yD(t,r))}(e,t)||"SequenceExpression"===u.type;if("Decorator"===n.type&&n.expression===u){let e=!1,t=!1,n=u;for(;n;)switch(n.type){case"MemberExpression":t=!0,n=n.object;break;case"CallExpression":if(t||e)return!0;e=!0,n=n.callee;break;case"Identifier":return!1;default:return!0}return!0}if("ArrowFunctionExpression"===n.type&&n.body===u&&"SequenceExpression"!==u.type&&no.startsWithNoLookaheadToken(u,!1)||"ExpressionStatement"===n.type&&no.startsWithNoLookaheadToken(u,!0))return!0;switch(u.type){case"SpreadElement":case"SpreadProperty":return"MemberExpression"===n.type&&"object"===r&&n.object===u;case"UpdateExpression":if("UnaryExpression"===n.type)return u.prefix&&("++"===u.operator&&"+"===n.operator||"--"===u.operator&&"-"===n.operator);case"UnaryExpression":switch(n.type){case"UnaryExpression":return u.operator===n.operator&&("+"===u.operator||"-"===u.operator);case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"BinaryExpression":return"**"===n.operator&&"left"===r;case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":{if("UpdateExpression"===n.type)return!0;const t=t=>{let n=0;for(;t;){const r=e.getParentNode(n++);if(!r)return!1;if("ForStatement"===r.type&&r.init===t)return!0;t=r}return!1};if("in"===u.operator&&t(u))return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(n.type){case"ConditionalExpression":return"TSAsExpression"===u.type;case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===r;case"ClassExpression":case"ClassDeclaration":return"superClass"===r&&n.superClass===u;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"===r;case"AssignmentExpression":return n.left===u&&("TSTypeAssertion"===u.type||"TSAsExpression"===u.type);case"LogicalExpression":if("LogicalExpression"===u.type)return n.operator!==u.operator;case"BinaryExpression":{if(!u.operator&&"TSTypeAssertion"!==u.type)return!0;const e=n.operator,t=no.getPrecedence(e),a=u.operator,o=no.getPrecedence(a);return t>o||(t===o&&"right"===r?(ha.strictEqual(n.right,u),!0):t===o&&!no.shouldFlatten(e,a)||(t<o&&"%"===a?"+"===e||"-"===e:!!no.isBitwiseOperator(e)))}default:return!1}case"SequenceExpression":switch(n.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==r;case"ArrowFunctionExpression":return"body"!==r;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":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"ConditionalExpression":return n.test===u;default:return!1}case"TSJSDocFunctionType":case"TSConditionalType":if("TSConditionalType"===n.type&&u===n.extendsType)return!0;case"TSFunctionType":case"TSConstructorType":if("TSConditionalType"===n.type&&u===n.checkType)return!0;case"TSUnionType":case"TSIntersectionType":if("TSUnionType"===n.type||"TSIntersectionType"===n.type)return!0;case"TSTypeOperator":case"TSInferType":return"TSArrayType"===n.type||"TSOptionalType"===n.type||"TSRestType"===n.type||"TSIndexedAccessType"===n.type&&u===n.objectType||"TSTypeOperator"===n.type||"TSTypeAnnotation"===n.type&&/^TSJSDoc/.test(e.getParentNode(1).type);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":{const t="NullableTypeAnnotation"===n.type?e.getParentNode(1):n;return"UnionTypeAnnotation"===t.type||"IntersectionTypeAnnotation"===t.type||"ArrayTypeAnnotation"===t.type||"NullableTypeAnnotation"===t.type}case"StringLiteral":case"NumericLiteral":case"Literal":if("string"===typeof u.value&&"ExpressionStatement"===n.type&&("typescript"!==t.parser&&!n.directive||"typescript"===t.parser&&"("===t.originalText.charAt(t.locStart(u)-1))){const t=e.getParentNode(1);return"Program"===t.type||"BlockStatement"===t.type}return"MemberExpression"===n.type&&"number"===typeof u.value&&"object"===r&&n.object===u;case"AssignmentExpression":{const t=e.getParentNode(1);return"ArrowFunctionExpression"===n.type&&n.body===u||("ClassProperty"!==n.type||n.key!==u||!n.computed)&&("TSPropertySignature"!==n.type||n.name!==u)&&("ForStatement"!==n.type||n.init!==u&&n.update!==u)&&("ExpressionStatement"===n.type?"ObjectPattern"===u.left.type:("TSPropertySignature"!==n.type||n.key!==u)&&"AssignmentExpression"!==n.type&&("SequenceExpression"!==n.type||!t||"ForStatement"!==t.type||t.init!==n&&t.update!==n)&&("Property"!==n.type||n.value!==u)&&"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":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"ConditionalExpression":return"test"===r&&n.test===u;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;default:return!1}case"FunctionExpression":switch(n.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(n.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"TSAsExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"BinaryExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return"test"===r;default:return!1}case"ClassExpression":switch(n.type){case"NewExpression":return"callee"===r&&n.callee===u;default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":if("MemberExpression"===n.type&&"object"===r||("CallExpression"===n.type||"NewExpression"===n.type)&&"callee"===r)return!0;case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if(("BindExpression"===n.type||"NewExpression"===n.type)&&"callee"===r){let e=u;for(;e;)switch(e.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":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||"NewExpression"===n.type)&&"callee"===r||("MemberExpression"===n.type||"OptionalMemberExpression"===n.type)&&"object"===r;case"NGPipeExpression":return!("NGRoot"===n.type||"NGMicrosyntaxExpression"===n.type||"ObjectProperty"===n.type||"ArrayExpression"===n.type||("CallExpression"===n.type||"OptionalCallExpression"===n.type)&&n.arguments[r]===u||"NGPipeExpression"===n.type&&"right"===r||"MemberExpression"===n.type&&"property"===r||"AssignmentExpression"===n.type);case"JSXFragment":case"JSXElement":return"callee"===r||"ArrayExpression"!==n.type&&"ArrowFunctionExpression"!==n.type&&"AssignmentExpression"!==n.type&&"AssignmentPattern"!==n.type&&"BinaryExpression"!==n.type&&"CallExpression"!==n.type&&"NewExpression"!==n.type&&"ConditionalExpression"!==n.type&&"ExpressionStatement"!==n.type&&"JsExpressionRoot"!==n.type&&"JSXAttribute"!==n.type&&"JSXElement"!==n.type&&"JSXExpressionContainer"!==n.type&&"JSXFragment"!==n.type&&"LogicalExpression"!==n.type&&"ObjectProperty"!==n.type&&"OptionalCallExpression"!==n.type&&"Property"!==n.type&&"ReturnStatement"!==n.type&&"ThrowStatement"!==n.type&&"TypeCastExpression"!==n.type&&"VariableDeclarator"!==n.type&&"YieldExpression"!==n.type;case"TypeAnnotation":return"returnType"===r&&"ArrowFunctionExpression"===n.type&&function(e){return bD(e,e=>"ObjectTypeAnnotation"===e.type&&bD(e,e=>"FunctionTypeAnnotation"===e.type||void 0)||void 0)}(u)}return!1}function FD(e){const 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(FD);break;case"ObjectProperty":if("value"===r){const t=e.getParentNode(1);return t.properties[t.properties.length-1]===n}break;case"BinaryExpression":case"LogicalExpression":if("right"===r)return e.callParent(FD);break;case"ConditionalExpression":if("alternate"===r)return e.callParent(FD);break;case"UnaryExpression":if(n.prefix)return e.callParent(FD)}return!1}var vD=AD;const{builders:{concat:xD,join:SD,line:wD}}=So;var BD={isVueEventBindingExpression:function e(t){switch(t.type){case"MemberExpression":switch(t.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return e(t.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function(e,t,n){const r=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(r,t),"File"===r.type)return t.__isVueForBindingLeft?e.call(e=>{const{params:t}=e.getValue();return xD([t.length>1?"(":"",SD(xD([",",wD]),e.map(n,"params")),t.length>1?")":""])},"program","body",0):t.__isVueSlotScope?e.call(e=>SD(xD([",",wD]),e.map(n,"params")),"program","body",0):void 0}},TD=function(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:[],rootMarker:t.rootMarker});default:return e}};const{shouldFlatten:kD,getNextNonSpaceNonCommentCharacter:ND,hasNewline:OD,hasNewlineInRange:PD,getLast:ID,getStringWidth:MD,printString:_D,printNumber:jD,hasIgnoreComment:LD,hasNodeIgnoreComment:RD,getPenultimate:qD,startsWithNoLookaheadToken:VD,getIndentSize:WD,getPreferredQuote:UD}=no,{isNextLineEmpty:zD,isNextLineEmptyAfterIndex:$D,getNextNonSpaceNonCommentCharacterIndex:JD}=Yo,{insertPragma:GD}=ri,{printHtmlBinding:HD,isVueEventBindingExpression:XD}=BD,{classChildNeedsASIProtection:YD,classPropMayCauseASIProblems:KD,conditionalExpressionChainContainsJSX:QD,getFlowVariance:ZD,getLeftSidePathName:eg,getParentExportDeclaration:tg,getTypeScriptMappedTypeModifier:ng,hasDanglingComments:rg,hasFlowAnnotationComment:ug,hasFlowShorthandAnnotationComment:ag,hasLeadingComment:og,hasLeadingOwnLineComment:sg,hasNakedLeftSide:ig,hasNewlineBetweenOrAfterDecorators:lg,hasNgSideEffect:cg,hasPrettierIgnore:pg,hasTrailingComment:dg,identity:fg,isBinaryish:hg,isCallOrOptionalCallExpression:mg,isEmptyJSXElement:Dg,isExportDeclaration:gg,isFlowAnnotationComment:yg,isFunctionCompositionArgs:Eg,isFunctionNotation:Cg,isFunctionOrArrowExpression:bg,isGetterOrSetter:Ag,isJestEachTemplateLiteral:Fg,isJSXNode:vg,isJSXWhitespaceExpression:xg,isLastStatement:Sg,isLiteral:wg,isLongCurriedCallExpression:Bg,isMeaningfulJSXText:Tg,isMemberExpressionChain:kg,isMemberish:Ng,isNgForOf:Og,isNumericLiteral:Pg,isObjectType:Ig,isObjectTypePropertyAFunction:Mg,isSimpleCallArgument:_g,isSimpleFlowType:jg,isSimpleTemplateLiteral:Lg,isStringLiteral:Rg,isStringPropSafeToCoerceToIdentifier:qg,isTemplateOnItsOwnLine:Vg,isTestCall:Wg,isTheOnlyJSXElementInMarkdown:Ug,isTSXFile:zg,isTypeAnnotationAFunction:$g,matchJsxWhitespaceRegex:Jg,needsHardlineAfterDanglingComment:Gg,rawText:Hg,returnArgumentHasLeadingComment:Xg}=gD,Yg=new WeakMap,{builders:{concat:Kg,join:Qg,line:Zg,hardline:ey,softline:ty,literalline:ny,group:ry,indent:uy,align:ay,conditionalGroup:oy,fill:sy,ifBreak:iy,breakParent:ly,lineSuffixBoundary:cy,addAlignmentToDoc:py,dedent:dy},utils:{willBreak:fy,isLineNext:hy,isEmpty:my,removeLines:Dy},printer:{printDocToString:gy}}=So;let yy=0;function Ey(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 Cy(e,t,n){const r=e.getValue();return ry(Kg([Qg(Zg,e.map(n,"decorators")),lg(r,t)?ey:Zg]))}function by(e,t,n,r){const u=e.getValue(),a=u[r.consequentNodePropertyName],o=u[r.alternateNodePropertyName],s=[];let i=!1;const l=e.getParentNode(),c=l.type===r.conditionalNodeType&&r.testNodePropertyNames.some(e=>l[e]===u);let p,d,f=l.type===r.conditionalNodeType&&!c,h=0;do{d=p||u,p=e.getParentNode(h),h++}while(p&&p.type===r.conditionalNodeType&&r.testNodePropertyNames.every(e=>p[e]!==d));const m=p||l,D=d;if(r.shouldCheckJsx&&(vg(u[r.testNodePropertyNames[0]])||vg(a)||vg(o)||QD(D))){i=!0,f=!0;const t=e=>Kg([iy("(",""),uy(Kg([ty,e])),ty,iy(")","")]),u=e=>"NullLiteral"===e.type||"Literal"===e.type&&null===e.value||"Identifier"===e.type&&"undefined"===e.name;s.push(" ? ",u(a)?e.call(n,r.consequentNodePropertyName):t(e.call(n,r.consequentNodePropertyName))," : ",o.type===r.conditionalNodeType||u(o)?e.call(n,r.alternateNodePropertyName):t(e.call(n,r.alternateNodePropertyName)))}else{const i=Kg([Zg,"? ",a.type===r.conditionalNodeType?iy("","("):"",ay(2,e.call(n,r.consequentNodePropertyName)),a.type===r.conditionalNodeType?iy("",")"):"",Zg,": ",o.type===r.conditionalNodeType?e.call(n,r.alternateNodePropertyName):ay(2,e.call(n,r.alternateNodePropertyName))]);s.push(l.type!==r.conditionalNodeType||l[r.alternateNodePropertyName]===u||c?i:t.useTabs?dy(uy(i)):ay(Math.max(0,t.tabWidth-2),i))}const g=!i&&("MemberExpression"===l.type||"OptionalMemberExpression"===l.type||"NGPipeExpression"===l.type&&l.left===u)&&!l.computed,y=(e=>l===m?ry(e):e)(Kg([].concat((E=Kg(r.beforeParts()),l.type===r.conditionalNodeType&&l[r.alternateNodePropertyName]===u?ay(2,E):E),f?Kg(s):uy(Kg(s)),r.afterParts(g))));var E;return c?ry(Kg([uy(Kg([ty,y])),ty])):y}function Ay(e,t,n){const r=[],u=e.getNode(),a="ClassBody"===u.type;return e.map((e,o)=>{const s=e.getValue();if(!s)return;if("EmptyStatement"===s.type)return;const i=n(e),l=t.originalText,c=[];if(t.semi||a||Ug(t,e)||!function(e,t){return"ExpressionStatement"===e.getNode().type&&e.call(e=>function e(t,n){const r=t.getValue();return!!(vD(t,n)||"ParenthesizedExpression"===r.type||"TypeCastExpression"===r.type||"ArrowFunctionExpression"===r.type&&!Ny(t,n)||"ArrayExpression"===r.type||"ArrayPattern"===r.type||"UnaryExpression"===r.type&&r.prefix&&("+"===r.operator||"-"===r.operator)||"TemplateLiteral"===r.type||"TemplateElement"===r.type||vg(r)||"BindExpression"===r.type&&!r.object||"RegExpLiteral"===r.type||"Literal"===r.type&&r.pattern||"Literal"===r.type&&r.regex)||!!ig(r)&&t.call(t=>e(t,n),...eg(t,r))}(e,t),"expression")}(e,t)?c.push(i):s.comments&&s.comments.some(e=>e.leading)?c.push(n(e,{needsSemi:!0})):c.push(";",i),!t.semi&&a)if(KD(e))c.push(";");else if("ClassProperty"===s.type){const e=u.body[o+1];YD(e)&&c.push(";")}zD(l,s,t.locEnd)&&!Sg(e)&&c.push(ey),r.push(Kg(c))}),Qg(ey,r)}function Fy(e,t,n){const r=e.getNode();if(r.computed)return Kg(["[",e.call(n,"key"),"]"]);const u=e.getParentNode(),{key:a}=r;if("ClassPrivateProperty"===r.type&&"Identifier"===a.type)return Kg(["#",e.call(n,"key")]);if("consistent"===t.quoteProps&&!Yg.has(u)){const e=(u.properties||u.body||u.members).some(e=>!e.computed&&e.key&&Rg(e.key)&&!qg(e,t));Yg.set(u,e)}if("Identifier"===a.type&&("json"===t.parser||"consistent"===t.quoteProps&&Yg.get(u))){const n=_D(JSON.stringify(a.name),t);return e.call(e=>gs.printComments(e,()=>n,t),"key")}return qg(r,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!Yg.get(u))?e.call(e=>gs.printComments(e,()=>a.value,t),"key"):e.call(n,"key")}function vy(e,t,n){const r=e.getNode(),{kind:u}=r,a=r.value||r,o=[];return u&&"init"!==u&&"method"!==u&&"constructor"!==u?(ha.ok("get"===u||"set"===u),o.push(u," ")):(a.async&&o.push("async "),a.generator&&o.push("*")),o.push(Fy(e,t,n),r.optional||r.key.optional?"?":"",r===a?xy(e,t,n):e.call(e=>xy(e,t,n),"value")),Kg(o)}function xy(e,t,n){const r=[Ty(e,0,n),ry(Kg([ky(e,n,t),Py(e,n,t)]))];return e.getNode().body?r.push(" ",e.call(n,"body")):r.push(t.semi?";":""),Kg(r)}function Sy(e){return"ObjectExpression"===e.type&&(e.properties.length>0||e.comments)||"ArrayExpression"===e.type&&(e.elements.length>0||e.comments)||"TSTypeAssertion"===e.type&&Sy(e.expression)||"TSAsExpression"===e.type&&Sy(e.expression)||"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||vg(e.body))}function wy(e,t,n){const r=e.getValue(),u=r.arguments;if(0===u.length)return Kg(["(",gs.printDanglingComments(e,t,!0),")"]);if(2===u.length&&"ArrowFunctionExpression"===u[0].type&&0===u[0].params.length&&"BlockStatement"===u[0].body.type&&"ArrayExpression"===u[1].type&&!u.find(e=>e.comments))return Kg(["(",e.call(n,"arguments",0),", ",e.call(n,"arguments",1),")"]);let a=!1,o=!1,s=!1;const i=u.length-1,l=e.map((e,r)=>{const u=e.getNode(),l=[n(e)];return r===i||(zD(t.originalText,u,t.locEnd)?(0===r&&(s=!0),a=!0,l.push(",",ey,ey)):l.push(",",Zg)),o=function(e,t){if(!e||"ArrowFunctionExpression"!==e.type||!e.body||"BlockStatement"!==e.body.type||!e.params||e.params.length<1)return!1;let r=!1;return t.each(e=>{const t=Kg([n(e)]);r=r||fy(t)},"params"),r}(u,e),Kg(l)},"arguments"),c=r.callee&&"Import"===r.callee.type||!Ey(t,"all")?"":",";function p(){return ry(Kg(["(",uy(Kg([Zg,Kg(l)])),c,Zg,")"]),{shouldBreak:!0})}if("Decorator"!==e.getParentNode().type&&Eg(u))return p();const d=function(e){if(2!==e.length)return!1;const[t,n]=e;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&&!Sy(n)}(u),f=function(e){const t=ID(e),n=qD(e);return!og(t)&&!dg(t)&&Sy(t)&&(!n||n.type!==t.type)}(u);if(d||f){const t=(d?l.slice(1).some(fy):l.slice(0,-1).some(fy))||a||o;let i,c=0;e.each(e=>{d&&0===c&&(i=[Kg([e.call(e=>n(e,{expandFirstArg:!0})),l.length>1?",":"",s?ey:Zg,s?ey:""])].concat(l.slice(1))),f&&c===u.length-1&&(i=l.slice(0,-1).concat(e.call(e=>n(e,{expandLastArg:!0})))),c++},"arguments");const h=l.some(fy),m=Kg(["(",Kg(i),")"]);return Kg([h?ly:"",oy([h||r.typeArguments||r.typeParameters?iy(p(),m):m,Kg(d?["(",ry(i[0],{shouldBreak:!0}),Kg(i.slice(1)),")"]:["(",Kg(l.slice(0,-1)),ry(ID(i),{shouldBreak:!0}),")"]),p()],{shouldBreak:t})])}const h=Kg(["(",uy(Kg([ty,Kg(l)])),iy(c),ty,")"]);return Bg(e)?h:ry(h,{shouldBreak:l.some(fy)||a})}function By(e,t,n){const r=e.getValue();if(!r.typeAnnotation)return"";const u=e.getParentNode(),a=r.definite||u&&"VariableDeclarator"===u.type&&u.definite,o="DeclareFunction"===u.type&&u.id===r;return yg(t.originalText,r.typeAnnotation,t)?Kg([" /*: ",e.call(n,"typeAnnotation")," */"]):Kg([o?"":a?"!: ":": ",e.call(n,"typeAnnotation")])}function Ty(e,t,n){const r=e.getValue();return r.typeArguments?e.call(n,"typeArguments"):r.typeParameters?e.call(n,"typeParameters"):""}function ky(e,t,n,r,u){const a=e.getValue(),o=e.getParentNode(),s=a.parameters?"parameters":"params",i=Wg(o),l=Ky(a),c=r&&!(a[s]&&a[s].some(e=>e.comments)),p=u?Ty(e,0,t):"";let d=[];if(a[s]){const r=a[s].length-1;d=e.map((e,u)=>{const o=[],s=e.getValue();return o.push(t(e)),u===r?a.rest&&o.push(",",Zg):i||l||c?o.push(", "):zD(n.originalText,s,n.locEnd)?o.push(",",ey,ey):o.push(",",Zg),Kg(o)},s)}if(a.rest&&d.push(Kg(["...",e.call(t,"rest")])),0===d.length)return Kg([p,"(",gs.printDanglingComments(e,n,!0,e=>")"===ND(n.originalText,e,n.locEnd)),")"]);const f=ID(a[s]);if(c)return ry(Kg([Dy(p),"(",Kg(d.map(Dy)),")"]));const h=a[s].every(e=>!e.decorators);if(l&&h)return Kg([p,"(",Kg(d),")"]);if(i)return Kg([p,"(",Kg(d),")"]);if((Mg(o,n)||$g(o,n)||"TypeAlias"===o.type||"UnionTypeAnnotation"===o.type||"TSUnionType"===o.type||"IntersectionTypeAnnotation"===o.type||"FunctionTypeAnnotation"===o.type&&o.returnType===a)&&1===a[s].length&&null===a[s][0].name&&a[s][0].typeAnnotation&&null===a.typeParameters&&jg(a[s][0].typeAnnotation)&&!a.rest)return"always"===n.arrowParens?Kg(["(",Kg(d),")"]):Kg(d);const m=!(f&&"RestElement"===f.type)&&!a.rest;return Kg([p,"(",uy(Kg([ty,Kg(d)])),iy(m&&Ey(n,"all")?",":""),ty,")"])}function Ny(e,t){return"always"!==t.arrowParens&&("avoid"===t.arrowParens&&function(e){return 1===e.params.length&&!e.rest&&!e.typeParameters&&!rg(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 Oy(e,t,n){const r=e.getValue(),u=[];return r.async&&u.push("async "),r.generator?u.push("function* "):u.push("function "),r.id&&u.push(e.call(t,"id")),u.push(Ty(e,0,t),ry(Kg([ky(e,t,n),Py(e,t,n)])),r.body?" ":"",e.call(t,"body")),Kg(u)}function Py(e,t,n){const r=e.getValue(),u=e.call(t,"returnType");if(r.returnType&&yg(n.originalText,r.returnType,n))return Kg([" /*: ",u," */"]);const a=[u];return r.returnType&&r.returnType.typeAnnotation&&a.unshift(": "),r.predicate&&a.push(r.returnType?" ":": ",e.call(t,"predicate")),Kg(a)}function Iy(e,t,n){const r=e.getValue(),u=t.semi?";":"",a=["export "],o=r.default||"ExportDefaultDeclaration"===r.type;if(o&&a.push("default "),a.push(gs.printDanglingComments(e,t,!0)),Gg(r)&&a.push(ey),r.declaration)a.push(e.call(n,"declaration")),o&&"ClassDeclaration"!==r.declaration.type&&"FunctionDeclaration"!==r.declaration.type&&"TSInterfaceDeclaration"!==r.declaration.type&&"DeclareClass"!==r.declaration.type&&"DeclareFunction"!==r.declaration.type&&"TSDeclareFunction"!==r.declaration.type&&a.push(u);else{if(r.specifiers&&r.specifiers.length>0){const u=[],o=[],s=[];e.each(t=>{const r=e.getValue().type;"ExportSpecifier"===r?u.push(n(t)):"ExportDefaultSpecifier"===r?o.push(n(t)):"ExportNamespaceSpecifier"===r&&s.push(Kg(["* as ",n(t)]))},"specifiers");const i=0!==s.length&&0!==u.length,l=0!==o.length&&(0!==s.length||0!==u.length),c=u.length>1||o.length>0||r.specifiers&&r.specifiers.some(e=>e.comments);let p="";0!==u.length&&(p=c?ry(Kg(["{",uy(Kg([t.bracketSpacing?Zg:ty,Qg(Kg([",",Zg]),u)])),iy(Ey(t)?",":""),t.bracketSpacing?Zg:ty,"}"])):Kg(["{",t.bracketSpacing?" ":"",Kg(u),t.bracketSpacing?" ":"","}"])),a.push("type"===r.exportKind?"type ":"",Kg(o),Kg([l?", ":""]),Kg(s),Kg([i?", ":""]),p)}else a.push("{}");r.source&&a.push(" from ",e.call(n,"source")),a.push(u)}return Kg(a)}function My(e,t){const n=tg(e);return n?ha.strictEqual(n.type,"DeclareExportDeclaration"):t.unshift("declare "),Kg(t)}function _y(e,t,n){const r=e.getValue();return r.modifiers&&r.modifiers.length?Kg([Qg(" ",e.map(n,"modifiers"))," "]):""}function jy(e,t,n,r){const u=e.getValue();if(!u[r])return"";if(!Array.isArray(u[r]))return e.call(n,r);const a=e.getNode(2),o=e.getNode(3),s=e.getNode(4);return null!=a&&Wg(a)||0===u[r].length||1===u[r].length&&(Yy(u[r][0])||"GenericTypeAnnotation"===u[r][0].type&&Yy(u[r][0].id)||"TSTypeReference"===u[r][0].type&&Yy(u[r][0].typeName)||"NullableTypeAnnotation"===u[r][0].type||s&&"VariableDeclarator"===s.type&&"TSTypeAnnotation"===a.type&&"ArrowFunctionExpression"!==o.type&&"TSUnionType"!==u[r][0].type&&"UnionTypeAnnotation"!==u[r][0].type&&"TSIntersectionType"!==u[r][0].type&&"IntersectionTypeAnnotation"!==u[r][0].type&&"TSConditionalType"!==u[r][0].type&&"TSMappedType"!==u[r][0].type&&"TSTypeOperator"!==u[r][0].type&&"TSIndexedAccessType"!==u[r][0].type&&"TSArrayType"!==u[r][0].type)?Kg(["<",Qg(", ",e.map(n,r)),function(n){if(!rg(n))return"";const r=n.comments.every(dm.isBlockComment),u=gs.printDanglingComments(e,t,r);return r?u:Kg([u,ey])}(u),">"]):ry(Kg(["<",uy(Kg([ty,Qg(Kg([",",Zg]),e.map(n,r))])),iy("typescript"!==t.parser&&"babel-ts"!==t.parser&&Ey(t,"all")?",":""),ty,">"]))}function Ly(e,t,n){const r=e.getValue(),u=[];r.abstract&&u.push("abstract "),u.push("class"),r.id&&u.push(" ",e.call(n,"id")),u.push(e.call(n,"typeParameters"));const a=[];if(r.superClass){const o=Kg(["extends ",e.call(n,"superClass"),e.call(n,"superTypeParameters")]);r.implements&&0!==r.implements.length||r.superClass.comments&&0!==r.superClass.comments.length?a.push(ry(Kg([Zg,e.call(e=>gs.printComments(e,()=>o,t),"superClass")]))):u.push(Kg([" ",e.call(e=>gs.printComments(e,()=>o,t),"superClass")]))}else r.extends&&r.extends.length>0&&u.push(" extends ",Qg(", ",e.map(n,"extends")));return r.mixins&&r.mixins.length>0&&a.push(Zg,"mixins ",ry(uy(Qg(Kg([",",Zg]),e.map(n,"mixins"))))),r.implements&&r.implements.length>0&&a.push(Zg,"implements",ry(uy(Kg([Zg,Qg(Kg([",",Zg]),e.map(n,"implements"))])))),a.length>0&&u.push(ry(uy(Kg(a)))),r.body&&r.body.comments&&sg(t.originalText,r.body,t)?u.push(ey):u.push(" "),u.push(e.call(n,"body")),u}function Ry(e){const t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"}function qy(e,t,n){const r=e.call(n,"property"),u=e.getValue(),a=Ry(e);return u.computed?!u.property||Pg(u.property)?Kg([a,"[",r,"]"]):ry(Kg([a,"[",uy(Kg([ty,r])),ty,"]"])):Kg([a,".",r])}function Vy(e,t,n){return Kg(["::",e.call(n,"callee")])}function Wy(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?ty:ey:ty}function Uy(e,t,n,r){return e?ey:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?ey:ty:ey}function zy(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&0!==e.right.properties.length||"ArrayExpression"===e.right.type&&0!==e.right.elements.length||!!vg(e.right))}function $y(e,t,n,r){return sg(r.originalText,t,r)?uy(Kg([Zg,n])):hg(t)&&!zy(t)||"ConditionalExpression"===t.type&&hg(t.test)&&!zy(t.test)||"StringLiteralTypeAnnotation"===t.type||"ClassExpression"===t.type&&t.decorators&&t.decorators.length||("Identifier"===e.type||Rg(e)||"MemberExpression"===e.type)&&(Rg(t)||kg(t))&&"json"!==r.parser&&"json5"!==r.parser||"SequenceExpression"===t.type?ry(uy(Kg([Zg,n]))):Kg([" ",n])}function Jy(e,t,n,r,u,a){if(!r)return t;const o=$y(e,r,u,a);return ry(Kg([t,n,o]))}function Gy(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?Kg([" ",t]):uy(Kg([Zg,t]))}function Hy(e,t,n){const r=Hg(e),u=n||"DirectiveLiteral"===e.type;return _D(r,t,u)}function Xy(e){const t=e.flags.split("").sort().join("");return"/".concat(e.pattern,"/").concat(t)}function Yy(e){if(jg(e)||Ig(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){const t=e.types.filter(e=>"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type).length,n=e.types.some(e=>"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type);if(e.types.length-1===t&&n)return!0}return!1}function Ky(e){if(!e||e.rest)return!1;const t=e.params||e.parameters;if(!t||1!==t.length)return!1;const n=t[0];return!n.comments&&("ObjectPattern"===n.type||"ArrayPattern"===n.type||"Identifier"===n.type&&n.typeAnnotation&&("TypeAnnotation"===n.typeAnnotation.type||"TSTypeAnnotation"===n.typeAnnotation.type)&&Ig(n.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===n.type&&Ig(n.typeAnnotation)||"AssignmentPattern"===n.type&&("ObjectPattern"===n.left.type||"ArrayPattern"===n.left.type)&&("Identifier"===n.right.type||"ObjectExpression"===n.right.type&&0===n.right.properties.length||"ArrayExpression"===n.right.type&&0===n.right.elements.length))}function Qy(e,t,n,r){const u=[];let a=[];return e.each(e=>{u.push(Kg(a)),u.push(ry(r(e))),a=[",",Zg],e.getValue()&&zD(t.originalText,e.getValue(),t.locEnd)&&a.push(ty)},n),Kg(u)}function Zy(e,t,n){const r=e.getValue(),u=t.semi?";":"",a=[];r.argument&&(Xg(t,r.argument)?a.push(Kg([" (",uy(Kg([ey,e.call(n,"argument")])),ey,")"])):hg(r.argument)||"SequenceExpression"===r.argument.type?a.push(ry(Kg([iy(" ("," "),uy(Kg([ty,e.call(n,"argument")])),ty,iy(")")]))):a.push(" ",e.call(n,"argument")));const o=Array.isArray(r.comments)&&r.comments[r.comments.length-1],s=o&&("CommentLine"===o.type||"Line"===o.type);return s&&a.push(u),rg(r)&&a.push(" ",gs.printDanglingComments(e,t,!0)),s||a.push(u),Kg(a)}var eE={preprocess:TD,print:function(e,t,n,r){const u=e.getValue();let a=!1;const o=function(e,t,n,r){const u=e.getValue(),a=t.semi?";":"";if(!u)return"";if("string"===typeof u)return u;const o=HD(e,t,n);if(o)return o;let s=[];switch(u.type){case"JsExpressionRoot":return e.call(n,"node");case"JsonRoot":return Kg([e.call(n,"node"),ey]);case"File":return u.program&&u.program.interpreter&&s.push(e.call(e=>e.call(n,"interpreter"),"program")),s.push(e.call(n,"program")),Kg(s);case"Program":return u.directives&&e.each(e=>{s.push(n(e),a,ey),zD(t.originalText,e.getValue(),t.locEnd)&&s.push(ey)},"directives"),s.push(e.call(e=>Ay(e,t,n),"body")),s.push(gs.printDanglingComments(e,t,!0)),u.body.every(({type:e})=>"EmptyStatement"===e)&&!u.comments||s.push(ey),Kg(s);case"EmptyStatement":return"";case"ExpressionStatement":if(u.directive)return Kg([Hy(u.expression,t,!0),a]);if("__vue_event_binding"===t.parser){const t=e.getParentNode();if("Program"===t.type&&1===t.body.length&&t.body[0]===u)return Kg([e.call(n,"expression"),XD(u.expression)?";":""])}return Kg([e.call(n,"expression"),Ug(t,e)?"":a]);case"ParenthesizedExpression":return u.expression.comments?ry(Kg(["(",uy(Kg([ty,e.call(n,"expression")])),ty,")"])):Kg(["(",e.call(n,"expression"),")"]);case"AssignmentExpression":return Jy(u.left,e.call(n,"left"),Kg([" ",u.operator]),u.right,e.call(n,"right"),t);case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":{const r=e.getParentNode(),a=e.getParentNode(1),o=u!==r.body&&("IfStatement"===r.type||"WhileStatement"===r.type||"SwitchStatement"===r.type||"DoWhileStatement"===r.type),s=function e(t,n,r,u,a){let o=[];const s=t.getValue();if(hg(s)){kD(s.operator,s.left.operator)?o=o.concat(t.call(t=>e(t,n,r,!0,a),"left")):o.push(t.call(n,"left"));const i=zy(s),l=("|>"===s.operator||"NGPipeExpression"===s.type||"|"===s.operator&&"__vue_expression"===r.parser)&&!sg(r.originalText,s.right,r),c="NGPipeExpression"===s.type?"|":s.operator,p="NGPipeExpression"===s.type&&0!==s.arguments.length?ry(uy(Kg([ty,": ",Qg(Kg([ty,":",iy(" ")]),t.map(n,"arguments").map(e=>ay(2,ry(e))))]))):"",d=Kg(i?[c," ",t.call(n,"right"),p]:[l?ty:"",c,l?" ":Zg,t.call(n,"right"),p]),f=t.getParentNode(),h=!(a&&"LogicalExpression"===s.type)&&f.type!==s.type&&s.left.type!==s.type&&s.right.type!==s.type;o.push(" ",h?ry(d):d),u&&s.comments&&(o=gs.printComments(t,()=>Kg(o),r))}else o.push(t.call(n));return o}(e,n,t,!1,o);if(o)return Kg(s);if(("CallExpression"===r.type||"OptionalCallExpression"===r.type)&&r.callee===u||"UnaryExpression"===r.type||("MemberExpression"===r.type||"OptionalMemberExpression"===r.type)&&!r.computed)return ry(Kg([uy(Kg([ty,Kg(s)])),ty]));const i="ReturnStatement"===r.type||"ThrowStatement"===r.type||"JSXExpressionContainer"===r.type&&"JSXAttribute"===a.type||"|"!==u.operator&&"JsExpressionRoot"===r.type||"NGPipeExpression"!==u.type&&("NGRoot"===r.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===r.type&&"NGMicrosyntax"===a.type&&1===a.body.length)||u===r.body&&"ArrowFunctionExpression"===r.type||u!==r.body&&"ForStatement"===r.type||"ConditionalExpression"===r.type&&"ReturnStatement"!==a.type&&"ThrowStatement"!==a.type&&"CallExpression"!==a.type&&"OptionalCallExpression"!==a.type||"TemplateLiteral"===r.type,l="AssignmentExpression"===r.type||"VariableDeclarator"===r.type||"ClassProperty"===r.type||"TSAbstractClassProperty"===r.type||"ClassPrivateProperty"===r.type||"ObjectProperty"===r.type||"Property"===r.type,c=hg(u.left)&&kD(u.operator,u.left.operator);if(i||zy(u)&&!c||!zy(u)&&l)return ry(Kg(s));if(0===s.length)return"";const p=vg(u.right),d=Kg(p?s.slice(1,-1):s.slice(1)),f=Symbol("logicalChain-"+ ++yy),h=ry(Kg([s.length>0?s[0]:"",uy(d)]),{id:f});if(!p)return h;const m=ID(s);return ry(Kg([h,iy(uy(m),m,{groupId:f})]))}case"AssignmentPattern":return Kg([e.call(n,"left")," = ",e.call(n,"right")]);case"TSTypeAssertion":{const t=!("ArrayExpression"===u.expression.type||"ObjectExpression"===u.expression.type),r=ry(Kg(["<",uy(Kg([ty,e.call(n,"typeAnnotation")])),ty,">"])),a=Kg([iy("("),uy(Kg([ty,e.call(n,"expression")])),ty,iy(")")]);return t?oy([Kg([r,e.call(n,"expression")]),Kg([r,ry(a,{shouldBreak:!0})]),Kg([r,e.call(n,"expression")])]):ry(Kg([r,e.call(n,"expression")]))}case"OptionalMemberExpression":case"MemberExpression":{const t=e.getParentNode();let r,a=0;do{r=e.getParentNode(a),a++}while(r&&("MemberExpression"===r.type||"OptionalMemberExpression"===r.type||"TSNonNullExpression"===r.type));const o=r&&("NewExpression"===r.type||"BindExpression"===r.type||"VariableDeclarator"===r.type&&"Identifier"!==r.id.type||"AssignmentExpression"===r.type&&"Identifier"!==r.left.type)||u.computed||"Identifier"===u.object.type&&"Identifier"===u.property.type&&"MemberExpression"!==t.type&&"OptionalMemberExpression"!==t.type;return Kg([e.call(n,"object"),o?qy(e,0,n):ry(uy(Kg([ty,qy(e,0,n)])))])}case"MetaProperty":return Kg([e.call(n,"meta"),".",e.call(n,"property")]);case"BindExpression":return u.object&&s.push(e.call(n,"object")),s.push(ry(uy(Kg([ty,Vy(e,0,n)])))),Kg(s);case"Identifier":return Kg([u.name,Ry(e),By(e,t,n)]);case"V8IntrinsicIdentifier":return Kg(["%",u.name]);case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return Kg(["...",e.call(n,"argument"),By(e,t,n)]);case"FunctionDeclaration":case"FunctionExpression":return s.push(Oy(e,n,t)),u.body||s.push(a),Kg(s);case"ArrowFunctionExpression":{u.async&&s.push("async "),Ny(e,t)?s.push(e.call(n,"params",0)):s.push(ry(Kg([ky(e,n,t,r&&(r.expandLastArg||r.expandFirstArg),!0),Py(e,n,t)])));const a=gs.printDanglingComments(e,t,!0,e=>{const n=JD(t.originalText,e,t.locEnd);return"=>"===t.originalText.slice(n,n+2)});a&&s.push(" ",a),s.push(" =>");const o=e.call(e=>n(e,r),"body");if(!sg(t.originalText,u.body,t)&&("ArrayExpression"===u.body.type||"ObjectExpression"===u.body.type||"BlockStatement"===u.body.type||vg(u.body)||Vg(u.body,t.originalText,t)||"ArrowFunctionExpression"===u.body.type||"DoExpression"===u.body.type))return ry(Kg([Kg(s)," ",o]));if("SequenceExpression"===u.body.type)return ry(Kg([Kg(s),ry(Kg([" (",uy(Kg([ty,o])),ty,")"]))]));const i=(r&&r.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!(u.comments&&u.comments.length),l=r&&r.expandLastArg&&Ey(t,"all"),c="ConditionalExpression"===u.body.type&&!VD(u.body,!1);return ry(Kg([Kg(s),ry(Kg([uy(Kg([Zg,c?iy("","("):"",o,c?iy("",")"):""])),i?Kg([iy(l?",":""),ty]):""]))]))}case"YieldExpression":return s.push("yield"),u.delegate&&s.push("*"),u.argument&&s.push(" ",e.call(n,"argument")),Kg(s);case"AwaitExpression":{s.push("await ",e.call(n,"argument"));const t=e.getParentNode();return("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&t.callee===u||("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&t.object===u?ry(Kg([uy(Kg([ty,Kg(s)])),ty])):Kg(s)}case"ImportSpecifier":return u.importKind&&s.push(e.call(n,"importKind")," "),s.push(e.call(n,"imported")),u.local&&u.local.name!==u.imported.name&&s.push(" as ",e.call(n,"local")),Kg(s);case"ExportSpecifier":return s.push(e.call(n,"local")),u.exported&&u.exported.name!==u.local.name&&s.push(" as ",e.call(n,"exported")),Kg(s);case"ImportNamespaceSpecifier":return s.push("* as "),s.push(e.call(n,"local")),Kg(s);case"ImportDefaultSpecifier":return e.call(n,"local");case"TSExportAssignment":return Kg(["export = ",e.call(n,"expression"),a]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return Iy(e,t,n);case"ExportAllDeclaration":return s.push("export "),"type"===u.exportKind&&s.push("type "),s.push("* "),u.exported&&s.push("as ",e.call(n,"exported")," "),s.push("from ",e.call(n,"source"),a),Kg(s);case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return e.call(n,"exported");case"ImportDeclaration":{s.push("import "),u.importKind&&"value"!==u.importKind&&s.push(u.importKind+" ");const r=[],o=[];return u.specifiers&&u.specifiers.length>0?(e.each(e=>{const t=e.getValue();"ImportDefaultSpecifier"===t.type||"ImportNamespaceSpecifier"===t.type?r.push(n(e)):o.push(n(e))},"specifiers"),r.length>0&&s.push(Qg(", ",r)),r.length>0&&o.length>0&&s.push(", "),1===o.length&&0===r.length&&u.specifiers&&!u.specifiers.some(e=>e.comments)?s.push(Kg(["{",t.bracketSpacing?" ":"",Kg(o),t.bracketSpacing?" ":"","}"])):o.length>=1&&s.push(ry(Kg(["{",uy(Kg([t.bracketSpacing?Zg:ty,Qg(Kg([",",Zg]),o)])),iy(Ey(t)?",":""),t.bracketSpacing?Zg:ty,"}"]))),s.push(" from ")):(u.importKind&&"type"===u.importKind||/{\s*}/.test(t.originalText.slice(t.locStart(u),t.locStart(u.source))))&&s.push("{} from "),s.push(e.call(n,"source"),a),Kg(s)}case"Import":return"import";case"TSModuleBlock":case"BlockStatement":{const r=e.call(e=>Ay(e,t,n),"body"),o=u.body.find(e=>"EmptyStatement"!==e.type),i=u.directives&&u.directives.length>0,l=e.getParentNode(),c=e.getParentNode(1);return o||i||rg(u)||"ArrowFunctionExpression"!==l.type&&"FunctionExpression"!==l.type&&"FunctionDeclaration"!==l.type&&"ObjectMethod"!==l.type&&"ClassMethod"!==l.type&&"ClassPrivateMethod"!==l.type&&"ForStatement"!==l.type&&"WhileStatement"!==l.type&&"DoWhileStatement"!==l.type&&"DoExpression"!==l.type&&("CatchClause"!==l.type||c.finalizer)&&"TSModuleDeclaration"!==l.type?(s.push("{"),i&&e.each(e=>{s.push(uy(Kg([ey,n(e),a]))),zD(t.originalText,e.getValue(),t.locEnd)&&s.push(ey)},"directives"),o&&s.push(uy(Kg([ey,r]))),s.push(gs.printDanglingComments(e,t)),s.push(ey,"}"),Kg(s)):"{}"}case"ReturnStatement":return Kg(["return",Zy(e,t,n)]);case"NewExpression":case"OptionalCallExpression":case"CallExpression":{const r="NewExpression"===u.type,a=Ry(e);if(!r&&"Identifier"===u.callee.type&&("require"===u.callee.name||"define"===u.callee.name)||1===u.arguments.length&&Vg(u.arguments[0],t.originalText,t)||!r&&Wg(u,e.getParentNode()))return Kg([r?"new ":"",e.call(n,"callee"),a,Ty(e,0,n),Kg(["(",Qg(", ",e.map(n,"arguments")),")"])]);const o="Identifier"===u.callee.type&&ug(u.callee.trailingComments);if(o&&(u.callee.trailingComments[0].printed=!0),!r&&Ng(u.callee)&&!e.call(e=>vD(e,t),"callee"))return function(e,t,n){const r=[];function u(e){const{originalText:n}=t,r=JD(n,e,t.locEnd);return")"===n.charAt(r)?$D(n,r+1,t.locEnd):zD(n,e,t.locEnd)}const a=e.getValue();r.unshift({node:a,printed:Kg([Ry(e),Ty(e,0,n),wy(e,t,n)])}),e.call(e=>function e(a){const o=a.getValue();"CallExpression"!==o.type&&"OptionalCallExpression"!==o.type||!Ng(o.callee)&&"CallExpression"!==o.callee.type&&"OptionalCallExpression"!==o.callee.type?Ng(o)?(r.unshift({node:o,needsParens:vD(a,t),printed:gs.printComments(a,()=>"OptionalMemberExpression"===o.type||"MemberExpression"===o.type?qy(a,0,n):Vy(a,0,n),t)}),a.call(t=>e(t),"object")):"TSNonNullExpression"===o.type?(r.unshift({node:o,printed:gs.printComments(a,()=>"!",t)}),a.call(t=>e(t),"expression")):r.unshift({node:o,printed:a.call(n)}):(r.unshift({node:o,printed:Kg([gs.printComments(a,()=>Kg([Ry(a),Ty(a,0,n),wy(a,t,n)]),t),u(o)?ey:""])}),a.call(t=>e(t),"callee"))}(e),"callee");const o=[];let s=[r[0]],i=1;for(;i<r.length&&("TSNonNullExpression"===r[i].node.type||"OptionalCallExpression"===r[i].node.type||"CallExpression"===r[i].node.type||("MemberExpression"===r[i].node.type||"OptionalMemberExpression"===r[i].node.type)&&r[i].node.computed&&Pg(r[i].node.property));++i)s.push(r[i]);if("CallExpression"!==r[0].node.type&&"OptionalCallExpression"!==r[0].node.type)for(;i+1<r.length&&Ng(r[i].node)&&Ng(r[i+1].node);++i)s.push(r[i]);o.push(s),s=[];let l=!1;for(;i<r.length;++i){if(l&&Ng(r[i].node)){if(r[i].node.computed&&Pg(r[i].node.property)){s.push(r[i]);continue}o.push(s),s=[],l=!1}"CallExpression"!==r[i].node.type&&"OptionalCallExpression"!==r[i].node.type||(l=!0),s.push(r[i]),r[i].node.comments&&r[i].node.comments.some(e=>e.trailing)&&(o.push(s),s=[],l=!1)}function c(e){return/^[A-Z]|^[_$]+$/.test(e)}s.length>0&&o.push(s);const p=o.length>=2&&!o[1][0].node.comments&&function(n){const r=e.getParentNode(),u=r&&"ExpressionStatement"===r.type,a=n[1].length&&n[1][0].node.computed;if(1===n[0].length){const e=n[0][0].node;return"ThisExpression"===e.type||"Identifier"===e.type&&(c(e.name)||u&&function(e){return e.length<=t.tabWidth}(e.name)||a)}const o=ID(n[0]).node;return("MemberExpression"===o.type||"OptionalMemberExpression"===o.type)&&"Identifier"===o.property.type&&(c(o.property.name)||a)}(o);function d(e){const t=e.map(e=>e.printed);return e.length>0&&e[e.length-1].needsParens?Kg(["(",...t,")"]):Kg(t)}const f=o.map(d),h=Kg(f),m=p?3:2,D=o.reduce((e,t)=>e.concat(t),[]),g=D.slice(1,-1).some(e=>og(e.node))||D.slice(0,-1).some(e=>dg(e.node))||o[m]&&og(o[m][0].node);if(o.length<=m&&!g)return Bg(e)?h:ry(h);const y=ID(p?o.slice(1,2)[0]:o[0]).node,E="CallExpression"!==y.type&&"OptionalCallExpression"!==y.type&&u(y),C=Kg([d(o[0]),p?Kg(o.slice(1,2).map(d)):"",E?ey:"",function(e){return 0===e.length?"":uy(ry(Kg([ey,Qg(ey,e.map(d))])))}(o.slice(p?2:1))]),b=r.map(({node:e})=>e).filter(mg);return g||b.length>2&&b.some(e=>!e.arguments.every(e=>_g(e,0)))||f.slice(0,-1).some(fy)||(A=ID(f),F=ID(ID(o)).node,mg(F)&&fy(A)&&b.slice(0,-1).some(e=>e.arguments.some(bg)))?ry(C):Kg([fy(h)||E?ly:"",oy([h,C])]);var A,F}(e,t,n);const s=Kg([r?"new ":"",e.call(n,"callee"),a,o?"/*:: ".concat(u.callee.trailingComments[0].value.slice(2).trim()," */"):"",Ty(e,0,n),wy(e,t,n)]);return mg(u.callee)?ry(s):s}case"TSInterfaceDeclaration":return u.declare&&s.push("declare "),s.push(u.abstract?"abstract ":"",_y(e,0,n),"interface ",e.call(n,"id"),u.typeParameters?e.call(n,"typeParameters"):""," "),u.extends&&u.extends.length&&s.push(ry(uy(Kg([ty,"extends ",(1===u.extends.length?fg:uy)(Qg(Kg([",",Zg]),e.map(n,"extends")))," "])))),s.push(e.call(n,"body")),Kg(s);case"ObjectTypeInternalSlot":return Kg([u.static?"static ":"","[[",e.call(n,"id"),"]]",Ry(e),u.method?"":": ",e.call(n,"value")]);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":{let r;r="TSTypeLiteral"===u.type?"members":"TSInterfaceBody"===u.type?"body":"properties";const o="ObjectTypeAnnotation"===u.type,s=[];o&&s.push("indexers","callProperties","internalSlots"),s.push(r);const i=s.map(e=>u[e][0]).sort((e,n)=>t.locStart(e)-t.locStart(n))[0],l=e.getParentNode(0),c=o&&l&&("InterfaceDeclaration"===l.type||"DeclareInterface"===l.type||"DeclareClass"===l.type)&&"body"===e.getName(),p="TSInterfaceBody"===u.type||c||"ObjectPattern"===u.type&&"FunctionDeclaration"!==l.type&&"FunctionExpression"!==l.type&&"ArrowFunctionExpression"!==l.type&&"ObjectMethod"!==l.type&&"ClassMethod"!==l.type&&"ClassPrivateMethod"!==l.type&&"AssignmentPattern"!==l.type&&"CatchClause"!==l.type&&u.properties.some(e=>e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type))||"ObjectPattern"!==u.type&&i&&PD(t.originalText,t.locStart(u),t.locStart(i)),d=c?";":"TSInterfaceBody"===u.type||"TSTypeLiteral"===u.type?iy(a,";"):",",f=u.exact?"{|":"{",h=u.exact?"|}":"}",m=[];s.forEach(r=>{e.each(e=>{const r=e.getValue();m.push({node:r,printed:n(e),loc:t.locStart(r)})},r)});let D=[];const g=m.sort((e,t)=>e.loc-t.loc).map(e=>{const n=Kg(D.concat(ry(e.printed)));return D=[d,Zg],"TSPropertySignature"!==e.node.type&&"TSMethodSignature"!==e.node.type&&"TSConstructSignatureDeclaration"!==e.node.type||!RD(e.node)||D.shift(),zD(t.originalText,e.node,t.locEnd)&&D.push(ey),n});if(u.inexact){let n;if(rg(u)){const r=!u.comments.every(dm.isBlockComment),a=gs.printDanglingComments(e,t,!0);n=Kg([a,r||OD(t.originalText,t.locEnd(u.comments[u.comments.length-1]))?ey:Zg,"..."])}else n="...";g.push(Kg(D.concat(n)))}const y=ID(u[r]),E=!(u.inexact||y&&("RestElement"===y.type||RD(y)));let C;if(0===g.length){if(!rg(u))return Kg([f,h,By(e,t,n)]);C=ry(Kg([f,gs.printDanglingComments(e,t),ty,h,Ry(e),By(e,t,n)]))}else C=Kg([f,uy(Kg([t.bracketSpacing?Zg:ty,Kg(g)])),iy(E&&(","!==d||Ey(t))?d:""),Kg([t.bracketSpacing?Zg:ty,h]),Ry(e),By(e,t,n)]);return e.match(e=>"ObjectPattern"===e.type&&!e.decorators,(e,t,n)=>Ky(e)&&("params"===t||"parameters"===t)&&0===n)||e.match(Yy,(e,t)=>"typeAnnotation"===t,(e,t)=>"typeAnnotation"===t,(e,t,n)=>Ky(e)&&("params"===t||"parameters"===t)&&0===n)?C:ry(C,{shouldBreak:p})}case"ObjectProperty":case"Property":return u.method||"get"===u.kind||"set"===u.kind?vy(e,t,n):(u.shorthand?s.push(e.call(n,"value")):s.push(Jy(u.key,Fy(e,t,n),":",u.value,e.call(n,"value"),t)),Kg(s));case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":case"TSAbstractMethodDefinition":case"TSDeclareMethod":return u.decorators&&0!==u.decorators.length&&s.push(Cy(e,t,n)),u.accessibility&&s.push(u.accessibility+" "),u.static&&s.push("static "),("TSAbstractMethodDefinition"===u.type||u.abstract)&&s.push("abstract "),s.push(vy(e,t,n)),Kg(s);case"ObjectMethod":return vy(e,t,n);case"Decorator":return Kg(["@",e.call(n,"expression"),e.call(n,"callee")]);case"ArrayExpression":case"ArrayPattern":if(0===u.elements.length)rg(u)?s.push(ry(Kg(["[",gs.printDanglingComments(e,t),ty,"]"]))):s.push("[]");else{const r=ID(u.elements),a=!(r&&"RestElement"===r.type),o=a&&null===r,i=u.elements.length>1&&u.elements.every((e,t,n)=>{const r=e&&e.type;if("ArrayExpression"!==r&&"ObjectExpression"!==r)return!1;const u=n[t+1];if(u&&r!==u.type)return!1;const a="ArrayExpression"===r?"elements":"properties";return e[a]&&e[a].length>1});s.push(ry(Kg(["[",uy(Kg([ty,Qy(e,t,"elements",n)])),o?",":"",iy(a&&!o&&Ey(t)?",":""),gs.printDanglingComments(e,t,!0),ty,"]"]),{shouldBreak:i}))}return s.push(Ry(e),By(e,t,n)),Kg(s);case"SequenceExpression":{const t=e.getParentNode(0);if("ExpressionStatement"===t.type||"ForStatement"===t.type){const t=[];return e.each(e=>{0===e.getName()?t.push(n(e)):t.push(",",uy(Kg([Zg,n(e)])))},"expressions"),ry(Kg(t))}return ry(Kg([Qg(Kg([",",Zg]),e.map(n,"expressions"))]))}case"ThisExpression":return"this";case"Super":return"super";case"NullLiteral":return"null";case"RegExpLiteral":return Xy(u);case"NumericLiteral":return jD(u.extra.raw);case"BigIntLiteral":return(u.bigint||(u.extra?u.extra.raw:u.raw)).toLowerCase();case"BooleanLiteral":case"StringLiteral":case"Literal":{if(u.regex)return Xy(u.regex);if("number"===typeof u.value)return jD(u.raw);if("string"!==typeof u.value)return""+u.value;const n=e.getParentNode(1),r="typescript"===t.parser&&"string"===typeof u.value&&n&&("Program"===n.type||"BlockStatement"===n.type);return Hy(u,t,r)}case"Directive":return e.call(n,"value");case"DirectiveLiteral":return Hy(u,t);case"UnaryExpression":return s.push(u.operator),/[a-z]$/.test(u.operator)&&s.push(" "),u.argument.comments&&u.argument.comments.length>0?s.push(ry(Kg(["(",uy(Kg([ty,e.call(n,"argument")])),ty,")"]))):s.push(e.call(n,"argument")),Kg(s);case"UpdateExpression":return s.push(e.call(n,"argument"),u.operator),u.prefix&&s.reverse(),Kg(s);case"ConditionalExpression":return by(e,t,n,{beforeParts:()=>[e.call(n,"test")],afterParts:e=>[e?ty:""],shouldCheckJsx:!0,conditionalNodeType:"ConditionalExpression",consequentNodePropertyName:"consequent",alternateNodePropertyName:"alternate",testNodePropertyNames:["test"]});case"VariableDeclaration":{const t=e.map(e=>n(e),"declarations"),r=e.getParentNode(),o="ForStatement"===r.type||"ForInStatement"===r.type||"ForOfStatement"===r.type,i=u.declarations.some(e=>e.init);let l;return 1!==t.length||u.declarations[0].comments?t.length>0&&(l=uy(t[0])):l=t[0],s=[u.declare?"declare ":"",u.kind,l?Kg([" ",l]):"",uy(Kg(t.slice(1).map(e=>Kg([",",i&&!o?ey:Zg,e]))))],o&&r.body!==u||s.push(a),ry(Kg(s))}case"TSTypeAliasDeclaration":{u.declare&&s.push("declare ");const r=$y(u.id,u.typeAnnotation,u.typeAnnotation&&e.call(n,"typeAnnotation"),t);return s.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",r,a),ry(Kg(s))}case"VariableDeclarator":return Jy(u.id,e.call(n,"id")," =",u.init,u.init&&e.call(n,"init"),t);case"WithStatement":return ry(Kg(["with (",e.call(n,"object"),")",Gy(u.body,e.call(n,"body"))]));case"IfStatement":{const r=Gy(u.consequent,e.call(n,"consequent")),a=ry(Kg(["if (",ry(Kg([uy(Kg([ty,e.call(n,"test")])),ty])),")",r]));if(s.push(a),u.alternate){const r=dg(u.consequent)&&u.consequent.comments.some(e=>e.trailing&&!dm.isBlockComment(e))||Gg(u),a="BlockStatement"===u.consequent.type&&!r;s.push(a?" ":ey),rg(u)&&s.push(gs.printDanglingComments(e,t,!0),r?ey:" "),s.push("else",ry(Gy(u.alternate,e.call(n,"alternate"),"IfStatement"===u.alternate.type)))}return Kg(s)}case"ForStatement":{const r=Gy(u.body,e.call(n,"body")),a=gs.printDanglingComments(e,t,!0),o=a?Kg([a,ty]):"";return u.init||u.test||u.update?Kg([o,ry(Kg(["for (",ry(Kg([uy(Kg([ty,e.call(n,"init"),";",Zg,e.call(n,"test"),";",Zg,e.call(n,"update")])),ty])),")",r]))]):Kg([o,ry(Kg(["for (;;)",r]))])}case"WhileStatement":return ry(Kg(["while (",ry(Kg([uy(Kg([ty,e.call(n,"test")])),ty])),")",Gy(u.body,e.call(n,"body"))]));case"ForInStatement":return ry(Kg([u.each?"for each (":"for (",e.call(n,"left")," in ",e.call(n,"right"),")",Gy(u.body,e.call(n,"body"))]));case"ForOfStatement":return ry(Kg(["for",u.await?" await":""," (",e.call(n,"left")," of ",e.call(n,"right"),")",Gy(u.body,e.call(n,"body"))]));case"DoWhileStatement":{const t=Gy(u.body,e.call(n,"body")),r=ry(Kg(["do",t]));return s=[r],"BlockStatement"===u.body.type?s.push(" "):s.push(ey),s.push("while ("),s.push(ry(Kg([uy(Kg([ty,e.call(n,"test")])),ty])),")",a),Kg(s)}case"DoExpression":return Kg(["do ",e.call(n,"body")]);case"BreakStatement":return s.push("break"),u.label&&s.push(" ",e.call(n,"label")),s.push(a),Kg(s);case"ContinueStatement":return s.push("continue"),u.label&&s.push(" ",e.call(n,"label")),s.push(a),Kg(s);case"LabeledStatement":return"EmptyStatement"===u.body.type?Kg([e.call(n,"label"),":;"]):Kg([e.call(n,"label"),": ",e.call(n,"body")]);case"TryStatement":return Kg(["try ",e.call(n,"block"),u.handler?Kg([" ",e.call(n,"handler")]):"",u.finalizer?Kg([" finally ",e.call(n,"finalizer")]):""]);case"CatchClause":if(u.param){const r=u.param.comments&&u.param.comments.some(e=>!dm.isBlockComment(e)||e.leading&&OD(t.originalText,t.locEnd(e))||e.trailing&&OD(t.originalText,t.locStart(e),{backwards:!0})),a=e.call(n,"param");return Kg(["catch ",Kg(r?["(",uy(Kg([ty,a])),ty,") "]:["(",a,") "]),e.call(n,"body")])}return Kg(["catch ",e.call(n,"body")]);case"ThrowStatement":return Kg(["throw",Zy(e,t,n)]);case"SwitchStatement":return Kg([ry(Kg(["switch (",uy(Kg([ty,e.call(n,"discriminant")])),ty,")"]))," {",u.cases.length>0?uy(Kg([ey,Qg(ey,e.map(e=>{const r=e.getValue();return Kg([e.call(n),u.cases.indexOf(r)!==u.cases.length-1&&zD(t.originalText,r,t.locEnd)?ey:""])},"cases"))])):"",ey,"}"]);case"SwitchCase":{u.test?s.push("case ",e.call(n,"test"),":"):s.push("default:");const r=u.consequent.filter(e=>"EmptyStatement"!==e.type);if(r.length>0){const u=e.call(e=>Ay(e,t,n),"consequent");s.push(1===r.length&&"BlockStatement"===r[0].type?Kg([" ",u]):uy(Kg([ey,u])))}return Kg(s)}case"DebuggerStatement":return Kg(["debugger",a]);case"JSXAttribute":if(s.push(e.call(n,"name")),u.value){let r;if(Rg(u.value)){let e=Hg(u.value).replace(/'/g,"'").replace(/"/g,'"');const n=UD(e,t.jsxSingleQuote?"'":'"'),a="'"===n?"'":""";e=e.slice(1,-1).replace(new RegExp(n,"g"),a),r=Kg([n,e,n])}else r=e.call(n,"value");s.push("=",r)}return Kg(s);case"JSXIdentifier":return""+u.name;case"JSXNamespacedName":return Qg(":",[e.call(n,"namespace"),e.call(n,"name")]);case"JSXMemberExpression":return Qg(".",[e.call(n,"object"),e.call(n,"property")]);case"TSQualifiedName":return Qg(".",[e.call(n,"left"),e.call(n,"right")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return Kg(["{",e.call(e=>{const r=Kg(["...",n(e)]),u=e.getValue();return u.comments&&u.comments.length?Kg([uy(Kg([ty,gs.printComments(e,()=>r,t)])),ty]):r},"JSXSpreadAttribute"===u.type?"argument":"expression"),"}"]);case"JSXExpressionContainer":{const t=e.getParentNode(0),r=u.expression.comments&&u.expression.comments.length>0,a="JSXEmptyExpression"===u.expression.type||!r&&("ArrayExpression"===u.expression.type||"ObjectExpression"===u.expression.type||"ArrowFunctionExpression"===u.expression.type||"CallExpression"===u.expression.type||"OptionalCallExpression"===u.expression.type||"FunctionExpression"===u.expression.type||"TemplateLiteral"===u.expression.type||"TaggedTemplateExpression"===u.expression.type||"DoExpression"===u.expression.type||vg(t)&&("ConditionalExpression"===u.expression.type||hg(u.expression)));return ry(Kg(a?["{",e.call(n,"expression"),cy,"}"]:["{",uy(Kg([ty,e.call(n,"expression")])),ty,cy,"}"]))}case"JSXFragment":case"JSXElement":{const r=gs.printComments(e,()=>function(e,t,n){const r=e.getValue();if("JSXElement"===r.type&&Dg(r))return Kg([e.call(n,"openingElement"),e.call(n,"closingElement")]);const u="JSXElement"===r.type?e.call(n,"openingElement"):e.call(n,"openingFragment"),a="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 Kg([u,Kg(e.map(n,"children")),a]);r.children=r.children.map(e=>xg(e)?{type:"JSXText",value:" ",raw:" "}:e);const o=r.children.filter(vg).length>0,s=r.children.filter(e=>"JSXExpressionContainer"===e.type).length>1,i="JSXElement"===r.type&&r.openingElement.attributes.length>1;let l=fy(u)||o||i||s;const c="mdx"===e.getParentNode().rootMarker,p=t.singleQuote?"{' '}":'{" "}',d=c?Kg([" "]):iy(Kg([p,ty])," "),f=r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name,h=function(e,t,n,r,u){const a=e.getValue(),o=[];return e.map((e,t)=>{const s=e.getValue();if(wg(s)){const e=Hg(s);if(Tg(s)){const n=e.split(Jg);if(""===n[0]){if(o.push(""),n.shift(),/\n/.test(n[0])){const e=a.children[t+1];o.push(Uy(u,n[1],s,e))}else o.push(r);n.shift()}let i;if(""===ID(n)&&(n.pop(),i=n.pop()),0===n.length)return;if(n.forEach((e,t)=>{t%2===1?o.push(Zg):o.push(e)}),void 0!==i)if(/\n/.test(i)){const e=a.children[t+1];o.push(Uy(u,ID(o),s,e))}else o.push(r);else{const e=a.children[t+1];o.push(Wy(u,ID(o),s,e))}}else/\n/.test(e)?e.match(/\n/g).length>1&&(o.push(""),o.push(ey)):(o.push(""),o.push(r))}else{const r=n(e);o.push(r);const i=a.children[t+1];if(i&&Tg(i)){const e=Hg(i).trim().split(Jg)[0];o.push(Wy(u,e,s,i))}else o.push(ey)}},"children"),o}(e,0,n,d,f),m=r.children.some(e=>Tg(e));for(let E=h.length-2;E>=0;E--){const e=""===h[E]&&""===h[E+1],t=h[E]===ey&&""===h[E+1]&&h[E+2]===ey,n=(h[E]===ty||h[E]===ey)&&""===h[E+1]&&h[E+2]===d,r=h[E]===d&&""===h[E+1]&&(h[E+2]===ty||h[E+2]===ey),u=h[E]===d&&""===h[E+1]&&h[E+2]===d,a=h[E]===ty&&""===h[E+1]&&h[E+2]===ey||h[E]===ey&&""===h[E+1]&&h[E+2]===ty;t&&m||e||n||u||a?h.splice(E,2):r&&h.splice(E+1,2)}for(;h.length&&(hy(ID(h))||my(ID(h)));)h.pop();for(;h.length&&(hy(h[0])||my(h[0]))&&(hy(h[1])||my(h[1]));)h.shift(),h.shift();const D=[];h.forEach((e,t)=>{if(e===d){if(1===t&&""===h[t-1])return 2===h.length?void D.push(p):void D.push(Kg([p,ey]));if(t===h.length-1)return void D.push(p);if(""===h[t-1]&&h[t-2]===ey)return void D.push(p)}D.push(e),fy(e)&&(l=!0)});const g=m?sy(D):ry(Kg(D),{shouldBreak:!0});if(c)return g;const y=ry(Kg([u,uy(Kg([ey,g])),ey,a]));return l?y:oy([ry(Kg([u,Kg(h),a])),y])}(e,t,n),t);return function(e,t,n){const r=e.getParentNode();if(!r)return t;if({ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[r.type])return t;const u=e.match(void 0,e=>"ArrowFunctionExpression"===e.type,mg,e=>"JSXExpressionContainer"===e.type),a=vD(e,n);return ry(Kg([a?"":iy("("),uy(Kg([ty,t])),ty,a?"":iy(")")]),{shouldBreak:u})}(e,r,t)}case"JSXOpeningElement":{const r=e.getValue(),u=r.name&&r.name.comments&&r.name.comments.length>0||r.typeParameters&&r.typeParameters.comments&&r.typeParameters.comments.length>0;if(r.selfClosing&&!r.attributes.length&&!u)return Kg(["<",e.call(n,"name"),e.call(n,"typeParameters")," />"]);if(r.attributes&&1===r.attributes.length&&r.attributes[0].value&&Rg(r.attributes[0].value)&&!r.attributes[0].value.value.includes("\n")&&!u&&(!r.attributes[0].comments||!r.attributes[0].comments.length))return ry(Kg(["<",e.call(n,"name"),e.call(n,"typeParameters")," ",Kg(e.map(n,"attributes")),r.selfClosing?" />":">"]));const a=r.attributes.length&&dg(ID(r.attributes)),o=!r.attributes.length&&!u||t.jsxBracketSameLine&&(!u||r.attributes.length)&&!a,s=r.attributes&&r.attributes.some(e=>e.value&&Rg(e.value)&&e.value.value.includes("\n"));return ry(Kg(["<",e.call(n,"name"),e.call(n,"typeParameters"),Kg([uy(Kg(e.map(e=>Kg([Zg,n(e)]),"attributes"))),r.selfClosing?Zg:o?">":ty]),r.selfClosing?"/>":o?"":">"]),{shouldBreak:s})}case"JSXClosingElement":return Kg(["</",e.call(n,"name"),">"]);case"JSXOpeningFragment":case"JSXClosingFragment":{const n=u.comments&&u.comments.length,r=n&&!u.comments.every(dm.isBlockComment),a="JSXOpeningFragment"===u.type;return Kg([a?"<":"</",uy(Kg([r?ey:n&&!a?" ":"",gs.printDanglingComments(e,t,!0)])),r?ey:"",">"])}case"JSXText":throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":{const n=u.comments&&!u.comments.every(dm.isBlockComment);return Kg([gs.printDanglingComments(e,t,!n),n?ey:""])}case"ClassBody":return u.comments||0!==u.body.length?Kg(["{",u.body.length>0?uy(Kg([ey,e.call(e=>Ay(e,t,n),"body")])):gs.printDanglingComments(e,t),ey,"}"]):"{}";case"ClassProperty":case"TSAbstractClassProperty":case"ClassPrivateProperty":{u.decorators&&0!==u.decorators.length&&s.push(Cy(e,t,n)),u.accessibility&&s.push(u.accessibility+" "),u.declare&&s.push("declare "),u.static&&s.push("static "),("TSAbstractClassProperty"===u.type||u.abstract)&&s.push("abstract "),u.readonly&&s.push("readonly ");const r=ZD(u);return r&&s.push(r),s.push(Fy(e,t,n),Ry(e),By(e,t,n)),u.value&&s.push(" =",$y(u.key,u.value,e.call(n,"value"),t)),s.push(a),ry(Kg(s))}case"ClassDeclaration":case"ClassExpression":return u.declare&&s.push("declare "),s.push(Kg(Ly(e,t,n))),Kg(s);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return s.push(e.call(n,"expression")),u.typeParameters&&s.push(e.call(n,"typeParameters")),Kg(s);case"TemplateElement":return Qg(ny,u.value.raw.split(/\r?\n/g));case"TemplateLiteral":{let r=e.map(n,"expressions");const a=e.getParentNode();if(Fg(u,a)){const e=function(e,t,n){const r=e.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(r.length>1||r.some(e=>0!==e.length)){const u=[],a=t.map(e=>"${"+gy(e,Object.assign({},n,{printWidth:1/0,endOfLine:"lf"})).formatted+"}"),o=[{hasLineBreak:!1,cells:[]}];for(let t=1;t<e.quasis.length;t++){const n=o[o.length-1],r=a[t-1];n.cells.push(r),r.includes("\n")&&(n.hasLineBreak=!0),e.quasis[t].value.raw.includes("\n")&&o.push({hasLineBreak:!1,cells:[]})}const s=Math.max(r.length,...o.map(e=>e.cells.length)),i=Array.from({length:s}).fill(0),l=[{cells:r},...o.filter(e=>0!==e.cells.length)];for(const{cells:e}of l.filter(e=>!e.hasLineBreak))e.forEach((e,t)=>{i[t]=Math.max(i[t],MD(e))});return u.push(cy,"`",uy(Kg([ey,Qg(ey,l.map(e=>Qg(" | ",e.cells.map((t,n)=>e.hasLineBreak?t:t+" ".repeat(i[n]-MD(t))))))])),ey,"`"),Kg(u)}}(u,r,t);if(e)return e}const o=Lg(u);return o&&(r=r.map(e=>gy(e,Object.assign({},t,{printWidth:1/0})).formatted)),s.push(cy,"`"),e.each(e=>{const a=e.getName();if(s.push(n(e)),a<r.length){const{tabWidth:n}=t,i=e.getValue(),l=WD(i.value.raw,n);let c=r[a];o||(u.expressions[a].comments&&u.expressions[a].comments.length||"MemberExpression"===u.expressions[a].type||"OptionalMemberExpression"===u.expressions[a].type||"ConditionalExpression"===u.expressions[a].type||"SequenceExpression"===u.expressions[a].type||"TSAsExpression"===u.expressions[a].type||hg(u.expressions[a]))&&(c=Kg([uy(Kg([ty,c])),ty]));const p=0===l&&i.value.raw.endsWith("\n")?ay(-1/0,c):py(c,l,n);s.push(ry(Kg(["${",p,cy,"}"])))}},"quasis"),s.push("`"),Kg(s)}case"TaggedTemplateExpression":return Kg([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(u.type));case"TypeAnnotation":case"TSTypeAnnotation":return u.typeAnnotation?e.call(n,"typeAnnotation"):"";case"TSTupleType":case"TupleTypeAnnotation":{const r="TSTupleType"===u.type?"elementTypes":"types",a=u[r].length>0&&"TSRestType"===ID(u[r]).type;return ry(Kg(["[",uy(Kg([ty,Qy(e,t,r,n)])),iy(Ey(t,"all")&&!a?",":""),gs.printDanglingComments(e,t,!0),ty,"]"]))}case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"AnyTypeAnnotation":return"any";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return Kg([e.call(n,"elementType"),"[]"]);case"BooleanTypeAnnotation":return"boolean";case"BooleanLiteralTypeAnnotation":return""+u.value;case"DeclareClass":return My(e,Ly(e,t,n));case"TSDeclareFunction":return Kg([u.declare?"declare ":"",Oy(e,n,t),a]);case"DeclareFunction":return My(e,["function ",e.call(n,"id"),u.predicate?" ":"",e.call(n,"predicate"),a]);case"DeclareModule":return My(e,["module ",e.call(n,"id")," ",e.call(n,"body")]);case"DeclareModuleExports":return My(e,["module.exports",": ",e.call(n,"typeAnnotation"),a]);case"DeclareVariable":return My(e,["var ",e.call(n,"id"),a]);case"DeclareExportAllDeclaration":return Kg(["declare export * from ",e.call(n,"source")]);case"DeclareExportDeclaration":return Kg(["declare ",Iy(e,t,n)]);case"DeclareOpaqueType":case"OpaqueType":return s.push("opaque type ",e.call(n,"id"),e.call(n,"typeParameters")),u.supertype&&s.push(": ",e.call(n,"supertype")),u.impltype&&s.push(" = ",e.call(n,"impltype")),s.push(a),"DeclareOpaqueType"===u.type?My(e,s):Kg(s);case"EnumDeclaration":return Kg(["enum ",e.call(n,"id")," ",e.call(n,"body")]);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if("EnumSymbolBody"===u.type||u.explicitType){let e=null;switch(u.type){case"EnumBooleanBody":e="boolean";break;case"EnumNumberBody":e="number";break;case"EnumStringBody":e="string";break;case"EnumSymbolBody":e="symbol"}s.push("of ",e," ")}return 0===u.members.length?s.push(ry(Kg(["{",gs.printDanglingComments(e,t),ty,"}"]))):s.push(ry(Kg(["{",uy(Kg([ey,Qy(e,t,"members",n),Ey(t)?",":""])),gs.printDanglingComments(e,t,!0),ey,"}"]))),Kg(s);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return Kg([e.call(n,"id")," = ","object"===typeof u.init?e.call(n,"init"):String(u.init)]);case"EnumDefaultedMember":return e.call(n,"id");case"FunctionTypeAnnotation":case"TSFunctionType":{const r=e.getParentNode(0),a=e.getParentNode(1),o=e.getParentNode(2);let i="TSFunctionType"===u.type||!(("ObjectTypeProperty"===r.type||"ObjectTypeInternalSlot"===r.type)&&!ZD(r)&&!r.optional&&t.locStart(r)===t.locStart(u)||"ObjectTypeCallProperty"===r.type||o&&"DeclareFunction"===o.type),l=i&&("TypeAnnotation"===r.type||"TSTypeAnnotation"===r.type);const c=l&&i&&("TypeAnnotation"===r.type||"TSTypeAnnotation"===r.type)&&"ArrowFunctionExpression"===a.type;return Mg(r,t)&&(i=!0,l=!0),c&&s.push("("),s.push(ky(e,n,t,!1,!0)),(u.returnType||u.predicate||u.typeAnnotation)&&s.push(i?" => ":": ",e.call(n,"returnType"),e.call(n,"predicate"),e.call(n,"typeAnnotation")),c&&s.push(")"),ry(Kg(s))}case"TSRestType":return Kg(["...",e.call(n,"typeAnnotation")]);case"TSOptionalType":return Kg([e.call(n,"typeAnnotation"),"?"]);case"FunctionTypeParam":return Kg([e.call(n,"name"),Ry(e),u.name?": ":"",e.call(n,"typeAnnotation")]);case"GenericTypeAnnotation":return Kg([e.call(n,"id"),e.call(n,"typeParameters")]);case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return("DeclareInterface"===u.type||u.declare)&&s.push("declare "),s.push("interface"),"DeclareInterface"!==u.type&&"InterfaceDeclaration"!==u.type||s.push(" ",e.call(n,"id"),e.call(n,"typeParameters")),u.extends.length>0&&s.push(ry(uy(Kg([Zg,"extends ",(1===u.extends.length?fg:uy)(Qg(Kg([",",Zg]),e.map(n,"extends")))])))),s.push(" ",e.call(n,"body")),ry(Kg(s));case"ClassImplements":case"InterfaceExtends":return Kg([e.call(n,"id"),e.call(n,"typeParameters")]);case"TSClassImplements":return Kg([e.call(n,"expression"),e.call(n,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":{const t=e.map(n,"types"),r=[];let a=!1;for(let e=0;e<t.length;++e)0===e?r.push(t[e]):Ig(u.types[e-1])&&Ig(u.types[e])?r.push(Kg([" & ",a?uy(t[e]):t[e]])):Ig(u.types[e-1])||Ig(u.types[e])?(e>1&&(a=!0),r.push(" & ",e>1?uy(t[e]):t[e])):r.push(uy(Kg([" &",Zg,t[e]])));return ry(Kg(r))}case"TSUnionType":case"UnionTypeAnnotation":{const r=e.getParentNode(),a="TypeParameterInstantiation"!==r.type&&"TSTypeParameterInstantiation"!==r.type&&"GenericTypeAnnotation"!==r.type&&"TSTypeReference"!==r.type&&"TSTypeAssertion"!==r.type&&"TupleTypeAnnotation"!==r.type&&"TSTupleType"!==r.type&&!("FunctionTypeParam"===r.type&&!r.name)&&!(("TypeAlias"===r.type||"VariableDeclarator"===r.type||"TSTypeAliasDeclaration"===r.type)&&sg(t.originalText,u,t)),o=Yy(u),s=e.map(e=>{let r=e.call(n);return o||(r=ay(2,r)),gs.printComments(e,()=>r,t)},"types");if(o)return Qg(" | ",s);const i=a&&!sg(t.originalText,u,t),l=Kg([iy(Kg([i?Zg:"","| "])),Qg(Kg([Zg,"| "]),s)]);return vD(e,t)?ry(Kg([uy(l),ty])):"TupleTypeAnnotation"===r.type&&r.types.length>1||"TSTupleType"===r.type&&r.elementTypes.length>1?ry(Kg([uy(Kg([iy(Kg(["(",ty])),l])),ty,iy(")")])):ry(a?uy(l):l)}case"NullableTypeAnnotation":return Kg(["?",e.call(n,"typeAnnotation")]);case"TSNullKeyword":case"NullLiteralTypeAnnotation":return"null";case"ThisTypeAnnotation":return"this";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"ObjectTypeCallProperty":return u.static&&s.push("static "),s.push(e.call(n,"value")),Kg(s);case"ObjectTypeIndexer":{const t=ZD(u);return Kg([t||"","[",e.call(n,"id"),u.id?": ":"",e.call(n,"key"),"]: ",e.call(n,"value")])}case"ObjectTypeProperty":{const r=ZD(u);let a="";return u.proto?a="proto ":u.static&&(a="static "),Kg([a,Ag(u)?u.kind+" ":"",r||"",Fy(e,t,n),Ry(e),Cg(u,t)?"":": ",e.call(n,"value")])}case"QualifiedTypeIdentifier":return Kg([e.call(n,"qualification"),".",e.call(n,"id")]);case"StringLiteralTypeAnnotation":return Hy(u,t);case"NumberLiteralTypeAnnotation":return ha.strictEqual(typeof u.value,"number"),null!=u.extra?jD(u.extra.raw):jD(u.raw);case"StringTypeAnnotation":return"string";case"DeclareTypeAlias":case"TypeAlias":{("DeclareTypeAlias"===u.type||u.declare)&&s.push("declare ");const r=$y(u.id,u.right,e.call(n,"right"),t);return s.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",r,a),ry(Kg(s))}case"TypeCastExpression":return Kg(["(",e.call(n,"expression"),By(e,t,n),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":{const r=e.getValue(),u=r.range?t.originalText.slice(0,r.range[0]).lastIndexOf("/*"):-1;return u>=0&&t.originalText.slice(u).match(/^\/\*\s*::/)?Kg(["/*:: ",jy(e,t,n,"params")," */"]):jy(e,t,n,"params")}case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return jy(e,t,n,"params");case"TSTypeParameter":case"TypeParameter":{const r=e.getParentNode();if("TSMappedType"===r.type)return s.push("[",e.call(n,"name")),u.constraint&&s.push(" in ",e.call(n,"constraint")),s.push("]"),Kg(s);const a=ZD(u);a&&s.push(a),s.push(e.call(n,"name")),u.bound&&(s.push(": "),s.push(e.call(n,"bound"))),u.constraint&&s.push(" extends ",e.call(n,"constraint")),u.default&&s.push(" = ",e.call(n,"default"));const o=e.getNode(2);return r.params&&1===r.params.length&&zg(t)&&!u.constraint&&"ArrowFunctionExpression"===o.type&&s.push(","),Kg(s)}case"TypeofTypeAnnotation":return Kg(["typeof ",e.call(n,"argument")]);case"VoidTypeAnnotation":return"void";case"InferredPredicate":return"%checks";case"DeclaredPredicate":return Kg(["%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 Kg([e.call(n,"expression")," as ",e.call(n,"typeAnnotation")]);case"TSArrayType":return Kg([e.call(n,"elementType"),"[]"]);case"TSPropertySignature":return u.export&&s.push("export "),u.accessibility&&s.push(u.accessibility+" "),u.static&&s.push("static "),u.readonly&&s.push("readonly "),s.push(Fy(e,t,n),Ry(e)),u.typeAnnotation&&(s.push(": "),s.push(e.call(n,"typeAnnotation"))),u.initializer&&s.push(" = ",e.call(n,"initializer")),Kg(s);case"TSParameterProperty":return u.accessibility&&s.push(u.accessibility+" "),u.export&&s.push("export "),u.static&&s.push("static "),u.readonly&&s.push("readonly "),s.push(e.call(n,"parameter")),Kg(s);case"TSTypeReference":return Kg([e.call(n,"typeName"),jy(e,t,n,"typeParameters")]);case"TSTypeQuery":return Kg(["typeof ",e.call(n,"exprName")]);case"TSIndexSignature":{const r=e.getParentNode(),o=u.parameters.length>1?iy(Ey(t)?",":""):"",s=ry(Kg([uy(Kg([ty,Qg(Kg([", ",ty]),e.map(n,"parameters"))])),o,ty]));return Kg([u.export?"export ":"",u.accessibility?Kg([u.accessibility," "]):"",u.static?"static ":"",u.readonly?"readonly ":"","[",u.parameters?s:"",u.typeAnnotation?"]: ":"]",u.typeAnnotation?e.call(n,"typeAnnotation"):"","ClassBody"===r.type?a:""])}case"TSTypePredicate":return Kg([u.asserts?"asserts ":"",e.call(n,"parameterName"),u.typeAnnotation?Kg([" is ",e.call(n,"typeAnnotation")]):""]);case"TSNonNullExpression":return Kg([e.call(n,"expression"),"!"]);case"TSThisType":return"this";case"TSImportType":return Kg([u.isTypeOf?"typeof ":"","import(",e.call(n,u.parameter?"parameter":"argument"),")",u.qualifier?Kg([".",e.call(n,"qualifier")]):"",jy(e,t,n,"typeParameters")]);case"TSLiteralType":return e.call(n,"literal");case"TSIndexedAccessType":return Kg([e.call(n,"objectType"),"[",e.call(n,"indexType"),"]"]);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSCallSignatureDeclaration"!==u.type&&s.push("new "),s.push(ry(ky(e,n,t,!1,!0))),u.returnType||u.typeAnnotation){const t="TSConstructorType"===u.type;s.push(t?" => ":": ",e.call(n,"returnType"),e.call(n,"typeAnnotation"))}return Kg(s);case"TSTypeOperator":return Kg([u.operator," ",e.call(n,"typeAnnotation")]);case"TSMappedType":{const r=PD(t.originalText,t.locStart(u),t.locEnd(u));return ry(Kg(["{",uy(Kg([t.bracketSpacing?Zg:ty,u.readonly?Kg([ng(u.readonly,"readonly")," "]):"",_y(e,0,n),e.call(n,"typeParameter"),u.optional?ng(u.optional,"?"):"",u.typeAnnotation?": ":"",e.call(n,"typeAnnotation"),iy(a,"")])),gs.printDanglingComments(e,t,!0),t.bracketSpacing?Zg:ty,"}"]),{shouldBreak:r})}case"TSMethodSignature":return s.push(u.accessibility?Kg([u.accessibility," "]):"",u.export?"export ":"",u.static?"static ":"",u.readonly?"readonly ":"",u.computed?"[":"",e.call(n,"key"),u.computed?"]":"",Ry(e),ky(e,n,t,!1,!0)),(u.returnType||u.typeAnnotation)&&s.push(": ",e.call(n,"returnType"),e.call(n,"typeAnnotation")),ry(Kg(s));case"TSNamespaceExportDeclaration":return s.push("export as namespace ",e.call(n,"id")),t.semi&&s.push(";"),ry(Kg(s));case"TSEnumDeclaration":return u.declare&&s.push("declare "),u.modifiers&&s.push(_y(e,0,n)),u.const&&s.push("const "),s.push("enum ",e.call(n,"id")," "),0===u.members.length?s.push(ry(Kg(["{",gs.printDanglingComments(e,t),ty,"}"]))):s.push(ry(Kg(["{",uy(Kg([ey,Qy(e,t,"members",n),Ey(t,"es5")?",":""])),gs.printDanglingComments(e,t,!0),ey,"}"]))),Kg(s);case"TSEnumMember":return s.push(e.call(n,"id")),u.initializer&&s.push(" = ",e.call(n,"initializer")),Kg(s);case"TSImportEqualsDeclaration":return u.isExport&&s.push("export "),s.push("import ",e.call(n,"id")," = ",e.call(n,"moduleReference")),t.semi&&s.push(";"),ry(Kg(s));case"TSExternalModuleReference":return Kg(["require(",e.call(n,"expression"),")"]);case"TSModuleDeclaration":{const r=e.getParentNode(),o=wg(u.id),i="TSModuleDeclaration"===r.type,l=u.body&&"TSModuleDeclaration"===u.body.type;if(i)s.push(".");else{u.declare&&s.push("declare "),s.push(_y(e,0,n));const r=t.originalText.slice(t.locStart(u),t.locStart(u.id));"Identifier"===u.id.type&&"global"===u.id.name&&!/namespace|module/.test(r)||s.push(o||/(^|\s)module(\s|$)/.test(r)?"module ":"namespace ")}return s.push(e.call(n,"id")),l?s.push(e.call(n,"body")):u.body?s.push(" ",ry(e.call(n,"body"))):s.push(a),Kg(s)}case"PrivateName":return Kg(["#",e.call(n,"id")]);case"TSPrivateIdentifier":return u.escapedText;case"TSConditionalType":return by(e,t,n,{beforeParts:()=>[e.call(n,"checkType")," ","extends"," ",e.call(n,"extendsType")],afterParts:()=>[],shouldCheckJsx:!1,conditionalNodeType:"TSConditionalType",consequentNodePropertyName:"trueType",alternateNodePropertyName:"falseType",testNodePropertyNames:["checkType","extendsType"]});case"TSInferType":return Kg(["infer"," ",e.call(n,"typeParameter")]);case"InterpreterDirective":return s.push("#!",u.value,ey),zD(t.originalText,u,t.locEnd)&&s.push(ey),Kg(s);case"NGRoot":return Kg([].concat(e.call(n,"node"),u.node.comments&&0!==u.node.comments.length?Kg([" //",u.node.comments[0].value.trimEnd()]):[]));case"NGChainedExpression":return ry(Qg(Kg([";",Zg]),e.map(e=>cg(e)?n(e):Kg(["(",n(e),")"]),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return Kg([u.prefix,": ",u.value.trim()]);case"NGMicrosyntax":return Kg(e.map((e,t)=>Kg([0===t?"":Og(e.getValue(),t,u)?" ":Kg([";",Zg]),n(e)]),"body"));case"NGMicrosyntaxKey":return/^[a-z_$][a-z0-9_$]*(-[a-z_$][a-z0-9_$])*$/i.test(u.name)?u.name:JSON.stringify(u.name);case"NGMicrosyntaxExpression":return Kg([e.call(n,"expression"),null===u.alias?"":Kg([" as ",e.call(n,"alias")])]);case"NGMicrosyntaxKeyedExpression":{const t=e.getName(),r=e.getParentNode(),a=Og(u,t,r)||(1===t&&("then"===u.key.name||"else"===u.key.name)||2===t&&"else"===u.key.name&&"NGMicrosyntaxKeyedExpression"===r.body[t-1].type&&"then"===r.body[t-1].key.name)&&"NGMicrosyntaxExpression"===r.body[0].type;return Kg([e.call(n,"key"),a?" ":": ",e.call(n,"expression")])}case"NGMicrosyntaxLet":return Kg(["let ",e.call(n,"key"),null===u.value?"":Kg([" = ",e.call(n,"value")])]);case"NGMicrosyntaxAs":return Kg([e.call(n,"key")," as ",e.call(n,"alias")]);case"ArgumentPlaceholder":return"?";case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return Kg(["?",e.call(n,"typeAnnotation")]);case"TSJSDocNonNullableType":return Kg(["!",e.call(n,"typeAnnotation")]);case"TSJSDocFunctionType":return Kg(["function(","): ",e.call(n,"typeAnnotation")]);default:throw new Error("unknown type: "+JSON.stringify(u.type))}}(e,t,n,r);if(!u||my(o))return o;const s=tg(e),i=[];if("ClassMethod"===u.type||"ClassPrivateMethod"===u.type||"ClassProperty"===u.type||"TSAbstractClassProperty"===u.type||"ClassPrivateProperty"===u.type||"MethodDefinition"===u.type||"TSAbstractMethodDefinition"===u.type||"TSDeclareMethod"===u.type);else if(u.decorators&&u.decorators.length>0&&!(s&&t.locStart(s,{ignoreDecorators:!0})>t.locStart(u.decorators[0]))){const r="ClassExpression"===u.type||"ClassDeclaration"===u.type||lg(u,t)?ey:Zg;e.each(e=>{let t=e.getValue();t=t.expression?t.expression:t.callee,i.push(n(e),r)},"decorators"),s&&i.unshift(ey)}else gg(u)&&u.declaration&&u.declaration.decorators&&u.declaration.decorators.length>0&&t.locStart(u,{ignoreDecorators:!0})>t.locStart(u.declaration.decorators[0])?e.each(e=>{const t="Decorator"===e.getValue().type?"":"@";i.push(t,n(e),ey)},"declaration","decorators"):a=vD(e,t);const l=[];if(a&&l.unshift("("),l.push(o),a){const t=e.getValue();ag(t)&&(l.push(" /*"),l.push(t.trailingComments[0].value.trimStart()),l.push("*/"),t.trailingComments[0].printed=!0),l.push(")")}return i.length>0?ry(Kg(i.concat(l))):Kg(l)},embed:Lm,insertPragma:GD,massageAstNode:Rm,hasPrettierIgnore:pg,willPrintOwnComments:function(e){const t=e.getValue(),n=e.getParentNode();return(t&&(vg(t)||ag(t)||n&&("CallExpression"===n.type||"OptionalCallExpression"===n.type)&&(ug(t.leadingComments)||ug(t.trailingComments)))||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&(!LD(e)||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)},canAttachComment:function(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(e,t){const n=e.getValue();switch(n.type){case"CommentBlock":case"Block":{if(function(e){const t="*".concat(e.value,"*").split("\n");return t.length>1&&t.every(e=>"*"===e.trim()[0])}(n)){const e=function(e){const t=e.value.split("\n");return Kg(["/*",Qg(ey,t.map((e,n)=>0===n?e.trimEnd():" "+(n<t.length-1?e.trim():e.trimStart()))),"*/"])}(n);return n.trailing&&!OD(t.originalText,t.locStart(n),{backwards:!0})?Kg([ey,e]):e}const e=t.locEnd(n),r="*-/"===t.originalText.slice(e-3,e);return"/*"+n.value+(r?"*-/":"*/")}case"CommentLine":case"Line":return t.originalText.slice(t.locStart(n)).startsWith("#!")?"#!"+n.value.trimEnd():"//"+n.value.trimEnd();default:throw new Error("Not a comment: "+JSON.stringify(n))}},isBlockComment:dm.isBlockComment,handleComments:{ownLine:dm.handleOwnLineComment,endOfLine:dm.handleEndOfLineComment,remaining:dm.handleRemainingComment},getGapRegex:dm.getGapRegex,getCommentChildNodes:dm.getCommentChildNodes};const{concat:tE,hardline:nE,indent:rE,join:uE}=So.builders;var aE={preprocess:TD,print:function(e,t,n){const r=e.getValue();switch(r.type){case"JsonRoot":return tE([e.call(n,"node"),nE]);case"ArrayExpression":return 0===r.elements.length?"[]":tE(["[",rE(tE([nE,uE(tE([",",nE]),e.map(n,"elements"))])),nE,"]"]);case"ObjectExpression":return 0===r.properties.length?"{}":tE(["{",rE(tE([nE,uE(tE([",",nE]),e.map(n,"properties"))])),nE,"}"]);case"ObjectProperty":return tE([e.call(n,"key"),": ",e.call(n,"value")]);case"UnaryExpression":return tE(["+"===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(e,t){return delete t.start,delete t.end,delete t.extra,delete t.loc,delete t.comments,delete t.errors,"Identifier"===e.type?{type:"StringLiteral",value:e.name}:"UnaryExpression"===e.type&&"+"===e.operator?t.argument:void 0}},oE={arrowParens:{since:"1.9.0",category:"JavaScript",type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSpacing:Ll.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:Ll.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"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]}},sE=["js","node"],iE=[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],lE=["Jakefile"],cE=["chakra","d8","gjs","js","node","qjs","rhino","v8","v8-shell"],pE={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:sE,extensions:iE,filenames:lE,interpreters:cE,languageId:183},dE=Object.freeze({__proto__:null,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:sE,extensions:iE,filenames:lE,interpreters:cE,languageId:183,default:pE}),fE=[".jsx"],hE={name:"JSX",type:"programming",group:"JavaScript",extensions:fE,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178},mE=Object.freeze({__proto__:null,name:"JSX",type:"programming",group:"JavaScript",extensions:fE,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178,default:hE}),DE=["ts"],gE=["deno","ts-node"],yE=[".ts"],EE={name:"TypeScript",type:"programming",color:"#2b7489",aliases:DE,interpreters:gE,extensions:yE,tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378},CE=Object.freeze({__proto__:null,name:"TypeScript",type:"programming",color:"#2b7489",aliases:DE,interpreters:gE,extensions:yE,tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378,default:EE}),bE=[".tsx"],AE={name:"TSX",type:"programming",group:"TypeScript",extensions:bE,tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924},FE=Object.freeze({__proto__:null,name:"TSX",type:"programming",group:"TypeScript",extensions:bE,tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924,default:AE}),vE=[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],xE=[".arcconfig",".htmlhintrc",".tern-config",".tern-project",".watchmanconfig","composer.lock","mcmod.info"],SE={name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:vE,filenames:xE,languageId:174},wE=Object.freeze({__proto__:null,name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:vE,filenames:xE,languageId:174,default:SE}),BE=["jsonc"],TE=[".jsonc",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],kE=[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","jsconfig.json","language-configuration.json","tsconfig.json"],NE={name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:BE,extensions:TE,filenames:kE,languageId:423},OE=Object.freeze({__proto__:null,name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:BE,extensions:TE,filenames:kE,languageId:423,default:NE}),PE=[".json5"],IE={name:"JSON5",type:"data",extensions:PE,tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175},ME=Object.freeze({__proto__:null,name:"JSON5",type:"data",extensions:PE,tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175,default:IE}),_E=Ze(dE),jE=Ze(mE),LE=Ze(CE),RE=Ze(FE),qE=Ze(wE),VE=Ze(OE),WE=Ze(ME),UE={languages:[ql(_E,e=>({since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript","mongo"],interpreters:e.interpreters.concat(["nodejs"])})),ql(_E,()=>({name:"Flow",since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})),ql(jE,()=>({since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascriptreact"]})),ql(LE,()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]})),ql(RE,()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]})),ql(qE,()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]})),ql(qE,e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],filenames:e.filenames.concat([".prettierrc"])})),ql(VE,e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:e.filenames.concat([".eslintrc"])})),ql(WE,()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}))],options:oE,printers:{estree:eE,"estree-json":aE}};const{cjkPattern:zE,kPattern:$E,punctuationPattern:JE}={cjkPattern:"[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u3000-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d]",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"},{getLast:GE}=no,HE=["liquidNode","inlineCode","emphasis","strong","delete","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],XE=HE.concat(["tableCell","paragraph","heading"]),YE=new RegExp($E),KE=new RegExp(JE);function QE(e,t){const[,n,r,u]=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:n,marker:r,leadingSpaces:u}}var ZE={mapAst:function(e,t){return function e(n,r,u){u=u||[];const a=Object.assign({},t(n,r,u));return a.children&&(a.children=a.children.map((t,n)=>e(t,n,[a].concat(u)))),a}(e,null,null)},splitText:function(e,t){const n=[];return("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat(zE,")\n(").concat(zE,")"),"g"),"$1$2")).split(/([ \t\n]+)/).forEach((e,t,u)=>{t%2!==1?(0!==t&&t!==u.length-1||""!==e)&&e.split(new RegExp("(".concat(zE,")"))).forEach((e,t,n)=>{(0!==t&&t!==n.length-1||""!==e)&&(t%2!==0?r(KE.test(e)?{type:"word",value:e,kind:"cjk-punctuation",hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:e,kind:YE.test(e)?"k-letter":"cj-letter",hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==e&&r({type:"word",value:e,kind:"non-cjk",hasLeadingPunctuation:KE.test(e[0]),hasTrailingPunctuation:KE.test(GE(e))}))}):n.push({type:"whitespace",value:/\n/.test(e)?"\n":" "})}),n;function r(e){const t=GE(n);var r,u;t&&"word"===t.type&&("non-cjk"===t.kind&&"cj-letter"===e.kind&&!t.hasTrailingPunctuation||"cj-letter"===t.kind&&"non-cjk"===e.kind&&!e.hasLeadingPunctuation?n.push({type:"whitespace",value:" "}):(r="non-cjk",u="cjk-punctuation",t.kind===r&&e.kind===u||t.kind===u&&e.kind===r||[t.value,e.value].some(e=>/\u3000/.test(e))||n.push({type:"whitespace",value:""}))),n.push(e)}},punctuationPattern:JE,getFencedCodeBlockValue:function(e,t){const n=t.slice(e.position.start.offset,e.position.end.offset),r=n.match(/^\s*/)[0].length,u=new RegExp("^\\s{0,".concat(r,"}")),a=n.split("\n"),o=n[r],s=n.slice(r).match(new RegExp("^[".concat(o,"]+")))[0],i=new RegExp("^\\s{0,3}".concat(s)).test(a[a.length-1].slice(l(a.length-1)));return a.slice(1,i?-1:void 0).map((e,t)=>e.slice(l(t+1)).replace(u,"")).join("\n");function l(t){return e.position.indent[t-1]-1}},getOrderedListItemInfo:QE,hasGitDiffFriendlyOrderedList:function(e,t){if(!e.ordered)return!1;if(e.children.length<2)return!1;const n=Number(QE(e.children[0],t.originalText).numberText),r=Number(QE(e.children[1],t.originalText).numberText);if(0===n&&e.children.length>2){const n=Number(QE(e.children[2],t.originalText).numberText);return 1===r&&1===n}return 1===r},INLINE_NODE_TYPES:HE,INLINE_NODE_WRAPPER_TYPES:XE};const{builders:{hardline:eC,literalline:tC,concat:nC,markAsRoot:rC},utils:{mapDoc:uC}}=So,{getFencedCodeBlockValue:aC}=ZE;var oC=function(e,t,n,r){const u=e.getValue();if("code"===u.type&&null!==u.lang){const e=u.lang.match(/^[A-Za-z0-9_-]+/),t=function(e){const t=sn.getSupportInfo({plugins:r.plugins}).languages.find(t=>t.name.toLowerCase()===e||t.aliases&&t.aliases.includes(e)||t.extensions&&t.extensions.find(t=>t===".".concat(e)));return t?t.parsers[0]:null}(e?e[0]:"");if(t){const e=r.__inJsTemplate?"~":"`",o=e.repeat(Math.max(3,no.getMaxContinuousCount(u.value,e)+1)),s=n(aC(u,r.originalText),{parser:t});return rC(nC([o,u.lang,eC,a(s),o]))}}if("yaml"===u.type)return rC(nC(["---",eC,u.value&&u.value.trim()?a(n(u.value,{parser:"yaml"})):"","---"]));switch(u.type){case"importExport":return n(u.value,{parser:"babel"});case"jsx":return n("<$>".concat(u.value,"</$>"),{parser:"__js_expression",rootMarker:"mdx"})}return null;function a(e){return uC(e,e=>"string"===typeof e&&e.includes("\n")?nC(e.split(/(\n)/g).map((e,t)=>t%2===0?e:tC)):e)}};const sC=["format","prettier"];function iC(e){const t="@(".concat(sC.join("|"),")"),n=new RegExp(["\x3c!--\\s*".concat(t,"\\s*--\x3e"),"\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(t,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),r=e.match(n);return r&&0===r.index}var lC={startWithPragma:iC,hasPragma:e=>iC(ai(e).content.trimStart()),insertPragma:e=>{const t=ai(e),n="\x3c!-- @".concat(sC[0]," --\x3e");return t.frontMatter?"".concat(t.frontMatter.raw,"\n\n").concat(n,"\n\n").concat(t.content):"".concat(n,"\n\n").concat(t.content)}};const{getOrderedListItemInfo:cC,mapAst:pC,splitText:dC}=ZE,fC=/^([\u0000-\uffff]|[\ud800-\udbff][\udc00-\udfff])$/;function hC(e,t,n){return pC(e,e=>{if(!e.children)return e;const r=e.children.reduce((e,r)=>{const u=e[e.length-1];return u&&t(u,r)?e.splice(-1,1,n(u,r)):e.push(r),e},[]);return Object.assign({},e,{children:r})})}var mC=function(e,t){return e=function(e){return hC(e,(e,t)=>"importExport"===e.type&&"importExport"===t.type,(e,t)=>({type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}}))}(e=function(e){return pC(e,e=>"import"!==e.type&&"export"!==e.type?e:Object.assign({},e,{type:"importExport"}))}(e=function(e,t){return pC(e,(e,n,[r])=>{if("text"!==e.type)return e;let{value:u}=e;return"paragraph"===r.type&&(0===n&&(u=u.trimStart()),n===r.children.length-1&&(u=u.trimEnd())),{type:"sentence",position:e.position,children:dC(u,t)}})}(e=function(e,t){return pC(e,(e,r,u)=>{if("list"===e.type&&0!==e.children.length){for(let t=0;t<u.length;t++){const n=u[t];if("list"===n.type&&!n.isAligned)return e.isAligned=!1,e}e.isAligned=function(e){if(!e.ordered)return!0;const[r,u]=e.children;if(cC(r,t.originalText).leadingSpaces.length>1)return!0;const a=n(r);if(-1===a)return!1;if(1===e.children.length)return a%t.tabWidth===0;const o=n(u);return a===o&&(a%t.tabWidth===0||cC(u,t.originalText).leadingSpaces.length>1)}(e)}return e});function n(e){return 0===e.children.length?-1:e.children[0].position.start.column-1}}(e=function(e,t){return pC(e,(e,n,r)=>{if("code"===e.type){const n=/^\n?( {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=n,n)for(let e=0;e<r.length;e++){const t=r[e];if(t.hasIndentedCodeblock)break;"list"===t.type&&(t.hasIndentedCodeblock=!0)}}return e})}(e=function(e){return pC(e,e=>"inlineCode"!==e.type?e:Object.assign({},e,{value:e.value.replace(/\s+/g," ")}))}(e=function(e){return hC(e,(e,t)=>"text"===e.type&&"text"===t.type,(e,t)=>({type:"text",value:e.value+t.value,position:{start:e.position.start,end:t.position.end}}))}(e=function(e,t){return pC(e,e=>"text"!==e.type?e:Object.assign({},e,{value:"*"!==e.value&&"_"!==e.value&&"$"!==e.value&&fC.test(e.value)&&e.position.end.offset-e.position.start.offset!==e.value.length?t.originalText.slice(e.position.start.offset,e.position.end.offset):e.value}))}(e,t))),t),t),t)))};const{builders:{breakParent:DC,concat:gC,join:yC,line:EC,literalline:CC,markAsRoot:bC,hardline:AC,softline:FC,ifBreak:vC,fill:xC,align:SC,indent:wC,group:BC},utils:{mapDoc:TC},printer:{printDocToString:kC}}=So,{getFencedCodeBlockValue:NC,hasGitDiffFriendlyOrderedList:OC,splitText:PC,punctuationPattern:IC,INLINE_NODE_TYPES:MC,INLINE_NODE_WRAPPER_TYPES:_C}=ZE,{replaceEndOfLineWith:jC}=no,LC=["importExport"],RC=["heading","tableCell","link"],qC=["listItem","definition","footnoteDefinition"];function VC(e,t,n,r){const u=e.getValue(),a=null===u.checked?"":u.checked?"[x] ":"[ ] ";return gC([a,GC(e,t,n,{processor:(e,u)=>{if(0===u&&"list"!==e.getValue().type)return SC(" ".repeat(a.length),e.call(n));const o=" ".repeat((s=t.tabWidth-r.length,l=3,s<(i=0)?i:s>l?l:s));var s,i,l;return gC([o,SC(o,e.call(n))])}})])}function WC(e,t){return function(e,t,n){n=n||(()=>!0);let r=-1;for(const u of t.children)if(u.type===e.type&&n(u)?r++:r=-1,u===e)return r}(e,t,t=>t.ordered===e.ordered)}function UC(e,t){const n=[].concat(t);let r,u=-1;for(;r=e.getParentNode(++u);)if(n.includes(r.type))return u;return-1}function zC(e,t){const n=UC(e,t);return-1===n?null:e.getParentNode(n)}function $C(e,t,n){if("preserve"===n.proseWrap&&"\n"===t)return AC;const r="always"===n.proseWrap&&!zC(e,RC);return""!==t?r?EC:" ":r?FC:""}function JC(e,t,n){const r=[];let u=null;const{children:a}=e.getValue();return a.forEach((e,t)=>{switch(XC(e)){case"start":null===u&&(u={index:t,offset:e.position.end.offset});break;case"end":null!==u&&(r.push({start:u,end:{index:t,offset:e.position.start.offset}}),u=null)}}),GC(e,t,n,{processor:(e,u)=>{if(0!==r.length){const e=r[0];if(u===e.start.index)return gC([a[e.start.index].value,t.originalText.slice(e.start.offset,e.end.offset),a[e.end.index].value]);if(e.start.index<u&&u<e.end.index)return!1;if(u===e.end.index)return r.shift(),!1}return e.call(n)}})}function GC(e,t,n,r){const u=(r=r||{}).postprocessor||gC,a=r.processor||(e=>e.call(n)),o=e.getValue(),s=[];let i;return e.map((e,n)=>{const r=e.getValue(),u=a(e,n);if(!1!==u){const e={parts:s,prevNode:i,parentNode:o,options:t};(function(e,t){const n=0===t.parts.length,r=MC.includes(e.type),u="html"===e.type&&_C.includes(t.parentNode.type);return n||r||u})(r,e)||(s.push(AC),i&&LC.includes(i.type)||(function(e,t){const n=(t.prevNode&&t.prevNode.type)===e.type&&qC.includes(e.type),r="listItem"===t.parentNode.type&&!t.parentNode.loose,u=t.prevNode&&"listItem"===t.prevNode.type&&t.prevNode.loose,a="next"===XC(t.prevNode),o="html"===e.type&&t.prevNode&&"html"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line,s="html"===e.type&&"listItem"===t.parentNode.type&&t.prevNode&&"paragraph"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line;return u||!(n||r||a||o||s)}(r,e)||YC(r,e))&&s.push(AC),YC(r,e)&&s.push(AC)),s.push(u),i=r}},"children"),u(s)}function HC(e){let t=e;for(;t.children&&0!==t.children.length;)t=t.children[t.children.length-1];return t}function XC(e){if("html"!==e.type)return!1;const t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);return null!==t&&(t[1]?t[1]:"next")}function YC(e,t){const n=t.prevNode&&"list"===t.prevNode.type,r="code"===e.type&&e.isIndented;return n&&r}function KC(e){return TC(e,e=>{if(!e.parts)return e;if("concat"===e.type&&1===e.parts.length)return e.parts[0];const t=e.parts.reduce((e,t)=>("concat"===t.type?e.push(...t.parts):""!==t&&e.push(t),e),[]);return Object.assign({},e,{parts:eb(t)})})}function QC(e,t){const n=[" "].concat(t||[]);return new RegExp(n.map(e=>"\\".concat(e)).join("|")).test(e)?"<".concat(e,">"):e}function ZC(e,t,n){if(null==n&&(n=!0),!e)return"";if(n)return" "+ZC(e,t,!1);if(e.includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");const r=e.split("'").length-1,u=e.split('"').length-1,a=r>u?'"':u>r||t.singleQuote?"'":'"';return e=e.replace(new RegExp("(".concat(a,")"),"g"),"\\$1"),"".concat(a).concat(e).concat(a)}function eb(e){return e.reduce((e,t)=>{const n=no.getLast(e);return"string"===typeof n&&"string"===typeof t?e.splice(-1,1,n+t):e.push(t),e},[])}var tb={preprocess:mC,print:function(e,t,n){const r=e.getValue();if(function(e){const t=zC(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}(e))return gC(PC(t.originalText.slice(r.position.start.offset,r.position.end.offset),t).map(n=>"word"===n.type?n.value:""===n.value?"":$C(e,n.value,t)));switch(r.type){case"root":return 0===r.children.length?"":gC([KC(JC(e,t,n)),LC.includes(HC(r).type)?"":AC]);case"paragraph":return GC(e,t,n,{postprocessor:xC});case"sentence":return GC(e,t,n);case"word":return r.value.replace(/[*$]/g,"\\$&").replace(new RegExp(["(^|".concat(IC,")(_+)"),"(_+)(".concat(IC,"|$)")].join("|"),"g"),(e,t,n,r,u)=>(n?"".concat(t).concat(n):"".concat(r).concat(u)).replace(/_/g,"\\_"));case"whitespace":{const n=e.getParentNode(),u=n.children.indexOf(r),a=n.children[u+1],o=a&&/^>|^([-+*]|#{1,6}|[0-9]+[.)])$/.test(a.value)?"never":t.proseWrap;return $C(e,r.value,{proseWrap:o})}case"emphasis":{const u=e.getParentNode(),a=u.children.indexOf(r),o=u.children[a-1],s=u.children[a+1],i=o&&"sentence"===o.type&&o.children.length>0&&"word"===no.getLast(o.children).type&&!no.getLast(o.children).hasTrailingPunctuation||s&&"sentence"===s.type&&s.children.length>0&&"word"===s.children[0].type&&!s.children[0].hasLeadingPunctuation||zC(e,"emphasis")?"*":"_";return gC([i,GC(e,t,n),i])}case"strong":return gC(["**",GC(e,t,n),"**"]);case"delete":return gC(["~~",GC(e,t,n),"~~"]);case"inlineCode":{const e=no.getMinNotPresentContinuousCount(r.value,"`"),t="`".repeat(e||1),n=e?" ":"";return gC([t,n,r.value,n,t])}case"link":switch(t.originalText[r.position.start.offset]){case"<":{const e="mailto:",n=r.url.startsWith(e)&&t.originalText.slice(r.position.start.offset+1,r.position.start.offset+1+e.length)!==e?r.url.slice(e.length):r.url;return gC(["<",n,">"])}case"[":return gC(["[",GC(e,t,n),"](",QC(r.url,")"),ZC(r.title,t),")"]);default:return t.originalText.slice(r.position.start.offset,r.position.end.offset)}case"image":return gC([""),ZC(r.title,t),")"]);case"blockquote":return gC(["> ",SC("> ",GC(e,t,n))]);case"heading":return gC(["#".repeat(r.depth)+" ",GC(e,t,n)]);case"code":{if(r.isIndented){const e=" ".repeat(4);return SC(e,gC([e,gC(jC(r.value,AC))]))}const e=t.__inJsTemplate?"~":"`",n=e.repeat(Math.max(3,no.getMaxContinuousCount(r.value,e)+1));return gC([n,r.lang||"",AC,gC(jC(NC(r,t.originalText),AC)),AC,n])}case"yaml":case"toml":return t.originalText.slice(r.position.start.offset,r.position.end.offset);case"html":{const t=e.getParentNode(),n="root"===t.type&&no.getLast(t.children)===r?r.value.trimEnd():r.value,u=/^<!--[\s\S]*-->$/.test(n);return gC(jC(n,u?AC:bC(CC)))}case"list":{const u=WC(r,e.getParentNode()),a=OC(r,t);return GC(e,t,n,{processor:(e,o)=>{const s=function(){const e=r.ordered?(0===o?r.start:a?1:r.start+o)+(u%2===0?". ":") "):u%2===0?"- ":"* ";return r.isAligned||r.hasIndentedCodeblock?function(e,t){const n=function(){const n=e.length%t.tabWidth;return 0===n?0:t.tabWidth-n}();return e+" ".repeat(n>=4?0:n)}(e,t):e}(),i=e.getValue();return 2===i.children.length&&"html"===i.children[1].type&&i.children[0].position.start.column!==i.children[1].position.start.column?gC([s,VC(e,t,n,s)]):gC([s,SC(" ".repeat(s.length),VC(e,t,n,s))])}})}case"thematicBreak":{const t=UC(e,"list");return-1===t?"---":WC(e.getParentNode(t),e.getParentNode(t+1))%2===0?"***":"---"}case"linkReference":return gC(["[",GC(e,t,n),"]","full"===r.referenceType?gC(["[",r.identifier,"]"]):"collapsed"===r.referenceType?"[]":""]);case"imageReference":switch(r.referenceType){case"full":return gC(["![",r.alt||"","][",r.identifier,"]"]);default:return gC(["![",r.alt,"]","collapsed"===r.referenceType?"[]":""])}case"definition":{const e="always"===t.proseWrap?EC:" ";return BC(gC([gC(["[",r.identifier,"]:"]),wC(gC([e,QC(r.url),null===r.title?"":gC([e,ZC(r.title,t,!1)])]))]))}case"footnote":return gC(["[^",GC(e,t,n),"]"]);case"footnoteReference":return gC(["[^",r.identifier,"]"]);case"footnoteDefinition":{const u=e.getParentNode().children[e.getName()+1],a=1===r.children.length&&"paragraph"===r.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&r.children[0].position.start.line===r.children[0].position.end.line);return gC(["[^",r.identifier,"]: ",a?GC(e,t,n):BC(gC([SC(" ".repeat(t.tabWidth),GC(e,t,n,{processor:(e,t)=>0===t?BC(gC([FC,e.call(n)])):e.call(n)})),u&&"footnoteDefinition"===u.type?FC:""]))])}case"table":return function(e,t,n){const r=AC.parts[0],u=e.getValue(),a=[];e.map(e=>{const r=[];e.map(e=>{r.push(kC(e.call(n),t).formatted)},"children"),a.push(r)},"children");const o=a.reduce((e,t)=>e.map((e,n)=>Math.max(e,no.getStringWidth(t[n]))),a[0].map(()=>3)),s=yC(r,[c(a[0]),l(),yC(r,a.slice(1).map(e=>c(e)))]);if("never"!==t.proseWrap)return gC([DC,s]);const i=yC(r,[c(a[0],!0),l(!0),yC(r,a.slice(1).map(e=>c(e,!0)))]);return gC([DC,BC(vC(i,s))]);function l(e){return gC(["| ",yC(" | ",o.map((t,n)=>{const r=e?3:t;switch(u.align[n]){case"left":return":"+"-".repeat(r-1);case"right":return"-".repeat(r-1)+":";case"center":return":"+"-".repeat(r-2)+":";default:return"-".repeat(r)}}))," |"])}function c(e,t){return gC(["| ",yC(" | ",t?e:e.map((e,t)=>{switch(u.align[t]){case"right":return function(e,t){const n=t-no.getStringWidth(e);return gC([" ".repeat(n),e])}(e,o[t]);case"center":return function(e,t){const n=t-no.getStringWidth(e),r=Math.floor(n/2),u=n-r;return gC([" ".repeat(r),e," ".repeat(u)])}(e,o[t]);default:return function(e,t){const n=t-no.getStringWidth(e);return gC([e," ".repeat(n)])}(e,o[t])}}))," |"])}}(e,t,n);case"tableCell":return GC(e,t,n);case"break":return/\s/.test(t.originalText[r.position.start.offset])?gC([" ",bC(CC)]):gC(["\\",AC]);case"liquidNode":return gC(jC(r.value,AC));case"importExport":case"jsx":return r.value;case"math":return gC(["$$",AC,r.value?gC([gC(jC(r.value,AC)),AC]):"","$$"]);case"inlineMath":return t.originalText.slice(t.locStart(r),t.locEnd(r));case"tableRow":case"listItem":default:throw new Error("Unknown markdown type ".concat(JSON.stringify(r.type)))}},embed:oC,massageAstNode:function(e,t,n){return delete t.position,delete t.raw,"code"!==e.type&&"yaml"!==e.type&&"import"!==e.type&&"export"!==e.type&&"jsx"!==e.type||delete t.value,"list"===e.type&&delete t.isAligned,"text"===e.type?null:("inlineCode"===e.type&&(t.value=e.value.replace(/[ \t\n]+/g," ")),n&&"root"===n.type&&n.children.length>0&&(n.children[0]===e||("yaml"===n.children[0].type||"toml"===n.children[0].type)&&n.children[1]===e)&&"html"===e.type&&lC.startWithPragma(e.value)?null:void 0)},hasPrettierIgnore:function(e){const t=+e.getName();return 0!==t&&"next"===XC(e.getParentNode().children[t-1])},insertPragma:lC.insertPragma},nb={proseWrap:Ll.proseWrap,singleQuote:Ll.singleQuote},rb=["pandoc"],ub=[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".workbook"],ab=["contents.lr"],ob={name:"Markdown",type:"prose",aliases:rb,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:ub,filenames:ab,tmScope:"source.gfm",languageId:222},sb=Ze(Object.freeze({__proto__:null,name:"Markdown",type:"prose",aliases:rb,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:ub,filenames:ab,tmScope:"source.gfm",languageId:222,default:ob})),ib={languages:[ql(sb,e=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:e.filenames.concat(["README"]),extensions:e.extensions.filter(e=>".mdx"!==e)})),ql(sb,()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]}))],options:nb,printers:{mdast:tb}},lb={isPragma:function(e){return/^\s*@(prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\n\S]*@(prettier|format)\s*?(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n".concat(e)}};const{getLast:cb}=no;function pb(e,t){return e&&"string"===typeof e.type&&(!t||t.includes(e.type))}function db(e){return"prettier-ignore"===e.value.trim()}function fb(e){return e&&e.leadingComments&&0!==e.leadingComments.length}function hb(e){return e&&e.middleComments&&0!==e.middleComments.length}function mb(e){return e&&e.indicatorComment}function Db(e){return e&&e.trailingComment}function gb(e){return e&&e.endComments&&0!==e.endComments.length}function yb(e){const t=[];let n=void 0;for(const r of e.split(/( +)/g))" "!==r?" "===n?t.push(r):t.push((t.pop()||"")+r):void 0===n&&t.unshift(""),n=r;return" "===n&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}var Eb={getLast:cb,getAncestorCount:function(e,t){let n=0;const r=e.stack.length-1;for(let u=0;u<r;u++){const r=e.stack[u];pb(r)&&t(r)&&n++}return n},isNode:pb,isEmptyNode:function(e){return(!e.children||0===e.children.length)&&!function(e){return fb(e)||hb(e)||mb(e)||Db(e)||gb(e)}(e)},mapNode:function e(t,n,r){return n("children"in t?Object.assign({},t,{children:t.children.map(r=>e(r,n,t))}):t,r)},defineShortcut:function(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1})},isNextLineEmpty:function(e,t){let n=0;const r=t.length;for(let u=e.position.end.offset-1;u<r;u++){const e=t[u];if("\n"===e&&n++,1===n&&/\S/.test(e))return!1;if(2===n)return!0}return!1},isLastDescendantNode:function(e){switch(e.getValue().type){case"tag":case"anchor":case"comment":return!1}const t=e.stack.length;for(let n=1;n<t;n++){const t=e.stack[n],r=e.stack[n-1];if(Array.isArray(r)&&"number"===typeof t&&t!==r.length-1)return!1}return!0},getBlockValueLineContents:function(e,{parentIndent:t,isLastDescendant:n,options:r}){const u=e.position.start.line===e.position.end.line?"":r.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*?\n([\s\S]*)$/)[1],a=null===e.indent?(o=u.match(/^( *)\S/m))?o[1].length:1/0:e.indent-1+t;var o;const s=u.split("\n").map(e=>e.slice(a));return"preserve"===r.proseWrap||"blockLiteral"===e.type?i(s.map(e=>0===e.length?[]:[e])):i(s.map(e=>0===e.length?[]:yb(e)).reduce((e,t,n)=>0===n||0===s[n-1].length||0===t.length||/^\s/.test(t[0])||/^\s|\s$/.test(cb(e))?e.concat([t]):e.concat([e.pop().concat(t)]),[]).map(e=>e.reduce((e,t)=>0!==e.length&&/\s$/.test(cb(e))?e.concat(e.pop()+" "+t):e.concat(t),[])).map(e=>"never"===r.proseWrap?[e.join(" ")]:e));function i(t){if("keep"===e.chomping)return 0===cb(t).length?t.slice(0,-1):t;let r=0;for(let e=t.length-1;e>=0&&0===t[e].length;e--)r++;return 0===r?t:r>=2&&!n?t.slice(0,-(r-1)):t.slice(0,-r)}},getFlowScalarLineContents:function(e,t,n){const r=t.split("\n").map((e,t,n)=>0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimEnd():e.trimStart());return"preserve"===n.proseWrap?r.map(e=>0===e.length?[]:[e]):r.map(e=>0===e.length?[]:yb(e)).reduce((t,n,u)=>0===u||0===r[u-1].length||0===n.length||"quoteDouble"===e&&cb(cb(t)).endsWith("\\")?t.concat([n]):t.concat([t.pop().concat(n)]),[]).map(e=>"never"===n.proseWrap?[e.join(" ")]:e)},getLastDescendantNode:function e(t){return"children"in t&&0!==t.children.length?e(cb(t.children)):t},hasPrettierIgnore:function(e){const t=e.getValue();if("documentBody"===t.type){const t=e.getParentNode();return gb(t.head)&&db(cb(t.head.endComments))}return fb(t)&&db(cb(t.leadingComments))},hasLeadingComments:fb,hasMiddleComments:hb,hasIndicatorComment:mb,hasTrailingComment:Db,hasEndComments:gb};const{insertPragma:Cb,isPragma:bb}=lb,{getAncestorCount:Ab,getBlockValueLineContents:Fb,getFlowScalarLineContents:vb,getLast:xb,getLastDescendantNode:Sb,hasLeadingComments:wb,hasMiddleComments:Bb,hasIndicatorComment:Tb,hasTrailingComment:kb,hasEndComments:Nb,hasPrettierIgnore:Ob,isLastDescendantNode:Pb,isNextLineEmpty:Ib,isNode:Mb,isEmptyNode:_b,defineShortcut:jb,mapNode:Lb}=Eb,Rb=So.builders,{conditionalGroup:qb,breakParent:Vb,concat:Wb,dedent:Ub,dedentToRoot:zb,fill:$b,group:Jb,hardline:Gb,ifBreak:Hb,join:Xb,line:Yb,lineSuffix:Kb,literalline:Qb,markAsRoot:Zb,softline:eA}=Rb,{replaceEndOfLineWith:tA}=no;function nA(e){switch(e.type){case"document":jb(e,"head",()=>e.children[0]),jb(e,"body",()=>e.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":jb(e,"content",()=>e.children[0]);break;case"mappingItem":case"flowMappingItem":jb(e,"key",()=>e.children[0]),jb(e,"value",()=>e.children[1])}return e}function rA(e,t,n,r,u){switch(e.type){case"root":return Wb([Xb(Gb,n.map((t,r)=>{const a=e.children[r],o=e.children[r+1];return Wb([u(t),sA(a,o)?Wb([Gb,"...",kb(a)?Wb([" ",n.call(u,"trailingComment")]):""]):!o||kb(o.head)?"":Wb([Gb,"---"])])},"children")),0===e.children.length||(o=Sb(e),Mb(o,["blockLiteral","blockFolded"])&&"keep"===o.chomping)?"":Gb]);case"document":{const a=t.children[n.getName()+1];return Xb(Gb,["head"===iA(e,a,t,r)?Xb(Gb,[0===e.head.children.length&&0===e.head.endComments.length?"":n.call(u,"head"),Wb(["---",kb(e.head)?Wb([" ",n.call(u,"head","trailingComment")]):""])].filter(Boolean)):"",oA(e)?n.call(u,"body"):""].filter(Boolean))}case"documentHead":return Xb(Gb,[].concat(n.map(u,"children"),n.map(u,"endComments")));case"documentBody":{const t=Xb(Gb,n.map(u,"children")).parts,r=Xb(Gb,n.map(u,"endComments")).parts,a=0===t.length||0===r.length?"":(e=>Mb(e,["blockFolded","blockLiteral"])?"keep"===e.chomping?"":Wb([Gb,Gb]):Gb)(Sb(e));return Wb([].concat(t,a,r))}case"directive":return Wb(["%",Xb(" ",[e.name].concat(e.parameters))]);case"comment":return Wb(["#",e.value]);case"alias":return Wb(["*",e.value]);case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return Wb(["&",e.value]);case"plain":return dA(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":{const t="'",n='"',u=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&u.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(u)){const a="quoteDouble"===e.type?n:t;return Wb([a,dA(e.type,u,r),a])}if(u.includes(n))return Wb([t,dA(e.type,"quoteDouble"===e.type?u.replace(/\\"/g,n).replace(/'/g,t.repeat(2)):u,r),t]);if(u.includes(t))return Wb([n,dA(e.type,"quoteSingle"===e.type?u.replace(/''/g,t):u,r),n]);const a=r.singleQuote?t:n;return Wb([a,dA(e.type,u,r),a])}case"blockFolded":case"blockLiteral":{const t=Ab(n,e=>Mb(e,["sequence","mapping"])),a=Pb(n);return Wb(["blockFolded"===e.type?">":"|",null===e.indent?"":e.indent.toString(),"clip"===e.chomping?"":"keep"===e.chomping?"+":"-",Tb(e)?Wb([" ",n.call(u,"indicatorComment")]):"",(null===e.indent?Ub:zb)(uA(null===e.indent?r.tabWidth:e.indent-1+t,Wb(Fb(e,{parentIndent:t,isLastDescendant:a,options:r}).reduce((t,n,r,u)=>t.concat(0===r?Gb:"",$b(Xb(Yb,n).parts),r!==u.length-1?0===n.length?Gb:Zb(Qb):"keep"===e.chomping&&a?0===n.length?zb(Gb):zb(Qb):""),[]))))])}case"sequence":return Xb(Gb,n.map(u,"children"));case"sequenceItem":return Wb(["- ",uA(2,e.content?n.call(u,"content"):"")]);case"mappingKey":case"mappingValue":return e.content?n.call(u,"content"):"";case"mapping":return Xb(Gb,n.map(u,"children"));case"mappingItem":case"flowMappingItem":{const a=_b(e.key),o=_b(e.value);if(a&&o)return Wb([": "]);const i=n.call(u,"key"),l=n.call(u,"value");if(o)return"flowMappingItem"===e.type&&"flowMapping"===t.type?i:"mappingItem"!==e.type||!lA(e.key.content,r)||kb(e.key.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?Wb(["? ",uA(2,i)]):Wb([i,cA(e)?" ":"",":"]);if(a)return Wb([": ",uA(2,l)]);const c=Symbol("mappingKey");return wb(e.value)||!aA(e.key.content)?Wb(["? ",uA(2,i),Gb,Xb("",n.map(u,"value","leadingComments").map(e=>Wb([e,Gb]))),": ",uA(2,l)]):!function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(e.key.content)||wb(e.key.content)||Bb(e.key.content)||kb(e.key.content)||Nb(e.key)||wb(e.value.content)||Bb(e.value.content)||Nb(e.value)||!lA(e.value.content,r)?qb([Wb([Jb(Wb([Hb("? "),Jb(uA(2,i),{id:c})])),Hb(Wb([Gb,": ",uA(2,l)]),s(Wb([cA(e)?" ":"",":",wb(e.value.content)||Nb(e.value)&&e.value.content&&!Mb(e.value.content,["mapping","sequence"])||"mapping"===t.type&&kb(e.key.content)&&aA(e.value.content)||Mb(e.value.content,["mapping","sequence"])&&null===e.value.content.tag&&null===e.value.content.anchor?Gb:e.value.content?Yb:"",l])),{groupId:c})])]):Wb([i,cA(e)?" ":"",": ",l])}case"flowMapping":case"flowSequence":{const t="flowMapping"===e.type?"{":"[",o="flowMapping"===e.type?"}":"]",i="flowMapping"===e.type&&0!==e.children.length&&r.bracketSpacing?Yb:eA,l=0!==e.children.length&&"flowMappingItem"===(a=xb(e.children)).type&&_b(a.key)&&_b(a.value);return Wb([t,s(Wb([i,Wb(n.map((t,n)=>Wb([u(t),n===e.children.length-1?"":Wb([",",Yb,e.children[n].position.start.line!==e.children[n+1].position.start.line?pA(t,r.originalText):""])]),"children")),Hb(",","")])),l?"":i,o])}case"flowSequenceItem":return n.call(u,"content");default:throw new Error("Unexpected node type ".concat(e.type))}var a,o;function s(e){return Rb.align(" ".repeat(r.tabWidth),e)}}function uA(e,t){return"number"===typeof e&&e>0?Rb.align(" ".repeat(e),t):Rb.align(e,t)}function aA(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}function oA(e){return 0!==e.body.children.length||Nb(e.body)}function sA(e,t){return kb(e)||t&&(0!==t.head.children.length||Nb(t.head))}function iA(e,t,n,r){return n.children[0]===e&&/---(\s|$)/.test(r.originalText.slice(r.locStart(e),r.locStart(e)+4))||0!==e.head.children.length||Nb(e.head)||kb(e.head)?"head":!sA(e,t)&&!!t&&"root"}function lA(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}function cA(e){return e.key.content&&"alias"===e.key.content.type}function pA(e,t){const n=e.getValue(),r=e.stack[0];return r.isNextEmptyLinePrintedChecklist=r.isNextEmptyLinePrintedChecklist||[],!r.isNextEmptyLinePrintedChecklist[n.position.end.line]&&Ib(n,t)?(r.isNextEmptyLinePrintedChecklist[n.position.end.line]=!0,eA):""}function dA(e,t,n){const r=vb(e,t,n);return Xb(Gb,r.map(e=>$b(Xb(Yb,e).parts)))}var fA={preprocess:function(e){return Lb(e,nA)},print:function(e,t,n){const r=e.getValue(),u=e.getParentNode(),a=r.tag?e.call(n,"tag"):"",o=r.anchor?e.call(n,"anchor"):"",s=Mb(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Pb(e)?pA(e,t.originalText):"";return Wb(["mappingValue"!==r.type&&wb(r)?Wb([Xb(Gb,e.map(n,"leadingComments")),Gb]):"",a,a&&o?" ":"",o,a||o?Mb(r,["sequence","mapping"])&&!Bb(r)?Gb:" ":"",Bb(r)?Wb([1===r.middleComments.length?"":Gb,Xb(Gb,e.map(n,"middleComments")),Gb]):"",Ob(e)?Wb(tA(t.originalText.slice(r.position.start.offset,r.position.end.offset),Qb)):Jb(rA(r,u,e,t,n)),kb(r)&&!Mb(r,["document","documentHead"])?Kb(Wb(["mappingValue"!==r.type||r.content?" ":"","mappingKey"===u.type&&"mapping"===e.getParentNode(2).type&&aA(r)?"":Vb,e.call(n,"trailingComment")])):"",s,Nb(r)&&!Mb(r,["documentHead","documentBody"])?uA("sequenceItem"===r.type?2:0,Wb([Gb,Xb(Gb,e.map(n,"endComments"))])):""])},massageAstNode:function(e,t){if(Mb(t))switch(delete t.position,t.type){case"comment":if(bb(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:Cb},hA={bracketSpacing:Ll.bracketSpacing,singleQuote:Ll.singleQuote,proseWrap:Ll.proseWrap},mA=["yml"],DA=[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],gA=[".clang-format",".clang-tidy",".gemrc","glide.lock","yarn.lock"],yA={name:"YAML",type:"data",tmScope:"source.yaml",aliases:mA,extensions:DA,filenames:gA,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407},EA={languages:[ql(Ze(Object.freeze({__proto__:null,name:"YAML",type:"data",tmScope:"source.yaml",aliases:mA,extensions:DA,filenames:gA,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407,default:yA})),e=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml"],filenames:e.filenames.filter(e=>"yarn.lock"!==e)}))],printers:{yaml:fA},options:hA};const{version:CA}=rn,{getSupportInfo:bA}=sn,AA=[rc,vc,lp,Gh,UE,ib,EA];function FA(e,t=1){return(...n)=>{const r=n[t]||{},u=r.plugins||[];return n[t]=Object.assign({},r,{plugins:[...AA,...Array.isArray(u)?u:Object.values(u)]}),e(...n)}}const vA=FA(Js.formatWithCursor);return{formatWithCursor:vA,format:(e,t)=>vA(e,t).formatted,check(e,t){const{formatted:n}=vA(e,t);return n===e},doc:So,getSupportInfo:FA(bA,0),version:CA,util:Yo,__debug:{parse:FA(Js.parse),formatAST:FA(Js.formatAST),formatDoc:FA(Js.formatDoc),printToDoc:FA(Js.printToDoc),printDocToString:FA(Js.printDocToString)}}},e.exports=n()}).call(this,n("RLDh"))}}]);
|
|
3
|
-
//# sourceMappingURL=
|
|
1
|
+
/*! For license information please see 35.14d24902.chunk.js.LICENSE.txt */
|
|
2
|
+
(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[35],{MlsZ:function(e,t,n){(function(t){var n;n=function(){"use strict";var e="Prettier is an opinionated code formatter",n="./bin/prettier.js",r={node:">=10.13.0"},u={"@angular/compiler":"9.0.5","@babel/code-frame":"7.8.0","@babel/parser":"7.9.4","@glimmer/syntax":"0.50.0","@iarna/toml":"2.2.3","@typescript-eslint/typescript-estree":"2.26.0","angular-estree-parser":"1.3.0","angular-html-parser":"1.4.0",camelcase:"5.3.1",chalk:"4.0.0","ci-info":"watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540","cjk-regex":"2.0.0",cosmiconfig:"6.0.0",dashify:"2.0.0",dedent:"0.7.0",diff:"4.0.2",editorconfig:"0.15.3","editorconfig-to-prettier":"0.1.1","escape-string-regexp":"2.0.0",esutils:"2.0.3","fast-glob":"3.2.2","find-parent-dir":"0.3.0","find-project-root":"1.1.1","flow-parser":"0.122.0","get-stream":"5.1.0",globby:"11.0.0",graphql:"15.0.0","html-element-attributes":"2.2.1","html-styles":"1.0.0","html-tag-names":"1.1.5",ignore:"4.0.6","jest-docblock":"25.2.6","json-stable-stringify":"1.0.1",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.9.0",lodash:"4.17.15",mem:"6.0.1",minimatch:"3.0.4",minimist:"1.2.5","n-readlines":"1.0.0","please-upgrade-node":"3.2.0","postcss-less":"3.1.4","postcss-media-query-parser":"0.2.3","postcss-scss":"2.0.0","postcss-selector-parser":"2.2.3","postcss-values-parser":"2.0.1","regexp-util":"1.2.2","remark-math":"1.0.6","remark-parse":"5.0.0",resolve:"1.16.1",semver:"7.1.3",srcset:"2.0.1","string-width":"4.2.0",typescript:"3.8.3","unicode-regex":"3.0.0",unified:"9.0.0",vnopts:"1.0.2","yaml-unist-parser":"1.1.1"},a={"@babel/core":"7.9.0","@babel/preset-env":"7.9.0","@rollup/plugin-alias":"3.0.1","@rollup/plugin-commonjs":"11.0.2","@rollup/plugin-json":"4.0.2","@rollup/plugin-node-resolve":"7.1.1","@rollup/plugin-replace":"2.3.1","babel-loader":"8.1.0",benchmark:"2.1.4","builtin-modules":"3.1.0",codecov:"3.6.5","cross-env":"7.0.2",cspell:"4.0.55",eslint:"6.8.0","eslint-config-prettier":"6.10.1","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.20.2","eslint-plugin-prettier":"3.1.2","eslint-plugin-react":"7.19.0","eslint-plugin-unicorn":"18.0.1",execa:"4.0.0",jest:"25.2.7","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.1.0","jest-watch-typeahead":"0.5.0",prettier:"2.0.4",rimraf:"3.0.2",rollup:"2.3.2","rollup-plugin-babel":"4.4.0","rollup-plugin-node-globals":"1.4.0","rollup-plugin-terser":"5.3.0",shelljs:"0.8.3","snapshot-diff":"0.7.0","strip-ansi":"6.0.0","synchronous-promise":"2.0.10",tempy:"0.5.0","terser-webpack-plugin":"2.3.5",webpack:"4.42.1"},o={prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dist":"cross-env NODE_ENV=production jest","test:dist-standalone":"cross-env NODE_ENV=production TEST_STANDALONE=1 jest tests/","test:integration":"jest tests_integration","perf:repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","lint:typecheck":"tsc","lint:eslint":"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint:changelog":"node ./scripts/lint-changelog.js","lint:prettier":'prettier "**/*.{md,json,yml,html,css}" --check',"lint:dist":'eslint --no-eslintrc --no-ignore --env=es6,browser --parser-options=ecmaVersion:2016 "dist/!(bin-prettier|index|third-party).js"',"lint:spellcheck":"cspell {bin,scripts,src,website}/**/*.js {docs,website/blog,changelog_unreleased}/**/*.md","lint:deps":"node ./scripts/check-deps.js",build:"node --max-old-space-size=3072 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js"},s={name:"prettier",version:"2.0.5",description:e,bin:n,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",engines:r,dependencies:u,devDependencies:a,scripts:o},i=Object.freeze({__proto__:null,name:"prettier",version:"2.0.5",description:e,bin:n,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",engines:r,dependencies:u,devDependencies:a,scripts:o,default:s});function l(){}function c(e,t,n,r,u){for(var a=0,o=t.length,s=0,i=0;a<o;a++){var l=t[a];if(l.removed){if(l.value=e.join(r.slice(i,i+l.count)),i+=l.count,a&&t[a-1].added){var c=t[a-1];t[a-1]=t[a],t[a]=c}}else{if(!l.added&&u){var p=n.slice(s,s+l.count);p=p.map((function(e,t){var n=r[i+t];return n.length>e.length?n:e})),l.value=e.join(p)}else l.value=e.join(n.slice(s,s+l.count));s+=l.count,l.added||(i+=l.count)}}var d=t[o-1];return o>1&&"string"===typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(t[o-2].value+=d.value,t.pop()),t}function p(e){return{newPos:e.newPos,components:e.components.slice(0)}}l.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"===typeof n&&(r=n,n={}),this.options=n;var u=this;function a(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var o=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,i=1,l=o+s,d=[{newPos:-1,components:[]}],f=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=o&&f+1>=s)return a([{value:this.join(t),count:t.length}]);function h(){for(var n=-1*i;n<=i;n+=2){var r=void 0,l=d[n-1],f=d[n+1],h=(f?f.newPos:0)-n;l&&(d[n-1]=void 0);var m=l&&l.newPos+1<o,D=f&&0<=h&&h<s;if(m||D){if(!m||D&&l.newPos<f.newPos?(r=p(f),u.pushComponent(r.components,void 0,!0)):((r=l).newPos++,u.pushComponent(r.components,!0,void 0)),h=u.extractCommon(r,t,e,n),r.newPos+1>=o&&h+1>=s)return a(c(u,r.components,t,e,u.useLongestToken));d[n]=r}else d[n]=void 0}i++}if(r)!function e(){setTimeout((function(){if(i>l)return r();h()||e()}),0)}();else for(;i<=l;){var m=h();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var u=t.length,a=n.length,o=e.newPos,s=o-r,i=0;o+1<u&&s+1<a&&this.equals(t[o+1],n[s+1]);)o++,s++,i++;return i&&e.components.push({count:i}),e.newPos=o,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var d=new l;function f(e,t){if("function"===typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var h=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,m=/\S/,D=new l;D.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!m.test(e)&&!m.test(t)},D.tokenize=function(e){for(var t=e.split(/(\s+|[()[\]{}'"]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&h.test(t[n])&&h.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var g=new l;function y(e,t,n){return g.diff(e,t,n)}g.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var u=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=u:(this.options.ignoreWhitespace&&(u=u.trim()),t.push(u))}return t};var E=new l;E.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var C=new l;function b(e){return(b="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e){return function(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(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}C.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var F=Object.prototype.toString,v=new l;function x(e,t,n,r,u){var a,o;for(t=t||[],n=n||[],r&&(e=r(u,e)),a=0;a<t.length;a+=1)if(t[a]===e)return n[a];if("[object Array]"===F.call(e)){for(t.push(e),o=new Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=x(e[a],t,n,r,u);return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),"object"===b(e)&&null!==e){t.push(e),o={},n.push(o);var s,i=[];for(s in e)e.hasOwnProperty(s)&&i.push(s);for(i.sort(),a=0;a<i.length;a+=1)o[s=i[a]]=x(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}v.useLongestToken=!0,v.tokenize=g.tokenize,v.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,u=void 0===r?function(e,t){return"undefined"===typeof t?n:t}:r;return"string"===typeof e?e:JSON.stringify(x(e,null,null,u),u," ")},v.equals=function(e,t){return l.prototype.equals.call(v,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var S=new l;function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],u=[],a=0;function o(){var e={};for(u.push(e);a<n.length;){var r=n[a];if(/^(\-\-\-|\+\+\+|@@)\s/.test(r))break;var o=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(r);o&&(e.index=o[1]),a++}for(s(e),s(e),e.hunks=[];a<n.length;){var l=n[a];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(l))break;if(/^@@/.test(l))e.hunks.push(i());else{if(l&&t.strict)throw new Error("Unknown line "+(a+1)+" "+JSON.stringify(l));a++}}}function s(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[a]);if(t){var r="---"===t[1]?"old":"new",u=t[2].split("\t",2),o=u[0].replace(/\\\\/g,"\\");/^".*"$/.test(o)&&(o=o.substr(1,o.length-2)),e[r+"FileName"]=o,e[r+"Header"]=(u[1]||"").trim(),a++}}function i(){for(var e=a,u=n[a++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),o={oldStart:+u[1],oldLines:+u[2]||1,newStart:+u[3],newLines:+u[4]||1,lines:[],linedelimiters:[]},s=0,i=0;a<n.length&&!(0===n[a].indexOf("--- ")&&a+2<n.length&&0===n[a+1].indexOf("+++ ")&&0===n[a+2].indexOf("@@"));a++){var l=0==n[a].length&&a!=n.length-1?" ":n[a][0];if("+"!==l&&"-"!==l&&" "!==l&&"\\"!==l)break;o.lines.push(n[a]),o.linedelimiters.push(r[a]||"\n"),"+"===l?s++:"-"===l?i++:" "===l&&(s++,i++)}if(s||1!==o.newLines||(o.newLines=0),i||1!==o.oldLines||(o.oldLines=0),t.strict){if(s!==o.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(i!==o.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return o}for(;a<n.length;)o();return u}function B(e,t,n){var r=!0,u=!1,a=!1,o=1;return function s(){if(r&&!a){if(u?o++:r=!1,e+o<=n)return o;a=!0}if(!u)return a||(r=!0),t<=e-o?-o++:(u=!0,s())}}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof t&&(t=w(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,u,a=e.split(/\r\n|[\n\v\f\r\x85]/),o=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],s=t.hunks,i=n.compareLine||function(e,t,n,r){return t===r},l=0,c=n.fuzzFactor||0,p=0,d=0;function f(e,t){for(var n=0;n<e.lines.length;n++){var r=e.lines[n],u=r.length>0?r[0]:" ",o=r.length>0?r.substr(1):r;if(" "===u||"-"===u){if(!i(t+1,a[t],u,o)&&++l>c)return!1;t++}}return!0}for(var h=0;h<s.length;h++){for(var m=s[h],D=a.length-m.oldLines,g=0,y=d+m.oldStart-1,E=B(y,p,D);void 0!==g;g=E())if(f(m,y+g)){m.offset=d+=g;break}if(void 0===g)return!1;p=m.offset+m.oldStart+m.oldLines}for(var C=0,b=0;b<s.length;b++){var A=s[b],F=A.oldStart+A.offset+C-1;C+=A.newLines-A.oldLines,F<0&&(F=0);for(var v=0;v<A.lines.length;v++){var x=A.lines[v],S=x.length>0?x[0]:" ",T=x.length>0?x.substr(1):x,k=A.linedelimiters[v];if(" "===S)F++;else if("-"===S)a.splice(F,1),o.splice(F,1);else if("+"===S)a.splice(F,0,T),o.splice(F,0,k),F++;else if("\\"===S){var N=A.lines[v-1]?A.lines[v-1][0]:null;"+"===N?r=!0:"-"===N&&(u=!0)}}}if(r)for(;!a[a.length-1];)a.pop(),o.pop();else u&&(a.push(""),o.push("\n"));for(var O=0;O<a.length-1;O++)a[O]=a[O]+o[O];return a.join("")}function k(e,t,n,r,u,a,o){o||(o={}),"undefined"===typeof o.context&&(o.context=4);var s=y(n,r,o);function i(e){return e.map((function(e){return" "+e}))}s.push({value:"",lines:[]});for(var l=[],c=0,p=0,d=[],f=1,h=1,m=function(e){var t=s[e],u=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=u,t.added||t.removed){var a;if(!c){var m=s[e-1];c=f,p=h,m&&(d=o.context>0?i(m.lines.slice(-o.context)):[],c-=d.length,p-=d.length)}(a=d).push.apply(a,A(u.map((function(e){return(t.added?"+":"-")+e})))),t.added?h+=u.length:f+=u.length}else{if(c)if(u.length<=2*o.context&&e<s.length-2){var D;(D=d).push.apply(D,A(i(u)))}else{var g,y=Math.min(u.length,o.context);(g=d).push.apply(g,A(i(u.slice(0,y))));var E={oldStart:c,oldLines:f-c+y,newStart:p,newLines:h-p+y,lines:d};if(e>=s.length-2&&u.length<=o.context){var C=/\n$/.test(n),b=/\n$/.test(r),F=0==u.length&&d.length>E.oldLines;!C&&F&&d.splice(E.oldLines,0,"\"),(C||F)&&b||d.push("\")}l.push(E),c=0,p=0,d=[]}f+=u.length,h+=u.length}},D=0;D<s.length;D++)m(D);return{oldFileName:e,newFileName:t,oldHeader:u,newHeader:a,hunks:l}}function N(e,t,n,r,u,a,o){var s=k(e,t,n,r,u,a,o),i=[];e==t&&i.push("Index: "+e),i.push("==================================================================="),i.push("--- "+s.oldFileName+("undefined"===typeof s.oldHeader?"":"\t"+s.oldHeader)),i.push("+++ "+s.newFileName+("undefined"===typeof s.newHeader?"":"\t"+s.newHeader));for(var l=0;l<s.hunks.length;l++){var c=s.hunks[l];i.push("@@ -"+c.oldStart+","+c.oldLines+" +"+c.newStart+","+c.newLines+" @@"),i.push.apply(i,c.lines)}return i.join("\n")+"\n"}function O(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function P(e){var t=function e(t){var n=0,r=0;return t.forEach((function(t){if("string"!==typeof t){var u=e(t.mine),a=e(t.theirs);void 0!==n&&(u.oldLines===a.oldLines?n+=u.oldLines:n=void 0),void 0!==r&&(u.newLines===a.newLines?r+=u.newLines:r=void 0)}else void 0===r||"+"!==t[0]&&" "!==t[0]||r++,void 0===n||"-"!==t[0]&&" "!==t[0]||n++})),{oldLines:n,newLines:r}}(e.lines),n=t.oldLines,r=t.newLines;void 0!==n?e.oldLines=n:delete e.oldLines,void 0!==r?e.newLines=r:delete e.newLines}function I(e,t){if("string"===typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return w(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return k(void 0,void 0,t,e)}return e}function M(e){return e.newFileName&&e.newFileName!==e.oldFileName}function _(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function j(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function L(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function R(e,t,n,r,u){var a={offset:t,lines:n,index:0},o={offset:r,lines:u,index:0};for(U(e,a,o),U(e,o,a);a.index<a.lines.length&&o.index<o.lines.length;){var s=a.lines[a.index],i=o.lines[o.index];if("-"!==s[0]&&"+"!==s[0]||"-"!==i[0]&&"+"!==i[0])if("+"===s[0]&&" "===i[0]){var l;(l=e.lines).push.apply(l,A($(a)))}else if("+"===i[0]&&" "===s[0]){var c;(c=e.lines).push.apply(c,A($(o)))}else"-"===s[0]&&" "===i[0]?V(e,a,o):"-"===i[0]&&" "===s[0]?V(e,o,a,!0):s===i?(e.lines.push(s),a.index++,o.index++):W(e,$(a),$(o));else q(e,a,o)}z(e,a),z(e,o),P(e)}function q(e,t,n){var r=$(t),u=$(n);if(J(r)&&J(u)){var a,o;if(O(r,u)&&G(n,r,r.length-u.length))return void(a=e.lines).push.apply(a,A(r));if(O(u,r)&&G(t,u,u.length-r.length))return void(o=e.lines).push.apply(o,A(u))}else if(function(e,t){return e.length===t.length&&O(e,t)}(r,u)){var s;return void(s=e.lines).push.apply(s,A(r))}W(e,r,u)}function V(e,t,n,r){var u,a=$(t),o=function(e,t){for(var n=[],r=[],u=0,a=!1,o=!1;u<t.length&&e.index<e.lines.length;){var s=e.lines[e.index],i=t[u];if("+"===i[0])break;if(a=a||" "!==s[0],r.push(i),u++,"+"===s[0])for(o=!0;"+"===s[0];)n.push(s),s=e.lines[++e.index];i.substr(1)===s.substr(1)?(n.push(s),e.index++):o=!0}if("+"===(t[u]||"")[0]&&a&&(o=!0),o)return n;for(;u<t.length;)r.push(t[u++]);return{merged:r,changes:n}}(n,a);o.merged?(u=e.lines).push.apply(u,A(o.merged)):W(e,r?o:a,r?a:o)}function W(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function U(e,t,n){for(;t.offset<n.offset&&t.index<t.lines.length;){var r=t.lines[t.index++];e.lines.push(r),t.offset++}}function z(e,t){for(;t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n)}}function $(e){for(var t=[],n=e.lines[e.index][0];e.index<e.lines.length;){var r=e.lines[e.index];if("-"===n&&"+"===r[0]&&(n="+"),n!==r[0])break;t.push(r),e.index++}return t}function J(e){return e.reduce((function(e,t){return e&&"-"===t[0]}),!0)}function G(e,t,n){for(var r=0;r<n;r++){var u=t[t.length-n+r].substr(1);if(e.lines[e.index+r]!==" "+u)return!1}return e.index+=n,!0}function H(e){var t=e;return t=(t=(t=(t=t.replace(/&/g,"&")).replace(/</g,"<")).replace(/>/g,">")).replace(/"/g,""")}S.tokenize=function(e){return e.slice()},S.join=S.removeEmpty=function(e){return e};var X=Object.freeze({__proto__:null,Diff:l,diffChars:function(e,t,n){return d.diff(e,t,n)},diffWords:function(e,t,n){return n=f(n,{ignoreWhitespace:!0}),D.diff(e,t,n)},diffWordsWithSpace:function(e,t,n){return D.diff(e,t,n)},diffLines:y,diffTrimmedLines:function(e,t,n){var r=f(n,{ignoreWhitespace:!0});return g.diff(e,t,r)},diffSentences:function(e,t,n){return E.diff(e,t,n)},diffCss:function(e,t,n){return C.diff(e,t,n)},diffJson:function(e,t,n){return v.diff(e,t,n)},diffArrays:function(e,t,n){return S.diff(e,t,n)},structuredPatch:k,createTwoFilesPatch:N,createPatch:function(e,t,n,r,u,a){return N(e,e,t,n,r,u,a)},applyPatch:T,applyPatches:function(e,t){"string"===typeof e&&(e=w(e));var n=0;!function r(){var u=e[n++];if(!u)return t.complete();t.loadFile(u,(function(e,n){if(e)return t.complete(e);var a=T(n,u,t);t.patched(u,a,(function(e){if(e)return t.complete(e);r()}))}))}()},parsePatch:w,merge:function(e,t,n){e=I(e,n),t=I(t,n);var r={};(e.index||t.index)&&(r.index=e.index||t.index),(e.newFileName||t.newFileName)&&(M(e)?M(t)?(r.oldFileName=_(r,e.oldFileName,t.oldFileName),r.newFileName=_(r,e.newFileName,t.newFileName),r.oldHeader=_(r,e.oldHeader,t.oldHeader),r.newHeader=_(r,e.newHeader,t.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=t.oldFileName||e.oldFileName,r.newFileName=t.newFileName||e.newFileName,r.oldHeader=t.oldHeader||e.oldHeader,r.newHeader=t.newHeader||e.newHeader)),r.hunks=[];for(var u=0,a=0,o=0,s=0;u<e.hunks.length||a<t.hunks.length;){var i=e.hunks[u]||{oldStart:1/0},l=t.hunks[a]||{oldStart:1/0};if(j(i,l))r.hunks.push(L(i,o)),u++,s+=i.newLines-i.oldLines;else if(j(l,i))r.hunks.push(L(l,s)),a++,o+=l.newLines-l.oldLines;else{var c={oldStart:Math.min(i.oldStart,l.oldStart),oldLines:0,newStart:Math.min(i.newStart+o,l.oldStart+s),newLines:0,lines:[]};R(c,i.oldStart,i.lines,l.oldStart,l.lines),a++,u++,r.hunks.push(c)}}return r},convertChangesToDMP:function(e){for(var t,n,r=[],u=0;u<e.length;u++)n=(t=e[u]).added?1:t.removed?-1:0,r.push([n,t.value]);return r},convertChangesToXML:function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r.added?t.push("<ins>"):r.removed&&t.push("<del>"),t.push(H(r.value)),r.added?t.push("</ins>"):r.removed&&t.push("</del>")}return t.join("")},canonicalize:x}),Y=Object.freeze({__proto__:null,default:{}});const K=/[\\/]/;function Q(e){return e.split(K).pop()}var Z=Object.freeze({__proto__:null,extname:function(e){const t=Q(e),n=t.lastIndexOf(".");return-1===n?"":t.slice(n)},basename:Q,isAbsolute:function(){return!0}}),ee="undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},te=[],ne=[],re="undefined"!==typeof Uint8Array?Uint8Array:Array,ue=!1;function ae(){ue=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)te[t]=e[t],ne[e.charCodeAt(t)]=t;ne["-".charCodeAt(0)]=62,ne["_".charCodeAt(0)]=63}function oe(e,t,n){for(var r,u,a=[],o=t;o<n;o+=3)r=(e[o]<<16)+(e[o+1]<<8)+e[o+2],a.push(te[(u=r)>>18&63]+te[u>>12&63]+te[u>>6&63]+te[63&u]);return a.join("")}function se(e){var t;ue||ae();for(var n=e.length,r=n%3,u="",a=[],o=0,s=n-r;o<s;o+=16383)a.push(oe(e,o,o+16383>s?s:o+16383));return 1===r?(t=e[n-1],u+=te[t>>2],u+=te[t<<4&63],u+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],u+=te[t>>10],u+=te[t>>4&63],u+=te[t<<2&63],u+="="),a.push(u),a.join("")}function ie(e,t,n,r,u){var a,o,s=8*u-r-1,i=(1<<s)-1,l=i>>1,c=-7,p=n?u-1:0,d=n?-1:1,f=e[t+p];for(p+=d,a=f&(1<<-c)-1,f>>=-c,c+=s;c>0;a=256*a+e[t+p],p+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+p],p+=d,c-=8);if(0===a)a=1-l;else{if(a===i)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),a-=l}return(f?-1:1)*o*Math.pow(2,a-r)}function le(e,t,n,r,u,a){var o,s,i,l=8*a-u-1,c=(1<<l)-1,p=c>>1,d=23===u?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:a-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(i=Math.pow(2,-o))<1&&(o--,i*=2),(t+=o+p>=1?d/i:d*Math.pow(2,1-p))*i>=2&&(o++,i/=2),o+p>=c?(s=0,o=c):o+p>=1?(s=(t*i-1)*Math.pow(2,u),o+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,u),o=0));u>=8;e[n+f]=255&s,f+=h,s/=256,u-=8);for(o=o<<u|s,l+=u;l>0;e[n+f]=255&o,f+=h,o/=256,l-=8);e[n+f-h]|=128*m}var ce={}.toString,pe=Array.isArray||function(e){return"[object Array]"==ce.call(e)};function de(){return he.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function fe(e,t){if(de()<t)throw new RangeError("Invalid typed array length");return he.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=he.prototype:(null===e&&(e=new he(t)),e.length=t),e}function he(e,t,n){if(!he.TYPED_ARRAY_SUPPORT&&!(this instanceof he))return new he(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return ge(this,e)}return me(this,e,t,n)}function me(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),he.TYPED_ARRAY_SUPPORT?(e=t).__proto__=he.prototype:e=ye(e,t),e}(e,t,n,r):"string"===typeof t?function(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!he.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|be(t,n),u=(e=fe(e,r)).write(t,n);return u!==r&&(e=e.slice(0,u)),e}(e,t,n):function(e,t){if(Ce(t)){var n=0|Ee(t.length);return 0===(e=fe(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||(r=t.length)!==r?fe(e,0):ye(e,t);if("Buffer"===t.type&&pe(t.data))return ye(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function De(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function ge(e,t){if(De(t),e=fe(e,t<0?0:0|Ee(t)),!he.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function ye(e,t){var n=t.length<0?0:0|Ee(t.length);e=fe(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function Ee(e){if(e>=de())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+de().toString(16)+" bytes");return 0|e}function Ce(e){return!(null==e||!e._isBuffer)}function be(e,t){if(Ce(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Je(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Ge(e).length;default:if(r)return Je(e).length;t=(""+t).toLowerCase(),r=!0}}function Ae(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return _e(this,t,n);case"utf8":case"utf-8":return Pe(this,t,n);case"ascii":return Ie(this,t,n);case"latin1":case"binary":return Me(this,t,n);case"base64":return Oe(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return je(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Fe(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function ve(e,t,n,r,u){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=u?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(u)return-1;n=e.length-1}else if(n<0){if(!u)return-1;n=0}if("string"===typeof t&&(t=he.from(t,r)),Ce(t))return 0===t.length?-1:xe(e,t,n,r,u);if("number"===typeof t)return t&=255,he.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?u?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):xe(e,[t],n,r,u);throw new TypeError("val must be string, number or Buffer")}function xe(e,t,n,r,u){var a,o=1,s=e.length,i=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,i/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(u){var c=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===i)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(n+i>s&&(n=s-i),a=n;a>=0;a--){for(var p=!0,d=0;d<i;d++)if(l(e,a+d)!==l(t,d)){p=!1;break}if(p)return a}return-1}function Se(e,t,n,r){n=Number(n)||0;var u=e.length-n;r?(r=Number(r))>u&&(r=u):r=u;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function we(e,t,n,r){return He(Je(t,e.length-n),e,n,r)}function Be(e,t,n,r){return He(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Te(e,t,n,r){return Be(e,t,n,r)}function ke(e,t,n,r){return He(Ge(t),e,n,r)}function Ne(e,t,n,r){return He(function(e,t){for(var n,r,u,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,u=n%256,a.push(u),a.push(r);return a}(t,e.length-n),e,n,r)}function Oe(e,t,n){return 0===t&&n===e.length?se(e):se(e.slice(t,n))}function Pe(e,t,n){n=Math.min(e.length,n);for(var r=[],u=t;u<n;){var a,o,s,i,l=e[u],c=null,p=l>239?4:l>223?3:l>191?2:1;if(u+p<=n)switch(p){case 1:l<128&&(c=l);break;case 2:128===(192&(a=e[u+1]))&&(i=(31&l)<<6|63&a)>127&&(c=i);break;case 3:a=e[u+1],o=e[u+2],128===(192&a)&&128===(192&o)&&(i=(15&l)<<12|(63&a)<<6|63&o)>2047&&(i<55296||i>57343)&&(c=i);break;case 4:a=e[u+1],o=e[u+2],s=e[u+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(i=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&i<1114112&&(c=i)}null===c?(c=65533,p=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),u+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function Ie(e,t,n){var r="";n=Math.min(e.length,n);for(var u=t;u<n;++u)r+=String.fromCharCode(127&e[u]);return r}function Me(e,t,n){var r="";n=Math.min(e.length,n);for(var u=t;u<n;++u)r+=String.fromCharCode(e[u]);return r}function _e(e,t,n){var r,u=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>u)&&(n=u);for(var a="",o=t;o<n;++o)a+=(r=e[o])<16?"0"+r.toString(16):r.toString(16);return a}function je(e,t,n){for(var r=e.slice(t,n),u="",a=0;a<r.length;a+=2)u+=String.fromCharCode(r[a]+256*r[a+1]);return u}function Le(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Re(e,t,n,r,u,a){if(!Ce(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>u||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function qe(e,t,n,r){t<0&&(t=65535+t+1);for(var u=0,a=Math.min(e.length-n,2);u<a;++u)e[n+u]=(t&255<<8*(r?u:1-u))>>>8*(r?u:1-u)}function Ve(e,t,n,r){t<0&&(t=4294967295+t+1);for(var u=0,a=Math.min(e.length-n,4);u<a;++u)e[n+u]=t>>>8*(r?u:3-u)&255}function We(e,t,n,r,u,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ue(e,t,n,r,u){return u||We(e,0,n,4),le(e,t,n,r,23,4),n+4}function ze(e,t,n,r,u){return u||We(e,0,n,8),le(e,t,n,r,52,8),n+8}he.TYPED_ARRAY_SUPPORT=void 0===ee.TYPED_ARRAY_SUPPORT||ee.TYPED_ARRAY_SUPPORT,he.poolSize=8192,he._augment=function(e){return e.__proto__=he.prototype,e},he.from=function(e,t,n){return me(null,e,t,n)},he.TYPED_ARRAY_SUPPORT&&(he.prototype.__proto__=Uint8Array.prototype,he.__proto__=Uint8Array),he.alloc=function(e,t,n){return function(e,t,n,r){return De(t),t<=0?fe(e,t):void 0!==n?"string"===typeof r?fe(e,t).fill(n,r):fe(e,t).fill(n):fe(e,t)}(null,e,t,n)},he.allocUnsafe=function(e){return ge(null,e)},he.allocUnsafeSlow=function(e){return ge(null,e)},he.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Xe(e)||function(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&Xe(e.slice(0,0))}(e))},he.compare=function(e,t){if(!Ce(e)||!Ce(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,u=0,a=Math.min(n,r);u<a;++u)if(e[u]!==t[u]){n=e[u],r=t[u];break}return n<r?-1:r<n?1:0},he.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},he.concat=function(e,t){if(!pe(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return he.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=he.allocUnsafe(t),u=0;for(n=0;n<e.length;++n){var a=e[n];if(!Ce(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,u),u+=a.length}return r},he.byteLength=be,he.prototype._isBuffer=!0,he.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Fe(this,t,t+1);return this},he.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Fe(this,t,t+3),Fe(this,t+1,t+2);return this},he.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Fe(this,t,t+7),Fe(this,t+1,t+6),Fe(this,t+2,t+5),Fe(this,t+3,t+4);return this},he.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Pe(this,0,e):Ae.apply(this,arguments)},he.prototype.equals=function(e){if(!Ce(e))throw new TypeError("Argument must be a Buffer");return this===e||0===he.compare(this,e)},he.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},he.prototype.compare=function(e,t,n,r,u){if(!Ce(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===u&&(u=this.length),t<0||n>e.length||r<0||u>this.length)throw new RangeError("out of range index");if(r>=u&&t>=n)return 0;if(r>=u)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(u>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),i=this.slice(r,u),l=e.slice(t,n),c=0;c<s;++c)if(i[c]!==l[c]){a=i[c],o=l[c];break}return a<o?-1:o<a?1:0},he.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},he.prototype.indexOf=function(e,t,n){return ve(this,e,t,n,!0)},he.prototype.lastIndexOf=function(e,t,n){return ve(this,e,t,n,!1)},he.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var u=this.length-t;if((void 0===n||n>u)&&(n=u),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return Se(this,e,t,n);case"utf8":case"utf-8":return we(this,e,t,n);case"ascii":return Be(this,e,t,n);case"latin1":case"binary":return Te(this,e,t,n);case"base64":return ke(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ne(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},he.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},he.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),he.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=he.prototype;else{var u=t-e;n=new he(u,void 0);for(var a=0;a<u;++a)n[a]=this[a+e]}return n},he.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||Le(e,t,this.length);for(var r=this[e],u=1,a=0;++a<t&&(u*=256);)r+=this[e+a]*u;return r},he.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||Le(e,t,this.length);for(var r=this[e+--t],u=1;t>0&&(u*=256);)r+=this[e+--t]*u;return r},he.prototype.readUInt8=function(e,t){return t||Le(e,1,this.length),this[e]},he.prototype.readUInt16LE=function(e,t){return t||Le(e,2,this.length),this[e]|this[e+1]<<8},he.prototype.readUInt16BE=function(e,t){return t||Le(e,2,this.length),this[e]<<8|this[e+1]},he.prototype.readUInt32LE=function(e,t){return t||Le(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},he.prototype.readUInt32BE=function(e,t){return t||Le(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},he.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Le(e,t,this.length);for(var r=this[e],u=1,a=0;++a<t&&(u*=256);)r+=this[e+a]*u;return r>=(u*=128)&&(r-=Math.pow(2,8*t)),r},he.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Le(e,t,this.length);for(var r=t,u=1,a=this[e+--r];r>0&&(u*=256);)a+=this[e+--r]*u;return a>=(u*=128)&&(a-=Math.pow(2,8*t)),a},he.prototype.readInt8=function(e,t){return t||Le(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},he.prototype.readInt16LE=function(e,t){t||Le(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},he.prototype.readInt16BE=function(e,t){t||Le(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},he.prototype.readInt32LE=function(e,t){return t||Le(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},he.prototype.readInt32BE=function(e,t){return t||Le(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},he.prototype.readFloatLE=function(e,t){return t||Le(e,4,this.length),ie(this,e,!0,23,4)},he.prototype.readFloatBE=function(e,t){return t||Le(e,4,this.length),ie(this,e,!1,23,4)},he.prototype.readDoubleLE=function(e,t){return t||Le(e,8,this.length),ie(this,e,!0,52,8)},he.prototype.readDoubleBE=function(e,t){return t||Le(e,8,this.length),ie(this,e,!1,52,8)},he.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Re(this,e,t,n,Math.pow(2,8*n)-1,0);var u=1,a=0;for(this[t]=255&e;++a<n&&(u*=256);)this[t+a]=e/u&255;return t+n},he.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Re(this,e,t,n,Math.pow(2,8*n)-1,0);var u=n-1,a=1;for(this[t+u]=255&e;--u>=0&&(a*=256);)this[t+u]=e/a&255;return t+n},he.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Re(this,e,t,1,255,0),he.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},he.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Re(this,e,t,2,65535,0),he.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):qe(this,e,t,!0),t+2},he.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Re(this,e,t,2,65535,0),he.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):qe(this,e,t,!1),t+2},he.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Re(this,e,t,4,4294967295,0),he.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ve(this,e,t,!0),t+4},he.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Re(this,e,t,4,4294967295,0),he.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ve(this,e,t,!1),t+4},he.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var u=Math.pow(2,8*n-1);Re(this,e,t,n,u-1,-u)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},he.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var u=Math.pow(2,8*n-1);Re(this,e,t,n,u-1,-u)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},he.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Re(this,e,t,1,127,-128),he.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},he.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Re(this,e,t,2,32767,-32768),he.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):qe(this,e,t,!0),t+2},he.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Re(this,e,t,2,32767,-32768),he.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):qe(this,e,t,!1),t+2},he.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Re(this,e,t,4,2147483647,-2147483648),he.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ve(this,e,t,!0),t+4},he.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Re(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),he.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ve(this,e,t,!1),t+4},he.prototype.writeFloatLE=function(e,t,n){return Ue(this,e,t,!0,n)},he.prototype.writeFloatBE=function(e,t,n){return Ue(this,e,t,!1,n)},he.prototype.writeDoubleLE=function(e,t,n){return ze(this,e,t,!0,n)},he.prototype.writeDoubleBE=function(e,t,n){return ze(this,e,t,!1,n)},he.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var u,a=r-n;if(this===e&&n<t&&t<r)for(u=a-1;u>=0;--u)e[u+t]=this[u+n];else if(a<1e3||!he.TYPED_ARRAY_SUPPORT)for(u=0;u<a;++u)e[u+t]=this[u+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},he.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var u=e.charCodeAt(0);u<256&&(e=u)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!he.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=Ce(e)?e:Je(new he(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var $e=/[^+\/0-9A-Za-z-_]/g;function Je(e,t){var n;t=t||1/0;for(var r=e.length,u=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!u){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}u=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),u=n;continue}n=65536+(u-55296<<10|n-56320)}else u&&(t-=3)>-1&&a.push(239,191,189);if(u=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function Ge(e){return function(e){var t,n,r,u,a,o;ue||ae();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===e[s-2]?2:"="===e[s-1]?1:0,o=new re(3*s/4-a),r=a>0?s-4:s;var i=0;for(t=0,n=0;t<r;t+=4,n+=3)u=ne[e.charCodeAt(t)]<<18|ne[e.charCodeAt(t+1)]<<12|ne[e.charCodeAt(t+2)]<<6|ne[e.charCodeAt(t+3)],o[i++]=u>>16&255,o[i++]=u>>8&255,o[i++]=255&u;return 2===a?(u=ne[e.charCodeAt(t)]<<2|ne[e.charCodeAt(t+1)]>>4,o[i++]=255&u):1===a&&(u=ne[e.charCodeAt(t)]<<10|ne[e.charCodeAt(t+1)]<<4|ne[e.charCodeAt(t+2)]>>2,o[i++]=u>>8&255,o[i++]=255&u),o}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace($e,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function He(e,t,n,r){for(var u=0;u<r&&!(u+n>=t.length||u>=e.length);++u)t[u+n]=e[u];return u}function Xe(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Ye="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{};function Ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qe(e,t){return e(t={exports:{}},t.exports),t.exports}function Ze(e){return e&&e.default||e}var et=Ze(Y),tt=class{constructor(e,t){(t=t||{}).readChunk||(t.readChunk=1024),t.newLineCharacter?t.newLineCharacter=t.newLineCharacter.charCodeAt(0):t.newLineCharacter=10,this.fd="number"===typeof e?e:et.openSync(e,"r"),this.options=t,this.newLineCharacter=t.newLineCharacter,this.reset()}_searchInBuffer(e,t){let n=-1;for(let r=0;r<=e.length;r++)if(e[r]===t){n=r;break}return n}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){et.closeSync(this.fd),this.fd=null}_extractLines(e){let t;const n=[];let r=0,u=0;for(;;){let a=e[r++];if(a===this.newLineCharacter)t=e.slice(u,r),n.push(t),u=r;else if(!a)break}let a=e.slice(u,r);return a.length&&n.push(a),n}_readChunk(e){let t,n=0;const r=[];do{const e=new he(this.options.readChunk);t=et.readSync(this.fd,e,0,this.options.readChunk,this.fdPosition),n+=t,this.fdPosition=this.fdPosition+t,r.push(e)}while(t&&-1===this._searchInBuffer(r[r.length-1],this.options.newLineCharacter));let u=he.concat(r);return t<this.options.readChunk&&(this.eofReached=!0,u=u.slice(0,n)),n&&(this.linesCache=this._extractLines(u),e&&(this.linesCache[0]=he.concat([e,this.linesCache[0]]))),n}next(){if(!this.fd)return!1;let e,t=!1;return this.eofReached&&0===this.linesCache.length||(this.linesCache.length||(e=this._readChunk()),this.linesCache.length&&(t=this.linesCache.shift(),10!==t[t.length-1]&&(e=this._readChunk(t),e&&(t=this.linesCache.shift()))),this.eofReached&&0===this.linesCache.length&&this.close(),t&&t[t.length-1]===this.newLineCharacter&&(t=t.slice(0,t.length-1))),t}},nt=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var u=e[t];r[u[0]]=u[1]}return r};class rt extends Error{}class ut extends Error{}class at extends Error{}var ot={ConfigError:rt,DebugError:ut,UndefinedParserError:at};function st(e,t){if(null==e)return{};var n,r,u={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(u[n]=e[n]);return u}function it(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function lt(){throw new Error("setTimeout has not been defined")}function ct(){throw new Error("clearTimeout has not been defined")}var pt=lt,dt=ct;function ft(e){if(pt===setTimeout)return setTimeout(e,0);if((pt===lt||!pt)&&setTimeout)return pt=setTimeout,setTimeout(e,0);try{return pt(e,0)}catch(t){try{return pt.call(null,e,0)}catch(t){return pt.call(this,e,0)}}}"function"===typeof ee.setTimeout&&(pt=setTimeout),"function"===typeof ee.clearTimeout&&(dt=clearTimeout);var ht,mt=[],Dt=!1,gt=-1;function yt(){Dt&&ht&&(Dt=!1,ht.length?mt=ht.concat(mt):gt=-1,mt.length&&Et())}function Et(){if(!Dt){var e=ft(yt);Dt=!0;for(var t=mt.length;t;){for(ht=mt,mt=[];++gt<t;)ht&&ht[gt].run();gt=-1,t=mt.length}ht=null,Dt=!1,function(e){if(dt===clearTimeout)return clearTimeout(e);if((dt===ct||!dt)&&clearTimeout)return dt=clearTimeout,clearTimeout(e);try{dt(e)}catch(t){try{return dt.call(null,e)}catch(t){return dt.call(this,e)}}}(e)}}function Ct(e,t){this.fun=e,this.array=t}function bt(){}Ct.prototype.run=function(){this.fun.apply(null,this.array)};var At=bt,Ft=bt,vt=bt,xt=bt,St=bt,wt=bt,Bt=bt,Tt=ee.performance||{},kt=Tt.now||Tt.mozNow||Tt.msNow||Tt.oNow||Tt.webkitNow||function(){return(new Date).getTime()},Nt=new Date,Ot={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];mt.push(new Ct(e,t)),1!==mt.length||Dt||ft(Et)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:At,addListener:Ft,once:vt,off:xt,removeListener:St,removeAllListeners:wt,emit:Bt,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*kt.call(Tt),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Nt)/1e3}},Pt="object"===typeof Ot&&Ot.env&&Ot.env.NODE_DEBUG&&/\bsemver\b/i.test(Ot.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},It={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},Mt=Qe((function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=It,r=(t=e.exports={}).re=[],u=t.src=[],a=t.t={};let o=0;const s=(e,t,n)=>{const s=o++;Pt(s,t),a[e]=s,u[s]=t,r[s]=new RegExp(t,n?"g":void 0)};s("NUMERICIDENTIFIER","0|[1-9]\\d*"),s("NUMERICIDENTIFIERLOOSE","[0-9]+"),s("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),s("MAINVERSION","(".concat(u[a.NUMERICIDENTIFIER],")\\.")+"(".concat(u[a.NUMERICIDENTIFIER],")\\.")+"(".concat(u[a.NUMERICIDENTIFIER],")")),s("MAINVERSIONLOOSE","(".concat(u[a.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(u[a.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(u[a.NUMERICIDENTIFIERLOOSE],")")),s("PRERELEASEIDENTIFIER","(?:".concat(u[a.NUMERICIDENTIFIER],"|").concat(u[a.NONNUMERICIDENTIFIER],")")),s("PRERELEASEIDENTIFIERLOOSE","(?:".concat(u[a.NUMERICIDENTIFIERLOOSE],"|").concat(u[a.NONNUMERICIDENTIFIER],")")),s("PRERELEASE","(?:-(".concat(u[a.PRERELEASEIDENTIFIER],"(?:\\.").concat(u[a.PRERELEASEIDENTIFIER],")*))")),s("PRERELEASELOOSE","(?:-?(".concat(u[a.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(u[a.PRERELEASEIDENTIFIERLOOSE],")*))")),s("BUILDIDENTIFIER","[0-9A-Za-z-]+"),s("BUILD","(?:\\+(".concat(u[a.BUILDIDENTIFIER],"(?:\\.").concat(u[a.BUILDIDENTIFIER],")*))")),s("FULLPLAIN","v?".concat(u[a.MAINVERSION]).concat(u[a.PRERELEASE],"?").concat(u[a.BUILD],"?")),s("FULL","^".concat(u[a.FULLPLAIN],"$")),s("LOOSEPLAIN","[v=\\s]*".concat(u[a.MAINVERSIONLOOSE]).concat(u[a.PRERELEASELOOSE],"?").concat(u[a.BUILD],"?")),s("LOOSE","^".concat(u[a.LOOSEPLAIN],"$")),s("GTLT","((?:<|>)?=?)"),s("XRANGEIDENTIFIERLOOSE","".concat(u[a.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),s("XRANGEIDENTIFIER","".concat(u[a.NUMERICIDENTIFIER],"|x|X|\\*")),s("XRANGEPLAIN","[v=\\s]*(".concat(u[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(u[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(u[a.XRANGEIDENTIFIER],")")+"(?:".concat(u[a.PRERELEASE],")?").concat(u[a.BUILD],"?")+")?)?"),s("XRANGEPLAINLOOSE","[v=\\s]*(".concat(u[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(u[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(u[a.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(u[a.PRERELEASELOOSE],")?").concat(u[a.BUILD],"?")+")?)?"),s("XRANGE","^".concat(u[a.GTLT],"\\s*").concat(u[a.XRANGEPLAIN],"$")),s("XRANGELOOSE","^".concat(u[a.GTLT],"\\s*").concat(u[a.XRANGEPLAINLOOSE],"$")),s("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:$|[^\\d])"),s("COERCERTL",u[a.COERCE],!0),s("LONETILDE","(?:~>?)"),s("TILDETRIM","(\\s*)".concat(u[a.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",s("TILDE","^".concat(u[a.LONETILDE]).concat(u[a.XRANGEPLAIN],"$")),s("TILDELOOSE","^".concat(u[a.LONETILDE]).concat(u[a.XRANGEPLAINLOOSE],"$")),s("LONECARET","(?:\\^)"),s("CARETTRIM","(\\s*)".concat(u[a.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",s("CARET","^".concat(u[a.LONECARET]).concat(u[a.XRANGEPLAIN],"$")),s("CARETLOOSE","^".concat(u[a.LONECARET]).concat(u[a.XRANGEPLAINLOOSE],"$")),s("COMPARATORLOOSE","^".concat(u[a.GTLT],"\\s*(").concat(u[a.LOOSEPLAIN],")$|^$")),s("COMPARATOR","^".concat(u[a.GTLT],"\\s*(").concat(u[a.FULLPLAIN],")$|^$")),s("COMPARATORTRIM","(\\s*)".concat(u[a.GTLT],"\\s*(").concat(u[a.LOOSEPLAIN],"|").concat(u[a.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",s("HYPHENRANGE","^\\s*(".concat(u[a.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(u[a.XRANGEPLAIN],")")+"\\s*$"),s("HYPHENRANGELOOSE","^\\s*(".concat(u[a.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(u[a.XRANGEPLAINLOOSE],")")+"\\s*$"),s("STAR","(<|>)?=?\\s*\\*")}));Mt.re,Mt.src,Mt.t,Mt.tildeTrimReplace,Mt.caretTrimReplace,Mt.comparatorTrimReplace;const _t=/^[0-9]+$/,jt=(e,t)=>{const n=_t.test(e),r=_t.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var Lt={compareIdentifiers:jt,rcompareIdentifiers:(e,t)=>jt(t,e)};const{MAX_LENGTH:Rt,MAX_SAFE_INTEGER:qt}=It,{re:Vt,t:Wt}=Mt,{compareIdentifiers:Ut}=Lt;class zt{constructor(e,t){if(t&&"object"===typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof zt){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!==typeof e)throw new TypeError("Invalid Version: ".concat(e));if(e.length>Rt)throw new TypeError("version is longer than ".concat(Rt," characters"));Pt("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?Vt[Wt.LOOSE]:Vt[Wt.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>qt||this.major<0)throw new TypeError("Invalid major version");if(this.minor>qt||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>qt||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<qt)return t}return e}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(e){if(Pt("SemVer.compare",this.version,this.options,e),!(e instanceof zt)){if("string"===typeof e&&e===this.version)return 0;e=new zt(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof zt||(e=new zt(e,this.options)),Ut(this.major,e.major)||Ut(this.minor,e.minor)||Ut(this.patch,e.patch)}comparePre(e){if(e instanceof zt||(e=new zt(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],r=e.prerelease[t];if(Pt("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return Ut(n,r)}while(++t)}compareBuild(e){e instanceof zt||(e=new zt(e,this.options));let t=0;do{const n=this.build[t],r=e.build[t];if(Pt("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return Ut(n,r)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"===typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}var $t=zt,Jt=(e,t,n)=>new $t(e,n).compare(new $t(t,n)),Gt=(e,t,n)=>Jt(e,t,n)<0,Ht=(e,t,n)=>Jt(e,t,n)>=0,Xt=Qe((function(e){e.exports=function(e){var t=void 0;t="string"===typeof e?[e]:e.raw;for(var n="",r=0;r<t.length;r++)n+=t[r].replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`"),r<(arguments.length<=1?0:arguments.length-1)&&(n+=arguments.length<=r+1?void 0:arguments[r+1]);var u=n.split("\n"),a=null;return u.forEach((function(e){var t=e.match(/^(\s+)\S+/);if(t){var n=t[1].length;a=a?Math.min(a,n):n}})),null!==a&&(n=u.map((function(e){return" "===e[0]?e.slice(a):e})).join("\n")),(n=n.trim()).replace(/\\n/g,"\n")}}));function Yt(){const e=it(["\n Require either '@prettier' or '@format' to be present in the file's first docblock comment\n in order for it to be formatted.\n "]);return Yt=function(){return e},e}function Kt(){const e=it(["\n Format code starting at a given character offset.\n The range will extend backwards to the start of the first line containing the selected statement.\n This option cannot be used with --cursor-offset.\n "]);return Kt=function(){return e},e}function Qt(){const e=it(["\n Format code ending at a given character offset (exclusive).\n The range will extend forwards to the end of the selected statement.\n This option cannot be used with --cursor-offset.\n "]);return Qt=function(){return e},e}function Zt(){const e=it(["\n Custom directory that contains prettier plugins in node_modules subdirectory.\n Overrides default behavior when plugins are searched relatively to the location of Prettier.\n Multiple values are accepted.\n "]);return Zt=function(){return e},e}function en(){const e=it(["\n Maintain existing\n (mixed values within one file are normalised by looking at what's used after the first line)\n "]);return en=function(){return e},e}function tn(){const e=it(["\n Print (to stderr) where a cursor at the given position would move to after formatting.\n This option cannot be used with --range-start and --range-end.\n "]);return tn=function(){return e},e}var nn={CATEGORY_CONFIG:"Config",CATEGORY_EDITOR:"Editor",CATEGORY_FORMAT:"Format",CATEGORY_OTHER:"Other",CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:"Global",CATEGORY_SPECIAL:"Special",options:{cursorOffset:{since:"1.4.0",category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:Xt(tn()),cliCategory:"Editor"},endOfLine:{since:"1.15.0",category:"Global",type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:Xt(en())}]},filepath:{since:"1.4.0",category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{since:"0.0.10",category:"Global",type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:e=>"string"===typeof e||"function"===typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:null,description:"Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"===typeof e||"object"===typeof e,cliName:"plugin",cliCategory:"Config"},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:"Global",description:Xt(Zt()),exception:e=>"string"===typeof e||"object"===typeof e,cliName:"plugin-search-dir",cliCategory:"Config"},printWidth:{since:"0.0.0",category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{since:"1.4.0",category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:Xt(Qt()),cliCategory:"Editor"},rangeStart:{since:"1.4.0",category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:Xt(Kt()),cliCategory:"Editor"},requirePragma:{since:"1.7.0",category:"Special",type:"boolean",default:!1,description:Xt(Yt()),cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{since:"1.0.0",category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."}}},rn=Ze(i);const un={compare:Jt,lt:Gt,gte:Ht},an=rn.version,on=nn.options;var sn={getSupportInfo:function({plugins:e=[],showUnreleased:t=!1,showDeprecated:n=!1,showInternal:r=!1}={}){const u=an.split("-",1)[0],a=((e,t)=>Object.entries(e).map(([e,n])=>Object.assign({[t]:e},n)))(Object.assign({},...e.map(({options:e})=>e),on),"name").filter(e=>o(e)&&s(e)).sort((e,t)=>e.name===t.name?0:e.name<t.name?-1:1).map((function(e){return r?e:st(e,["cliName","cliCategory","cliDescription"])})).map(t=>{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(o).sort((e,t)=>un.compare(t.since,e.since))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter(e=>o(e)&&s(e)));const n=e.filter(e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name]).reduce((e,n)=>(e[n.name]=n.defaultOptions[t.name],e),{});return Object.assign({},t,{pluginDefaults:n})});return{languages:e.reduce((e,t)=>e.concat(t.languages||[]),[]).filter(o),options:a};function o(e){return t||!("since"in e)||e.since&&un.gte(u,e.since)}function s(e){return n||!("deprecated"in e)||e.deprecated&&un.lt(u,e.deprecated)}}},ln=function(e,t){return(ln=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},cn=function(){return(cn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var u in t=arguments[n])Object.prototype.hasOwnProperty.call(t,u)&&(e[u]=t[u]);return e}).apply(this,arguments)};function pn(e){var t="function"===typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function dn(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,u,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){u={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(u)throw u.error}}return o}function fn(e){return this instanceof fn?(this.v=e,this):new fn(e)}var hn=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}ln(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return cn},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var u=0;for(r=Object.getOwnPropertySymbols(e);u<r.length;u++)t.indexOf(r[u])<0&&Object.prototype.propertyIsEnumerable.call(e,r[u])&&(n[r[u]]=e[r[u]])}return n},__decorate:function(e,t,n,r){var u,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(u=e[s])&&(o=(a<3?u(o):a>3?u(t,n,o):u(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(u,a){function o(e){try{i(r.next(e))}catch(t){a(t)}}function s(e){try{i(r.throw(e))}catch(t){a(t)}}function i(e){e.done?u(e.value):new n((function(t){t(e.value)})).then(o,s)}i((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,u,a,o={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=2&a[0]?r.return:a[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,a[1])).done)return u;switch(r=0,u&&(a=[2&a[0],u.value]),a[0]){case 0:case 1:u=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(u=(u=o.trys).length>0&&u[u.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!u||a[1]>u[0]&&a[1]<u[3])){o.label=a[1];break}if(6===a[0]&&o.label<u[1]){o.label=u[1],u=a;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(a);break}u[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(s){a=[6,s],r=0}finally{n=u=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},__exportStar:function(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])},__values:pn,__read:dn,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(dn(arguments[t]));return e},__spreadArrays:function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),u=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,u++)r[u]=a[o];return r},__await:fn,__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,u=n.apply(e,t||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){u[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=u[e](t)).value instanceof fn?Promise.resolve(n.value.v).then(i,l):c(a[0][2],n)}catch(r){c(a[0][3],r)}var n}function i(e){s("next",e)}function l(e){s("throw",e)}function c(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,u){t[r]=e[r]?function(t){return(n=!n)?{value:fn(e[r](t)),done:"return"===r}:u?u(t):t}:u}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=pn(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,u){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,u,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}}}),mn=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(null===e||"object"!==typeof e)return JSON.stringify(e);if(Array.isArray(e))return"[".concat(e.map(e=>t.apiDescriptor.value(e)).join(", "),"]");const n=Object.keys(e);return 0===n.length?"{}":"{ ".concat(n.map(n=>"".concat(t.apiDescriptor.key(n),": ").concat(t.apiDescriptor.value(e[n]))).join(", ")," }")},pair:({key:e,value:n})=>t.apiDescriptor.value({[e]:n})}}));Ke(mn),mn.apiDescriptor;var Dn=Ze(hn),gn=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Dn.__exportStar(mn,t)}));Ke(gn);var yn=/[|\\{}()[\]^$+*?.]/g,En=function(e){if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(yn,"\\$&")},Cn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},bn=Qe((function(e){var t={};for(var n in Cn)Cn.hasOwnProperty(n)&&(t[Cn[n]]=n);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var u in r)if(r.hasOwnProperty(u)){if(!("channels"in r[u]))throw new Error("missing channels property: "+u);if(!("labels"in r[u]))throw new Error("missing channel labels property: "+u);if(r[u].labels.length!==r[u].channels)throw new Error("channel and label counts mismatch: "+u);var a=r[u].channels,o=r[u].labels;delete r[u].channels,delete r[u].labels,Object.defineProperty(r[u],"channels",{value:a}),Object.defineProperty(r[u],"labels",{value:o})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,u=e[1]/255,a=e[2]/255,o=Math.min(r,u,a),s=Math.max(r,u,a),i=s-o;return s===o?t=0:r===s?t=(u-a)/i:u===s?t=2+(a-r)/i:a===s&&(t=4+(r-u)/i),(t=Math.min(60*t,360))<0&&(t+=360),n=(o+s)/2,[t,100*(s===o?0:n<=.5?i/(s+o):i/(2-s-o)),100*n]},r.rgb.hsv=function(e){var t,n,r,u,a,o=e[0]/255,s=e[1]/255,i=e[2]/255,l=Math.max(o,s,i),c=l-Math.min(o,s,i),p=function(e){return(l-e)/6/c+.5};return 0===c?u=a=0:(a=c/l,t=p(o),n=p(s),r=p(i),o===l?u=r-n:s===l?u=1/3+t-r:i===l&&(u=2/3+n-t),u<0?u+=1:u>1&&(u-=1)),[360*u,100*a,100*l]},r.rgb.hwb=function(e){var t=e[0],n=e[1],u=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,u))*100,100*(u=1-1/255*Math.max(t,Math.max(n,u)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,u=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-u)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-u-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,u,a,o=1/0;for(var s in Cn)if(Cn.hasOwnProperty(s)){var i=Cn[s],l=(u=e,a=i,Math.pow(u[0]-a[0],2)+Math.pow(u[1]-a[1],2)+Math.pow(u[2]-a[2],2));l<o&&(o=l,r=s)}return r},r.keyword.rgb=function(e){return Cn[e]},r.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],u=t[1],a=t[2];return u/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(u=u>.008856?Math.pow(u,1/3):7.787*u+16/116)-16,500*(n-u),200*(u-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},r.hsl.rgb=function(e){var t,n,r,u,a,o=e[0]/360,s=e[1]/100,i=e[2]/100;if(0===s)return[a=255*i,a,a];t=2*i-(n=i<.5?i*(1+s):i+s-i*s),u=[0,0,0];for(var l=0;l<3;l++)(r=o+1/3*-(l-1))<0&&r++,r>1&&r--,a=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,u[l]=255*a;return u},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,u=n,a=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,u*=a<=1?a:2-a,[t,100*(0===r?2*u/(a+u):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,u=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,u){case 0:return[r,i,o];case 1:return[s,r,o];case 2:return[o,r,i];case 3:return[o,s,r];case 4:return[i,o,r];case 5:return[r,o,s]}},r.hsv.hsl=function(e){var t,n,r,u=e[0],a=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return r=(2-a)*o,n=a*s,[u,100*(n=(n/=(t=(2-a)*s)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,u,a,o,s,i=e[0]/360,l=e[1]/100,c=e[2]/100,p=l+c;switch(p>1&&(l/=p,c/=p),r=6*i-(t=Math.floor(6*i)),0!==(1&t)&&(r=1-r),u=l+r*((n=1-c)-l),t){default:case 6:case 0:a=n,o=u,s=l;break;case 1:a=u,o=n,s=l;break;case 2:a=l,o=n,s=u;break;case 3:a=l,o=u,s=n;break;case 4:a=u,o=l,s=n;break;case 5:a=n,o=l,s=u}return[255*a,255*o,255*s]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,u=e[3]/100;return[255*(1-Math.min(1,t*(1-u)+u)),255*(1-Math.min(1,n*(1-u)+u)),255*(1-Math.min(1,r*(1-u)+u))]},r.xyz.rgb=function(e){var t,n,r,u=e[0]/100,a=e[1]/100,o=e[2]/100;return n=-.9689*u+1.8758*a+.0415*o,r=.0557*u+-.204*a+1.057*o,t=(t=3.2406*u+-1.5372*a+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,u=e[0];t=e[1]/500+(n=(u+16)/116),r=n-e[2]/200;var a=Math.pow(n,3),o=Math.pow(t,3),s=Math.pow(r,3);return n=a>.008856?a:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],u=e[2];return(t=360*Math.atan2(u,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+u*u),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],u=e[2],a=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var o=30+(Math.round(u/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===a&&(o+=60),o},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,u=e[2]/255,a=Math.max(Math.max(n,r),u),o=Math.min(Math.min(n,r),u),s=a-o;return t=s<=0?0:a===n?(r-u)/s%6:a===r?2+(u-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,u=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(u=(n-.5*r)/(1-r)),[e[0],100*r,100*u]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,u=0;return r<1&&(u=(n-r)/(1-r)),[e[0],100*r,100*u]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var u,a=[0,0,0],o=t%1*6,s=o%1,i=1-s;switch(Math.floor(o)){case 0:a[0]=1,a[1]=s,a[2]=0;break;case 1:a[0]=i,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=s;break;case 3:a[0]=0,a[1]=i,a[2]=1;break;case 4:a[0]=s,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=i}return u=(1-n)*r,[255*(n*a[0]+u),255*(n*a[1]+u),255*(n*a[2]+u)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,u=0;return r<1&&(u=(n-r)/(1-r)),[e[0],100*r,100*u]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function An(e){var t=function(){for(var e={},t=Object.keys(bn),n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var r=n.pop(),u=Object.keys(bn[r]),a=u.length,o=0;o<a;o++){var s=u[o],i=t[s];-1===i.distance&&(i.distance=t[r].distance+1,i.parent=r,n.unshift(s))}return t}function Fn(e,t){return function(n){return t(e(n))}}function vn(e,t){for(var n=[t[e].parent,e],r=bn[t[e].parent][e],u=t[e].parent;t[u].parent;)n.unshift(t[u].parent),r=Fn(bn[t[u].parent][u],r),u=t[u].parent;return r.conversion=n,r}bn.rgb,bn.hsl,bn.hsv,bn.hwb,bn.cmyk,bn.xyz,bn.lab,bn.lch,bn.hex,bn.keyword,bn.ansi16,bn.ansi256,bn.hcg,bn.apple,bn.gray;var xn={};Object.keys(bn).forEach((function(e){xn[e]={},Object.defineProperty(xn[e],"channels",{value:bn[e].channels}),Object.defineProperty(xn[e],"labels",{value:bn[e].labels});var t=function(e){for(var t=An(e),n={},r=Object.keys(t),u=r.length,a=0;a<u;a++){var o=r[a];null!==t[o].parent&&(n[o]=vn(o,t))}return n}(e);Object.keys(t).forEach((function(n){var r=t[n];xn[e][n]=function(e){var t=function(t){if(void 0===t||null===t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"===typeof n)for(var r=n.length,u=0;u<r;u++)n[u]=Math.round(n[u]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),xn[e][n].raw=function(e){var t=function(t){return void 0===t||null===t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var Sn=xn,wn=Qe((function(e){const t=(e,t)=>function(){const n=e.apply(Sn,arguments);return"\x1b[".concat(n+t,"m")},n=(e,t)=>function(){const n=e.apply(Sn,arguments);return"\x1b[".concat(38+t,";5;").concat(n,"m")},r=(e,t)=>function(){const n=e.apply(Sn,arguments);return"\x1b[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};u.color.grey=u.color.gray;for(const t of Object.keys(u)){const n=u[t];for(const t of Object.keys(n)){const r=n[t];u[t]={open:"\x1b[".concat(r[0],"m"),close:"\x1b[".concat(r[1],"m")},n[t]=u[t],e.set(r[0],r[1])}Object.defineProperty(u,t,{value:n,enumerable:!1}),Object.defineProperty(u,"codes",{value:e,enumerable:!1})}const a=e=>e,o=(e,t,n)=>[e,t,n];u.color.close="\x1b[39m",u.bgColor.close="\x1b[49m",u.color.ansi={ansi:t(a,0)},u.color.ansi256={ansi256:n(a,0)},u.color.ansi16m={rgb:r(o,0)},u.bgColor.ansi={ansi:t(a,10)},u.bgColor.ansi256={ansi256:n(a,10)},u.bgColor.ansi16m={rgb:r(o,10)};for(let s of Object.keys(Sn)){if("object"!==typeof Sn[s])continue;const e=Sn[s];"ansi16"===s&&(s="ansi"),"ansi16"in e&&(u.color.ansi[s]=t(e.ansi16,0),u.bgColor.ansi[s]=t(e.ansi16,10)),"ansi256"in e&&(u.color.ansi256[s]=n(e.ansi256,0),u.bgColor.ansi256[s]=n(e.ansi256,10)),"rgb"in e&&(u.color.ansi16m[s]=r(e.rgb,0),u.bgColor.ansi16m[s]=r(e.rgb,10))}return u}})})),Bn={EOL:"\n"},Tn=(e,t)=>{t=t||Ot.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),u=t.indexOf("--");return-1!==r&&(-1===u||r<u)};const kn=Ot.env;let Nn;function On(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===Nn)return 0;if(Tn("color=16m")||Tn("color=full")||Tn("color=truecolor"))return 3;if(Tn("color=256"))return 2;if(e&&!e.isTTY&&!0!==Nn)return 0;const t=Nn?1:0;if("win32"===Ot.platform){const e=Bn.release().split(".");return Number(Ot.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in kn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in kn)||"codeship"===kn.CI_NAME?1:t;if("TEAMCITY_VERSION"in kn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(kn.TEAMCITY_VERSION)?1:0;if("truecolor"===kn.COLORTERM)return 3;if("TERM_PROGRAM"in kn){const e=parseInt((kn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(kn.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(kn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(kn.TERM)||"COLORTERM"in kn?1:(kn.TERM,t)}(e))}Tn("no-color")||Tn("no-colors")||Tn("color=false")?Nn=!1:(Tn("color")||Tn("colors")||Tn("color=true")||Tn("color=always"))&&(Nn=!0),"FORCE_COLOR"in kn&&(Nn=0===kn.FORCE_COLOR.length||0!==parseInt(kn.FORCE_COLOR,10));var Pn={supportsColor:On,stdout:On(Ot.stdout),stderr:On(Ot.stderr)};const In=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Mn=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,_n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,jn=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Ln=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function Rn(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Ln.get(e)||e}function qn(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let u;for(const a of r)if(isNaN(a)){if(!(u=a.match(_n)))throw new Error("Invalid Chalk template style argument: ".concat(a," (in style '").concat(e,"')"));n.push(u[2].replace(jn,(e,t,n)=>t?Rn(t):n))}else n.push(Number(a));return n}function Vn(e){Mn.lastIndex=0;const t=[];let n;for(;null!==(n=Mn.exec(e));){const e=n[1];if(n[2]){const r=qn(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function Wn(e,t){const n={};for(const u of t)for(const e of u.styles)n[e[0]]=u.inverse?null:e.slice(1);let r=e;for(const u of Object.keys(n))if(Array.isArray(n[u])){if(!(u in r))throw new Error("Unknown Chalk style: ".concat(u));r=n[u].length>0?r[u].apply(r,n[u]):r[u]}return r}var Un=(e,t)=>{const n=[],r=[];let u=[];if(t.replace(In,(t,a,o,s,i,l)=>{if(a)u.push(Rn(a));else if(s){const t=u.join("");u=[],r.push(0===n.length?t:Wn(e,n)(t)),n.push({inverse:o,styles:Vn(s)})}else if(i){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(Wn(e,n)(u.join(""))),u=[],n.pop()}else u.push(l)}),r.push(u.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")},zn=Qe((function(e){const t=Pn.stdout,n="win32"===Ot.platform&&!(Ot.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],u=new Set(["gray"]),a=Object.create(null);function o(e,n){n=n||{};const r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function s(e){if(!this||!(this instanceof s)||this.template){const t={};return o(t,e),t.template=function(){const e=[].slice.call(arguments);return p.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,s.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=s,t.template}o(this,e)}n&&(wn.blue.open="\x1b[94m");for(const d of Object.keys(wn))wn[d].closeRe=new RegExp(En(wn[d].close),"g"),a[d]={get(){const e=wn[d];return l.call(this,this._styles?this._styles.concat(e):[e],this._empty,d)}};a.visible={get(){return l.call(this,this._styles||[],!0,"visible")}},wn.color.closeRe=new RegExp(En(wn.color.close),"g");for(const d of Object.keys(wn.color.ansi))u.has(d)||(a[d]={get(){const e=this.level;return function(){const t=wn.color[r[e]][d].apply(null,arguments),n={open:t,close:wn.color.close,closeRe:wn.color.closeRe};return l.call(this,this._styles?this._styles.concat(n):[n],this._empty,d)}}});wn.bgColor.closeRe=new RegExp(En(wn.bgColor.close),"g");for(const d of Object.keys(wn.bgColor.ansi))u.has(d)||(a["bg"+d[0].toUpperCase()+d.slice(1)]={get(){const e=this.level;return function(){const t=wn.bgColor[r[e]][d].apply(null,arguments),n={open:t,close:wn.bgColor.close,closeRe:wn.bgColor.closeRe};return l.call(this,this._styles?this._styles.concat(n):[n],this._empty,d)}}});const i=Object.defineProperties(()=>{},a);function l(e,t,n){const r=function e(){return c.apply(e,arguments)};r._styles=e,r._empty=t;const u=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>u.level,set(e){u.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>u.enabled,set(e){u.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=i,r}function c(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n<t;n++)r+=" "+e[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const u=wn.dim.open;n&&this.hasGrey&&(wn.dim.open="");for(const n of this._styles.slice().reverse())r=n.open+r.replace(n.closeRe,n.open)+n.close,r=r.replace(/\r?\n/g,"".concat(n.close,"$&").concat(n.open));return wn.dim.open=u,r}function p(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const n=[].slice.call(arguments,2),r=[t.raw[0]];for(let u=1;u<t.length;u++)r.push(String(n[u-1]).replace(/[{}\\]/g,"\\$&")),r.push(String(t.raw[u]));return Un(e,r.join(""))}Object.defineProperties(s.prototype,a),e.exports=s(),e.exports.supportsColor=t,e.exports.default=e.exports})),$n=(zn.supportsColor,Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.commonDeprecatedHandler=(e,t,{descriptor:n})=>{const r=["".concat(zn.default.yellow("string"===typeof e?n.key(e):n.pair(e))," is deprecated")];return t&&r.push("we now treat it as ".concat(zn.default.blue("string"===typeof t?n.key(t):n.pair(t)))),r.join("; ")+"."}})));Ke($n),$n.commonDeprecatedHandler;var Jn=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Dn.__exportStar($n,t)}));Ke(Jn);var Gn=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.commonInvalidHandler=(e,t,n)=>["Invalid ".concat(zn.default.red(n.descriptor.key(e))," value."),"Expected ".concat(zn.default.blue(n.schemas[e].expected(n)),","),"but received ".concat(zn.default.red(n.descriptor.value(t)),".")].join(" ")}));Ke(Gn),Gn.commonInvalidHandler;var Hn=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Dn.__exportStar(Gn,t)}));Ke(Hn);var Xn=[],Yn=[],Kn=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.levenUnknownHandler=(e,t,{descriptor:n,logger:r,schemas:u})=>{const a=["Ignored unknown option ".concat(zn.default.yellow(n.pair({key:e,value:t})),".")],o=Object.keys(u).sort().find(t=>function(e,t){if(e===t)return 0;var n=e;e.length>t.length&&(e=t,t=n);var r=e.length,u=t.length;if(0===r)return u;if(0===u)return r;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-u);)r--,u--;if(0===r)return u;for(var a,o,s,i,l=0;l<r&&e.charCodeAt(l)===t.charCodeAt(l);)l++;if(u-=l,0===(r-=l))return u;for(var c=0,p=0;c<r;)Yn[l+c]=e.charCodeAt(l+c),Xn[c]=++c;for(;p<u;)for(a=t.charCodeAt(l+p),s=p++,o=p,c=0;c<r;c++)i=a===Yn[l+c]?s:s+1,s=Xn[c],o=Xn[c]=s>o?i>o?o+1:i:i>s?s+1:i;return o}(e,t)<3);o&&a.push("Did you mean ".concat(zn.default.blue(n.key(o)),"?")),r.warn(a.join(" "))}}));Ke(Kn),Kn.levenUnknownHandler;var Qn=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Dn.__exportStar(Kn,t)}));Ke(Qn);var Zn=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Dn.__exportStar(Jn,t),Dn.__exportStar(Hn,t),Dn.__exportStar(Qn,t)}));Ke(Zn);var er=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function r(e,t){const r=new e(t),o=Object.create(r);for(const s of n)s in t&&(o[s]=a(t[s],r,u.prototype[s].length));return o}t.createSchema=r;class u{constructor(e){this.name=e.name}static create(e){return r(this,e)}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return e}}function a(e,t,n){return"function"===typeof e?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}t.Schema=u}));Ke(er),er.createSchema,er.Schema;var tr=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends er.Schema{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}}t.AliasSchema=n}));Ke(tr),tr.AliasSchema;var nr=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends er.Schema{expected(){return"anything"}validate(){return!0}}t.AnySchema=n}));Ke(nr),nr.AnySchema;var rr=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends er.Schema{constructor(e){var{valueSchema:t,name:n=t.name}=e,r=Dn.__rest(e,["valueSchema","name"]);super(Object.assign({},r,{name:n})),this._valueSchema=t}expected(e){return"an array of ".concat(this._valueSchema.expected(e))}validate(e,t){if(!Array.isArray(e))return!1;const n=[];for(const r of e){const e=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);!0!==e&&n.push(e.value)}return 0===n.length||{value:n}}deprecated(e,t){const n=[];for(const r of e){const e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);!1!==e&&n.push(...e.map(({value:e})=>({value:[e]})))}return n}forward(e,t){const n=[];for(const u of e){const e=t.normalizeForwardResult(this._valueSchema.forward(u,t),u);n.push(...e.map(r))}return n}redirect(e,t){const n=[],u=[];for(const a of e){const e=t.normalizeRedirectResult(this._valueSchema.redirect(a,t),a);"remain"in e&&n.push(e.remain),u.push(...e.redirect.map(r))}return 0===n.length?{redirect:u}:{redirect:u,remain:n}}overlap(e,t){return e.concat(t)}}function r({from:e,to:t}){return{from:[e],to:t}}t.ArraySchema=n}));Ke(rr),rr.ArraySchema;var ur=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends er.Schema{expected(){return"true or false"}validate(e){return"boolean"===typeof e}}t.BooleanSchema=n}));Ke(ur),ur.BooleanSchema;var ar=Qe((function(e,t){function n(e,t){return"string"===typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function r(e,t){return void 0===e?[]:Array.isArray(e)?e.map(e=>n(e,t)):[n(e,t)]}Object.defineProperty(t,"__esModule",{value:!0}),t.recordFromArray=function(e,t){const n=Object.create(null);for(const r of e){const e=r[t];if(n[e])throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(e)));n[e]=r}return n},t.mapFromArray=function(e,t){const n=new Map;for(const r of e){const e=r[t];if(n.has(e))throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(e)));n.set(e,r)}return n},t.createAutoChecklist=function(){const e=Object.create(null);return t=>{const n=JSON.stringify(t);return!!e[n]||(e[n]=!0,!1)}},t.partition=function(e,t){const n=[],r=[];for(const u of e)t(u)?n.push(u):r.push(u);return[n,r]},t.isInt=function(e){return e===Math.floor(e)},t.comparePrimitive=function(e,t){if(e===t)return 0;const n=typeof e,r=typeof t,u=["undefined","object","boolean","number","string"];return n!==r?u.indexOf(n)-u.indexOf(r):"string"!==n?Number(e)-Number(t):e.localeCompare(t)},t.normalizeDefaultResult=function(e){return void 0===e?{}:e},t.normalizeValidateResult=function(e,t){return!0===e||(!1===e?{value:t}:e)},t.normalizeDeprecatedResult=function(e,t,n=!1){return!1!==e&&(!0===e?!!n||[{value:t}]:"value"in e?[e]:0!==e.length&&e)},t.normalizeTransferResult=n,t.normalizeForwardResult=r,t.normalizeRedirectResult=function(e,t){const n=r("object"===typeof e&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"===typeof e&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}}));Ke(ar),ar.recordFromArray,ar.mapFromArray,ar.createAutoChecklist,ar.partition,ar.isInt,ar.comparePrimitive,ar.normalizeDefaultResult,ar.normalizeValidateResult,ar.normalizeDeprecatedResult,ar.normalizeTransferResult,ar.normalizeForwardResult,ar.normalizeRedirectResult;var or=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends er.Schema{constructor(e){super(e),this._choices=ar.mapFromArray(e.choices.map(e=>e&&"object"===typeof e?e:{value:e}),"value")}expected({descriptor:e}){const t=Array.from(this._choices.keys()).map(e=>this._choices.get(e)).filter(e=>!e.deprecated).map(e=>e.value).sort(ar.comparePrimitive).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return n.concat(r.join(" or ")).join(", ")}validate(e){return this._choices.has(e)}deprecated(e){const t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}forward(e){const t=this._choices.get(e);return t?t.forward:void 0}redirect(e){const t=this._choices.get(e);return t?t.redirect:void 0}}t.ChoiceSchema=n}));Ke(or),or.ChoiceSchema;var sr=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends er.Schema{expected(){return"a number"}validate(e,t){return"number"===typeof e}}t.NumberSchema=n}));Ke(sr),sr.NumberSchema;var ir=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends sr.NumberSchema{expected(){return"an integer"}validate(e,t){return!0===t.normalizeValidateResult(super.validate(e,t),e)&&ar.isInt(e)}}t.IntegerSchema=n}));Ke(ir),ir.IntegerSchema;var lr=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends er.Schema{expected(){return"a string"}validate(e){return"string"===typeof e}}t.StringSchema=n}));Ke(lr),lr.StringSchema;var cr=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Dn.__exportStar(tr,t),Dn.__exportStar(nr,t),Dn.__exportStar(rr,t),Dn.__exportStar(ur,t),Dn.__exportStar(or,t),Dn.__exportStar(ir,t),Dn.__exportStar(sr,t),Dn.__exportStar(lr,t)}));Ke(cr);var pr=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDescriptor=mn.apiDescriptor,t.defaultUnknownHandler=Kn.levenUnknownHandler,t.defaultInvalidHandler=Hn.commonInvalidHandler,t.defaultDeprecatedHandler=$n.commonDeprecatedHandler}));Ke(pr),pr.defaultDescriptor,pr.defaultUnknownHandler,pr.defaultInvalidHandler,pr.defaultDeprecatedHandler;var dr=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=(e,t,r)=>new n(t,r).normalize(e);class n{constructor(e,t){const{logger:n=console,descriptor:r=pr.defaultDescriptor,unknown:u=pr.defaultUnknownHandler,invalid:a=pr.defaultInvalidHandler,deprecated:o=pr.defaultDeprecatedHandler}=t||{};this._utils={descriptor:r,logger:n||{warn:()=>{}},schemas:ar.recordFromArray(e,"name"),normalizeDefaultResult:ar.normalizeDefaultResult,normalizeDeprecatedResult:ar.normalizeDeprecatedResult,normalizeForwardResult:ar.normalizeForwardResult,normalizeRedirectResult:ar.normalizeRedirectResult,normalizeValidateResult:ar.normalizeValidateResult},this._unknownHandler=u,this._invalidHandler=a,this._deprecatedHandler=o,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=ar.createAutoChecklist()}normalize(e){const t={},n=[e],r=()=>{for(;0!==n.length;){const e=n.shift(),r=this._applyNormalization(e,t);n.push(...r)}};r();for(const u of Object.keys(this._utils.schemas)){const e=this._utils.schemas[u];if(!(u in t)){const t=ar.normalizeDefaultResult(e.default(this._utils));"value"in t&&n.push({[u]:t.value})}}r();for(const u of Object.keys(this._utils.schemas)){const e=this._utils.schemas[u];u in t&&(t[u]=e.postprocess(t[u],this._utils))}return t}_applyNormalization(e,t){const n=[],[r,u]=ar.partition(Object.keys(e),e=>e in this._utils.schemas);for(const a of r){const r=this._utils.schemas[a],u=r.preprocess(e[a],this._utils),o=ar.normalizeValidateResult(r.validate(u,this._utils),u);if(!0!==o){const{value:e}=o,t=this._invalidHandler(a,e,this._utils);throw"string"===typeof t?new Error(t):t}const s=({from:e,to:t})=>{n.push("string"===typeof t?{[t]:e}:{[t.key]:t.value})},i=({value:e,redirectTo:t})=>{const n=ar.normalizeDeprecatedResult(r.deprecated(e,this._utils),u,!0);if(!1!==n)if(!0===n)this._hasDeprecationWarned(a)||this._utils.logger.warn(this._deprecatedHandler(a,t,this._utils));else for(const{value:r}of n){const e={key:a,value:r};if(!this._hasDeprecationWarned(e)){const n="string"===typeof t?{key:t,value:r}:t;this._utils.logger.warn(this._deprecatedHandler(e,n,this._utils))}}};ar.normalizeForwardResult(r.forward(u,this._utils),u).forEach(s);const l=ar.normalizeRedirectResult(r.redirect(u,this._utils),u);if(l.redirect.forEach(s),"remain"in l){const e=l.remain;t[a]=a in t?r.overlap(t[a],e,this._utils):e,i({value:e})}for(const{from:e,to:t}of l.redirect)i({value:e,redirectTo:t})}for(const a of u){const r=e[a],u=this._unknownHandler(a,r,this._utils);if(u)for(const e of Object.keys(u)){const r={[e]:u[e]};e in this._utils.schemas?n.push(r):Object.assign(t,r)}}return n}}t.Normalizer=n}));Ke(dr),dr.normalize,dr.Normalizer;var fr=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Dn.__exportStar(gn,t),Dn.__exportStar(Zn,t),Dn.__exportStar(cr,t),Dn.__exportStar(dr,t),Dn.__exportStar(er,t)}));Ke(fr);const hr=[],mr=[],Dr=(e,t)=>{if(e===t)return 0;const n=e;e.length>t.length&&(e=t,t=n);let r=e.length,u=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-u);)r--,u--;let a,o,s,i,l=0;for(;l<r&&e.charCodeAt(l)===t.charCodeAt(l);)l++;if(r-=l,u-=l,0===r)return u;let c=0,p=0;for(;c<r;)mr[c]=e.charCodeAt(l+c),hr[c]=++c;for(;p<u;)for(a=t.charCodeAt(l+p),s=p++,o=p,c=0;c<r;c++)i=a===mr[c]?s:s+1,s=hr[c],o=hr[c]=s>o?i>o?o+1:i:i>s?s+1:i;return o};var gr=Dr,yr=Dr;gr.default=yr;var Er={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const Cr={};for(const t of Object.keys(Er))Cr[Er[t]]=t;const br={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Ar=br;for(const t of Object.keys(br)){if(!("channels"in br[t]))throw new Error("missing channels property: "+t);if(!("labels"in br[t]))throw new Error("missing channel labels property: "+t);if(br[t].labels.length!==br[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:n}=br[t];delete br[t].channels,delete br[t].labels,Object.defineProperty(br[t],"channels",{value:e}),Object.defineProperty(br[t],"labels",{value:n})}function Fr(e){const t=function(){const e={},t=Object.keys(Ar);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),r=Object.keys(Ar[e]);for(let u=r.length,a=0;a<u;a++){const u=r[a],o=t[u];-1===o.distance&&(o.distance=t[e].distance+1,o.parent=e,n.unshift(u))}}return t}function vr(e,t){return function(n){return t(e(n))}}function xr(e,t){const n=[t[e].parent,e];let r=Ar[t[e].parent][e],u=t[e].parent;for(;t[u].parent;)n.unshift(t[u].parent),r=vr(Ar[t[u].parent][u],r),u=t[u].parent;return r.conversion=n,r}br.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,u=Math.min(t,n,r),a=Math.max(t,n,r),o=a-u;let s,i;a===u?s=0:t===a?s=(n-r)/o:n===a?s=2+(r-t)/o:r===a&&(s=4+(t-n)/o),s=Math.min(60*s,360),s<0&&(s+=360);const l=(u+a)/2;return i=a===u?0:l<=.5?o/(a+u):o/(2-a-u),[s,100*i,100*l]},br.rgb.hsv=function(e){let t,n,r,u,a;const o=e[0]/255,s=e[1]/255,i=e[2]/255,l=Math.max(o,s,i),c=l-Math.min(o,s,i),p=function(e){return(l-e)/6/c+.5};return 0===c?(u=0,a=0):(a=c/l,t=p(o),n=p(s),r=p(i),o===l?u=r-n:s===l?u=1/3+t-r:i===l&&(u=2/3+n-t),u<0?u+=1:u>1&&(u-=1)),[360*u,100*a,100*l]},br.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const u=br.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[u,100*a,100*r]},br.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,u=Math.min(1-t,1-n,1-r);return[100*((1-t-u)/(1-u)||0),100*((1-n-u)/(1-u)||0),100*((1-r-u)/(1-u)||0),100*u]},br.rgb.keyword=function(e){const t=Cr[e];if(t)return t;let n,r=1/0;for(const o of Object.keys(Er)){const t=(a=Er[o],((u=e)[0]-a[0])**2+(u[1]-a[1])**2+(u[2]-a[2])**2);t<r&&(r=t,n=o)}var u,a;return n},br.keyword.rgb=function(e){return Er[e]},br.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},br.rgb.lab=function(e){const t=br.rgb.xyz(e);let n=t[0],r=t[1],u=t[2];return n/=95.047,r/=100,u/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,u=u>.008856?u**(1/3):7.787*u+16/116,[116*r-16,500*(n-r),200*(r-u)]},br.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let u,a,o;if(0===n)return o=255*r,[o,o,o];u=r<.5?r*(1+n):r+n-r*n;const s=2*r-u,i=[0,0,0];for(let l=0;l<3;l++)a=t+1/3*-(l-1),a<0&&a++,a>1&&a--,o=6*a<1?s+6*(u-s)*a:2*a<1?u:3*a<2?s+(u-s)*(2/3-a)*6:s,i[l]=255*o;return i},br.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,u=n;const a=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,u*=a<=1?a:2-a,[t,100*(0===r?2*u/(a+u):2*n/(r+n)),(r+n)/2*100]},br.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const u=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,u){case 0:return[r,i,o];case 1:return[s,r,o];case 2:return[o,r,i];case 3:return[o,s,r];case 4:return[i,o,r];case 5:return[r,o,s]}},br.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,u=Math.max(r,.01);let a,o;o=(2-n)*r;const s=(2-n)*u;return a=n*u,a/=s<=1?s:2-s,a=a||0,o/=2,[t,100*a,100*o]},br.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const u=n+r;let a;u>1&&(n/=u,r/=u);const o=Math.floor(6*t),s=1-r;a=6*t-o,0!==(1&o)&&(a=1-a);const i=n+a*(s-n);let l,c,p;switch(o){default:case 6:case 0:l=s,c=i,p=n;break;case 1:l=i,c=s,p=n;break;case 2:l=n,c=s,p=i;break;case 3:l=n,c=i,p=s;break;case 4:l=i,c=n,p=s;break;case 5:l=s,c=n,p=i}return[255*l,255*c,255*p]},br.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,u=e[3]/100;return[255*(1-Math.min(1,t*(1-u)+u)),255*(1-Math.min(1,n*(1-u)+u)),255*(1-Math.min(1,r*(1-u)+u))]},br.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let u,a,o;return u=3.2406*t+-1.5372*n+-.4986*r,a=-.9689*t+1.8758*n+.0415*r,o=.0557*t+-.204*n+1.057*r,u=u>.0031308?1.055*u**(1/2.4)-.055:12.92*u,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,u=Math.min(Math.max(0,u),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[255*u,255*a,255*o]},br.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},br.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const u=n**3,a=t**3,o=r**3;return n=u>.008856?u:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=o>.008856?o:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},br.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let u;return u=360*Math.atan2(r,n)/2/Math.PI,u<0&&(u+=360),[t,Math.sqrt(n*n+r*r),u]},br.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},br.rgb.ansi16=function(e,t=null){const[n,r,u]=e;let a=null===t?br.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),0===a)return 30;let o=30+(Math.round(u/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===a&&(o+=60),o},br.hsv.ansi16=function(e){return br.rgb.ansi16(br.hsv.rgb(e),e[2])},br.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},br.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},br.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},br.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},br.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map(e=>e+e).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},br.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,u=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),o=u-a;let s,i;return s=o<1?a/(1-o):0,i=o<=0?0:u===t?(n-r)/o%6:u===n?2+(r-t)/o:4+(t-n)/o,i/=6,i%=1,[360*i,100*o,100*s]},br.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let u=0;return r<1&&(u=(n-.5*r)/(1-r)),[e[0],100*r,100*u]},br.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let u=0;return r<1&&(u=(n-r)/(1-r)),[e[0],100*r,100*u]},br.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const u=[0,0,0],a=t%1*6,o=a%1,s=1-o;let i=0;switch(Math.floor(a)){case 0:u[0]=1,u[1]=o,u[2]=0;break;case 1:u[0]=s,u[1]=1,u[2]=0;break;case 2:u[0]=0,u[1]=1,u[2]=o;break;case 3:u[0]=0,u[1]=s,u[2]=1;break;case 4:u[0]=o,u[1]=0,u[2]=1;break;default:u[0]=1,u[1]=0,u[2]=s}return i=(1-n)*r,[255*(n*u[0]+i),255*(n*u[1]+i),255*(n*u[2]+i)]},br.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},br.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},br.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},br.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let u=0;return r<1&&(u=(n-r)/(1-r)),[e[0],100*r,100*u]},br.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},br.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},br.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},br.gray.hsl=function(e){return[0,0,e[0]]},br.gray.hsv=br.gray.hsl,br.gray.hwb=function(e){return[0,100,e[0]]},br.gray.cmyk=function(e){return[0,0,0,e[0]]},br.gray.lab=function(e){return[e[0],0,0]},br.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},br.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Sr={};Object.keys(Ar).forEach(e=>{Sr[e]={},Object.defineProperty(Sr[e],"channels",{value:Ar[e].channels}),Object.defineProperty(Sr[e],"labels",{value:Ar[e].labels});const t=function(e){const t=Fr(e),n={},r=Object.keys(t);for(let u=r.length,a=0;a<u;a++){const e=r[a];null!==t[e].parent&&(n[e]=xr(e,t))}return n}(e);Object.keys(t).forEach(n=>{const r=t[n];Sr[e][n]=function(e){const t=function(...t){const n=t[0];if(void 0===n||null===n)return n;n.length>1&&(t=n);const r=e(t);if("object"===typeof r)for(let e=r.length,u=0;u<e;u++)r[u]=Math.round(r[u]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(r),Sr[e][n].raw=function(e){const t=function(...t){const n=t[0];return void 0===n||null===n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})});var wr=Sr,Br=Qe((function(e){const t=(e,t)=>(...n)=>{const r=e(...n);return"\x1b[".concat(r+t,"m")},n=(e,t)=>(...n)=>{const r=e(...n);return"\x1b[".concat(38+t,";5;").concat(r,"m")},r=(e,t)=>(...n)=>{const r=e(...n);return"\x1b[".concat(38+t,";2;").concat(r[0],";").concat(r[1],";").concat(r[2],"m")},u=e=>e,a=(e,t,n)=>[e,t,n],o=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let s;const i=(e,t,n,r)=>{void 0===s&&(s=wr);const u=r?10:0,a={};for(const[o,i]of Object.entries(s)){const r="ansi16"===o?"ansi":o;o===t?a[r]=e(n,u):"object"===typeof i&&(a[r]=e(i[t],u))}return a};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.gray=s.color.blackBright,s.bgColor.bgGray=s.bgColor.bgBlackBright,s.color.grey=s.color.blackBright,s.bgColor.bgGrey=s.bgColor.bgBlackBright;for(const[t,n]of Object.entries(s)){for(const[t,r]of Object.entries(n))s[t]={open:"\x1b[".concat(r[0],"m"),close:"\x1b[".concat(r[1],"m")},n[t]=s[t],e.set(r[0],r[1]);Object.defineProperty(s,t,{value:n,enumerable:!1})}return Object.defineProperty(s,"codes",{value:e,enumerable:!1}),s.color.close="\x1b[39m",s.bgColor.close="\x1b[49m",o(s.color,"ansi",()=>i(t,"ansi16",u,!1)),o(s.color,"ansi256",()=>i(n,"ansi256",u,!1)),o(s.color,"ansi16m",()=>i(r,"rgb",a,!1)),o(s.bgColor,"ansi",()=>i(t,"ansi16",u,!0)),o(s.bgColor,"ansi256",()=>i(n,"ansi256",u,!0)),o(s.bgColor,"ansi16m",()=>i(r,"rgb",a,!0)),s}})})),Tr={isatty:()=>!1},kr=(e,t=Ot.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),u=t.indexOf("--");return-1!==r&&(-1===u||r<u)};const{env:Nr}=Ot;let Or;function Pr(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Ir(e,t){if(0===Or)return 0;if(kr("color=16m")||kr("color=full")||kr("color=truecolor"))return 3;if(kr("color=256"))return 2;if(e&&!t&&void 0===Or)return 0;const n=Or||0;if("dumb"===Nr.TERM)return n;if("win32"===Ot.platform){const e=Bn.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Nr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in Nr)||"codeship"===Nr.CI_NAME?1:n;if("TEAMCITY_VERSION"in Nr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Nr.TEAMCITY_VERSION)?1:0;if("GITHUB_ACTIONS"in Nr)return 1;if("truecolor"===Nr.COLORTERM)return 3;if("TERM_PROGRAM"in Nr){const e=parseInt((Nr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Nr.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Nr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Nr.TERM)||"COLORTERM"in Nr?1:n}kr("no-color")||kr("no-colors")||kr("color=false")||kr("color=never")?Or=0:(kr("color")||kr("colors")||kr("color=true")||kr("color=always"))&&(Or=1),"FORCE_COLOR"in Nr&&(Or="true"===Nr.FORCE_COLOR?1:"false"===Nr.FORCE_COLOR?0:0===Nr.FORCE_COLOR.length?1:Math.min(parseInt(Nr.FORCE_COLOR,10),3));var Mr={supportsColor:function(e){return Pr(Ir(e,e&&e.isTTY))},stdout:Pr(Ir(!0,Tr.isatty(1))),stderr:Pr(Ir(!0,Tr.isatty(2)))},_r={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(-1===r)return e;const u=t.length;let a=0,o="";do{o+=e.substr(a,r-a)+t+n,a=r+u,r=e.indexOf(t,a)}while(-1!==r);return o+=e.substr(a),o},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let u=0,a="";do{const o="\r"===e[r-1];a+=e.substr(u,(o?r-1:r)-u)+t+(o?"\r\n":"\n")+n,u=r+1,r=e.indexOf("\n",u)}while(-1!==r);return a+=e.substr(u),a}};const jr=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Lr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Rr=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,qr=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Vr=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function Wr(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):Vr.get(e)||e}function Ur(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let u;for(const a of r){const t=Number(a);if(Number.isNaN(t)){if(!(u=a.match(Rr)))throw new Error("Invalid Chalk template style argument: ".concat(a," (in style '").concat(e,"')"));n.push(u[2].replace(qr,(e,t,n)=>t?Wr(t):n))}else n.push(t)}return n}function zr(e){Lr.lastIndex=0;const t=[];let n;for(;null!==(n=Lr.exec(e));){const e=n[1];if(n[2]){const r=Ur(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function $r(e,t){const n={};for(const u of t)for(const e of u.styles)n[e[0]]=u.inverse?null:e.slice(1);let r=e;for(const[u,a]of Object.entries(n))if(Array.isArray(a)){if(!(u in r))throw new Error("Unknown Chalk style: ".concat(u));r=a.length>0?r[u](...a):r[u]}return r}var Jr=(e,t)=>{const n=[],r=[];let u=[];if(t.replace(jr,(t,a,o,s,i,l)=>{if(a)u.push(Wr(a));else if(s){const t=u.join("");u=[],r.push(0===n.length?t:$r(e,n)(t)),n.push({inverse:o,styles:zr(s)})}else if(i){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push($r(e,n)(u.join(""))),u=[],n.pop()}else u.push(l)}),r.push(u.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")};const{stdout:Gr,stderr:Hr}=Mr,{stringReplaceAll:Xr,stringEncaseCRLFWithFirstIndex:Yr}=_r,Kr=["ansi","ansi","ansi256","ansi16m"],Qr=Object.create(null);class Zr{constructor(e){return eu(e)}}const eu=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=Gr?Gr.level:0;e.level=void 0===t.level?n:t.level})(t,e),t.template=(...e)=>iu(t.template,...e),Object.setPrototypeOf(t,tu.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Zr,t.template};function tu(e){return eu(e)}for(const[t,xA]of Object.entries(Br))Qr[t]={get(){const e=au(this,uu(xA.open,xA.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:e}),e}};Qr.visible={get(){const e=au(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const nu=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const t of nu)Qr[t]={get(){const{level:e}=this;return function(...n){const r=uu(Br.color[Kr[e]][t](...n),Br.color.close,this._styler);return au(this,r,this._isEmpty)}}};for(const t of nu)Qr["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const{level:e}=this;return function(...n){const r=uu(Br.bgColor[Kr[e]][t](...n),Br.bgColor.close,this._styler);return au(this,r,this._isEmpty)}}};const ru=Object.defineProperties(()=>{},Object.assign({},Qr,{level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}})),uu=(e,t,n)=>{let r,u;return void 0===n?(r=e,u=t):(r=n.openAll+e,u=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:u,parent:n}},au=(e,t,n)=>{const r=(...e)=>ou(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,ru),r._generator=e,r._styler=t,r._isEmpty=n,r},ou=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:r,closeAll:u}=n;if(-1!==t.indexOf("\x1b"))for(;void 0!==n;)t=Xr(t,n.close,n.open),n=n.parent;const a=t.indexOf("\n");return-1!==a&&(t=Yr(t,u,r,a)),r+t+u};let su;const iu=(e,...t)=>{const[n]=t;if(!Array.isArray(n))return t.join(" ");const r=t.slice(1),u=[n.raw[0]];for(let a=1;a<n.length;a++)u.push(String(r[a-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[a]));return void 0===su&&(su=Jr),su(e,u.join(""))};Object.defineProperties(tu.prototype,Qr);const lu=tu();lu.supportsColor=Gr,lu.stderr=tu({level:Hr?Hr.level:0}),lu.stderr.supportsColor=Hr;var cu=lu;const pu={key:e=>1===e.length?"-".concat(e):"--".concat(e),value:e=>fr.apiDescriptor.value(e),pair:({key:e,value:t})=>!1===t?"--no-".concat(e):!0===t?pu.key(e):""===t?"".concat(pu.key(e)," without an argument"):"".concat(pu.key(e),"=").concat(t)};class du extends fr.ChoiceSchema{constructor({name:e,flags:t}){super({name:e,choices:t}),this._flags=t.slice().sort()}preprocess(e,t){if("string"===typeof e&&0!==e.length&&!this._flags.includes(e)){const n=this._flags.find(t=>gr(t,e)<3);if(n)return t.logger.warn(["Unknown flag ".concat(cu.yellow(t.descriptor.value(e)),","),"did you mean ".concat(cu.blue(t.descriptor.value(n)),"?")].join(" ")),n}return e}expected(){return"a flag"}}let fu;function hu(e,t,{logger:n,isCLI:r=!1,passThrough:u=!1}={}){const a=u?Array.isArray(u)?(e,t)=>u.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):fr.levenUnknownHandler,o=r?pu:fr.apiDescriptor,s=function(e,{isCLI:t}){const n=[];t&&n.push(fr.AnySchema.create({name:"_"}));for(const r of e)n.push(mu(r,{isCLI:t,optionInfos:e})),r.alias&&t&&n.push(fr.AliasSchema.create({name:r.alias,sourceName:r.name}));return n}(t,{isCLI:r}),i=new fr.Normalizer(s,{logger:n,unknown:a,descriptor:o}),l=!1!==n;l&&fu&&(i._hasDeprecationWarned=fu);const c=i.normalize(e);return l&&(fu=i._hasDeprecationWarned),c}function mu(e,{isCLI:t,optionInfos:n}){let r;const u={name:e.name},a={};switch(e.type){case"int":r=fr.IntegerSchema,t&&(u.preprocess=e=>Number(e));break;case"string":r=fr.StringSchema;break;case"choice":r=fr.ChoiceSchema,u.choices=e.choices.map(t=>"object"===typeof t&&t.redirect?Object.assign({},t,{redirect:{to:{key:e.name,value:t.redirect}}}):t);break;case"boolean":r=fr.BooleanSchema;break;case"flag":r=du,u.flags=n.map(e=>[].concat(e.alias||[],e.description?e.name:[],e.oppositeDescription?"no-".concat(e.name):[])).reduce((e,t)=>e.concat(t),[]);break;case"path":r=fr.StringSchema;break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?u.validate=(t,n,r)=>e.exception(t)||n.validate(t,r):u.validate=(e,t,n)=>void 0===e||t.validate(e,n),e.redirect&&(a.redirect=t=>t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(a.deprecated=!0),t&&!e.array){const e=u.preprocess||(e=>e);u.preprocess=(t,n,r)=>n.preprocess(e(Array.isArray(t)?t[t.length-1]:t),r)}return e.array?fr.ArraySchema.create(Object.assign({},t?{preprocess:e=>[].concat(e)}:{},{},a,{valueSchema:r.create(u)})):r.create(Object.assign({},u,{},a))}var Du={normalizeApiOptions:function(e,t,n){return hu(e,t,n)},normalizeCliOptions:function(e,t,n){return hu(e,t,Object.assign({isCLI:!0},n))}},gu=e=>e[e.length-1];function yu(e,t){return!(t=t||{}).ignoreDecorators&&e.declaration&&e.declaration.decorators&&e.declaration.decorators.length>0?yu(e.declaration.decorators[0]):!t.ignoreDecorators&&e.decorators&&e.decorators.length>0?yu(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}function Eu(e){const t=e.nodes&&gu(e.nodes);if(t&&e.source&&!e.source.end&&(e=t),e.__location)return e.__location.endOffset;const n=e.range?e.range[1]:"number"===typeof e.end?e.end:null;return e.typeAnnotation?Math.max(n,Eu(e.typeAnnotation)):e.loc&&!n?e.loc.end:n}var Cu={locStart:yu,locEnd:Eu,composeLoc:function(e,t=e){const n="number"===typeof t?t:-1,r=yu(e),u=-1!==n?r+n:Eu(t),a=e.loc.start;return{start:r,end:u,range:[r,u],loc:{start:a,end:-1!==n?{line:a.line,column:a.column+n}:t.loc.end}}}},bu=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}}));Ke(bu),bu.matchToToken;var Au=Qe((function(e){!function(){function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=n(t)}while(t);return!1},trailingStatement:n}}()})),Fu=(Au.isExpression,Au.isStatement,Au.isIterationStatement,Au.isSourceElement,Au.isProblematicIfStatement,Au.trailingStatement,Qe((function(e){!function(){var t,n,r,u,a,o;function s(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],u=new Array(128),o=0;o<128;++o)u[o]=o>=97&&o<=122||o>=65&&o<=90||36===o||95===o;for(a=new Array(128),o=0;o<128;++o)a[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||36===o||95===o;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?u[e]:n.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES5:function(e){return e<128?a[e]:n.NonAsciiIdentifierPart.test(s(e))},isIdentifierStartES6:function(e){return e<128?u[e]:t.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES6:function(e){return e<128?a[e]:t.NonAsciiIdentifierPart.test(s(e))}}}()}))),vu=(Fu.isDecimalDigit,Fu.isHexDigit,Fu.isOctalDigit,Fu.isWhiteSpace,Fu.isLineTerminator,Fu.isIdentifierStartES5,Fu.isIdentifierPartES5,Fu.isIdentifierStartES6,Fu.isIdentifierPartES6,Qe((function(e){!function(){var t=Fu;function n(e,t){return!(!t&&"yield"===e)&&r(e,t)}function r(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function u(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function a(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function o(e){var n,r,u;if(0===e.length)return!1;if(u=e.charCodeAt(0),!t.isIdentifierStartES5(u))return!1;for(n=1,r=e.length;n<r;++n)if(u=e.charCodeAt(n),!t.isIdentifierPartES5(u))return!1;return!0}function s(e){var n,r,u,a,o;if(0===e.length)return!1;for(o=t.isIdentifierStartES6,n=0,r=e.length;n<r;++n){if(55296<=(u=e.charCodeAt(n))&&u<=56319){if(++n>=r)return!1;if(!(56320<=(a=e.charCodeAt(n))&&a<=57343))return!1;u=1024*(u-55296)+(a-56320)+65536}if(!o(u))return!1;o=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:n,isKeywordES6:r,isReservedWordES5:u,isReservedWordES6:a,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:o,isIdentifierNameES6:s,isIdentifierES5:function(e,t){return o(e)&&!u(e,t)},isIdentifierES6:function(e,t){return s(e)&&!a(e,t)}}}()}))),xu=(vu.isKeywordES5,vu.isKeywordES6,vu.isReservedWordES5,vu.isReservedWordES6,vu.isRestrictedWord,vu.isIdentifierNameES5,vu.isIdentifierNameES6,vu.isIdentifierES5,vu.isIdentifierES6,Qe((function(e,t){t.ast=Au,t.code=Fu,t.keyword=vu}))),Su=(xu.ast,xu.code,xu.keyword,/[|\\{}()[\]^$+*?.]/g),wu=function(e){if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(Su,"\\$&")},Bu={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Tu=Qe((function(e){var t={};for(var n in Bu)Bu.hasOwnProperty(n)&&(t[Bu[n]]=n);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var u in r)if(r.hasOwnProperty(u)){if(!("channels"in r[u]))throw new Error("missing channels property: "+u);if(!("labels"in r[u]))throw new Error("missing channel labels property: "+u);if(r[u].labels.length!==r[u].channels)throw new Error("channel and label counts mismatch: "+u);var a=r[u].channels,o=r[u].labels;delete r[u].channels,delete r[u].labels,Object.defineProperty(r[u],"channels",{value:a}),Object.defineProperty(r[u],"labels",{value:o})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,u=e[1]/255,a=e[2]/255,o=Math.min(r,u,a),s=Math.max(r,u,a),i=s-o;return s===o?t=0:r===s?t=(u-a)/i:u===s?t=2+(a-r)/i:a===s&&(t=4+(r-u)/i),(t=Math.min(60*t,360))<0&&(t+=360),n=(o+s)/2,[t,100*(s===o?0:n<=.5?i/(s+o):i/(2-s-o)),100*n]},r.rgb.hsv=function(e){var t,n,r,u,a,o=e[0]/255,s=e[1]/255,i=e[2]/255,l=Math.max(o,s,i),c=l-Math.min(o,s,i),p=function(e){return(l-e)/6/c+.5};return 0===c?u=a=0:(a=c/l,t=p(o),n=p(s),r=p(i),o===l?u=r-n:s===l?u=1/3+t-r:i===l&&(u=2/3+n-t),u<0?u+=1:u>1&&(u-=1)),[360*u,100*a,100*l]},r.rgb.hwb=function(e){var t=e[0],n=e[1],u=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,u))*100,100*(u=1-1/255*Math.max(t,Math.max(n,u)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,u=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-u)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-u-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,u,a,o=1/0;for(var s in Bu)if(Bu.hasOwnProperty(s)){var i=Bu[s],l=(u=e,a=i,Math.pow(u[0]-a[0],2)+Math.pow(u[1]-a[1],2)+Math.pow(u[2]-a[2],2));l<o&&(o=l,r=s)}return r},r.keyword.rgb=function(e){return Bu[e]},r.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],u=t[1],a=t[2];return u/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(u=u>.008856?Math.pow(u,1/3):7.787*u+16/116)-16,500*(n-u),200*(u-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},r.hsl.rgb=function(e){var t,n,r,u,a,o=e[0]/360,s=e[1]/100,i=e[2]/100;if(0===s)return[a=255*i,a,a];t=2*i-(n=i<.5?i*(1+s):i+s-i*s),u=[0,0,0];for(var l=0;l<3;l++)(r=o+1/3*-(l-1))<0&&r++,r>1&&r--,a=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,u[l]=255*a;return u},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,u=n,a=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,u*=a<=1?a:2-a,[t,100*(0===r?2*u/(a+u):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,u=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,u){case 0:return[r,i,o];case 1:return[s,r,o];case 2:return[o,r,i];case 3:return[o,s,r];case 4:return[i,o,r];case 5:return[r,o,s]}},r.hsv.hsl=function(e){var t,n,r,u=e[0],a=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return r=(2-a)*o,n=a*s,[u,100*(n=(n/=(t=(2-a)*s)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,u,a,o,s,i=e[0]/360,l=e[1]/100,c=e[2]/100,p=l+c;switch(p>1&&(l/=p,c/=p),r=6*i-(t=Math.floor(6*i)),0!==(1&t)&&(r=1-r),u=l+r*((n=1-c)-l),t){default:case 6:case 0:a=n,o=u,s=l;break;case 1:a=u,o=n,s=l;break;case 2:a=l,o=n,s=u;break;case 3:a=l,o=u,s=n;break;case 4:a=u,o=l,s=n;break;case 5:a=n,o=l,s=u}return[255*a,255*o,255*s]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,u=e[3]/100;return[255*(1-Math.min(1,t*(1-u)+u)),255*(1-Math.min(1,n*(1-u)+u)),255*(1-Math.min(1,r*(1-u)+u))]},r.xyz.rgb=function(e){var t,n,r,u=e[0]/100,a=e[1]/100,o=e[2]/100;return n=-.9689*u+1.8758*a+.0415*o,r=.0557*u+-.204*a+1.057*o,t=(t=3.2406*u+-1.5372*a+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,u=e[0];t=e[1]/500+(n=(u+16)/116),r=n-e[2]/200;var a=Math.pow(n,3),o=Math.pow(t,3),s=Math.pow(r,3);return n=a>.008856?a:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],u=e[2];return(t=360*Math.atan2(u,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+u*u),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],u=e[2],a=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var o=30+(Math.round(u/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===a&&(o+=60),o},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,u=e[2]/255,a=Math.max(Math.max(n,r),u),o=Math.min(Math.min(n,r),u),s=a-o;return t=s<=0?0:a===n?(r-u)/s%6:a===r?2+(u-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,u=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(u=(n-.5*r)/(1-r)),[e[0],100*r,100*u]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,u=0;return r<1&&(u=(n-r)/(1-r)),[e[0],100*r,100*u]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var u,a=[0,0,0],o=t%1*6,s=o%1,i=1-s;switch(Math.floor(o)){case 0:a[0]=1,a[1]=s,a[2]=0;break;case 1:a[0]=i,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=s;break;case 3:a[0]=0,a[1]=i,a[2]=1;break;case 4:a[0]=s,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=i}return u=(1-n)*r,[255*(n*a[0]+u),255*(n*a[1]+u),255*(n*a[2]+u)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,u=0;return r<1&&(u=(n-r)/(1-r)),[e[0],100*r,100*u]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function ku(e){var t=function(){for(var e={},t=Object.keys(Tu),n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var r=n.pop(),u=Object.keys(Tu[r]),a=u.length,o=0;o<a;o++){var s=u[o],i=t[s];-1===i.distance&&(i.distance=t[r].distance+1,i.parent=r,n.unshift(s))}return t}function Nu(e,t){return function(n){return t(e(n))}}function Ou(e,t){for(var n=[t[e].parent,e],r=Tu[t[e].parent][e],u=t[e].parent;t[u].parent;)n.unshift(t[u].parent),r=Nu(Tu[t[u].parent][u],r),u=t[u].parent;return r.conversion=n,r}Tu.rgb,Tu.hsl,Tu.hsv,Tu.hwb,Tu.cmyk,Tu.xyz,Tu.lab,Tu.lch,Tu.hex,Tu.keyword,Tu.ansi16,Tu.ansi256,Tu.hcg,Tu.apple,Tu.gray;var Pu={};Object.keys(Tu).forEach((function(e){Pu[e]={},Object.defineProperty(Pu[e],"channels",{value:Tu[e].channels}),Object.defineProperty(Pu[e],"labels",{value:Tu[e].labels});var t=function(e){for(var t=ku(e),n={},r=Object.keys(t),u=r.length,a=0;a<u;a++){var o=r[a];null!==t[o].parent&&(n[o]=Ou(o,t))}return n}(e);Object.keys(t).forEach((function(n){var r=t[n];Pu[e][n]=function(e){var t=function(t){if(void 0===t||null===t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"===typeof n)for(var r=n.length,u=0;u<r;u++)n[u]=Math.round(n[u]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),Pu[e][n].raw=function(e){var t=function(t){return void 0===t||null===t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var Iu=Pu,Mu=Qe((function(e){const t=(e,t)=>function(){const n=e.apply(Iu,arguments);return"\x1b[".concat(n+t,"m")},n=(e,t)=>function(){const n=e.apply(Iu,arguments);return"\x1b[".concat(38+t,";5;").concat(n,"m")},r=(e,t)=>function(){const n=e.apply(Iu,arguments);return"\x1b[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};u.color.grey=u.color.gray;for(const t of Object.keys(u)){const n=u[t];for(const t of Object.keys(n)){const r=n[t];u[t]={open:"\x1b[".concat(r[0],"m"),close:"\x1b[".concat(r[1],"m")},n[t]=u[t],e.set(r[0],r[1])}Object.defineProperty(u,t,{value:n,enumerable:!1}),Object.defineProperty(u,"codes",{value:e,enumerable:!1})}const a=e=>e,o=(e,t,n)=>[e,t,n];u.color.close="\x1b[39m",u.bgColor.close="\x1b[49m",u.color.ansi={ansi:t(a,0)},u.color.ansi256={ansi256:n(a,0)},u.color.ansi16m={rgb:r(o,0)},u.bgColor.ansi={ansi:t(a,10)},u.bgColor.ansi256={ansi256:n(a,10)},u.bgColor.ansi16m={rgb:r(o,10)};for(let s of Object.keys(Iu)){if("object"!==typeof Iu[s])continue;const e=Iu[s];"ansi16"===s&&(s="ansi"),"ansi16"in e&&(u.color.ansi[s]=t(e.ansi16,0),u.bgColor.ansi[s]=t(e.ansi16,10)),"ansi256"in e&&(u.color.ansi256[s]=n(e.ansi256,0),u.bgColor.ansi256[s]=n(e.ansi256,10)),"rgb"in e&&(u.color.ansi16m[s]=r(e.rgb,0),u.bgColor.ansi16m[s]=r(e.rgb,10))}return u}})}));const _u=Ot.env;let ju;function Lu(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===ju)return 0;if(Tn("color=16m")||Tn("color=full")||Tn("color=truecolor"))return 3;if(Tn("color=256"))return 2;if(e&&!e.isTTY&&!0!==ju)return 0;const t=ju?1:0;if("win32"===Ot.platform){const e=Bn.release().split(".");return Number(Ot.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in _u)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in _u)||"codeship"===_u.CI_NAME?1:t;if("TEAMCITY_VERSION"in _u)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(_u.TEAMCITY_VERSION)?1:0;if("truecolor"===_u.COLORTERM)return 3;if("TERM_PROGRAM"in _u){const e=parseInt((_u.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(_u.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(_u.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(_u.TERM)||"COLORTERM"in _u?1:(_u.TERM,t)}(e))}Tn("no-color")||Tn("no-colors")||Tn("color=false")?ju=!1:(Tn("color")||Tn("colors")||Tn("color=true")||Tn("color=always"))&&(ju=!0),"FORCE_COLOR"in _u&&(ju=0===_u.FORCE_COLOR.length||0!==parseInt(_u.FORCE_COLOR,10));var Ru={supportsColor:Lu,stdout:Lu(Ot.stdout),stderr:Lu(Ot.stderr)};const qu=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Vu=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Wu=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Uu=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,zu=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function $u(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):zu.get(e)||e}function Ju(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let u;for(const a of r)if(isNaN(a)){if(!(u=a.match(Wu)))throw new Error("Invalid Chalk template style argument: ".concat(a," (in style '").concat(e,"')"));n.push(u[2].replace(Uu,(e,t,n)=>t?$u(t):n))}else n.push(Number(a));return n}function Gu(e){Vu.lastIndex=0;const t=[];let n;for(;null!==(n=Vu.exec(e));){const e=n[1];if(n[2]){const r=Ju(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function Hu(e,t){const n={};for(const u of t)for(const e of u.styles)n[e[0]]=u.inverse?null:e.slice(1);let r=e;for(const u of Object.keys(n))if(Array.isArray(n[u])){if(!(u in r))throw new Error("Unknown Chalk style: ".concat(u));r=n[u].length>0?r[u].apply(r,n[u]):r[u]}return r}var Xu=(e,t)=>{const n=[],r=[];let u=[];if(t.replace(qu,(t,a,o,s,i,l)=>{if(a)u.push($u(a));else if(s){const t=u.join("");u=[],r.push(0===n.length?t:Hu(e,n)(t)),n.push({inverse:o,styles:Gu(s)})}else if(i){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(Hu(e,n)(u.join(""))),u=[],n.pop()}else u.push(l)}),r.push(u.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")},Yu=Qe((function(e){const t=Ru.stdout,n="win32"===Ot.platform&&!(Ot.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],u=new Set(["gray"]),a=Object.create(null);function o(e,n){n=n||{};const r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function s(e){if(!this||!(this instanceof s)||this.template){const t={};return o(t,e),t.template=function(){const e=[].slice.call(arguments);return p.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,s.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=s,t.template}o(this,e)}n&&(Mu.blue.open="\x1b[94m");for(const d of Object.keys(Mu))Mu[d].closeRe=new RegExp(wu(Mu[d].close),"g"),a[d]={get(){const e=Mu[d];return l.call(this,this._styles?this._styles.concat(e):[e],this._empty,d)}};a.visible={get(){return l.call(this,this._styles||[],!0,"visible")}},Mu.color.closeRe=new RegExp(wu(Mu.color.close),"g");for(const d of Object.keys(Mu.color.ansi))u.has(d)||(a[d]={get(){const e=this.level;return function(){const t=Mu.color[r[e]][d].apply(null,arguments),n={open:t,close:Mu.color.close,closeRe:Mu.color.closeRe};return l.call(this,this._styles?this._styles.concat(n):[n],this._empty,d)}}});Mu.bgColor.closeRe=new RegExp(wu(Mu.bgColor.close),"g");for(const d of Object.keys(Mu.bgColor.ansi))u.has(d)||(a["bg"+d[0].toUpperCase()+d.slice(1)]={get(){const e=this.level;return function(){const t=Mu.bgColor[r[e]][d].apply(null,arguments),n={open:t,close:Mu.bgColor.close,closeRe:Mu.bgColor.closeRe};return l.call(this,this._styles?this._styles.concat(n):[n],this._empty,d)}}});const i=Object.defineProperties(()=>{},a);function l(e,t,n){const r=function e(){return c.apply(e,arguments)};r._styles=e,r._empty=t;const u=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>u.level,set(e){u.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>u.enabled,set(e){u.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=i,r}function c(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n<t;n++)r+=" "+e[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const u=Mu.dim.open;n&&this.hasGrey&&(Mu.dim.open="");for(const n of this._styles.slice().reverse())r=n.open+r.replace(n.closeRe,n.open)+n.close,r=r.replace(/\r?\n/g,"".concat(n.close,"$&").concat(n.open));return Mu.dim.open=u,r}function p(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const n=[].slice.call(arguments,2),r=[t.raw[0]];for(let u=1;u<t.length;u++)r.push(String(n[u-1]).replace(/[{}\\]/g,"\\$&")),r.push(String(t.raw[u]));return Xu(e,r.join(""))}Object.defineProperties(s.prototype,a),e.exports=s(),e.exports.supportsColor=t,e.exports.default=e.exports})),Ku=(Yu.supportsColor,Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.shouldHighlight=c,t.getChalk=p,t.default=function(e,t={}){if(c(t)){const u=p(t);return function(e,t){return t.replace(n.default,(function(...t){const u=function(e){const[t,u]=e.slice(-2),a=(0,n.matchToToken)(e);if("name"===a.type){if(r.default.keyword.isReservedWordES6(a.value))return"keyword";if(i.test(a.value)&&("<"===u[t-1]||"</"==u.substr(t-2,2)))return"jsx_tag";if(a.value[0]!==a.value[0].toLowerCase())return"capitalized"}return"punctuator"===a.type&&l.test(a.value)?"bracket":"invalid"!==a.type||"@"!==a.value&&"#"!==a.value?a.type:"punctuator"}(t),a=e[u];return a?t[0].split(s).map(e=>a(e)).join("\n"):t[0]}))}(function(e){return{keyword:e.cyan,capitalized:e.yellow,jsx_tag:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}(u),e)}return e};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(Object.prototype.hasOwnProperty.call(e,u)){var a=r?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(n,u,a):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(bu),r=a(xu),u=a(Yu);function a(e){return e&&e.__esModule?e:{default:e}}function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}const s=/\r\n|[\n\r\u2028\u2029]/,i=/^[a-z][\w-]*$/i,l=/^[()[\]{}]$/;function c(e){return u.default.supportsColor||e.forceColor}function p(e){let t=u.default;return e.forceColor&&(t=new u.default.constructor({enabled:!0,level:1})),t}})));Ke(Ku),Ku.shouldHighlight,Ku.getChalk;var Qu=Qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=o,t.default=function(e,t,n,r={}){if(!u){u=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";Ot.emitWarning?Ot.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}return n=Math.max(n,0),o(e,{start:{column:n,line:t}},r)};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=u?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}(Ku);function r(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}let u=!1;const a=/\r\n|[\n\r\u2028\u2029]/;function o(e,t,r={}){const u=(r.highlightCode||r.forceColor)&&(0,n.shouldHighlight)(r),o=(0,n.getChalk)(r),s=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(o),i=(e,t)=>u?e(t):t,l=e.split(a),{start:c,end:p,markerLines:d}=function(e,t,n){const r=Object.assign({column:0,line:-1},e.start),u=Object.assign({},r,{},e.end),{linesAbove:a=2,linesBelow:o=3}=n||{},s=r.line,i=r.column,l=u.line,c=u.column;let p=Math.max(s-(a+1),0),d=Math.min(t.length,l+o);-1===s&&(p=0),-1===l&&(d=t.length);const f=l-s,h={};if(f)for(let m=0;m<=f;m++){const e=m+s;if(i)if(0===m){const n=t[e-1].length;h[e]=[i,n-i+1]}else if(m===f)h[e]=[0,c];else{const n=t[e-m].length;h[e]=[0,n]}else h[e]=!0}else h[s]=i===c?!i||[i,0]:[i,c-i];return{start:p,end:d,markerLines:h}}(t,l,r),f=t.start&&"number"===typeof t.start.column,h=String(p).length;let m=(u?(0,n.default)(e,r):e).split(a).slice(c,p).map((e,t)=>{const n=c+1+t,u=" ".concat(n).slice(-h),a=" ".concat(u," | "),o=d[n],l=!d[n+1];if(o){let t="";if(Array.isArray(o)){const n=e.slice(0,Math.max(o[0]-1,0)).replace(/[^\t]/g," "),u=o[1]||1;t=["\n ",i(s.gutter,a.replace(/\d/g," ")),n,i(s.marker,"^").repeat(u)].join(""),l&&r.message&&(t+=" "+i(s.message,r.message))}return[i(s.marker,">"),i(s.gutter,a),e,t].join("")}return" ".concat(i(s.gutter,a)).concat(e)}).join("\n");return r.message&&!f&&(m="".concat(" ".repeat(h+1)).concat(r.message,"\n").concat(m)),u?o.reset(m):m}}));Ke(Qu),Qu.codeFrameColumns;const{ConfigError:Zu}=ot,{locStart:ea,locEnd:ta}=Cu,na=Object.getOwnPropertyNames,ra=Object.getOwnPropertyDescriptor;function ua(e){const t={};for(const n of e.plugins)if(n.parsers)for(const e of na(n.parsers))Object.defineProperty(t,e,ra(n.parsers,e));return t}function aa(e,t){if(t=t||ua(e),"function"===typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:ea,locEnd:ta};if("string"===typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new Zu("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var oa={parse:function(e,t){const n=ua(t),r=Object.keys(n).reduce((e,t)=>Object.defineProperty(e,t,{enumerable:!0,get:()=>n[t].parse}),{}),u=aa(t,n);try{return u.preprocess&&(e=u.preprocess(e,t)),{text:e,ast:u.parse(e,r,t)}}catch(a){const{loc:t}=a;if(t){const n=Qu;throw a.codeFrame=n.codeFrameColumns(e,t,{highlightCode:!0}),a.message+="\n"+a.codeFrame,a}throw a.stack}},resolveParser:aa};const{UndefinedParserError:sa}=ot,{getSupportInfo:ia}=sn,{resolveParser:la}=oa,ca={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function pa(e,t){const n=Z.basename(e).toLowerCase(),r=ia({plugins:t}).languages.filter(e=>null!==e.since);let u=r.find(e=>e.extensions&&e.extensions.some(e=>n.endsWith(e))||e.filenames&&e.filenames.find(e=>e.toLowerCase()===n));if(!u&&!n.includes(".")){const t=function(e){if("string"!==typeof e)return"";let t;try{t=et.openSync(e,"r")}catch(n){return""}try{const e=new tt(t).next().toString("utf8"),r=e.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(r)return r[1];const u=e.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return u?u[1]:""}catch(n){return""}finally{try{et.closeSync(t)}catch(n){}}}(e);u=r.find(e=>e.interpreters&&e.interpreters.includes(t))}return u&&u.parsers[0]}var da={normalize:function(e,t){t=t||{};const n=Object.assign({},e),r=ia({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,u=Object.assign({},ca,{},nt(r.filter(e=>void 0!==e.default).map(e=>[e.name,e.default])));if(!n.parser)if(n.filepath){if(n.parser=pa(n.filepath,n.plugins),!n.parser)throw new sa("No parser could be inferred for file: ".concat(n.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),n.parser="babel";const a=la(Du.normalizeApiOptions(n,[r.find(e=>"parser"===e.name)],{passThrough:!0,logger:!1}));n.astFormat=a.astFormat,n.locEnd=a.locEnd,n.locStart=a.locStart;const o=function(e){const{astFormat:t}=e;if(!t)throw new Error("getPlugin() requires astFormat to be set");const n=e.plugins.find(e=>e.printers&&e.printers[t]);if(!n)throw new Error("Couldn't find plugin for AST format \"".concat(t,'"'));return n}(n);n.printer=o.printers[n.astFormat];const s=r.filter(e=>e.pluginDefaults&&void 0!==e.pluginDefaults[o.name]).reduce((e,t)=>Object.assign(e,{[t.name]:t.pluginDefaults[o.name]}),{}),i=Object.assign({},u,{},s);return Object.keys(i).forEach(e=>{null==n[e]&&(n[e]=i[e])}),"json"===n.parser&&(n.trailingComma="none"),Du.normalizeApiOptions(n,r,Object.assign({passThrough:Object.keys(ca)},t))},hiddenDefaults:ca,inferParser:pa},fa=function e(t,n,r){if(Array.isArray(t))return t.map(t=>e(t,n,r)).filter(Boolean);if(!t||"object"!==typeof t)return t;const u={};for(const a of Object.keys(t))"function"!==typeof t[a]&&(u[a]=e(t[a],n,t));if(n.printer.massageAstNode){const e=n.printer.massageAstNode(t,u,r);if(null===e)return;if(e)return e}return u};function ha(){}function ma(e){return{type:"concat",parts:e}}function Da(e){return{type:"indent",contents:e}}function ga(e,t){return{type:"align",contents:t,n:e}}function ya(e,t){return{type:"group",id:(t=t||{}).id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}ha.ok=function(){},ha.strictEqual=function(){};const Ea={type:"break-parent"},Ca=ma([{type:"line",hard:!0},Ea]),ba=ma([{type:"line",hard:!0,literal:!0},Ea]);var Aa={concat:ma,join:function(e,t){const n=[];for(let r=0;r<t.length;r++)0!==r&&n.push(e),n.push(t[r]);return ma(n)},line:{type:"line"},softline:{type:"line",soft:!0},hardline:Ca,literalline:ba,group:ya,conditionalGroup:function(e,t){return ya(e[0],Object.assign({},t,{expandedStates:e}))},fill:function(e){return{type:"fill",parts:e}},lineSuffix:function(e){return{type:"line-suffix",contents:e}},lineSuffixBoundary:{type:"line-suffix-boundary"},cursor:{type:"cursor",placeholder:Symbol("cursor")},breakParent:Ea,ifBreak:function(e,t,n){return{type:"if-break",breakContents:e,flatContents:t,groupId:(n=n||{}).groupId}},trim:{type:"trim"},indent:Da,align:ga,addAlignmentToDoc:function(e,t,n){let r=e;if(t>0){for(let e=0;e<Math.floor(t/n);++e)r=Da(r);r=ga(t%n,r),r=ga(-1/0,r)}return r},markAsRoot:function(e){return ga({type:"root"},e)},dedentToRoot:function(e){return ga(-1/0,e)},dedent:function(e){return ga(-1,e)}},Fa=e=>"string"===typeof e?e.replace((({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")})(),""):e;const va=e=>!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);var xa=va,Sa=va;xa.default=Sa;const wa=e=>{if("string"!==typeof(e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," "))||0===e.length)return 0;e=Fa(e);let t=0;for(let n=0;n<e.length;n++){const r=e.codePointAt(n);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,t+=xa(r)?2:1)}return t};var Ba=wa,Ta=wa;Ba.default=Ta;const ka=/[|\\{}()[\]^$+*?.-]/g;var Na=e=>{if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(ka,"\\$&")};const Oa=/[^\x20-\x7F]/;function Pa(e){return(t,n,r)=>{const u=r&&r.backwards;if(!1===n)return!1;const{length:a}=t;let o=n;for(;o>=0&&o<a;){const n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;u?o--:o++}return(-1===o||o===a)&&o}}const Ia=Pa(/\s/),Ma=Pa(" \t"),_a=Pa(",; \t"),ja=Pa(/[^\r\n]/);function La(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let n=t+2;n<e.length;++n)if("*"===e.charAt(n)&&"/"===e.charAt(n+1))return n+2;return t}function Ra(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?ja(e,t):t)}function qa(e,t,n){const r=n&&n.backwards;if(!1===t)return!1;const u=e.charAt(t);if(r){if("\r"===e.charAt(t-1)&&"\n"===u)return t-2;if("\n"===u||"\r"===u||"\u2028"===u||"\u2029"===u)return t-1}else{if("\r"===u&&"\n"===e.charAt(t+1))return t+2;if("\n"===u||"\r"===u||"\u2028"===u||"\u2029"===u)return t+1}return t}function Va(e,t,n){const r=Ma(e,(n=n||{}).backwards?t-1:t,n);return r!==qa(e,r,n)}function Wa(e,t){let n=null,r=t;for(;r!==n;)n=r,r=_a(e,r),r=La(e,r),r=Ma(e,r);return r=Ra(e,r),r=qa(e,r),!1!==r&&Va(e,r)}function Ua(e,t){let n=null,r=t;for(;r!==n;)n=r,r=Ma(e,r),r=La(e,r),r=Ra(e,r),r=qa(e,r);return r}function za(e,t,n){return Ua(e,n(t))}const $a={};function Ja(e){return $a[e]}[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((e,t)=>{e.forEach(e=>{$a[e]=t})});const Ga={"==":!0,"!=":!0,"===":!0,"!==":!0},Ha={"*":!0,"/":!0,"%":!0},Xa={">>":!0,">>>":!0,"<<":!0};function Ya(e,t,n){let r=0;for(let u=n=n||0;u<e.length;++u)"\t"===e[u]?r=r+t-r%t:r++;return r}function Ka(e,t){const n=e.slice(1,-1),r={quote:'"',regex:/"/g},u={quote:"'",regex:/'/g},a="'"===t?u:r,o=a===u?r:u;let s=a.quote;return(n.includes(a.quote)||n.includes(o.quote))&&(s=(n.match(a.regex)||[]).length>(n.match(o.regex)||[]).length?o.quote:a.quote),s}function Qa(e,t,n){const r='"'===t?"'":'"',u=e.replace(/\\([\s\S])|(['"])/g,(e,u,a)=>u===r?u:a===t?"\\"+a:a||(n&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(u)?u:"\\"+u));return t+u+t}function Za(e){return e&&(e.comments&&e.comments.length>0&&e.comments.some(e=>eo(e)&&!e.unignore)||e.prettierIgnore)}function eo(e){return"prettier-ignore"===e.value.trim()}function to(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var no={replaceEndOfLineWith:function(e,t){const n=[];for(const r of e.split("\n"))0!==n.length&&n.push(t),n.push(r);return n},getStringWidth:function(e){return e?Oa.test(e)?Ba(e):e.length:0},getMaxContinuousCount:function(e,t){const n=e.match(new RegExp("(".concat(Na(t),")+"),"g"));return null===n?0:n.reduce((e,n)=>Math.max(e,n.length/t.length),0)},getMinNotPresentContinuousCount:function(e,t){const n=e.match(new RegExp("(".concat(Na(t),")+"),"g"));if(null===n)return 0;const r=new Map;let u=0;for(const a of n){const e=a.length/t.length;r.set(e,!0),e>u&&(u=e)}for(let a=1;a<u;a++)if(!r.get(a))return a;return u+1},getPrecedence:Ja,shouldFlatten:function(e,t){return Ja(t)===Ja(e)&&"**"!==e&&(!Ga[e]||!Ga[t])&&!("%"===t&&Ha[e]||"%"===e&&Ha[t])&&(t===e||!Ha[t]||!Ha[e])&&(!Xa[e]||!Xa[t])},isBitwiseOperator:function(e){return!!Xa[e]||"|"===e||"^"===e||"&"===e},getPenultimate:function(e){return e.length>1?e[e.length-2]:null},getLast:gu,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Ua,getNextNonSpaceNonCommentCharacterIndex:za,getNextNonSpaceNonCommentCharacter:function(e,t,n){return e.charAt(za(e,t,n))},skip:Pa,skipWhitespace:Ia,skipSpaces:Ma,skipToLineEnd:_a,skipEverythingButNewLine:ja,skipInlineComment:La,skipTrailingComment:Ra,skipNewline:qa,isNextLineEmptyAfterIndex:Wa,isNextLineEmpty:function(e,t,n){return Wa(e,n(t))},isPreviousLineEmpty:function(e,t,n){let r=n(t)-1;return r=Ma(e,r,{backwards:!0}),r=qa(e,r,{backwards:!0}),r=Ma(e,r,{backwards:!0}),r!==qa(e,r,{backwards:!0})},hasNewline:Va,hasNewlineInRange:function(e,t,n){for(let r=t;r<n;++r)if("\n"===e.charAt(r))return!0;return!1},hasSpaces:function(e,t,n){return Ma(e,(n=n||{}).backwards?t-1:t,n)!==t},setLocStart:function(e,t){e.range?e.range[0]=t:e.start=t},setLocEnd:function(e,t){e.range?e.range[1]=t:e.end=t},startsWithNoLookaheadToken:function e(t,n){switch((t=function e(t){return t.left?e(t.left):t}(t)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return n;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return e(t.object,n);case"TaggedTemplateExpression":return"FunctionExpression"!==t.tag.type&&e(t.tag,n);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==t.callee.type&&e(t.callee,n);case"ConditionalExpression":return e(t.test,n);case"UpdateExpression":return!t.prefix&&e(t.argument,n);case"BindExpression":return t.object&&e(t.object,n);case"SequenceExpression":return e(t.expressions[0],n);case"TSAsExpression":return e(t.expression,n);default:return!1}},getAlignmentSize:Ya,getIndentSize:function(e,t){const n=e.lastIndexOf("\n");return-1===n?0:Ya(e.slice(n+1).match(/^[ \t]*/)[0],t)},getPreferredQuote:Ka,printString:function(e,t,n){const r=e.slice(1,-1),u=!r.includes('"')&&!r.includes("'"),a="json"===t.parser?'"':t.__isInHtmlAttribute?"'":Ka(e,t.singleQuote?"'":'"');return n?u?a+r+a:e:Qa(r,a,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.embeddedInHtml))},printNumber:function(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},hasIgnoreComment:function(e){return Za(e.getValue())},hasNodeIgnoreComment:Za,isNodeIgnoreComment:eo,makeString:Qa,addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,to(e,t)},addDanglingComment:function(e,t){t.leading=!1,t.trailing=!1,to(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,to(e,t)},isWithinParentArrayProperty:function(e,t){const n=e.getValue(),r=e.getParentNode();if(null==r)return!1;if(!Array.isArray(r[t]))return!1;const u=e.getName();return r[t][u]===n}},ro={guessEndOfLine:function(e){const t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}};const{getStringWidth:uo}=no,{convertEndOfLineToChars:ao}=ro,{concat:oo,fill:so,cursor:io}=Aa;let lo;function co(e,t){return fo(e,{type:"indent"},t)}function po(e,t,n){return t===-1/0?e.root||{value:"",length:0,queue:[]}:t<0?fo(e,{type:"dedent"},n):t?"root"===t.type?Object.assign({},e,{root:e}):fo(e,"string"===typeof t?{type:"stringAlign",n:t}:{type:"numberAlign",n:t},n):e}function fo(e,t,n){const r="dedent"===t.type?e.queue.slice(0,-1):e.queue.concat(t);let u="",a=0,o=0,s=0;for(const f of r)switch(f.type){case"indent":c(),n.useTabs?i(1):l(n.tabWidth);break;case"stringAlign":c(),u+=f.n,a+=f.n.length;break;case"numberAlign":o+=1,s+=f.n;break;default:throw new Error("Unexpected type '".concat(f.type,"'"))}return p(),Object.assign({},e,{value:u,length:a,queue:r});function i(e){u+="\t".repeat(e),a+=n.tabWidth*e}function l(e){u+=" ".repeat(e),a+=e}function c(){n.useTabs?(o>0&&i(o),d()):p()}function p(){s>0&&l(s),d()}function d(){o=0,s=0}}function ho(e){if(0===e.length)return 0;let t=0;for(;e.length>0&&"string"===typeof e[e.length-1]&&e[e.length-1].match(/^[ \t]*$/);)t+=e.pop().length;if(e.length&&"string"===typeof e[e.length-1]){const n=e[e.length-1].replace(/[ \t]*$/,"");t+=e[e.length-1].length-n.length,e[e.length-1]=n}return t}function mo(e,t,n,r,u){let a=t.length;const o=[e],s=[];for(;n>=0;){if(0===o.length){if(0===a)return!0;o.push(t[a-1]),a--;continue}const[e,i,l]=o.pop();if("string"===typeof l)s.push(l),n-=uo(l);else switch(l.type){case"concat":for(let t=l.parts.length-1;t>=0;t--)o.push([e,i,l.parts[t]]);break;case"indent":o.push([co(e,r),i,l.contents]);break;case"align":o.push([po(e,l.n,r),i,l.contents]);break;case"trim":n+=ho(s);break;case"group":if(u&&l.break)return!1;o.push([e,l.break?1:i,l.contents]),l.id&&(lo[l.id]=o[o.length-1][1]);break;case"fill":for(let t=l.parts.length-1;t>=0;t--)o.push([e,i,l.parts[t]]);break;case"if-break":{const t=l.groupId?lo[l.groupId]:i;1===t&&l.breakContents&&o.push([e,i,l.breakContents]),2===t&&l.flatContents&&o.push([e,i,l.flatContents]);break}case"line":switch(i){case 2:if(!l.hard){l.soft||(s.push(" "),n-=1);break}return!0;case 1:return!0}}}return!1}const Do={};function go(e,t,n,r){const u=[e];for(;0!==u.length;){const e=u.pop();if(e===Do){n(u.pop());continue}let a=!0;if(t&&!1===t(e)&&(a=!1),n&&(u.push(e),u.push(Do)),a)if("concat"===e.type||"fill"===e.type)for(let t=e.parts.length-1;t>=0;--t)u.push(e.parts[t]);else if("if-break"===e.type)e.flatContents&&u.push(e.flatContents),e.breakContents&&u.push(e.breakContents);else if("group"===e.type&&e.expandedStates)if(r)for(let t=e.expandedStates.length-1;t>=0;--t)u.push(e.expandedStates[t]);else u.push(e.contents);else e.contents&&u.push(e.contents)}}function yo(e,t){if("concat"===e.type||"fill"===e.type){const n=e.parts.map(e=>yo(e,t));return t(Object.assign({},e,{parts:n}))}if("if-break"===e.type){const n=e.breakContents&&yo(e.breakContents,t),r=e.flatContents&&yo(e.flatContents,t);return t(Object.assign({},e,{breakContents:n,flatContents:r}))}if(e.contents){const n=yo(e.contents,t);return t(Object.assign({},e,{contents:n}))}return t(e)}function Eo(e,t,n){let r=n,u=!1;return go(e,(function(e){const n=t(e);if(void 0!==n&&(u=!0,r=n),u)return!1})),r}function Co(e){return"string"!==typeof e&&("line"===e.type||void 0)}function bo(e){return!("group"!==e.type||!e.break)||!("line"!==e.type||!e.hard)||"break-parent"===e.type||void 0}function Ao(e){if(e.length>0){const t=e[e.length-1];t.expandedStates||(t.break=!0)}return null}function Fo(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}function vo(e){if("concat"===e.type){const t=[];for(let n=0;n<e.parts.length;++n){const r=e.parts[n];if("string"!==typeof r&&"concat"===r.type)t.push(...vo(r).parts);else{const e=vo(r);""!==e&&t.push(e)}}return Object.assign({},e,{parts:t})}return"if-break"===e.type?Object.assign({},e,{breakContents:null!=e.breakContents?vo(e.breakContents):null,flatContents:null!=e.flatContents?vo(e.flatContents):null}):"group"===e.type?Object.assign({},e,{contents:vo(e.contents),expandedStates:e.expandedStates?e.expandedStates.map(vo):e.expandedStates}):e.contents?Object.assign({},e,{contents:vo(e.contents)}):e}function xo(e){if("string"===typeof e)return JSON.stringify(e);if("line"===e.type)return e.literal?"literalline":e.hard?"hardline":e.soft?"softline":"line";if("break-parent"===e.type)return"breakParent";if("trim"===e.type)return"trim";if("concat"===e.type)return"["+e.parts.map(xo).join(", ")+"]";if("indent"===e.type)return"indent("+xo(e.contents)+")";if("align"===e.type)return e.n===-1/0?"dedentToRoot("+xo(e.contents)+")":e.n<0?"dedent("+xo(e.contents)+")":"root"===e.n.type?"markAsRoot("+xo(e.contents)+")":"align("+JSON.stringify(e.n)+", "+xo(e.contents)+")";if("if-break"===e.type)return"ifBreak("+xo(e.breakContents)+(e.flatContents?", "+xo(e.flatContents):"")+")";if("group"===e.type)return e.expandedStates?"conditionalGroup(["+e.expandedStates.map(xo).join(",")+"])":(e.break?"wrappedGroup":"group")+"("+xo(e.contents)+")";if("fill"===e.type)return"fill("+e.parts.map(xo).join(", ")+")";if("line-suffix"===e.type)return"lineSuffix("+xo(e.contents)+")";if("line-suffix-boundary"===e.type)return"lineSuffixBoundary";throw new Error("Unknown doc type "+e.type)}var So={builders:Aa,printer:{printDocToString:function(e,t){lo={};const n=t.printWidth,r=ao(t.endOfLine);let u=0;const a=[[{value:"",length:0,queue:[]},1,e]],o=[];let s=!1,i=[];for(;0!==a.length;){const[e,l,c]=a.pop();if("string"===typeof c){const e="\n"!==r&&c.includes("\n")?c.replace(/\n/g,r):c;o.push(e),u+=uo(e)}else switch(c.type){case"cursor":o.push(io.placeholder);break;case"concat":for(let t=c.parts.length-1;t>=0;t--)a.push([e,l,c.parts[t]]);break;case"indent":a.push([co(e,t),l,c.contents]);break;case"align":a.push([po(e,c.n,t),l,c.contents]);break;case"trim":u-=ho(o);break;case"group":switch(l){case 2:if(!s){a.push([e,c.break?1:2,c.contents]);break}case 1:{s=!1;const r=[e,2,c.contents],o=n-u;if(!c.break&&mo(r,a,o,t))a.push(r);else if(c.expandedStates){const n=c.expandedStates[c.expandedStates.length-1];if(c.break){a.push([e,1,n]);break}for(let r=1;r<c.expandedStates.length+1;r++){if(r>=c.expandedStates.length){a.push([e,1,n]);break}{const n=[e,2,c.expandedStates[r]];if(mo(n,a,o,t)){a.push(n);break}}}}else a.push([e,1,c.contents]);break}}c.id&&(lo[c.id]=a[a.length-1][1]);break;case"fill":{const r=n-u,{parts:o}=c;if(0===o.length)break;const[s,i]=o,p=[e,2,s],d=[e,1,s],f=mo(p,[],r,t,!0);if(1===o.length){f?a.push(p):a.push(d);break}const h=[e,2,i],m=[e,1,i];if(2===o.length){f?(a.push(h),a.push(p)):(a.push(m),a.push(d));break}o.splice(0,2);const D=[e,l,so(o)],g=o[0];mo([e,2,oo([s,i,g])],[],r,t,!0)?(a.push(D),a.push(h),a.push(p)):f?(a.push(D),a.push(m),a.push(p)):(a.push(D),a.push(m),a.push(d));break}case"if-break":{const t=c.groupId?lo[c.groupId]:l;1===t&&c.breakContents&&a.push([e,l,c.breakContents]),2===t&&c.flatContents&&a.push([e,l,c.flatContents]);break}case"line-suffix":i.push([e,l,c.contents]);break;case"line-suffix-boundary":i.length>0&&a.push([e,l,{type:"line",hard:!0}]);break;case"line":switch(l){case 2:if(!c.hard){c.soft||(o.push(" "),u+=1);break}s=!0;case 1:if(i.length){a.push([e,l,c]),a.push(...i.reverse()),i=[];break}c.literal?e.root?(o.push(r,e.root.value),u=e.root.length):(o.push(r),u=0):(u-=ho(o),o.push(r+e.value),u=e.length)}}}const l=o.indexOf(io.placeholder);if(-1!==l){const e=o.indexOf(io.placeholder,l+1),t=o.slice(0,l).join(""),n=o.slice(l+1,e).join("");return{formatted:t+n+o.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:n}}return{formatted:o.join("")}}},utils:{isEmpty:function(e){return"string"===typeof e&&0===e.length},willBreak:function(e){return Eo(e,bo,!1)},isLineNext:function(e){return Eo(e,Co,!1)},traverseDoc:go,findInDoc:Eo,mapDoc:yo,propagateBreaks:function(e){const t=new Set,n=[];go(e,(function(e){if("break-parent"===e.type&&Ao(n),"group"===e.type){if(n.push(e),t.has(e))return!1;t.add(e)}}),(function(e){"group"===e.type&&n.pop().break&&Ao(n)}),!0)},removeLines:function(e){return yo(e,Fo)},stripTrailingHardline:function e(t){if("concat"===t.type&&0!==t.parts.length){const n=t.parts[t.parts.length-1];if("concat"===n.type)return 2===n.parts.length&&n.parts[0].hard&&"break-parent"===n.parts[1].type?{type:"concat",parts:t.parts.slice(0,-1)}:{type:"concat",parts:t.parts.slice(0,-1).concat(e(n))}}return t}},debug:{printDocToDebug:e=>xo(vo(e))}};const{getMaxContinuousCount:wo,getStringWidth:Bo,getAlignmentSize:To,getIndentSize:ko,skip:No,skipWhitespace:Oo,skipSpaces:Po,skipNewline:Io,skipToLineEnd:Mo,skipEverythingButNewLine:_o,skipInlineComment:jo,skipTrailingComment:Lo,hasNewline:Ro,hasNewlineInRange:qo,hasSpaces:Vo,isNextLineEmpty:Wo,isNextLineEmptyAfterIndex:Uo,isPreviousLineEmpty:zo,getNextNonSpaceNonCommentCharacterIndex:$o,makeString:Jo,addLeadingComment:Go,addDanglingComment:Ho,addTrailingComment:Xo}=no;var Yo={getMaxContinuousCount:wo,getStringWidth:Bo,getAlignmentSize:To,getIndentSize:ko,skip:No,skipWhitespace:Oo,skipSpaces:Po,skipNewline:Io,skipToLineEnd:Mo,skipEverythingButNewLine:_o,skipInlineComment:jo,skipTrailingComment:Lo,hasNewline:Ro,hasNewlineInRange:qo,hasSpaces:Vo,isNextLineEmpty:Wo,isNextLineEmptyAfterIndex:Uo,isPreviousLineEmpty:zo,getNextNonSpaceNonCommentCharacterIndex:$o,makeString:Jo,addLeadingComment:Go,addDanglingComment:Ho,addTrailingComment:Xo};const{concat:Ko,line:Qo,hardline:Zo,breakParent:es,indent:ts,lineSuffix:ns,join:rs,cursor:us}=So.builders,{hasNewline:as,skipNewline:os,isPreviousLineEmpty:ss}=no,{addLeadingComment:is,addDanglingComment:ls,addTrailingComment:cs}=Yo,ps=Symbol("child-nodes");function ds(e,t,n){if(!e)return;const{printer:r,locStart:u,locEnd:a}=t;if(n){if(r.canAttachComment&&r.canAttachComment(e)){let t;for(t=n.length-1;t>=0&&!(u(n[t])<=u(e)&&a(n[t])<=a(e));--t);return void n.splice(t+1,0,e)}}else if(e[ps])return e[ps];const o=r.getCommentChildNodes&&r.getCommentChildNodes(e,t)||"object"===typeof e&&Object.keys(e).filter(e=>"enclosingNode"!==e&&"precedingNode"!==e&&"followingNode"!==e).map(t=>e[t]);return o?(n||Object.defineProperty(e,ps,{value:n=[],enumerable:!1}),o.forEach(e=>{ds(e,t,n)}),n):void 0}function fs(e,t,n){const r=e.length;if(0===r)return;const{precedingNode:u,followingNode:a,enclosingNode:o}=e[0],s=n.printer.getGapRegex&&n.printer.getGapRegex(o)||/^[\s(]*$/;let i,l=n.locStart(a);for(i=r;i>0;--i){const r=e[i-1];ha.strictEqual(r.precedingNode,u),ha.strictEqual(r.followingNode,a);const o=t.slice(n.locEnd(r),l);if(!s.test(o))break;l=n.locStart(r)}e.forEach((e,t)=>{t<i?cs(u,e):is(a,e)}),e.length=0}function hs(e,t){return e.getValue().printed=!0,t.printer.printComment(e,t)}function ms(e,t,n){const r=n.locStart(t)-1;for(let a=1;a<e.length;++a)if(r<(u=e[a],void 0!==u.start?{start:u.start,end:u.end}:{start:u.range[0],end:u.range[1]}).start)return a-1;var u;return 0}function Ds(e,t,n){return e.getNode()===t.cursorNode&&e.getValue()?Ko([us,n,us]):n}var gs={attach:function(e,t,n,r){if(!Array.isArray(e))return;const u=[],{locStart:a,locEnd:o}=r;e.forEach((s,i)=>{if("json"===r.parser||"json5"===r.parser||"__js_expression"===r.parser||"__vue_expression"===r.parser){if(a(s)-a(t)<=0)return void is(t,s);if(o(s)-o(t)>=0)return void cs(t,s)}!function e(t,n,r){const{locStart:u,locEnd:a}=r,o=ds(t,r);let s,i,l=0,c=o.length;for(;l<c;){const t=l+c>>1,p=o[t];if(u(p)-u(n)<=0&&a(n)-a(p)<=0)return n.enclosingNode=p,void e(p,n,r);if(a(p)-u(n)<=0)s=p,l=t+1;else{if(!(a(n)-u(p)<=0))throw new Error("Comment location overlaps with node location");i=p,c=t}}if(n.enclosingNode&&"TemplateLiteral"===n.enclosingNode.type){const{quasis:e}=n.enclosingNode,t=ms(e,n,r);s&&ms(e,s,r)!==t&&(s=null),i&&ms(e,i,r)!==t&&(i=null)}s&&(n.precedingNode=s),i&&(n.followingNode=i)}(t,s,r);const{precedingNode:l,enclosingNode:c,followingNode:p}=s,d=r.printer.handleComments&&r.printer.handleComments.ownLine?r.printer.handleComments.ownLine:()=>!1,f=r.printer.handleComments&&r.printer.handleComments.endOfLine?r.printer.handleComments.endOfLine:()=>!1,h=r.printer.handleComments&&r.printer.handleComments.remaining?r.printer.handleComments.remaining:()=>!1,m=e.length-1===i;if(as(n,a(s),{backwards:!0}))d(s,n,r,t,m)||(p?is(p,s):l?cs(l,s):ls(c||t,s));else if(as(n,o(s)))f(s,n,r,t,m)||(l?cs(l,s):p?is(p,s):ls(c||t,s));else if(h(s,n,r,t,m));else if(l&&p){const e=u.length;e>0&&u[e-1].followingNode!==s.followingNode&&fs(u,n,r),u.push(s)}else l?cs(l,s):p?is(p,s):ls(c||t,s)}),fs(u,n,r),e.forEach(e=>{delete e.precedingNode,delete e.enclosingNode,delete e.followingNode})},printComments:function(e,t,n,r){const u=e.getValue(),a=t(e),o=u&&u.comments;if(!o||0===o.length)return Ds(e,n,a);const s=[],i=[r?";":"",a];return e.each(e=>{const t=e.getValue(),{leading:r,trailing:u}=t;if(r){const r=function(e,t,n){const r=e.getValue(),u=hs(e,n);if(!u)return"";if(n.printer.isBlockComment&&n.printer.isBlockComment(r)){const e=as(n.originalText,n.locEnd(r))?as(n.originalText,n.locStart(r),{backwards:!0})?Zo:Qo:" ";return Ko([u,e])}return Ko([u,Zo])}(e,0,n);if(!r)return;s.push(r);const u=n.originalText,a=os(u,n.locEnd(t));!1!==a&&as(u,a)&&s.push(Zo)}else u&&i.push(function(e,t,n){const r=e.getValue(),u=hs(e,n);if(!u)return"";const a=n.printer.isBlockComment&&n.printer.isBlockComment(r),o=e.getNode(1),s=e.getNode(2),i=s&&("ClassDeclaration"===s.type||"ClassExpression"===s.type)&&s.superClass===o;if(as(n.originalText,n.locStart(r),{backwards:!0})){const e=ss(n.originalText,r,n.locStart);return ns(Ko([Zo,e?Zo:"",u]))}return Ko(a||i?[" ",u]:[ns(Ko([" ",u])),a?"":es])}(e,0,n))},"comments"),Ds(e,n,Ko(s.concat(i)))},printDanglingComments:function(e,t,n,r){const u=[],a=e.getValue();return a&&a.comments?(e.each(e=>{const n=e.getValue();!n||n.leading||n.trailing||r&&!r(n)||u.push(hs(e,t))},"comments"),0===u.length?"":n?rs(Zo,u):ts(Ko([Zo,rs(Zo,u)]))):""},getSortedChildNodes:ds};function ys(e,t){const n=Es(e.stack,t);return-1===n?null:e.stack[n]}function Es(e,t){for(let n=e.length-1;n>=0;n-=2){const r=e[n];if(r&&!Array.isArray(r)&&--t<0)return n}return-1}var Cs=class{constructor(e){this.stack=[e]}getName(){const{stack:e}=this,{length:t}=e;return t>1?e[t-2]:null}getValue(){return gu(this.stack)}getNode(e=0){return ys(this,e)}getParentNode(e=0){return ys(this,e+1)}call(e,...t){const{stack:n}=this,{length:r}=n;let u=gu(n);for(const o of t)u=u[o],n.push(o,u);const a=e(this);return n.length=r,a}callParent(e,t=0){const n=Es(this.stack,t+1),r=this.stack.splice(n+1),u=e(this);return this.stack.push(...r),u}each(e,...t){const{stack:n}=this,{length:r}=n;let u=gu(n);for(const a of t)u=u[a],n.push(a,u);for(let a=0;a<u.length;++a)a in u&&(n.push(a,u[a]),e(this),n.length-=2);n.length=r}map(e,...t){const{stack:n}=this,{length:r}=n;let u=gu(n);for(const o of t)u=u[o],n.push(o,u);const a=new Array(u.length);for(let o=0;o<u.length;++o)o in u&&(n.push(o,u[o]),a[o]=e(this,o),n.length-=2);return n.length=r,a}match(...e){let t=this.stack.length-1,n=null,r=this.stack[t--];for(const u of e){if(void 0===r)return!1;let e=null;if("number"===typeof n&&(e=n,n=this.stack[t--],r=this.stack[t--]),u&&!u(r,n,e))return!1;n=this.stack[t--],r=this.stack[t--]}return!0}};const{normalize:bs}=da;var As={printSubtree:function(e,t,n,r){if(n.printer.embed)return n.printer.embed(e,t,(e,t)=>function(e,t,n,r){const u=bs(Object.assign({},n,{},t,{parentParser:n.parser,embeddedInHtml:!(!n.embeddedInHtml&&"html"!==n.parser&&"vue"!==n.parser&&"angular"!==n.parser&&"lwc"!==n.parser),originalText:e}),{passThrough:!0}),a=oa.parse(e,u),{ast:o}=a;e=a.text;const s=o.comments;return delete o.comments,gs.attach(s,o,e,u),r(o,u)}(e,t,n,r),n)}};const Fs=So,vs=Fs.builders,{concat:xs,hardline:Ss,addAlignmentToDoc:ws}=vs,Bs=Fs.utils;function Ts(e,t,n=0){const{printer:r}=t;r.preprocess&&(e=r.preprocess(e,t));const u=new Map;let a=function e(n,a){const o=n.getValue(),s=o&&"object"===typeof o&&void 0===a;if(s&&u.has(o))return u.get(o);let i;return i=r.willPrintOwnComments&&r.willPrintOwnComments(n,t)?ks(n,t,e,a):gs.printComments(n,n=>ks(n,t,e,a),t,a&&a.needsSemi),s&&u.set(o,i),i}(new Cs(e));return n>0&&(a=ws(xs([Ss,a]),n,t.tabWidth)),Bs.propagateBreaks(a),a}function ks(e,t,n,r){ha.ok(e instanceof Cs);const u=e.getValue(),{printer:a}=t;if(a.hasPrettierIgnore&&a.hasPrettierIgnore(e))return t.originalText.slice(t.locStart(u),t.locEnd(u));if(u)try{const r=As.printSubtree(e,n,t,Ts);if(r)return r}catch(o){if(Ye.PRETTIER_DEBUG)throw o}return a.print(e,t,n,r)}var Ns=Ts;function Os(e,t,n,r,u){r=r||(()=>!0),u=u||[];const a=n.locStart(e,n.locStart),o=n.locEnd(e,n.locEnd);if(a<=t&&t<=o){for(const a of gs.getSortedChildNodes(e,n)){const o=Os(a,t,n,r,[e].concat(u));if(o)return o}if(r(e))return{node:e,parentNodes:u}}}function Ps(e,t){if(null==t)return!1;const n=["FunctionDeclaration","BlockStatement","BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","EmptyStatement","ExpressionStatement","ForInStatement","ForStatement","IfStatement","LabeledStatement","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","VariableDeclaration","WhileStatement","WithStatement","ClassDeclaration","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","TypeAlias","InterfaceDeclaration","TypeAliasDeclaration","ExportAssignment","ExportDeclaration"],r=["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral"],u=["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"];switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":return n.includes(t.type);case"json":return r.includes(t.type);case"graphql":return u.includes(t.kind);case"vue":return"root"!==t.tag}return!1}var Is={calculateRange:function(e,t,n){const r=e.slice(t.rangeStart,t.rangeEnd),u=Math.max(t.rangeStart+r.search(/\S/),t.rangeStart);let a;for(a=t.rangeEnd;a>t.rangeStart&&!e[a-1].match(/\S/);--a);const o=Os(n,u,t,e=>Ps(t,e)),s=Os(n,a,t,e=>Ps(t,e));if(!o||!s)return{rangeStart:0,rangeEnd:0};const i=function(e,t,n){let r=e.node,u=t.node;if(r===u)return{startNode:r,endNode:u};for(const a of t.parentNodes){if(!("Program"!==a.type&&"File"!==a.type&&n.locStart(a)>=n.locStart(e.node)))break;u=a}for(const a of e.parentNodes){if(!("Program"!==a.type&&"File"!==a.type&&n.locEnd(a)<=n.locEnd(t.node)))break;r=a}return{startNode:r,endNode:u}}(o,s,t),{startNode:l,endNode:c}=i;return{rangeStart:Math.min(t.locStart(l,t.locStart),t.locStart(c,t.locStart)),rangeEnd:Math.max(t.locEnd(l,t.locEnd),t.locEnd(c,t.locEnd))}},findNodeAtOffset:Os},Ms=Ze(X);const _s=da.normalize,{guessEndOfLine:js,convertEndOfLineToChars:Ls}=ro,{printer:{printDocToString:Rs},debug:{printDocToDebug:qs}}=So,Vs=Symbol("cursor"),Ws={cursorOffset:"<<<PRETTIER_CURSOR>>>",rangeStart:"<<<PRETTIER_RANGE_START>>>",rangeEnd:"<<<PRETTIER_RANGE_END>>>"};function Us(e,t,n){const r=t.comments;return r&&(delete t.comments,gs.attach(r,t,e,n)),t.tokens=[],n.originalText="yaml"===n.parser?e:e.trimEnd(),r}function zs(e,t,n){if(!e||!e.trim().length)return{formatted:"",cursorOffset:0};n=n||0;const r=oa.parse(e,t),{ast:u}=r;if(e=r.text,t.cursorOffset>=0){const e=Is.findNodeAtOffset(u,t.cursorOffset,t);e&&e.node&&(t.cursorNode=e.node)}const a=Us(e,u,t),o=Ns(u,t,n),s=Rs(o,t);if(function(e){if(e){for(let t=0;t<e.length;++t)if(no.isNodeIgnoreComment(e[t]))return;e.forEach(e=>{if(!e.printed)throw new Error('Comment "'+e.value.trim()+'" was not printed. Please report this error!');delete e.printed})}}(a),n>0){const e=s.formatted.trim();void 0!==s.cursorNodeStart&&(s.cursorNodeStart-=s.formatted.indexOf(e)),s.formatted=e+Ls(t.endOfLine)}if(t.cursorOffset>=0){let n,r,u,a,o;if(t.cursorNode&&s.cursorNodeText?(n=t.locStart(t.cursorNode),r=e.slice(n,t.locEnd(t.cursorNode)),u=t.cursorOffset-n,a=s.cursorNodeStart,o=s.cursorNodeText):(n=0,r=e,u=t.cursorOffset,a=0,o=s.formatted),r===o)return{formatted:s.formatted,cursorOffset:a+u};const i=r.split("");i.splice(u,0,Vs);const l=o.split(""),c=Ms.diffArrays(i,l);let p=a;for(const e of c)if(e.removed){if(e.value.includes(Vs))break}else p+=e.count;return{formatted:s.formatted,cursorOffset:p}}return{formatted:s.formatted}}function $s(e,t){const n=oa.resolveParser(t),r=!n.hasPragma||n.hasPragma(e);if(t.requirePragma&&!r)return{formatted:e};"auto"===t.endOfLine&&(t.endOfLine=js(e));const u=t.cursorOffset>=0,a=t.rangeStart>0,o=t.rangeEnd<e.length;if(e.includes("\r")){const n=[u&&"cursorOffset",a&&"rangeStart",o&&"rangeEnd"].filter(Boolean).sort((e,n)=>t[e]-t[n]);for(let r=n.length-1;r>=0;r--){const u=n[r];e=e.slice(0,t[u])+Ws[u]+e.slice(t[u])}e=e.replace(/\r\n?/g,"\n");for(let r=0;r<n.length;r++){const u=n[r];e=e.replace(Ws[u],(e,n)=>(t[u]=n,""))}}const s="\ufeff"===e.charAt(0);s&&(e=e.slice(1),u&&t.cursorOffset++,a&&t.rangeStart++,o&&t.rangeEnd++),u||(t.cursorOffset=-1),t.rangeStart<0&&(t.rangeStart=0),t.rangeEnd>e.length&&(t.rangeEnd=e.length);const i=a||o?function(e,t){const n=oa.parse(e,t),{ast:r}=n;e=n.text;const u=Is.calculateRange(e,t,r),{rangeStart:a,rangeEnd:o}=u,s=e.slice(a,o),i=Math.min(a,e.lastIndexOf("\n",a)+1),l=e.slice(i,a),c=no.getAlignmentSize(l,t.tabWidth),p=zs(s,Object.assign({},t,{rangeStart:0,rangeEnd:1/0,cursorOffset:t.cursorOffset>=a&&t.cursorOffset<o?t.cursorOffset-a:-1}),c),d=p.formatted.trimEnd(),f=e.slice(0,a),h=e.slice(o);let m,{cursorOffset:D}=t;if(t.cursorOffset>=o?D=t.cursorOffset-o+(a+d.length):void 0!==p.cursorOffset&&(D=p.cursorOffset+a),"lf"===t.endOfLine)m=f+d+h;else{const e=Ls(t.endOfLine);if(D>=0){const t=[f,d,h];let n=0,r=D;for(;n<t.length;){const e=t[n];if(r<e.length){t[n]=t[n].slice(0,r)+Ws.cursorOffset+t[n].slice(r);break}n++,r-=e.length}const[u,a,o]=t;m=(u.replace(/\n/g,e)+a+o.replace(/\n/g,e)).replace(Ws.cursorOffset,(e,t)=>(D=t,""))}else m=f.replace(/\n/g,e)+d+h.replace(/\n/g,e)}return{formatted:m,cursorOffset:D}}(e,t):zs(t.insertPragma&&t.printer.insertPragma&&!r?t.printer.insertPragma(e):e,t);return s&&(i.formatted="\ufeff"+i.formatted,u&&i.cursorOffset++),i}var Js={formatWithCursor:(e,t)=>$s(e,t=_s(t)),parse(e,t,n){t=_s(t),e.includes("\r")&&(e=e.replace(/\r\n?/g,"\n"));const r=oa.parse(e,t);return n&&(r.ast=fa(r.ast,t)),r},formatAST(e,t){t=_s(t);const n=Ns(e,t);return Rs(n,t)},formatDoc:(e,t)=>$s(qs(e),t=_s(Object.assign({},t,{parser:"babel"}))).formatted,printToDoc(e,t){t=_s(t);const n=oa.parse(e,t),{ast:r}=n;return Us(e=n.text,r,t),Ns(r,t)},printDocToString:(e,t)=>Rs(e,_s(t))},Gs=function(e,t,n){if(["raw","raws","sourceIndex","source","before","after","trailingComma"].forEach(e=>{delete t[e]}),"yaml"===e.type&&delete t.value,"css-comment"===e.type&&"css-root"===n.type&&0!==n.nodes.length&&(n.nodes[0]===e||("yaml"===n.nodes[0].type||"toml"===n.nodes[0].type)&&n.nodes[1]===e)&&(delete t.text,/^\*\s*@(format|prettier)\s*$/.test(e.text)))return null;if("media-query"!==e.type&&"media-query-list"!==e.type&&"media-feature-expression"!==e.type||delete t.value,"css-rule"===e.type&&delete t.params,"selector-combinator"===e.type&&(t.value=t.value.replace(/\s+/g," ")),"media-feature"===e.type&&(t.value=t.value.replace(/ /g,"")),("value-word"===e.type&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerCase()),"css-decl"===e.type&&(t.prop=t.prop.toLowerCase()),"css-atrule"!==e.type&&"css-import"!==e.type||(t.name=t.name.toLowerCase()),"value-number"===e.type&&(t.unit=t.unit.toLowerCase()),"media-feature"!==e.type&&"media-keyword"!==e.type&&"media-type"!==e.type&&"media-unknown"!==e.type&&"media-url"!==e.type&&"media-value"!==e.type&&"selector-attribute"!==e.type&&"selector-string"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"value-string"!==e.type||!t.value||(t.value=t.value.replace(/'/g,'"').replace(/\\([^a-fA-F\d])/g,"$1")),"selector-attribute"===e.type&&(t.attribute=t.attribute.trim(),t.namespace&&"string"===typeof t.namespace&&(t.namespace=t.namespace.trim(),0===t.namespace.length&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^['"]|['"]$/g,""),delete t.quoted)),"media-value"!==e.type&&"media-type"!==e.type&&"value-number"!==e.type&&"selector-root-invalid"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"selector-tag"!==e.type||!t.value||(t.value=t.value.replace(/([\d.eE+-]+)([a-zA-Z]*)/g,(e,t,n)=>{const r=Number(t);return isNaN(r)?e:r+n.toLowerCase()})),"selector-tag"===e.type){const n=e.value.toLowerCase();["from","to"].includes(n)&&(t.value=n)}"css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value};const{builders:{hardline:Hs,literalline:Xs,concat:Ys,markAsRoot:Ks},utils:{mapDoc:Qs}}=So;var Zs=function(e,t,n){const r=e.getValue();return"yaml"===r.type?Ks(Ys(["---",Hs,r.value.trim()?function(e){return Qs(e,e=>"string"===typeof e&&e.includes("\n")?Ys(e.split(/(\n)/g).map((e,t)=>t%2===0?e:Xs)):e)}(n(r.value,{parser:"yaml"})):"","---",Hs])):null};const ei=e=>{if("string"!==typeof e)throw new TypeError("Expected a string");const t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;const n=t.filter(e=>"\r\n"===e).length;return n>t.length-n?"\r\n":"\n"};var ti=ei;ti.graceful=e=>"string"===typeof e&&ei(e)||"\n";var ni=Qe((function(e,t){function n(){const e=Bn;return n=function(){return e},e}function r(){const e=(t=ti)&&t.__esModule?t:{default:t};var t;return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){const t=e.match(o);return t?t[0].trimLeft():""},t.strip=function(e){const t=e.match(o);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return d(e).pragmas},t.parseWithComments=d,t.print=function({comments:e="",pragmas:t={}}){const u=(0,r().default)(e)||n().EOL,a=Object.keys(t),o=a.map(e=>f(e,t[e])).reduce((e,t)=>e.concat(t),[]).map(e=>" * "+e+u).join("");if(!e){if(0===a.length)return"";if(1===a.length&&!Array.isArray(t[a[0]])){const e=t[a[0]];return"".concat("/**"," ").concat(f(a[0],e)[0]).concat(" */")}}const s=e.split(u).map(e=>"".concat(" *"," ").concat(e)).join(u)+u;return"/**"+u+(e?s:"")+(e&&a.length?" *"+u:"")+o+" */"};const u=/\*\/$/,a=/^\/\*\*/,o=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,s=/(^|\s+)\/\/([^\r\n]*)/g,i=/^(\r?\n)+/,l=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,c=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g;function d(e){const t=(0,r().default)(e)||n().EOL;e=e.replace(a,"").replace(u,"").replace(p,"$1");let o="";for(;o!==e;)o=e,e=e.replace(l,"".concat(t,"$1 $2").concat(t));e=e.replace(i,"").trimRight();const d=Object.create(null),f=e.replace(c,"").replace(i,"").trimRight();let h;for(;h=c.exec(e);){const e=h[2].replace(s,"");"string"===typeof d[h[1]]||Array.isArray(d[h[1]])?d[h[1]]=[].concat(d[h[1]],e):d[h[1]]=e}return{comments:f,pragmas:d}}function f(e,t){return[].concat(t).map(t=>"@".concat(e," ").concat(t).trim())}}));Ke(ni),ni.extract,ni.strip,ni.parse,ni.parseWithComments,ni.print;var ri={hasPragma:function(e){const t=Object.keys(ni.parse(ni.extract(e)));return t.includes("prettier")||t.includes("format")},insertPragma:function(e){const t=ni.parseWithComments(ni.extract(e)),n=Object.assign({format:""},t.pragmas),r=ni.print({pragmas:n,comments:t.comments.replace(/^(\s+?\r?\n)+/,"")}).replace(/(\r\n|\r)/g,"\n"),u=ni.strip(e);return r+(u.startsWith("\n")?"\n":"\n\n")+u}};const ui={"---":"yaml","+++":"toml"};var ai=function(e){const t=Object.keys(ui).map(Na).join("|"),n=e.match(new RegExp("^(".concat(t,")[^\\n\\S]*\\n(?:([\\s\\S]*?)\\n)?\\1[^\\n\\S]*(\\n|$)")));if(null===n)return{frontMatter:null,content:e};const[r,u,a]=n;return{frontMatter:{type:ui[u],value:a,raw:r.replace(/\n$/,"")},content:r.replace(/[^\n]/g," ")+e.slice(r.length)}},oi={hasPragma:function(e){return ri.hasPragma(ai(e).content)},insertPragma:function(e){const{frontMatter:t,content:n}=ai(e);return(t?t.raw+"\n\n":"")+ri.insertPragma(n)}},si=function(e,t){let n=0;for(let r=0;r<e.line-1;++r)if(n=t.indexOf("\n",n)+1,-1===n)return-1;return n+e.column};const{getLast:ii,skipEverythingButNewLine:li}=no;var ci={calculateLoc:function e(t,n){if(t&&"object"===typeof t){t.source&&(t.source.startOffset=function(e,t){return e.source?si(e.source.start,t)-1:null}(t,n),t.source.endOffset=function(e,t){if("css-comment"===e.type&&e.inline)return li(t,e.source.startOffset);const n=e.nodes&&ii(e.nodes);return n&&e.source&&!e.source.end&&(e=n),e.source&&e.source.end?si(e.source.end,t):null}(t,n));for(const r in t)e(t[r],n)}},replaceQuotesInInlineComments:function(e){let t,n="initial",r="initial",u=!1;const a=[];for(let o=0;o<e.length;o++){const s=e[o];switch(n){case"initial":if("'"===s){n="single-quotes";continue}if('"'===s){n="double-quotes";continue}if(("u"===s||"U"===s)&&"url("===e.slice(o,o+4).toLowerCase()){n="url",o+=3;continue}if("*"===s&&"/"===e[o-1]){n="comment-block";continue}if("/"===s&&"/"===e[o-1]){n="comment-inline",t=o-1;continue}continue;case"single-quotes":if("'"===s&&"\\"!==e[o-1]&&(n=r,r="initial"),"\n"===s||"\r"===s)return e;continue;case"double-quotes":if('"'===s&&"\\"!==e[o-1]&&(n=r,r="initial"),"\n"===s||"\r"===s)return e;continue;case"url":if(")"===s&&(n="initial"),"\n"===s||"\r"===s)return e;if("'"===s){n="single-quotes",r="url";continue}if('"'===s){n="double-quotes",r="url";continue}continue;case"comment-block":"/"===s&&"*"===e[o-1]&&(n="initial");continue;case"comment-inline":'"'!==s&&"'"!==s||(u=!0),"\n"!==s&&"\r"!==s||(u&&a.push([t,o]),n="initial",u=!1);continue}}for(const[o,s]of a)e=e.slice(0,o)+e.slice(o,s).replace(/'/g,"\ufffe").replace(/"/g,"\uffff")+e.slice(s);return e},restoreQuotesInInlineComments:function(e){return e.replace(/\ufffe/g,"'").replace(/\uffff/g,'"')}};const pi=["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"];function di(e,t){const n=[].concat(t);let r,u=-1;for(;r=e.getParentNode(++u);)if(n.includes(r.type))return u;return-1}function fi(e,t){const n=di(e,t);return-1===n?null:e.getParentNode(n)}function hi(e){return"value-operator"===e.type&&"*"===e.value}function mi(e){return"value-operator"===e.type&&"/"===e.value}function Di(e){return"value-operator"===e.type&&"+"===e.value}function gi(e){return"value-operator"===e.type&&"-"===e.value}function yi(e){return"value-operator"===e.type&&"%"===e.value}function Ei(e){return"value-comma_group"===e.type&&e.groups&&e.groups[1]&&"value-colon"===e.groups[1].type}function Ci(e){return"value-paren_group"===e.type&&e.groups&&e.groups[0]&&Ei(e.groups[0])}var bi={getAncestorCounter:di,getAncestorNode:fi,getPropOfDeclNode:function(e){const t=fi(e,"css-decl");return t&&t.prop&&t.prop.toLowerCase()},maybeToLowerCase:function(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()},insideValueFunctionNode:function(e,t){const n=fi(e,"value-func");return n&&n.value&&n.value.toLowerCase()===t},insideICSSRuleNode:function(e){const t=fi(e,"css-rule");return t&&t.raws&&t.raws.selector&&(t.raws.selector.startsWith(":import")||t.raws.selector.startsWith(":export"))},insideAtRuleNode:function(e,t){const n=[].concat(t),r=fi(e,"css-atrule");return r&&n.includes(r.name.toLowerCase())},insideURLFunctionInImportAtRuleNode:function(e){const t=e.getValue(),n=fi(e,"css-atrule");return n&&"import"===n.name&&"url"===t.groups[0].value&&2===t.groups.length},isKeyframeAtRuleKeywords:function(e,t){const n=fi(e,"css-atrule");return n&&n.name&&n.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(t.toLowerCase())},isWideKeywords:function(e){return["initial","inherit","unset","revert"].includes(e.toLowerCase())},isSCSS:function(e,t){return"less"===e||"scss"===e?"scss"===e:/(\w\s*:\s*[^}:]+|#){|@import[^\n]+(?:url|,)/.test(t)},isLastNode:function(e,t){const n=e.getParentNode();if(!n)return!1;const{nodes:r}=n;return r&&r.indexOf(t)===r.length-1},isLessParser:function(e){return"css"===e.parser||"less"===e.parser},isSCSSControlDirectiveNode:function(e){return"css-atrule"===e.type&&["if","else","for","each","while"].includes(e.name)},isDetachedRulesetDeclarationNode:function(e){return!!e.selector&&("string"===typeof e.selector&&/^@.+:.*$/.test(e.selector)||e.selector.value&&/^@.+:.*$/.test(e.selector.value))},isRelationalOperatorNode:function(e){return"value-word"===e.type&&["<",">","<=",">="].includes(e.value)},isEqualityOperatorNode:function(e){return"value-word"===e.type&&["==","!="].includes(e.value)},isMultiplicationNode:hi,isDivisionNode:mi,isAdditionNode:Di,isSubtractionNode:gi,isModuloNode:yi,isMathOperatorNode:function(e){return hi(e)||mi(e)||Di(e)||gi(e)||yi(e)},isEachKeywordNode:function(e){return"value-word"===e.type&&"in"===e.value},isForKeywordNode:function(e){return"value-word"===e.type&&["from","through","end"].includes(e.value)},isURLFunctionNode:function(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()},isIfElseKeywordNode:function(e){return"value-word"===e.type&&["and","or","not"].includes(e.value)},hasComposesNode:function(e){return e.value&&"value-root"===e.value.type&&e.value.group&&"value-value"===e.value.group.type&&"composes"===e.prop.toLowerCase()},hasParensAroundNode:function(e){return e.value&&e.value.group&&e.value.group.group&&"value-paren_group"===e.value.group.group.type&&null!==e.value.group.group.open&&null!==e.value.group.group.close},hasEmptyRawBefore:function(e){return e.raws&&""===e.raws.before},isSCSSNestedPropertyNode:function(e){return!!e.selector&&e.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*?\n/,"").trim().endsWith(":")},isDetachedRulesetCallNode:function(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},isTemplatePlaceholderNode:function(e){return e.name.startsWith("prettier-placeholder")},isTemplatePropNode:function(e){return e.prop.startsWith("@prettier-placeholder")},isPostcssSimpleVarNode:function(e,t){return"$$"===e.value&&"value-func"===e.type&&t&&"value-word"===t.type&&!t.raws.before},isKeyValuePairNode:Ei,isKeyValuePairInParenGroupNode:Ci,isSCSSMapItemNode:function(e){const t=e.getValue();if(0===t.groups.length)return!1;const n=e.getParentNode(1);if(!Ci(t)&&(!n||!Ci(n)))return!1;const r=fi(e,"css-decl");return!!(r&&r.prop&&r.prop.startsWith("$"))||!!Ci(n)||"value-func"===n.type},isInlineValueCommentNode:function(e){return"value-comment"===e.type&&e.inline},isHashNode:function(e){return"value-word"===e.type&&"#"===e.value},isLeftCurlyBraceNode:function(e){return"value-word"===e.type&&"{"===e.value},isRightCurlyBraceNode:function(e){return"value-word"===e.type&&"}"===e.value},isWordNode:function(e){return["value-word","value-atword"].includes(e.type)},isColonNode:function(e){return"value-colon"===e.type},isMediaAndSupportsKeywords:function(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())},isColorAdjusterFuncNode:function(e){return"value-func"===e.type&&pi.includes(e.value.toLowerCase())},lastLineHasInlineComment:function(e){return/\/\//.test(e.split(/[\r\n]/).pop())}};const{insertPragma:Ai}=oi,{printNumber:Fi,printString:vi,hasIgnoreComment:xi,hasNewline:Si}=no,{isNextLineEmpty:wi}=Yo,{restoreQuotesInInlineComments:Bi}=ci,{builders:{concat:Ti,join:ki,line:Ni,hardline:Oi,softline:Pi,group:Ii,fill:Mi,indent:_i,dedent:ji,ifBreak:Li},utils:{removeLines:Ri}}=So,{getAncestorNode:qi,getPropOfDeclNode:Vi,maybeToLowerCase:Wi,insideValueFunctionNode:Ui,insideICSSRuleNode:zi,insideAtRuleNode:$i,insideURLFunctionInImportAtRuleNode:Ji,isKeyframeAtRuleKeywords:Gi,isWideKeywords:Hi,isSCSS:Xi,isLastNode:Yi,isLessParser:Ki,isSCSSControlDirectiveNode:Qi,isDetachedRulesetDeclarationNode:Zi,isRelationalOperatorNode:el,isEqualityOperatorNode:tl,isMultiplicationNode:nl,isDivisionNode:rl,isAdditionNode:ul,isSubtractionNode:al,isMathOperatorNode:ol,isEachKeywordNode:sl,isForKeywordNode:il,isURLFunctionNode:ll,isIfElseKeywordNode:cl,hasComposesNode:pl,hasParensAroundNode:dl,hasEmptyRawBefore:fl,isKeyValuePairNode:hl,isDetachedRulesetCallNode:ml,isTemplatePlaceholderNode:Dl,isTemplatePropNode:gl,isPostcssSimpleVarNode:yl,isSCSSMapItemNode:El,isInlineValueCommentNode:Cl,isHashNode:bl,isLeftCurlyBraceNode:Al,isRightCurlyBraceNode:Fl,isWordNode:vl,isColonNode:xl,isMediaAndSupportsKeywords:Sl,isColorAdjusterFuncNode:wl,lastLineHasInlineComment:Bl}=bi;function Tl(e){switch(e.trailingComma){case"all":case"es5":return!0;case"none":default:return!1}}function kl(e,t,n){const r=e.getValue(),u=[];let a=0;return e.map(e=>{const o=r.nodes[a-1];if(o&&"css-comment"===o.type&&"prettier-ignore"===o.text.trim()){const n=e.getValue();u.push(t.originalText.slice(t.locStart(n),t.locEnd(n)))}else u.push(e.call(n));a!==r.nodes.length-1&&("css-comment"===r.nodes[a+1].type&&!Si(t.originalText,t.locStart(r.nodes[a+1]),{backwards:!0})&&"yaml"!==r.nodes[a].type&&"toml"!==r.nodes[a].type||"css-atrule"===r.nodes[a+1].type&&"else"===r.nodes[a+1].name&&"css-comment"!==r.nodes[a].type?u.push(" "):(u.push(t.__isHTMLStyleAttribute?Ni:Oi),wi(t.originalText,e.getValue(),t.locEnd)&&"yaml"!==r.nodes[a].type&&"toml"!==r.nodes[a].type&&u.push(Oi))),a++},"nodes"),Ti(u)}const Nl=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g,Ol=new RegExp(Nl.source+"|"+"(".concat(/[$@]?[a-zA-Z_\u0080-\uFFFF][\w\-\u0080-\uFFFF]*/g.source,")?")+"(".concat(/(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g.source,")")+"(".concat(/[a-zA-Z]+/g.source,")?"),"g");function Pl(e,t){return e.replace(Nl,e=>vi(e,t))}function Il(e,t){const n=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:n+e+n}function Ml(e){return e.replace(Ol,(e,t,n,r,u)=>!n&&r?_l(r)+Wi(u||""):e)}function _l(e){return Fi(e).replace(/\.0(?=$|e)/,"")}var jl={print:function(e,t,n){const r=e.getValue();if(!r)return"";if("string"===typeof r)return r;switch(r.type){case"yaml":case"toml":return Ti([r.raw,Oi]);case"css-root":{const r=kl(e,t,n);return r.parts.length?Ti([r,t.__isHTMLStyleAttribute?"":Oi]):r}case"css-comment":{const e=r.inline||r.raws.inline,n=t.originalText.slice(t.locStart(r),t.locEnd(r));return e?n.trimEnd():n}case"css-rule":return Ti([e.call(n,"selector"),r.important?" !important":"",r.nodes?Ti([r.selector&&"selector-unknown"===r.selector.type&&Bl(r.selector.value)?Ni:" ","{",r.nodes.length>0?_i(Ti([Oi,kl(e,t,n)])):"",Oi,"}",Zi(r)?";":""]):";"]);case"css-decl":{const u=e.getParentNode();return Ti([r.raws.before.replace(/[\s;]/g,""),zi(e)?r.prop:Wi(r.prop),":"===r.raws.between.trim()?":":r.raws.between.trim(),r.extend?"":" ",pl(r)?Ri(e.call(n,"value")):e.call(n,"value"),r.raws.important?r.raws.important.replace(/\s*!\s*important/i," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/i," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/i," !global"):r.scssGlobal?" !global":"",r.nodes?Ti([" {",_i(Ti([Pi,kl(e,t,n)])),Pi,"}"]):gl(r)&&!u.raws.semicolon&&";"!==t.originalText[t.locEnd(r)-1]?"":";"])}case"css-atrule":{const u=e.getParentNode(),a=Dl(r)&&!u.raws.semicolon&&";"!==t.originalText[t.locEnd(r)-1];if(Ki(t)){if(r.mixin)return Ti([e.call(n,"selector"),r.important?" !important":"",a?"":";"]);if(r.function)return Ti([r.name,Ti([e.call(n,"params")]),a?"":";"]);if(r.variable)return Ti(["@",r.name,": ",r.value?Ti([e.call(n,"value")]):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?Ti(["{",_i(Ti([r.nodes.length>0?Pi:"",kl(e,t,n)])),Pi,"}"]):"",a?"":";"])}return Ti(["@",ml(r)||r.name.endsWith(":")?r.name:Wi(r.name),r.params?Ti([ml(r)?"":Dl(r)?""===r.raws.afterName?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(r.raws.afterName)?Ti([Oi,Oi]):/^\s*\n/.test(r.raws.afterName)?Oi:" ":" ",e.call(n,"params")]):"",r.selector?_i(Ti([" ",e.call(n,"selector")])):"",r.value?Ii(Ti([" ",e.call(n,"value"),Qi(r)?dl(r)?" ":Ni:""])):"else"===r.name?" ":"",r.nodes?Ti([Qi(r)?"":" ","{",_i(Ti([r.nodes.length>0?Pi:"",kl(e,t,n)])),Pi,"}"]):a?"":";"])}case"media-query-list":{const t=[];return e.each(e=>{const r=e.getValue();"media-query"===r.type&&""===r.value||t.push(e.call(n))},"nodes"),Ii(_i(ki(Ni,t)))}case"media-query":return Ti([ki(" ",e.map(n,"nodes")),Yi(e,r)?"":","]);case"media-type":return Ml(Pl(r.value,t));case"media-feature-expression":return r.nodes?Ti(["(",Ti(e.map(n,"nodes")),")"]):r.value;case"media-feature":return Wi(Pl(r.value.replace(/ +/g," "),t));case"media-colon":return Ti([r.value," "]);case"media-value":return Ml(Pl(r.value,t));case"media-keyword":return Pl(r.value,t);case"media-url":return Pl(r.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":return r.value;case"selector-root":return Ii(Ti([$i(e,"custom-selector")?Ti([qi(e,"css-atrule").customSelector,Ni]):"",ki(Ti([",",$i(e,["extend","custom-selector","nest"])?Ni:Oi]),e.map(n,"nodes"))]));case"selector-selector":return Ii(_i(Ti(e.map(n,"nodes"))));case"selector-comment":return r.value;case"selector-string":return Pl(r.value,t);case"selector-tag":{const t=e.getParentNode(),n=t&&t.nodes.indexOf(r),u=n&&t.nodes[n-1];return Ti([r.namespace?Ti([!0===r.namespace?"":r.namespace.trim(),"|"]):"","selector-nesting"===u.type?r.value:Ml(Gi(e,r.value)?r.value.toLowerCase():r.value)])}case"selector-id":return Ti(["#",r.value]);case"selector-class":return Ti([".",Ml(Pl(r.value,t))]);case"selector-attribute":return Ti(["[",r.namespace?Ti([!0===r.namespace?"":r.namespace.trim(),"|"]):"",r.attribute.trim(),r.operator?r.operator:"",r.value?Il(Pl(r.value.trim(),t),t):"",r.insensitive?" i":"","]"]);case"selector-combinator":{if("+"===r.value||">"===r.value||"~"===r.value||">>>"===r.value){const t=e.getParentNode(),n="selector-selector"===t.type&&t.nodes[0]===r?"":Ni;return Ti([n,r.value,Yi(e,r)?"":" "])}const n=r.value.trim().startsWith("(")?Ni:"",u=Ml(Pl(r.value.trim(),t))||Ni;return Ti([n,u])}case"selector-universal":return Ti([r.namespace?Ti([!0===r.namespace?"":r.namespace.trim(),"|"]):"",r.value]);case"selector-pseudo":return Ti([Wi(r.value),r.nodes&&r.nodes.length>0?Ti(["(",ki(", ",e.map(n,"nodes")),")"]):""]);case"selector-nesting":return r.value;case"selector-unknown":{const n=qi(e,"css-rule");if(n&&n.isSCSSNesterProperty)return Ml(Pl(Wi(r.value),t));const u=e.getParentNode();if(u.raws&&u.raws.selector){const e=t.locStart(u),n=e+u.raws.selector.length;return t.originalText.slice(e,n).trim()}return r.value}case"value-value":case"value-root":return e.call(n,"group");case"value-comment":return Ti([r.inline?"//":"/*",Bi(r.value),r.inline?"":"*/"]);case"value-comma_group":{const t=e.getParentNode(),u=e.getParentNode(1),a=Vi(e),o=a&&"value-value"===t.type&&("grid"===a||a.startsWith("grid-template")),s=qi(e,"css-atrule"),i=s&&Qi(s),l=e.map(n,"groups"),c=[],p=Ui(e,"url");let d=!1,f=!1;for(let n=0;n<r.groups.length;++n){c.push(l[n]);const t=r.groups[n-1],a=r.groups[n],h=r.groups[n+1],m=r.groups[n+2];if(p){(h&&ul(h)||ul(a))&&c.push(" ");continue}if(!h)continue;if(!t&&"--"===a.value&&"value-atword"===h.type)continue;const D="value-string"===a.type&&a.value.startsWith("#{"),g=d&&"value-string"===h.type&&h.value.endsWith("}");if(D||g){d=!d;continue}if(d)continue;if(xl(a)||xl(h))continue;if("value-atword"===a.type&&""===a.value)continue;if("~"===a.value)continue;if(a.value&&a.value.includes("\\")&&h&&"value-comment"!==h.type)continue;if(t&&t.value&&t.value.indexOf("\\")===t.value.length-1&&"value-operator"===a.type&&"/"===a.value)continue;if("\\"===a.value)continue;if(yl(a,h))continue;if(bl(a)||Al(a)||Fl(h)||Al(h)&&fl(h)||Fl(a)&&fl(h))continue;if("--"===a.value&&bl(h))continue;const y=ol(a),E=ol(h);if((y&&bl(h)||E&&Fl(a))&&fl(h))continue;if(Ui(e,"calc")&&(ul(a)||ul(h)||al(a)||al(h))&&fl(h))continue;const C=(ul(a)||al(a))&&0===n&&("value-number"===h.type||h.isHex)&&u&&wl(u)&&!fl(h),b=m&&"value-func"===m.type||m&&vl(m)||"value-func"===a.type||vl(a),A="value-func"===h.type||vl(h)||t&&"value-func"===t.type||t&&vl(t);(nl(h)||nl(a)||Ui(e,"calc")||C||!(rl(h)&&!b||rl(a)&&!A||ul(h)&&!b||ul(a)&&!A||al(h)||al(a))||!(fl(h)||y&&(!t||t&&ol(t))))&&(Cl(a)?c.push(Oi):i&&(tl(h)||el(h)||cl(h)||sl(a)||il(a))||s&&"namespace"===s.name.toLowerCase()?c.push(" "):o?a.source&&h.source&&a.source.start.line!==h.source.start.line?(c.push(Oi),f=!0):c.push(" "):E?c.push(" "):c.push(Ni))}return f&&c.unshift(Oi),i?Ii(_i(Ti(c))):Ji(e)?Ii(Mi(c)):Ii(_i(Mi(c)))}case"value-paren_group":{const u=e.getParentNode();if(u&&ll(u)&&(1===r.groups.length||r.groups.length>0&&"value-comma_group"===r.groups[0].type&&r.groups[0].groups.length>0&&"value-word"===r.groups[0].groups[0].type&&r.groups[0].groups[0].value.startsWith("data:")))return Ti([r.open?e.call(n,"open"):"",ki(",",e.map(n,"groups")),r.close?e.call(n,"close"):""]);if(!r.open){const t=e.map(n,"groups"),r=[];for(let e=0;e<t.length;e++)0!==e&&r.push(Ti([",",Ni])),r.push(t[e]);return Ii(_i(Mi(r)))}const a=El(e),o=r.groups[r.groups.length-1],s=o&&"value-comment"===o.type;return Ii(Ti([r.open?e.call(n,"open"):"",_i(Ti([Pi,ki(Ti([",",Ni]),e.map(e=>{const t=e.getValue(),r=n(e);return hl(t)&&"value-comma_group"===t.type&&t.groups&&t.groups[2]&&"value-paren_group"===t.groups[2].type?(r.contents.contents.parts[1]=Ii(r.contents.contents.parts[1]),Ii(ji(r))):r},"groups"))])),Li(!s&&Xi(t.parser,t.originalText)&&a&&Tl(t)?",":""),Pi,r.close?e.call(n,"close"):""]),{shouldBreak:a})}case"value-func":return Ti([r.value,$i(e,"supports")&&Sl(r)?" ":"",e.call(n,"group")]);case"value-paren":return r.value;case"value-number":return Ti([_l(r.value),Wi(r.unit)]);case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||Hi(r.value)?r.value.toLowerCase():r.value;case"value-colon":return Ti([r.value,Ui(e,"url")?"":Ni]);case"value-comma":return Ti([r.value," "]);case"value-string":return vi(r.raws.quote+r.value+r.raws.quote,t);case"value-atword":return Ti(["@",r.value]);case"value-unicode-range":case"value-unknown":return r.value;default:throw new Error("Unknown postcss type ".concat(JSON.stringify(r.type)))}},embed:Zs,insertPragma:Ai,hasPrettierIgnore:xi,massageAstNode:Gs},Ll={bracketSpacing:{since:"0.0.0",category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:"Common",type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]}},Rl={singleQuote:Ll.singleQuote},ql=function(e,t){const{languageId:n}=e,r=st(e,["languageId"]);return Object.assign({linguistLanguageId:n},r,{},t(e))},Vl=[".css"],Wl={name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:Vl,languageId:50},Ul=Object.freeze({__proto__:null,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:Vl,languageId:50,default:Wl}),zl=[".pcss",".postcss"],$l={name:"PostCSS",type:"markup",tmScope:"source.postcss",group:"CSS",extensions:zl,aceMode:"text",languageId:262764437},Jl=Object.freeze({__proto__:null,name:"PostCSS",type:"markup",tmScope:"source.postcss",group:"CSS",extensions:zl,aceMode:"text",languageId:262764437,default:$l}),Gl=[".less"],Hl={name:"Less",type:"markup",group:"CSS",extensions:Gl,tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198},Xl=Object.freeze({__proto__:null,name:"Less",type:"markup",group:"CSS",extensions:Gl,tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198,default:Hl}),Yl=[".scss"],Kl={name:"SCSS",type:"markup",tmScope:"source.css.scss",group:"CSS",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:Yl,languageId:329},Ql=Object.freeze({__proto__:null,name:"SCSS",type:"markup",tmScope:"source.css.scss",group:"CSS",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:Yl,languageId:329,default:Kl}),Zl=Ze(Ul),ec=Ze(Jl),tc=Ze(Xl),nc=Ze(Ql),rc={languages:[ql(Zl,()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"]})),ql(ec,()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]})),ql(tc,()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]})),ql(nc,()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}))],options:Rl,printers:{postcss:jl}},uc={hasPragma:function(e){return/^\s*#[^\n\S]*@(format|prettier)\s*(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n"+e}};const{concat:ac,join:oc,hardline:sc,line:ic,softline:lc,group:cc,indent:pc,ifBreak:dc}=So.builders,{hasIgnoreComment:fc}=no,{isNextLineEmpty:hc}=Yo,{insertPragma:mc}=uc;function Dc(e,t,n){return 0===n.directives.length?"":ac([" ",cc(pc(ac([lc,oc(ac([dc(""," "),lc]),e.map(t,"directives"))])))])}function gc(e,t,n){const r=e.getValue().length;return e.map((e,u)=>{const a=n(e);return hc(t.originalText,e.getValue(),t.locEnd)&&u<r-1?ac([a,sc]):a})}function yc(e,t,n){return","===n.originalText.slice(e.loc.end,t.loc.start).replace(/#.*/g,"").trim()?", ":" & "}function Ec(e,t,n){const r=e.getNode(),u=[],{interfaces:a}=r,o=e.map(e=>n(e),"interfaces");for(let s=0;s<a.length;s++){const e=a[s];s>0&&u.push(yc(a[s-1],e,t)),u.push(o[s])}return u}var Cc={print:function(e,t,n){const r=e.getValue();if(!r)return"";if("string"===typeof r)return r;switch(r.kind){case"Document":{const u=[];return e.map((e,a)=>{u.push(ac([e.call(n)])),a!==r.definitions.length-1&&(u.push(sc),hc(t.originalText,e.getValue(),t.locEnd)&&u.push(sc))},"definitions"),ac([ac(u),sc])}case"OperationDefinition":{const u="{"!==t.originalText[t.locStart(r)],a=!!r.name;return ac([u?r.operation:"",u&&a?ac([" ",e.call(n,"name")]):"",r.variableDefinitions&&r.variableDefinitions.length?cc(ac(["(",pc(ac([lc,oc(ac([dc("",", "),lc]),e.map(n,"variableDefinitions"))])),lc,")"])):"",Dc(e,n,r),r.selectionSet&&(u||a)?" ":"",e.call(n,"selectionSet")])}case"FragmentDefinition":return ac(["fragment ",e.call(n,"name"),r.variableDefinitions&&r.variableDefinitions.length?cc(ac(["(",pc(ac([lc,oc(ac([dc("",", "),lc]),e.map(n,"variableDefinitions"))])),lc,")"])):""," on ",e.call(n,"typeCondition"),Dc(e,n,r)," ",e.call(n,"selectionSet")]);case"SelectionSet":return ac(["{",pc(ac([sc,oc(sc,e.call(e=>gc(e,t,n),"selections"))])),sc,"}"]);case"Field":return cc(ac([r.alias?ac([e.call(n,"alias"),": "]):"",e.call(n,"name"),r.arguments.length>0?cc(ac(["(",pc(ac([lc,oc(ac([dc("",", "),lc]),e.call(e=>gc(e,t,n),"arguments"))])),lc,")"])):"",Dc(e,n,r),r.selectionSet?" ":"",e.call(n,"selectionSet")]));case"Name":return r.value;case"StringValue":return r.block?ac(['"""',sc,oc(sc,r.value.replace(/"""/g,"\\$&").split("\n")),sc,'"""']):ac(['"',r.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']);case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return ac(["$",e.call(n,"name")]);case"ListValue":return cc(ac(["[",pc(ac([lc,oc(ac([dc("",", "),lc]),e.map(n,"values"))])),lc,"]"]));case"ObjectValue":return cc(ac(["{",t.bracketSpacing&&r.fields.length>0?" ":"",pc(ac([lc,oc(ac([dc("",", "),lc]),e.map(n,"fields"))])),lc,dc("",t.bracketSpacing&&r.fields.length>0?" ":""),"}"]));case"ObjectField":case"Argument":return ac([e.call(n,"name"),": ",e.call(n,"value")]);case"Directive":return ac(["@",e.call(n,"name"),r.arguments.length>0?cc(ac(["(",pc(ac([lc,oc(ac([dc("",", "),lc]),e.call(e=>gc(e,t,n),"arguments"))])),lc,")"])):""]);case"NamedType":return e.call(n,"name");case"VariableDefinition":return ac([e.call(n,"variable"),": ",e.call(n,"type"),r.defaultValue?ac([" = ",e.call(n,"defaultValue")]):"",Dc(e,n,r)]);case"TypeExtensionDefinition":return ac(["extend ",e.call(n,"definition")]);case"ObjectTypeExtension":case"ObjectTypeDefinition":return ac([e.call(n,"description"),r.description?sc:"","ObjectTypeExtension"===r.kind?"extend ":"","type ",e.call(n,"name"),r.interfaces.length>0?ac([" implements ",ac(Ec(e,t,n))]):"",Dc(e,n,r),r.fields.length>0?ac([" {",pc(ac([sc,oc(sc,e.call(e=>gc(e,t,n),"fields"))])),sc,"}"]):""]);case"FieldDefinition":return ac([e.call(n,"description"),r.description?sc:"",e.call(n,"name"),r.arguments.length>0?cc(ac(["(",pc(ac([lc,oc(ac([dc("",", "),lc]),e.call(e=>gc(e,t,n),"arguments"))])),lc,")"])):"",": ",e.call(n,"type"),Dc(e,n,r)]);case"DirectiveDefinition":return ac([e.call(n,"description"),r.description?sc:"","directive ","@",e.call(n,"name"),r.arguments.length>0?cc(ac(["(",pc(ac([lc,oc(ac([dc("",", "),lc]),e.call(e=>gc(e,t,n),"arguments"))])),lc,")"])):"",r.repeatable?" repeatable":"",ac([" on ",oc(" | ",e.map(n,"locations"))])]);case"EnumTypeExtension":case"EnumTypeDefinition":return ac([e.call(n,"description"),r.description?sc:"","EnumTypeExtension"===r.kind?"extend ":"","enum ",e.call(n,"name"),Dc(e,n,r),r.values.length>0?ac([" {",pc(ac([sc,oc(sc,e.call(e=>gc(e,t,n),"values"))])),sc,"}"]):""]);case"EnumValueDefinition":return ac([e.call(n,"description"),r.description?sc:"",e.call(n,"name"),Dc(e,n,r)]);case"InputValueDefinition":return ac([e.call(n,"description"),r.description?r.description.block?sc:ic:"",e.call(n,"name"),": ",e.call(n,"type"),r.defaultValue?ac([" = ",e.call(n,"defaultValue")]):"",Dc(e,n,r)]);case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return ac([e.call(n,"description"),r.description?sc:"","InputObjectTypeExtension"===r.kind?"extend ":"","input ",e.call(n,"name"),Dc(e,n,r),r.fields.length>0?ac([" {",pc(ac([sc,oc(sc,e.call(e=>gc(e,t,n),"fields"))])),sc,"}"]):""]);case"SchemaDefinition":return ac(["schema",Dc(e,n,r)," {",r.operationTypes.length>0?pc(ac([sc,oc(sc,e.call(e=>gc(e,t,n),"operationTypes"))])):"",sc,"}"]);case"OperationTypeDefinition":return ac([e.call(n,"operation"),": ",e.call(n,"type")]);case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return ac([e.call(n,"description"),r.description?sc:"","InterfaceTypeExtension"===r.kind?"extend ":"","interface ",e.call(n,"name"),Dc(e,n,r),r.fields.length>0?ac([" {",pc(ac([sc,oc(sc,e.call(e=>gc(e,t,n),"fields"))])),sc,"}"]):""]);case"FragmentSpread":return ac(["...",e.call(n,"name"),Dc(e,n,r)]);case"InlineFragment":return ac(["...",r.typeCondition?ac([" on ",e.call(n,"typeCondition")]):"",Dc(e,n,r)," ",e.call(n,"selectionSet")]);case"UnionTypeExtension":case"UnionTypeDefinition":return cc(ac([e.call(n,"description"),r.description?sc:"",cc(ac(["UnionTypeExtension"===r.kind?"extend ":"","union ",e.call(n,"name"),Dc(e,n,r),r.types.length>0?ac([" =",dc(""," "),pc(ac([dc(ac([ic," "])),oc(ac([ic,"| "]),e.map(n,"types"))]))]):""]))]));case"ScalarTypeExtension":case"ScalarTypeDefinition":return ac([e.call(n,"description"),r.description?sc:"","ScalarTypeExtension"===r.kind?"extend ":"","scalar ",e.call(n,"name"),Dc(e,n,r)]);case"NonNullType":return ac([e.call(n,"type"),"!"]);case"ListType":return ac(["[",e.call(n,"type"),"]"]);default:throw new Error("unknown graphql type: "+JSON.stringify(r.kind))}},massageAstNode:function(e,t){delete t.loc,delete t.comments},hasPrettierIgnore:fc,insertPragma:mc,printComment:function(e){const t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return e.kind&&"Comment"!==e.kind}},bc={bracketSpacing:Ll.bracketSpacing},Ac=[".graphql",".gql",".graphqls"],Fc={name:"GraphQL",type:"data",extensions:Ac,tmScope:"source.graphql",aceMode:"text",languageId:139},vc={languages:[ql(Ze(Object.freeze({__proto__:null,name:"GraphQL",type:"data",extensions:Ac,tmScope:"source.graphql",aceMode:"text",languageId:139,default:Fc})),()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}))],options:bc,printers:{graphql:Cc}};function xc(e,t){return e&&t.some(t=>e.type===t)}function Sc(e,t){const n=e.getValue(),r=e.getParentNode(0)||{},u=r.children||r.body||[],a=u.indexOf(n);return-1!==a&&u[a+t]}function wc(e,t=1){return Sc(e,-t)}function Bc(e){return Sc(e,1)}function Tc(e){return xc(e,["MustacheCommentStatement"])&&"string"===typeof e.value&&"prettier-ignore"===e.value.trim()}var kc={getNextNode:Bc,getPreviousNode:wc,hasPrettierIgnore:function(e){const t=e.getValue(),n=wc(e,2);return Tc(t)||Tc(n)},isGlimmerComponent:function(e){return xc(e,["ElementNode"])&&"string"===typeof e.tag&&(function(e){return e.toUpperCase()===e}(e.tag[0])||e.tag.includes("."))},isNextNodeOfSomeType:function(e,t){return xc(Bc(e),t)},isNodeOfSomeType:xc,isParentOfSomeType:function(e,t){return xc(e.getParentNode(0),t)},isPreviousNodeOfSomeType:function(e,t){return xc(wc(e),t)},isWhitespaceNode:function(e){return xc(e,["TextNode"])&&!/\S/.test(e.chars)}};const{concat:Nc,join:Oc,softline:Pc,hardline:Ic,line:Mc,group:_c,indent:jc,ifBreak:Lc}=So.builders,{getNextNode:Rc,getPreviousNode:qc,hasPrettierIgnore:Vc,isGlimmerComponent:Wc,isNextNodeOfSomeType:Uc,isParentOfSomeType:zc,isPreviousNodeOfSomeType:$c,isWhitespaceNode:Jc}=kc,Gc=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function Hc(e,t,n){return Nc(e.map((r,u)=>{const a=e.getValue(),o=0===u,s=u===e.getParentNode(0).children.length-1&&!o;return Jc(a)&&s?n(r,t,n):o?Nc([Pc,n(r,t,n)]):n(r,t,n)},"children"))}function Xc(e,t){const n={quote:'"',regex:/"/g},r={quote:"'",regex:/'/g},u=t.singleQuote?r:n,a=u===r?n:r;let o=!1;(e.includes(u.quote)||e.includes(a.quote))&&(o=(e.match(u.regex)||[]).length>(e.match(a.regex)||[]).length);const s=o?a:u,i=e.replace(s.regex,"\\".concat(s.quote));return Nc([s.quote,i,s.quote])}function Yc(e,t){return e.call(t,"path")}function Kc(e,t){const n=e.getValue();let r=[];return n.params.length>0&&(r=r.concat(e.map(t,"params"))),n.hash&&n.hash.pairs.length>0&&r.push(e.call(t,"hash")),r}function Qc(e,t){const n=[Yc(e,t),...Kc(e,t)];return jc(_c(Oc(Mc,n)))}function Zc(e){const t=e.getValue();return t.program&&t.program.blockParams.length?Nc([" as |",t.program.blockParams.join(" "),"|"]):""}function ep(e,t,{open:n=!1,close:r=!1}={}){return _c(Nc([n?"{{~#":"{{#",Qc(e,t),Zc(e),Pc,r?"~}}":"}}"]))}function tp(e,t,{open:n=!1,close:r=!1}={}){return Nc([n?"{{~/":"{{/",e.call(t,"path"),r?"~}}":"}}"])}function np(e){return(e="string"===typeof e?e:"").split("\n").length-1}function rp(e=0,t=0){return new Array(Math.min(e,t)).fill(Ic)}function up(e,t,n){let r=0,u=0;for(;;){if(u===e.length)return null;let a=e.indexOf("\n",u);if(-1===a&&(a=e.length),r===t)return u+n>a?null:u+n;if(-1===a)return null;r+=1,u=a+1}}var ap={print:function(e,t,n){const r=e.getValue();if(!r)return"";if(Vc(e)){const e=up(t.originalText,r.loc.start.line-1,r.loc.start.column),n=up(t.originalText,r.loc.end.line-1,r.loc.end.column);return t.originalText.slice(e,n)}switch(r.type){case"Block":case"Program":case"Template":return _c(Nc(e.map(n,"body")));case"ElementNode":{const u=r.children.length>0,a=r.children.some(e=>!Jc(e)),o=Wc(r)&&(!u||!a)||Gc.includes(r.tag),s=o?Nc([" />",Pc]):">",i=o?"/>":">",l=(e,t)=>jc(Nc([r.attributes.length?Mc:"",Oc(Mc,e.map(t,"attributes")),r.modifiers.length?Mc:"",Oc(Mc,e.map(t,"modifiers")),r.comments.length?Mc:"",Oc(Mc,e.map(t,"comments"))])),c=Rc(e);return Nc([_c(Nc(["<",r.tag,l(e,n),r.blockParams.length?" as |".concat(r.blockParams.join(" "),"|"):"",Lc(Pc,""),Lc(i,s)])),o?"":_c(Nc([a?jc(Hc(e,t,n)):"",Lc(u?Ic:"",""),Nc(["</",r.tag,">"])])),c&&"ElementNode"===c.type?Ic:""])}case"BlockStatement":{const t=e.getParentNode(1),u=t&&t.inverse&&1===t.inverse.body.length&&t.inverse.body[0]===r&&"if"===t.inverse.body[0].path.parts[0],a=r.inverse&&1===r.inverse.body.length&&"BlockStatement"===r.inverse.body[0].type&&"if"===r.inverse.body[0].path.parts[0],o=a?e=>e:jc,s=(r.inverseStrip.open?"{{~":"{{")+"else"+(r.inverseStrip.close?"~}}":"}}");if(r.inverse)return Nc([u?Nc([r.openStrip.open?"{{~else ":"{{else ",Qc(e,n),r.openStrip.close?"~}}":"}}"]):ep(e,n,r.openStrip),jc(Nc([Ic,e.call(n,"program")])),r.inverse&&!a?Nc([Ic,s]):"",r.inverse?o(Nc([Ic,e.call(n,"inverse")])):"",u?"":Nc([Ic,tp(e,n,r.closeStrip)])]);if(u)return Nc([Nc([r.openStrip.open?"{{~else":"{{else ",Qc(e,n),r.openStrip.close?"~}}":"}}"]),jc(Nc([Ic,e.call(n,"program")]))]);const i=r.program.body.some(e=>!Jc(e));return Nc([ep(e,n,r.openStrip),_c(Nc([jc(Nc([Pc,e.call(n,"program")])),i?Ic:Pc,tp(e,n,r.closeStrip)]))])}case"ElementModifierStatement":return _c(Nc(["{{",Qc(e,n),Pc,"}}"]));case"MustacheStatement":{const t=!1===r.escaped,{open:u,close:a}=r.strip,o=(t?"{{{":"{{")+(u?"~":""),s=(a?"~":"")+(t?"}}}":"}}"),i=zc(e,["AttrNode","ConcatStatement","ElementNode"])?[o,jc(Pc)]:[o];return _c(Nc([...i,Qc(e,n),Pc,s]))}case"SubExpression":{const t=Kc(e,n),r=t.length>0?jc(Nc([Mc,_c(Oc(Mc,t))])):"";return _c(Nc(["(",Yc(e,n),r,Pc,")"]))}case"AttrNode":{const u="TextNode"===r.value.type;if(u&&""===r.value.chars&&r.value.loc.start.column===r.value.loc.end.column)return Nc([r.name]);const a=e.call(n,"value"),o=u?Xc(a.parts.join(),t):a;return Nc([r.name,"=",o])}case"ConcatStatement":return Nc(['"',Nc(e.map(e=>n(e),"parts").filter(e=>""!==e)),'"']);case"Hash":return Nc([Oc(Mc,e.map(n,"pairs"))]);case"HashPair":return Nc([r.key,"=",e.call(n,"value")]);case"TextNode":{const t=2,n=!qc(e),u=!Rc(e),a=!/\S/.test(r.chars),o=np(r.chars),s="Block"===e.getParentNode(0).type,i="ElementNode"===e.getParentNode(0).type,l="Template"===e.getParentNode(0).type;let c=function(e){return np(((e="string"===typeof e?e:"").match(/^([^\S\r\n]*[\r\n])+/g)||[])[0]||"")}(r.chars),p=function(e){return np(((e="string"===typeof e?e:"").match(/([\r\n][^\S\r\n]*)+$/g)||[])[0]||"")}(r.chars);if((n||u)&&a&&(s||i||l))return"";a&&o?(c=Math.min(o,t),p=0):(Uc(e,["BlockStatement","ElementNode"])&&(p=Math.max(p,1)),($c(e,["ElementNode"])||$c(e,["BlockStatement"]))&&(c=Math.max(c,1)));let d="",f="";if(e.stack.includes("attributes")){const t=e.getParentNode(0);if("ConcatStatement"===t.type){const{parts:e}=t,n=e.indexOf(r);n>0&&"MustacheStatement"===e[n-1].type&&(d=" "),n<e.length-1&&"MustacheStatement"===e[n+1].type&&(f=" ")}}else 0===p&&Uc(e,["MustacheStatement"])&&(f=" "),0===c&&$c(e,["MustacheStatement"])&&(d=" "),n&&(c=0,d=""),u&&(p=0,f="");return Nc([...rp(c,t),r.chars.replace(/^[\s ]+/g,d).replace(/[\s ]+$/,f),...rp(p,t)].filter(Boolean))}case"MustacheCommentStatement":{const e=r.value.includes("}}")?"--":"";return Nc(["{{!",e,r.value,e,"}}"])}case"PathExpression":return r.original;case"BooleanLiteral":return String(r.value);case"CommentStatement":return Nc(["\x3c!--",r.value,"--\x3e"]);case"StringLiteral":return Xc(r.value,t);case"NumberLiteral":return String(r.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(r.type))}},massageAstNode:function(e,t){if(delete t.loc,delete t.selfClosing,"TextNode"===e.type){const n=e.chars.trim();if(!n)return null;t.chars=n}}},op=["hbs","htmlbars"],sp=[".handlebars",".hbs"],ip={name:"Handlebars",type:"markup",group:"HTML",aliases:op,extensions:sp,tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155},lp={languages:[ql(Ze(Object.freeze({__proto__:null,name:"Handlebars",type:"markup",group:"HTML",aliases:op,extensions:sp,tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155,default:ip})),()=>({since:null,parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}))],printers:{glimmer:ap}},cp=Object.freeze({__proto__:null,default:["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]}),pp=["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],dp=["title"],fp=["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],hp=["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],mp=["autoplay","controls","crossorigin","loop","muted","preload","src"],Dp=["href","target"],gp=["color","face","size"],yp=["dir"],Ep=["cite"],Cp=["alink","background","bgcolor","link","text","vlink"],bp=["clear"],Ap=["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],Fp=["height","width"],vp=["align"],xp=["align","char","charoff","span","valign","width"],Sp=["align","char","charoff","span","valign","width"],wp=["value"],Bp=["cite","datetime"],Tp=["open"],kp=["title"],Np=["open"],Op=["compact"],Pp=["align"],Ip=["compact"],Mp=["height","src","type","width"],_p=["disabled","form","name"],jp=["color","face","size"],Lp=["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],Rp=["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],qp=["cols","rows"],Vp=["align"],Wp=["align"],Up=["align"],zp=["align"],$p=["align"],Jp=["align"],Gp=["profile"],Hp=["align","noshade","size","width"],Xp=["manifest","version"],Yp=["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],Kp=["align","alt","border","crossorigin","decoding","height","hspace","ismap","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],Qp=["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],Zp=["cite","datetime"],ed=["prompt"],td=["accesskey","for","form"],nd=["accesskey","align"],rd=["type","value"],ud=["as","charset","color","crossorigin","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],ad=["name"],od=["compact"],sd=["charset","content","http-equiv","name","scheme"],id=["high","low","max","min","optimum","value"],ld=["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],cd=["compact","reversed","start","type"],pd=["disabled","label"],dd=["disabled","label","selected","value"],fd=["for","form","name"],hd=["align"],md=["name","type","value","valuetype"],Dd=["width"],gd=["max","value"],yd=["cite"],Ed=["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],Cd=["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],bd=["name"],Ad=["media","sizes","src","srcset","type"],Fd=["media","nonce","title","type"],vd=["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],xd=["align","char","charoff","valign"],Sd=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],wd=["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],Bd=["align","char","charoff","valign"],Td=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],kd=["align","char","charoff","valign"],Nd=["datetime"],Od=["align","bgcolor","char","charoff","valign"],Pd=["default","kind","label","src","srclang"],Id=["compact","type"],Md=["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"],_d={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:pp,abbr:dp,applet:fp,area:hp,audio:mp,base:Dp,basefont:gp,bdo:yp,blockquote:Ep,body:Cp,br:bp,button:Ap,canvas:Fp,caption:vp,col:xp,colgroup:Sp,data:wp,del:Bp,details:Tp,dfn:kp,dialog:Np,dir:Op,div:Pp,dl:Ip,embed:Mp,fieldset:_p,font:jp,form:Lp,frame:Rp,frameset:qp,h1:Vp,h2:Wp,h3:Up,h4:zp,h5:$p,h6:Jp,head:Gp,hr:Hp,html:Xp,iframe:Yp,img:Kp,input:Qp,ins:Zp,isindex:ed,label:td,legend:nd,li:rd,link:ud,map:ad,menu:od,meta:sd,meter:id,object:ld,ol:cd,optgroup:pd,option:dd,output:fd,p:hd,param:md,pre:Dd,progress:gd,q:yd,script:Ed,select:Cd,slot:bd,source:Ad,style:Fd,table:vd,tbody:xd,td:Sd,textarea:wd,tfoot:Bd,th:Td,thead:kd,time:Nd,tr:Od,track:Pd,ul:Id,video:Md},jd=Object.freeze({__proto__:null,a:pp,abbr:dp,applet:fp,area:hp,audio:mp,base:Dp,basefont:gp,bdo:yp,blockquote:Ep,body:Cp,br:bp,button:Ap,canvas:Fp,caption:vp,col:xp,colgroup:Sp,data:wp,del:Bp,details:Tp,dfn:kp,dialog:Np,dir:Op,div:Pp,dl:Ip,embed:Mp,fieldset:_p,font:jp,form:Lp,frame:Rp,frameset:qp,h1:Vp,h2:Wp,h3:Up,h4:zp,h5:$p,h6:Jp,head:Gp,hr:Hp,html:Xp,iframe:Yp,img:Kp,input:Qp,ins:Zp,isindex:ed,label:td,legend:nd,li:rd,link:ud,map:ad,menu:od,meta:sd,meter:id,object:ld,ol:cd,optgroup:pd,option:dd,output:fd,p:hd,param:md,pre:Dd,progress:gd,q:yd,script:Ed,select:Cd,slot:bd,source:Ad,style:Fd,table:vd,tbody:xd,td:Sd,textarea:wd,tfoot:Bd,th:Td,thead:kd,time:Nd,tr:Od,track:Pd,ul:Id,video:Md,default:_d}),Ld=Ze(cp),Rd=Ze(jd);const{CSS_DISPLAY_TAGS:qd,CSS_DISPLAY_DEFAULT:Vd,CSS_WHITE_SPACE_TAGS:Wd,CSS_WHITE_SPACE_DEFAULT:Ud}={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"none",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",video:"inline-block",audio:"inline-block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"},zd=$d(Ld);function $d(e){const t=Object.create(null);for(const n of e)t[n]=!0;return t}function Jd(e,t){return!!e.endSourceSpan&&(!("element"!==e.type||"template"!==e.fullName||!e.attrMap.lang||"html"===e.attrMap.lang)||!("ieConditionalComment"!==e.type||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)||"ieConditionalComment"===e.type&&!e.complete||"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&!["template","style","script","html"].includes(e.fullName)||!(!uf(e)||!e.children.some(e=>"text"!==e.type&&"interpolation"!==e.type)))}function Gd(e){return"attribute"!==e.type&&(!!e.parent&&("number"===typeof e.index&&0!==e.index&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.parent.children[e.index-1])))}function Hd(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||af(e)&&("script"===e.name||"style"===e.name))}function Xd(e){return"yaml"===e.type||"toml"===e.type}function Yd(e){return of(e).startsWith("pre")}function Kd(e){return"element"===e.type&&0!==e.children.length&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function Qd(e){return nf(e)||"element"===e.type&&"br"===e.fullName||Zd(e)}function Zd(e){return ef(e)&&tf(e)}function ef(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:"root"===e.parent.type||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function tf(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function nf(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function rf(e){return"block"===e||"list-item"===e||e.startsWith("table")}function uf(e){return of(e).startsWith("pre")}function af(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function of(e){return"element"===e.type&&(!e.namespace||af(e))&&Wd[e.name]||Ud}var sf={HTML_ELEMENT_ATTRIBUTES:function(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}(Rd,$d),HTML_TAGS:zd,canHaveInterpolation:function(e){return e.children&&!Hd(e)},countChars:function(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===t&&n++;return n},countParents:function(e,t=(()=>!0)){let n=0;for(let r=e.stack.length-1;r>=0;r--){const u=e.stack[r];u&&"object"===typeof u&&!Array.isArray(u)&&t(u)&&n++}return n},dedentString:function(e,t=function(e){let t=1/0;for(const n of e.split("\n")){if(0===n.length)continue;if(/\S/.test(n[0]))return 0;const e=n.match(/^\s*/)[0].length;n.length!==e&&e<t&&(t=e)}return t===1/0?0:t}(e)){return 0===t?e:e.split("\n").map(e=>e.slice(t)).join("\n")},forceBreakChildren:Kd,forceBreakContent:function(e){return Kd(e)||"element"===e.type&&0!==e.children.length&&(["body","script","style"].includes(e.name)||e.children.some(e=>function(e){return e.children&&e.children.some(e=>"text"!==e.type)}(e)))||e.firstChild&&e.firstChild===e.lastChild&&ef(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||tf(e.lastChild))},forceNextEmptyLine:function(e){return Xd(e)||e.next&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line},getLastDescendant:function e(t){return t.lastChild?e(t.lastChild):t},getNodeCssStyleDisplay:function(e,t){if(e.prev&&"comment"===e.prev.type){const t=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(t)return t[1]}let n=!1;if("element"===e.type&&"svg"===e.namespace){if(!function(e,t){let n=e;for(;n;){if(t(n))return!0;n=n.parent}return!1}(e,e=>"svg:foreignObject"===e.fullName))return"svg"===e.name?"inline-block":"block";n=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return"element"===e.type&&(!e.namespace||n||af(e))&&qd[e.name]||Vd}},getNodeCssStyleWhiteSpace:of,getPrettierIgnoreAttributeCommentData:function(e){const t=e.trim().match(/^prettier-ignore-attribute(?:\s+([^]+))?$/);return!!t&&(!t[1]||t[1].split(/\s+/))},hasPrettierIgnore:Gd,identity:function(e){return e},inferScriptParser:function(e){if("script"===e.name&&!e.attrMap.src){if(!e.attrMap.lang&&!e.attrMap.type||"module"===e.attrMap.type||"text/javascript"===e.attrMap.type||"text/babel"===e.attrMap.type||"application/javascript"===e.attrMap.type||"jsx"===e.attrMap.lang)return"babel";if("application/x-typescript"===e.attrMap.type||"ts"===e.attrMap.lang||"tsx"===e.attrMap.lang)return"typescript";if("text/markdown"===e.attrMap.type)return"markdown";if(e.attrMap.type.endsWith("json")||e.attrMap.type.endsWith("importmap"))return"json";if("text/x-handlebars-template"===e.attrMap.type)return"glimmer"}if("style"===e.name){if(!e.attrMap.lang||"postcss"===e.attrMap.lang||"css"===e.attrMap.lang)return"css";if("scss"===e.attrMap.lang)return"scss";if("less"===e.attrMap.lang)return"less"}return null},isDanglingSpaceSensitiveNode:function(e){return!rf(t=e.cssDisplay)&&"inline-block"!==t&&!Hd(e);var t},isFrontMatterNode:Xd,isIndentationSensitiveNode:Yd,isLeadingSpaceSensitiveNode:function(e){const t=function(){return!Xd(e)&&(!("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!uf(e.parent)||!(!e.prev&&("root"===e.parent.type||uf(e)&&e.parent||Hd(e.parent)||(t=e.parent.cssDisplay,rf(t)||"inline-block"===t)))&&!(e.prev&&!function(e){return!rf(e)}(e.prev.cssDisplay))));var t}();return t&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?"interpolation"===e.type:t},isPreLikeNode:uf,isScriptLikeTag:Hd,isTextLikeNode:function(e){return"text"===e.type||"comment"===e.type},isTrailingSpaceSensitiveNode:function(e){return!Xd(e)&&(!("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!uf(e.parent)||!(!e.next&&("root"===e.parent.type||uf(e)&&e.parent||Hd(e.parent)||(t=e.parent.cssDisplay,rf(t)||"inline-block"===t)))&&!(e.next&&!function(e){return!rf(e)}(e.next.cssDisplay))));var t},isWhitespaceSensitiveNode:function(e){return Hd(e)||"interpolation"===e.type||Yd(e)},isUnknownNamespace:af,normalizeParts:function(e){const t=[],n=e.slice();for(;0!==n.length;){const e=n.shift();e&&("concat"!==e.type?0===t.length||"string"!==typeof t[t.length-1]||"string"!==typeof e?t.push(e):t.push(t.pop()+e):n.unshift(...e.parts))}return t},preferHardlineAsLeadingSpaces:function(e){return nf(e)||e.prev&&Qd(e.prev)||Zd(e)},preferHardlineAsTrailingSpaces:Qd,shouldNotPrintClosingTag:function(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Gd(e)||Jd(e.parent,t))},shouldPreserveContent:Jd,unescapeQuoteEntities:function(e){return e.replace(/'/g,"'").replace(/"/g,'"')}};const{canHaveInterpolation:lf,getNodeCssStyleDisplay:cf,isDanglingSpaceSensitiveNode:pf,isIndentationSensitiveNode:df,isLeadingSpaceSensitiveNode:ff,isTrailingSpaceSensitiveNode:hf,isWhitespaceSensitiveNode:mf}=sf,Df=[function(e){return e.map(e=>{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&0!==e.children.length&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){const[t,...n]=e.children;return e.clone({children:1===t.value.length?n:[t.clone({value:t.value.slice(1)}),...n]})}return e})},function(e){const t=e=>"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;return e.map(e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r<e.children.length;r++){const u=e.children[r];if(!n[r+1])if(n[r]){const e=u.prev,n=u.firstChild,r=u.sourceSpan.constructor,a=new r(e.sourceSpan.start,n.sourceSpan.end),o=new r(a.start,u.sourceSpan.end);t.push(u.clone({condition:e.condition,sourceSpan:o,startSourceSpan:a,children:u.children.slice(1)}))}else t.push(u)}return e.clone({children:t})}}return e})},function(e){return function(e,t,n){return e.map(e=>{if(e.children){const r=e.children.map(t);if(r.some(Boolean)){const t=[];for(let u=0;u<e.children.length;u++){const a=e.children[u];if("text"!==a.type&&!r[u]){t.push(a);continue}const o="text"===a.type?a:a.clone({type:"text",value:n(a)});if(0===t.length||"text"!==t[t.length-1].type){t.push(o);continue}const s=t.pop(),i=s.sourceSpan.constructor;t.push(s.clone({value:s.value+o.value,sourceSpan:new i(s.sourceSpan.start,o.sourceSpan.end)}))}return e.clone({children:t})}}return e})}(e,e=>"cdata"===e.type,e=>"<![CDATA[".concat(e.value,"]]>"))},function(e,t){if("html"===t.parser)return e;const n=/\{\{([\s\S]+?)\}\}/g;return e.map(e=>{if(!lf(e))return e;const t=[];for(const r of e.children){if("text"!==r.type){t.push(r);continue}const e=r.sourceSpan.constructor;let u=r.sourceSpan.start,a=null;const o=r.value.split(n);for(let n=0;n<o.length;n++,u=a){const r=o[n];n%2!==0?(a=u.moveBy(r.length+4),t.push({type:"interpolation",sourceSpan:new e(u,a),children:0===r.length?[]:[{type:"text",value:r,sourceSpan:new e(u.moveBy(2),a.moveBy(-2))}]})):(a=u.moveBy(r.length),0!==r.length&&t.push({type:"text",value:r,sourceSpan:new e(u,a)}))}}return e.clone({children:t})})},function(e){return e.map(e=>{if(!e.children)return e;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===e.children[0].value.trim().length)return e.clone({children:[],hasDanglingSpaces:0!==e.children.length});const t=mf(e),n=df(e);return e.clone({isWhitespaceSensitive:t,isIndentationSensitive:n,children:e.children.reduce((e,n)=>{if("text"!==n.type||t)return e.concat(n);const r=[],[,u,a,o]=n.value.match(/^(\s*)([\s\S]*?)(\s*)$/);u&&r.push({type:"whitespace"});const s=n.sourceSpan.constructor;return a&&r.push({type:"text",value:a,sourceSpan:new s(n.sourceSpan.start.moveBy(u.length),n.sourceSpan.end.moveBy(-o.length))}),o&&r.push({type:"whitespace"}),e.concat(r)},[]).reduce((e,t,n,r)=>{if("whitespace"===t.type)return e;const u=0!==n&&"whitespace"===r[n-1].type,a=n!==r.length-1&&"whitespace"===r[n+1].type;return e.concat(Object.assign({},t,{hasLeadingSpaces:u,hasTrailingSpaces:a}))},[])})})},function(e,t){return e.map(e=>Object.assign(e,{cssDisplay:cf(e,t)}))},function(e){return e.map(e=>Object.assign(e,{isSelfClosing:!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)}))},function(e,t){return e.map(e=>"element"!==e.type?e:Object.assign(e,{hasHtmComponentClosingTag:e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset))}))},function(e){return e.map(e=>e.children?0===e.children.length?e.clone({isDanglingSpaceSensitive:pf(e)}):e.clone({children:e.children.map(e=>Object.assign({},e,{isLeadingSpaceSensitive:ff(e),isTrailingSpaceSensitive:hf(e)})).map((e,t,n)=>Object.assign({},e,{isLeadingSpaceSensitive:(0===t||n[t-1].isTrailingSpaceSensitive)&&e.isLeadingSpaceSensitive,isTrailingSpaceSensitive:(t===n.length-1||n[t+1].isLeadingSpaceSensitive)&&e.isTrailingSpaceSensitive}))}):e)},function(e){const t=e=>"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!/[^\S\xA0]/.test(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type;return e.map(e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r<e.children.length;r++){const u=e.children[r];if(n[r]){const n=t.pop(),a=e.children[++r],o=e.sourceSpan.constructor,{isTrailingSpaceSensitive:s,hasTrailingSpaces:i}=a;t.push(n.clone({value:n.value+"<".concat(u.rawName,">")+u.firstChild.value+"</".concat(u.rawName,">")+a.value,sourceSpan:new o(n.sourceSpan.start,a.sourceSpan.end),isTrailingSpaceSensitive:s,hasTrailingSpaces:i}))}else t.push(u)}return e.clone({children:t})}}return e})}];var gf=function(e,t){for(const n of Df)e=n(e,t);return e},yf={hasPragma:function(e){return/^\s*<!--\s*@(format|prettier)\s*-->/.test(e)},insertPragma:function(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}};const{builders:{concat:Ef,group:Cf}}=So;var bf={isVueEventBindingExpression:function(e){const t=e.trim();return/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/.test(t)||/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/.test(t)},printVueFor:function(e,t){const{left:n,operator:r,right:u}=function(e){const t=/,([^,}\]]*)(?:,([^,}\]]*))?$/,n=e.match(/([^]*?)\s+(in|of)\s+([^]*)/);if(!n)return;const r={};r.for=n[3].trim();const u=n[1].trim().replace(/^\(|\)$/g,""),a=u.match(t);return a?(r.alias=u.replace(t,""),r.iterator1=a[1].trim(),a[2]&&(r.iterator2=a[2].trim())):r.alias=u,{left:"".concat([r.alias,r.iterator1,r.iterator2].filter(Boolean).join(",")),operator:n[2],right:r.for}}(e);return Ef([Cf(t("function _(".concat(n,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",r," ",t(u,{parser:"__js_expression"})])},printVueSlotScope:function(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueSlotScope:!0})}};const Af=/^\d+$/;var Ff=e=>function(e){return e.sort().filter((t,n)=>JSON.stringify(t)!==JSON.stringify(e[n-1]))}(e.split(",").map(e=>{const t={};return e.trim().split(/\s+/).forEach((e,n)=>{if(0===n)return void(t.url=e);const r=e.slice(0,e.length-1),u=e[e.length-1],a=parseInt(r,10),o=parseFloat(r);if("w"===u&&Af.test(r))t.width=a;else if("h"===u&&Af.test(r))t.height=a;else{if("x"!==u||Number.isNaN(o))throw new Error("Invalid srcset descriptor: ".concat(e));t.density=o}}),t}));const{builders:{concat:vf,ifBreak:xf,join:Sf,line:wf}}=So,Bf=Ff;var Tf={printImgSrcset:function(e){const t=Bf(e),n=t.some(e=>e.width),r=t.some(e=>e.height);if(n+r+t.some(e=>e.density)>1)throw new Error("Mixed descriptor in srcset is not supported");const u=n?"width":r?"height":"density",a=n?"w":r?"h":"x",o=e=>Math.max(...e),s=t.map(e=>e.url),i=o(s.map(e=>e.length)),l=t.map(e=>e[u]).map(e=>e?e.toString():""),c=l.map(e=>{const t=e.indexOf(".");return-1===t?e.length:t}),p=o(c);return Sf(vf([",",wf]),s.map((e,t)=>{const n=[e],r=l[t];if(r){const u=i-e.length+1,o=p-c[t],s=" ".repeat(u+o);n.push(xf(s," "),r+a)}return vf(n)}))},printClassNames:function(e){return e.trim().split(/\s+/).join(" ")}};const{builders:kf,utils:{stripTrailingHardline:Nf,mapDoc:Of}}=So,{breakParent:Pf,dedentToRoot:If,fill:Mf,group:_f,hardline:jf,ifBreak:Lf,indent:Rf,join:qf,line:Vf,literalline:Wf,markAsRoot:Uf,softline:zf}=kf,{countChars:$f,countParents:Jf,dedentString:Gf,forceBreakChildren:Hf,forceBreakContent:Xf,forceNextEmptyLine:Yf,getLastDescendant:Kf,getPrettierIgnoreAttributeCommentData:Qf,hasPrettierIgnore:Zf,inferScriptParser:eh,isScriptLikeTag:th,isTextLikeNode:nh,normalizeParts:rh,preferHardlineAsLeadingSpaces:uh,shouldNotPrintClosingTag:ah,shouldPreserveContent:oh,unescapeQuoteEntities:sh}=sf,{replaceEndOfLineWith:ih}=no,{insertPragma:lh}=yf,{printVueFor:ch,printVueSlotScope:ph,isVueEventBindingExpression:dh}=bf,{printImgSrcset:fh,printClassNames:hh}=Tf;function mh(e){const t=rh(e);return 0===t.length?"":1===t.length?t[0]:kf.concat(t)}function Dh(e,t,n){const r=e.getValue();if(Hf(r))return mh([Pf,mh(e.map(e=>{const t=e.getValue(),n=t.prev?o(t.prev,t):"";return mh([n?mh([n,Yf(t.prev)?jf:""]):"",a(e)])},"children"))]);const u=r.children.map(()=>Symbol(""));return mh(e.map((e,t)=>{const n=e.getValue();if(nh(n)){if(n.prev&&nh(n.prev)){const t=o(n.prev,n);if(t)return Yf(n.prev)?mh([jf,jf,a(e)]):mh([t,a(e)])}return a(e)}const r=[],s=[],i=[],l=[],c=n.prev?o(n.prev,n):"",p=n.next?o(n,n.next):"";return c&&(Yf(n.prev)?r.push(jf,jf):c===jf?r.push(jf):nh(n.prev)?s.push(c):s.push(Lf("",zf,{groupId:u[t-1]}))),p&&(Yf(n)?nh(n.next)&&l.push(jf,jf):p===jf?nh(n.next)&&l.push(jf):i.push(p)),mh([].concat(r,_f(mh([mh(s),_f(mh([a(e),mh(i)]),{id:u[t]})])),l))},"children"));function a(e){const r=e.getValue();return Zf(r)?mh([].concat(Bh(r,t),ih(t.originalText.slice(t.locStart(r)+(r.prev&&Fh(r.prev)?Nh(r).length:0),t.locEnd(r)-(r.next&&xh(r.next)?Ih(r,t).length:0)),Wf),kh(r,t))):oh(r,t)?mh([].concat(Bh(r,t),_f(gh(e,t,n)),ih(t.originalText.slice(r.startSourceSpan.end.offset+(r.firstChild&&vh(r.firstChild)?-Oh(r).length:0),r.endSourceSpan.start.offset+(r.lastChild&&wh(r.lastChild)?Ph(r,t).length:Sh(r)?-Ih(r.lastChild,t).length:0)),Wf),Ch(r,t),kh(r,t))):n(e)}function o(e,t){return nh(e)&&nh(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?uh(t)?jf:Vf:"":uh(t)?jf:zf:Fh(e)&&(Zf(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&0!==t.attrs.length)||"element"===e.type&&e.isSelfClosing&&xh(t)?"":!t.isLeadingSpaceSensitive||uh(t)||xh(t)&&e.lastChild&&wh(e.lastChild)&&e.lastChild.lastChild&&wh(e.lastChild.lastChild)?jf:t.hasLeadingSpaces?Vf:zf}}function gh(e,t,n){const r=e.getValue(),u="element"===r.type&&"script"===r.fullName&&1===r.attrs.length&&"src"===r.attrs[0].fullName&&0===r.children.length;return mh([yh(r,t),r.attrs&&0!==r.attrs.length?mh([Rf(mh([u?" ":Vf,qf(Vf,(r=>{const u="boolean"===typeof r?()=>r:Array.isArray(r)?e=>r.includes(e.rawName):()=>!1;return e.map(e=>{const r=e.getValue();return u(r)?mh(ih(t.originalText.slice(t.locStart(r),t.locEnd(r)),Wf)):n(e)},"attrs")})(r.prev&&"comment"===r.prev.type&&Qf(r.prev.value)))])),r.firstChild&&vh(r.firstChild)||r.isSelfClosing&&Sh(r.parent)?r.isSelfClosing?" ":"":r.isSelfClosing?u?" ":Vf:u?"":zf]):r.isSelfClosing?" ":"",r.isSelfClosing?"":Eh(r)])}function yh(e,t){return e.prev&&Fh(e.prev)?"":mh([Bh(e,t),Nh(e)])}function Eh(e){return e.firstChild&&vh(e.firstChild)?"":Oh(e)}function Ch(e,t){return mh([e.isSelfClosing?"":bh(e,t),Ah(e,t)])}function bh(e,t){return e.lastChild&&wh(e.lastChild)?"":mh([Th(e,t),Ph(e,t)])}function Ah(e,t){return(e.next?xh(e.next):Sh(e.parent))?"":mh([Ih(e,t),kh(e,t)])}function Fh(e){return e.next&&!nh(e.next)&&nh(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function vh(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function xh(e){return e.prev&&!nh(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Sh(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!nh(Kf(e.lastChild))}function wh(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&nh(Kf(e))}function Bh(e,t){return vh(e)?Oh(e.parent):xh(e)?Ih(e.prev,t):""}function Th(e,t){return Sh(e)?Ih(e.lastChild,t):""}function kh(e,t){return wh(e)?Ph(e.parent,t):Fh(e)?Nh(e.next):""}function Nh(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return"\x3c!--[if ".concat(e.condition);case"ieConditionalEndComment":return"\x3c!--<!";case"interpolation":return"{{";case"docType":return"<!DOCTYPE";case"element":if(e.condition)return"\x3c!--[if ".concat(e.condition,"]>\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName)}}function Oh(e){switch(e.isSelfClosing,e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--<![endif]--\x3e";default:return">"}}function Ph(e,t){if(e.isSelfClosing,ah(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return"</".concat(e.rawName)}}function Ih(e,t){if(ah(e,t))return"";switch(e.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]--\x3e";case"ieConditionalStartComment":return"]>\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function Mh(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?ih(t,Wf):ih(Gf(t.replace(/^\s*?\n|\n\s*?$/g,"")),jf):qf(Vf,t.split(/[\t\n\f\r ]+/)).parts}var _h={preprocess:gf,print:function(e,t,n){const r=e.getValue();switch(r.type){case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(r),kf.concat([_f(Dh(e,t,n)),jf]);case"element":case"ieConditionalComment":{const a=1===r.children.length&&"interpolation"===r.firstChild.type&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,o=Symbol("element-attr-group-id");return mh([_f(mh([_f(gh(e,t,n),{id:o}),0===r.children.length?r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?Vf:"":mh([Xf(r)?Pf:"",(u=mh([a?Lf(zf,"",{groupId:o}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?Vf:"text"===r.firstChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive?If(zf):zf,Dh(e,t,n)]),a?Lf(Rf(u),u,{groupId:o}):th(r)&&"root"===r.parent.type&&"vue"===t.parser&&!t.vueIndentScriptAndStyle?u:Rf(u)),(r.next?xh(r.next):Sh(r.parent))?r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?" ":"":a?Lf(zf,"",{groupId:o}):r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?Vf:("comment"===r.lastChild.type||"text"===r.lastChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive)&&new RegExp("\\n\\s{".concat(t.tabWidth*Jf(e,e=>e.parent&&"root"!==e.parent.type),"}$")).test(r.lastChild.value)?"":zf])])),Ch(r,t)])}case"ieConditionalStartComment":case"ieConditionalEndComment":return mh([yh(r),Ah(r)]);case"interpolation":return mh([yh(r,t),mh(e.map(n,"children")),Ah(r,t)]);case"text":if("interpolation"===r.parent.type){const e=/\n[^\S\n]*?$/,t=e.test(r.value),n=t?r.value.replace(e,""):r.value;return mh([mh(ih(n,Wf)),t?jf:""])}return Mf(rh([].concat(Bh(r,t),Mh(r),kh(r,t))));case"docType":return mh([_f(mh([yh(r,t)," ",r.value.replace(/^html\b/i,"html").replace(/\s+/g," ")])),Ah(r,t)]);case"comment":return mh([Bh(r,t),mh(ih(t.originalText.slice(t.locStart(r),t.locEnd(r)),Wf)),kh(r,t)]);case"attribute":{if(null===r.value)return r.rawName;const e=sh(r.value),t=$f(e,"'")<$f(e,'"')?"'":'"';return mh([r.rawName,mh(["=",t,mh(ih('"'===t?e.replace(/"/g,"""):e.replace(/'/g,"'"),Wf)),t])])}case"yaml":case"toml":return mh(ih(r.raw,Wf));default:throw new Error("Unexpected node type ".concat(r.type))}var u},insertPragma:lh,massageAstNode:function(e,t){return delete t.sourceSpan,delete t.startSourceSpan,delete t.endSourceSpan,delete t.nameSpan,delete t.valueSpan,"text"===e.type||"comment"===e.type||"yaml"===e.type||"toml"===e.type?null:("attribute"===e.type&&delete t.value,void("docType"===e.type&&delete t.value))},embed:function(e,t,n,r){const u=e.getValue();switch(u.type){case"text":if(th(u.parent)){const e=eh(u.parent);if(e){const t="markdown"===e?Gf(u.value.replace(/^[^\S\n]*?\n/,"")):u.value;return kf.concat([mh([Pf,Bh(u,r),Nf(n(t,{parser:e})),kh(u,r)])])}}else if("interpolation"===u.parent.type)return mh([Rf(mh([Vf,n(u.value,Object.assign({__isInHtmlInterpolation:!0},"angular"===r.parser?{parser:"__ng_interpolation",trailingComma:"none"}:"vue"===r.parser?{parser:"__vue_expression"}:{parser:"__js_expression"}))])),u.parent.next&&xh(u.parent.next)?" ":Vf]);break;case"attribute":{if(!u.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(r.originalText.slice(u.valueSpan.start.offset,u.valueSpan.end.offset)))return mh([u.rawName,"=",u.value]);if("lwc"===r.parser&&/^\{[\s\S]*\}$/.test(r.originalText.slice(u.valueSpan.start.offset,u.valueSpan.end.offset)))return mh([u.rawName,"=",u.value]);const e=function(e,t,n){const r=t=>new RegExp(t.join("|")).test(e.fullName),u=()=>sh(e.value);let a=!1;const o=(e,t)=>{const n="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;!n||"ObjectExpression"!==n.type&&"ArrayExpression"!==n.type&&("__vue_expression"!==t.parser||"TemplateLiteral"!==n.type&&"StringLiteral"!==n.type)||(a=!0)},s=(e,t=!0)=>_f(mh([Rf(mh([zf,e])),t?zf:""])),i=e=>a?(e=>_f(e))(e):s(e),l=(e,n)=>t(e,Object.assign({__onHtmlBindingRoot:o},n));if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return s(fh(u()));if("class"===e.fullName&&!n.parentParser){const e=u();if(!e.includes("{{"))return hh(e)}if("style"===e.fullName&&!n.parentParser){const e=u();if(!e.includes("{{"))return s(l(e,{parser:"css",__isHTMLStyleAttribute:!0}))}if("vue"===n.parser){if("v-for"===e.fullName)return ch(u(),l);if("slot-scope"===e.fullName)return ph(u(),l);const t=["^:","^v-bind:"],n=["^v-"];if(r(["^@","^v-on:"])){const e=u();return i(dh(e)?l(e,{parser:"__js_expression"}):Nf(l(e,{parser:"__vue_event_binding"})))}if(r(t))return i(l(u(),{parser:"__vue_expression"}));if(r(n))return i(l(u(),{parser:"__js_expression"}))}if("angular"===n.parser){const t=(e,t)=>l(e,Object.assign({},t,{trailingComma:"none"})),n=["^\\*"],a=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],o=["^i18n(-.+)?$"];if(r(["^\\(.+\\)$","^on-"]))return i(t(u(),{parser:"__ng_action"}));if(r(a))return i(t(u(),{parser:"__ng_binding"}));if(r(o)){const t=u().trim();return s(Mf(Mh(e,t)),!t.includes("@@"))}if(r(n))return i(t(u(),{parser:"__ng_directive"}));const c=/\{\{([\s\S]+?)\}\}/g,p=u();if(c.test(p)){const e=[];return p.split(c).forEach((n,r)=>{if(r%2===0)e.push(mh(ih(n,Wf)));else try{e.push(_f(mh(["{{",Rf(mh([Vf,t(n,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})])),Vf,"}}"])))}catch(u){e.push("{{",mh(ih(n,Wf)),"}}")}}),_f(mh(e))}}return null}(u,(e,t)=>n(e,Object.assign({__isInHtmlAttribute:!0},t)),r);if(e)return mh([u.rawName,'="',_f(Of(e,e=>"string"===typeof e?e.replace(/"/g,"""):e)),'"']);break}case"yaml":return Uf(mh(["---",jf,0===u.value.trim().length?"":n(u.value,{parser:"yaml"}),"---"]))}}},jh={htmlWhitespaceSensitivity:{since:"1.15.0",category:"HTML",type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},vueIndentScriptAndStyle:{since:"1.19.0",category:"HTML",type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Lh=["xhtml"],Rh=[".html",".htm",".html.hl",".inc",".st",".xht",".xhtml"],qh={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:Lh,extensions:Rh,languageId:146},Vh=Object.freeze({__proto__:null,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:Lh,extensions:Rh,languageId:146,default:qh}),Wh=[".vue"],Uh={name:"Vue",type:"markup",color:"#2c3e50",extensions:Wh,tmScope:"text.html.vue",aceMode:"html",languageId:391},zh=Object.freeze({__proto__:null,name:"Vue",type:"markup",color:"#2c3e50",extensions:Wh,tmScope:"text.html.vue",aceMode:"html",languageId:391,default:Uh}),$h=Ze(Vh),Jh=Ze(zh),Gh={languages:[ql($h,()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]})),ql($h,e=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:e.extensions.concat([".mjml"])})),ql($h,()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]})),ql(Jh,()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}))],printers:{html:_h},options:jh};const{addLeadingComment:Hh,addTrailingComment:Xh,addDanglingComment:Yh,getNextNonSpaceNonCommentCharacterIndex:Kh}=Yo;function Qh(e,t){const n=e.body.filter(e=>"EmptyStatement"!==e.type);0===n.length?Yh(e,t):Hh(n[0],t)}function Zh(e,t){"BlockStatement"===e.type?Qh(e,t):Hh(e,t)}function em(e,t,n,r,u,a){return!(!n||"IfStatement"!==n.type||!r)&&(")"===no.getNextNonSpaceNonCommentCharacter(e,u,a.locEnd)?(Xh(t,u),!0):t===n.consequent&&r===n.alternate?("BlockStatement"===t.type?Xh(t,u):Yh(n,u),!0):"BlockStatement"===r.type?(Qh(r,u),!0):"IfStatement"===r.type?(Zh(r.consequent,u),!0):n.consequent===r&&(Hh(r,u),!0))}function tm(e,t,n,r,u,a){return!(!n||"WhileStatement"!==n.type||!r)&&(")"===no.getNextNonSpaceNonCommentCharacter(e,u,a.locEnd)?(Xh(t,u),!0):"BlockStatement"===r.type&&(Qh(r,u),!0))}function nm(e,t,n,r){return!(!e||"TryStatement"!==e.type&&"CatchClause"!==e.type||!n)&&("CatchClause"===e.type&&t?(Xh(t,r),!0):"BlockStatement"===n.type?(Qh(n,r),!0):"TryStatement"===n.type?(Zh(n.finalizer,r),!0):"CatchClause"===n.type&&(Zh(n.body,r),!0))}function rm(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?Xh(e.decorators[e.decorators.length-1],r):Hh(e,r),!0)}function um(e,t,n,r,u){return(t&&n&&("Property"===t.type||"TSDeclareMethod"===t.type||"TSAbstractMethodDefinition"===t.type)&&"Identifier"===n.type&&t.key===n&&":"!==no.getNextNonSpaceNonCommentCharacter(e,n,u.locEnd)||!(!n||!t||"Decorator"!==n.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"TSDeclareMethod"!==t.type&&"MethodDefinition"!==t.type))&&(Xh(n,r),!0)}function am(e,t,n,r,u,a){if(t&&"FunctionTypeParam"===t.type&&n&&"FunctionTypeAnnotation"===n.type&&r&&"FunctionTypeParam"!==r.type)return Xh(t,u),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&n&&cm(n)&&")"===no.getNextNonSpaceNonCommentCharacter(e,u,a.locEnd))return Xh(t,u),!0;if(n&&"FunctionDeclaration"===n.type&&r&&"BlockStatement"===r.type){const t=(()=>{if(0!==(n.params||n.parameters).length)return no.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,a.locEnd(no.getLast(n.params||n.parameters)));const t=no.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,a.locEnd(n.id));return no.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,t+1)})();if(a.locStart(u)>t)return Qh(r,u),!0}return!1}function om(e,t){return!(!e||"ImportSpecifier"!==e.type)&&(Hh(e,t),!0)}function sm(e,t){return!(!e||"LabeledStatement"!==e.type)&&(Hh(e,t),!0)}function im(e,t,n,r){return t&&t.body&&0===t.body.length?(r?Yh(t,n):Hh(t,n),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length)&&(r?Yh(e,n):Hh(e,n),!0)}function lm(e){return"Block"===e.type||"CommentBlock"===e.type}function cm(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function pm(e){return lm(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}var dm={handleOwnLineComment:function(e,t,n,r,u){const{precedingNode:a,enclosingNode:o,followingNode:s}=e;return am(t,a,o,s,e,n)||function(e,t,n){return!(!e||"MemberExpression"!==e.type&&"OptionalMemberExpression"!==e.type||!t||"Identifier"!==t.type)&&(Hh(e,n),!0)}(o,s,e)||em(t,a,o,s,e,n)||tm(t,a,o,s,e,n)||nm(o,a,s,e)||rm(o,0,s,e)||om(o,e)||function(e,t,n){return!(!e||"ForInStatement"!==e.type&&"ForOfStatement"!==e.type)&&(Hh(e,n),!0)}(o,0,e)||function(e,t,n,r){return!t||"UnionTypeAnnotation"!==t.type&&"TSUnionType"!==t.type?(n&&("UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)&&no.isNodeIgnoreComment(r)&&(n.types[0].prettierIgnore=!0,r.unignore=!0),!1):(no.isNodeIgnoreComment(r)&&(n.prettierIgnore=!0,r.unignore=!0),!!e&&(Xh(e,r),!0))}(a,o,s,e)||im(o,r,e,u)||function(e,t,n,r,u){return!!(n&&"ImportSpecifier"===n.type&&t&&"ImportDeclaration"===t.type&&no.hasNewline(e,u.locEnd(r)))&&(Xh(n,r),!0)}(t,o,a,e,n)||function(e,t){return!(!e||"AssignmentPattern"!==e.type)&&(Hh(e,t),!0)}(o,e)||um(t,o,a,e,n)||sm(o,e)},handleEndOfLineComment:function(e,t,n,r,u){const{precedingNode:a,enclosingNode:o,followingNode:s}=e;return function(e,t){return!(!e||!pm(t))&&(Hh(e,t),!0)}(s,e)||am(t,a,o,s,e,n)||function(e,t,n,r,u,a){const o=t&&!no.hasNewlineInRange(u,a.locEnd(t),a.locStart(r));return!(t&&o||!e||"ConditionalExpression"!==e.type||!n)&&(Hh(n,r),!0)}(o,a,s,e,t,n)||om(o,e)||em(t,a,o,s,e,n)||tm(t,a,o,s,e,n)||nm(o,a,s,e)||rm(o,0,s,e)||sm(o,e)||function(e,t,n){return!!(t&&("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&e&&t.callee===e&&t.arguments.length>0)&&(Hh(t.arguments[0],n),!0)}(a,o,e)||function(e,t){return!(!e||"Property"!==e.type&&"ObjectProperty"!==e.type)&&(Hh(e,t),!0)}(o,e)||im(o,r,e,u)||function(e,t,n){return!(!e||"TypeAlias"!==e.type)&&(Hh(e,n),!0)}(o,0,e)||function(e,t,n){return!(!e||"VariableDeclarator"!==e.type&&"AssignmentExpression"!==e.type||!t||"ObjectExpression"!==t.type&&"ArrayExpression"!==t.type&&"TemplateLiteral"!==t.type&&"TaggedTemplateExpression"!==t.type&&!lm(n))&&(Hh(t,n),!0)}(o,s,e)},handleRemainingComment:function(e,t,n,r,u){const{precedingNode:a,enclosingNode:o,followingNode:s}=e;return!!(em(t,a,o,s,e,n)||tm(t,a,o,s,e,n)||function(e,t,n){return!(!e||"ObjectProperty"!==e.type&&"Property"!==e.type||!e.shorthand||e.key!==t||"AssignmentPattern"!==e.value.type)&&(Xh(e.value.left,n),!0)}(o,a,e)||function(e,t,n,r){return")"===no.getNextNonSpaceNonCommentCharacter(e,n,r.locEnd)&&(t&&(cm(t)&&0===(t.params||t.parameters).length||("CallExpression"===t.type||"OptionalCallExpression"===t.type||"NewExpression"===t.type)&&0===t.arguments.length)?(Yh(t,n),!0):!(!t||"MethodDefinition"!==t.type||0!==t.value.params.length)&&(Yh(t.value,n),!0))}(t,o,e,n)||um(t,o,a,e,n)||im(o,r,e,u)||function(e,t,n,r){if(!t||"ArrowFunctionExpression"!==t.type)return!1;const u=Kh(e,n,r.locEnd);return"=>"===e.slice(u,u+2)&&(Yh(t,n),!0)}(t,o,e,n)||function(e,t,n,r,u){return"("===no.getNextNonSpaceNonCommentCharacter(e,r,u.locEnd)&&(!(!n||!t||"FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"MethodDefinition"!==t.type&&"ObjectMethod"!==t.type)&&(Xh(n,r),!0))}(t,o,a,e,n)||function(e,t,n,r,u){return!(!t||"TSMappedType"!==t.type)&&(r&&"TSTypeParameter"===r.type&&r.name?(Hh(r.name,u),!0):!(!n||"TSTypeParameter"!==n.type||!n.constraint)&&(Xh(n.constraint,u),!0))}(0,o,a,s,e)||function(e,t){return!(!e||"ContinueStatement"!==e.type&&"BreakStatement"!==e.type||e.label)&&(Xh(e,t),!0)}(o,e)||function(e,t,n,r,u){return!(n||!t||"TSMethodSignature"!==t.type&&"TSDeclareFunction"!==t.type&&"TSAbstractMethodDefinition"!==t.type||";"!==no.getNextNonSpaceNonCommentCharacter(e,r,u.locEnd))&&(Xh(t,r),!0)}(t,o,s,e,n))},hasLeadingComment:function(e,t=(()=>!0)){return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some(e=>e.leading&&t(e))},isBlockComment:lm,isTypeCastComment:pm,getGapRegex:function(e){if(e&&"BinaryExpression"!==e.type&&"LogicalExpression"!==e.type)return/^[\s(&|]*$/},getCommentChildNodes:function(e,t){if(("typescript"===t.parser||"flow"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===e.value.params.length&&!e.value.returnType&&(!e.value.typeParameters||0===e.value.typeParameters.length)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}};const{isBlockComment:fm,hasLeadingComment:hm}=dm,{builders:{indent:mm,join:Dm,line:gm,hardline:ym,softline:Em,literalline:Cm,concat:bm,group:Am,dedentToRoot:Fm},utils:{mapDoc:vm,stripTrailingHardline:xm}}=So;function Sm(e){return e.replace(/([\\`]|\$\{)/g,"\\$1")}function wm(e,t){return vm(e,e=>{if(!e.parts)return e;const n=[];return e.parts.forEach(e=>{"string"===typeof e?n.push(t?e.replace(/(\\*)`/g,"$1$1\\`"):Sm(e)):n.push(e)}),Object.assign({},e,{parts:n})})}function Bm(e){const t=[];let n=!1;return e.map(e=>e.trim()).forEach((e,r,u)=>{""!==e&&(""===u[r-1]&&n?t.push(bm([ym,e])):t.push(e),n=!0)}),0===t.length?null:Dm(ym,t)}function Tm(e){const 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(e=>"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 km(e){return e.match(e=>"TemplateLiteral"===e.type,(e,t)=>"ArrayExpression"===e.type&&"elements"===t,(e,t)=>("Property"===e.type||"ObjectProperty"===e.type)&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t,...Nm)}const Nm=[(e,t)=>"ObjectExpression"===e.type&&"properties"===t,(e,t)=>"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t,(e,t)=>"Decorator"===e.type&&"expression"===t];function Om(e){const t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;const{tag:n}=t;switch(n.type){case"MemberExpression":return Im(n.object)||Mm(n);case"CallExpression":return Im(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(Im(n.callee.object.object)||Mm(n.callee.object))||"CallExpression"===n.callee.object.type&&Im(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}function Pm(e){const t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}function Im(e){return"Identifier"===e.type&&"styled"===e.name}function Mm(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function _m(e,t){return hm(e,e=>fm(e)&&e.value===" ".concat(t," "))}let jm=0;var Lm=function(e,t,n,r){const u=e.getValue(),a=e.getParentNode(),o=e.getParentNode(1);switch(u.type){case"TemplateLiteral":{if([Tm,Om,Pm,km].some(t=>t(e))){const r=u.quasis.map(e=>e.value.raw);let a=0;const o=r.reduce((e,t,n)=>0===n?t:e+"@prettier-placeholder-"+a+++"-id"+t,"");return function(e,t,n){const r=t.getValue();if(1===r.quasis.length&&!r.quasis[0].value.raw.trim())return"``";const u=r.expressions?t.map(n,"expressions"):[],a=function(e,t){if(!t||!t.length)return e;const n=t.slice();let r=0;const u=vm(e,e=>{if(!e||!e.parts||!e.parts.length)return e;let{parts:t}=e;const u=t.indexOf("@"),a=u+1;if(u>-1&&"string"===typeof t[a]&&t[a].startsWith("prettier-placeholder")){const e=t[u],n=t[a],r=t.slice(a+1);t=t.slice(0,u).concat([e+n]).concat(r)}const o=t.findIndex(e=>"string"===typeof e&&e.startsWith("@prettier-placeholder"));if(o>-1){const e=t[o],u=t.slice(o+1),a=e.match(/@prettier-placeholder-(.+)-id([\s\S]*)/),s=a[1],i=a[2],l=n[s];r++,t=t.slice(0,o).concat(["${",l,"}"+i]).concat(u)}return Object.assign({},e,{parts:t})});return n.length===r?u:null}(e,u);if(!a)throw new Error("Couldn't insert all the expressions");return bm(["`",mm(bm([ym,xm(a)])),Em,"`"])}(n(o,{parser:"scss"}),e,t)}if(function(e){const t=e.getValue(),n=e.getParentNode();return _m(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)){const r=u.expressions?e.map(t,"expressions"):[],a=u.quasis.length;if(1===a&&""===u.quasis[0].value.raw.trim())return"``";const o=[];for(let e=0;e<a;e++){const t=0===e,s=e===a-1,i=u.quasis[e].value.cooked;if("string"!==typeof i)return null;const l=i.split("\n"),c=l.length,p=r[e],d=c>2&&""===l[0].trim()&&""===l[1].trim(),f=c>2&&""===l[c-1].trim()&&""===l[c-2].trim(),h=l.every(e=>/^\s*(?:#[^\r\n]*)?$/.test(e));if(!s&&/#[^\r\n]*$/.test(l[c-1]))return null;let m=null;m=h?Bm(l):xm(n(i,{parser:"graphql"})),m?(m=wm(m,!1),!t&&d&&o.push(""),o.push(m),!s&&f&&o.push("")):t||s||!d||o.push(""),p&&o.push(bm(["${",p,"}"]))}return bm(["`",mm(bm([ym,Dm(ym,o)])),ym,"`"])}const a=function(e){return _m(e.getValue(),"HTML")||e.match(e=>"TemplateLiteral"===e.type,(e,t)=>"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t)}(e)?"html":function(e){return e.match(e=>"TemplateLiteral"===e.type,(e,t)=>("Property"===e.type||"ObjectProperty"===e.type)&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t,...Nm)}(e)?"angular":void 0;if(a)return function(e,t,n,r,u){const a=e.getValue(),o=jm;jm=jm+1>>>0;const s=e=>"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(o,"_IN_JS"),i=a.quasis.map((e,t,n)=>t===n.length-1?e.value.cooked:e.value.cooked+s(t)).join(""),l=e.map(t,"expressions");if(0===l.length&&0===i.trim().length)return"``";const c=new RegExp(s("(\\d+)"),"g");let p=0;const d=vm(xm(n(i,{parser:r,__onHtmlRoot(e){p=e.children.length}})),e=>{if("string"!==typeof e)return e;const t=[],n=e.split(c);for(let r=0;r<n.length;r++){let e=n[r];if(r%2===0){e&&(e=Sm(e),u.embeddedInHtml&&(e=e.replace(/<\/(script)\b/gi,"<\\/$1")),t.push(e));continue}const a=+e;t.push(bm(["${",Am(l[a]),"}"]))}return bm(t)}),f=/^\s/.test(i)?" ":"",h=/\s$/.test(i)?" ":"",m="ignore"===u.htmlWhitespaceSensitivity?ym:f&&h?gm:null;return Am(bm(m?["`",mm(bm([m,Am(d)])),m,"`"]:["`",f,p>1?mm(Am(d)):Am(d),h,"`"]))}(e,t,n,a,r);break}case"TemplateElement":if(o&&"TaggedTemplateExpression"===o.type&&1===a.quasis.length&&"Identifier"===o.tag.type&&("md"===o.tag.name||"markdown"===o.tag.name)){const e=a.quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(e,t)=>"\\".repeat(t.length/2)+"`"),t=function(e){const t=e.match(/^([^\S\n]*)\S/m);return null===t?"":t[1]}(e);return bm([""!==t?mm(bm([Em,s(e.replace(new RegExp("^".concat(t),"gm"),""))])):bm([Cm,Fm(s(e))]),Em])}}function s(e){const t=n(e,{parser:"markdown",__inJsTemplate:!0});return xm(wm(t,!0))}},Rm=function(e,t,n){if(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","flags","errors"].forEach(e=>{delete t[e]}),e.loc&&null===e.loc.source&&delete t.loc.source,"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};"TSNamespaceExportDeclaration"===e.type&&e.specifiers&&0===e.specifiers.length&&delete t.specifiers,"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(e=>"jsx"===e.name.name)&&t.children.filter(e=>"JSXExpressionContainer"===e.type&&"TemplateLiteral"===e.expression.type).map(e=>e.expression).reduce((e,t)=>e.concat(t.quasis),[]).forEach(e=>delete e.value),"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&t.value.expression.quasis.forEach(e=>delete e.value);const r=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===r.type&&"Component"===r.callee.name&&1===r.arguments.length){const n=e.expression.arguments[0].properties;t.expression.arguments[0].properties.forEach((e,t)=>{let r=null;switch(n[t].key.name){case"styles":"ArrayExpression"===e.value.type&&(r=e.value.elements[0]);break;case"template":"TemplateLiteral"===e.value.type&&(r=e.value)}r&&r.quasis.forEach(e=>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(e=>delete e.value),"TemplateLiteral"===e.type&&(e.leadingComments&&e.leadingComments.some(e=>"CommentBlock"===e.type&&["GraphQL","HTML"].some(t=>e.value===" ".concat(t," ")))||"CallExpression"===n.type&&"graphql"===n.callee.name)&&t.quasis.forEach(e=>delete e.value)};const{getLast:qm,hasNewline:Vm,hasNewlineInRange:Wm,hasIgnoreComment:Um,hasNodeIgnoreComment:zm,skipWhitespace:$m}=no,Jm=xu.keyword.isIdentifierNameES5,Gm=new RegExp("^".concat("(?:(?=.)\\s)","*:")),Hm=new RegExp("^".concat("(?:(?=.)\\s)","*::"));function Xm(e,t){if(!e||"object"!==typeof e)return!1;if(Array.isArray(e))return e.some(e=>Xm(e,t));const n=t(e);return"boolean"===typeof n?n:Object.keys(e).some(n=>Xm(e[n],t))}function Ym(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}const Km=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function Qm(e){return e&&Km.has(e.type)}function Zm(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 eD(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"===typeof e.value}function tD(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"===typeof e.value}function nD(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function rD(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 uD(e){return"JSXElement"===e.type||"JSXFragment"===e.type}function aD(e){return"get"===e.kind||"set"===e.kind}function oD(e,t,n){return n.locStart(e)===n.locStart(t)}function sD(e,t){return aD(e)||oD(e,e.value,t)}const iD=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]),lD=/^(skip|[fx]?(it|describe|test))$/;function cD(e){return"CallExpression"===e.type||"OptionalCallExpression"===e.type}const pD=new RegExp("([ \n\r\t]+)"),dD=new RegExp("[^ \n\r\t]");function fD(e){return Zm(e)&&(dD.test(DD(e))||!/\n/.test(DD(e)))}function hD(e,t,n){return uD(t)?zm(t):t.comments&&t.comments.some(t=>t.leading&&Vm(e,n.locEnd(t)))}function mD(e){return e.quasis.some(e=>e.value.raw.includes("\n"))}function DD(e){return e.extra?e.extra.raw:e.raw}var gD={classChildNeedsASIProtection:function(e){if(e){if(e.static||e.accessibility)return!1;if(!e.computed){const 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":{const t=e.value?e.value.async:e.async,n=e.value?e.value.generator:e.generator;return!t&&"get"!==e.kind&&"set"!==e.kind&&!(!e.computed&&!n)}case"TSIndexSignature":return!0;default:return!1}}},classPropMayCauseASIProblems:function(e){const t=e.getNode();if("ClassProperty"!==t.type)return!1;const n=t.key&&t.key.name;return!("static"!==n&&"get"!==n&&"set"!==n||t.value||t.typeAnnotation)||void 0},conditionalExpressionChainContainsJSX:function(e){return Boolean(function(e){const t=[];return function e(n){"ConditionalExpression"===n.type?(e(n.test),e(n.consequent),e(n.alternate)):t.push(n)}(e),t}(e).find(uD))},getFlowVariance:function(e){if(!e.variance)return null;const t=e.variance.kind||e.variance;switch(t){case"plus":return"+";case"minus":return"-";default:return t}},getLeftSidePathName:function(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)},getParentExportDeclaration:function(e){const t=e.getParentNode();return"declaration"===e.getName()&&Qm(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t},hasDanglingComments:function(e){return e.comments&&e.comments.some(e=>!e.leading&&!e.trailing)},hasFlowAnnotationComment:function(e){return e&&e[0].value.match(Hm)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&e.trailingComments&&e.trailingComments[0].value.match(Gm)},hasLeadingComment:function(e){return e.comments&&e.comments.some(e=>e.leading)},hasLeadingOwnLineComment:hD,hasNakedLeftSide:Ym,hasNewlineBetweenOrAfterDecorators:function(e,t){return Wm(t.originalText,t.locStart(e.decorators[0]),t.locEnd(qm(e.decorators)))||Vm(t.originalText,t.locEnd(qm(e.decorators)))},hasNgSideEffect:function(e){return Xm(e.getValue(),e=>{switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})},hasNode:Xm,hasPrettierIgnore:function(e){return Um(e)||function(e){const t=e.getValue(),n=e.getParentNode();if(!n||!t||!uD(t)||!uD(n))return!1;let r=null;for(let u=n.children.indexOf(t);u>0;u--){const e=n.children[u-1];if("JSXText"!==e.type||fD(e)){r=e;break}}return r&&"JSXExpressionContainer"===r.type&&"JSXEmptyExpression"===r.expression.type&&r.expression.comments&&r.expression.comments.find(e=>"prettier-ignore"===e.value.trim())}(e)},hasTrailingComment:function(e){return e.comments&&e.comments.some(e=>e.trailing)},identity:function(e){return e},isBinaryish:function(e){return iD.has(e.type)},isCallOrOptionalCallExpression:cD,isEmptyJSXElement:function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;const t=e.children[0];return Zm(t)&&!fD(t)},isExportDeclaration:Qm,isFlowAnnotationComment:function(e,t,n){const r=n.locStart(t),u=$m(e,n.locEnd(t));return"/*"===e.slice(r,r+2)&&"*/"===e.slice(u,u+2)},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;let t=0;for(const n of e)if(nD(n)){if(t+=1,t>1)return!0}else if(cD(n))for(const e of n.arguments)if(nD(e))return!0;return!1},isFunctionNotation:sD,isFunctionOrArrowExpression:nD,isGetterOrSetter:aD,isJestEachTemplateLiteral:function(e,t){const 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))},isJSXNode:uD,isJSXWhitespaceExpression:function(e){return"JSXExpressionContainer"===e.type&&Zm(e.expression)&&" "===e.expression.value&&!e.expression.comments},isLastStatement:function(e){const t=e.getParentNode();if(!t)return!0;const n=e.getValue(),r=(t.body||t.consequent).filter(e=>"EmptyStatement"!==e.type);return r&&r[r.length-1]===n},isLiteral:Zm,isLongCurriedCallExpression:function(e){const t=e.getValue(),n=e.getParentNode();return cD(t)&&cD(n)&&n.callee===t&&t.arguments.length>n.arguments.length&&n.arguments.length>0},isSimpleCallArgument:function e(t,n){if(n>=2)return!1;const r=t=>e(t,n+1),u="Literal"===t.type&&t.regex&&t.regex.pattern||"RegExpLiteral"===t.type&&t.pattern;return!(u&&u.length>5)&&("Literal"===t.type||"BooleanLiteral"===t.type||"NullLiteral"===t.type||"NumericLiteral"===t.type||"StringLiteral"===t.type||"Identifier"===t.type||"ThisExpression"===t.type||"Super"===t.type||"BigIntLiteral"===t.type||"PrivateName"===t.type||"ArgumentPlaceholder"===t.type||"RegExpLiteral"===t.type||"Import"===t.type||("TemplateLiteral"===t.type?t.expressions.every(r):"ObjectExpression"===t.type?t.properties.every(e=>!e.computed&&(e.shorthand||e.value&&r(e.value))):"ArrayExpression"===t.type?t.elements.every(e=>null==e||r(e)):"CallExpression"===t.type||"OptionalCallExpression"===t.type||"NewExpression"===t.type?e(t.callee,n)&&t.arguments.every(r):"MemberExpression"===t.type||"OptionalMemberExpression"===t.type?e(t.object,n)&&e(t.property,n):"UnaryExpression"!==t.type||"!"!==t.operator&&"-"!==t.operator?"TSNonNullExpression"===t.type&&e(t.expression,n):e(t.argument,n)))},isMeaningfulJSXText:fD,isMemberExpressionChain:function e(t){return("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&("Identifier"===t.object.type||e(t.object))},isMemberish:function(e){return"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"BindExpression"===e.type&&e.object},isNgForOf:function(e,t,n){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===n.body[0].type&&null===n.body[0].value},isNumericLiteral:eD,isObjectType:function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type},isObjectTypePropertyAFunction:function(e,t){return("ObjectTypeProperty"===e.type||"ObjectTypeInternalSlot"===e.type)&&"FunctionTypeAnnotation"===e.value.type&&!e.static&&!sD(e,t)},isSimpleFlowType:function(e){return e&&["AnyTypeAnnotation","NullLiteralTypeAnnotation","GenericTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation","BooleanTypeAnnotation","BooleanLiteralTypeAnnotation","StringTypeAnnotation"].includes(e.type)&&!("GenericTypeAnnotation"===e.type&&e.typeParameters)},isSimpleTemplateLiteral:function(e){return 0!==e.expressions.length&&e.expressions.every(e=>{if(e.comments)return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if("MemberExpression"===e.type||"OptionalMemberExpression"===e.type){let t=e;for(;"MemberExpression"===t.type||"OptionalMemberExpression"===t.type;){if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type)return!1;if(t=t.object,t.comments)return!1}return"Identifier"===t.type||"ThisExpression"===t.type}return!1})},isStringLiteral:tD,isStringPropSafeToCoerceToIdentifier:function(e,t){return tD(e.key)&&Jm(e.key.value)&&"json"!==t.parser&&!(("typescript"===t.parser||"babel-ts"===t.parser)&&"ClassProperty"===e.type)},isTemplateOnItsOwnLine:function(e,t,n){return("TemplateLiteral"===e.type&&mD(e)||"TaggedTemplateExpression"===e.type&&mD(e.quasi))&&!Vm(t,n.locStart(e),{backwards:!0})},isTestCall:function e(t,n){if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){if(rD(t)&&n&&e(n))return nD(t.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(before|after)(Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(t))return rD(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("Identifier"===t.callee.type&&lD.test(t.callee.name)||("MemberExpression"===(r=t).callee.type||"OptionalMemberExpression"===r.callee.type)&&"Identifier"===r.callee.object.type&&"Identifier"===r.callee.property.type&&lD.test(r.callee.object.name)&&("only"===r.callee.property.name||"skip"===r.callee.property.name))&&(function(e){return"TemplateLiteral"===e.type}(t.arguments[0])||tD(t.arguments[0])))return!(t.arguments[2]&&!eD(t.arguments[2]))&&((2===t.arguments.length?nD(t.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(t.arguments[1])&&t.arguments[1].params.length<=1)||rD(t.arguments[1]));var r;return!1},isTheOnlyJSXElementInMarkdown:function(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;const n=t.getNode();if(!n.expression||!uD(n.expression))return!1;const r=t.getParentNode();return"Program"===r.type&&1===r.body.length},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e,t){return("TypeAnnotation"===e.type||"TSTypeAnnotation"===e.type)&&"FunctionTypeAnnotation"===e.typeAnnotation.type&&!e.static&&!oD(e,e.typeAnnotation,t)},matchJsxWhitespaceRegex:pD,needsHardlineAfterDanglingComment:function(e){if(!e.comments)return!1;const t=qm(e.comments.filter(e=>!e.leading&&!e.trailing));return t&&!dm.isBlockComment(t)},rawText:DD,returnArgumentHasLeadingComment:function(e,t){if(hD(e.originalText,t,e))return!0;if(Ym(t)){let r,u=t;for(;r=(n=u).expressions?n.expressions[0]:n.left||n.test||n.callee||n.object||n.tag||n.argument||n.expression;)if(u=r,hD(e.originalText,u,e))return!0}var n;return!1}};const{getLeftSidePathName:yD,hasFlowShorthandAnnotationComment:ED,hasNakedLeftSide:CD,hasNode:bD}=gD;function AD(e,t){const n=e.getParentNode();if(!n)return!1;const r=e.getName(),u=e.getNode();if(e.getValue()!==u)return!1;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(e){switch(e.type){case"ObjectExpression":return!0;default:return!1}}(u)&&FD(e))return!0;if(function(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||"EnumDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExpressionStatement"===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}(u))return!1;if("flow"!==t.parser&&ED(e.getValue()))return!0;if("Identifier"===u.type)return!!(u.extra&&u.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(u.name));if("ParenthesizedExpression"===n.type)return!1;if(("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===u&&("ArrowFunctionExpression"===u.type||"AssignmentExpression"===u.type||"AwaitExpression"===u.type||"BinaryExpression"===u.type||"ConditionalExpression"===u.type||"LogicalExpression"===u.type||"NewExpression"===u.type||"ObjectExpression"===u.type||"ParenthesizedExpression"===u.type||"SequenceExpression"===u.type||"TaggedTemplateExpression"===u.type||"UnaryExpression"===u.type||"UpdateExpression"===u.type||"YieldExpression"===u.type))return!0;if("ExportDefaultDeclaration"===n.type)return function e(t,n){const r=t.getValue(),u=t.getParentNode();return"FunctionExpression"===r.type||"ClassExpression"===r.type?"ExportDefaultDeclaration"===u.type||!AD(t,n):!(!CD(r)||"ExportDefaultDeclaration"!==u.type&&AD(t,n))&&t.call(t=>e(t,n),...yD(t,r))}(e,t)||"SequenceExpression"===u.type;if("Decorator"===n.type&&n.expression===u){let e=!1,t=!1,n=u;for(;n;)switch(n.type){case"MemberExpression":t=!0,n=n.object;break;case"CallExpression":if(t||e)return!0;e=!0,n=n.callee;break;case"Identifier":return!1;default:return!0}return!0}if("ArrowFunctionExpression"===n.type&&n.body===u&&"SequenceExpression"!==u.type&&no.startsWithNoLookaheadToken(u,!1)||"ExpressionStatement"===n.type&&no.startsWithNoLookaheadToken(u,!0))return!0;switch(u.type){case"SpreadElement":case"SpreadProperty":return"MemberExpression"===n.type&&"object"===r&&n.object===u;case"UpdateExpression":if("UnaryExpression"===n.type)return u.prefix&&("++"===u.operator&&"+"===n.operator||"--"===u.operator&&"-"===n.operator);case"UnaryExpression":switch(n.type){case"UnaryExpression":return u.operator===n.operator&&("+"===u.operator||"-"===u.operator);case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"BinaryExpression":return"**"===n.operator&&"left"===r;case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":{if("UpdateExpression"===n.type)return!0;const t=t=>{let n=0;for(;t;){const r=e.getParentNode(n++);if(!r)return!1;if("ForStatement"===r.type&&r.init===t)return!0;t=r}return!1};if("in"===u.operator&&t(u))return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(n.type){case"ConditionalExpression":return"TSAsExpression"===u.type;case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===r;case"ClassExpression":case"ClassDeclaration":return"superClass"===r&&n.superClass===u;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"===r;case"AssignmentExpression":return n.left===u&&("TSTypeAssertion"===u.type||"TSAsExpression"===u.type);case"LogicalExpression":if("LogicalExpression"===u.type)return n.operator!==u.operator;case"BinaryExpression":{if(!u.operator&&"TSTypeAssertion"!==u.type)return!0;const e=n.operator,t=no.getPrecedence(e),a=u.operator,o=no.getPrecedence(a);return t>o||(t===o&&"right"===r?(ha.strictEqual(n.right,u),!0):t===o&&!no.shouldFlatten(e,a)||(t<o&&"%"===a?"+"===e||"-"===e:!!no.isBitwiseOperator(e)))}default:return!1}case"SequenceExpression":switch(n.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==r;case"ArrowFunctionExpression":return"body"!==r;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":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"ConditionalExpression":return n.test===u;default:return!1}case"TSJSDocFunctionType":case"TSConditionalType":if("TSConditionalType"===n.type&&u===n.extendsType)return!0;case"TSFunctionType":case"TSConstructorType":if("TSConditionalType"===n.type&&u===n.checkType)return!0;case"TSUnionType":case"TSIntersectionType":if("TSUnionType"===n.type||"TSIntersectionType"===n.type)return!0;case"TSTypeOperator":case"TSInferType":return"TSArrayType"===n.type||"TSOptionalType"===n.type||"TSRestType"===n.type||"TSIndexedAccessType"===n.type&&u===n.objectType||"TSTypeOperator"===n.type||"TSTypeAnnotation"===n.type&&/^TSJSDoc/.test(e.getParentNode(1).type);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":{const t="NullableTypeAnnotation"===n.type?e.getParentNode(1):n;return"UnionTypeAnnotation"===t.type||"IntersectionTypeAnnotation"===t.type||"ArrayTypeAnnotation"===t.type||"NullableTypeAnnotation"===t.type}case"StringLiteral":case"NumericLiteral":case"Literal":if("string"===typeof u.value&&"ExpressionStatement"===n.type&&("typescript"!==t.parser&&!n.directive||"typescript"===t.parser&&"("===t.originalText.charAt(t.locStart(u)-1))){const t=e.getParentNode(1);return"Program"===t.type||"BlockStatement"===t.type}return"MemberExpression"===n.type&&"number"===typeof u.value&&"object"===r&&n.object===u;case"AssignmentExpression":{const t=e.getParentNode(1);return"ArrowFunctionExpression"===n.type&&n.body===u||("ClassProperty"!==n.type||n.key!==u||!n.computed)&&("TSPropertySignature"!==n.type||n.name!==u)&&("ForStatement"!==n.type||n.init!==u&&n.update!==u)&&("ExpressionStatement"===n.type?"ObjectPattern"===u.left.type:("TSPropertySignature"!==n.type||n.key!==u)&&"AssignmentExpression"!==n.type&&("SequenceExpression"!==n.type||!t||"ForStatement"!==t.type||t.init!==n&&t.update!==n)&&("Property"!==n.type||n.value!==u)&&"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":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"ConditionalExpression":return"test"===r&&n.test===u;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;default:return!1}case"FunctionExpression":switch(n.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(n.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"TSAsExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"BinaryExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return"test"===r;default:return!1}case"ClassExpression":switch(n.type){case"NewExpression":return"callee"===r&&n.callee===u;default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":if("MemberExpression"===n.type&&"object"===r||("CallExpression"===n.type||"NewExpression"===n.type)&&"callee"===r)return!0;case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if(("BindExpression"===n.type||"NewExpression"===n.type)&&"callee"===r){let e=u;for(;e;)switch(e.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":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||"NewExpression"===n.type)&&"callee"===r||("MemberExpression"===n.type||"OptionalMemberExpression"===n.type)&&"object"===r;case"NGPipeExpression":return!("NGRoot"===n.type||"NGMicrosyntaxExpression"===n.type||"ObjectProperty"===n.type||"ArrayExpression"===n.type||("CallExpression"===n.type||"OptionalCallExpression"===n.type)&&n.arguments[r]===u||"NGPipeExpression"===n.type&&"right"===r||"MemberExpression"===n.type&&"property"===r||"AssignmentExpression"===n.type);case"JSXFragment":case"JSXElement":return"callee"===r||"ArrayExpression"!==n.type&&"ArrowFunctionExpression"!==n.type&&"AssignmentExpression"!==n.type&&"AssignmentPattern"!==n.type&&"BinaryExpression"!==n.type&&"CallExpression"!==n.type&&"NewExpression"!==n.type&&"ConditionalExpression"!==n.type&&"ExpressionStatement"!==n.type&&"JsExpressionRoot"!==n.type&&"JSXAttribute"!==n.type&&"JSXElement"!==n.type&&"JSXExpressionContainer"!==n.type&&"JSXFragment"!==n.type&&"LogicalExpression"!==n.type&&"ObjectProperty"!==n.type&&"OptionalCallExpression"!==n.type&&"Property"!==n.type&&"ReturnStatement"!==n.type&&"ThrowStatement"!==n.type&&"TypeCastExpression"!==n.type&&"VariableDeclarator"!==n.type&&"YieldExpression"!==n.type;case"TypeAnnotation":return"returnType"===r&&"ArrowFunctionExpression"===n.type&&function(e){return bD(e,e=>"ObjectTypeAnnotation"===e.type&&bD(e,e=>"FunctionTypeAnnotation"===e.type||void 0)||void 0)}(u)}return!1}function FD(e){const 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(FD);break;case"ObjectProperty":if("value"===r){const t=e.getParentNode(1);return t.properties[t.properties.length-1]===n}break;case"BinaryExpression":case"LogicalExpression":if("right"===r)return e.callParent(FD);break;case"ConditionalExpression":if("alternate"===r)return e.callParent(FD);break;case"UnaryExpression":if(n.prefix)return e.callParent(FD)}return!1}var vD=AD;const{builders:{concat:xD,join:SD,line:wD}}=So;var BD={isVueEventBindingExpression:function e(t){switch(t.type){case"MemberExpression":switch(t.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return e(t.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function(e,t,n){const r=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(r,t),"File"===r.type)return t.__isVueForBindingLeft?e.call(e=>{const{params:t}=e.getValue();return xD([t.length>1?"(":"",SD(xD([",",wD]),e.map(n,"params")),t.length>1?")":""])},"program","body",0):t.__isVueSlotScope?e.call(e=>SD(xD([",",wD]),e.map(n,"params")),"program","body",0):void 0}},TD=function(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:[],rootMarker:t.rootMarker});default:return e}};const{shouldFlatten:kD,getNextNonSpaceNonCommentCharacter:ND,hasNewline:OD,hasNewlineInRange:PD,getLast:ID,getStringWidth:MD,printString:_D,printNumber:jD,hasIgnoreComment:LD,hasNodeIgnoreComment:RD,getPenultimate:qD,startsWithNoLookaheadToken:VD,getIndentSize:WD,getPreferredQuote:UD}=no,{isNextLineEmpty:zD,isNextLineEmptyAfterIndex:$D,getNextNonSpaceNonCommentCharacterIndex:JD}=Yo,{insertPragma:GD}=ri,{printHtmlBinding:HD,isVueEventBindingExpression:XD}=BD,{classChildNeedsASIProtection:YD,classPropMayCauseASIProblems:KD,conditionalExpressionChainContainsJSX:QD,getFlowVariance:ZD,getLeftSidePathName:eg,getParentExportDeclaration:tg,getTypeScriptMappedTypeModifier:ng,hasDanglingComments:rg,hasFlowAnnotationComment:ug,hasFlowShorthandAnnotationComment:ag,hasLeadingComment:og,hasLeadingOwnLineComment:sg,hasNakedLeftSide:ig,hasNewlineBetweenOrAfterDecorators:lg,hasNgSideEffect:cg,hasPrettierIgnore:pg,hasTrailingComment:dg,identity:fg,isBinaryish:hg,isCallOrOptionalCallExpression:mg,isEmptyJSXElement:Dg,isExportDeclaration:gg,isFlowAnnotationComment:yg,isFunctionCompositionArgs:Eg,isFunctionNotation:Cg,isFunctionOrArrowExpression:bg,isGetterOrSetter:Ag,isJestEachTemplateLiteral:Fg,isJSXNode:vg,isJSXWhitespaceExpression:xg,isLastStatement:Sg,isLiteral:wg,isLongCurriedCallExpression:Bg,isMeaningfulJSXText:Tg,isMemberExpressionChain:kg,isMemberish:Ng,isNgForOf:Og,isNumericLiteral:Pg,isObjectType:Ig,isObjectTypePropertyAFunction:Mg,isSimpleCallArgument:_g,isSimpleFlowType:jg,isSimpleTemplateLiteral:Lg,isStringLiteral:Rg,isStringPropSafeToCoerceToIdentifier:qg,isTemplateOnItsOwnLine:Vg,isTestCall:Wg,isTheOnlyJSXElementInMarkdown:Ug,isTSXFile:zg,isTypeAnnotationAFunction:$g,matchJsxWhitespaceRegex:Jg,needsHardlineAfterDanglingComment:Gg,rawText:Hg,returnArgumentHasLeadingComment:Xg}=gD,Yg=new WeakMap,{builders:{concat:Kg,join:Qg,line:Zg,hardline:ey,softline:ty,literalline:ny,group:ry,indent:uy,align:ay,conditionalGroup:oy,fill:sy,ifBreak:iy,breakParent:ly,lineSuffixBoundary:cy,addAlignmentToDoc:py,dedent:dy},utils:{willBreak:fy,isLineNext:hy,isEmpty:my,removeLines:Dy},printer:{printDocToString:gy}}=So;let yy=0;function Ey(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 Cy(e,t,n){const r=e.getValue();return ry(Kg([Qg(Zg,e.map(n,"decorators")),lg(r,t)?ey:Zg]))}function by(e,t,n,r){const u=e.getValue(),a=u[r.consequentNodePropertyName],o=u[r.alternateNodePropertyName],s=[];let i=!1;const l=e.getParentNode(),c=l.type===r.conditionalNodeType&&r.testNodePropertyNames.some(e=>l[e]===u);let p,d,f=l.type===r.conditionalNodeType&&!c,h=0;do{d=p||u,p=e.getParentNode(h),h++}while(p&&p.type===r.conditionalNodeType&&r.testNodePropertyNames.every(e=>p[e]!==d));const m=p||l,D=d;if(r.shouldCheckJsx&&(vg(u[r.testNodePropertyNames[0]])||vg(a)||vg(o)||QD(D))){i=!0,f=!0;const t=e=>Kg([iy("(",""),uy(Kg([ty,e])),ty,iy(")","")]),u=e=>"NullLiteral"===e.type||"Literal"===e.type&&null===e.value||"Identifier"===e.type&&"undefined"===e.name;s.push(" ? ",u(a)?e.call(n,r.consequentNodePropertyName):t(e.call(n,r.consequentNodePropertyName))," : ",o.type===r.conditionalNodeType||u(o)?e.call(n,r.alternateNodePropertyName):t(e.call(n,r.alternateNodePropertyName)))}else{const i=Kg([Zg,"? ",a.type===r.conditionalNodeType?iy("","("):"",ay(2,e.call(n,r.consequentNodePropertyName)),a.type===r.conditionalNodeType?iy("",")"):"",Zg,": ",o.type===r.conditionalNodeType?e.call(n,r.alternateNodePropertyName):ay(2,e.call(n,r.alternateNodePropertyName))]);s.push(l.type!==r.conditionalNodeType||l[r.alternateNodePropertyName]===u||c?i:t.useTabs?dy(uy(i)):ay(Math.max(0,t.tabWidth-2),i))}const g=!i&&("MemberExpression"===l.type||"OptionalMemberExpression"===l.type||"NGPipeExpression"===l.type&&l.left===u)&&!l.computed,y=(e=>l===m?ry(e):e)(Kg([].concat((E=Kg(r.beforeParts()),l.type===r.conditionalNodeType&&l[r.alternateNodePropertyName]===u?ay(2,E):E),f?Kg(s):uy(Kg(s)),r.afterParts(g))));var E;return c?ry(Kg([uy(Kg([ty,y])),ty])):y}function Ay(e,t,n){const r=[],u=e.getNode(),a="ClassBody"===u.type;return e.map((e,o)=>{const s=e.getValue();if(!s)return;if("EmptyStatement"===s.type)return;const i=n(e),l=t.originalText,c=[];if(t.semi||a||Ug(t,e)||!function(e,t){return"ExpressionStatement"===e.getNode().type&&e.call(e=>function e(t,n){const r=t.getValue();return!!(vD(t,n)||"ParenthesizedExpression"===r.type||"TypeCastExpression"===r.type||"ArrowFunctionExpression"===r.type&&!Ny(t,n)||"ArrayExpression"===r.type||"ArrayPattern"===r.type||"UnaryExpression"===r.type&&r.prefix&&("+"===r.operator||"-"===r.operator)||"TemplateLiteral"===r.type||"TemplateElement"===r.type||vg(r)||"BindExpression"===r.type&&!r.object||"RegExpLiteral"===r.type||"Literal"===r.type&&r.pattern||"Literal"===r.type&&r.regex)||!!ig(r)&&t.call(t=>e(t,n),...eg(t,r))}(e,t),"expression")}(e,t)?c.push(i):s.comments&&s.comments.some(e=>e.leading)?c.push(n(e,{needsSemi:!0})):c.push(";",i),!t.semi&&a)if(KD(e))c.push(";");else if("ClassProperty"===s.type){const e=u.body[o+1];YD(e)&&c.push(";")}zD(l,s,t.locEnd)&&!Sg(e)&&c.push(ey),r.push(Kg(c))}),Qg(ey,r)}function Fy(e,t,n){const r=e.getNode();if(r.computed)return Kg(["[",e.call(n,"key"),"]"]);const u=e.getParentNode(),{key:a}=r;if("ClassPrivateProperty"===r.type&&"Identifier"===a.type)return Kg(["#",e.call(n,"key")]);if("consistent"===t.quoteProps&&!Yg.has(u)){const e=(u.properties||u.body||u.members).some(e=>!e.computed&&e.key&&Rg(e.key)&&!qg(e,t));Yg.set(u,e)}if("Identifier"===a.type&&("json"===t.parser||"consistent"===t.quoteProps&&Yg.get(u))){const n=_D(JSON.stringify(a.name),t);return e.call(e=>gs.printComments(e,()=>n,t),"key")}return qg(r,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!Yg.get(u))?e.call(e=>gs.printComments(e,()=>a.value,t),"key"):e.call(n,"key")}function vy(e,t,n){const r=e.getNode(),{kind:u}=r,a=r.value||r,o=[];return u&&"init"!==u&&"method"!==u&&"constructor"!==u?(ha.ok("get"===u||"set"===u),o.push(u," ")):(a.async&&o.push("async "),a.generator&&o.push("*")),o.push(Fy(e,t,n),r.optional||r.key.optional?"?":"",r===a?xy(e,t,n):e.call(e=>xy(e,t,n),"value")),Kg(o)}function xy(e,t,n){const r=[Ty(e,0,n),ry(Kg([ky(e,n,t),Py(e,n,t)]))];return e.getNode().body?r.push(" ",e.call(n,"body")):r.push(t.semi?";":""),Kg(r)}function Sy(e){return"ObjectExpression"===e.type&&(e.properties.length>0||e.comments)||"ArrayExpression"===e.type&&(e.elements.length>0||e.comments)||"TSTypeAssertion"===e.type&&Sy(e.expression)||"TSAsExpression"===e.type&&Sy(e.expression)||"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||vg(e.body))}function wy(e,t,n){const r=e.getValue(),u=r.arguments;if(0===u.length)return Kg(["(",gs.printDanglingComments(e,t,!0),")"]);if(2===u.length&&"ArrowFunctionExpression"===u[0].type&&0===u[0].params.length&&"BlockStatement"===u[0].body.type&&"ArrayExpression"===u[1].type&&!u.find(e=>e.comments))return Kg(["(",e.call(n,"arguments",0),", ",e.call(n,"arguments",1),")"]);let a=!1,o=!1,s=!1;const i=u.length-1,l=e.map((e,r)=>{const u=e.getNode(),l=[n(e)];return r===i||(zD(t.originalText,u,t.locEnd)?(0===r&&(s=!0),a=!0,l.push(",",ey,ey)):l.push(",",Zg)),o=function(e,t){if(!e||"ArrowFunctionExpression"!==e.type||!e.body||"BlockStatement"!==e.body.type||!e.params||e.params.length<1)return!1;let r=!1;return t.each(e=>{const t=Kg([n(e)]);r=r||fy(t)},"params"),r}(u,e),Kg(l)},"arguments"),c=r.callee&&"Import"===r.callee.type||!Ey(t,"all")?"":",";function p(){return ry(Kg(["(",uy(Kg([Zg,Kg(l)])),c,Zg,")"]),{shouldBreak:!0})}if("Decorator"!==e.getParentNode().type&&Eg(u))return p();const d=function(e){if(2!==e.length)return!1;const[t,n]=e;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&&!Sy(n)}(u),f=function(e){const t=ID(e),n=qD(e);return!og(t)&&!dg(t)&&Sy(t)&&(!n||n.type!==t.type)}(u);if(d||f){const t=(d?l.slice(1).some(fy):l.slice(0,-1).some(fy))||a||o;let i,c=0;e.each(e=>{d&&0===c&&(i=[Kg([e.call(e=>n(e,{expandFirstArg:!0})),l.length>1?",":"",s?ey:Zg,s?ey:""])].concat(l.slice(1))),f&&c===u.length-1&&(i=l.slice(0,-1).concat(e.call(e=>n(e,{expandLastArg:!0})))),c++},"arguments");const h=l.some(fy),m=Kg(["(",Kg(i),")"]);return Kg([h?ly:"",oy([h||r.typeArguments||r.typeParameters?iy(p(),m):m,Kg(d?["(",ry(i[0],{shouldBreak:!0}),Kg(i.slice(1)),")"]:["(",Kg(l.slice(0,-1)),ry(ID(i),{shouldBreak:!0}),")"]),p()],{shouldBreak:t})])}const h=Kg(["(",uy(Kg([ty,Kg(l)])),iy(c),ty,")"]);return Bg(e)?h:ry(h,{shouldBreak:l.some(fy)||a})}function By(e,t,n){const r=e.getValue();if(!r.typeAnnotation)return"";const u=e.getParentNode(),a=r.definite||u&&"VariableDeclarator"===u.type&&u.definite,o="DeclareFunction"===u.type&&u.id===r;return yg(t.originalText,r.typeAnnotation,t)?Kg([" /*: ",e.call(n,"typeAnnotation")," */"]):Kg([o?"":a?"!: ":": ",e.call(n,"typeAnnotation")])}function Ty(e,t,n){const r=e.getValue();return r.typeArguments?e.call(n,"typeArguments"):r.typeParameters?e.call(n,"typeParameters"):""}function ky(e,t,n,r,u){const a=e.getValue(),o=e.getParentNode(),s=a.parameters?"parameters":"params",i=Wg(o),l=Ky(a),c=r&&!(a[s]&&a[s].some(e=>e.comments)),p=u?Ty(e,0,t):"";let d=[];if(a[s]){const r=a[s].length-1;d=e.map((e,u)=>{const o=[],s=e.getValue();return o.push(t(e)),u===r?a.rest&&o.push(",",Zg):i||l||c?o.push(", "):zD(n.originalText,s,n.locEnd)?o.push(",",ey,ey):o.push(",",Zg),Kg(o)},s)}if(a.rest&&d.push(Kg(["...",e.call(t,"rest")])),0===d.length)return Kg([p,"(",gs.printDanglingComments(e,n,!0,e=>")"===ND(n.originalText,e,n.locEnd)),")"]);const f=ID(a[s]);if(c)return ry(Kg([Dy(p),"(",Kg(d.map(Dy)),")"]));const h=a[s].every(e=>!e.decorators);if(l&&h)return Kg([p,"(",Kg(d),")"]);if(i)return Kg([p,"(",Kg(d),")"]);if((Mg(o,n)||$g(o,n)||"TypeAlias"===o.type||"UnionTypeAnnotation"===o.type||"TSUnionType"===o.type||"IntersectionTypeAnnotation"===o.type||"FunctionTypeAnnotation"===o.type&&o.returnType===a)&&1===a[s].length&&null===a[s][0].name&&a[s][0].typeAnnotation&&null===a.typeParameters&&jg(a[s][0].typeAnnotation)&&!a.rest)return"always"===n.arrowParens?Kg(["(",Kg(d),")"]):Kg(d);const m=!(f&&"RestElement"===f.type)&&!a.rest;return Kg([p,"(",uy(Kg([ty,Kg(d)])),iy(m&&Ey(n,"all")?",":""),ty,")"])}function Ny(e,t){return"always"!==t.arrowParens&&("avoid"===t.arrowParens&&function(e){return 1===e.params.length&&!e.rest&&!e.typeParameters&&!rg(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 Oy(e,t,n){const r=e.getValue(),u=[];return r.async&&u.push("async "),r.generator?u.push("function* "):u.push("function "),r.id&&u.push(e.call(t,"id")),u.push(Ty(e,0,t),ry(Kg([ky(e,t,n),Py(e,t,n)])),r.body?" ":"",e.call(t,"body")),Kg(u)}function Py(e,t,n){const r=e.getValue(),u=e.call(t,"returnType");if(r.returnType&&yg(n.originalText,r.returnType,n))return Kg([" /*: ",u," */"]);const a=[u];return r.returnType&&r.returnType.typeAnnotation&&a.unshift(": "),r.predicate&&a.push(r.returnType?" ":": ",e.call(t,"predicate")),Kg(a)}function Iy(e,t,n){const r=e.getValue(),u=t.semi?";":"",a=["export "],o=r.default||"ExportDefaultDeclaration"===r.type;if(o&&a.push("default "),a.push(gs.printDanglingComments(e,t,!0)),Gg(r)&&a.push(ey),r.declaration)a.push(e.call(n,"declaration")),o&&"ClassDeclaration"!==r.declaration.type&&"FunctionDeclaration"!==r.declaration.type&&"TSInterfaceDeclaration"!==r.declaration.type&&"DeclareClass"!==r.declaration.type&&"DeclareFunction"!==r.declaration.type&&"TSDeclareFunction"!==r.declaration.type&&a.push(u);else{if(r.specifiers&&r.specifiers.length>0){const u=[],o=[],s=[];e.each(t=>{const r=e.getValue().type;"ExportSpecifier"===r?u.push(n(t)):"ExportDefaultSpecifier"===r?o.push(n(t)):"ExportNamespaceSpecifier"===r&&s.push(Kg(["* as ",n(t)]))},"specifiers");const i=0!==s.length&&0!==u.length,l=0!==o.length&&(0!==s.length||0!==u.length),c=u.length>1||o.length>0||r.specifiers&&r.specifiers.some(e=>e.comments);let p="";0!==u.length&&(p=c?ry(Kg(["{",uy(Kg([t.bracketSpacing?Zg:ty,Qg(Kg([",",Zg]),u)])),iy(Ey(t)?",":""),t.bracketSpacing?Zg:ty,"}"])):Kg(["{",t.bracketSpacing?" ":"",Kg(u),t.bracketSpacing?" ":"","}"])),a.push("type"===r.exportKind?"type ":"",Kg(o),Kg([l?", ":""]),Kg(s),Kg([i?", ":""]),p)}else a.push("{}");r.source&&a.push(" from ",e.call(n,"source")),a.push(u)}return Kg(a)}function My(e,t){const n=tg(e);return n?ha.strictEqual(n.type,"DeclareExportDeclaration"):t.unshift("declare "),Kg(t)}function _y(e,t,n){const r=e.getValue();return r.modifiers&&r.modifiers.length?Kg([Qg(" ",e.map(n,"modifiers"))," "]):""}function jy(e,t,n,r){const u=e.getValue();if(!u[r])return"";if(!Array.isArray(u[r]))return e.call(n,r);const a=e.getNode(2),o=e.getNode(3),s=e.getNode(4);return null!=a&&Wg(a)||0===u[r].length||1===u[r].length&&(Yy(u[r][0])||"GenericTypeAnnotation"===u[r][0].type&&Yy(u[r][0].id)||"TSTypeReference"===u[r][0].type&&Yy(u[r][0].typeName)||"NullableTypeAnnotation"===u[r][0].type||s&&"VariableDeclarator"===s.type&&"TSTypeAnnotation"===a.type&&"ArrowFunctionExpression"!==o.type&&"TSUnionType"!==u[r][0].type&&"UnionTypeAnnotation"!==u[r][0].type&&"TSIntersectionType"!==u[r][0].type&&"IntersectionTypeAnnotation"!==u[r][0].type&&"TSConditionalType"!==u[r][0].type&&"TSMappedType"!==u[r][0].type&&"TSTypeOperator"!==u[r][0].type&&"TSIndexedAccessType"!==u[r][0].type&&"TSArrayType"!==u[r][0].type)?Kg(["<",Qg(", ",e.map(n,r)),function(n){if(!rg(n))return"";const r=n.comments.every(dm.isBlockComment),u=gs.printDanglingComments(e,t,r);return r?u:Kg([u,ey])}(u),">"]):ry(Kg(["<",uy(Kg([ty,Qg(Kg([",",Zg]),e.map(n,r))])),iy("typescript"!==t.parser&&"babel-ts"!==t.parser&&Ey(t,"all")?",":""),ty,">"]))}function Ly(e,t,n){const r=e.getValue(),u=[];r.abstract&&u.push("abstract "),u.push("class"),r.id&&u.push(" ",e.call(n,"id")),u.push(e.call(n,"typeParameters"));const a=[];if(r.superClass){const o=Kg(["extends ",e.call(n,"superClass"),e.call(n,"superTypeParameters")]);r.implements&&0!==r.implements.length||r.superClass.comments&&0!==r.superClass.comments.length?a.push(ry(Kg([Zg,e.call(e=>gs.printComments(e,()=>o,t),"superClass")]))):u.push(Kg([" ",e.call(e=>gs.printComments(e,()=>o,t),"superClass")]))}else r.extends&&r.extends.length>0&&u.push(" extends ",Qg(", ",e.map(n,"extends")));return r.mixins&&r.mixins.length>0&&a.push(Zg,"mixins ",ry(uy(Qg(Kg([",",Zg]),e.map(n,"mixins"))))),r.implements&&r.implements.length>0&&a.push(Zg,"implements",ry(uy(Kg([Zg,Qg(Kg([",",Zg]),e.map(n,"implements"))])))),a.length>0&&u.push(ry(uy(Kg(a)))),r.body&&r.body.comments&&sg(t.originalText,r.body,t)?u.push(ey):u.push(" "),u.push(e.call(n,"body")),u}function Ry(e){const t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"}function qy(e,t,n){const r=e.call(n,"property"),u=e.getValue(),a=Ry(e);return u.computed?!u.property||Pg(u.property)?Kg([a,"[",r,"]"]):ry(Kg([a,"[",uy(Kg([ty,r])),ty,"]"])):Kg([a,".",r])}function Vy(e,t,n){return Kg(["::",e.call(n,"callee")])}function Wy(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?ty:ey:ty}function Uy(e,t,n,r){return e?ey:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?ey:ty:ey}function zy(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&0!==e.right.properties.length||"ArrayExpression"===e.right.type&&0!==e.right.elements.length||!!vg(e.right))}function $y(e,t,n,r){return sg(r.originalText,t,r)?uy(Kg([Zg,n])):hg(t)&&!zy(t)||"ConditionalExpression"===t.type&&hg(t.test)&&!zy(t.test)||"StringLiteralTypeAnnotation"===t.type||"ClassExpression"===t.type&&t.decorators&&t.decorators.length||("Identifier"===e.type||Rg(e)||"MemberExpression"===e.type)&&(Rg(t)||kg(t))&&"json"!==r.parser&&"json5"!==r.parser||"SequenceExpression"===t.type?ry(uy(Kg([Zg,n]))):Kg([" ",n])}function Jy(e,t,n,r,u,a){if(!r)return t;const o=$y(e,r,u,a);return ry(Kg([t,n,o]))}function Gy(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?Kg([" ",t]):uy(Kg([Zg,t]))}function Hy(e,t,n){const r=Hg(e),u=n||"DirectiveLiteral"===e.type;return _D(r,t,u)}function Xy(e){const t=e.flags.split("").sort().join("");return"/".concat(e.pattern,"/").concat(t)}function Yy(e){if(jg(e)||Ig(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){const t=e.types.filter(e=>"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type).length,n=e.types.some(e=>"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type);if(e.types.length-1===t&&n)return!0}return!1}function Ky(e){if(!e||e.rest)return!1;const t=e.params||e.parameters;if(!t||1!==t.length)return!1;const n=t[0];return!n.comments&&("ObjectPattern"===n.type||"ArrayPattern"===n.type||"Identifier"===n.type&&n.typeAnnotation&&("TypeAnnotation"===n.typeAnnotation.type||"TSTypeAnnotation"===n.typeAnnotation.type)&&Ig(n.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===n.type&&Ig(n.typeAnnotation)||"AssignmentPattern"===n.type&&("ObjectPattern"===n.left.type||"ArrayPattern"===n.left.type)&&("Identifier"===n.right.type||"ObjectExpression"===n.right.type&&0===n.right.properties.length||"ArrayExpression"===n.right.type&&0===n.right.elements.length))}function Qy(e,t,n,r){const u=[];let a=[];return e.each(e=>{u.push(Kg(a)),u.push(ry(r(e))),a=[",",Zg],e.getValue()&&zD(t.originalText,e.getValue(),t.locEnd)&&a.push(ty)},n),Kg(u)}function Zy(e,t,n){const r=e.getValue(),u=t.semi?";":"",a=[];r.argument&&(Xg(t,r.argument)?a.push(Kg([" (",uy(Kg([ey,e.call(n,"argument")])),ey,")"])):hg(r.argument)||"SequenceExpression"===r.argument.type?a.push(ry(Kg([iy(" ("," "),uy(Kg([ty,e.call(n,"argument")])),ty,iy(")")]))):a.push(" ",e.call(n,"argument")));const o=Array.isArray(r.comments)&&r.comments[r.comments.length-1],s=o&&("CommentLine"===o.type||"Line"===o.type);return s&&a.push(u),rg(r)&&a.push(" ",gs.printDanglingComments(e,t,!0)),s||a.push(u),Kg(a)}var eE={preprocess:TD,print:function(e,t,n,r){const u=e.getValue();let a=!1;const o=function(e,t,n,r){const u=e.getValue(),a=t.semi?";":"";if(!u)return"";if("string"===typeof u)return u;const o=HD(e,t,n);if(o)return o;let s=[];switch(u.type){case"JsExpressionRoot":return e.call(n,"node");case"JsonRoot":return Kg([e.call(n,"node"),ey]);case"File":return u.program&&u.program.interpreter&&s.push(e.call(e=>e.call(n,"interpreter"),"program")),s.push(e.call(n,"program")),Kg(s);case"Program":return u.directives&&e.each(e=>{s.push(n(e),a,ey),zD(t.originalText,e.getValue(),t.locEnd)&&s.push(ey)},"directives"),s.push(e.call(e=>Ay(e,t,n),"body")),s.push(gs.printDanglingComments(e,t,!0)),u.body.every(({type:e})=>"EmptyStatement"===e)&&!u.comments||s.push(ey),Kg(s);case"EmptyStatement":return"";case"ExpressionStatement":if(u.directive)return Kg([Hy(u.expression,t,!0),a]);if("__vue_event_binding"===t.parser){const t=e.getParentNode();if("Program"===t.type&&1===t.body.length&&t.body[0]===u)return Kg([e.call(n,"expression"),XD(u.expression)?";":""])}return Kg([e.call(n,"expression"),Ug(t,e)?"":a]);case"ParenthesizedExpression":return u.expression.comments?ry(Kg(["(",uy(Kg([ty,e.call(n,"expression")])),ty,")"])):Kg(["(",e.call(n,"expression"),")"]);case"AssignmentExpression":return Jy(u.left,e.call(n,"left"),Kg([" ",u.operator]),u.right,e.call(n,"right"),t);case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":{const r=e.getParentNode(),a=e.getParentNode(1),o=u!==r.body&&("IfStatement"===r.type||"WhileStatement"===r.type||"SwitchStatement"===r.type||"DoWhileStatement"===r.type),s=function e(t,n,r,u,a){let o=[];const s=t.getValue();if(hg(s)){kD(s.operator,s.left.operator)?o=o.concat(t.call(t=>e(t,n,r,!0,a),"left")):o.push(t.call(n,"left"));const i=zy(s),l=("|>"===s.operator||"NGPipeExpression"===s.type||"|"===s.operator&&"__vue_expression"===r.parser)&&!sg(r.originalText,s.right,r),c="NGPipeExpression"===s.type?"|":s.operator,p="NGPipeExpression"===s.type&&0!==s.arguments.length?ry(uy(Kg([ty,": ",Qg(Kg([ty,":",iy(" ")]),t.map(n,"arguments").map(e=>ay(2,ry(e))))]))):"",d=Kg(i?[c," ",t.call(n,"right"),p]:[l?ty:"",c,l?" ":Zg,t.call(n,"right"),p]),f=t.getParentNode(),h=!(a&&"LogicalExpression"===s.type)&&f.type!==s.type&&s.left.type!==s.type&&s.right.type!==s.type;o.push(" ",h?ry(d):d),u&&s.comments&&(o=gs.printComments(t,()=>Kg(o),r))}else o.push(t.call(n));return o}(e,n,t,!1,o);if(o)return Kg(s);if(("CallExpression"===r.type||"OptionalCallExpression"===r.type)&&r.callee===u||"UnaryExpression"===r.type||("MemberExpression"===r.type||"OptionalMemberExpression"===r.type)&&!r.computed)return ry(Kg([uy(Kg([ty,Kg(s)])),ty]));const i="ReturnStatement"===r.type||"ThrowStatement"===r.type||"JSXExpressionContainer"===r.type&&"JSXAttribute"===a.type||"|"!==u.operator&&"JsExpressionRoot"===r.type||"NGPipeExpression"!==u.type&&("NGRoot"===r.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===r.type&&"NGMicrosyntax"===a.type&&1===a.body.length)||u===r.body&&"ArrowFunctionExpression"===r.type||u!==r.body&&"ForStatement"===r.type||"ConditionalExpression"===r.type&&"ReturnStatement"!==a.type&&"ThrowStatement"!==a.type&&"CallExpression"!==a.type&&"OptionalCallExpression"!==a.type||"TemplateLiteral"===r.type,l="AssignmentExpression"===r.type||"VariableDeclarator"===r.type||"ClassProperty"===r.type||"TSAbstractClassProperty"===r.type||"ClassPrivateProperty"===r.type||"ObjectProperty"===r.type||"Property"===r.type,c=hg(u.left)&&kD(u.operator,u.left.operator);if(i||zy(u)&&!c||!zy(u)&&l)return ry(Kg(s));if(0===s.length)return"";const p=vg(u.right),d=Kg(p?s.slice(1,-1):s.slice(1)),f=Symbol("logicalChain-"+ ++yy),h=ry(Kg([s.length>0?s[0]:"",uy(d)]),{id:f});if(!p)return h;const m=ID(s);return ry(Kg([h,iy(uy(m),m,{groupId:f})]))}case"AssignmentPattern":return Kg([e.call(n,"left")," = ",e.call(n,"right")]);case"TSTypeAssertion":{const t=!("ArrayExpression"===u.expression.type||"ObjectExpression"===u.expression.type),r=ry(Kg(["<",uy(Kg([ty,e.call(n,"typeAnnotation")])),ty,">"])),a=Kg([iy("("),uy(Kg([ty,e.call(n,"expression")])),ty,iy(")")]);return t?oy([Kg([r,e.call(n,"expression")]),Kg([r,ry(a,{shouldBreak:!0})]),Kg([r,e.call(n,"expression")])]):ry(Kg([r,e.call(n,"expression")]))}case"OptionalMemberExpression":case"MemberExpression":{const t=e.getParentNode();let r,a=0;do{r=e.getParentNode(a),a++}while(r&&("MemberExpression"===r.type||"OptionalMemberExpression"===r.type||"TSNonNullExpression"===r.type));const o=r&&("NewExpression"===r.type||"BindExpression"===r.type||"VariableDeclarator"===r.type&&"Identifier"!==r.id.type||"AssignmentExpression"===r.type&&"Identifier"!==r.left.type)||u.computed||"Identifier"===u.object.type&&"Identifier"===u.property.type&&"MemberExpression"!==t.type&&"OptionalMemberExpression"!==t.type;return Kg([e.call(n,"object"),o?qy(e,0,n):ry(uy(Kg([ty,qy(e,0,n)])))])}case"MetaProperty":return Kg([e.call(n,"meta"),".",e.call(n,"property")]);case"BindExpression":return u.object&&s.push(e.call(n,"object")),s.push(ry(uy(Kg([ty,Vy(e,0,n)])))),Kg(s);case"Identifier":return Kg([u.name,Ry(e),By(e,t,n)]);case"V8IntrinsicIdentifier":return Kg(["%",u.name]);case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return Kg(["...",e.call(n,"argument"),By(e,t,n)]);case"FunctionDeclaration":case"FunctionExpression":return s.push(Oy(e,n,t)),u.body||s.push(a),Kg(s);case"ArrowFunctionExpression":{u.async&&s.push("async "),Ny(e,t)?s.push(e.call(n,"params",0)):s.push(ry(Kg([ky(e,n,t,r&&(r.expandLastArg||r.expandFirstArg),!0),Py(e,n,t)])));const a=gs.printDanglingComments(e,t,!0,e=>{const n=JD(t.originalText,e,t.locEnd);return"=>"===t.originalText.slice(n,n+2)});a&&s.push(" ",a),s.push(" =>");const o=e.call(e=>n(e,r),"body");if(!sg(t.originalText,u.body,t)&&("ArrayExpression"===u.body.type||"ObjectExpression"===u.body.type||"BlockStatement"===u.body.type||vg(u.body)||Vg(u.body,t.originalText,t)||"ArrowFunctionExpression"===u.body.type||"DoExpression"===u.body.type))return ry(Kg([Kg(s)," ",o]));if("SequenceExpression"===u.body.type)return ry(Kg([Kg(s),ry(Kg([" (",uy(Kg([ty,o])),ty,")"]))]));const i=(r&&r.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!(u.comments&&u.comments.length),l=r&&r.expandLastArg&&Ey(t,"all"),c="ConditionalExpression"===u.body.type&&!VD(u.body,!1);return ry(Kg([Kg(s),ry(Kg([uy(Kg([Zg,c?iy("","("):"",o,c?iy("",")"):""])),i?Kg([iy(l?",":""),ty]):""]))]))}case"YieldExpression":return s.push("yield"),u.delegate&&s.push("*"),u.argument&&s.push(" ",e.call(n,"argument")),Kg(s);case"AwaitExpression":{s.push("await ",e.call(n,"argument"));const t=e.getParentNode();return("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&t.callee===u||("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&t.object===u?ry(Kg([uy(Kg([ty,Kg(s)])),ty])):Kg(s)}case"ImportSpecifier":return u.importKind&&s.push(e.call(n,"importKind")," "),s.push(e.call(n,"imported")),u.local&&u.local.name!==u.imported.name&&s.push(" as ",e.call(n,"local")),Kg(s);case"ExportSpecifier":return s.push(e.call(n,"local")),u.exported&&u.exported.name!==u.local.name&&s.push(" as ",e.call(n,"exported")),Kg(s);case"ImportNamespaceSpecifier":return s.push("* as "),s.push(e.call(n,"local")),Kg(s);case"ImportDefaultSpecifier":return e.call(n,"local");case"TSExportAssignment":return Kg(["export = ",e.call(n,"expression"),a]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return Iy(e,t,n);case"ExportAllDeclaration":return s.push("export "),"type"===u.exportKind&&s.push("type "),s.push("* "),u.exported&&s.push("as ",e.call(n,"exported")," "),s.push("from ",e.call(n,"source"),a),Kg(s);case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return e.call(n,"exported");case"ImportDeclaration":{s.push("import "),u.importKind&&"value"!==u.importKind&&s.push(u.importKind+" ");const r=[],o=[];return u.specifiers&&u.specifiers.length>0?(e.each(e=>{const t=e.getValue();"ImportDefaultSpecifier"===t.type||"ImportNamespaceSpecifier"===t.type?r.push(n(e)):o.push(n(e))},"specifiers"),r.length>0&&s.push(Qg(", ",r)),r.length>0&&o.length>0&&s.push(", "),1===o.length&&0===r.length&&u.specifiers&&!u.specifiers.some(e=>e.comments)?s.push(Kg(["{",t.bracketSpacing?" ":"",Kg(o),t.bracketSpacing?" ":"","}"])):o.length>=1&&s.push(ry(Kg(["{",uy(Kg([t.bracketSpacing?Zg:ty,Qg(Kg([",",Zg]),o)])),iy(Ey(t)?",":""),t.bracketSpacing?Zg:ty,"}"]))),s.push(" from ")):(u.importKind&&"type"===u.importKind||/{\s*}/.test(t.originalText.slice(t.locStart(u),t.locStart(u.source))))&&s.push("{} from "),s.push(e.call(n,"source"),a),Kg(s)}case"Import":return"import";case"TSModuleBlock":case"BlockStatement":{const r=e.call(e=>Ay(e,t,n),"body"),o=u.body.find(e=>"EmptyStatement"!==e.type),i=u.directives&&u.directives.length>0,l=e.getParentNode(),c=e.getParentNode(1);return o||i||rg(u)||"ArrowFunctionExpression"!==l.type&&"FunctionExpression"!==l.type&&"FunctionDeclaration"!==l.type&&"ObjectMethod"!==l.type&&"ClassMethod"!==l.type&&"ClassPrivateMethod"!==l.type&&"ForStatement"!==l.type&&"WhileStatement"!==l.type&&"DoWhileStatement"!==l.type&&"DoExpression"!==l.type&&("CatchClause"!==l.type||c.finalizer)&&"TSModuleDeclaration"!==l.type?(s.push("{"),i&&e.each(e=>{s.push(uy(Kg([ey,n(e),a]))),zD(t.originalText,e.getValue(),t.locEnd)&&s.push(ey)},"directives"),o&&s.push(uy(Kg([ey,r]))),s.push(gs.printDanglingComments(e,t)),s.push(ey,"}"),Kg(s)):"{}"}case"ReturnStatement":return Kg(["return",Zy(e,t,n)]);case"NewExpression":case"OptionalCallExpression":case"CallExpression":{const r="NewExpression"===u.type,a=Ry(e);if(!r&&"Identifier"===u.callee.type&&("require"===u.callee.name||"define"===u.callee.name)||1===u.arguments.length&&Vg(u.arguments[0],t.originalText,t)||!r&&Wg(u,e.getParentNode()))return Kg([r?"new ":"",e.call(n,"callee"),a,Ty(e,0,n),Kg(["(",Qg(", ",e.map(n,"arguments")),")"])]);const o="Identifier"===u.callee.type&&ug(u.callee.trailingComments);if(o&&(u.callee.trailingComments[0].printed=!0),!r&&Ng(u.callee)&&!e.call(e=>vD(e,t),"callee"))return function(e,t,n){const r=[];function u(e){const{originalText:n}=t,r=JD(n,e,t.locEnd);return")"===n.charAt(r)?$D(n,r+1,t.locEnd):zD(n,e,t.locEnd)}const a=e.getValue();r.unshift({node:a,printed:Kg([Ry(e),Ty(e,0,n),wy(e,t,n)])}),e.call(e=>function e(a){const o=a.getValue();"CallExpression"!==o.type&&"OptionalCallExpression"!==o.type||!Ng(o.callee)&&"CallExpression"!==o.callee.type&&"OptionalCallExpression"!==o.callee.type?Ng(o)?(r.unshift({node:o,needsParens:vD(a,t),printed:gs.printComments(a,()=>"OptionalMemberExpression"===o.type||"MemberExpression"===o.type?qy(a,0,n):Vy(a,0,n),t)}),a.call(t=>e(t),"object")):"TSNonNullExpression"===o.type?(r.unshift({node:o,printed:gs.printComments(a,()=>"!",t)}),a.call(t=>e(t),"expression")):r.unshift({node:o,printed:a.call(n)}):(r.unshift({node:o,printed:Kg([gs.printComments(a,()=>Kg([Ry(a),Ty(a,0,n),wy(a,t,n)]),t),u(o)?ey:""])}),a.call(t=>e(t),"callee"))}(e),"callee");const o=[];let s=[r[0]],i=1;for(;i<r.length&&("TSNonNullExpression"===r[i].node.type||"OptionalCallExpression"===r[i].node.type||"CallExpression"===r[i].node.type||("MemberExpression"===r[i].node.type||"OptionalMemberExpression"===r[i].node.type)&&r[i].node.computed&&Pg(r[i].node.property));++i)s.push(r[i]);if("CallExpression"!==r[0].node.type&&"OptionalCallExpression"!==r[0].node.type)for(;i+1<r.length&&Ng(r[i].node)&&Ng(r[i+1].node);++i)s.push(r[i]);o.push(s),s=[];let l=!1;for(;i<r.length;++i){if(l&&Ng(r[i].node)){if(r[i].node.computed&&Pg(r[i].node.property)){s.push(r[i]);continue}o.push(s),s=[],l=!1}"CallExpression"!==r[i].node.type&&"OptionalCallExpression"!==r[i].node.type||(l=!0),s.push(r[i]),r[i].node.comments&&r[i].node.comments.some(e=>e.trailing)&&(o.push(s),s=[],l=!1)}function c(e){return/^[A-Z]|^[_$]+$/.test(e)}s.length>0&&o.push(s);const p=o.length>=2&&!o[1][0].node.comments&&function(n){const r=e.getParentNode(),u=r&&"ExpressionStatement"===r.type,a=n[1].length&&n[1][0].node.computed;if(1===n[0].length){const e=n[0][0].node;return"ThisExpression"===e.type||"Identifier"===e.type&&(c(e.name)||u&&function(e){return e.length<=t.tabWidth}(e.name)||a)}const o=ID(n[0]).node;return("MemberExpression"===o.type||"OptionalMemberExpression"===o.type)&&"Identifier"===o.property.type&&(c(o.property.name)||a)}(o);function d(e){const t=e.map(e=>e.printed);return e.length>0&&e[e.length-1].needsParens?Kg(["(",...t,")"]):Kg(t)}const f=o.map(d),h=Kg(f),m=p?3:2,D=o.reduce((e,t)=>e.concat(t),[]),g=D.slice(1,-1).some(e=>og(e.node))||D.slice(0,-1).some(e=>dg(e.node))||o[m]&&og(o[m][0].node);if(o.length<=m&&!g)return Bg(e)?h:ry(h);const y=ID(p?o.slice(1,2)[0]:o[0]).node,E="CallExpression"!==y.type&&"OptionalCallExpression"!==y.type&&u(y),C=Kg([d(o[0]),p?Kg(o.slice(1,2).map(d)):"",E?ey:"",function(e){return 0===e.length?"":uy(ry(Kg([ey,Qg(ey,e.map(d))])))}(o.slice(p?2:1))]),b=r.map(({node:e})=>e).filter(mg);return g||b.length>2&&b.some(e=>!e.arguments.every(e=>_g(e,0)))||f.slice(0,-1).some(fy)||(A=ID(f),F=ID(ID(o)).node,mg(F)&&fy(A)&&b.slice(0,-1).some(e=>e.arguments.some(bg)))?ry(C):Kg([fy(h)||E?ly:"",oy([h,C])]);var A,F}(e,t,n);const s=Kg([r?"new ":"",e.call(n,"callee"),a,o?"/*:: ".concat(u.callee.trailingComments[0].value.slice(2).trim()," */"):"",Ty(e,0,n),wy(e,t,n)]);return mg(u.callee)?ry(s):s}case"TSInterfaceDeclaration":return u.declare&&s.push("declare "),s.push(u.abstract?"abstract ":"",_y(e,0,n),"interface ",e.call(n,"id"),u.typeParameters?e.call(n,"typeParameters"):""," "),u.extends&&u.extends.length&&s.push(ry(uy(Kg([ty,"extends ",(1===u.extends.length?fg:uy)(Qg(Kg([",",Zg]),e.map(n,"extends")))," "])))),s.push(e.call(n,"body")),Kg(s);case"ObjectTypeInternalSlot":return Kg([u.static?"static ":"","[[",e.call(n,"id"),"]]",Ry(e),u.method?"":": ",e.call(n,"value")]);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":{let r;r="TSTypeLiteral"===u.type?"members":"TSInterfaceBody"===u.type?"body":"properties";const o="ObjectTypeAnnotation"===u.type,s=[];o&&s.push("indexers","callProperties","internalSlots"),s.push(r);const i=s.map(e=>u[e][0]).sort((e,n)=>t.locStart(e)-t.locStart(n))[0],l=e.getParentNode(0),c=o&&l&&("InterfaceDeclaration"===l.type||"DeclareInterface"===l.type||"DeclareClass"===l.type)&&"body"===e.getName(),p="TSInterfaceBody"===u.type||c||"ObjectPattern"===u.type&&"FunctionDeclaration"!==l.type&&"FunctionExpression"!==l.type&&"ArrowFunctionExpression"!==l.type&&"ObjectMethod"!==l.type&&"ClassMethod"!==l.type&&"ClassPrivateMethod"!==l.type&&"AssignmentPattern"!==l.type&&"CatchClause"!==l.type&&u.properties.some(e=>e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type))||"ObjectPattern"!==u.type&&i&&PD(t.originalText,t.locStart(u),t.locStart(i)),d=c?";":"TSInterfaceBody"===u.type||"TSTypeLiteral"===u.type?iy(a,";"):",",f=u.exact?"{|":"{",h=u.exact?"|}":"}",m=[];s.forEach(r=>{e.each(e=>{const r=e.getValue();m.push({node:r,printed:n(e),loc:t.locStart(r)})},r)});let D=[];const g=m.sort((e,t)=>e.loc-t.loc).map(e=>{const n=Kg(D.concat(ry(e.printed)));return D=[d,Zg],"TSPropertySignature"!==e.node.type&&"TSMethodSignature"!==e.node.type&&"TSConstructSignatureDeclaration"!==e.node.type||!RD(e.node)||D.shift(),zD(t.originalText,e.node,t.locEnd)&&D.push(ey),n});if(u.inexact){let n;if(rg(u)){const r=!u.comments.every(dm.isBlockComment),a=gs.printDanglingComments(e,t,!0);n=Kg([a,r||OD(t.originalText,t.locEnd(u.comments[u.comments.length-1]))?ey:Zg,"..."])}else n="...";g.push(Kg(D.concat(n)))}const y=ID(u[r]),E=!(u.inexact||y&&("RestElement"===y.type||RD(y)));let C;if(0===g.length){if(!rg(u))return Kg([f,h,By(e,t,n)]);C=ry(Kg([f,gs.printDanglingComments(e,t),ty,h,Ry(e),By(e,t,n)]))}else C=Kg([f,uy(Kg([t.bracketSpacing?Zg:ty,Kg(g)])),iy(E&&(","!==d||Ey(t))?d:""),Kg([t.bracketSpacing?Zg:ty,h]),Ry(e),By(e,t,n)]);return e.match(e=>"ObjectPattern"===e.type&&!e.decorators,(e,t,n)=>Ky(e)&&("params"===t||"parameters"===t)&&0===n)||e.match(Yy,(e,t)=>"typeAnnotation"===t,(e,t)=>"typeAnnotation"===t,(e,t,n)=>Ky(e)&&("params"===t||"parameters"===t)&&0===n)?C:ry(C,{shouldBreak:p})}case"ObjectProperty":case"Property":return u.method||"get"===u.kind||"set"===u.kind?vy(e,t,n):(u.shorthand?s.push(e.call(n,"value")):s.push(Jy(u.key,Fy(e,t,n),":",u.value,e.call(n,"value"),t)),Kg(s));case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":case"TSAbstractMethodDefinition":case"TSDeclareMethod":return u.decorators&&0!==u.decorators.length&&s.push(Cy(e,t,n)),u.accessibility&&s.push(u.accessibility+" "),u.static&&s.push("static "),("TSAbstractMethodDefinition"===u.type||u.abstract)&&s.push("abstract "),s.push(vy(e,t,n)),Kg(s);case"ObjectMethod":return vy(e,t,n);case"Decorator":return Kg(["@",e.call(n,"expression"),e.call(n,"callee")]);case"ArrayExpression":case"ArrayPattern":if(0===u.elements.length)rg(u)?s.push(ry(Kg(["[",gs.printDanglingComments(e,t),ty,"]"]))):s.push("[]");else{const r=ID(u.elements),a=!(r&&"RestElement"===r.type),o=a&&null===r,i=u.elements.length>1&&u.elements.every((e,t,n)=>{const r=e&&e.type;if("ArrayExpression"!==r&&"ObjectExpression"!==r)return!1;const u=n[t+1];if(u&&r!==u.type)return!1;const a="ArrayExpression"===r?"elements":"properties";return e[a]&&e[a].length>1});s.push(ry(Kg(["[",uy(Kg([ty,Qy(e,t,"elements",n)])),o?",":"",iy(a&&!o&&Ey(t)?",":""),gs.printDanglingComments(e,t,!0),ty,"]"]),{shouldBreak:i}))}return s.push(Ry(e),By(e,t,n)),Kg(s);case"SequenceExpression":{const t=e.getParentNode(0);if("ExpressionStatement"===t.type||"ForStatement"===t.type){const t=[];return e.each(e=>{0===e.getName()?t.push(n(e)):t.push(",",uy(Kg([Zg,n(e)])))},"expressions"),ry(Kg(t))}return ry(Kg([Qg(Kg([",",Zg]),e.map(n,"expressions"))]))}case"ThisExpression":return"this";case"Super":return"super";case"NullLiteral":return"null";case"RegExpLiteral":return Xy(u);case"NumericLiteral":return jD(u.extra.raw);case"BigIntLiteral":return(u.bigint||(u.extra?u.extra.raw:u.raw)).toLowerCase();case"BooleanLiteral":case"StringLiteral":case"Literal":{if(u.regex)return Xy(u.regex);if("number"===typeof u.value)return jD(u.raw);if("string"!==typeof u.value)return""+u.value;const n=e.getParentNode(1),r="typescript"===t.parser&&"string"===typeof u.value&&n&&("Program"===n.type||"BlockStatement"===n.type);return Hy(u,t,r)}case"Directive":return e.call(n,"value");case"DirectiveLiteral":return Hy(u,t);case"UnaryExpression":return s.push(u.operator),/[a-z]$/.test(u.operator)&&s.push(" "),u.argument.comments&&u.argument.comments.length>0?s.push(ry(Kg(["(",uy(Kg([ty,e.call(n,"argument")])),ty,")"]))):s.push(e.call(n,"argument")),Kg(s);case"UpdateExpression":return s.push(e.call(n,"argument"),u.operator),u.prefix&&s.reverse(),Kg(s);case"ConditionalExpression":return by(e,t,n,{beforeParts:()=>[e.call(n,"test")],afterParts:e=>[e?ty:""],shouldCheckJsx:!0,conditionalNodeType:"ConditionalExpression",consequentNodePropertyName:"consequent",alternateNodePropertyName:"alternate",testNodePropertyNames:["test"]});case"VariableDeclaration":{const t=e.map(e=>n(e),"declarations"),r=e.getParentNode(),o="ForStatement"===r.type||"ForInStatement"===r.type||"ForOfStatement"===r.type,i=u.declarations.some(e=>e.init);let l;return 1!==t.length||u.declarations[0].comments?t.length>0&&(l=uy(t[0])):l=t[0],s=[u.declare?"declare ":"",u.kind,l?Kg([" ",l]):"",uy(Kg(t.slice(1).map(e=>Kg([",",i&&!o?ey:Zg,e]))))],o&&r.body!==u||s.push(a),ry(Kg(s))}case"TSTypeAliasDeclaration":{u.declare&&s.push("declare ");const r=$y(u.id,u.typeAnnotation,u.typeAnnotation&&e.call(n,"typeAnnotation"),t);return s.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",r,a),ry(Kg(s))}case"VariableDeclarator":return Jy(u.id,e.call(n,"id")," =",u.init,u.init&&e.call(n,"init"),t);case"WithStatement":return ry(Kg(["with (",e.call(n,"object"),")",Gy(u.body,e.call(n,"body"))]));case"IfStatement":{const r=Gy(u.consequent,e.call(n,"consequent")),a=ry(Kg(["if (",ry(Kg([uy(Kg([ty,e.call(n,"test")])),ty])),")",r]));if(s.push(a),u.alternate){const r=dg(u.consequent)&&u.consequent.comments.some(e=>e.trailing&&!dm.isBlockComment(e))||Gg(u),a="BlockStatement"===u.consequent.type&&!r;s.push(a?" ":ey),rg(u)&&s.push(gs.printDanglingComments(e,t,!0),r?ey:" "),s.push("else",ry(Gy(u.alternate,e.call(n,"alternate"),"IfStatement"===u.alternate.type)))}return Kg(s)}case"ForStatement":{const r=Gy(u.body,e.call(n,"body")),a=gs.printDanglingComments(e,t,!0),o=a?Kg([a,ty]):"";return u.init||u.test||u.update?Kg([o,ry(Kg(["for (",ry(Kg([uy(Kg([ty,e.call(n,"init"),";",Zg,e.call(n,"test"),";",Zg,e.call(n,"update")])),ty])),")",r]))]):Kg([o,ry(Kg(["for (;;)",r]))])}case"WhileStatement":return ry(Kg(["while (",ry(Kg([uy(Kg([ty,e.call(n,"test")])),ty])),")",Gy(u.body,e.call(n,"body"))]));case"ForInStatement":return ry(Kg([u.each?"for each (":"for (",e.call(n,"left")," in ",e.call(n,"right"),")",Gy(u.body,e.call(n,"body"))]));case"ForOfStatement":return ry(Kg(["for",u.await?" await":""," (",e.call(n,"left")," of ",e.call(n,"right"),")",Gy(u.body,e.call(n,"body"))]));case"DoWhileStatement":{const t=Gy(u.body,e.call(n,"body")),r=ry(Kg(["do",t]));return s=[r],"BlockStatement"===u.body.type?s.push(" "):s.push(ey),s.push("while ("),s.push(ry(Kg([uy(Kg([ty,e.call(n,"test")])),ty])),")",a),Kg(s)}case"DoExpression":return Kg(["do ",e.call(n,"body")]);case"BreakStatement":return s.push("break"),u.label&&s.push(" ",e.call(n,"label")),s.push(a),Kg(s);case"ContinueStatement":return s.push("continue"),u.label&&s.push(" ",e.call(n,"label")),s.push(a),Kg(s);case"LabeledStatement":return"EmptyStatement"===u.body.type?Kg([e.call(n,"label"),":;"]):Kg([e.call(n,"label"),": ",e.call(n,"body")]);case"TryStatement":return Kg(["try ",e.call(n,"block"),u.handler?Kg([" ",e.call(n,"handler")]):"",u.finalizer?Kg([" finally ",e.call(n,"finalizer")]):""]);case"CatchClause":if(u.param){const r=u.param.comments&&u.param.comments.some(e=>!dm.isBlockComment(e)||e.leading&&OD(t.originalText,t.locEnd(e))||e.trailing&&OD(t.originalText,t.locStart(e),{backwards:!0})),a=e.call(n,"param");return Kg(["catch ",Kg(r?["(",uy(Kg([ty,a])),ty,") "]:["(",a,") "]),e.call(n,"body")])}return Kg(["catch ",e.call(n,"body")]);case"ThrowStatement":return Kg(["throw",Zy(e,t,n)]);case"SwitchStatement":return Kg([ry(Kg(["switch (",uy(Kg([ty,e.call(n,"discriminant")])),ty,")"]))," {",u.cases.length>0?uy(Kg([ey,Qg(ey,e.map(e=>{const r=e.getValue();return Kg([e.call(n),u.cases.indexOf(r)!==u.cases.length-1&&zD(t.originalText,r,t.locEnd)?ey:""])},"cases"))])):"",ey,"}"]);case"SwitchCase":{u.test?s.push("case ",e.call(n,"test"),":"):s.push("default:");const r=u.consequent.filter(e=>"EmptyStatement"!==e.type);if(r.length>0){const u=e.call(e=>Ay(e,t,n),"consequent");s.push(1===r.length&&"BlockStatement"===r[0].type?Kg([" ",u]):uy(Kg([ey,u])))}return Kg(s)}case"DebuggerStatement":return Kg(["debugger",a]);case"JSXAttribute":if(s.push(e.call(n,"name")),u.value){let r;if(Rg(u.value)){let e=Hg(u.value).replace(/'/g,"'").replace(/"/g,'"');const n=UD(e,t.jsxSingleQuote?"'":'"'),a="'"===n?"'":""";e=e.slice(1,-1).replace(new RegExp(n,"g"),a),r=Kg([n,e,n])}else r=e.call(n,"value");s.push("=",r)}return Kg(s);case"JSXIdentifier":return""+u.name;case"JSXNamespacedName":return Qg(":",[e.call(n,"namespace"),e.call(n,"name")]);case"JSXMemberExpression":return Qg(".",[e.call(n,"object"),e.call(n,"property")]);case"TSQualifiedName":return Qg(".",[e.call(n,"left"),e.call(n,"right")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return Kg(["{",e.call(e=>{const r=Kg(["...",n(e)]),u=e.getValue();return u.comments&&u.comments.length?Kg([uy(Kg([ty,gs.printComments(e,()=>r,t)])),ty]):r},"JSXSpreadAttribute"===u.type?"argument":"expression"),"}"]);case"JSXExpressionContainer":{const t=e.getParentNode(0),r=u.expression.comments&&u.expression.comments.length>0,a="JSXEmptyExpression"===u.expression.type||!r&&("ArrayExpression"===u.expression.type||"ObjectExpression"===u.expression.type||"ArrowFunctionExpression"===u.expression.type||"CallExpression"===u.expression.type||"OptionalCallExpression"===u.expression.type||"FunctionExpression"===u.expression.type||"TemplateLiteral"===u.expression.type||"TaggedTemplateExpression"===u.expression.type||"DoExpression"===u.expression.type||vg(t)&&("ConditionalExpression"===u.expression.type||hg(u.expression)));return ry(Kg(a?["{",e.call(n,"expression"),cy,"}"]:["{",uy(Kg([ty,e.call(n,"expression")])),ty,cy,"}"]))}case"JSXFragment":case"JSXElement":{const r=gs.printComments(e,()=>function(e,t,n){const r=e.getValue();if("JSXElement"===r.type&&Dg(r))return Kg([e.call(n,"openingElement"),e.call(n,"closingElement")]);const u="JSXElement"===r.type?e.call(n,"openingElement"):e.call(n,"openingFragment"),a="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 Kg([u,Kg(e.map(n,"children")),a]);r.children=r.children.map(e=>xg(e)?{type:"JSXText",value:" ",raw:" "}:e);const o=r.children.filter(vg).length>0,s=r.children.filter(e=>"JSXExpressionContainer"===e.type).length>1,i="JSXElement"===r.type&&r.openingElement.attributes.length>1;let l=fy(u)||o||i||s;const c="mdx"===e.getParentNode().rootMarker,p=t.singleQuote?"{' '}":'{" "}',d=c?Kg([" "]):iy(Kg([p,ty])," "),f=r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name,h=function(e,t,n,r,u){const a=e.getValue(),o=[];return e.map((e,t)=>{const s=e.getValue();if(wg(s)){const e=Hg(s);if(Tg(s)){const n=e.split(Jg);if(""===n[0]){if(o.push(""),n.shift(),/\n/.test(n[0])){const e=a.children[t+1];o.push(Uy(u,n[1],s,e))}else o.push(r);n.shift()}let i;if(""===ID(n)&&(n.pop(),i=n.pop()),0===n.length)return;if(n.forEach((e,t)=>{t%2===1?o.push(Zg):o.push(e)}),void 0!==i)if(/\n/.test(i)){const e=a.children[t+1];o.push(Uy(u,ID(o),s,e))}else o.push(r);else{const e=a.children[t+1];o.push(Wy(u,ID(o),s,e))}}else/\n/.test(e)?e.match(/\n/g).length>1&&(o.push(""),o.push(ey)):(o.push(""),o.push(r))}else{const r=n(e);o.push(r);const i=a.children[t+1];if(i&&Tg(i)){const e=Hg(i).trim().split(Jg)[0];o.push(Wy(u,e,s,i))}else o.push(ey)}},"children"),o}(e,0,n,d,f),m=r.children.some(e=>Tg(e));for(let E=h.length-2;E>=0;E--){const e=""===h[E]&&""===h[E+1],t=h[E]===ey&&""===h[E+1]&&h[E+2]===ey,n=(h[E]===ty||h[E]===ey)&&""===h[E+1]&&h[E+2]===d,r=h[E]===d&&""===h[E+1]&&(h[E+2]===ty||h[E+2]===ey),u=h[E]===d&&""===h[E+1]&&h[E+2]===d,a=h[E]===ty&&""===h[E+1]&&h[E+2]===ey||h[E]===ey&&""===h[E+1]&&h[E+2]===ty;t&&m||e||n||u||a?h.splice(E,2):r&&h.splice(E+1,2)}for(;h.length&&(hy(ID(h))||my(ID(h)));)h.pop();for(;h.length&&(hy(h[0])||my(h[0]))&&(hy(h[1])||my(h[1]));)h.shift(),h.shift();const D=[];h.forEach((e,t)=>{if(e===d){if(1===t&&""===h[t-1])return 2===h.length?void D.push(p):void D.push(Kg([p,ey]));if(t===h.length-1)return void D.push(p);if(""===h[t-1]&&h[t-2]===ey)return void D.push(p)}D.push(e),fy(e)&&(l=!0)});const g=m?sy(D):ry(Kg(D),{shouldBreak:!0});if(c)return g;const y=ry(Kg([u,uy(Kg([ey,g])),ey,a]));return l?y:oy([ry(Kg([u,Kg(h),a])),y])}(e,t,n),t);return function(e,t,n){const r=e.getParentNode();if(!r)return t;if({ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[r.type])return t;const u=e.match(void 0,e=>"ArrowFunctionExpression"===e.type,mg,e=>"JSXExpressionContainer"===e.type),a=vD(e,n);return ry(Kg([a?"":iy("("),uy(Kg([ty,t])),ty,a?"":iy(")")]),{shouldBreak:u})}(e,r,t)}case"JSXOpeningElement":{const r=e.getValue(),u=r.name&&r.name.comments&&r.name.comments.length>0||r.typeParameters&&r.typeParameters.comments&&r.typeParameters.comments.length>0;if(r.selfClosing&&!r.attributes.length&&!u)return Kg(["<",e.call(n,"name"),e.call(n,"typeParameters")," />"]);if(r.attributes&&1===r.attributes.length&&r.attributes[0].value&&Rg(r.attributes[0].value)&&!r.attributes[0].value.value.includes("\n")&&!u&&(!r.attributes[0].comments||!r.attributes[0].comments.length))return ry(Kg(["<",e.call(n,"name"),e.call(n,"typeParameters")," ",Kg(e.map(n,"attributes")),r.selfClosing?" />":">"]));const a=r.attributes.length&&dg(ID(r.attributes)),o=!r.attributes.length&&!u||t.jsxBracketSameLine&&(!u||r.attributes.length)&&!a,s=r.attributes&&r.attributes.some(e=>e.value&&Rg(e.value)&&e.value.value.includes("\n"));return ry(Kg(["<",e.call(n,"name"),e.call(n,"typeParameters"),Kg([uy(Kg(e.map(e=>Kg([Zg,n(e)]),"attributes"))),r.selfClosing?Zg:o?">":ty]),r.selfClosing?"/>":o?"":">"]),{shouldBreak:s})}case"JSXClosingElement":return Kg(["</",e.call(n,"name"),">"]);case"JSXOpeningFragment":case"JSXClosingFragment":{const n=u.comments&&u.comments.length,r=n&&!u.comments.every(dm.isBlockComment),a="JSXOpeningFragment"===u.type;return Kg([a?"<":"</",uy(Kg([r?ey:n&&!a?" ":"",gs.printDanglingComments(e,t,!0)])),r?ey:"",">"])}case"JSXText":throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":{const n=u.comments&&!u.comments.every(dm.isBlockComment);return Kg([gs.printDanglingComments(e,t,!n),n?ey:""])}case"ClassBody":return u.comments||0!==u.body.length?Kg(["{",u.body.length>0?uy(Kg([ey,e.call(e=>Ay(e,t,n),"body")])):gs.printDanglingComments(e,t),ey,"}"]):"{}";case"ClassProperty":case"TSAbstractClassProperty":case"ClassPrivateProperty":{u.decorators&&0!==u.decorators.length&&s.push(Cy(e,t,n)),u.accessibility&&s.push(u.accessibility+" "),u.declare&&s.push("declare "),u.static&&s.push("static "),("TSAbstractClassProperty"===u.type||u.abstract)&&s.push("abstract "),u.readonly&&s.push("readonly ");const r=ZD(u);return r&&s.push(r),s.push(Fy(e,t,n),Ry(e),By(e,t,n)),u.value&&s.push(" =",$y(u.key,u.value,e.call(n,"value"),t)),s.push(a),ry(Kg(s))}case"ClassDeclaration":case"ClassExpression":return u.declare&&s.push("declare "),s.push(Kg(Ly(e,t,n))),Kg(s);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return s.push(e.call(n,"expression")),u.typeParameters&&s.push(e.call(n,"typeParameters")),Kg(s);case"TemplateElement":return Qg(ny,u.value.raw.split(/\r?\n/g));case"TemplateLiteral":{let r=e.map(n,"expressions");const a=e.getParentNode();if(Fg(u,a)){const e=function(e,t,n){const r=e.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(r.length>1||r.some(e=>0!==e.length)){const u=[],a=t.map(e=>"${"+gy(e,Object.assign({},n,{printWidth:1/0,endOfLine:"lf"})).formatted+"}"),o=[{hasLineBreak:!1,cells:[]}];for(let t=1;t<e.quasis.length;t++){const n=o[o.length-1],r=a[t-1];n.cells.push(r),r.includes("\n")&&(n.hasLineBreak=!0),e.quasis[t].value.raw.includes("\n")&&o.push({hasLineBreak:!1,cells:[]})}const s=Math.max(r.length,...o.map(e=>e.cells.length)),i=Array.from({length:s}).fill(0),l=[{cells:r},...o.filter(e=>0!==e.cells.length)];for(const{cells:e}of l.filter(e=>!e.hasLineBreak))e.forEach((e,t)=>{i[t]=Math.max(i[t],MD(e))});return u.push(cy,"`",uy(Kg([ey,Qg(ey,l.map(e=>Qg(" | ",e.cells.map((t,n)=>e.hasLineBreak?t:t+" ".repeat(i[n]-MD(t))))))])),ey,"`"),Kg(u)}}(u,r,t);if(e)return e}const o=Lg(u);return o&&(r=r.map(e=>gy(e,Object.assign({},t,{printWidth:1/0})).formatted)),s.push(cy,"`"),e.each(e=>{const a=e.getName();if(s.push(n(e)),a<r.length){const{tabWidth:n}=t,i=e.getValue(),l=WD(i.value.raw,n);let c=r[a];o||(u.expressions[a].comments&&u.expressions[a].comments.length||"MemberExpression"===u.expressions[a].type||"OptionalMemberExpression"===u.expressions[a].type||"ConditionalExpression"===u.expressions[a].type||"SequenceExpression"===u.expressions[a].type||"TSAsExpression"===u.expressions[a].type||hg(u.expressions[a]))&&(c=Kg([uy(Kg([ty,c])),ty]));const p=0===l&&i.value.raw.endsWith("\n")?ay(-1/0,c):py(c,l,n);s.push(ry(Kg(["${",p,cy,"}"])))}},"quasis"),s.push("`"),Kg(s)}case"TaggedTemplateExpression":return Kg([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(u.type));case"TypeAnnotation":case"TSTypeAnnotation":return u.typeAnnotation?e.call(n,"typeAnnotation"):"";case"TSTupleType":case"TupleTypeAnnotation":{const r="TSTupleType"===u.type?"elementTypes":"types",a=u[r].length>0&&"TSRestType"===ID(u[r]).type;return ry(Kg(["[",uy(Kg([ty,Qy(e,t,r,n)])),iy(Ey(t,"all")&&!a?",":""),gs.printDanglingComments(e,t,!0),ty,"]"]))}case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"AnyTypeAnnotation":return"any";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return Kg([e.call(n,"elementType"),"[]"]);case"BooleanTypeAnnotation":return"boolean";case"BooleanLiteralTypeAnnotation":return""+u.value;case"DeclareClass":return My(e,Ly(e,t,n));case"TSDeclareFunction":return Kg([u.declare?"declare ":"",Oy(e,n,t),a]);case"DeclareFunction":return My(e,["function ",e.call(n,"id"),u.predicate?" ":"",e.call(n,"predicate"),a]);case"DeclareModule":return My(e,["module ",e.call(n,"id")," ",e.call(n,"body")]);case"DeclareModuleExports":return My(e,["module.exports",": ",e.call(n,"typeAnnotation"),a]);case"DeclareVariable":return My(e,["var ",e.call(n,"id"),a]);case"DeclareExportAllDeclaration":return Kg(["declare export * from ",e.call(n,"source")]);case"DeclareExportDeclaration":return Kg(["declare ",Iy(e,t,n)]);case"DeclareOpaqueType":case"OpaqueType":return s.push("opaque type ",e.call(n,"id"),e.call(n,"typeParameters")),u.supertype&&s.push(": ",e.call(n,"supertype")),u.impltype&&s.push(" = ",e.call(n,"impltype")),s.push(a),"DeclareOpaqueType"===u.type?My(e,s):Kg(s);case"EnumDeclaration":return Kg(["enum ",e.call(n,"id")," ",e.call(n,"body")]);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if("EnumSymbolBody"===u.type||u.explicitType){let e=null;switch(u.type){case"EnumBooleanBody":e="boolean";break;case"EnumNumberBody":e="number";break;case"EnumStringBody":e="string";break;case"EnumSymbolBody":e="symbol"}s.push("of ",e," ")}return 0===u.members.length?s.push(ry(Kg(["{",gs.printDanglingComments(e,t),ty,"}"]))):s.push(ry(Kg(["{",uy(Kg([ey,Qy(e,t,"members",n),Ey(t)?",":""])),gs.printDanglingComments(e,t,!0),ey,"}"]))),Kg(s);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return Kg([e.call(n,"id")," = ","object"===typeof u.init?e.call(n,"init"):String(u.init)]);case"EnumDefaultedMember":return e.call(n,"id");case"FunctionTypeAnnotation":case"TSFunctionType":{const r=e.getParentNode(0),a=e.getParentNode(1),o=e.getParentNode(2);let i="TSFunctionType"===u.type||!(("ObjectTypeProperty"===r.type||"ObjectTypeInternalSlot"===r.type)&&!ZD(r)&&!r.optional&&t.locStart(r)===t.locStart(u)||"ObjectTypeCallProperty"===r.type||o&&"DeclareFunction"===o.type),l=i&&("TypeAnnotation"===r.type||"TSTypeAnnotation"===r.type);const c=l&&i&&("TypeAnnotation"===r.type||"TSTypeAnnotation"===r.type)&&"ArrowFunctionExpression"===a.type;return Mg(r,t)&&(i=!0,l=!0),c&&s.push("("),s.push(ky(e,n,t,!1,!0)),(u.returnType||u.predicate||u.typeAnnotation)&&s.push(i?" => ":": ",e.call(n,"returnType"),e.call(n,"predicate"),e.call(n,"typeAnnotation")),c&&s.push(")"),ry(Kg(s))}case"TSRestType":return Kg(["...",e.call(n,"typeAnnotation")]);case"TSOptionalType":return Kg([e.call(n,"typeAnnotation"),"?"]);case"FunctionTypeParam":return Kg([e.call(n,"name"),Ry(e),u.name?": ":"",e.call(n,"typeAnnotation")]);case"GenericTypeAnnotation":return Kg([e.call(n,"id"),e.call(n,"typeParameters")]);case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return("DeclareInterface"===u.type||u.declare)&&s.push("declare "),s.push("interface"),"DeclareInterface"!==u.type&&"InterfaceDeclaration"!==u.type||s.push(" ",e.call(n,"id"),e.call(n,"typeParameters")),u.extends.length>0&&s.push(ry(uy(Kg([Zg,"extends ",(1===u.extends.length?fg:uy)(Qg(Kg([",",Zg]),e.map(n,"extends")))])))),s.push(" ",e.call(n,"body")),ry(Kg(s));case"ClassImplements":case"InterfaceExtends":return Kg([e.call(n,"id"),e.call(n,"typeParameters")]);case"TSClassImplements":return Kg([e.call(n,"expression"),e.call(n,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":{const t=e.map(n,"types"),r=[];let a=!1;for(let e=0;e<t.length;++e)0===e?r.push(t[e]):Ig(u.types[e-1])&&Ig(u.types[e])?r.push(Kg([" & ",a?uy(t[e]):t[e]])):Ig(u.types[e-1])||Ig(u.types[e])?(e>1&&(a=!0),r.push(" & ",e>1?uy(t[e]):t[e])):r.push(uy(Kg([" &",Zg,t[e]])));return ry(Kg(r))}case"TSUnionType":case"UnionTypeAnnotation":{const r=e.getParentNode(),a="TypeParameterInstantiation"!==r.type&&"TSTypeParameterInstantiation"!==r.type&&"GenericTypeAnnotation"!==r.type&&"TSTypeReference"!==r.type&&"TSTypeAssertion"!==r.type&&"TupleTypeAnnotation"!==r.type&&"TSTupleType"!==r.type&&!("FunctionTypeParam"===r.type&&!r.name)&&!(("TypeAlias"===r.type||"VariableDeclarator"===r.type||"TSTypeAliasDeclaration"===r.type)&&sg(t.originalText,u,t)),o=Yy(u),s=e.map(e=>{let r=e.call(n);return o||(r=ay(2,r)),gs.printComments(e,()=>r,t)},"types");if(o)return Qg(" | ",s);const i=a&&!sg(t.originalText,u,t),l=Kg([iy(Kg([i?Zg:"","| "])),Qg(Kg([Zg,"| "]),s)]);return vD(e,t)?ry(Kg([uy(l),ty])):"TupleTypeAnnotation"===r.type&&r.types.length>1||"TSTupleType"===r.type&&r.elementTypes.length>1?ry(Kg([uy(Kg([iy(Kg(["(",ty])),l])),ty,iy(")")])):ry(a?uy(l):l)}case"NullableTypeAnnotation":return Kg(["?",e.call(n,"typeAnnotation")]);case"TSNullKeyword":case"NullLiteralTypeAnnotation":return"null";case"ThisTypeAnnotation":return"this";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"ObjectTypeCallProperty":return u.static&&s.push("static "),s.push(e.call(n,"value")),Kg(s);case"ObjectTypeIndexer":{const t=ZD(u);return Kg([t||"","[",e.call(n,"id"),u.id?": ":"",e.call(n,"key"),"]: ",e.call(n,"value")])}case"ObjectTypeProperty":{const r=ZD(u);let a="";return u.proto?a="proto ":u.static&&(a="static "),Kg([a,Ag(u)?u.kind+" ":"",r||"",Fy(e,t,n),Ry(e),Cg(u,t)?"":": ",e.call(n,"value")])}case"QualifiedTypeIdentifier":return Kg([e.call(n,"qualification"),".",e.call(n,"id")]);case"StringLiteralTypeAnnotation":return Hy(u,t);case"NumberLiteralTypeAnnotation":return ha.strictEqual(typeof u.value,"number"),null!=u.extra?jD(u.extra.raw):jD(u.raw);case"StringTypeAnnotation":return"string";case"DeclareTypeAlias":case"TypeAlias":{("DeclareTypeAlias"===u.type||u.declare)&&s.push("declare ");const r=$y(u.id,u.right,e.call(n,"right"),t);return s.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",r,a),ry(Kg(s))}case"TypeCastExpression":return Kg(["(",e.call(n,"expression"),By(e,t,n),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":{const r=e.getValue(),u=r.range?t.originalText.slice(0,r.range[0]).lastIndexOf("/*"):-1;return u>=0&&t.originalText.slice(u).match(/^\/\*\s*::/)?Kg(["/*:: ",jy(e,t,n,"params")," */"]):jy(e,t,n,"params")}case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return jy(e,t,n,"params");case"TSTypeParameter":case"TypeParameter":{const r=e.getParentNode();if("TSMappedType"===r.type)return s.push("[",e.call(n,"name")),u.constraint&&s.push(" in ",e.call(n,"constraint")),s.push("]"),Kg(s);const a=ZD(u);a&&s.push(a),s.push(e.call(n,"name")),u.bound&&(s.push(": "),s.push(e.call(n,"bound"))),u.constraint&&s.push(" extends ",e.call(n,"constraint")),u.default&&s.push(" = ",e.call(n,"default"));const o=e.getNode(2);return r.params&&1===r.params.length&&zg(t)&&!u.constraint&&"ArrowFunctionExpression"===o.type&&s.push(","),Kg(s)}case"TypeofTypeAnnotation":return Kg(["typeof ",e.call(n,"argument")]);case"VoidTypeAnnotation":return"void";case"InferredPredicate":return"%checks";case"DeclaredPredicate":return Kg(["%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 Kg([e.call(n,"expression")," as ",e.call(n,"typeAnnotation")]);case"TSArrayType":return Kg([e.call(n,"elementType"),"[]"]);case"TSPropertySignature":return u.export&&s.push("export "),u.accessibility&&s.push(u.accessibility+" "),u.static&&s.push("static "),u.readonly&&s.push("readonly "),s.push(Fy(e,t,n),Ry(e)),u.typeAnnotation&&(s.push(": "),s.push(e.call(n,"typeAnnotation"))),u.initializer&&s.push(" = ",e.call(n,"initializer")),Kg(s);case"TSParameterProperty":return u.accessibility&&s.push(u.accessibility+" "),u.export&&s.push("export "),u.static&&s.push("static "),u.readonly&&s.push("readonly "),s.push(e.call(n,"parameter")),Kg(s);case"TSTypeReference":return Kg([e.call(n,"typeName"),jy(e,t,n,"typeParameters")]);case"TSTypeQuery":return Kg(["typeof ",e.call(n,"exprName")]);case"TSIndexSignature":{const r=e.getParentNode(),o=u.parameters.length>1?iy(Ey(t)?",":""):"",s=ry(Kg([uy(Kg([ty,Qg(Kg([", ",ty]),e.map(n,"parameters"))])),o,ty]));return Kg([u.export?"export ":"",u.accessibility?Kg([u.accessibility," "]):"",u.static?"static ":"",u.readonly?"readonly ":"","[",u.parameters?s:"",u.typeAnnotation?"]: ":"]",u.typeAnnotation?e.call(n,"typeAnnotation"):"","ClassBody"===r.type?a:""])}case"TSTypePredicate":return Kg([u.asserts?"asserts ":"",e.call(n,"parameterName"),u.typeAnnotation?Kg([" is ",e.call(n,"typeAnnotation")]):""]);case"TSNonNullExpression":return Kg([e.call(n,"expression"),"!"]);case"TSThisType":return"this";case"TSImportType":return Kg([u.isTypeOf?"typeof ":"","import(",e.call(n,u.parameter?"parameter":"argument"),")",u.qualifier?Kg([".",e.call(n,"qualifier")]):"",jy(e,t,n,"typeParameters")]);case"TSLiteralType":return e.call(n,"literal");case"TSIndexedAccessType":return Kg([e.call(n,"objectType"),"[",e.call(n,"indexType"),"]"]);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSCallSignatureDeclaration"!==u.type&&s.push("new "),s.push(ry(ky(e,n,t,!1,!0))),u.returnType||u.typeAnnotation){const t="TSConstructorType"===u.type;s.push(t?" => ":": ",e.call(n,"returnType"),e.call(n,"typeAnnotation"))}return Kg(s);case"TSTypeOperator":return Kg([u.operator," ",e.call(n,"typeAnnotation")]);case"TSMappedType":{const r=PD(t.originalText,t.locStart(u),t.locEnd(u));return ry(Kg(["{",uy(Kg([t.bracketSpacing?Zg:ty,u.readonly?Kg([ng(u.readonly,"readonly")," "]):"",_y(e,0,n),e.call(n,"typeParameter"),u.optional?ng(u.optional,"?"):"",u.typeAnnotation?": ":"",e.call(n,"typeAnnotation"),iy(a,"")])),gs.printDanglingComments(e,t,!0),t.bracketSpacing?Zg:ty,"}"]),{shouldBreak:r})}case"TSMethodSignature":return s.push(u.accessibility?Kg([u.accessibility," "]):"",u.export?"export ":"",u.static?"static ":"",u.readonly?"readonly ":"",u.computed?"[":"",e.call(n,"key"),u.computed?"]":"",Ry(e),ky(e,n,t,!1,!0)),(u.returnType||u.typeAnnotation)&&s.push(": ",e.call(n,"returnType"),e.call(n,"typeAnnotation")),ry(Kg(s));case"TSNamespaceExportDeclaration":return s.push("export as namespace ",e.call(n,"id")),t.semi&&s.push(";"),ry(Kg(s));case"TSEnumDeclaration":return u.declare&&s.push("declare "),u.modifiers&&s.push(_y(e,0,n)),u.const&&s.push("const "),s.push("enum ",e.call(n,"id")," "),0===u.members.length?s.push(ry(Kg(["{",gs.printDanglingComments(e,t),ty,"}"]))):s.push(ry(Kg(["{",uy(Kg([ey,Qy(e,t,"members",n),Ey(t,"es5")?",":""])),gs.printDanglingComments(e,t,!0),ey,"}"]))),Kg(s);case"TSEnumMember":return s.push(e.call(n,"id")),u.initializer&&s.push(" = ",e.call(n,"initializer")),Kg(s);case"TSImportEqualsDeclaration":return u.isExport&&s.push("export "),s.push("import ",e.call(n,"id")," = ",e.call(n,"moduleReference")),t.semi&&s.push(";"),ry(Kg(s));case"TSExternalModuleReference":return Kg(["require(",e.call(n,"expression"),")"]);case"TSModuleDeclaration":{const r=e.getParentNode(),o=wg(u.id),i="TSModuleDeclaration"===r.type,l=u.body&&"TSModuleDeclaration"===u.body.type;if(i)s.push(".");else{u.declare&&s.push("declare "),s.push(_y(e,0,n));const r=t.originalText.slice(t.locStart(u),t.locStart(u.id));"Identifier"===u.id.type&&"global"===u.id.name&&!/namespace|module/.test(r)||s.push(o||/(^|\s)module(\s|$)/.test(r)?"module ":"namespace ")}return s.push(e.call(n,"id")),l?s.push(e.call(n,"body")):u.body?s.push(" ",ry(e.call(n,"body"))):s.push(a),Kg(s)}case"PrivateName":return Kg(["#",e.call(n,"id")]);case"TSPrivateIdentifier":return u.escapedText;case"TSConditionalType":return by(e,t,n,{beforeParts:()=>[e.call(n,"checkType")," ","extends"," ",e.call(n,"extendsType")],afterParts:()=>[],shouldCheckJsx:!1,conditionalNodeType:"TSConditionalType",consequentNodePropertyName:"trueType",alternateNodePropertyName:"falseType",testNodePropertyNames:["checkType","extendsType"]});case"TSInferType":return Kg(["infer"," ",e.call(n,"typeParameter")]);case"InterpreterDirective":return s.push("#!",u.value,ey),zD(t.originalText,u,t.locEnd)&&s.push(ey),Kg(s);case"NGRoot":return Kg([].concat(e.call(n,"node"),u.node.comments&&0!==u.node.comments.length?Kg([" //",u.node.comments[0].value.trimEnd()]):[]));case"NGChainedExpression":return ry(Qg(Kg([";",Zg]),e.map(e=>cg(e)?n(e):Kg(["(",n(e),")"]),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return Kg([u.prefix,": ",u.value.trim()]);case"NGMicrosyntax":return Kg(e.map((e,t)=>Kg([0===t?"":Og(e.getValue(),t,u)?" ":Kg([";",Zg]),n(e)]),"body"));case"NGMicrosyntaxKey":return/^[a-z_$][a-z0-9_$]*(-[a-z_$][a-z0-9_$])*$/i.test(u.name)?u.name:JSON.stringify(u.name);case"NGMicrosyntaxExpression":return Kg([e.call(n,"expression"),null===u.alias?"":Kg([" as ",e.call(n,"alias")])]);case"NGMicrosyntaxKeyedExpression":{const t=e.getName(),r=e.getParentNode(),a=Og(u,t,r)||(1===t&&("then"===u.key.name||"else"===u.key.name)||2===t&&"else"===u.key.name&&"NGMicrosyntaxKeyedExpression"===r.body[t-1].type&&"then"===r.body[t-1].key.name)&&"NGMicrosyntaxExpression"===r.body[0].type;return Kg([e.call(n,"key"),a?" ":": ",e.call(n,"expression")])}case"NGMicrosyntaxLet":return Kg(["let ",e.call(n,"key"),null===u.value?"":Kg([" = ",e.call(n,"value")])]);case"NGMicrosyntaxAs":return Kg([e.call(n,"key")," as ",e.call(n,"alias")]);case"ArgumentPlaceholder":return"?";case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return Kg(["?",e.call(n,"typeAnnotation")]);case"TSJSDocNonNullableType":return Kg(["!",e.call(n,"typeAnnotation")]);case"TSJSDocFunctionType":return Kg(["function(","): ",e.call(n,"typeAnnotation")]);default:throw new Error("unknown type: "+JSON.stringify(u.type))}}(e,t,n,r);if(!u||my(o))return o;const s=tg(e),i=[];if("ClassMethod"===u.type||"ClassPrivateMethod"===u.type||"ClassProperty"===u.type||"TSAbstractClassProperty"===u.type||"ClassPrivateProperty"===u.type||"MethodDefinition"===u.type||"TSAbstractMethodDefinition"===u.type||"TSDeclareMethod"===u.type);else if(u.decorators&&u.decorators.length>0&&!(s&&t.locStart(s,{ignoreDecorators:!0})>t.locStart(u.decorators[0]))){const r="ClassExpression"===u.type||"ClassDeclaration"===u.type||lg(u,t)?ey:Zg;e.each(e=>{let t=e.getValue();t=t.expression?t.expression:t.callee,i.push(n(e),r)},"decorators"),s&&i.unshift(ey)}else gg(u)&&u.declaration&&u.declaration.decorators&&u.declaration.decorators.length>0&&t.locStart(u,{ignoreDecorators:!0})>t.locStart(u.declaration.decorators[0])?e.each(e=>{const t="Decorator"===e.getValue().type?"":"@";i.push(t,n(e),ey)},"declaration","decorators"):a=vD(e,t);const l=[];if(a&&l.unshift("("),l.push(o),a){const t=e.getValue();ag(t)&&(l.push(" /*"),l.push(t.trailingComments[0].value.trimStart()),l.push("*/"),t.trailingComments[0].printed=!0),l.push(")")}return i.length>0?ry(Kg(i.concat(l))):Kg(l)},embed:Lm,insertPragma:GD,massageAstNode:Rm,hasPrettierIgnore:pg,willPrintOwnComments:function(e){const t=e.getValue(),n=e.getParentNode();return(t&&(vg(t)||ag(t)||n&&("CallExpression"===n.type||"OptionalCallExpression"===n.type)&&(ug(t.leadingComments)||ug(t.trailingComments)))||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&(!LD(e)||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)},canAttachComment:function(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(e,t){const n=e.getValue();switch(n.type){case"CommentBlock":case"Block":{if(function(e){const t="*".concat(e.value,"*").split("\n");return t.length>1&&t.every(e=>"*"===e.trim()[0])}(n)){const e=function(e){const t=e.value.split("\n");return Kg(["/*",Qg(ey,t.map((e,n)=>0===n?e.trimEnd():" "+(n<t.length-1?e.trim():e.trimStart()))),"*/"])}(n);return n.trailing&&!OD(t.originalText,t.locStart(n),{backwards:!0})?Kg([ey,e]):e}const e=t.locEnd(n),r="*-/"===t.originalText.slice(e-3,e);return"/*"+n.value+(r?"*-/":"*/")}case"CommentLine":case"Line":return t.originalText.slice(t.locStart(n)).startsWith("#!")?"#!"+n.value.trimEnd():"//"+n.value.trimEnd();default:throw new Error("Not a comment: "+JSON.stringify(n))}},isBlockComment:dm.isBlockComment,handleComments:{ownLine:dm.handleOwnLineComment,endOfLine:dm.handleEndOfLineComment,remaining:dm.handleRemainingComment},getGapRegex:dm.getGapRegex,getCommentChildNodes:dm.getCommentChildNodes};const{concat:tE,hardline:nE,indent:rE,join:uE}=So.builders;var aE={preprocess:TD,print:function(e,t,n){const r=e.getValue();switch(r.type){case"JsonRoot":return tE([e.call(n,"node"),nE]);case"ArrayExpression":return 0===r.elements.length?"[]":tE(["[",rE(tE([nE,uE(tE([",",nE]),e.map(n,"elements"))])),nE,"]"]);case"ObjectExpression":return 0===r.properties.length?"{}":tE(["{",rE(tE([nE,uE(tE([",",nE]),e.map(n,"properties"))])),nE,"}"]);case"ObjectProperty":return tE([e.call(n,"key"),": ",e.call(n,"value")]);case"UnaryExpression":return tE(["+"===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(e,t){return delete t.start,delete t.end,delete t.extra,delete t.loc,delete t.comments,delete t.errors,"Identifier"===e.type?{type:"StringLiteral",value:e.name}:"UnaryExpression"===e.type&&"+"===e.operator?t.argument:void 0}},oE={arrowParens:{since:"1.9.0",category:"JavaScript",type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSpacing:Ll.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:Ll.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"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]}},sE=["js","node"],iE=[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],lE=["Jakefile"],cE=["chakra","d8","gjs","js","node","qjs","rhino","v8","v8-shell"],pE={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:sE,extensions:iE,filenames:lE,interpreters:cE,languageId:183},dE=Object.freeze({__proto__:null,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:sE,extensions:iE,filenames:lE,interpreters:cE,languageId:183,default:pE}),fE=[".jsx"],hE={name:"JSX",type:"programming",group:"JavaScript",extensions:fE,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178},mE=Object.freeze({__proto__:null,name:"JSX",type:"programming",group:"JavaScript",extensions:fE,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178,default:hE}),DE=["ts"],gE=["deno","ts-node"],yE=[".ts"],EE={name:"TypeScript",type:"programming",color:"#2b7489",aliases:DE,interpreters:gE,extensions:yE,tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378},CE=Object.freeze({__proto__:null,name:"TypeScript",type:"programming",color:"#2b7489",aliases:DE,interpreters:gE,extensions:yE,tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378,default:EE}),bE=[".tsx"],AE={name:"TSX",type:"programming",group:"TypeScript",extensions:bE,tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924},FE=Object.freeze({__proto__:null,name:"TSX",type:"programming",group:"TypeScript",extensions:bE,tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924,default:AE}),vE=[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],xE=[".arcconfig",".htmlhintrc",".tern-config",".tern-project",".watchmanconfig","composer.lock","mcmod.info"],SE={name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:vE,filenames:xE,languageId:174},wE=Object.freeze({__proto__:null,name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:vE,filenames:xE,languageId:174,default:SE}),BE=["jsonc"],TE=[".jsonc",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],kE=[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","jsconfig.json","language-configuration.json","tsconfig.json"],NE={name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:BE,extensions:TE,filenames:kE,languageId:423},OE=Object.freeze({__proto__:null,name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:BE,extensions:TE,filenames:kE,languageId:423,default:NE}),PE=[".json5"],IE={name:"JSON5",type:"data",extensions:PE,tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175},ME=Object.freeze({__proto__:null,name:"JSON5",type:"data",extensions:PE,tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175,default:IE}),_E=Ze(dE),jE=Ze(mE),LE=Ze(CE),RE=Ze(FE),qE=Ze(wE),VE=Ze(OE),WE=Ze(ME),UE={languages:[ql(_E,e=>({since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript","mongo"],interpreters:e.interpreters.concat(["nodejs"])})),ql(_E,()=>({name:"Flow",since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})),ql(jE,()=>({since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascriptreact"]})),ql(LE,()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]})),ql(RE,()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]})),ql(qE,()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]})),ql(qE,e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],filenames:e.filenames.concat([".prettierrc"])})),ql(VE,e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:e.filenames.concat([".eslintrc"])})),ql(WE,()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}))],options:oE,printers:{estree:eE,"estree-json":aE}};const{cjkPattern:zE,kPattern:$E,punctuationPattern:JE}={cjkPattern:"[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u3000-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d]",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"},{getLast:GE}=no,HE=["liquidNode","inlineCode","emphasis","strong","delete","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],XE=HE.concat(["tableCell","paragraph","heading"]),YE=new RegExp($E),KE=new RegExp(JE);function QE(e,t){const[,n,r,u]=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:n,marker:r,leadingSpaces:u}}var ZE={mapAst:function(e,t){return function e(n,r,u){u=u||[];const a=Object.assign({},t(n,r,u));return a.children&&(a.children=a.children.map((t,n)=>e(t,n,[a].concat(u)))),a}(e,null,null)},splitText:function(e,t){const n=[];return("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat(zE,")\n(").concat(zE,")"),"g"),"$1$2")).split(/([ \t\n]+)/).forEach((e,t,u)=>{t%2!==1?(0!==t&&t!==u.length-1||""!==e)&&e.split(new RegExp("(".concat(zE,")"))).forEach((e,t,n)=>{(0!==t&&t!==n.length-1||""!==e)&&(t%2!==0?r(KE.test(e)?{type:"word",value:e,kind:"cjk-punctuation",hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:e,kind:YE.test(e)?"k-letter":"cj-letter",hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==e&&r({type:"word",value:e,kind:"non-cjk",hasLeadingPunctuation:KE.test(e[0]),hasTrailingPunctuation:KE.test(GE(e))}))}):n.push({type:"whitespace",value:/\n/.test(e)?"\n":" "})}),n;function r(e){const t=GE(n);var r,u;t&&"word"===t.type&&("non-cjk"===t.kind&&"cj-letter"===e.kind&&!t.hasTrailingPunctuation||"cj-letter"===t.kind&&"non-cjk"===e.kind&&!e.hasLeadingPunctuation?n.push({type:"whitespace",value:" "}):(r="non-cjk",u="cjk-punctuation",t.kind===r&&e.kind===u||t.kind===u&&e.kind===r||[t.value,e.value].some(e=>/\u3000/.test(e))||n.push({type:"whitespace",value:""}))),n.push(e)}},punctuationPattern:JE,getFencedCodeBlockValue:function(e,t){const n=t.slice(e.position.start.offset,e.position.end.offset),r=n.match(/^\s*/)[0].length,u=new RegExp("^\\s{0,".concat(r,"}")),a=n.split("\n"),o=n[r],s=n.slice(r).match(new RegExp("^[".concat(o,"]+")))[0],i=new RegExp("^\\s{0,3}".concat(s)).test(a[a.length-1].slice(l(a.length-1)));return a.slice(1,i?-1:void 0).map((e,t)=>e.slice(l(t+1)).replace(u,"")).join("\n");function l(t){return e.position.indent[t-1]-1}},getOrderedListItemInfo:QE,hasGitDiffFriendlyOrderedList:function(e,t){if(!e.ordered)return!1;if(e.children.length<2)return!1;const n=Number(QE(e.children[0],t.originalText).numberText),r=Number(QE(e.children[1],t.originalText).numberText);if(0===n&&e.children.length>2){const n=Number(QE(e.children[2],t.originalText).numberText);return 1===r&&1===n}return 1===r},INLINE_NODE_TYPES:HE,INLINE_NODE_WRAPPER_TYPES:XE};const{builders:{hardline:eC,literalline:tC,concat:nC,markAsRoot:rC},utils:{mapDoc:uC}}=So,{getFencedCodeBlockValue:aC}=ZE;var oC=function(e,t,n,r){const u=e.getValue();if("code"===u.type&&null!==u.lang){const e=u.lang.match(/^[A-Za-z0-9_-]+/),t=function(e){const t=sn.getSupportInfo({plugins:r.plugins}).languages.find(t=>t.name.toLowerCase()===e||t.aliases&&t.aliases.includes(e)||t.extensions&&t.extensions.find(t=>t===".".concat(e)));return t?t.parsers[0]:null}(e?e[0]:"");if(t){const e=r.__inJsTemplate?"~":"`",o=e.repeat(Math.max(3,no.getMaxContinuousCount(u.value,e)+1)),s=n(aC(u,r.originalText),{parser:t});return rC(nC([o,u.lang,eC,a(s),o]))}}if("yaml"===u.type)return rC(nC(["---",eC,u.value&&u.value.trim()?a(n(u.value,{parser:"yaml"})):"","---"]));switch(u.type){case"importExport":return n(u.value,{parser:"babel"});case"jsx":return n("<$>".concat(u.value,"</$>"),{parser:"__js_expression",rootMarker:"mdx"})}return null;function a(e){return uC(e,e=>"string"===typeof e&&e.includes("\n")?nC(e.split(/(\n)/g).map((e,t)=>t%2===0?e:tC)):e)}};const sC=["format","prettier"];function iC(e){const t="@(".concat(sC.join("|"),")"),n=new RegExp(["\x3c!--\\s*".concat(t,"\\s*--\x3e"),"\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(t,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),r=e.match(n);return r&&0===r.index}var lC={startWithPragma:iC,hasPragma:e=>iC(ai(e).content.trimStart()),insertPragma:e=>{const t=ai(e),n="\x3c!-- @".concat(sC[0]," --\x3e");return t.frontMatter?"".concat(t.frontMatter.raw,"\n\n").concat(n,"\n\n").concat(t.content):"".concat(n,"\n\n").concat(t.content)}};const{getOrderedListItemInfo:cC,mapAst:pC,splitText:dC}=ZE,fC=/^([\u0000-\uffff]|[\ud800-\udbff][\udc00-\udfff])$/;function hC(e,t,n){return pC(e,e=>{if(!e.children)return e;const r=e.children.reduce((e,r)=>{const u=e[e.length-1];return u&&t(u,r)?e.splice(-1,1,n(u,r)):e.push(r),e},[]);return Object.assign({},e,{children:r})})}var mC=function(e,t){return e=function(e){return hC(e,(e,t)=>"importExport"===e.type&&"importExport"===t.type,(e,t)=>({type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}}))}(e=function(e){return pC(e,e=>"import"!==e.type&&"export"!==e.type?e:Object.assign({},e,{type:"importExport"}))}(e=function(e,t){return pC(e,(e,n,[r])=>{if("text"!==e.type)return e;let{value:u}=e;return"paragraph"===r.type&&(0===n&&(u=u.trimStart()),n===r.children.length-1&&(u=u.trimEnd())),{type:"sentence",position:e.position,children:dC(u,t)}})}(e=function(e,t){return pC(e,(e,r,u)=>{if("list"===e.type&&0!==e.children.length){for(let t=0;t<u.length;t++){const n=u[t];if("list"===n.type&&!n.isAligned)return e.isAligned=!1,e}e.isAligned=function(e){if(!e.ordered)return!0;const[r,u]=e.children;if(cC(r,t.originalText).leadingSpaces.length>1)return!0;const a=n(r);if(-1===a)return!1;if(1===e.children.length)return a%t.tabWidth===0;const o=n(u);return a===o&&(a%t.tabWidth===0||cC(u,t.originalText).leadingSpaces.length>1)}(e)}return e});function n(e){return 0===e.children.length?-1:e.children[0].position.start.column-1}}(e=function(e,t){return pC(e,(e,n,r)=>{if("code"===e.type){const n=/^\n?( {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=n,n)for(let e=0;e<r.length;e++){const t=r[e];if(t.hasIndentedCodeblock)break;"list"===t.type&&(t.hasIndentedCodeblock=!0)}}return e})}(e=function(e){return pC(e,e=>"inlineCode"!==e.type?e:Object.assign({},e,{value:e.value.replace(/\s+/g," ")}))}(e=function(e){return hC(e,(e,t)=>"text"===e.type&&"text"===t.type,(e,t)=>({type:"text",value:e.value+t.value,position:{start:e.position.start,end:t.position.end}}))}(e=function(e,t){return pC(e,e=>"text"!==e.type?e:Object.assign({},e,{value:"*"!==e.value&&"_"!==e.value&&"$"!==e.value&&fC.test(e.value)&&e.position.end.offset-e.position.start.offset!==e.value.length?t.originalText.slice(e.position.start.offset,e.position.end.offset):e.value}))}(e,t))),t),t),t)))};const{builders:{breakParent:DC,concat:gC,join:yC,line:EC,literalline:CC,markAsRoot:bC,hardline:AC,softline:FC,ifBreak:vC,fill:xC,align:SC,indent:wC,group:BC},utils:{mapDoc:TC},printer:{printDocToString:kC}}=So,{getFencedCodeBlockValue:NC,hasGitDiffFriendlyOrderedList:OC,splitText:PC,punctuationPattern:IC,INLINE_NODE_TYPES:MC,INLINE_NODE_WRAPPER_TYPES:_C}=ZE,{replaceEndOfLineWith:jC}=no,LC=["importExport"],RC=["heading","tableCell","link"],qC=["listItem","definition","footnoteDefinition"];function VC(e,t,n,r){const u=e.getValue(),a=null===u.checked?"":u.checked?"[x] ":"[ ] ";return gC([a,GC(e,t,n,{processor:(e,u)=>{if(0===u&&"list"!==e.getValue().type)return SC(" ".repeat(a.length),e.call(n));const o=" ".repeat((s=t.tabWidth-r.length,l=3,s<(i=0)?i:s>l?l:s));var s,i,l;return gC([o,SC(o,e.call(n))])}})])}function WC(e,t){return function(e,t,n){n=n||(()=>!0);let r=-1;for(const u of t.children)if(u.type===e.type&&n(u)?r++:r=-1,u===e)return r}(e,t,t=>t.ordered===e.ordered)}function UC(e,t){const n=[].concat(t);let r,u=-1;for(;r=e.getParentNode(++u);)if(n.includes(r.type))return u;return-1}function zC(e,t){const n=UC(e,t);return-1===n?null:e.getParentNode(n)}function $C(e,t,n){if("preserve"===n.proseWrap&&"\n"===t)return AC;const r="always"===n.proseWrap&&!zC(e,RC);return""!==t?r?EC:" ":r?FC:""}function JC(e,t,n){const r=[];let u=null;const{children:a}=e.getValue();return a.forEach((e,t)=>{switch(XC(e)){case"start":null===u&&(u={index:t,offset:e.position.end.offset});break;case"end":null!==u&&(r.push({start:u,end:{index:t,offset:e.position.start.offset}}),u=null)}}),GC(e,t,n,{processor:(e,u)=>{if(0!==r.length){const e=r[0];if(u===e.start.index)return gC([a[e.start.index].value,t.originalText.slice(e.start.offset,e.end.offset),a[e.end.index].value]);if(e.start.index<u&&u<e.end.index)return!1;if(u===e.end.index)return r.shift(),!1}return e.call(n)}})}function GC(e,t,n,r){const u=(r=r||{}).postprocessor||gC,a=r.processor||(e=>e.call(n)),o=e.getValue(),s=[];let i;return e.map((e,n)=>{const r=e.getValue(),u=a(e,n);if(!1!==u){const e={parts:s,prevNode:i,parentNode:o,options:t};(function(e,t){const n=0===t.parts.length,r=MC.includes(e.type),u="html"===e.type&&_C.includes(t.parentNode.type);return n||r||u})(r,e)||(s.push(AC),i&&LC.includes(i.type)||(function(e,t){const n=(t.prevNode&&t.prevNode.type)===e.type&&qC.includes(e.type),r="listItem"===t.parentNode.type&&!t.parentNode.loose,u=t.prevNode&&"listItem"===t.prevNode.type&&t.prevNode.loose,a="next"===XC(t.prevNode),o="html"===e.type&&t.prevNode&&"html"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line,s="html"===e.type&&"listItem"===t.parentNode.type&&t.prevNode&&"paragraph"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line;return u||!(n||r||a||o||s)}(r,e)||YC(r,e))&&s.push(AC),YC(r,e)&&s.push(AC)),s.push(u),i=r}},"children"),u(s)}function HC(e){let t=e;for(;t.children&&0!==t.children.length;)t=t.children[t.children.length-1];return t}function XC(e){if("html"!==e.type)return!1;const t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);return null!==t&&(t[1]?t[1]:"next")}function YC(e,t){const n=t.prevNode&&"list"===t.prevNode.type,r="code"===e.type&&e.isIndented;return n&&r}function KC(e){return TC(e,e=>{if(!e.parts)return e;if("concat"===e.type&&1===e.parts.length)return e.parts[0];const t=e.parts.reduce((e,t)=>("concat"===t.type?e.push(...t.parts):""!==t&&e.push(t),e),[]);return Object.assign({},e,{parts:eb(t)})})}function QC(e,t){const n=[" "].concat(t||[]);return new RegExp(n.map(e=>"\\".concat(e)).join("|")).test(e)?"<".concat(e,">"):e}function ZC(e,t,n){if(null==n&&(n=!0),!e)return"";if(n)return" "+ZC(e,t,!1);if(e.includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");const r=e.split("'").length-1,u=e.split('"').length-1,a=r>u?'"':u>r||t.singleQuote?"'":'"';return e=e.replace(new RegExp("(".concat(a,")"),"g"),"\\$1"),"".concat(a).concat(e).concat(a)}function eb(e){return e.reduce((e,t)=>{const n=no.getLast(e);return"string"===typeof n&&"string"===typeof t?e.splice(-1,1,n+t):e.push(t),e},[])}var tb={preprocess:mC,print:function(e,t,n){const r=e.getValue();if(function(e){const t=zC(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}(e))return gC(PC(t.originalText.slice(r.position.start.offset,r.position.end.offset),t).map(n=>"word"===n.type?n.value:""===n.value?"":$C(e,n.value,t)));switch(r.type){case"root":return 0===r.children.length?"":gC([KC(JC(e,t,n)),LC.includes(HC(r).type)?"":AC]);case"paragraph":return GC(e,t,n,{postprocessor:xC});case"sentence":return GC(e,t,n);case"word":return r.value.replace(/[*$]/g,"\\$&").replace(new RegExp(["(^|".concat(IC,")(_+)"),"(_+)(".concat(IC,"|$)")].join("|"),"g"),(e,t,n,r,u)=>(n?"".concat(t).concat(n):"".concat(r).concat(u)).replace(/_/g,"\\_"));case"whitespace":{const n=e.getParentNode(),u=n.children.indexOf(r),a=n.children[u+1],o=a&&/^>|^([-+*]|#{1,6}|[0-9]+[.)])$/.test(a.value)?"never":t.proseWrap;return $C(e,r.value,{proseWrap:o})}case"emphasis":{const u=e.getParentNode(),a=u.children.indexOf(r),o=u.children[a-1],s=u.children[a+1],i=o&&"sentence"===o.type&&o.children.length>0&&"word"===no.getLast(o.children).type&&!no.getLast(o.children).hasTrailingPunctuation||s&&"sentence"===s.type&&s.children.length>0&&"word"===s.children[0].type&&!s.children[0].hasLeadingPunctuation||zC(e,"emphasis")?"*":"_";return gC([i,GC(e,t,n),i])}case"strong":return gC(["**",GC(e,t,n),"**"]);case"delete":return gC(["~~",GC(e,t,n),"~~"]);case"inlineCode":{const e=no.getMinNotPresentContinuousCount(r.value,"`"),t="`".repeat(e||1),n=e?" ":"";return gC([t,n,r.value,n,t])}case"link":switch(t.originalText[r.position.start.offset]){case"<":{const e="mailto:",n=r.url.startsWith(e)&&t.originalText.slice(r.position.start.offset+1,r.position.start.offset+1+e.length)!==e?r.url.slice(e.length):r.url;return gC(["<",n,">"])}case"[":return gC(["[",GC(e,t,n),"](",QC(r.url,")"),ZC(r.title,t),")"]);default:return t.originalText.slice(r.position.start.offset,r.position.end.offset)}case"image":return gC([""),ZC(r.title,t),")"]);case"blockquote":return gC(["> ",SC("> ",GC(e,t,n))]);case"heading":return gC(["#".repeat(r.depth)+" ",GC(e,t,n)]);case"code":{if(r.isIndented){const e=" ".repeat(4);return SC(e,gC([e,gC(jC(r.value,AC))]))}const e=t.__inJsTemplate?"~":"`",n=e.repeat(Math.max(3,no.getMaxContinuousCount(r.value,e)+1));return gC([n,r.lang||"",AC,gC(jC(NC(r,t.originalText),AC)),AC,n])}case"yaml":case"toml":return t.originalText.slice(r.position.start.offset,r.position.end.offset);case"html":{const t=e.getParentNode(),n="root"===t.type&&no.getLast(t.children)===r?r.value.trimEnd():r.value,u=/^<!--[\s\S]*-->$/.test(n);return gC(jC(n,u?AC:bC(CC)))}case"list":{const u=WC(r,e.getParentNode()),a=OC(r,t);return GC(e,t,n,{processor:(e,o)=>{const s=function(){const e=r.ordered?(0===o?r.start:a?1:r.start+o)+(u%2===0?". ":") "):u%2===0?"- ":"* ";return r.isAligned||r.hasIndentedCodeblock?function(e,t){const n=function(){const n=e.length%t.tabWidth;return 0===n?0:t.tabWidth-n}();return e+" ".repeat(n>=4?0:n)}(e,t):e}(),i=e.getValue();return 2===i.children.length&&"html"===i.children[1].type&&i.children[0].position.start.column!==i.children[1].position.start.column?gC([s,VC(e,t,n,s)]):gC([s,SC(" ".repeat(s.length),VC(e,t,n,s))])}})}case"thematicBreak":{const t=UC(e,"list");return-1===t?"---":WC(e.getParentNode(t),e.getParentNode(t+1))%2===0?"***":"---"}case"linkReference":return gC(["[",GC(e,t,n),"]","full"===r.referenceType?gC(["[",r.identifier,"]"]):"collapsed"===r.referenceType?"[]":""]);case"imageReference":switch(r.referenceType){case"full":return gC(["![",r.alt||"","][",r.identifier,"]"]);default:return gC(["![",r.alt,"]","collapsed"===r.referenceType?"[]":""])}case"definition":{const e="always"===t.proseWrap?EC:" ";return BC(gC([gC(["[",r.identifier,"]:"]),wC(gC([e,QC(r.url),null===r.title?"":gC([e,ZC(r.title,t,!1)])]))]))}case"footnote":return gC(["[^",GC(e,t,n),"]"]);case"footnoteReference":return gC(["[^",r.identifier,"]"]);case"footnoteDefinition":{const u=e.getParentNode().children[e.getName()+1],a=1===r.children.length&&"paragraph"===r.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&r.children[0].position.start.line===r.children[0].position.end.line);return gC(["[^",r.identifier,"]: ",a?GC(e,t,n):BC(gC([SC(" ".repeat(t.tabWidth),GC(e,t,n,{processor:(e,t)=>0===t?BC(gC([FC,e.call(n)])):e.call(n)})),u&&"footnoteDefinition"===u.type?FC:""]))])}case"table":return function(e,t,n){const r=AC.parts[0],u=e.getValue(),a=[];e.map(e=>{const r=[];e.map(e=>{r.push(kC(e.call(n),t).formatted)},"children"),a.push(r)},"children");const o=a.reduce((e,t)=>e.map((e,n)=>Math.max(e,no.getStringWidth(t[n]))),a[0].map(()=>3)),s=yC(r,[c(a[0]),l(),yC(r,a.slice(1).map(e=>c(e)))]);if("never"!==t.proseWrap)return gC([DC,s]);const i=yC(r,[c(a[0],!0),l(!0),yC(r,a.slice(1).map(e=>c(e,!0)))]);return gC([DC,BC(vC(i,s))]);function l(e){return gC(["| ",yC(" | ",o.map((t,n)=>{const r=e?3:t;switch(u.align[n]){case"left":return":"+"-".repeat(r-1);case"right":return"-".repeat(r-1)+":";case"center":return":"+"-".repeat(r-2)+":";default:return"-".repeat(r)}}))," |"])}function c(e,t){return gC(["| ",yC(" | ",t?e:e.map((e,t)=>{switch(u.align[t]){case"right":return function(e,t){const n=t-no.getStringWidth(e);return gC([" ".repeat(n),e])}(e,o[t]);case"center":return function(e,t){const n=t-no.getStringWidth(e),r=Math.floor(n/2),u=n-r;return gC([" ".repeat(r),e," ".repeat(u)])}(e,o[t]);default:return function(e,t){const n=t-no.getStringWidth(e);return gC([e," ".repeat(n)])}(e,o[t])}}))," |"])}}(e,t,n);case"tableCell":return GC(e,t,n);case"break":return/\s/.test(t.originalText[r.position.start.offset])?gC([" ",bC(CC)]):gC(["\\",AC]);case"liquidNode":return gC(jC(r.value,AC));case"importExport":case"jsx":return r.value;case"math":return gC(["$$",AC,r.value?gC([gC(jC(r.value,AC)),AC]):"","$$"]);case"inlineMath":return t.originalText.slice(t.locStart(r),t.locEnd(r));case"tableRow":case"listItem":default:throw new Error("Unknown markdown type ".concat(JSON.stringify(r.type)))}},embed:oC,massageAstNode:function(e,t,n){return delete t.position,delete t.raw,"code"!==e.type&&"yaml"!==e.type&&"import"!==e.type&&"export"!==e.type&&"jsx"!==e.type||delete t.value,"list"===e.type&&delete t.isAligned,"text"===e.type?null:("inlineCode"===e.type&&(t.value=e.value.replace(/[ \t\n]+/g," ")),n&&"root"===n.type&&n.children.length>0&&(n.children[0]===e||("yaml"===n.children[0].type||"toml"===n.children[0].type)&&n.children[1]===e)&&"html"===e.type&&lC.startWithPragma(e.value)?null:void 0)},hasPrettierIgnore:function(e){const t=+e.getName();return 0!==t&&"next"===XC(e.getParentNode().children[t-1])},insertPragma:lC.insertPragma},nb={proseWrap:Ll.proseWrap,singleQuote:Ll.singleQuote},rb=["pandoc"],ub=[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".workbook"],ab=["contents.lr"],ob={name:"Markdown",type:"prose",aliases:rb,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:ub,filenames:ab,tmScope:"source.gfm",languageId:222},sb=Ze(Object.freeze({__proto__:null,name:"Markdown",type:"prose",aliases:rb,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:ub,filenames:ab,tmScope:"source.gfm",languageId:222,default:ob})),ib={languages:[ql(sb,e=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:e.filenames.concat(["README"]),extensions:e.extensions.filter(e=>".mdx"!==e)})),ql(sb,()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]}))],options:nb,printers:{mdast:tb}},lb={isPragma:function(e){return/^\s*@(prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\n\S]*@(prettier|format)\s*?(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n".concat(e)}};const{getLast:cb}=no;function pb(e,t){return e&&"string"===typeof e.type&&(!t||t.includes(e.type))}function db(e){return"prettier-ignore"===e.value.trim()}function fb(e){return e&&e.leadingComments&&0!==e.leadingComments.length}function hb(e){return e&&e.middleComments&&0!==e.middleComments.length}function mb(e){return e&&e.indicatorComment}function Db(e){return e&&e.trailingComment}function gb(e){return e&&e.endComments&&0!==e.endComments.length}function yb(e){const t=[];let n=void 0;for(const r of e.split(/( +)/g))" "!==r?" "===n?t.push(r):t.push((t.pop()||"")+r):void 0===n&&t.unshift(""),n=r;return" "===n&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}var Eb={getLast:cb,getAncestorCount:function(e,t){let n=0;const r=e.stack.length-1;for(let u=0;u<r;u++){const r=e.stack[u];pb(r)&&t(r)&&n++}return n},isNode:pb,isEmptyNode:function(e){return(!e.children||0===e.children.length)&&!function(e){return fb(e)||hb(e)||mb(e)||Db(e)||gb(e)}(e)},mapNode:function e(t,n,r){return n("children"in t?Object.assign({},t,{children:t.children.map(r=>e(r,n,t))}):t,r)},defineShortcut:function(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1})},isNextLineEmpty:function(e,t){let n=0;const r=t.length;for(let u=e.position.end.offset-1;u<r;u++){const e=t[u];if("\n"===e&&n++,1===n&&/\S/.test(e))return!1;if(2===n)return!0}return!1},isLastDescendantNode:function(e){switch(e.getValue().type){case"tag":case"anchor":case"comment":return!1}const t=e.stack.length;for(let n=1;n<t;n++){const t=e.stack[n],r=e.stack[n-1];if(Array.isArray(r)&&"number"===typeof t&&t!==r.length-1)return!1}return!0},getBlockValueLineContents:function(e,{parentIndent:t,isLastDescendant:n,options:r}){const u=e.position.start.line===e.position.end.line?"":r.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*?\n([\s\S]*)$/)[1],a=null===e.indent?(o=u.match(/^( *)\S/m))?o[1].length:1/0:e.indent-1+t;var o;const s=u.split("\n").map(e=>e.slice(a));return"preserve"===r.proseWrap||"blockLiteral"===e.type?i(s.map(e=>0===e.length?[]:[e])):i(s.map(e=>0===e.length?[]:yb(e)).reduce((e,t,n)=>0===n||0===s[n-1].length||0===t.length||/^\s/.test(t[0])||/^\s|\s$/.test(cb(e))?e.concat([t]):e.concat([e.pop().concat(t)]),[]).map(e=>e.reduce((e,t)=>0!==e.length&&/\s$/.test(cb(e))?e.concat(e.pop()+" "+t):e.concat(t),[])).map(e=>"never"===r.proseWrap?[e.join(" ")]:e));function i(t){if("keep"===e.chomping)return 0===cb(t).length?t.slice(0,-1):t;let r=0;for(let e=t.length-1;e>=0&&0===t[e].length;e--)r++;return 0===r?t:r>=2&&!n?t.slice(0,-(r-1)):t.slice(0,-r)}},getFlowScalarLineContents:function(e,t,n){const r=t.split("\n").map((e,t,n)=>0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimEnd():e.trimStart());return"preserve"===n.proseWrap?r.map(e=>0===e.length?[]:[e]):r.map(e=>0===e.length?[]:yb(e)).reduce((t,n,u)=>0===u||0===r[u-1].length||0===n.length||"quoteDouble"===e&&cb(cb(t)).endsWith("\\")?t.concat([n]):t.concat([t.pop().concat(n)]),[]).map(e=>"never"===n.proseWrap?[e.join(" ")]:e)},getLastDescendantNode:function e(t){return"children"in t&&0!==t.children.length?e(cb(t.children)):t},hasPrettierIgnore:function(e){const t=e.getValue();if("documentBody"===t.type){const t=e.getParentNode();return gb(t.head)&&db(cb(t.head.endComments))}return fb(t)&&db(cb(t.leadingComments))},hasLeadingComments:fb,hasMiddleComments:hb,hasIndicatorComment:mb,hasTrailingComment:Db,hasEndComments:gb};const{insertPragma:Cb,isPragma:bb}=lb,{getAncestorCount:Ab,getBlockValueLineContents:Fb,getFlowScalarLineContents:vb,getLast:xb,getLastDescendantNode:Sb,hasLeadingComments:wb,hasMiddleComments:Bb,hasIndicatorComment:Tb,hasTrailingComment:kb,hasEndComments:Nb,hasPrettierIgnore:Ob,isLastDescendantNode:Pb,isNextLineEmpty:Ib,isNode:Mb,isEmptyNode:_b,defineShortcut:jb,mapNode:Lb}=Eb,Rb=So.builders,{conditionalGroup:qb,breakParent:Vb,concat:Wb,dedent:Ub,dedentToRoot:zb,fill:$b,group:Jb,hardline:Gb,ifBreak:Hb,join:Xb,line:Yb,lineSuffix:Kb,literalline:Qb,markAsRoot:Zb,softline:eA}=Rb,{replaceEndOfLineWith:tA}=no;function nA(e){switch(e.type){case"document":jb(e,"head",()=>e.children[0]),jb(e,"body",()=>e.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":jb(e,"content",()=>e.children[0]);break;case"mappingItem":case"flowMappingItem":jb(e,"key",()=>e.children[0]),jb(e,"value",()=>e.children[1])}return e}function rA(e,t,n,r,u){switch(e.type){case"root":return Wb([Xb(Gb,n.map((t,r)=>{const a=e.children[r],o=e.children[r+1];return Wb([u(t),sA(a,o)?Wb([Gb,"...",kb(a)?Wb([" ",n.call(u,"trailingComment")]):""]):!o||kb(o.head)?"":Wb([Gb,"---"])])},"children")),0===e.children.length||(o=Sb(e),Mb(o,["blockLiteral","blockFolded"])&&"keep"===o.chomping)?"":Gb]);case"document":{const a=t.children[n.getName()+1];return Xb(Gb,["head"===iA(e,a,t,r)?Xb(Gb,[0===e.head.children.length&&0===e.head.endComments.length?"":n.call(u,"head"),Wb(["---",kb(e.head)?Wb([" ",n.call(u,"head","trailingComment")]):""])].filter(Boolean)):"",oA(e)?n.call(u,"body"):""].filter(Boolean))}case"documentHead":return Xb(Gb,[].concat(n.map(u,"children"),n.map(u,"endComments")));case"documentBody":{const t=Xb(Gb,n.map(u,"children")).parts,r=Xb(Gb,n.map(u,"endComments")).parts,a=0===t.length||0===r.length?"":(e=>Mb(e,["blockFolded","blockLiteral"])?"keep"===e.chomping?"":Wb([Gb,Gb]):Gb)(Sb(e));return Wb([].concat(t,a,r))}case"directive":return Wb(["%",Xb(" ",[e.name].concat(e.parameters))]);case"comment":return Wb(["#",e.value]);case"alias":return Wb(["*",e.value]);case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return Wb(["&",e.value]);case"plain":return dA(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":{const t="'",n='"',u=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&u.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(u)){const a="quoteDouble"===e.type?n:t;return Wb([a,dA(e.type,u,r),a])}if(u.includes(n))return Wb([t,dA(e.type,"quoteDouble"===e.type?u.replace(/\\"/g,n).replace(/'/g,t.repeat(2)):u,r),t]);if(u.includes(t))return Wb([n,dA(e.type,"quoteSingle"===e.type?u.replace(/''/g,t):u,r),n]);const a=r.singleQuote?t:n;return Wb([a,dA(e.type,u,r),a])}case"blockFolded":case"blockLiteral":{const t=Ab(n,e=>Mb(e,["sequence","mapping"])),a=Pb(n);return Wb(["blockFolded"===e.type?">":"|",null===e.indent?"":e.indent.toString(),"clip"===e.chomping?"":"keep"===e.chomping?"+":"-",Tb(e)?Wb([" ",n.call(u,"indicatorComment")]):"",(null===e.indent?Ub:zb)(uA(null===e.indent?r.tabWidth:e.indent-1+t,Wb(Fb(e,{parentIndent:t,isLastDescendant:a,options:r}).reduce((t,n,r,u)=>t.concat(0===r?Gb:"",$b(Xb(Yb,n).parts),r!==u.length-1?0===n.length?Gb:Zb(Qb):"keep"===e.chomping&&a?0===n.length?zb(Gb):zb(Qb):""),[]))))])}case"sequence":return Xb(Gb,n.map(u,"children"));case"sequenceItem":return Wb(["- ",uA(2,e.content?n.call(u,"content"):"")]);case"mappingKey":case"mappingValue":return e.content?n.call(u,"content"):"";case"mapping":return Xb(Gb,n.map(u,"children"));case"mappingItem":case"flowMappingItem":{const a=_b(e.key),o=_b(e.value);if(a&&o)return Wb([": "]);const i=n.call(u,"key"),l=n.call(u,"value");if(o)return"flowMappingItem"===e.type&&"flowMapping"===t.type?i:"mappingItem"!==e.type||!lA(e.key.content,r)||kb(e.key.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?Wb(["? ",uA(2,i)]):Wb([i,cA(e)?" ":"",":"]);if(a)return Wb([": ",uA(2,l)]);const c=Symbol("mappingKey");return wb(e.value)||!aA(e.key.content)?Wb(["? ",uA(2,i),Gb,Xb("",n.map(u,"value","leadingComments").map(e=>Wb([e,Gb]))),": ",uA(2,l)]):!function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(e.key.content)||wb(e.key.content)||Bb(e.key.content)||kb(e.key.content)||Nb(e.key)||wb(e.value.content)||Bb(e.value.content)||Nb(e.value)||!lA(e.value.content,r)?qb([Wb([Jb(Wb([Hb("? "),Jb(uA(2,i),{id:c})])),Hb(Wb([Gb,": ",uA(2,l)]),s(Wb([cA(e)?" ":"",":",wb(e.value.content)||Nb(e.value)&&e.value.content&&!Mb(e.value.content,["mapping","sequence"])||"mapping"===t.type&&kb(e.key.content)&&aA(e.value.content)||Mb(e.value.content,["mapping","sequence"])&&null===e.value.content.tag&&null===e.value.content.anchor?Gb:e.value.content?Yb:"",l])),{groupId:c})])]):Wb([i,cA(e)?" ":"",": ",l])}case"flowMapping":case"flowSequence":{const t="flowMapping"===e.type?"{":"[",o="flowMapping"===e.type?"}":"]",i="flowMapping"===e.type&&0!==e.children.length&&r.bracketSpacing?Yb:eA,l=0!==e.children.length&&"flowMappingItem"===(a=xb(e.children)).type&&_b(a.key)&&_b(a.value);return Wb([t,s(Wb([i,Wb(n.map((t,n)=>Wb([u(t),n===e.children.length-1?"":Wb([",",Yb,e.children[n].position.start.line!==e.children[n+1].position.start.line?pA(t,r.originalText):""])]),"children")),Hb(",","")])),l?"":i,o])}case"flowSequenceItem":return n.call(u,"content");default:throw new Error("Unexpected node type ".concat(e.type))}var a,o;function s(e){return Rb.align(" ".repeat(r.tabWidth),e)}}function uA(e,t){return"number"===typeof e&&e>0?Rb.align(" ".repeat(e),t):Rb.align(e,t)}function aA(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}function oA(e){return 0!==e.body.children.length||Nb(e.body)}function sA(e,t){return kb(e)||t&&(0!==t.head.children.length||Nb(t.head))}function iA(e,t,n,r){return n.children[0]===e&&/---(\s|$)/.test(r.originalText.slice(r.locStart(e),r.locStart(e)+4))||0!==e.head.children.length||Nb(e.head)||kb(e.head)?"head":!sA(e,t)&&!!t&&"root"}function lA(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}function cA(e){return e.key.content&&"alias"===e.key.content.type}function pA(e,t){const n=e.getValue(),r=e.stack[0];return r.isNextEmptyLinePrintedChecklist=r.isNextEmptyLinePrintedChecklist||[],!r.isNextEmptyLinePrintedChecklist[n.position.end.line]&&Ib(n,t)?(r.isNextEmptyLinePrintedChecklist[n.position.end.line]=!0,eA):""}function dA(e,t,n){const r=vb(e,t,n);return Xb(Gb,r.map(e=>$b(Xb(Yb,e).parts)))}var fA={preprocess:function(e){return Lb(e,nA)},print:function(e,t,n){const r=e.getValue(),u=e.getParentNode(),a=r.tag?e.call(n,"tag"):"",o=r.anchor?e.call(n,"anchor"):"",s=Mb(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Pb(e)?pA(e,t.originalText):"";return Wb(["mappingValue"!==r.type&&wb(r)?Wb([Xb(Gb,e.map(n,"leadingComments")),Gb]):"",a,a&&o?" ":"",o,a||o?Mb(r,["sequence","mapping"])&&!Bb(r)?Gb:" ":"",Bb(r)?Wb([1===r.middleComments.length?"":Gb,Xb(Gb,e.map(n,"middleComments")),Gb]):"",Ob(e)?Wb(tA(t.originalText.slice(r.position.start.offset,r.position.end.offset),Qb)):Jb(rA(r,u,e,t,n)),kb(r)&&!Mb(r,["document","documentHead"])?Kb(Wb(["mappingValue"!==r.type||r.content?" ":"","mappingKey"===u.type&&"mapping"===e.getParentNode(2).type&&aA(r)?"":Vb,e.call(n,"trailingComment")])):"",s,Nb(r)&&!Mb(r,["documentHead","documentBody"])?uA("sequenceItem"===r.type?2:0,Wb([Gb,Xb(Gb,e.map(n,"endComments"))])):""])},massageAstNode:function(e,t){if(Mb(t))switch(delete t.position,t.type){case"comment":if(bb(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:Cb},hA={bracketSpacing:Ll.bracketSpacing,singleQuote:Ll.singleQuote,proseWrap:Ll.proseWrap},mA=["yml"],DA=[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],gA=[".clang-format",".clang-tidy",".gemrc","glide.lock","yarn.lock"],yA={name:"YAML",type:"data",tmScope:"source.yaml",aliases:mA,extensions:DA,filenames:gA,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407},EA={languages:[ql(Ze(Object.freeze({__proto__:null,name:"YAML",type:"data",tmScope:"source.yaml",aliases:mA,extensions:DA,filenames:gA,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407,default:yA})),e=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml"],filenames:e.filenames.filter(e=>"yarn.lock"!==e)}))],printers:{yaml:fA},options:hA};const{version:CA}=rn,{getSupportInfo:bA}=sn,AA=[rc,vc,lp,Gh,UE,ib,EA];function FA(e,t=1){return(...n)=>{const r=n[t]||{},u=r.plugins||[];return n[t]=Object.assign({},r,{plugins:[...AA,...Array.isArray(u)?u:Object.values(u)]}),e(...n)}}const vA=FA(Js.formatWithCursor);return{formatWithCursor:vA,format:(e,t)=>vA(e,t).formatted,check(e,t){const{formatted:n}=vA(e,t);return n===e},doc:So,getSupportInfo:FA(bA,0),version:CA,util:Yo,__debug:{parse:FA(Js.parse),formatAST:FA(Js.formatAST),formatDoc:FA(Js.formatDoc),printToDoc:FA(Js.printToDoc),printDocToString:FA(Js.printDocToString)}}},e.exports=n()}).call(this,n("RLDh"))}}]);
|
|
3
|
+
//# sourceMappingURL=35.14d24902.chunk.js.map
|