static.vendor.altair.15-es2018.js Maven / Gradle / Ivy
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{MlsZ:function(e,t,n){var r;r=function(){"use strict";var e="Prettier is an opinionated code formatter",t={prettier:"./bin/prettier.js"},n={node:">=8"},r={"@angular/compiler":"8.2.13","@babel/code-frame":"7.5.5","@babel/parser":"7.7.3","@glimmer/syntax":"0.41.0","@iarna/toml":"2.2.3","@typescript-eslint/typescript-estree":"2.6.1","angular-estree-parser":"1.1.5","angular-html-parser":"1.3.0",camelcase:"5.3.1",chalk:"2.4.2","cjk-regex":"2.0.0",cosmiconfig:"5.2.1",dashify:"2.0.0",dedent:"0.7.0",diff:"4.0.1",editorconfig:"0.15.3","editorconfig-to-prettier":"0.1.1","escape-string-regexp":"1.0.5",esutils:"2.0.3","find-parent-dir":"0.3.0","find-project-root":"1.1.1","flow-parser":"0.111.3","get-stream":"4.1.0",globby:"6.1.0",graphql:"14.5.8","html-element-attributes":"2.2.0","html-styles":"1.0.0","html-tag-names":"1.1.4",ignore:"4.0.6","is-ci":"2.0.0","jest-docblock":"24.9.0","json-stable-stringify":"1.0.1",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.6.0","lodash.uniqby":"4.7.0",mem:"5.1.1",minimatch:"3.0.4",minimist:"1.2.0","n-readlines":"1.0.0","normalize-path":"3.0.0","parse-srcset":"ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee","postcss-less":"2.0.0","postcss-media-query-parser":"0.2.3","postcss-scss":"2.0.0","postcss-selector-parser":"2.2.3","postcss-values-parser":"1.5.0","regexp-util":"1.2.2","remark-math":"1.0.6","remark-parse":"5.0.0",resolve:"1.12.0",semver:"6.3.0","string-width":"4.1.0",typescript:"3.7.2","unicode-regex":"3.0.0",unified:"8.4.1",vnopts:"1.0.2","yaml-unist-parser":"1.1.1"},u={"@babel/core":"7.7.2","@babel/preset-env":"7.7.1","@rollup/plugin-alias":"2.2.0","@rollup/plugin-replace":"2.2.1","babel-loader":"8.0.6",benchmark:"2.1.4","builtin-modules":"3.1.0",codecov:"3.6.1","cross-env":"6.0.3",eslint:"6.6.0","eslint-config-prettier":"6.5.0","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-react":"7.16.0",execa:"3.2.0",jest:"23.3.0","jest-junit":"9.0.0","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.1.0","jest-watch-typeahead":"0.4.0",mkdirp:"0.5.1",prettier:"1.19.0",prettylint:"1.0.0",rimraf:"3.0.0",rollup:"1.26.3","rollup-plugin-babel":"4.3.3","rollup-plugin-commonjs":"10.1.0","rollup-plugin-json":"4.0.0","rollup-plugin-node-globals":"1.4.0","rollup-plugin-node-resolve":"5.2.0","rollup-plugin-terser":"5.1.2",shelljs:"0.8.3","snapshot-diff":"0.4.0","strip-ansi":"5.2.0","synchronous-promise":"2.0.10",tempy:"0.2.1","terser-webpack-plugin":"2.2.1",webpack:"4.41.2"},a={prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dist":"node ./scripts/test-dist.js","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","check-types":"tsc",lint:"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint-docs":"prettylint {.,docs,website,website/blog}/*.md","lint-dist":'eslint --no-eslintrc --no-ignore --env=browser "dist/!(bin-prettier|index|third-party).js"',build:"node --max-old-space-size=3072 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js","check-deps":"node ./scripts/check-deps.js",spellcheck:"npx -p [email protected] cspell {bin,scripts,src}/**/*.js {docs,website/blog,changelog_unreleased}/**/*.md"},i=Object.freeze({__proto__:null,name:"prettier",version:"1.19.1",description:e,bin:t,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",engines:n,dependencies:r,devDependencies:u,scripts:a,default:{name:"prettier",version:"1.19.1",description:e,bin:t,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",engines:n,dependencies:r,devDependencies:u,scripts:a}});function o(e){return(o="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 s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;ne.length?n:e}),l.value=e.join(p)}else l.value=e.join(n.slice(o,o+l.count));o+=l.count,l.added||(s+=l.count)}}var f=t[i-1];return i>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[i-2].value+=f.value,t.pop()),t}function x(e){return{newPos:e.newPos,components:e.components.slice(0)}}F.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 i=(t=this.removeEmpty(this.tokenize(t))).length,o=e.length,s=1,l=i+o,c=[{newPos:-1,components:[]}],p=this.extractCommon(c[0],t,e,0);if(c[0].newPos+1>=i&&p+1>=o)return a([{value:this.join(t),count:t.length}]);function f(){for(var n=-1*s;n<=s;n+=2){var r=void 0,l=c[n-1],p=c[n+1],f=(p?p.newPos:0)-n;l&&(c[n-1]=void 0);var d=l&&l.newPos+1=i&&f+1>=o)return a(b(u,r.components,t,e,u.useLongestToken));c[n]=r}else c[n]=void 0}s++}if(r)!function e(){setTimeout(function(){if(s>l)return r();f()||e()},0)}();else for(;s<=l;){var d=f();if(d)return d}},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,i=e.newPos,o=i-r,s=0;i+11&&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 i(){var e={};for(u.push(e);a2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=V(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]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=t.hunks,s=n.compareLine||function(e,t,n,r){return t===r},l=0,c=n.fuzzFactor||0,p=0,f=0;function d(e,t){for(var n=0;n0?r[0]:" ",i=r.length>0?r.substr(1):r;if(" "===u||"-"===u){if(!s(t+1,a[t],u,i)&&++l>c)return!1;t++}}return!0}for(var D=0;D0?x[0]:" ",w=x.length>0?x.substr(1):x,B=A.linedelimiters[b];if(" "===S)F++;else if("-"===S)a.splice(F,1),i.splice(F,1);else if("+"===S)a.splice(F,0,w),i.splice(F,0,B),F++;else if("\\"===S){var T=A.lines[b-1]?A.lines[b-1][0]:null;"+"===T?r=!0:"-"===T&&(u=!0)}}}if(r)for(;!a[a.length-1];)a.pop(),i.pop();else u&&(a.push(""),i.push("\n"));for(var k=0;k0?s(h.lines.slice(-i.context)):[],c-=f.length,p-=f.length)}(a=f).push.apply(a,L(u.map(function(e){return(t.added?"+":"-")+e}))),t.added?D+=u.length:d+=u.length}else{if(c)if(u.length<=2*i.context&&e=o.length-2&&u.length<=i.context){var E=/\n$/.test(n),C=/\n$/.test(r),A=0==u.length&&f.length>v.oldLines;!E&&A&&f.splice(v.oldLines,0,"\\ No newline at end of file"),(E||A)&&C||f.push("\\ No newline at end of file")}l.push(v),c=0,p=0,f=[]}d+=u.length,D+=u.length}},m=0;me.length)return!1;for(var n=0;n"):r.removed&&t.push(""),t.push(r.value.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")),r.added?t.push(""):r.removed&&t.push("")}return t.join("")},canonicalize:R}),ce=Object.freeze({__proto__:null,default:{}}),pe="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},fe=[],de=[],De="undefined"!=typeof Uint8Array?Uint8Array:Array,he=!1;function me(){he=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+fe[r>>12&63]+fe[r>>6&63]+fe[63&r]);return u.join("")}function ye(e,t,n,r,u){var a,i,o=8*u-r-1,s=(1<>1,c=-7,p=n?u-1:0,f=n?-1:1,d=e[t+p];for(p+=f,a=d&(1<<-c)-1,d>>=-c,c+=o;c>0;a=256*a+e[t+p],p+=f,c-=8);for(i=a&(1<<-c)-1,a>>=-c,c+=r;c>0;i=256*i+e[t+p],p+=f,c-=8);if(0===a)a=1-l;else{if(a===s)return i?NaN:1/0*(d?-1:1);i+=Math.pow(2,r),a-=l}return(d?-1:1)*i*Math.pow(2,a-r)}function ve(e,t,n,r,u,a){var i,o,s,l=8*a-u-1,c=(1<>1,f=23===u?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:a-1,D=r?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-i))<1&&(i--,s*=2),(t+=i+p>=1?f/s:f*Math.pow(2,1-p))*s>=2&&(i++,s/=2),i+p>=c?(o=0,i=c):i+p>=1?(o=(t*s-1)*Math.pow(2,u),i+=p):(o=t*Math.pow(2,p-1)*Math.pow(2,u),i=0));u>=8;e[n+d]=255&o,d+=D,o/=256,u-=8);for(i=i<0;e[n+d]=255&i,d+=D,i/=256,l-=8);e[n+d-D]|=128*h}var Ee={}.toString,Ce=Array.isArray||function(e){return"[object Array]"==Ee.call(e)};function Ae(){return be.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Fe(e,t){if(Ae()=Ae())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ae().toString(16)+" bytes");return 0|e}function ke(e){return!(null==e||!e._isBuffer)}function Oe(e,t){if(ke(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 nt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return rt(e).length;default:if(r)return nt(e).length;t=(""+t).toLowerCase(),r=!0}}function Ne(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 ze(this,t,n);case"utf8":case"utf-8":return We(this,t,n);case"ascii":return $e(this,t,n);case"latin1":case"binary":return Je(this,t,n);case"base64":return Ue(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ge(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Pe(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Ie(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=be.from(t,r)),ke(t))return 0===t.length?-1:je(e,t,n,r,u);if("number"==typeof t)return t&=255,be.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?u?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):je(e,[t],n,r,u);throw new TypeError("val must be string, number or Buffer")}function je(e,t,n,r,u){var a,i=1,o=e.length,s=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;i=2,o/=2,s/=2,n/=2}function l(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(u){var c=-1;for(a=n;ao&&(n=o-s),a=n;a>=0;a--){for(var p=!0,f=0;fu&&(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 i=0;i>8,u.push(n%256),u.push(r);return u}(t,e.length-n),e,n,r)}function Ue(e,t,n){return function(e){var t;he||me();for(var n=e.length,r=n%3,u="",a=[],i=0,o=n-r;io?o:i+16383));return 1===r?(u+=fe[(t=e[n-1])>>2],u+=fe[t<<4&63],u+="=="):2===r&&(u+=fe[(t=(e[n-2]<<8)+e[n-1])>>10],u+=fe[t>>4&63],u+=fe[t<<2&63],u+="="),a.push(u),a.join("")}(0===t&&n===e.length?e:e.slice(t,n))}function We(e,t,n){n=Math.min(e.length,n);for(var r=[],u=t;u239?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]))&&(s=(31&l)<<6|63&a)>127&&(c=s);break;case 3:i=e[u+2],128==(192&(a=e[u+1]))&&128==(192&i)&&(s=(15&l)<<12|(63&a)<<6|63&i)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:i=e[u+2],o=e[u+3],128==(192&(a=e[u+1]))&&128==(192&i)&&128==(192&o)&&(s=(15&l)<<18|(63&a)<<12|(63&i)<<6|63&o)>65535&&s<1114112&&(c=s)}null===c?(c=65533,p=1):c>65535&&(r.push((c-=65536)>>>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;ru)&&(n=u);for(var a="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function He(e,t,n,r,u,a){if(!ke(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>u||te.length)throw new RangeError("Index out of range")}function Ye(e,t,n,r){t<0&&(t=65535+t+1);for(var u=0,a=Math.min(e.length-n,2);u>>8*(r?u:1-u)}function Ke(e,t,n,r){t<0&&(t=4294967295+t+1);for(var u=0,a=Math.min(e.length-n,4);u>>8*(r?u:3-u)&255}function Qe(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 Ze(e,t,n,r,u){return u||Qe(e,0,n,4),ve(e,t,n,r,23,4),n+4}function et(e,t,n,r,u){return u||Qe(e,0,n,8),ve(e,t,n,r,52,8),n+8}be.TYPED_ARRAY_SUPPORT=void 0===pe.TYPED_ARRAY_SUPPORT||pe.TYPED_ARRAY_SUPPORT,be.poolSize=8192,be._augment=function(e){return e.__proto__=be.prototype,e},be.from=function(e,t,n){return xe(null,e,t,n)},be.TYPED_ARRAY_SUPPORT&&(be.prototype.__proto__=Uint8Array.prototype,be.__proto__=Uint8Array),be.alloc=function(e,t,n){return function(e,t,n,r){return Se(t),t<=0?Fe(null,t):void 0!==n?"string"==typeof r?Fe(null,t).fill(n,r):Fe(null,t).fill(n):Fe(null,t)}(0,e,t,n)},be.allocUnsafe=function(e){return we(null,e)},be.allocUnsafeSlow=function(e){return we(null,e)},be.isBuffer=function(e){return null!=e&&(!!e._isBuffer||at(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&at(e.slice(0,0))}(e))},be.compare=function(e,t){if(!ke(e)||!ke(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);u0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},be.prototype.compare=function(e,t,n,r,u){if(!ke(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),i=(n>>>=0)-(t>>>=0),o=Math.min(a,i),s=this.slice(r,u),l=e.slice(t,n),c=0;cu)&&(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 Le(this,e,t,n);case"utf8":case"utf-8":return _e(this,e,t,n);case"ascii":return Me(this,e,t,n);case"latin1":case"binary":return Re(this,e,t,n);case"base64":return qe(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ve(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},be.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},be.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),t0&&(u*=256);)r+=this[e+--t]*u;return r},be.prototype.readUInt8=function(e,t){return t||Xe(e,1,this.length),this[e]},be.prototype.readUInt16LE=function(e,t){return t||Xe(e,2,this.length),this[e]|this[e+1]<<8},be.prototype.readUInt16BE=function(e,t){return t||Xe(e,2,this.length),this[e]<<8|this[e+1]},be.prototype.readUInt32LE=function(e,t){return t||Xe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},be.prototype.readUInt32BE=function(e,t){return t||Xe(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},be.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Xe(e,t,this.length);for(var r=this[e],u=1,a=0;++a=(u*=128)&&(r-=Math.pow(2,8*t)),r},be.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Xe(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},be.prototype.readInt8=function(e,t){return t||Xe(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},be.prototype.readInt16LE=function(e,t){t||Xe(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},be.prototype.readInt16BE=function(e,t){t||Xe(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},be.prototype.readInt32LE=function(e,t){return t||Xe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},be.prototype.readInt32BE=function(e,t){return t||Xe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},be.prototype.readFloatLE=function(e,t){return t||Xe(e,4,this.length),ye(this,e,!0,23,4)},be.prototype.readFloatBE=function(e,t){return t||Xe(e,4,this.length),ye(this,e,!1,23,4)},be.prototype.readDoubleLE=function(e,t){return t||Xe(e,8,this.length),ye(this,e,!0,52,8)},be.prototype.readDoubleBE=function(e,t){return t||Xe(e,8,this.length),ye(this,e,!1,52,8)},be.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||He(this,e,t,n,Math.pow(2,8*n)-1,0);var u=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+u]=e/a&255;return t+n},be.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,1,255,0),be.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},be.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,2,65535,0),be.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ye(this,e,t,!0),t+2},be.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,2,65535,0),be.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ye(this,e,t,!1),t+2},be.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,4,4294967295,0),be.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ke(this,e,t,!0),t+4},be.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,4,4294967295,0),be.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ke(this,e,t,!1),t+4},be.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var u=Math.pow(2,8*n-1);He(this,e,t,n,u-1,-u)}var a=0,i=1,o=0;for(this[t]=255&e;++a>0)-o&255;return t+n},be.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var u=Math.pow(2,8*n-1);He(this,e,t,n,u-1,-u)}var a=n-1,i=1,o=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/i>>0)-o&255;return t+n},be.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,1,127,-128),be.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},be.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,2,32767,-32768),be.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ye(this,e,t,!0),t+2},be.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,2,32767,-32768),be.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ye(this,e,t,!1),t+2},be.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,4,2147483647,-2147483648),be.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ke(this,e,t,!0),t+4},be.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),be.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ke(this,e,t,!1),t+4},be.prototype.writeFloatLE=function(e,t,n){return Ze(this,e,t,!0,n)},be.prototype.writeFloatBE=function(e,t,n){return Ze(this,e,t,!1,n)},be.prototype.writeDoubleLE=function(e,t,n){return et(this,e,t,!0,n)},be.prototype.writeDoubleBE=function(e,t,n){return et(this,e,t,!1,n)},be.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=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=0;--u)e[u+t]=this[u+n];else if(a<1e3||!be.TYPED_ARRAY_SUPPORT)for(u=0;u>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&n<57344){if(!u){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+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 rt(e){return function(e){var t,n,r,u,a,i;he||me();var o=e.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i=new De(3*o/4-(a="="===e[o-2]?2:"="===e[o-1]?1:0)),r=a>0?o-4:o;var s=0;for(t=0,n=0;t>16&255,i[s++]=u>>8&255,i[s++]=255&u;return 2===a?(u=de[e.charCodeAt(t)]<<2|de[e.charCodeAt(t+1)]>>4,i[s++]=255&u):1===a&&(u=de[e.charCodeAt(t)]<<10|de[e.charCodeAt(t+1)]<<4|de[e.charCodeAt(t+2)]>>2,i[s++]=u>>8&255,i[s++]=255&u),i}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(tt,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function ut(e,t,n,r){for(var u=0;u=t.length||u>=e.length);++u)t[u+n]=e[u];return u}function at(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var it="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ot(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function st(e,t){return e(t={exports:{}},t.exports),t.exports}function lt(e){return e&&e.default||e}var ct=lt(ce),pt=function(){function e(t,n){s(this,e),(n=n||{}).readChunk||(n.readChunk=1024),n.newLineCharacter=n.newLineCharacter?n.newLineCharacter.charCodeAt(0):10,this.fd="number"==typeof t?t:ct.openSync(t,"r"),this.options=n,this.newLineCharacter=n.newLineCharacter,this.reset()}return c(e,[{key:"_searchInBuffer",value:function(e,t){for(var n=-1,r=0;r<=e.length;r++)if(e[r]===t){n=r;break}return n}},{key:"reset",value:function(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}},{key:"close",value:function(){ct.closeSync(this.fd),this.fd=null}},{key:"_extractLines",value:function(e){for(var t,n=[],r=0,u=0;;){var a=e[r++];if(a===this.newLineCharacter)t=e.slice(u,r),n.push(t),u=r;else if(!a)break}var i=e.slice(u,r);return i.length&&n.push(i),n}},{key:"_readChunk",value:function(e){var t,n=0,r=[];do{var u=new be(this.options.readChunk);n+=t=ct.readSync(this.fd,u,0,this.options.readChunk,this.fdPosition),this.fdPosition=this.fdPosition+t,r.push(u)}while(t&&-1===this._searchInBuffer(r[r.length-1],this.options.newLineCharacter));var a=be.concat(r);return t1)for(var n=1;n)?=?)",l("XRANGEIDENTIFIERLOOSE"),a[i.XRANGEIDENTIFIERLOOSE]=a[i.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",l("XRANGEIDENTIFIER"),a[i.XRANGEIDENTIFIER]=a[i.NUMERICIDENTIFIER]+"|x|X|\\*",l("XRANGEPLAIN"),a[i.XRANGEPLAIN]="[v=\\s]*("+a[i.XRANGEIDENTIFIER]+")(?:\\.("+a[i.XRANGEIDENTIFIER]+")(?:\\.("+a[i.XRANGEIDENTIFIER]+")(?:"+a[i.PRERELEASE]+")?"+a[i.BUILD]+"?)?)?",l("XRANGEPLAINLOOSE"),a[i.XRANGEPLAINLOOSE]="[v=\\s]*("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:"+a[i.PRERELEASELOOSE]+")?"+a[i.BUILD]+"?)?)?",l("XRANGE"),a[i.XRANGE]="^"+a[i.GTLT]+"\\s*"+a[i.XRANGEPLAIN]+"$",l("XRANGELOOSE"),a[i.XRANGELOOSE]="^"+a[i.GTLT]+"\\s*"+a[i.XRANGEPLAINLOOSE]+"$",l("COERCE"),a[i.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",l("COERCERTL"),u[i.COERCERTL]=new RegExp(a[i.COERCE],"g"),l("LONETILDE"),a[i.LONETILDE]="(?:~>?)",l("TILDETRIM"),a[i.TILDETRIM]="(\\s*)"+a[i.LONETILDE]+"\\s+",u[i.TILDETRIM]=new RegExp(a[i.TILDETRIM],"g"),l("TILDE"),a[i.TILDE]="^"+a[i.LONETILDE]+a[i.XRANGEPLAIN]+"$",l("TILDELOOSE"),a[i.TILDELOOSE]="^"+a[i.LONETILDE]+a[i.XRANGEPLAINLOOSE]+"$",l("LONECARET"),a[i.LONECARET]="(?:\\^)",l("CARETTRIM"),a[i.CARETTRIM]="(\\s*)"+a[i.LONECARET]+"\\s+",u[i.CARETTRIM]=new RegExp(a[i.CARETTRIM],"g"),l("CARET"),a[i.CARET]="^"+a[i.LONECARET]+a[i.XRANGEPLAIN]+"$",l("CARETLOOSE"),a[i.CARETLOOSE]="^"+a[i.LONECARET]+a[i.XRANGEPLAINLOOSE]+"$",l("COMPARATORLOOSE"),a[i.COMPARATORLOOSE]="^"+a[i.GTLT]+"\\s*("+a[i.LOOSEPLAIN]+")$|^$",l("COMPARATOR"),a[i.COMPARATOR]="^"+a[i.GTLT]+"\\s*("+a[i.FULLPLAIN]+")$|^$",l("COMPARATORTRIM"),a[i.COMPARATORTRIM]="(\\s*)"+a[i.GTLT]+"\\s*("+a[i.LOOSEPLAIN]+"|"+a[i.XRANGEPLAIN]+")",u[i.COMPARATORTRIM]=new RegExp(a[i.COMPARATORTRIM],"g"),l("HYPHENRANGE"),a[i.HYPHENRANGE]="^\\s*("+a[i.XRANGEPLAIN]+")\\s+-\\s+("+a[i.XRANGEPLAIN]+")\\s*$",l("HYPHENRANGELOOSE"),a[i.HYPHENRANGELOOSE]="^\\s*("+a[i.XRANGEPLAINLOOSE]+")\\s+-\\s+("+a[i.XRANGEPLAINLOOSE]+")\\s*$",l("STAR"),a[i.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256)return null;if(!(t.loose?u[i.LOOSE]:u[i.FULL]).test(e))return null;try{return new f(e,t)}catch(n){return null}}function f(e,t){if(t&&"object"===o(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof f){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof f))return new f(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?u[i.LOOSE]:u[i.FULL]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=a[4]?a[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new f(e,n).inc(t,r).version}catch(u){return null}},t.diff=function(e,t){if(y(e,t))return null;var n=p(e),r=p(t),u="";if(n.prerelease.length||r.prerelease.length){u="pre";var a="prerelease"}for(var i in n)if(("major"===i||"minor"===i||"patch"===i)&&n[i]!==r[i])return u+i;return a},t.compareIdentifiers=D;var d=/^[0-9]+$/;function D(e,t){var n=d.test(e),r=d.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function g(e,t,n){return h(e,t,n)<0}function y(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function E(e,t,n){return h(e,t,n)>=0}function C(e,t,n){return h(e,t,n)<=0}function A(e,t,n,r){switch(t){case"===":return"object"===o(e)&&(e=e.version),"object"===o(n)&&(n=n.version),e===n;case"!==":return"object"===o(e)&&(e=e.version),"object"===o(n)&&(n=n.version),e!==n;case"":case"=":case"==":return y(e,n,r);case"!=":return v(e,n,r);case">":return m(e,n,r);case">=":return E(e,n,r);case"<":return g(e,n,r);case"<=":return C(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function F(e,t){if(t&&"object"===o(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof F){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof F))return new F(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===b?"":this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return D(t,e)},t.major=function(e,t){return new f(e,t).major},t.minor=function(e,t){return new f(e,t).minor},t.patch=function(e,t){return new f(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new f(e,n),u=new f(t,n);return r.compare(u)||r.compareBuild(u)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort(function(e,r){return t.compareBuild(e,r,n)})},t.rsort=function(e,n){return e.sort(function(e,r){return t.compareBuild(r,e,n)})},t.gt=m,t.lt=g,t.eq=y,t.neq=v,t.gte=E,t.lte=C,t.cmp=A,t.Comparator=F;var b={};function x(e,t){if(t&&"object"===o(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof x)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new x(e.raw,t);if(e instanceof F)return new x(e.value,t);if(!(this instanceof x))return new x(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function S(e,t){for(var n=!0,r=e.slice(),u=r.pop();n&&r.length;)n=r.every(function(e){return u.intersects(e,t)}),u=r.pop();return n}function w(e){return!e||"x"===e.toLowerCase()||"*"===e}function B(e,t,n,r,u,a,i,o,s,l,c,p,f){return((t=w(n)?"":w(r)?">="+n+".0.0":w(u)?">="+n+"."+r+".0":">="+t)+" "+(o=w(s)?"":w(l)?"<"+(+s+1)+".0.0":w(c)?"<"+s+"."+(+l+1)+".0":p?"<="+s+"."+l+"."+c+"-"+p:"<="+o)).trim()}function T(e,t,r){for(var u=0;u0){var a=e[u].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}function k(e,t,n){try{t=new x(t,n)}catch(r){return!1}return t.test(e)}function O(e,t,n,r){var u,a,i,o,s;switch(e=new f(e,r),t=new x(t,r),n){case">":u=m,a=C,i=g,o=">",s=">=";break;case"<":u=g,a=E,i=m,o="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(k(e,t,r))return!1;for(var l=0;l=0.0.0")),p=p||e,u(e.semver,(c=c||e).semver,r)?c=e:i(e.semver,p.semver,r)&&(p=e)}),c.operator===o||c.operator===s)return!1;if((!p.operator||p.operator===o)&&a(e,p.semver))return!1;if(p.operator===s&&i(e,p.semver))return!1}return!0}F.prototype.parse=function(e){var t=e.match(this.options.loose?u[i.COMPARATORLOOSE]:u[i.COMPARATOR]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),this.semver=t[2]?new f(t[2],this.options.loose):b},F.prototype.toString=function(){return this.value},F.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===b||e===b)return!0;if("string"==typeof e)try{e=new f(e,this.options)}catch(t){return!1}return A(e,this.operator,this.semver,this.options)},F.prototype.intersects=function(e,t){if(!(e instanceof F))throw new TypeError("a Comparator is required");var n;if(t&&"object"===o(t)||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new x(e.value,t),k(this.value,n,t));if(""===e.operator)return""===e.value||(n=new x(this.value,t),k(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),u=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=A(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=A(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||u||a&&i||s||l},t.Range=x,x.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},x.prototype.toString=function(){return this.range},x.prototype.parseRange=function(e){var t=this.options.loose;e=(e=e.trim()).replace(t?u[i.HYPHENRANGELOOSE]:u[i.HYPHENRANGE],B),n("hyphen replace",e),e=e.replace(u[i.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,u[i.COMPARATORTRIM]),e=(e=(e=e.replace(u[i.TILDETRIM],"$1~")).replace(u[i.CARETTRIM],"$1^")).split(/\s+/).join(" ");var r=t?u[i.COMPARATORLOOSE]:u[i.COMPARATOR],a=e.split(" ").map(function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){return n("caret",e,t),e.replace(t.loose?u[i.CARETLOOSE]:u[i.CARET],function(t,r,u,a,i){var o;return n("caret",e,t,r,u,a,i),w(r)?o="":w(u)?o=">="+r+".0.0 <"+(+r+1)+".0.0":w(a)?o="0"===r?">="+r+"."+u+".0 <"+r+"."+(+u+1)+".0":">="+r+"."+u+".0 <"+(+r+1)+".0.0":i?(n("replaceCaret pr",i),o="0"===r?"0"===u?">="+r+"."+u+"."+a+"-"+i+" <"+r+"."+u+"."+(+a+1):">="+r+"."+u+"."+a+"-"+i+" <"+r+"."+(+u+1)+".0":">="+r+"."+u+"."+a+"-"+i+" <"+(+r+1)+".0.0"):(n("no pr"),o="0"===r?"0"===u?">="+r+"."+u+"."+a+" <"+r+"."+u+"."+(+a+1):">="+r+"."+u+"."+a+" <"+r+"."+(+u+1)+".0":">="+r+"."+u+"."+a+" <"+(+r+1)+".0.0"),n("caret return",o),o})}(e,t)}).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){return e.replace(t.loose?u[i.TILDELOOSE]:u[i.TILDE],function(t,r,u,a,i){var o;return n("tilde",e,t,r,u,a,i),w(r)?o="":w(u)?o=">="+r+".0.0 <"+(+r+1)+".0.0":w(a)?o=">="+r+"."+u+".0 <"+r+"."+(+u+1)+".0":i?(n("replaceTilde pr",i),o=">="+r+"."+u+"."+a+"-"+i+" <"+r+"."+(+u+1)+".0"):o=">="+r+"."+u+"."+a+" <"+r+"."+(+u+1)+".0",n("tilde return",o),o})}(e,t)}).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return function(e,t){return(e=e.trim()).replace(t.loose?u[i.XRANGELOOSE]:u[i.XRANGE],function(r,u,a,i,o,s){n("xRange",e,r,u,a,i,o,s);var l=w(a),c=l||w(i),p=c||w(o);return"="===u&&p&&(u=""),s=t.includePrerelease?"-0":"",l?r=">"===u||"<"===u?"<0.0.0-0":"*":u&&p?(c&&(i=0),o=0,">"===u?(u=">=",c?(a=+a+1,i=0,o=0):(i=+i+1,o=0)):"<="===u&&(u="<",c?a=+a+1:i=+i+1),r=u+a+"."+i+"."+o+s):c?r=">="+a+".0.0"+s+" <"+(+a+1)+".0.0"+s:p&&(r=">="+a+"."+i+".0"+s+" <"+a+"."+(+i+1)+".0"+s),n("xRange return",r),r})}(e,t)}).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(u[i.STAR],"")}(e,t),n("stars",e),e}(e,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter(function(e){return!!e.match(r)})),a.map(function(e){return new F(e,this.options)},this)},x.prototype.intersects=function(e,t){if(!(e instanceof x))throw new TypeError("a Range is required");return this.set.some(function(n){return S(n,t)&&e.set.some(function(e){return S(e,t)&&n.every(function(n){return e.every(function(e){return n.intersects(e,t)})})})})},t.toComparators=function(e,t){return new x(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},x.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new f(e,this.options)}catch(n){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!m(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}});return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new x(e,t).range||"*"}catch(n){return null}},t.ltr=function(e,t,n){return O(e,t,"<",n)},t.gtr=function(e,t,n){return O(e,t,">",n)},t.outside=O,t.prerelease=function(e,t){var n=p(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new x(e,n),t=new x(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof f)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=u[i.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),u[i.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;u[i.COERCERTL].lastIndex=-1}else n=e.match(u[i.COERCE]);return null===n?null:p(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}),Mt=st(function(e){e.exports=function(e){var t=void 0;t="string"==typeof e?[e]:e.raw;for(var n="",r=0;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function Zt(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,u,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(o){u={error:o}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(u)throw u.error}}return i}function en(e){return this instanceof en?(this.v=e,this):new en(e)}var tn=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}Yt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return Kt},__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=0;s--)(u=e[s])&&(i=(a<3?u(i):a>3?u(t,n,i):u(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":o(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 i(e){try{s(r.next(e))}catch(t){a(t)}}function o(e){try{s(r.throw(e))}catch(t){a(t)}}function s(e){e.done?u(e.value):new n(function(t){t(e.value)}).then(i,o)}s((r=r.apply(e,t||[])).next())})},__generator:function(e,t){var n,r,u,a,i={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)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 i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((u=(u=i.trys).length>0&&u[u.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!u||a[1]>u[0]&&a[1]1||o(e,t)})})}function o(e,t){try{(n=u[e](t)).value instanceof en?Promise.resolve(n.value.v).then(s,l):c(a[0][2],n)}catch(r){c(a[0][3],r)}var n}function s(e){o("next",e)}function l(e){o("throw",e)}function c(e,t){e(t),a.shift(),a.length&&o(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:en(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=Qt(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}}}),nn=st(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:function(e){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e)},value:function(e){if(null===e||"object"!==o(e))return JSON.stringify(e);if(Array.isArray(e))return"[".concat(e.map(function(e){return t.apiDescriptor.value(e)}).join(", "),"]");var n=Object.keys(e);return 0===n.length?"{}":"{ ".concat(n.map(function(n){return"".concat(t.apiDescriptor.key(n),": ").concat(t.apiDescriptor.value(e[n]))}).join(", ")," }")},pair:function(e){return t.apiDescriptor.value(p({},e.key,e.value))}}});ot(nn);var rn=lt(tn),un=st(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),rn.__exportStar(nn,t)});ot(un);var an=/[|\\{}()[\]^$+*?.]/g,on=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(an,"\\$&")},sn={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]},ln=st(function(e){var t={};for(var n in sn)sn.hasOwnProperty(n)&&(t[sn[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,i=r[u].labels;delete r[u].channels,delete r[u].labels,Object.defineProperty(r[u],"channels",{value:a}),Object.defineProperty(r[u],"labels",{value:i})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,u=e[1]/255,a=e[2]/255,i=Math.min(r,u,a),o=Math.max(r,u,a),s=o-i;return o===i?t=0:r===o?t=(u-a)/s:u===o?t=2+(a-r)/s:a===o&&(t=4+(r-u)/s),(t=Math.min(60*t,360))<0&&(t+=360),n=(i+o)/2,[t,100*(o===i?0:n<=.5?s/(o+i):s/(2-o-i)),100*n]},r.rgb.hsv=function(e){var t,n,r=e[0],u=e[1],a=e[2],i=Math.min(r,u,a),o=Math.max(r,u,a),s=o-i;return n=0===o?0:s/o*1e3/10,o===i?t=0:r===o?t=(u-a)/s:u===o?t=2+(a-r)/s:a===o&&(t=4+(r-u)/s),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,o/255*1e3/10]},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,i=1/0;for(var o in sn)if(sn.hasOwnProperty(o)){var s=(u=e,a=sn[o],Math.pow(u[0]-a[0],2)+Math.pow(u[1]-a[1],2)+Math.pow(u[2]-a[2],2));s.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,i=e[0]/360,o=e[1]/100,s=e[2]/100;if(0===o)return[a=255*s,a,a];t=2*s-(n=s<.5?s*(1+o):s+o-s*o),u=[0,0,0];for(var l=0;l<3;l++)(r=i+1/3*-(l-1))<0&&r++,r>1&&r--,u[l]=255*(a=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t);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),i=255*r*(1-n),o=255*r*(1-n*a),s=255*r*(1-n*(1-a));switch(r*=255,u){case 0:return[r,s,i];case 1:return[o,r,i];case 2:return[i,r,s];case 3:return[i,o,r];case 4:return[s,i,r];case 5:return[r,i,o]}},r.hsv.hsl=function(e){var t,n,r,u=e[0],a=e[1]/100,i=e[2]/100,o=Math.max(i,.01);return r=(2-a)*i,n=a*o,[u,100*(n=(n/=(t=(2-a)*o)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,u,a,i,o,s=e[0]/360,l=e[1]/100,c=e[2]/100,p=l+c;switch(p>1&&(l/=p,c/=p),r=6*s-(t=Math.floor(6*s)),0!=(1&t)&&(r=1-r),u=l+r*((n=1-c)-l),t){default:case 6:case 0:a=n,i=u,o=l;break;case 1:a=u,i=n,o=l;break;case 2:a=l,i=n,o=u;break;case 3:a=l,i=u,o=n;break;case 4:a=u,i=l,o=n;break;case 5:a=n,i=l,o=u}return[255*a,255*i,255*o]},r.cmyk.rgb=function(e){var t=e[1]/100,n=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-r)+r)),255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r))]},r.xyz.rgb=function(e){var t,n,r,u=e[0]/100,a=e[1]/100,i=e[2]/100;return n=-.9689*u+1.8758*a+.0415*i,r=.0557*u+-.204*a+1.057*i,t=(t=3.2406*u+-1.5372*a+-.4986*i)>.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;t=e[1]/500+(n=(e[0]+16)/116),r=n-e[2]/200;var u=Math.pow(n,3),a=Math.pow(t,3),i=Math.pow(r,3);return n=u>.008856?u:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=i>.008856?i:(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[1];return t=e[2]/360*2*Math.PI,[e[0],n*Math.cos(t),n*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 i=30+(Math.round(u/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===a&&(i+=60),i},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),i=Math.min(Math.min(n,r),u),o=a-i;return t=o<=0?0:a===n?(r-u)/o%6:a===r?2+(u-n)/o:4+(n-r)/o+4,t/=6,[360*(t%=1),100*o,100*(o<1?i/(1-o):0)]},r.hsl.hcg=function(e){var t,n=e[1]/100,r=e[2]/100,u=0;return(t=r<.5?2*n*r:2*n*(1-r))<1&&(u=(r-.5*t)/(1-t)),[e[0],100*t,100*u]},r.hsv.hcg=function(e){var t=e[2]/100,n=e[1]/100*t,r=0;return n<1&&(r=(t-n)/(1-n)),[e[0],100*n,100*r]},r.hcg.rgb=function(e){var t=e[1]/100,n=e[2]/100;if(0===t)return[255*n,255*n,255*n];var r,u=[0,0,0],a=e[0]/360%1*6,i=a%1,o=1-i;switch(Math.floor(a)){case 0:u[0]=1,u[1]=i,u[2]=0;break;case 1:u[0]=o,u[1]=1,u[2]=0;break;case 2:u[0]=0,u[1]=1,u[2]=i;break;case 3:u[0]=0,u[1]=o,u[2]=1;break;case 4:u[0]=i,u[1]=0,u[2]=1;break;default:u[0]=1,u[1]=0,u[2]=o}return[255*(t*u[0]+(r=(1-t)*n)),255*(t*u[1]+r),255*(t*u[2]+r)]},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=1-e[2]/100,n=t-e[1]/100,r=0;return n<1&&(r=(t-n)/(1-n)),[e[0],100*n,100*r]},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]}}),cn=Object.keys(ln);function pn(e){var t=function(){for(var e={},t=cn.length,n=0;n1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"===o(n))for(var r=n.length,u=0;u1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})});var hn,mn=Dn,gn=st(function(e){var t=function(e,t){return function(){var n=e.apply(mn,arguments);return"\x1b[".concat(n+t,"m")}},n=function(e,t){return function(){var n=e.apply(mn,arguments);return"\x1b[".concat(38+t,";5;").concat(n,"m")}},r=function(e,t){return function(){var n=e.apply(mn,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(){var 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(var a=0,i=Object.keys(u);a=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in En)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(e){return e in En})||"codeship"===En.CI_NAME?1:t;if("TEAMCITY_VERSION"in En)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(En.TEAMCITY_VERSION)?1:0;if("truecolor"===En.COLORTERM)return 3;if("TERM_PROGRAM"in En){var r=parseInt((En.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(En.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(En.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(En.TERM)||"COLORTERM"in En?1:t}(e))&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3};var t}vn("no-color")||vn("no-colors")||vn("color=false")?hn=!1:(vn("color")||vn("colors")||vn("color=true")||vn("color=always"))&&(hn=!0),"FORCE_COLOR"in En&&(hn=0===En.FORCE_COLOR.length||0!==parseInt(En.FORCE_COLOR,10));var An={supportsColor:Cn,stdout:Cn(Lt.stdout),stderr:Cn(Lt.stderr)},Fn=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,bn=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,xn=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Sn=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,wn=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function Bn(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):wn.get(e)||e}function Tn(e,t){var n,r=[],u=t.trim().split(/\s*,\s*/g),a=!0,i=!1,o=void 0;try{for(var s,l=u[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value;if(isNaN(c)){if(!(n=c.match(xn)))throw new Error("Invalid Chalk template style argument: ".concat(c," (in style '").concat(e,"')"));r.push(n[2].replace(Sn,function(e,t,n){return t?Bn(t):n}))}else r.push(Number(c))}}catch(p){i=!0,o=p}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}return r}function kn(e){bn.lastIndex=0;for(var t,n=[];null!==(t=bn.exec(e));){var r=t[1];if(t[2]){var u=Tn(r,t[2]);n.push([r].concat(u))}else n.push([r])}return n}function On(e,t){var n={},r=!0,u=!1,a=void 0;try{for(var i,o=t[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value,l=!0,c=!1,p=void 0;try{for(var f,d=s.styles[Symbol.iterator]();!(l=(f=d.next()).done);l=!0){var D=f.value;n[D[0]]=s.inverse?null:D.slice(1)}}catch(v){c=!0,p=v}finally{try{l||null==d.return||d.return()}finally{if(c)throw p}}}}catch(v){u=!0,a=v}finally{try{r||null==o.return||o.return()}finally{if(u)throw a}}for(var h=e,m=0,g=Object.keys(n);m0?h[y].apply(h,n[y]):h[y]}}return h}var Nn=function(e,t){var n=[],r=[],u=[];if(t.replace(Fn,function(t,a,i,o,s,l){if(a)u.push(Bn(a));else if(o){var c=u.join("");u=[],r.push(0===n.length?c:On(e,n)(c)),n.push({inverse:i,styles:kn(o)})}else if(s){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(On(e,n)(u.join(""))),u=[],n.pop()}else u.push(l)}),r.push(u.join("")),n.length>0){var a="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(a)}return r.join("")},Pn=st(function(e){var t=An.stdout,n="win32"===Lt.platform&&!(Lt.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],u=new Set(["gray"]),a=Object.create(null);function i(e,n){e.level=void 0===(n=n||{}).level?t?t.level:0:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function o(e){if(!this||!(this instanceof o)||this.template){var t={};return i(t,e),t.template=function(){var e=[].slice.call(arguments);return E.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,o.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=o,t.template}i(this,e)}n&&(gn.blue.open="\x1b[94m");for(var s=function(){var e=c[l];gn[e].closeRe=new RegExp(on(gn[e].close),"g"),a[e]={get:function(){var t=gn[e];return y.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}},l=0,c=Object.keys(gn);l1)for(var u=1;ut.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,i,o,s,l=0;li?s>i?i+1:s:s>o?o+1:s;return i}(e,t)<3});o&&i.push("Did you mean ".concat(Pn.default.blue(r.key(o)),"?")),u.warn(i.join(" "))}});ot(qn);var Vn=st(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),rn.__exportStar(qn,t)});ot(Vn);var Un=st(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),rn.__exportStar(jn,t),rn.__exportStar(_n,t),rn.__exportStar(Vn,t)});ot(Un);var Wn=st(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function r(e,t){var r=new e(t),i=Object.create(r),o=!0,s=!1,l=void 0;try{for(var c,p=n[Symbol.iterator]();!(o=(c=p.next()).done);o=!0){var f=c.value;f in t&&(i[f]=a(t[f],r,u.prototype[f].length))}}catch(d){s=!0,l=d}finally{try{o||null==p.return||p.return()}finally{if(s)throw l}}return i}t.createSchema=r;var u=function(){function e(t){s(this,e),this.name=t.name}return c(e,[{key:"default",value:function(e){}},{key:"expected",value:function(e){return"nothing"}},{key:"validate",value:function(e,t){return!1}},{key:"deprecated",value:function(e,t){return!1}},{key:"forward",value:function(e,t){}},{key:"redirect",value:function(e,t){}},{key:"overlap",value:function(e,t,n){return e}},{key:"preprocess",value:function(e,t){return e}},{key:"postprocess",value:function(e,t){return e}}],[{key:"create",value:function(e){return r(this,e)}}]),e}();function a(e,t,n){return"function"==typeof e?function(){for(var r=arguments.length,u=new Array(r),a=0;a2&&void 0!==arguments[2]&&arguments[2];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){var n=r("object"===o(e)&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"===o(e)&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}});ot(Xn);var Hn=st(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ChoiceSchema=function(e){function t(e){var n;return s(this,t),(n=y(this,d(t).call(this,e)))._choices=Xn.mapFromArray(e.choices.map(function(e){return e&&"object"===o(e)?e:{value:e}}),"value"),n}return f(t,e),c(t,[{key:"expected",value:function(e){var t=this,n=e.descriptor,r=Array.from(this._choices.keys()).map(function(e){return t._choices.get(e)}).filter(function(e){return!e.deprecated}).map(function(e){return e.value}).sort(Xn.comparePrimitive).map(n.value),u=r.slice(0,-2),a=r.slice(-2);return u.concat(a.join(" or ")).join(", ")}},{key:"validate",value:function(e){return this._choices.has(e)}},{key:"deprecated",value:function(e){var t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}},{key:"forward",value:function(e){var t=this._choices.get(e);return t?t.forward:void 0}},{key:"redirect",value:function(e){var t=this._choices.get(e);return t?t.redirect:void 0}}]),t}(Wn.Schema)});ot(Hn);var Yn=st(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberSchema=function(e){function t(){return s(this,t),y(this,d(t).apply(this,arguments))}return f(t,e),c(t,[{key:"expected",value:function(){return"a number"}},{key:"validate",value:function(e,t){return"number"==typeof e}}]),t}(Wn.Schema)});ot(Yn);var Kn=st(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegerSchema=function(e){function t(){return s(this,t),y(this,d(t).apply(this,arguments))}return f(t,e),c(t,[{key:"expected",value:function(){return"an integer"}},{key:"validate",value:function(e,n){return!0===n.normalizeValidateResult(v(d(t.prototype),"validate",this).call(this,e,n),e)&&Xn.isInt(e)}}]),t}(Yn.NumberSchema)});ot(Kn);var Qn=st(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.StringSchema=function(e){function t(){return s(this,t),y(this,d(t).apply(this,arguments))}return f(t,e),c(t,[{key:"expected",value:function(){return"a string"}},{key:"validate",value:function(e){return"string"==typeof e}}]),t}(Wn.Schema)});ot(Qn);var Zn=st(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),rn.__exportStar($n,t),rn.__exportStar(Jn,t),rn.__exportStar(zn,t),rn.__exportStar(Gn,t),rn.__exportStar(Hn,t),rn.__exportStar(Kn,t),rn.__exportStar(Yn,t),rn.__exportStar(Qn,t)});ot(Zn);var er=st(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDescriptor=nn.apiDescriptor,t.defaultUnknownHandler=qn.levenUnknownHandler,t.defaultInvalidHandler=_n.commonInvalidHandler,t.defaultDeprecatedHandler=In.commonDeprecatedHandler});ot(er);var tr=st(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(e,t,r){return new n(t,r).normalize(e)};var n=function(){function e(t,n){s(this,e);var r=n||{},u=r.logger,a=void 0===u?console:u,i=r.descriptor,o=r.unknown,l=void 0===o?er.defaultUnknownHandler:o,c=r.invalid,p=void 0===c?er.defaultInvalidHandler:c,f=r.deprecated,d=void 0===f?er.defaultDeprecatedHandler:f;this._utils={descriptor:void 0===i?er.defaultDescriptor:i,logger:a||{warn:function(){}},schemas:Xn.recordFromArray(t,"name"),normalizeDefaultResult:Xn.normalizeDefaultResult,normalizeDeprecatedResult:Xn.normalizeDeprecatedResult,normalizeForwardResult:Xn.normalizeForwardResult,normalizeRedirectResult:Xn.normalizeRedirectResult,normalizeValidateResult:Xn.normalizeValidateResult},this._unknownHandler=l,this._invalidHandler=p,this._deprecatedHandler=d,this.cleanHistory()}return c(e,[{key:"cleanHistory",value:function(){this._hasDeprecationWarned=Xn.createAutoChecklist()}},{key:"normalize",value:function(e){var t=this,n={},r=[e],u=function(){for(;0!==r.length;){var e=r.shift(),u=t._applyNormalization(e,n);r.push.apply(r,A(u))}};u();for(var a=0,i=Object.keys(this._utils.schemas);at.length&&(e=t,t=n);for(var r=e.length,u=t.length;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-u);)r--,u--;for(var a,i,o,s,l=0;li?s>i?i+1:s:s>o?o+1:s;return i},ir=ar;ir.default=ar;var or,sr={key:function(e){return 1===e.length?"-".concat(e):"--".concat(e)},value:function(e){return nr.apiDescriptor.value(e)},pair:function(e){var t=e.key,n=e.value;return!1===n?"--no-".concat(t):!0===n?sr.key(t):""===n?"".concat(sr.key(t)," without an argument"):"".concat(sr.key(t),"=").concat(n)}},lr=function(e){function t(e){var n,r=e.name,u=e.flags;return s(this,t),(n=y(this,d(t).call(this,{name:r,choices:u})))._flags=u.slice().sort(),n}return f(t,e),c(t,[{key:"preprocess",value:function(e,t){if("string"==typeof e&&0!==e.length&&-1===this._flags.indexOf(e)){var n=this._flags.find(function(t){return ir(t,e)<3});if(n)return t.logger.warn(["Unknown flag ".concat(Pn.yellow(t.descriptor.value(e)),","),"did you mean ".concat(Pn.blue(t.descriptor.value(n)),"?")].join(" ")),n}return e}},{key:"expected",value:function(){return"a flag"}}]),t}(nr.ChoiceSchema);function cr(e,t){var n=t.isCLI,r=[];n&&r.push(nr.AnySchema.create({name:"_"}));var u=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(u=(o=s.next()).done);u=!0){var l=o.value;r.push(pr(l,{isCLI:n,optionInfos:e})),l.alias&&n&&r.push(nr.AliasSchema.create({name:l.alias,sourceName:l.name}))}}catch(c){a=!0,i=c}finally{try{u||null==s.return||s.return()}finally{if(a)throw i}}return r}function pr(e,t){var n,r=t.isCLI,u=t.optionInfos,a={name:e.name},i={};switch(e.type){case"int":n=nr.IntegerSchema,r&&(a.preprocess=function(e){return Number(e)});break;case"string":n=nr.StringSchema;break;case"choice":n=nr.ChoiceSchema,a.choices=e.choices.map(function(t){return"object"===o(t)&&t.redirect?Object.assign({},t,{redirect:{to:{key:e.name,value:t.redirect}}}):t});break;case"boolean":n=nr.BooleanSchema;break;case"flag":n=lr,a.flags=u.map(function(e){return[].concat(e.alias||[],e.description?e.name:[],e.oppositeDescription?"no-".concat(e.name):[])}).reduce(function(e,t){return e.concat(t)},[]);break;case"path":n=nr.StringSchema;break;default:throw new Error("Unexpected type ".concat(e.type))}if(a.validate=e.exception?function(t,n,r){return e.exception(t)||n.validate(t,r)}:function(e,t,n){return void 0===e||t.validate(e,n)},e.redirect&&(i.redirect=function(t){return t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0}),e.deprecated&&(i.deprecated=!0),r&&!e.array){var s=a.preprocess||function(e){return e};a.preprocess=function(e,t,n){return t.preprocess(s(Array.isArray(e)?e[e.length-1]:e),n)}}return e.array?nr.ArraySchema.create(Object.assign(r?{preprocess:function(e){return[].concat(e)}}:{},i,{valueSchema:n.create(a)})):n.create(Object.assign({},a,i))}var fr=function(e,t,n){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.logger,u=n.isCLI,a=void 0!==u&&u,i=n.passThrough,o=void 0!==i&&i,s=o?Array.isArray(o)?function(e,t){return-1===o.indexOf(e)?void 0:p({},e,t)}:function(e,t){return p({},e,t)}:nr.levenUnknownHandler,l=a?sr:nr.apiDescriptor,c=cr(t,{isCLI:a}),f=new nr.Normalizer(c,{logger:r,unknown:s,descriptor:l}),d=!1!==r;d&&or&&(f._hasDeprecationWarned=or);var D=f.normalize(e);return d&&(or=f._hasDeprecationWarned),D}(e,t,n)},dr=function(e){return e.length>0?e[e.length-1]:null},Dr=st(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}});ot(Dr);var hr=st(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}}()}),mr=st(function(e){!function(){var t,n,r,u,a,i;function o(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),i=0;i<128;++i)u[i]=i>=97&&i<=122||i>=65&&i<=90||36===i||95===i;for(a=new Array(128),i=0;i<128;++i)a[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||36===i||95===i;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(o(e))},isIdentifierPartES5:function(e){return e<128?a[e]:n.NonAsciiIdentifierPart.test(o(e))},isIdentifierStartES6:function(e){return e<128?u[e]:t.NonAsciiIdentifierStart.test(o(e))},isIdentifierPartES6:function(e){return e<128?a[e]:t.NonAsciiIdentifierPart.test(o(e))}}}()}),gr=st(function(e){!function(){var t=mr;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 i(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)return!1;if(!(56320<=(a=e.charCodeAt(n))&&a<=57343))return!1;u=1024*(u-55296)+(a-56320)+65536}if(!i(u))return!1;i=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:n,isKeywordES6:r,isReservedWordES5:u,isReservedWordES6:a,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:i,isIdentifierNameES6:o,isIdentifierES5:function(e,t){return i(e)&&!u(e,t)},isIdentifierES6:function(e,t){return o(e)&&!a(e,t)}}}()}),yr=st(function(e,t){t.ast=hr,t.code=mr,t.keyword=gr}),vr=st(function(e,t){function n(){var e=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(Dr);return n=function(){return e},e}function r(){var e=a(yr);return r=function(){return e},e}function u(){var e=a(Pn);return u=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}function i(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}}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldHighlight=f,t.getChalk=d,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(f(t)){var n=d(t),r=i(n);return p(r,e)}return e};var o=/\r\n|[\n\r\u2028\u2029]/,s=/^[a-z][\w-]*$/i,l=/^[()[\]{}]$/;function c(e){var t=C(e.slice(-2),2),u=t[0],a=t[1],i=(0,n().matchToToken)(e);if("name"===i.type){if(r().default.keyword.isReservedWordES6(i.value))return"keyword";if(s.test(i.value)&&("<"===a[u-1]||""==a.substr(u-2,2)))return"jsx_tag";if(i.value[0]!==i.value[0].toLowerCase())return"capitalized"}return"punctuator"===i.type&&l.test(i.value)?"bracket":"invalid"!==i.type||"@"!==i.value&&"#"!==i.value?i.type:"punctuator"}function p(e,t){return t.replace(n().default,function(){for(var t=arguments.length,n=new Array(t),r=0;r3&&void 0!==arguments[3]?arguments[3]:{};if(!r){r=!0;var a="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(Lt.emitWarning)Lt.emitWarning(a,"DeprecationWarning");else{var i=new Error(a);i.name="DeprecationWarning",console.warn(new Error(a))}}var s={start:{column:n=Math.max(n,0),line:t}};return o(e,s,u)};var r=!1;function u(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var a=/\r\n|[\n\r\u2028\u2029]/;function i(e,t,n){var r=Object.assign({column:0,line:-1},e.start),u=Object.assign({},r,e.end),a=n||{},i=a.linesAbove,o=a.linesBelow,s=void 0===o?3:o,l=r.line,c=r.column,p=u.line,f=u.column,d=Math.max(l-((void 0===i?2:i)+1),0),D=Math.min(t.length,p+s);-1===l&&(d=0),-1===p&&(D=t.length);var h=p-l,m={};if(h)for(var g=0;g<=h;g++){var y=g+l;m[y]=!c||(0===g?[c,t[y-1].length-c+1]:g===h?[0,f]:[0,t[y-g].length])}else m[l]=c===f?!c||[c,0]:[c,f-c];return{start:d,end:D,markerLines:m}}function o(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(r.highlightCode||r.forceColor)&&(0,n().shouldHighlight)(r),s=(0,n().getChalk)(r),l=u(s),c=function(e,t){return o?e(t):t},p=e.split(a),f=i(t,p,r),d=f.start,D=f.end,h=f.markerLines,m=t.start&&"number"==typeof t.start.column,g=String(D).length,y=o?(0,n().default)(e,r):e,v=y.split(a).slice(d,D).map(function(e,t){var n=d+1+t,u=" ".concat(n).slice(-g),a=" ".concat(u," | "),i=h[n],o=!h[n+1];if(i){var s="";if(Array.isArray(i)){var p=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),f=i[1]||1;s=["\n ",c(l.gutter,a.replace(/\d/g," ")),p,c(l.marker,"^").repeat(f)].join(""),o&&r.message&&(s+=" "+c(l.message,r.message))}return[c(l.marker,">"),c(l.gutter,a),e,s].join("")}return" ".concat(c(l.gutter,a)).concat(e)}).join("\n");return r.message&&!m&&(v="".concat(" ".repeat(g+1)).concat(r.message,"\n").concat(v)),o?s.reset(v):v}});ot(Er);var Cr=ft.ConfigError,Ar=function e(t,n){return!(n=n||{}).ignoreDecorators&&t.declaration&&t.declaration.decorators&&t.declaration.decorators.length>0?e(t.declaration.decorators[0]):!n.ignoreDecorators&&t.decorators&&t.decorators.length>0?e(t.decorators[0]):t.__location?t.__location.startOffset:t.range?t.range[0]:"number"==typeof t.start?t.start:t.loc?t.loc.start:null},Fr=function e(t){var n=t.nodes&&dr(t.nodes);if(n&&t.source&&!t.source.end&&(t=n),t.__location)return t.__location.endOffset;var r=t.range?t.range[1]:"number"==typeof t.end?t.end:null;return t.typeAnnotation?Math.max(r,e(t.typeAnnotation)):t.loc&&!r?t.loc.end:r},br=Object.getOwnPropertyNames,xr=Object.getOwnPropertyDescriptor;function Sr(e){var t={},n=!0,r=!1,u=void 0;try{for(var a,i=e.plugins[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var o=a.value;if(o.parsers){var s=!0,l=!1,c=void 0;try{for(var p,f=br(o.parsers)[Symbol.iterator]();!(s=(p=f.next()).done);s=!0){var d=p.value;Object.defineProperty(t,d,xr(o.parsers,d))}}catch(D){l=!0,c=D}finally{try{s||null==f.return||f.return()}finally{if(l)throw c}}}}}catch(D){r=!0,u=D}finally{try{n||null==i.return||i.return()}finally{if(r)throw u}}return t}function wr(e,t){if(t=t||Sr(e),"function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:Ar,locEnd:Fr};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new Cr("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var Br={parse:function(e,t){var n=Sr(t),r=Object.keys(n).reduce(function(e,t){return Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t].parse}})},{}),u=wr(t,n);try{return u.preprocess&&(e=u.preprocess(e,t)),{text:e,ast:u.parse(e,r,t)}}catch(i){var a=i.loc;if(a)throw i.codeFrame=Er.codeFrameColumns(e,a,{highlightCode:!0}),i.message+="\n"+i.codeFrame,i;throw i.stack}},resolveParser:wr},Tr=ft.UndefinedParserError,kr=Ht,Or=Br.resolveParser,Nr={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null},Pr=function(e,t){t=t||{};var n,r,u,a,i,o=Object.assign({},e),s=kr(null,{plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,l=s.reduce(function(e,t){return void 0!==t.default?Object.assign(e,p({},t.name,t.default)):e},Object.assign({},Nr));if(!o.parser)if(o.filepath){if(o.parser=(r=o.plugins,u=function(e,t){if("string"!=typeof e)throw new TypeError("expected path to be a string");if("\\"===e||"/"===e)return"/";var n=e.length;if(n<=1)return e;var r="";if(n>4&&"\\"===e[3]){var u=e[2];"?"!==u&&"."!==u||"\\\\"!==e.slice(0,2)||(e=e.slice(2),r="//")}var a=e.split(/[/\\]+/);return""===a[a.length-1]&&a.pop(),r+a.join("/")}(n=o.filepath).split("/"),a=u[u.length-1].toLowerCase(),(i=kr(null,{plugins:r}).languages.find(function(e){return null!==e.since&&(e.extensions&&e.extensions.some(function(e){return a.endsWith(e)})||e.filenames&&e.filenames.find(function(e){return e.toLowerCase()===a})||-1===a.indexOf(".")&&e.interpreters&&-1!==e.interpreters.indexOf(function(e){if("string"!=typeof e)return"";var t;try{t=ct.openSync(e,"r")}catch(a){return""}try{var n=new pt(t).next().toString("utf8"),r=n.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(r)return r[1];var u=n.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return u?u[1]:""}catch(a){return""}finally{try{ct.closeSync(t)}catch(a){}}}(n)))}))&&i.parsers[0]),!o.parser)throw new Tr("No parser could be inferred for file: ".concat(o.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."),o.parser="babel";var c=Or(fr(o,[s.find(function(e){return"parser"===e.name})],{passThrough:!0,logger:!1}));o.astFormat=c.astFormat,o.locEnd=c.locEnd,o.locStart=c.locStart;var f=function(e){var t=e.astFormat;if(!t)throw new Error("getPlugin() requires astFormat to be set");var n=e.plugins.find(function(e){return e.printers&&e.printers[t]});if(!n)throw new Error("Couldn't find plugin for AST format \"".concat(t,'"'));return n}(o);o.printer=f.printers[o.astFormat];var d=s.filter(function(e){return e.pluginDefaults&&void 0!==e.pluginDefaults[f.name]}).reduce(function(e,t){return Object.assign(e,p({},t.name,t.pluginDefaults[f.name]))},{}),D=Object.assign({},l,d);return Object.keys(D).forEach(function(e){null==o[e]&&(o[e]=D[e])}),"json"===o.parser&&(o.trailingComma="none"),fr(o,s,Object.assign({passThrough:Object.keys(Nr)},t))},Ir=function e(t,n,r){if(Array.isArray(t))return t.map(function(t){return e(t,n,r)}).filter(function(e){return e});if(!t||"object"!==o(t))return t;for(var u={},a=0,i=Object.keys(t);a0){for(var u=0;u<~]))"].join("|");return new RegExp(t,e.onlyFirst?void 0:"g")}(),""):e},Jr=$r;Jr.default=$r;var zr=function(e){return!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)},Gr=zr;Gr.default=zr;var Xr=function(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=Jr(e);for(var t=0,n=0;n=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,t+=Gr(r)?2:1)}return t},Hr=Xr;Hr.default=Xr;var Yr=/[^\x20-\x7F]/;function Kr(e){if(e)switch(e.type){case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return!0}return!1}function Qr(e){return function(t,n,r){var u=r&&r.backwards;if(!1===n)return!1;for(var a=t.length,i=n;i>=0&&i"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(e,t){e.forEach(function(e){cu[e]=t})});var fu={"==":!0,"!=":!0,"===":!0,"!==":!0},du={"*":!0,"/":!0,"%":!0},Du={">>":!0,">>>":!0,"<<":!0};function hu(e){return e.left?hu(e.left):e}function mu(e,t,n){for(var r=0,u=n=n||0;u(n.match(i.regex)||[]).length?i.quote:a.quote),o}function yu(e,t,n){var r='"'===t?"'":'"',u=e.replace(/\\([\s\S])|(['"])/g,function(e,u,a){return u===r?u:a===t?"\\"+a:a||(n&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(u)?u:"\\"+u)});return t+u+t}function vu(e){return e&&e.comments&&e.comments.length>0&&e.comments.some(function(e){return"prettier-ignore"===e.value.trim()})}function Eu(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var Cu,Au={replaceEndOfLineWith:function(e,t){var n=[],r=!0,u=!1,a=void 0;try{for(var i,o=e.split("\n")[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;0!==n.length&&n.push(t),n.push(s)}}catch(l){u=!0,a=l}finally{try{r||null==o.return||o.return()}finally{if(u)throw a}}return n},getStringWidth:function(e){return e?Yr.test(e)?Hr(e):e.length:0},getMaxContinuousCount:function(e,t){var n=e.match(new RegExp("(".concat(on(t),")+"),"g"));return null===n?0:n.reduce(function(e,n){return Math.max(e,n.length/t.length)},0)},getMinNotPresentContinuousCount:function(e,t){var n=e.match(new RegExp("(".concat(on(t),")+"),"g"));if(null===n)return 0;var r=new Map,u=0,a=!0,i=!1,o=void 0;try{for(var s,l=n[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value.length/t.length;r.set(c,!0),c>u&&(u=c)}}catch(f){i=!0,o=f}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}for(var p=1;p1?e[e.length-2]:null},getLast:dr,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:su,getNextNonSpaceNonCommentCharacterIndex:lu,getNextNonSpaceNonCommentCharacter:function(e,t,n){return e.charAt(lu(e,t,n))},skip:Qr,skipWhitespace:Zr,skipSpaces:eu,skipToLineEnd:tu,skipEverythingButNewLine:nu,skipInlineComment:ru,skipTrailingComment:uu,skipNewline:au,isNextLineEmptyAfterIndex:ou,isNextLineEmpty:function(e,t,n){return ou(e,n(t))},isPreviousLineEmpty:function(e,t,n){var r=n(t)-1;return r=au(e,r=eu(e,r,{backwards:!0}),{backwards:!0}),(r=eu(e,r,{backwards:!0}))!==au(e,r,{backwards:!0})},hasNewline:iu,hasNewlineInRange:function(e,t,n){for(var r=t;r0&&D(i),y()):g()}function g(){o>0&&h(o),y()}function y(){i=0,o=0}}function Nu(e){if(0===e.length)return 0;for(var t=0;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]){var n=e[e.length-1].replace(/[ \t]*$/,"");t+=e[e.length-1].length-n.length,e[e.length-1]=n}return t}function Pu(e,t,n,r,u){for(var a=t.length,i=[e],o=[];n>=0;)if(0!==i.length){var s=i.pop(),l=s[0],c=s[1],p=s[2];if("string"==typeof p)o.push(p),n-=bu(p);else switch(p.type){case"concat":for(var f=p.parts.length-1;f>=0;f--)i.push([l,c,p.parts[f]]);break;case"indent":i.push([Tu(l,r),c,p.contents]);break;case"align":i.push([ku(l,p.n,r),c,p.contents]);break;case"trim":n+=Nu(o);break;case"group":if(u&&p.break)return!1;i.push([l,p.break?1:c,p.contents]),p.id&&(Cu[p.id]=i[i.length-1][1]);break;case"fill":for(var d=p.parts.length-1;d>=0;d--)i.push([l,c,p.parts[d]]);break;case"if-break":var D=p.groupId?Cu[p.groupId]:c;1===D&&p.breakContents&&i.push([l,c,p.breakContents]),2===D&&p.flatContents&&i.push([l,c,p.flatContents]);break;case"line":switch(c){case 2:if(!p.hard){p.soft||(o.push(" "),n-=1);break}return!0;case 1:return!0}}}else{if(0===a)return!0;i.push(t[a-1]),a--}return!1}var Iu={};function ju(e,t,n,r){for(var u=[e];0!==u.length;){var a=u.pop();if(a!==Iu){var i=!0;if(t&&!1===t(a)&&(i=!1),n&&(u.push(a),u.push(Iu)),i)if("concat"===a.type||"fill"===a.type)for(var o=a.parts.length-1;o>=0;--o)u.push(a.parts[o]);else if("if-break"===a.type)a.flatContents&&u.push(a.flatContents),a.breakContents&&u.push(a.breakContents);else if("group"===a.type&&a.expandedStates)if(r)for(var s=a.expandedStates.length-1;s>=0;--s)u.push(a.expandedStates[s]);else u.push(a.contents);else a.contents&&u.push(a.contents)}else n(u.pop())}}function Lu(e,t){if("concat"===e.type||"fill"===e.type){var n=e.parts.map(function(e){return Lu(e,t)});return t(Object.assign({},e,{parts:n}))}if("if-break"===e.type){var r=e.breakContents&&Lu(e.breakContents,t),u=e.flatContents&&Lu(e.flatContents,t);return t(Object.assign({},e,{breakContents:r,flatContents:u}))}if(e.contents){var a=Lu(e.contents,t);return t(Object.assign({},e,{contents:a}))}return t(e)}function _u(e,t,n){var r=n,u=!1;return ju(e,function(e){var n=t(e);if(void 0!==n&&(u=!0,r=n),u)return!1}),r}function Mu(e){return"string"!=typeof e&&("line"===e.type||void 0)}function Ru(e){return!("group"!==e.type||!e.break)||!("line"!==e.type||!e.hard)||"break-parent"===e.type||void 0}function qu(e){if(e.length>0){var t=e[e.length-1];t.expandedStates||(t.break=!0)}return null}function Vu(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}function Uu(e){if("concat"===e.type){for(var t=[],n=0;n=0;d--)a.push([c,p,f.parts[d]]);break;case"indent":a.push([Tu(c,t),p,f.contents]);break;case"align":a.push([ku(c,f.n,t),p,f.contents]);break;case"trim":u-=Nu(i);break;case"group":switch(p){case 2:if(!o){a.push([c,f.break?1:2,f.contents]);break}case 1:o=!1;var D=[c,2,f.contents],h=n-u;if(!f.break&&Pu(D,a,h,t))a.push(D);else if(f.expandedStates){var m=f.expandedStates[f.expandedStates.length-1];if(f.break){a.push([c,1,m]);break}for(var g=1;g=f.expandedStates.length){a.push([c,1,m]);break}var y=[c,2,f.expandedStates[g]];if(Pu(y,a,h,t)){a.push(y);break}}}else a.push([c,1,f.contents])}f.id&&(Cu[f.id]=a[a.length-1][1]);break;case"fill":var v=n-u,E=f.parts;if(0===E.length)break;var C=E[0],A=[c,2,C],F=[c,1,C],b=Pu(A,[],v,t,!0);if(1===E.length){a.push(b?A:F);break}var x=E[1],S=[c,2,x],w=[c,1,x];if(2===E.length){b?(a.push(S),a.push(A)):(a.push(w),a.push(F));break}E.splice(0,2);var B=[c,p,wu(E)];Pu([c,2,Su([C,x,E[0]])],[],v,t,!0)?(a.push(B),a.push(S),a.push(A)):b?(a.push(B),a.push(w),a.push(A)):(a.push(B),a.push(w),a.push(F));break;case"if-break":var T=f.groupId?Cu[f.groupId]:p;1===T&&f.breakContents&&a.push([c,p,f.breakContents]),2===T&&f.flatContents&&a.push([c,p,f.flatContents]);break;case"line-suffix":s.push([c,p,f.contents]);break;case"line-suffix-boundary":s.length>0&&a.push([c,p,{type:"line",hard:!0}]);break;case"line":switch(p){case 2:if(!f.hard){f.soft||(i.push(" "),u+=1);break}o=!0;case 1:if(s.length){a.push([c,p,f]),[].push.apply(a,s.reverse()),s=[];break}f.literal?c.root?(i.push(r,c.root.value),u=c.root.length):(i.push(r),u=0):(u-=Nu(i),i.push(r+c.value),u=c.length)}}}var k=i.indexOf(Bu.placeholder);if(-1!==k){var O=i.indexOf(Bu.placeholder,k+1),N=i.slice(0,k).join(""),P=i.slice(k+1,O).join("");return{formatted:N+P+i.slice(O+1).join(""),cursorNodeStart:N.length,cursorNodeText:P}}return{formatted:i.join("")}}},utils:{isEmpty:function(e){return"string"==typeof e&&0===e.length},willBreak:function(e){return _u(e,Ru,!1)},isLineNext:function(e){return _u(e,Mu,!1)},traverseDoc:ju,findInDoc:_u,mapDoc:Lu,propagateBreaks:function(e){var t=new Set,n=[];ju(e,function(e){if("break-parent"===e.type&&qu(n),"group"===e.type){if(n.push(e),t.has(e))return!1;t.add(e)}},function(e){"group"===e.type&&n.pop().break&&qu(n)},!0)},removeLines:function(e){return Lu(e,Vu)},stripTrailingHardline:function e(t){if("concat"===t.type&&0!==t.parts.length){var 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:function(e){return Wu(Uu(e))}}},Ju={getMaxContinuousCount:Au.getMaxContinuousCount,getStringWidth:Au.getStringWidth,getAlignmentSize:Au.getAlignmentSize,getIndentSize:Au.getIndentSize,skip:Au.skip,skipWhitespace:Au.skipWhitespace,skipSpaces:Au.skipSpaces,skipNewline:Au.skipNewline,skipToLineEnd:Au.skipToLineEnd,skipEverythingButNewLine:Au.skipEverythingButNewLine,skipInlineComment:Au.skipInlineComment,skipTrailingComment:Au.skipTrailingComment,hasNewline:Au.hasNewline,hasNewlineInRange:Au.hasNewlineInRange,hasSpaces:Au.hasSpaces,isNextLineEmpty:function(e,t,n){return Au.isNextLineEmpty(e,t,n.locEnd)},isNextLineEmptyAfterIndex:Au.isNextLineEmptyAfterIndex,isPreviousLineEmpty:function(e,t,n){return Au.isPreviousLineEmpty(e,t,n.locStart)},getNextNonSpaceNonCommentCharacterIndex:function(e,t,n){return Au.getNextNonSpaceNonCommentCharacterIndex(e,t,n.locEnd)},mapDoc:$u.utils.mapDoc,makeString:Au.makeString,addLeadingComment:Au.addLeadingComment,addDanglingComment:Au.addDanglingComment,addTrailingComment:Au.addTrailingComment},zu=$u.builders,Gu=zu.concat,Xu=zu.hardline,Hu=zu.breakParent,Yu=zu.indent,Ku=zu.lineSuffix,Qu=zu.join,Zu=zu.cursor,ea=Au.hasNewline,ta=Au.skipNewline,na=Au.isPreviousLineEmpty,ra=Ju.addLeadingComment,ua=Ju.addDanglingComment,aa=Ju.addTrailingComment,ia=Symbol("child-nodes");function oa(e,t,n){if(e){var r,u=t.printer,a=t.locStart,i=t.locEnd;if(n){if(e&&u.canAttachComment&&u.canAttachComment(e)){var s;for(s=n.length-1;s>=0&&!(a(n[s])<=a(e)&&i(n[s])<=i(e));--s);return void n.splice(s+1,0,e)}}else if(e[ia])return e[ia];if(u.getCommentChildNodes?r=u.getCommentChildNodes(e):e&&"object"===o(e)&&(r=Object.keys(e).filter(function(e){return"enclosingNode"!==e&&"precedingNode"!==e&&"followingNode"!==e}).map(function(t){return e[t]})),r)return n||Object.defineProperty(e,ia,{value:n=[],enumerable:!1}),r.forEach(function(e){oa(e,t,n)}),n}}function sa(e,t,n){for(var r,u,a=n.locStart,i=n.locEnd,o=oa(e,n),s=0,l=o.length;s>1,p=o[c];if(a(p)-a(t)<=0&&i(t)-i(p)<=0)return t.enclosingNode=p,void sa(p,t,n);if(i(p)-a(t)<=0)r=p,s=c+1;else{if(!(i(t)-a(p)<=0))throw new Error("Comment location overlaps with node location");u=p,l=c}}if(t.enclosingNode&&"TemplateLiteral"===t.enclosingNode.type){var f=t.enclosingNode.quasis,d=pa(f,t,n);r&&pa(f,r,n)!==d&&(r=null),u&&pa(f,u,n)!==d&&(u=null)}r&&(t.precedingNode=r),u&&(t.followingNode=u)}function la(e,t,n){var r=e.length;if(0!==r){var u,a=e[0],i=a.precedingNode,o=a.followingNode,s=n.locStart(o);for(u=r;u>0;--u){var l=e[u-1];jr.strictEqual(l.precedingNode,i),jr.strictEqual(l.followingNode,o);var c=t.slice(n.locEnd(l),s);if(!/^[\s(]*$/.test(c))break;s=n.locStart(l)}e.forEach(function(e,t){t=0)return void aa(t,o)}sa(t,o,r);var l=o.precedingNode,c=o.enclosingNode,p=o.followingNode,f=r.printer.handleComments&&r.printer.handleComments.ownLine?r.printer.handleComments.ownLine:function(){return!1},d=r.printer.handleComments&&r.printer.handleComments.endOfLine?r.printer.handleComments.endOfLine:function(){return!1},D=r.printer.handleComments&&r.printer.handleComments.remaining?r.printer.handleComments.remaining:function(){return!1},h=e.length-1===s;if(ea(n,a(o),{backwards:!0}))f(o,n,r,t,h)||(p?ra(p,o):l?aa(l,o):ua(c||t,o));else if(ea(n,i(o)))d(o,n,r,t,h)||(l?aa(l,o):p?ra(p,o):ua(c||t,o));else if(D(o,n,r,t,h));else if(l&&p){var m=u.length;m>0&&u[m-1].followingNode!==o.followingNode&&la(u,n,r),u.push(o)}else l?aa(l,o):p?ra(p,o):ua(c||t,o)}),la(u,n,r),e.forEach(function(e){delete e.precedingNode,delete e.enclosingNode,delete e.followingNode})}},printComments:function(e,t,n,r){var u=e.getValue(),a=t(e),i=u&&u.comments;if(!i||0===i.length)return fa(e,n,a);var o=[],s=[r?";":"",a];return e.each(function(e){var t=e.getValue(),r=t.trailing;if(t.leading){var u=function(e,t,n){var r=e.getValue(),u=ca(e,n);if(!u)return"";var a=n.printer.isBlockComment&&n.printer.isBlockComment(r);return Gu(a?[u,ea(n.originalText,n.locEnd(r))?Xu:" "]:[u,Xu])}(e,0,n);if(!u)return;o.push(u);var a=n.originalText,i=ta(a,n.locEnd(t));!1!==i&&ea(a,i)&&o.push(Xu)}else r&&s.push(function(e,t,n){var r=e.getValue(),u=ca(e,n);if(!u)return"";var a=n.printer.isBlockComment&&n.printer.isBlockComment(r),i=e.getNode(1),o=e.getNode(2),s=o&&("ClassDeclaration"===o.type||"ClassExpression"===o.type)&&o.superClass===i;if(ea(n.originalText,n.locStart(r),{backwards:!0})){var l=na(n.originalText,r,n.locStart);return Ku(Gu([Xu,l?Xu:"",u]))}return Gu(a||s?[" ",u]:[Ku(Gu([" ",u])),a?"":Hu])}(e,0,n))},"comments"),fa(e,n,Gu(o.concat(s)))},printDanglingComments:function(e,t,n,r){var u=[],a=e.getValue();return a&&a.comments?(e.each(function(e){var n=e.getValue();!n||n.leading||n.trailing||r&&!r(n)||u.push(ca(e,t))},"comments"),0===u.length?"":n?Qu(Xu,u):Yu(Gu([Xu,Qu(Xu,u)]))):""},getSortedChildNodes:oa};function Da(e){jr.ok(this instanceof Da),this.stack=[e]}function ha(e,t){var n=ma(e.stack,t);return-1===n?null:e.stack[n]}function ma(e,t){for(var n=e.length-1;n>=0;n-=2){var r=e[n];if(r&&!Array.isArray(r)&&--t<0)return n}return-1}Da.prototype.getName=function(){var e=this.stack,t=e.length;return t>1?e[t-2]:null},Da.prototype.getValue=function(){var e=this.stack;return e[e.length-1]},Da.prototype.getNode=function(e){return ha(this,~~e)},Da.prototype.getParentNode=function(e){return ha(this,1+~~e)},Da.prototype.call=function(e){for(var t=this.stack,n=t.length,r=t[n-1],u=arguments.length,a=1;a2&&void 0!==arguments[2]?arguments[2]:0,r=t.printer;r.preprocess&&(e=r.preprocess(e,t));var u=new Map;function a(e,n){var i,s=e.getValue(),l=s&&"object"===o(s)&&void 0===n;return l&&u.has(s)?u.get(s):(i=r.willPrintOwnComments&&r.willPrintOwnComments(e,t)?xa(e,t,a,n):da.printComments(e,function(e){return xa(e,t,a,n)},t,n&&n.needsSemi),l&&u.set(s,i),i)}var i=a(new ga(e));return n>0&&(i=Aa(Ea([Ca,i]),n,t.tabWidth)),Fa.propagateBreaks(i),i}function xa(e,t,n,r){jr.ok(e instanceof ga);var u=e.getValue(),a=t.printer;if(a.hasPrettierIgnore&&a.hasPrettierIgnore(e))return t.originalText.slice(t.locStart(u),t.locEnd(u));if(u)try{var i=function(e,t,n,r){if(n.printer.embed)return n.printer.embed(e,t,function(e,t){return function(e,t,n,r){var u=ya(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=Br.parse(e,u),i=a.ast;e=a.text;var o=i.comments;return delete i.comments,da.attach(o,i,e,u),r(i,u)}(e,t,n,r)},n)}(e,n,t,ba);if(i)return i}catch(o){if(it.PRETTIER_DEBUG)throw o}return a.print(e,t,n,r)}var Sa=ba;function wa(e,t,n,r,u){r=r||function(){return!0},u=u||[];var a=n.locStart(e,n.locStart),i=n.locEnd(e,n.locEnd);if(a<=t&&t<=i){var o=!0,s=!1,l=void 0;try{for(var c,p=da.getSortedChildNodes(e,n)[Symbol.iterator]();!(o=(c=p.next()).done);o=!0){var f=wa(c.value,t,n,r,[e].concat(u));if(f)return f}}catch(d){s=!0,l=d}finally{try{o||null==p.return||p.return()}finally{if(s)throw l}}if(r(e))return{node:e,parentNodes:u}}}function Ba(e,t){if(null==t)return!1;switch(e.parser){case"flow":case"babel":case"typescript":return["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"].indexOf(t.type)>-1;case"json":return["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral"].indexOf(t.type)>-1;case"graphql":return["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"].indexOf(t.kind)>-1;case"vue":return"root"!==t.tag}return!1}var Ta={calculateRange:function(e,t,n){var r,u=e.slice(t.rangeStart,t.rangeEnd),a=Math.max(t.rangeStart+u.search(/\S/),t.rangeStart);for(r=t.rangeEnd;r>t.rangeStart&&!e[r-1].match(/\S/);--r);var i=wa(n,a,t,function(e){return Ba(t,e)}),o=wa(n,r,t,function(e){return Ba(t,e)});if(!i||!o)return{rangeStart:0,rangeEnd:0};var s=function(e,t,n){var r=e.node,u=t.node;if(r===u)return{startNode:r,endNode:u};var a=!0,i=!1,o=void 0;try{for(var s,l=t.parentNodes[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value;if(!("Program"!==c.type&&"File"!==c.type&&n.locStart(c)>=n.locStart(e.node)))break;u=c}}catch(g){i=!0,o=g}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}var p=!0,f=!1,d=void 0;try{for(var D,h=e.parentNodes[Symbol.iterator]();!(p=(D=h.next()).done);p=!0){var m=D.value;if(!("Program"!==m.type&&"File"!==m.type&&n.locEnd(m)<=n.locEnd(t.node)))break;r=m}}catch(g){f=!0,d=g}finally{try{p||null==h.return||h.return()}finally{if(f)throw d}}return{startNode:r,endNode:u}}(i,o,t),l=s.startNode,c=s.endNode;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:wa},ka=lt(le),Oa=Pr,Na=Fu,Pa=$u.utils.mapDoc,Ia=$u.printer.printDocToString,ja=$u.debug.printDocToDebug,La=Symbol("cursor"),_a={cursorOffset:"<<>>",rangeStart:"<<>>",rangeEnd:"<<>>"};function Ma(e,t,n){var r=t.comments;return r&&(delete t.comments,da.attach(r,t,e,n)),t.tokens=[],n.originalText="yaml"===n.parser?e:e.trimRight(),r}function Ra(e,t,n){if(!e||!e.trim().length)return{formatted:"",cursorOffset:0};n=n||0;var r=Br.parse(e,t),u=r.ast;if(e=r.text,t.cursorOffset>=0){var a=Ta.findNodeAtOffset(u,t.cursorOffset,t);a&&a.node&&(t.cursorNode=a.node)}var i=Ma(e,u,t),o=Sa(u,t,n),s=Na(t.endOfLine),l=Ia("lf"===t.endOfLine?o:Pa(o,function(e){return"string"==typeof e&&-1!==e.indexOf("\n")?e.replace(/\n/g,s):e}),t);if(function(e){if(e){for(var t=0;t0){var c=l.formatted.trim();void 0!==l.cursorNodeStart&&(l.cursorNodeStart-=l.formatted.indexOf(c)),l.formatted=c+Na(t.endOfLine)}if(t.cursorOffset>=0){var p,f,d,D,h;if(t.cursorNode&&l.cursorNodeText?(p=t.locStart(t.cursorNode),f=e.slice(p,t.locEnd(t.cursorNode)),d=t.cursorOffset-p,D=l.cursorNodeStart,h=l.cursorNodeText):(p=0,f=e,d=t.cursorOffset,D=0,h=l.formatted),f===h)return{formatted:l.formatted,cursorOffset:D+d};var m=f.split("");m.splice(d,0,La);var g=h.split(""),y=ka.diffArrays(m,g),v=D,E=!0,C=!1,A=void 0;try{for(var F,b=y[Symbol.iterator]();!(E=(F=b.next()).done);E=!0){var x=F.value;if(x.removed){if(x.value.indexOf(La)>-1)break}else v+=x.count}}catch(S){C=!0,A=S}finally{try{E||null==b.return||b.return()}finally{if(C)throw A}}return{formatted:l.formatted,cursorOffset:v}}return{formatted:l.formatted}}function qa(e,t){var n=Br.resolveParser(t),r=!n.hasPragma||n.hasPragma(e);if(t.requirePragma&&!r)return{formatted:e};"auto"===t.endOfLine&&(t.endOfLine=function(e){var t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"}(e));var u=t.cursorOffset>=0,a=t.rangeStart>0,i=t.rangeEnd=0;s--){var l=o[s];e=e.slice(0,t[l])+_a[l]+e.slice(t[l])}e=e.replace(/\r\n?/g,"\n");for(var c=function(n){var r=o[n];e=e.replace(_a[r],function(e,n){return t[r]=n,""})},p=0;pe.length&&(t.rangeEnd=e.length);var d=a||i?function(e,t){var n,r=Br.parse(e,t),u=Ta.calculateRange(e=r.text,t,r.ast),a=u.rangeStart,i=u.rangeEnd,o=e.slice(a,i),s=Math.min(a,e.lastIndexOf("\n",a)+1),l=e.slice(s,a),c=Au.getAlignmentSize(l,t.tabWidth),p=Ra(o,Object.assign({},t,{rangeStart:0,rangeEnd:1/0,cursorOffset:t.cursorOffset>=a&&t.cursorOffset=i?h=t.cursorOffset-i+(a+f.length):void 0!==p.cursorOffset&&(h=p.cursorOffset+a),"lf"===t.endOfLine)n=d+f+D;else{var m=Na(t.endOfLine);if(h>=0){for(var g=[d,f,D],y=0,v=h;yt.length-n?"\r\n":"\n"},e.exports.graceful=function(t){return e.exports(t)||"\n"}}),Ha=st(function(e,t){function n(){var e=yn;return n=function(){return e},e}function r(){var e,t=(e=Xa)&&e.__esModule?e:{default:e};return r=function(){return t},t}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){var t=e.match(i);return t?t[0].trimLeft():""},t.strip=function(e){var t=e.match(i);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return f(e).pragmas},t.parseWithComments=f,t.print=function(e){var t=e.comments,u=void 0===t?"":t,a=e.pragmas,i=void 0===a?{}:a,o=(0,r().default)(u)||n().EOL,s=Object.keys(i),l=s.map(function(e){return d(e,i[e])}).reduce(function(e,t){return e.concat(t)},[]).map(function(e){return" * "+e+o}).join("");if(!u){if(0===s.length)return"";if(1===s.length&&!Array.isArray(i[s[0]])){var c=i[s[0]];return"".concat("/**"," ").concat(d(s[0],c)[0]).concat(" */")}}var p=u.split(o).map(function(e){return"".concat(" *"," ").concat(e)}).join(o)+o;return"/**"+o+(u?p:"")+(u&&s.length?" *"+o:"")+l+" */"};var u=/\*\/$/,a=/^\/\*\*/,i=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,o=/(^|\s+)\/\/([^\r\n]*)/g,s=/^(\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 f(e){var t=(0,r().default)(e)||n().EOL;e=e.replace(a,"").replace(u,"").replace(p,"$1");for(var i="";i!==e;)i=e,e=e.replace(l,"".concat(t,"$1 $2").concat(t));e=e.replace(s,"").trimRight();for(var f,d=Object.create(null),D=e.replace(c,"").replace(s,"").trimRight();f=c.exec(e);){var h=f[2].replace(o,"");d[f[1]]="string"==typeof d[f[1]]||Array.isArray(d[f[1]])?[].concat(d[f[1]],h):h}return{comments:D,pragmas:d}}function d(e,t){return[].concat(t).map(function(t){return"@".concat(e," ").concat(t).trim()})}});ot(Ha);var Ya=function(e){var t=Ha.parseWithComments(Ha.extract(e)),n=Object.assign({format:""},t.pragmas),r=Ha.print({pragmas:n,comments:t.comments.replace(/^(\s+?\r?\n)+/,"")}).replace(/(\r\n|\r)/g,"\n"),u=Ha.strip(e);return r+(u.startsWith("\n")?"\n":"\n\n")+u},Ka={"---":"yaml","+++":"toml"},Qa=function(e){var t=Object.keys(Ka).map(on).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};var r=n[0].replace(/\n$/,"");return{frontMatter:{type:Ka[n[1]],value:n[2],raw:r},content:n[0].replace(/[^\n]/g," ")+e.slice(n[0].length)}},Za=["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 ei(e,t){var n=function(e,t){for(var n,r=[].concat(t),u=-1;n=e.getParentNode(++u);)if(-1!==r.indexOf(n.type))return u;return-1}(e,t);return-1===n?null:e.getParentNode(n)}function ti(e){return"value-operator"===e.type&&"*"===e.value}function ni(e){return"value-operator"===e.type&&"/"===e.value}function ri(e){return"value-operator"===e.type&&"+"===e.value}function ui(e){return"value-operator"===e.type&&"-"===e.value}function ai(e){return"value-comma_group"===e.type&&e.groups&&e.groups[1]&&"value-colon"===e.groups[1].type}function ii(e){return"value-paren_group"===e.type&&e.groups&&e.groups[0]&&ai(e.groups[0])}var oi=Au.printNumber,si=Au.printString,li=Au.hasIgnoreComment,ci=Au.hasNewline,pi=Ju.isNextLineEmpty,fi=$u.builders,di=fi.concat,Di=fi.join,hi=fi.line,mi=fi.hardline,gi=fi.softline,yi=fi.group,vi=fi.fill,Ei=fi.indent,Ci=fi.dedent,Ai=fi.ifBreak,Fi=$u.utils.removeLines,bi=ei,xi=function(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()},Si=function(e,t){var n=ei(e,"value-func");return n&&n.value&&n.value.toLowerCase()===t},wi=function(e){var t=ei(e,"css-rule");return t&&t.raws&&t.raws.selector&&(t.raws.selector.startsWith(":import")||t.raws.selector.startsWith(":export"))},Bi=function(e,t){var n=[].concat(t),r=ei(e,"css-atrule");return r&&-1!==n.indexOf(r.name.toLowerCase())},Ti=function(e,t){var n=ei(e,"css-atrule");return n&&n.name&&n.name.toLowerCase().endsWith("keyframes")&&-1!==["from","to"].indexOf(t.toLowerCase())},ki=function(e){return-1!==Va.indexOf(e.toLowerCase())},Oi=function(e,t){return"less"===e||"scss"===e?"scss"===e:/(\w\s*: [^}:]+|#){|@import[^\n]+(url|,)/.test(t)},Ni=function(e,t){var n=e.getParentNode();if(!n)return!1;var r=n.nodes;return r&&r.indexOf(t)===r.length-1},Pi=function(e){return"css-atrule"===e.type&&-1!==["if","else","for","each","while"].indexOf(e.name)},Ii=function(e){return!!e.selector&&("string"==typeof e.selector&&/^@.+:.*$/.test(e.selector)||e.selector.value&&/^@.+:.*$/.test(e.selector.value))},ji=function(e){return"value-word"===e.type&&-1!==["<",">","<=",">="].indexOf(e.value)},Li=function(e){return"value-word"===e.type&&-1!==["==","!="].indexOf(e.value)},_i=ti,Mi=ni,Ri=ri,qi=ui,Vi=function(e){return ti(e)||ni(e)||ri(e)||ui(e)||function(e){return"value-operator"===e.type&&"%"===e.value}(e)},Ui=function(e){return"value-word"===e.type&&"in"===e.value},Wi=function(e){return"value-word"===e.type&&-1!==["from","through","end"].indexOf(e.value)},$i=function(e){return"value-word"===e.type&&-1!==["and","or","not"].indexOf(e.value)},Ji=function(e){return e.value&&"value-root"===e.value.type&&e.value.group&&"value-value"===e.value.group.type&&"composes"===e.prop.toLowerCase()},zi=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},Gi=function(e){return e.raws&&""===e.raws.before},Xi=ai,Hi=function(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},Yi=function(e){return e.name.startsWith("prettier-placeholder")},Ki=function(e){return e.prop.startsWith("@prettier-placeholder")},Qi=function(e){return"value-comment"===e.type&&e.inline},Zi=function(e){return"value-word"===e.type&&"#"===e.value},eo=function(e){return"value-word"===e.type&&"{"===e.value},to=function(e){return"value-word"===e.type&&"}"===e.value},no=function(e){return-1!==["value-word","value-atword"].indexOf(e.type)},ro=function(e){return"value-colon"===e.type},uo=function(e){return e.value&&-1!==["not","and","or"].indexOf(e.value.toLowerCase())},ao=function(e){return"value-func"===e.type&&-1!==Za.indexOf(e.value.toLowerCase())};function io(e){switch(e.trailingComma){case"all":case"es5":return!0;case"none":default:return!1}}function oo(e,t,n){var r=e.getValue(),u=[],a=0;return e.map(function(e){var i=r.nodes[a-1];if(i&&"css-comment"===i.type&&"prettier-ignore"===i.text.trim()){var o=e.getValue();u.push(t.originalText.slice(t.locStart(o),t.locEnd(o)))}else u.push(e.call(n));a!==r.nodes.length-1&&("css-comment"===r.nodes[a+1].type&&!ci(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(mi),pi(t.originalText,e.getValue(),t)&&"yaml"!==r.nodes[a].type&&"toml"!==r.nodes[a].type&&u.push(mi))),a++},"nodes"),di(u)}var so=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g,lo=RegExp(so.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 co(e,t){return e.replace(so,function(e){return si(e,t)})}function po(e,t){var n=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:n+e+n}function fo(e){return e.replace(lo,function(e,t,n,r,u){return!n&&r?(n||"")+Do(r)+xi(u||""):e})}function Do(e){return oi(e).replace(/\.0(?=$|e)/,"")}var ho={print:function(e,t,n){var r,u,a=e.getValue();if(!a)return"";if("string"==typeof a)return a;switch(a.type){case"yaml":case"toml":return di([a.raw,mi]);case"css-root":var i=oo(e,t,n);return i.parts.length?di([i,mi]):i;case"css-comment":if(a.raws.content)return a.raws.content;var o=t.originalText.slice(t.locStart(a),t.locEnd(a)),s=a.raws.text||a.text;return-1===o.indexOf(s)?di(a.raws.inline?["// ",s]:["/* ",s," */"]):o;case"css-rule":return di([e.call(n,"selector"),a.important?" !important":"",a.nodes?di([" {",a.nodes.length>0?Ei(di([mi,oo(e,t,n)])):"",mi,"}",Ii(a)?";":""]):";"]);case"css-decl":var l=e.getParentNode();return di([a.raws.before.replace(/[\s;]/g,""),wi(e)?a.prop:xi(a.prop),":"===a.raws.between.trim()?":":a.raws.between.trim(),a.extend?"":" ",Ji(a)?Fi(e.call(n,"value")):e.call(n,"value"),a.raws.important?a.raws.important.replace(/\s*!\s*important/i," !important"):a.important?" !important":"",a.raws.scssDefault?a.raws.scssDefault.replace(/\s*!default/i," !default"):a.scssDefault?" !default":"",a.raws.scssGlobal?a.raws.scssGlobal.replace(/\s*!global/i," !global"):a.scssGlobal?" !global":"",a.nodes?di([" {",Ei(di([gi,oo(e,t,n)])),gi,"}"]):Ki(a)&&!l.raws.semicolon&&";"!==t.originalText[t.locEnd(a)-1]?"":";"]);case"css-atrule":var c=e.getParentNode();return di(["@",Hi(a)||a.name.endsWith(":")?a.name:xi(a.name),a.params?di([Hi(a)?"":Yi(a)&&/^\s*\n/.test(a.raws.afterName)?/^\s*\n\s*\n/.test(a.raws.afterName)?di([mi,mi]):mi:" ",e.call(n,"params")]):"",a.selector?Ei(di([" ",e.call(n,"selector")])):"",a.value?yi(di([" ",e.call(n,"value"),Pi(a)?zi(a)?" ":hi:""])):"else"===a.name?" ":"",a.nodes?di([Pi(a)?"":" ","{",Ei(di([a.nodes.length>0?gi:"",oo(e,t,n)])),gi,"}"]):Yi(a)&&!c.raws.semicolon&&";"!==t.originalText[t.locEnd(a)-1]?"":";"]);case"media-query-list":var p=[];return e.each(function(e){var t=e.getValue();"media-query"===t.type&&""===t.value||p.push(e.call(n))},"nodes"),yi(Ei(Di(hi,p)));case"media-query":return di([Di(" ",e.map(n,"nodes")),Ni(e,a)?"":","]);case"media-type":return fo(co(a.value,t));case"media-feature-expression":return a.nodes?di(["(",di(e.map(n,"nodes")),")"]):a.value;case"media-feature":return xi(co(a.value.replace(/ +/g," "),t));case"media-colon":return di([a.value," "]);case"media-value":return fo(co(a.value,t));case"media-keyword":return co(a.value,t);case"media-url":return co(a.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":return a.value;case"selector-root":return yi(di([Bi(e,"custom-selector")?di([bi(e,"css-atrule").customSelector,hi]):"",Di(di([",",Bi(e,["extend","custom-selector","nest"])?hi:mi]),e.map(n,"nodes"))]));case"selector-selector":return yi(Ei(di(e.map(n,"nodes"))));case"selector-comment":return a.value;case"selector-string":return co(a.value,t);case"selector-tag":var f=e.getParentNode(),d=f&&f.nodes.indexOf(a),D=d&&f.nodes[d-1];return di([a.namespace?di([!0===a.namespace?"":a.namespace.trim(),"|"]):"","selector-nesting"===D.type?a.value:fo(ki(a.value)||Ti(e,a.value)?a.value.toLowerCase():a.value)]);case"selector-id":return di(["#",a.value]);case"selector-class":return di([".",fo(co(a.value,t))]);case"selector-attribute":return di(["[",a.namespace?di([!0===a.namespace?"":a.namespace.trim(),"|"]):"",a.attribute.trim(),a.operator?a.operator:"",a.value?po(co(a.value.trim(),t),t):"",a.insensitive?" i":"","]"]);case"selector-combinator":if("+"===a.value||">"===a.value||"~"===a.value||">>>"===a.value){var h=e.getParentNode();return di(["selector-selector"===h.type&&h.nodes[0]===a?"":hi,a.value,Ni(e,a)?"":" "])}var m=a.value.trim().startsWith("(")?hi:"",g=fo(co(a.value.trim(),t))||hi;return di([m,g]);case"selector-universal":return di([a.namespace?di([!0===a.namespace?"":a.namespace.trim(),"|"]):"",a.value]);case"selector-pseudo":return di([xi(a.value),a.nodes&&a.nodes.length>0?di(["(",Di(", ",e.map(n,"nodes")),")"]):""]);case"selector-nesting":return a.value;case"selector-unknown":var y=bi(e,"css-rule");return y&&y.isSCSSNesterProperty?fo(co(xi(a.value),t)):a.value;case"value-value":case"value-root":return e.call(n,"group");case"value-comment":return di([a.inline?"//":"/*",a.value,a.inline?"":"*/"]);case"value-comma_group":for(var v=e.getParentNode(),E=e.getParentNode(1),C=function(e){var t=ei(e,"css-decl");return t&&t.prop&&t.prop.toLowerCase()}(e),A=C&&"value-value"===v.type&&("grid"===C||C.startsWith("grid-template")),F=bi(e,"css-atrule"),b=F&&Pi(F),x=e.map(n,"groups"),S=[],w=Si(e,"url"),B=!1,T=!1,k=0;k0&&"value-comma_group"===a.groups[0].type&&a.groups[0].groups.length>0&&"value-word"===a.groups[0].groups[0].type&&a.groups[0].groups[0].value.startsWith("data:")))return di([a.open?e.call(n,"open"):"",Di(",",e.map(n,"groups")),a.close?e.call(n,"close"):""]);if(!a.open){for(var W=e.map(n,"groups"),$=[],J=0;J0?Mo(Po(["(",Ro(Po([_o,Io(Po([qo("",", "),_o]),e.call(function(e){return Wo(e,t,n)},"arguments"))])),_o,")"])):"",Uo(e,n,r),r.selectionSet?" ":"",e.call(n,"selectionSet")]));case"Name":return r.value;case"StringValue":return Po(r.block?['"""',jo,Io(jo,r.value.replace(/"""/g,"\\$&").split("\n")),jo,'"""']:['"',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 Po(["$",e.call(n,"name")]);case"ListValue":return Mo(Po(["[",Ro(Po([_o,Io(Po([qo("",", "),_o]),e.map(n,"values"))])),_o,"]"]));case"ObjectValue":return Mo(Po(["{",t.bracketSpacing&&r.fields.length>0?" ":"",Ro(Po([_o,Io(Po([qo("",", "),_o]),e.map(n,"fields"))])),_o,qo("",t.bracketSpacing&&r.fields.length>0?" ":""),"}"]));case"ObjectField":case"Argument":return Po([e.call(n,"name"),": ",e.call(n,"value")]);case"Directive":return Po(["@",e.call(n,"name"),r.arguments.length>0?Mo(Po(["(",Ro(Po([_o,Io(Po([qo("",", "),_o]),e.call(function(e){return Wo(e,t,n)},"arguments"))])),_o,")"])):""]);case"NamedType":return e.call(n,"name");case"VariableDefinition":return Po([e.call(n,"variable"),": ",e.call(n,"type"),r.defaultValue?Po([" = ",e.call(n,"defaultValue")]):"",Uo(e,n,r)]);case"TypeExtensionDefinition":return Po(["extend ",e.call(n,"definition")]);case"ObjectTypeExtension":case"ObjectTypeDefinition":return Po([e.call(n,"description"),r.description?jo:"","ObjectTypeExtension"===r.kind?"extend ":"","type ",e.call(n,"name"),r.interfaces.length>0?Po([" implements ",Io($o(t.originalText.substr(t.locStart(r),t.locEnd(r))),e.map(n,"interfaces"))]):"",Uo(e,n,r),r.fields.length>0?Po([" {",Ro(Po([jo,Io(jo,e.call(function(e){return Wo(e,t,n)},"fields"))])),jo,"}"]):""]);case"FieldDefinition":return Po([e.call(n,"description"),r.description?jo:"",e.call(n,"name"),r.arguments.length>0?Mo(Po(["(",Ro(Po([_o,Io(Po([qo("",", "),_o]),e.call(function(e){return Wo(e,t,n)},"arguments"))])),_o,")"])):"",": ",e.call(n,"type"),Uo(e,n,r)]);case"DirectiveDefinition":return Po([e.call(n,"description"),r.description?jo:"","directive ","@",e.call(n,"name"),r.arguments.length>0?Mo(Po(["(",Ro(Po([_o,Io(Po([qo("",", "),_o]),e.call(function(e){return Wo(e,t,n)},"arguments"))])),_o,")"])):"",Po([" on ",Io(" | ",e.map(n,"locations"))])]);case"EnumTypeExtension":case"EnumTypeDefinition":return Po([e.call(n,"description"),r.description?jo:"","EnumTypeExtension"===r.kind?"extend ":"","enum ",e.call(n,"name"),Uo(e,n,r),r.values.length>0?Po([" {",Ro(Po([jo,Io(jo,e.call(function(e){return Wo(e,t,n)},"values"))])),jo,"}"]):""]);case"EnumValueDefinition":return Po([e.call(n,"description"),r.description?jo:"",e.call(n,"name"),Uo(e,n,r)]);case"InputValueDefinition":return Po([e.call(n,"description"),r.description?r.description.block?jo:Lo:"",e.call(n,"name"),": ",e.call(n,"type"),r.defaultValue?Po([" = ",e.call(n,"defaultValue")]):"",Uo(e,n,r)]);case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return Po([e.call(n,"description"),r.description?jo:"","InputObjectTypeExtension"===r.kind?"extend ":"","input ",e.call(n,"name"),Uo(e,n,r),r.fields.length>0?Po([" {",Ro(Po([jo,Io(jo,e.call(function(e){return Wo(e,t,n)},"fields"))])),jo,"}"]):""]);case"SchemaDefinition":return Po(["schema",Uo(e,n,r)," {",r.operationTypes.length>0?Ro(Po([jo,Io(jo,e.call(function(e){return Wo(e,t,n)},"operationTypes"))])):"",jo,"}"]);case"OperationTypeDefinition":return Po([e.call(n,"operation"),": ",e.call(n,"type")]);case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return Po([e.call(n,"description"),r.description?jo:"","InterfaceTypeExtension"===r.kind?"extend ":"","interface ",e.call(n,"name"),Uo(e,n,r),r.fields.length>0?Po([" {",Ro(Po([jo,Io(jo,e.call(function(e){return Wo(e,t,n)},"fields"))])),jo,"}"]):""]);case"FragmentSpread":return Po(["...",e.call(n,"name"),Uo(e,n,r)]);case"InlineFragment":return Po(["...",r.typeCondition?Po([" on ",e.call(n,"typeCondition")]):"",Uo(e,n,r)," ",e.call(n,"selectionSet")]);case"UnionTypeExtension":case"UnionTypeDefinition":return Mo(Po([e.call(n,"description"),r.description?jo:"",Mo(Po(["UnionTypeExtension"===r.kind?"extend ":"","union ",e.call(n,"name"),Uo(e,n,r),r.types.length>0?Po([" =",qo(""," "),Ro(Po([qo(Po([Lo," "])),Io(Po([Lo,"| "]),e.map(n,"types"))]))]):""]))]));case"ScalarTypeExtension":case"ScalarTypeDefinition":return Po([e.call(n,"description"),r.description?jo:"","ScalarTypeExtension"===r.kind?"extend ":"","scalar ",e.call(n,"name"),Uo(e,n,r)]);case"NonNullType":return Po([e.call(n,"type"),"!"]);case"ListType":return Po(["[",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:Au.hasIgnoreComment,insertPragma:function(e){return"# @format\n\n"+e},printComment:function(e){var t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimRight();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return e.kind&&"Comment"!==e.kind}},zo={bracketSpacing:mo.bracketSpacing},Go=[".graphql",".gql",".graphqls"],Xo={languages:[yo(lt(Object.freeze({__proto__:null,name:"GraphQL",type:"data",extensions:Go,tmScope:"source.graphql",aceMode:"text",languageId:139,default:{name:"GraphQL",type:"data",extensions:Go,tmScope:"source.graphql",aceMode:"text",languageId:139}})),function(e){return Object.assign(e,{since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]})})],options:zo,printers:{graphql:Jo}},Ho=$u.builders,Yo=Ho.concat,Ko=Ho.join,Qo=Ho.softline,Zo=Ho.hardline,es=Ho.line,ts=Ho.group,ns=Ho.indent,rs=Ho.ifBreak,us=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function as(e,t,n){return Yo(e.map(function(r,u){var a=e.getValue(),i=0===u,o=u==e.getParentNode(0).children.length-1&&!i;return ds(a)&&o?n(r,t,n):i?Yo([Qo,n(r,t,n)]):n(r,t,n)},"children"))}function is(e,t){var n={quote:'"',regex:/"/g},r={quote:"'",regex:/'/g},u=t.singleQuote?r:n,a=u===r?n:r,i=!1;(e.includes(u.quote)||e.includes(a.quote))&&(i=(e.match(u.regex)||[]).length>(e.match(a.regex)||[]).length);var o=i?a:u,s=e.replace(o.regex,"\\".concat(o.quote));return"".concat(o.quote).concat(s).concat(o.quote)}function os(e,t){return e.call(t,"path")}function ss(e,t){var n=e.getValue(),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 ls(e,t,n){var r=[];return n=Object.assign({group:!0},n||{}),r.push(os(e,t)),r=r.concat(ss(e,t)),ns(n.group?ts(Ko(es,r)):Ko(es,r))}function cs(e){var t=e.getValue();return t.program&&t.program.blockParams.length?Yo([" as |",t.program.blockParams.join(" "),"|"]):""}function ps(e,t){return ts(Yo(["{{#",ls(e,t),cs(e),Qo,"}}"]))}function fs(e,t){return Yo(["{{/",e.call(t,"path"),"}}"])}function ds(e){return"TextNode"===e.type&&!/\S/.test(e.chars)}function Ds(e){var t=e.getValue(),n=e.getParentNode(0),r=n.children||n.body;if(r){var u=r.indexOf(t);if(u>0)return r[u-1]}}function hs(e){var t=e.getValue(),n=e.getParentNode(0),r=n.children||n.body;if(r){var u=r.indexOf(t);if(u0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return new Array(Math.min(e,t)).fill(Zo)}var Es={print:function(e,t,n){var r=e.getValue();if(!r)return"";switch(r.type){case"Block":case"Program":case"Template":return ts(Yo(e.map(n,"body").filter(function(e){return""!==e})));case"ElementNode":var u=r.tag[0],a=-1!==r.tag.indexOf("."),i=u.toUpperCase()===u||a,o=r.children.length>0,s=r.children.some(function(e){return!ds(e)}),l=i&&(!o||!s)||-1!==us.indexOf(r.tag),c=l?Yo([" />",Qo]):">",p=l?"/>":">",f=hs(e);return Yo([ts(Yo(["<",r.tag,function(e,t){return ns(Yo([r.attributes.length?es:"",Ko(es,e.map(t,"attributes")),r.modifiers.length?es:"",Ko(es,e.map(t,"modifiers")),r.comments.length?es:"",Ko(es,e.map(t,"comments"))]))}(e,n),r.blockParams.length?" as |".concat(r.blockParams.join(" "),"|"):"",rs(Qo,""),rs(p,c)])),l?"":ts(Yo([s?ns(as(e,t,n)):"",rs(o?Zo:"",""),Yo(["",r.tag,">"])])),f&&"ElementNode"===f.type?Zo:""]);case"BlockStatement":var d=e.getParentNode(1),D=d&&d.inverse&&1===d.inverse.body.length&&d.inverse.body[0]===r&&"if"===d.inverse.body[0].path.parts[0],h=r.inverse&&1===r.inverse.body.length&&"BlockStatement"===r.inverse.body[0].type&&"if"===r.inverse.body[0].path.parts[0],m=h?function(e){return e}:ns;if(r.inverse)return Yo([D?Yo(["{{else ",ls(e,n),"}}"]):ps(e,n),ns(Yo([Zo,e.call(n,"program")])),r.inverse&&!h?Yo([Zo,"{{else}}"]):"",r.inverse?m(Yo([Zo,e.call(n,"inverse")])):"",D?"":Yo([Zo,fs(e,n)])]);if(D)return Yo([Yo(["{{else ",ls(e,n),"}}"]),ns(Yo([Zo,e.call(n,"program")]))]);var g=r.program.body.some(function(e){return!ds(e)});return Yo([ps(e,n),ts(Yo([ns(Yo([Qo,e.call(n,"program")])),g?Zo:Qo,fs(e,n)]))]);case"ElementModifierStatement":case"MustacheStatement":var y=e.getParentNode(1),v=y&&"ConcatStatement"===y.type;return ts(Yo([!1===r.escaped?"{{{":"{{",ls(e,n,{group:!1}),v?"":Qo,!1===r.escaped?"}}}":"}}"]));case"SubExpression":var E=ss(e,n),C=E.length>0?ns(Yo([es,ts(Ko(es,E))])):"";return ts(Yo(["(",os(e,n),C,Qo,")"]));case"AttrNode":var F="TextNode"===r.value.type;if(F&&r.value.loc.start.column===r.value.loc.end.column)return Yo([r.name]);var b=e.call(n,"value"),x=F?is(b.parts.join(),t):b;return Yo([r.name,"=",x]);case"ConcatStatement":return Yo(['"',ts(ns(Ko(Qo,e.map(function(e){return n(e)},"parts").filter(function(e){return""!==e})))),'"']);case"Hash":return Yo([Ko(es,e.map(n,"pairs"))]);case"HashPair":return Yo([r.key,"=",e.call(n,"value")]);case"TextNode":var S=!Ds(e),w=!hs(e),B=!/\S/.test(r.chars),T=ys(r.chars),k="Block"===e.getParentNode(0).type,O="ElementNode"===e.getParentNode(0).type,N="Template"===e.getParentNode(0).type,P=function(e){return ys(((e="string"==typeof e?e:"").match(/^([^\S\r\n]*[\r\n])+/g)||[])[0]||"")}(r.chars),I=function(e){return ys(((e="string"==typeof e?e:"").match(/([\r\n][^\S\r\n]*)+$/g)||[])[0]||"")}(r.chars);if((S||w)&&B&&(k||O||N))return"";B&&T?(P=Math.min(T,2),I=0):((gs(e,"ElementNode")||gs(e,"BlockStatement"))&&(I=Math.max(I,1)),(ms(e,["ElementNode"])||ms(e,["BlockStatement"]))&&(P=Math.max(P,1)));var j="",L="";if(e.stack.indexOf("attributes")>=0){var _=e.getParentNode(0);if("ConcatStatement"===_.type){var M=_.parts,R=M.indexOf(r);R>0&&"MustacheStatement"===M[R-1].type&&(j=" "),R-1?"--":"";return Yo(["{{!",q,r.value,q,"}}"]);case"PathExpression":return r.original;case"BooleanLiteral":return String(r.value);case"CommentStatement":return Yo(["\x3c!--",r.value,"--\x3e"]);case"StringLiteral":return is(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){if(""===e.chars.replace(/\s+/,""))return null;t.chars=e.chars.replace(/^\s+/,"").replace(/\s+$/,"")}}},Cs=["hbs","htmlbars"],As=[".handlebars",".hbs"],Fs={languages:[yo(lt(Object.freeze({__proto__:null,name:"Handlebars",type:"markup",group:"HTML",aliases:Cs,extensions:As,tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155,default:{name:"Handlebars",type:"markup",group:"HTML",aliases:Cs,extensions:As,tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155}})),function(e){return Object.assign(e,{since:null,parsers:["glimmer"],vscodeLanguageIds:["handlebars"]})})],printers:{glimmer:Es}},bs=["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],xs=["title"],Ss=["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],ws=["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],Bs=["autoplay","controls","crossorigin","loop","muted","preload","src"],Ts=["href","target"],ks=["color","face","size"],Os=["dir"],Ns=["cite"],Ps=["alink","background","bgcolor","link","text","vlink"],Is=["clear"],js=["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],Ls=["height","width"],_s=["align"],Ms=["align","char","charoff","span","valign","width"],Rs=["align","char","charoff","span","valign","width"],qs=["value"],Vs=["cite","datetime"],Us=["open"],Ws=["title"],$s=["open"],Js=["compact"],zs=["align"],Gs=["compact"],Xs=["height","src","type","width"],Hs=["disabled","form","name"],Ys=["color","face","size"],Ks=["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],Qs=["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],Zs=["cols","rows"],el=["align"],tl=["align"],nl=["align"],rl=["align"],ul=["align"],al=["align"],il=["profile"],ol=["align","noshade","size","width"],sl=["manifest","version"],ll=["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],cl=["align","alt","border","crossorigin","decoding","height","hspace","ismap","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],pl=["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"],fl=["cite","datetime"],dl=["prompt"],Dl=["accesskey","for","form"],hl=["accesskey","align"],ml=["type","value"],gl=["as","charset","color","crossorigin","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],yl=["name"],vl=["compact"],El=["charset","content","http-equiv","name","scheme"],Cl=["high","low","max","min","optimum","value"],Al=["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],Fl=["compact","reversed","start","type"],bl=["disabled","label"],xl=["disabled","label","selected","value"],Sl=["for","form","name"],wl=["align"],Bl=["name","type","value","valuetype"],Tl=["width"],kl=["max","value"],Ol=["cite"],Nl=["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],Pl=["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],Il=["name"],jl=["media","sizes","src","srcset","type"],Ll=["media","nonce","title","type"],_l=["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],Ml=["align","char","charoff","valign"],Rl=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],ql=["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],Vl=["align","char","charoff","valign"],Ul=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],Wl=["align","char","charoff","valign"],$l=["datetime"],Jl=["align","bgcolor","char","charoff","valign"],zl=["default","kind","label","src","srclang"],Gl=["compact","type"],Xl=["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"],Hl=lt(Object.freeze({__proto__:null,a:bs,abbr:xs,applet:Ss,area:ws,audio:Bs,base:Ts,basefont:ks,bdo:Os,blockquote:Ns,body:Ps,br:Is,button:js,canvas:Ls,caption:_s,col:Ms,colgroup:Rs,data:qs,del:Vs,details:Us,dfn:Ws,dialog:$s,dir:Js,div:zs,dl:Gs,embed:Xs,fieldset:Hs,font:Ys,form:Ks,frame:Qs,frameset:Zs,h1:el,h2:tl,h3:nl,h4:rl,h5:ul,h6:al,head:il,hr:ol,html:sl,iframe:ll,img:cl,input:pl,ins:fl,isindex:dl,label:Dl,legend:hl,li:ml,link:gl,map:yl,menu:vl,meta:El,meter:Cl,object:Al,ol:Fl,optgroup:bl,option:xl,output:Sl,p:wl,param:Bl,pre:Tl,progress:kl,q:Ol,script:Nl,select:Pl,slot:Il,source:jl,style:Ll,table:_l,tbody:Ml,td:Rl,textarea:ql,tfoot:Vl,th:Ul,thead:Wl,time:$l,tr:Jl,track:zl,ul:Gl,video:Xl,default:{"*":["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:bs,abbr:xs,applet:Ss,area:ws,audio:Bs,base:Ts,basefont:ks,bdo:Os,blockquote:Ns,body:Ps,br:Is,button:js,canvas:Ls,caption:_s,col:Ms,colgroup:Rs,data:qs,del:Vs,details:Us,dfn:Ws,dialog:$s,dir:Js,div:zs,dl:Gs,embed:Xs,fieldset:Hs,font:Ys,form:Ks,frame:Qs,frameset:Zs,h1:el,h2:tl,h3:nl,h4:rl,h5:ul,h6:al,head:il,hr:ol,html:sl,iframe:ll,img:cl,input:pl,ins:fl,isindex:dl,label:Dl,legend:hl,li:ml,link:gl,map:yl,menu:vl,meta:El,meter:Cl,object:Al,ol:Fl,optgroup:bl,option:xl,output:Sl,p:wl,param:Bl,pre:Tl,progress:kl,q:Ol,script:Nl,select:Pl,slot:Il,source:jl,style:Ll,table:_l,tbody:Ml,td:Rl,textarea:ql,tfoot:Vl,th:Ul,thead:Wl,time:$l,tr:Jl,track:zl,ul:Gl,video:Xl}})),Yl={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"},Kl={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function Ql(e){var t=Object.create(null),n=!0,r=!1,u=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0)t[a.value]=!0}catch(o){r=!0,u=o}finally{try{n||null==i.return||i.return()}finally{if(r)throw u}}return t}function Zl(e,t){return!("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&&-1===["template","style","script","html"].indexOf(e.fullName)||!(!pc(e)||!e.children.some(function(e){return"text"!==e.type&&"interpolation"!==e.type}))}function ec(e){return"attribute"!==e.type&&!tc(e)&&!!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 tc(e){return"text"===e.type||"comment"===e.type}function nc(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName)}function rc(e){return"yaml"===e.type||"toml"===e.type}function uc(e){return fc(e).startsWith("pre")}function ac(e){return"element"===e.type&&0!==e.children.length&&(-1!==["html","head","ul","ol","select"].indexOf(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function ic(e){return oc(e)&&sc(e)}function oc(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function lc(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return-1!==["script","select"].indexOf(e.name)}return!1}function cc(e){return"block"===e||"list-item"===e||e.startsWith("table")}function pc(e){return fc(e).startsWith("pre")}function fc(e){return"element"===e.type&&!e.namespace&&Kl[e.name]||"normal"}function dc(e){var t=1/0,n=!0,r=!1,u=void 0;try{for(var a,i=e.split("\n")[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var o=a.value;if(0!==o.length){if(/\S/.test(o[0]))return 0;var s=o.match(/^\s*/)[0].length;o.length!==s&&s")})},function(e,t){if("html"===t.parser)return e;var n=/\{\{([\s\S]+?)\}\}/g;return e.map(function(e){if(!function(e){return e.children&&!nc(e)}(e))return e;var t=[],r=!0,u=!1,a=void 0;try{for(var i,o=e.children[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;if("text"===s.type)for(var l=s.sourceSpan.constructor,c=s.sourceSpan.start,p=null,f=s.value.split(n),d=0;d$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset))})})},function(e){return e.map(function(e){return e.children?e.clone(0===e.children.length?{isDanglingSpaceSensitive:Ec(e)}:{children:e.children.map(function(e){return Object.assign({},e,{isLeadingSpaceSensitive:Ac(e),isTrailingSpaceSensitive:Fc(e)})}).map(function(e,t,n){return Object.assign({},e,{isLeadingSpaceSensitive:(0===t||n[t-1].isTrailingSpaceSensitive)&&e.isLeadingSpaceSensitive,isTrailingSpaceSensitive:(t===n.length-1||n[t+1].isLeadingSpaceSensitive)&&e.isTrailingSpaceSensitive})})}):e})},function(e){var t=function(e){return"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(function(e){if(e.children){var n=e.children.map(t);if(n.some(Boolean)){for(var r=[],u=0;u")+a.firstChild.value+"".concat(a.rawName,">")+o.value,sourceSpan:new s(i.sourceSpan.start,o.sourceSpan.end),isTrailingSpaceSensitive:l,hasTrailingSpaces:c}))}else r.push(a)}return e.clone({children:r})}}return e})}],xc=$u.builders,Sc=xc.concat,wc=xc.group,Bc=st(function(e){var t,n;t=it,n=function(){return function(e,t){var n=t&&t.logger||console;function r(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function u(t){var n,r=t.exec(e.substring(g));if(r)return g+=(n=r[0]).length,n}for(var a,i,o,s,l,c=e.length,p=/^[ \t\n\r\u000c]+/,f=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,D=/[,]+$/,h=/^\d+$/,m=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,g=0,y=[];;){if(u(f),g>=c)return y;a=u(d),i=[],","===a.slice(-1)?(a=a.replace(D,""),E()):v()}function v(){for(u(p),o="",s="in descriptor";;){if(l=e.charAt(g),"in descriptor"===s)if(r(l))o&&(i.push(o),o="",s="after descriptor");else{if(","===l)return g+=1,o&&i.push(o),void E();if("("===l)o+=l,s="in parens";else{if(""===l)return o&&i.push(o),void E();o+=l}}else if("in parens"===s)if(")"===l)o+=l,s="in descriptor";else{if(""===l)return i.push(o),void E();o+=l}else if("after descriptor"===s)if(r(l));else{if(""===l)return void E();s="in descriptor",g-=1}g+=1}}function E(){var t,r,u,o,s,l,c,p,f,d=!1,D={};for(o=0;o1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=0,r=e.stack.length-1;r>=0;r--){var u=e.stack[r];u&&"object"===o(u)&&!Array.isArray(u)&&t(u)&&n++}return n},Qc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dc(e);return 0===t?e:e.split("\n").map(function(e){return e.slice(t)}).join("\n")},Zc=Dc,ep=function(e){return ac(e)||"element"===e.type&&0!==e.children.length&&(-1!==["body","script","style"].indexOf(e.name)||e.children.some(function(e){return function(e){return e.children&&e.children.some(function(e){return"text"!==e.type})}(e)}))||e.firstChild&&e.firstChild===e.lastChild&&oc(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||sc(e.lastChild))},tp=function(e){return rc(e)||e.next&&e.sourceSpan.end.line+1\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName)}}function Tp(e){switch(e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--"}}function kp(e,t){if(sp(e,t))return"";switch(e.type){case"ieConditionalComment":return"\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function Np(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.value;return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?pp(t,Gc):pp(Qc(t.replace(/^\s*?\n|\n\s*?$/g,"")),Uc):Jc(zc,t.split(/[\t\n\f\r ]+/)).parts}var Pp={preprocess:function(e,t){var n=!0,r=!1,u=void 0;try{for(var a,i=bc[Symbol.iterator]();!(n=(a=i.next()).done);n=!0)e=(0,a.value)(e,t)}catch(o){r=!0,u=o}finally{try{n||null==i.return||i.return()}finally{if(r)throw u}}return e},print:function(e,t,n){var r,u=e.getValue();switch(u.type){case"root":return Ic.concat([Vc(dp(e,t,n)),Uc]);case"element":case"ieConditionalComment":var a=1===u.children.length&&"interpolation"===u.firstChild.type&&u.firstChild.isLeadingSpaceSensitive&&!u.firstChild.hasLeadingSpaces&&u.lastChild.isTrailingSpaceSensitive&&!u.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id");return fp([Vc(fp([Vc(Dp(e,t,n),{id:i}),0===u.children.length?u.hasDanglingSpaces&&u.isDanglingSpaceSensitive?zc:"":fp([ep(u)?Mc:"",(r=fp([a?Wc(Hc,"",{groupId:i}):u.firstChild.hasLeadingSpaces&&u.firstChild.isLeadingSpaceSensitive?zc:"text"===u.firstChild.type&&u.isWhitespaceSensitive&&u.isIndentationSensitive?Rc(Hc):Hc,dp(e,t,n)]),a?Wc($c(r),r,{groupId:i}):up(u)&&"root"===u.parent.type&&"vue"===t.parser&&!t.vueIndentScriptAndStyle?r:$c(r)),(u.next?Ap(u.next):Fp(u.parent))?u.lastChild.hasTrailingSpaces&&u.lastChild.isTrailingSpaceSensitive?" ":"":a?Wc(Hc,"",{groupId:i}):u.lastChild.hasTrailingSpaces&&u.lastChild.isTrailingSpaceSensitive?zc:("comment"===u.lastChild.type||"text"===u.lastChild.type&&u.isWhitespaceSensitive&&u.isIndentationSensitive)&&new RegExp("\\n\\s{".concat(t.tabWidth*Kc(e,function(e){return e.parent&&"root"!==e.parent.type}),"}$")).test(u.lastChild.value)?"":Hc])])),gp(u,t)]);case"ieConditionalStartComment":case"ieConditionalEndComment":return fp([hp(u),vp(u)]);case"interpolation":return fp([hp(u,t),fp(e.map(n,"children")),vp(u,t)]);case"text":if("interpolation"===u.parent.type){var o=/\n[^\S\n]*?$/,s=o.test(u.value),l=s?u.value.replace(o,""):u.value;return fp([fp(pp(l,Gc)),s?Uc:""])}return qc(ip([].concat(xp(u,t),Np(u),wp(u,t))));case"docType":return fp([Vc(fp([hp(u,t)," ",u.value.replace(/^html\b/i,"html").replace(/\s+/g," ")])),vp(u,t)]);case"comment":return fp([xp(u,t),fp(pp(t.originalText.slice(t.locStart(u),t.locEnd(u)),Gc)),wp(u,t)]);case"attribute":if(null===u.value)return u.rawName;var c=cp(u.value),p=Yc(c,"'")|^function\s*\(/.test(t)||/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/.test(t)}(c)?l(c,{parser:"__js_expression"}):Lc(l(c,{parser:"__vue_event_binding"})))}if(r(["^:","^v-bind:"]))return s(l(u(),{parser:"__vue_expression"}));if(r(["^v-"]))return s(l(u(),{parser:"__js_expression"}))}if("angular"===n.parser){var p=function(e,t){return l(e,Object.assign({trailingComma:"none"},t))};if(r(["^\\(.+\\)$","^on-"]))return s(p(u(),{parser:"__ng_action"}));if(r(["^\\[.+\\]$","^bind(on)?-"]))return s(p(u(),{parser:"__ng_binding"}));if(r(["^i18n(-.+)?$"]))return o(qc(Np(e,u())));if(r(["^\\*"]))return s(p(u(),{parser:"__ng_directive"}));var f=/\{\{([\s\S]+?)\}\}/g,d=u();if(f.test(d)){var D=[];return d.split(f).forEach(function(e,t){if(t%2==0)D.push(fp(pp(e,Gc)));else try{D.push(Vc(fp(["{{",$c(fp([zc,p(e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})])),zc,"}}"])))}catch(n){D.push("{{",fp(pp(e,Gc)),"}}")}}),Vc(fp(D))}}return null}(u,function(e,t){return n(e,Object.assign({__isInHtmlAttribute:!0},t))},r);if(o)return fp([u.rawName,'="',Vc(_c(o,function(e){return"string"==typeof e?e.replace(/"/g,"""):e})),'"']);break;case"yaml":return Xc(fp(["---",Uc,0===u.value.trim().length?"":n(u.value,{parser:"yaml"}),"---"]))}}},Ip=["xhtml"],jp=[".html",".htm",".html.hl",".inc",".st",".xht",".xhtml"],Lp=Object.freeze({__proto__:null,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:Ip,extensions:jp,languageId:146,default:{name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:Ip,extensions:jp,languageId:146}}),_p=[".vue"],Mp=Object.freeze({__proto__:null,name:"Vue",type:"markup",color:"#2c3e50",extensions:_p,tmScope:"text.html.vue",aceMode:"html",languageId:391,default:{name:"Vue",type:"markup",color:"#2c3e50",extensions:_p,tmScope:"text.html.vue",aceMode:"html",languageId:391}}),Rp=lt(Lp),qp=lt(Mp),Vp={languages:[yo(Rp,function(e){return Object.assign(e,{name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]})}),yo(Rp,function(e){return Object.assign(e,{since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:e.extensions.concat([".mjml"])})}),yo(Rp,function(e){return Object.assign(e,{name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]})}),yo(qp,function(e){return Object.assign(e,{since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]})})],printers:{html:Pp},options:{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."}}},Up=Ju.addLeadingComment,Wp=Ju.addTrailingComment,$p=Ju.addDanglingComment;function Jp(e,t){var n=e.body.filter(function(e){return"EmptyStatement"!==e.type});0===n.length?$p(e,t):Up(n[0],t)}function zp(e,t){"BlockStatement"===e.type?Jp(e,t):Up(e,t)}function Gp(e,t,n,r,u,a){return!(!n||"IfStatement"!==n.type||!r||(")"===Au.getNextNonSpaceNonCommentCharacter(e,u,a.locEnd)?(Wp(t,u),0):t===n.consequent&&r===n.alternate?("BlockStatement"===t.type?Wp(t,u):$p(n,u),0):"BlockStatement"===r.type?(Jp(r,u),0):"IfStatement"===r.type?(zp(r.consequent,u),0):n.consequent!==r||(Up(r,u),0)))}function Xp(e,t,n,r,u,a){return!(!n||"WhileStatement"!==n.type||!r||(")"===Au.getNextNonSpaceNonCommentCharacter(e,u,a.locEnd)?(Wp(t,u),0):"BlockStatement"!==r.type||(Jp(r,u),0)))}function Hp(e,t,n,r){return!(!e||"TryStatement"!==e.type&&"CatchClause"!==e.type||!n||("CatchClause"===e.type&&t?(Wp(t,r),0):"BlockStatement"===n.type?(Jp(n,r),0):"TryStatement"===n.type?(zp(n.finalizer,r),0):"CatchClause"!==n.type||(zp(n.body,r),0)))}function Yp(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?Wp(e.decorators[e.decorators.length-1],r):Up(e,r),0))}function Kp(e,t,n,r,u){return(t&&n&&("Property"===t.type||"MethodDefinition"===t.type)&&"Identifier"===n.type&&t.key===n&&":"!==Au.getNextNonSpaceNonCommentCharacter(e,n,u.locEnd)||!(!n||!t||"Decorator"!==n.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"MethodDefinition"!==t.type))&&(Wp(n,r),!0)}function Qp(e,t,n,r,u,a){if(t&&"FunctionTypeParam"===t.type&&n&&"FunctionTypeAnnotation"===n.type&&r&&"FunctionTypeParam"!==r.type)return Wp(t,u),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&n&&("ArrowFunctionExpression"===n.type||"FunctionExpression"===n.type||"FunctionDeclaration"===n.type||"ObjectMethod"===n.type||"ClassMethod"===n.type)&&")"===Au.getNextNonSpaceNonCommentCharacter(e,u,a.locEnd))return Wp(t,u),!0;if(n&&"FunctionDeclaration"===n.type&&r&&"BlockStatement"===r.type){var i=function(){if(0!==n.params.length)return Au.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,a.locEnd(Au.getLast(n.params)));var t=Au.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,a.locEnd(n.id));return Au.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,t+1)}();if(a.locStart(u)>i)return Jp(r,u),!0}return!1}function Zp(e,t){return!(!e||"ImportSpecifier"!==e.type||(Up(e,t),0))}function ef(e,t,n,r){return t&&t.body&&0===t.body.length?(r?$p(t,n):Up(t,n),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length||(r?$p(e,n):Up(e,n),0))}var tf={handleOwnLineComment:function(e,t,n,r,u){var a=e.precedingNode,i=e.enclosingNode,o=e.followingNode;return!!(Qp(t,a,i,o,e,n)||function(e,t,n){return!(!e||"MemberExpression"!==e.type&&"OptionalMemberExpression"!==e.type||!t||"Identifier"!==t.type||(Up(e,n),0))}(i,o,e)||Gp(t,a,i,o,e,n)||Xp(t,a,i,o,e,n)||Hp(i,a,o,e)||Yp(i,0,o,e)||Zp(i,e)||function(e,t,n){return!(!e||"ForInStatement"!==e.type&&"ForOfStatement"!==e.type||(Up(e,n),0))}(i,0,e)||function(e,t,n,r){return!(!t||"UnionTypeAnnotation"!==t.type&&"TSUnionType"!==t.type||(Wp(e,r),0))}(a,i,0,e)||ef(i,r,e,u)||function(e,t,n,r,u){return!!(n&&"ImportSpecifier"===n.type&&t&&"ImportDeclaration"===t.type&&Au.hasNewline(e,u.locEnd(r)))&&(Wp(n,r),!0)}(t,i,a,e,n)||function(e,t){return!(!e||"AssignmentPattern"!==e.type||(Up(e,t),0))}(i,e)||Kp(t,i,a,e,n))},handleEndOfLineComment:function(e,t,n,r,u){var a=e.precedingNode,i=e.enclosingNode,o=e.followingNode;return!!(Qp(t,a,i,o,e,n)||function(e,t,n,r,u,a){var i=t&&!Au.hasNewlineInRange(u,a.locEnd(t),a.locStart(r));return!(t&&i||!e||"ConditionalExpression"!==e.type||!n||(Up(n,r),0))}(i,a,o,e,t,n)||Zp(i,e)||Gp(t,a,i,o,e,n)||Xp(t,a,i,o,e,n)||Hp(i,a,o,e)||Yp(i,0,o,e)||function(e,t){return!(!e||"LabeledStatement"!==e.type||(Up(e,t),0))}(i,e)||function(e,t,n){return!!(t&&("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&e&&t.callee===e&&t.arguments.length>0)&&(Up(t.arguments[0],n),!0)}(a,i,e)||function(e,t){return!(!e||"Property"!==e.type&&"ObjectProperty"!==e.type||(Up(e,t),0))}(i,e)||ef(i,r,e,u)||function(e,t,n){return!(!e||"TypeAlias"!==e.type||(Up(e,n),0))}(i,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||(Up(t,n),0))}(i,o,e))},handleRemainingComment:function(e,t,n,r,u){var a=e.precedingNode,i=e.enclosingNode,o=e.followingNode;return!!(Gp(t,a,i,o,e,n)||Xp(t,a,i,o,e,n)||function(e,t,n){return!(!e||"ObjectProperty"!==e.type&&"Property"!==e.type||!e.shorthand||e.key!==t||"AssignmentPattern"!==e.value.type||(Wp(e.value.left,n),0))}(i,a,e)||function(e,t,n,r){return!(")"!==Au.getNextNonSpaceNonCommentCharacter(e,n,r.locEnd)||(!t||("FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ArrowFunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"ObjectMethod"!==t.type||0!==t.params.length)&&("CallExpression"!==t.type&&"OptionalCallExpression"!==t.type&&"NewExpression"!==t.type||0!==t.arguments.length)?!t||"MethodDefinition"!==t.type||0!==t.value.params.length||($p(t.value,n),0):($p(t,n),0)))}(t,i,e,n)||Kp(t,i,a,e,n)||ef(i,r,e,u)||function(e,t,n,r){if(!t||"ArrowFunctionExpression"!==t.type)return!1;var u=Ju.getNextNonSpaceNonCommentCharacterIndex(e,n,r);return"=>"===e.substr(u,2)&&($p(t,n),!0)}(t,i,e,n)||function(e,t,n,r,u){return!("("!==Au.getNextNonSpaceNonCommentCharacter(e,r,u.locEnd)||!n||!t||"FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"MethodDefinition"!==t.type&&"ObjectMethod"!==t.type||(Wp(n,r),0))}(t,i,a,e,n)||function(e,t,n,r,u){return!(!t||"TSMappedType"!==t.type||(r&&"TSTypeParameter"===r.type&&r.name?(Up(r.name,u),0):!n||"TSTypeParameter"!==n.type||!n.constraint||(Wp(n.constraint,u),0)))}(0,i,a,o,e)||function(e,t){return!(!e||"ContinueStatement"!==e.type&&"BreakStatement"!==e.type||e.label||(Wp(e,t),0))}(i,e))},hasLeadingComment:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some(function(e){return e.leading&&t(e)})},isBlockComment:function(e){return"Block"===e.type||"CommentBlock"===e.type}},nf=tf.isBlockComment,rf=tf.hasLeadingComment,uf=$u.builders,af=uf.indent,of=uf.join,sf=uf.hardline,lf=uf.softline,cf=uf.literalline,pf=uf.concat,ff=uf.group,df=uf.dedentToRoot,Df=$u.utils,hf=Df.mapDoc,mf=Df.stripTrailingHardline;function gf(e){return e.replace(/([\\`]|\$\{)/g,"\\$1")}function yf(e,t){return hf(e,function(e){if(!e.parts)return e;var n=[];return e.parts.forEach(function(e){n.push("string"==typeof e?t?e.replace(/(\\*)`/g,"$1$1\\`"):gf(e):e)}),Object.assign({},e,{parts:n})})}function vf(e){var t=[],n=!1;return e.map(function(e){return e.trim()}).forEach(function(e,r,u){""!==e&&(t.push(""===u[r-1]&&n?pf([sf,e]):e),n=!0)}),0===t.length?null:of(sf,t)}function Ef(e){var t=e.getValue(),n=e.getParentNode(),r=e.getParentNode(1);return r&&t.quasis&&"JSXExpressionContainer"===n.type&&"JSXElement"===r.type&&"style"===r.openingElement.name.name&&r.openingElement.attributes.some(function(e){return"jsx"===e.name.name})||n&&"TaggedTemplateExpression"===n.type&&"Identifier"===n.tag.type&&"css"===n.tag.name||n&&"TaggedTemplateExpression"===n.type&&"MemberExpression"===n.tag.type&&"css"===n.tag.object.name&&("global"===n.tag.property.name||"resolve"===n.tag.property.name)}function Cf(e){return wf(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"ArrayExpression"===e.type&&"elements"===t},function(e,t){return"Property"===e.type&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t}].concat([function(e,t){return"ObjectExpression"===e.type&&"properties"===t},function(e,t){return"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t},function(e,t){return"Decorator"===e.type&&"expression"===t}]))}function Af(e){var t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;var n=t.tag;switch(n.type){case"MemberExpression":return bf(n.object)||xf(n);case"CallExpression":return bf(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(bf(n.callee.object.object)||xf(n.callee.object))||"CallExpression"===n.callee.object.type&&bf(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}function Ff(e){var t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}function bf(e){return"Identifier"===e.type&&"styled"===e.name}function xf(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function Sf(e,t){return rf(e,function(e){return nf(e)&&e.value===" ".concat(t," ")})}function wf(e,t){var n=e.stack.slice(),r=null,u=n.pop(),a=!0,i=!1,o=void 0;try{for(var s,l=t[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value;if(void 0===u)return!1;if("number"==typeof r&&(r=n.pop(),u=n.pop()),!c(u,r))return!1;r=n.pop(),u=n.pop()}}catch(p){i=!0,o=p}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}return!0}var Bf=0;function Tf(e){return"LogicalExpression"===e.type&&"LogicalExpression"===e.right.type&&e.operator===e.right.operator}function kf(e){return Tf(e)?kf({type:"LogicalExpression",operator:e.operator,left:kf({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,loc:{}}),right:e.right.right,loc:{}}):e}var Of=Au.getLast,Nf=Au.hasNewline,Pf=Au.hasNewlineInRange,If=Au.hasIgnoreComment,jf=Au.hasNodeIgnoreComment,Lf=Au.skipWhitespace,_f=yr.keyword.isIdentifierNameES5,Mf=new RegExp("^".concat("(?:(?=.)\\s)","*:")),Rf=new RegExp("^".concat("(?:(?=.)\\s)","*::"));function qf(e,t){if(!e||"object"!==o(e))return!1;if(Array.isArray(e))return e.some(function(e){return qf(e,t)});var n=t(e);return"boolean"==typeof n?n:Object.keys(e).some(function(n){return qf(e[n],t)})}function Vf(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}function Uf(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 Wf(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function $f(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}function Jf(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function zf(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 Gf(e){return"JSXElement"===e.type||"JSXFragment"===e.type}function Xf(e){return"get"===e.kind||"set"===e.kind}function Hf(e,t,n){return n.locStart(e)===n.locStart(t)}function Yf(e,t){return Xf(e)||Hf(e,e.value,t)}var Kf=/^(skip|[fx]?(it|describe|test))$/;function Qf(e){return"CallExpression"===e.type||"OptionalCallExpression"===e.type}var Zf=new RegExp("([ \n\r\t]+)"),ed=new RegExp("[^ \n\r\t]");function td(e){return Uf(e)&&(ed.test(ud(e))||!/\n/.test(ud(e)))}function nd(e,t,n){return Gf(t)?jf(t):t.comments&&t.comments.some(function(t){return t.leading&&Nf(e,n.locEnd(t))})}function rd(e){return e.quasis.some(function(e){return e.value.raw.includes("\n")})}function ud(e){return e.extra?e.extra.raw:e.raw}var ad={classChildNeedsASIProtection:function(e){if(e){if(e.static||e.accessibility)return!1;if(!e.computed){var t=e.key&&e.key.name;if("in"===t||"instanceof"===t)return!0}switch(e.type){case"ClassProperty":case"TSAbstractClassProperty":return e.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":return!((e.value?e.value.async:e.async)||"get"===e.kind||"set"===e.kind||!e.computed&&!(e.value?e.value.generator:e.generator));case"TSIndexSignature":return!0;default:return!1}}},classPropMayCauseASIProblems:function(e){var t=e.getNode();if("ClassProperty"!==t.type)return!1;var 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){var t=[];return function e(n){"ConditionalExpression"===n.type?(e(n.test),e(n.consequent),e(n.alternate)):t.push(n)}(e),t}(e).find(Gf))},getFlowVariance:function(e){if(!e.variance)return null;var 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)},getTypeScriptMappedTypeModifier:function(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t},hasDanglingComments:function(e){return e.comments&&e.comments.some(function(e){return!e.leading&&!e.trailing})},hasFlowAnnotationComment:function(e){return e&&e[0].value.match(Rf)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&e.trailingComments&&e.trailingComments[0].value.match(Mf)},hasLeadingComment:function(e){return e.comments&&e.comments.some(function(e){return e.leading})},hasLeadingOwnLineComment:nd,hasNakedLeftSide:Vf,hasNewlineBetweenOrAfterDecorators:function(e,t){return Pf(t.originalText,t.locStart(e.decorators[0]),t.locEnd(Of(e.decorators)))||Nf(t.originalText,t.locEnd(Of(e.decorators)))},hasNgSideEffect:function(e){return qf(e.getValue(),function(e){switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})},hasNode:qf,hasPrettierIgnore:function(e){return If(e)||function(e){var t=e.getValue(),n=e.getParentNode();if(!(n&&t&&Gf(t)&&Gf(n)))return!1;for(var r=null,u=n.children.indexOf(t);u>0;u--){var a=n.children[u-1];if("JSXText"!==a.type||td(a)){r=a;break}}return r&&"JSXExpressionContainer"===r.type&&"JSXEmptyExpression"===r.expression.type&&r.expression.comments&&r.expression.comments.find(function(e){return"prettier-ignore"===e.value.trim()})}(e)},hasTrailingComment:function(e){return e.comments&&e.comments.some(function(e){return e.trailing})},identity:function(e){return e},isBinaryish:function(e){return"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type},isCallOrOptionalCallExpression:Qf,isEmptyJSXElement:function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;var t=e.children[0];return Uf(t)&&!td(t)},isFlowAnnotationComment:function(e,t,n){var r=n.locStart(t),u=Lf(e,n.locEnd(t));return"/*"===e.substr(r,2)&&"*/"===e.substr(u,2)},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;var t=0,n=!0,r=!1,u=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var o=a.value;if(Jf(o)){if((t+=1)>1)return!0}else if(Qf(o)){var s=!0,l=!1,c=void 0;try{for(var p,f=o.arguments[Symbol.iterator]();!(s=(p=f.next()).done);s=!0)if(Jf(p.value))return!0}catch(d){l=!0,c=d}finally{try{s||null==f.return||f.return()}finally{if(l)throw c}}}}}catch(d){r=!0,u=d}finally{try{n||null==i.return||i.return()}finally{if(r)throw u}}return!1},isFunctionNotation:Yf,isFunctionOrArrowExpression:Jf,isGetterOrSetter:Xf,isJestEachTemplateLiteral:function(e,t){var n=/^[xf]?(describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&n.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&n.test(t.tag.object.object.name))},isJSXNode:Gf,isJSXWhitespaceExpression:function(e){return"JSXExpressionContainer"===e.type&&Uf(e.expression)&&" "===e.expression.value&&!e.expression.comments},isLastStatement:function(e){var t=e.getParentNode();if(!t)return!0;var n=e.getValue(),r=(t.body||t.consequent).filter(function(e){return"EmptyStatement"!==e.type});return r&&r[r.length-1]===n},isLiteral:Uf,isLongCurriedCallExpression:function(e){var t=e.getValue(),n=e.getParentNode();return Qf(t)&&Qf(n)&&n.callee===t&&t.arguments.length>n.arguments.length&&n.arguments.length>0},isMeaningfulJSXText:td,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:Wf,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||Yf(e,t))},isSimpleFlowType:function(e){return e&&-1!==["AnyTypeAnnotation","NullLiteralTypeAnnotation","GenericTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation","BooleanTypeAnnotation","BooleanLiteralTypeAnnotation","StringTypeAnnotation"].indexOf(e.type)&&!("GenericTypeAnnotation"===e.type&&e.typeParameters)},isSimpleTemplateLiteral:function(e){return 0!==e.expressions.length&&e.expressions.every(function(e){if(e.comments)return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if("MemberExpression"===e.type||"OptionalMemberExpression"===e.type){for(var t=e;"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).comments)return!1}return"Identifier"===t.type||"ThisExpression"===t.type}return!1})},isStringLiteral:$f,isStringPropSafeToCoerceToIdentifier:function(e,t){return $f(e.key)&&_f(e.key.value)&&"json"!==t.parser&&!("typescript"===t.parser&&"ClassProperty"===e.type)},isTemplateOnItsOwnLine:function(e,t,n){return("TemplateLiteral"===e.type&&rd(e)||"TaggedTemplateExpression"===e.type&&rd(e.quasi))&&!Nf(t,n.locStart(e),{backwards:!0})},isTestCall:function e(t,n){if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){if(zf(t)&&n&&e(n))return Jf(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 zf(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("Identifier"===t.callee.type&&Kf.test(t.callee.name)||("MemberExpression"===(r=t).callee.type||"OptionalMemberExpression"===r.callee.type)&&"Identifier"===r.callee.object.type&&"Identifier"===r.callee.property.type&&Kf.test(r.callee.object.name)&&("only"===r.callee.property.name||"skip"===r.callee.property.name))&&(function(e){return"TemplateLiteral"===e.type}(t.arguments[0])||$f(t.arguments[0])))return!(t.arguments[2]&&!Wf(t.arguments[2]))&&((2===t.arguments.length?Jf(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)||zf(t.arguments[1]));var r;return!1},isTheOnlyJSXElementInMarkdown:function(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;var n=t.getNode();if(!n.expression||!Gf(n.expression))return!1;var 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||Hf(e,e.typeAnnotation,t))},matchJsxWhitespaceRegex:Zf,needsHardlineAfterDanglingComment:function(e){if(!e.comments)return!1;var t=Of(e.comments.filter(function(e){return!e.leading&&!e.trailing}));return t&&!tf.isBlockComment(t)},rawText:ud,returnArgumentHasLeadingComment:function(e,t){if(nd(e.originalText,t,e))return!0;if(Vf(t))for(var n,r=t;n=(u=r).expressions?u.expressions[0]:u.left||u.test||u.callee||u.object||u.tag||u.argument||u.expression;)if(nd(e.originalText,r=n,e))return!0;var u;return!1}},id=ad.getLeftSidePathName,od=ad.hasFlowShorthandAnnotationComment,sd=ad.hasNakedLeftSide,ld=ad.hasNode;function cd(e,t){var n=e.getParentNode();if(!n)return!1;var 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)&&pd(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||"ForAwaitStatement"===e.type||"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type||"FunctionDeclaration"===e.type||"IfStatement"===e.type||"ImportDeclaration"===e.type||"InterfaceDeclaration"===e.type||"LabeledStatement"===e.type||"MethodDefinition"===e.type||"ReturnStatement"===e.type||"SwitchStatement"===e.type||"ThrowStatement"===e.type||"TryStatement"===e.type||"TSDeclareFunction"===e.type||"TSEnumDeclaration"===e.type||"TSImportEqualsDeclaration"===e.type||"TSInterfaceDeclaration"===e.type||"TSModuleDeclaration"===e.type||"TSNamespaceExportDeclaration"===e.type||"TypeAlias"===e.type||"VariableDeclaration"===e.type||"WhileStatement"===e.type||"WithStatement"===e.type}(u))return!1;if(function(e,t){var n=t.getValue();return u(n)&&(r(n)||function e(n){var a=t.getParentNode(n);return!(!a||u(a))&&(r(a)||e(n+1))}(0));function r(e){return e.comments&&e.comments.some(function(e){return e.leading&&tf.isBlockComment(e)&&function(e){var t=e.trim().split("\n").map(function(e){return e.replace(/^[\s*]+/,"")}).join(" ").trim();if(!/^@type\s*\{[^]+\}$/.test(t))return!1;var n=!1,r=0,u=!0,a=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(u=(o=s.next()).done);u=!0){var l=o.value;if("{"===l){if(n)return!1;r++}else if("}"===l){if(0===r)return!1;0==--r&&(n=!0)}}}catch(c){a=!0,i=c}finally{try{u||null==s.return||s.return()}finally{if(a)throw i}}return 0===r}(e.value)})}function u(e){return e.extra&&e.extra.parenthesized}}(0,e))return!0;if("flow"!==t.parser&&od(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 fd(e,t);if("Decorator"===n.type&&n.expression===u){for(var a=!1,i=!1,o=u;o;)switch(o.type){case"MemberExpression":i=!0,o=o.object;break;case"CallExpression":if(i||a)return!0;a=!0,o=o.callee;break;case"Identifier":return!1;default:return!0}return!0}if("ArrowFunctionExpression"===n.type&&n.body===u&&"SequenceExpression"!==u.type&&Au.startsWithNoLookaheadToken(u,!1)||"ExpressionStatement"===n.type&&Au.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;if("in"===u.operator&&function(t){for(var n=0;t;){var r=e.getParentNode(n++);if(!r)return!1;if("ForStatement"===r.type&&r.init===t)return!0;t=r}return!1}(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;var s=n.operator,l=Au.getPrecedence(s),c=u.operator,p=Au.getPrecedence(c);return l>p||(l===p&&"right"===r?(jr.strictEqual(n.right,u),!0):l===p&&!Au.shouldFlatten(s,c)||(l0||e.comments)||"ArrayExpression"===e.type&&(e.elements.length>0||e.comments)||"TSTypeAssertion"===e.type&&mh(e.expression)||"TSAsExpression"===e.type&&mh(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||dD(e.body))}function gh(e,t,n){var r=e.getValue(),u=r.arguments;if(0===u.length)return qD(["(",da.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(function(e){return e.comments}))return qD(["(",e.call(n,"arguments",0),", ",e.call(n,"arguments",1),")"]);var a=!1,i=!1,o=!1,s=u.length-1,l=e.map(function(e,r){var u=e.getNode(),l=[n(e)];return r===s||(Ld(t.originalText,u,t)?(0===r&&(o=!0),a=!0,l.push(",",WD,WD)):l.push(",",UD)),i=function(e,t){if(!e||"ArrowFunctionExpression"!==e.type||!e.body||"BlockStatement"!==e.body.type||!e.params||e.params.length<1)return!1;var r=!1;return t.each(function(e){var t=qD([n(e)]);r=r||rh(t)},"params"),r}(u,e),qD(l)},"arguments"),c=r.callee&&"Import"===r.callee.type||!lh(t,"all")?"":",";function p(){return zD(qD(["(",GD(qD([UD,qD(l)])),c,UD,")"]),{shouldBreak:!0})}if(sD(u))return p();var f=function(e){if(2!==e.length)return!1;var t=e[0],n=e[1];return!(t.comments&&t.comments.length||"FunctionExpression"!==t.type&&("ArrowFunctionExpression"!==t.type||"BlockStatement"!==t.body.type)||"FunctionExpression"===n.type||"ArrowFunctionExpression"===n.type||"ConditionalExpression"===n.type||mh(n))}(u),d=function(e){var t=xd(e),n=Od(e);return!Yd(t)&&!nD(t)&&mh(t)&&(!n||n.type!==t.type)}(u);if(f||d){var D,h=(f?l.slice(1).some(rh):l.slice(0,-1).some(rh))||a||i,m=0;e.each(function(e){f&&0===m&&(D=[qD([e.call(function(e){return n(e,{expandFirstArg:!0})}),l.length>1?",":"",o?WD:UD,o?WD:""])].concat(l.slice(1))),d&&m===u.length-1&&(D=l.slice(0,-1).concat(e.call(function(e){return n(e,{expandLastArg:!0})}))),m++},"arguments");var g=l.some(rh),y=qD(["(",qD(D),")"]);return qD([g?QD:"",HD([g||r.typeArguments||r.typeParameters?KD(p(),y):y,qD(f?["(",zD(D[0],{shouldBreak:!0}),qD(D.slice(1)),")"]:["(",qD(l.slice(0,-1)),zD(xd(D),{shouldBreak:!0}),")"]),p()],{shouldBreak:h})])}var v=qD(["(",GD(qD([$D,qD(l)])),KD(c),$D,")"]);return gD(e)?v:zD(v,{shouldBreak:l.some(rh)||a})}function yh(e,t,n){var r=e.getValue();if(!r.typeAnnotation)return"";var u=e.getParentNode(),a=r.definite||u&&"VariableDeclarator"===u.type&&u.definite,i="DeclareFunction"===u.type&&u.id===r;return oD(t.originalText,r.typeAnnotation,t)?qD([" /*: ",e.call(n,"typeAnnotation")," */"]):qD([i?"":a?"!: ":": ",e.call(n,"typeAnnotation")])}function vh(e,t,n){var r=e.getValue();return r.typeArguments?e.call(n,"typeArguments"):r.typeParameters?e.call(n,"typeParameters"):""}function Eh(e,t,n,r,u){var a=e.getValue(),i=e.getParentNode(),o=a.parameters?"parameters":"params",s=kD(i),l=Wh(a),c=r&&!(a[o]&&a[o].some(function(e){return e.comments})),p=u?vh(e,0,t):"",f=[];if(a[o]){var d=a[o].length-1;f=e.map(function(e,r){var u=[],i=e.getValue();return u.push(t(e)),r===d?a.rest&&u.push(",",UD):s||l||c?u.push(", "):Ld(n.originalText,i,n)?u.push(",",WD,WD):u.push(",",UD),qD(u)},o)}if(a.rest&&f.push(qD(["...",e.call(t,"rest")])),0===f.length)return qD([p,"(",da.printDanglingComments(e,n,!0,function(e){return")"===Ad(n.originalText,e,n.locEnd)}),")"]);var D=xd(a[o]);if(c)return zD(qD([ih(p),"(",qD(f.map(ih)),")"]));var h=a[o].every(function(e){return!e.decorators});if(l&&h)return qD([p,"(",qD(f),")"]);if(s)return qD([p,"(",qD(f),")"]);if((bD(i,n)||PD(i,n)||"TypeAlias"===i.type||"UnionTypeAnnotation"===i.type||"TSUnionType"===i.type||"IntersectionTypeAnnotation"===i.type||"FunctionTypeAnnotation"===i.type&&i.returnType===a)&&1===a[o].length&&null===a[o][0].name&&a[o][0].typeAnnotation&&null===a.typeParameters&&xD(a[o][0].typeAnnotation)&&!a.rest)return qD("always"===n.arrowParens?["(",qD(f),")"]:f);var m=!(D&&"RestElement"===D.type||a.rest);return qD([p,"(",GD(qD([$D,qD(f)])),KD(m&&lh(n,"all")?",":""),$D,")"])}function Ch(e,t){return"always"!==t.arrowParens&&"avoid"===t.arrowParens&&!(1!==(n=e.getValue()).params.length||n.rest||n.typeParameters||Gd(n)||"Identifier"!==n.params[0].type||n.params[0].typeAnnotation||n.params[0].comments||n.params[0].optional||n.predicate||n.returnType);var n}function Ah(e,t,n){var r=e.getValue(),u=[];return r.async&&u.push("async "),u.push("function"),r.generator&&u.push("*"),r.id&&u.push(" ",e.call(t,"id")),u.push(vh(e,0,t),zD(qD([Eh(e,t,n),Fh(e,t,n)])),r.body?" ":"",e.call(t,"body")),qD(u)}function Fh(e,t,n){var r=e.getValue(),u=e.call(t,"returnType");if(r.returnType&&oD(n.originalText,r.returnType,n))return qD([" /*: ",u," */"]);var a=[u];return r.returnType&&r.returnType.typeAnnotation&&a.unshift(": "),r.predicate&&a.push(r.returnType?" ":": ",e.call(t,"predicate")),qD(a)}function bh(e,t,n){var r=e.getValue(),u=t.semi?";":"",a=["export "],i=r.default||"ExportDefaultDeclaration"===r.type;if(i&&a.push("default "),a.push(da.printDanglingComments(e,t,!0)),jD(r)&&a.push(WD),r.declaration)a.push(e.call(n,"declaration")),i&&"ClassDeclaration"!==r.declaration.type&&"FunctionDeclaration"!==r.declaration.type&&"TSInterfaceDeclaration"!==r.declaration.type&&"DeclareClass"!==r.declaration.type&&"DeclareFunction"!==r.declaration.type&&"TSDeclareFunction"!==r.declaration.type&&a.push(u);else{if(r.specifiers&&r.specifiers.length>0){var o=[],s=[],l=[];e.each(function(t){var r=e.getValue().type;"ExportSpecifier"===r?o.push(n(t)):"ExportDefaultSpecifier"===r?s.push(n(t)):"ExportNamespaceSpecifier"===r&&l.push(qD(["* as ",n(t)]))},"specifiers");var c=0!==l.length&&0!==o.length,p=0!==s.length&&(0!==l.length||0!==o.length),f=o.length>1||s.length>0||r.specifiers&&r.specifiers.some(function(e){return e.comments}),d="";0!==o.length&&(d=f?zD(qD(["{",GD(qD([t.bracketSpacing?UD:$D,VD(qD([",",UD]),o)])),KD(lh(t)?",":""),t.bracketSpacing?UD:$D,"}"])):qD(["{",t.bracketSpacing?" ":"",qD(o),t.bracketSpacing?" ":"","}"])),a.push("type"===r.exportKind?"type ":"",qD(s),qD([p?", ":""]),qD(l),qD([c?", ":""]),d)}else a.push("{}");r.source&&a.push(" from ",e.call(n,"source")),a.push(u)}return qD(a)}function xh(e,t){var n=vd(e);return n?jr.strictEqual(n.type,"DeclareExportDeclaration"):t.unshift("declare "),qD(t)}function Sh(e,t,n){var r=e.getValue();return r.modifiers&&r.modifiers.length?qD([VD(" ",e.map(n,"modifiers"))," "]):""}function wh(e,t,n,r){var u=e.getValue();if(!u[r])return"";if(!Array.isArray(u[r]))return e.call(n,r);var a=e.getNode(2),i=e.getNode(4);return null!=a&&kD(a)||0===u[r].length||1===u[r].length&&(Uh(u[r][0])||"GenericTypeAnnotation"===u[r][0].type&&Uh(u[r][0].id)||"TSTypeReference"===u[r][0].type&&Uh(u[r][0].typeName)||"NullableTypeAnnotation"===u[r][0].type||i&&"VariableDeclarator"===i.type&&a&&"TSTypeAnnotation"===a.type&&"TSUnionType"!==u[r][0].type&&"UnionTypeAnnotation"!==u[r][0].type&&"TSConditionalType"!==u[r][0].type&&"TSMappedType"!==u[r][0].type)?qD(["<",VD(", ",e.map(n,r)),">"]):zD(qD(["<",GD(qD([$D,VD(qD([",",UD]),e.map(n,r))])),KD("typescript"!==t.parser&&lh(t,"all")?",":""),$D,">"]))}function Bh(e,t,n){var 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"));var a=[];if(r.superClass){var i=qD(["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(zD(qD([UD,e.call(function(e){return da.printComments(e,function(){return i},t)},"superClass")]))):u.push(qD([" ",e.call(function(e){return da.printComments(e,function(){return i},t)},"superClass")]))}else r.extends&&r.extends.length>0&&u.push(" extends ",VD(", ",e.map(n,"extends")));return r.mixins&&r.mixins.length>0&&a.push(UD,"mixins ",zD(GD(VD(qD([",",UD]),e.map(n,"mixins"))))),r.implements&&r.implements.length>0&&a.push(UD,"implements",zD(GD(qD([UD,VD(qD([",",UD]),e.map(n,"implements"))])))),a.length>0&&u.push(zD(GD(qD(a)))),r.body&&r.body.comments&&Kd(t.originalText,r.body,t)?u.push(WD):u.push(" "),u.push(e.call(n,"body")),u}function Th(e){var t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"}function kh(e,t,n){var r=e.call(n,"property"),u=e.getValue(),a=Th(e);return u.computed?!u.property||AD(u.property)?qD([a,"[",r,"]"]):zD(qD([a,"[",GD(qD([$D,r])),$D,"]"])):qD([a,".",r])}function Oh(e,t,n){return qD(["::",e.call(n,"callee")])}function Nh(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?$D:WD:$D}function Ph(e,t,n,r){return e?WD:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?WD:$D:WD}function Ih(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&0!==e.right.properties.length||"ArrayExpression"===e.right.type&&0!==e.right.elements.length||!!dD(e.right))}function jh(e,t,n,r,u){var a=[],i=e.getValue();if(uD(i)){Cd(i.operator,i.left.operator)?a=a.concat(e.call(function(e){return jh(e,t,n,!0,u)},"left")):a.push(e.call(t,"left"));var o=Ih(i),s=("|>"===i.operator||"NGPipeExpression"===i.type||"|"===i.operator&&"__vue_expression"===n.parser)&&!Kd(n.originalText,i.right,n),l="NGPipeExpression"===i.type?"|":i.operator,c="NGPipeExpression"===i.type&&0!==i.arguments.length?zD(GD(qD([$D,": ",VD(qD([$D,":",KD(" ")]),e.map(t,"arguments").map(function(e){return XD(2,zD(e))}))]))):"",p=qD(o?[l," ",e.call(t,"right"),c]:[s?$D:"",l,s?" ":UD,e.call(t,"right"),c]),f=e.getParentNode();a.push(" ",u&&"LogicalExpression"===i.type||f.type===i.type||i.left.type===i.type||i.right.type===i.type?p:zD(p)),r&&i.comments&&(a=da.printComments(e,function(){return qD(a)},n))}else a.push(e.call(t));return a}function Lh(e,t,n,r){return Kd(r.originalText,t,r)?GD(qD([WD,n])):uD(t)&&!Ih(t)||"ConditionalExpression"===t.type&&uD(t.test)&&!Ih(t.test)||"StringLiteralTypeAnnotation"===t.type||"ClassExpression"===t.type&&t.decorators&&t.decorators.length||("Identifier"===e.type||wD(e)||"MemberExpression"===e.type)&&(wD(t)||vD(t))&&"json"!==r.parser&&"json5"!==r.parser||"SequenceExpression"===t.type?zD(GD(qD([UD,n]))):qD([" ",n])}function _h(e,t,n,r,u,a){if(!r)return t;var i=Lh(e,r,u,a);return zD(qD([t,n,i]))}function Mh(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?qD([" ",t]):GD(qD([UD,t]))}function Rh(e,t,n){var r=LD(e);return wd(r,t,n||"DirectiveLiteral"===e.type)}function qh(e){var t=e.flags.split("").sort().join("");return"/".concat(e.pattern,"/").concat(t)}function Vh(e,t){var n=e.getValue();return!!(dd(e,t)||"ParenthesizedExpression"===n.type||"TypeCastExpression"===n.type||"ArrowFunctionExpression"===n.type&&!Ch(e,t)||"ArrayExpression"===n.type||"ArrayPattern"===n.type||"UnaryExpression"===n.type&&n.prefix&&("+"===n.operator||"-"===n.operator)||"TemplateLiteral"===n.type||"TemplateElement"===n.type||dD(n)||"BindExpression"===n.type&&!n.object||"RegExpLiteral"===n.type||"Literal"===n.type&&n.pattern||"Literal"===n.type&&n.regex)||!!Qd(n)&&e.call.apply(e,[function(e){return Vh(e,t)}].concat(Jd(e,n)))}function Uh(e){if(xD(e)||FD(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){var t=e.types.filter(function(e){return"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type}).length,n=e.types.filter(function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type}).length;if(e.types.length-1===t&&n>0)return!0}return!1}function Wh(e){return e&&e.params&&1===e.params.length&&!e.params[0].comments&&("ObjectPattern"===e.params[0].type||"ArrayPattern"===e.params[0].type||"Identifier"===e.params[0].type&&e.params[0].typeAnnotation&&("TypeAnnotation"===e.params[0].typeAnnotation.type||"TSTypeAnnotation"===e.params[0].typeAnnotation.type)&&FD(e.params[0].typeAnnotation.typeAnnotation)||"FunctionTypeParam"===e.params[0].type&&FD(e.params[0].typeAnnotation)||"AssignmentPattern"===e.params[0].type&&("ObjectPattern"===e.params[0].left.type||"ArrayPattern"===e.params[0].left.type)&&("Identifier"===e.params[0].right.type||"ObjectExpression"===e.params[0].right.type&&0===e.params[0].right.properties.length||"ArrayExpression"===e.params[0].right.type&&0===e.params[0].right.elements.length))&&!e.rest}function $h(e,t,n,r){var u=[],a=[];return e.each(function(e){u.push(qD(a)),u.push(zD(r(e))),a=[",",UD],e.getValue()&&Ld(t.originalText,e.getValue(),t)&&a.push($D)},n),qD(u)}var Jh={preprocess:yd,print:function(e,t,n,r){var u=e.getValue(),a=!1,i=function(e,t,n,r){var u=e.getValue(),a=t.semi?";":"";if(!u)return"";if("string"==typeof u)return u;var i=function(e,t,n){var r=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(r),"File"===r.type)return t.__isVueForBindingLeft?e.call(function(e){var t=e.getValue().params;return hd([t.length>1?"(":"",md(hd([",",gd]),e.map(n,"params")),t.length>1?")":""])},"program","body",0):t.__isVueSlotScope?e.call(function(e){return md(hd([",",gd]),e.map(n,"params"))},"program","body",0):void 0}(e,t,n);if(i)return i;var s=[];switch(u.type){case"JsExpressionRoot":return e.call(n,"node");case"JsonRoot":return qD([e.call(n,"node"),WD]);case"File":return u.program&&u.program.interpreter&&s.push(e.call(function(e){return e.call(n,"interpreter")},"program")),s.push(e.call(n,"program")),qD(s);case"Program":return u.directives&&e.each(function(e){s.push(n(e),a,WD),Ld(t.originalText,e.getValue(),t)&&s.push(WD)},"directives"),s.push(e.call(function(e){return fh(e,t,n)},"body")),s.push(da.printDanglingComments(e,t,!0)),(u.body.length||u.comments)&&s.push(WD),qD(s);case"EmptyStatement":return"";case"ExpressionStatement":if(u.directive)return qD([Rh(u.expression,t,!0),a]);if("__vue_event_binding"===t.parser){var l=e.getParentNode();if("Program"===l.type&&1===l.body.length&&l.body[0]===u)return qD([e.call(n,"expression"),qd(u.expression)?";":""])}return qD([e.call(n,"expression"),OD(t,e)?"":a]);case"ParenthesizedExpression":return qD(["(",e.call(n,"expression"),")"]);case"AssignmentExpression":return _h(u.left,e.call(n,"left"),qD([" ",u.operator]),u.right,e.call(n,"right"),t);case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":var c=e.getParentNode(),p=e.getParentNode(1),f=u!==c.body&&("IfStatement"===c.type||"WhileStatement"===c.type||"SwitchStatement"===c.type||"DoWhileStatement"===c.type),d=jh(e,n,t,!1,f);if(f)return qD(d);if(("CallExpression"===c.type||"OptionalCallExpression"===c.type)&&c.callee===u||"UnaryExpression"===c.type||("MemberExpression"===c.type||"OptionalMemberExpression"===c.type)&&!c.computed)return zD(qD([GD(qD([$D,qD(d)])),$D]));var D="ReturnStatement"===c.type||"JSXExpressionContainer"===c.type&&"JSXAttribute"===p.type||"NGPipeExpression"!==u.type&&("NGRoot"===c.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===c.type&&"NGMicrosyntax"===p.type&&1===p.body.length)||u===c.body&&"ArrowFunctionExpression"===c.type||u!==c.body&&"ForStatement"===c.type||"ConditionalExpression"===c.type&&"ReturnStatement"!==p.type&&"CallExpression"!==p.type&&"OptionalCallExpression"!==p.type,h="AssignmentExpression"===c.type||"VariableDeclarator"===c.type||"ClassProperty"===c.type||"TSAbstractClassProperty"===c.type||"ClassPrivateProperty"===c.type||"ObjectProperty"===c.type||"Property"===c.type,m=uD(u.left)&&Cd(u.operator,u.left.operator);if(D||Ih(u)&&!m||!Ih(u)&&h)return zD(qD(d));if(0===d.length)return"";var g=dD(u.right),y=qD(g?d.slice(1,-1):d.slice(1)),v=Symbol("logicalChain-"+ ++sh),E=zD(qD([d.length>0?d[0]:"",GD(y)]),{id:v});if(!g)return E;var C=xd(d);return zD(qD([E,KD(GD(C),C,{groupId:v})]));case"AssignmentPattern":return qD([e.call(n,"left")," = ",e.call(n,"right")]);case"TSTypeAssertion":var F=!("ArrayExpression"===u.expression.type||"ObjectExpression"===u.expression.type),b=zD(qD(["<",GD(qD([$D,e.call(n,"typeAnnotation")])),$D,">"])),x=qD([KD("("),GD(qD([$D,e.call(n,"expression")])),$D,KD(")")]);return F?HD([qD([b,e.call(n,"expression")]),qD([b,zD(x,{shouldBreak:!0})]),qD([b,e.call(n,"expression")])]):zD(qD([b,e.call(n,"expression")]));case"OptionalMemberExpression":case"MemberExpression":var S,w=e.getParentNode(),B=0;do{S=e.getParentNode(B),B++}while(S&&("MemberExpression"===S.type||"OptionalMemberExpression"===S.type||"TSNonNullExpression"===S.type));var T=S&&("NewExpression"===S.type||"BindExpression"===S.type||"VariableDeclarator"===S.type&&"Identifier"!==S.id.type||"AssignmentExpression"===S.type&&"Identifier"!==S.left.type)||u.computed||"Identifier"===u.object.type&&"Identifier"===u.property.type&&"MemberExpression"!==w.type&&"OptionalMemberExpression"!==w.type;return qD([e.call(n,"object"),T?kh(e,0,n):zD(GD(qD([$D,kh(e,0,n)])))]);case"MetaProperty":return qD([e.call(n,"meta"),".",e.call(n,"property")]);case"BindExpression":return u.object&&s.push(e.call(n,"object")),s.push(zD(GD(qD([$D,Oh(e,0,n)])))),qD(s);case"Identifier":return qD([u.name,Th(e),yh(e,t,n)]);case"V8IntrinsicIdentifier":return qD(["%",u.name]);case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return qD(["...",e.call(n,"argument"),yh(e,t,n)]);case"FunctionDeclaration":case"FunctionExpression":return s.push(Ah(e,n,t)),u.body||s.push(a),qD(s);case"ArrowFunctionExpression":u.async&&s.push("async "),Ch(e,t)?s.push(e.call(n,"params",0)):s.push(zD(qD([Eh(e,n,t,r&&(r.expandLastArg||r.expandFirstArg),!0),Fh(e,n,t)])));var k=da.printDanglingComments(e,t,!0,function(e){var n=Md(t.originalText,e,t);return"=>"===t.originalText.substr(n,2)});k&&s.push(" ",k),s.push(" =>");var O=e.call(function(e){return n(e,r)},"body");if(!Kd(t.originalText,u.body,t)&&("ArrayExpression"===u.body.type||"ObjectExpression"===u.body.type||"BlockStatement"===u.body.type||dD(u.body)||TD(u.body,t.originalText,t)||"ArrowFunctionExpression"===u.body.type||"DoExpression"===u.body.type))return zD(qD([qD(s)," ",O]));if("SequenceExpression"===u.body.type)return zD(qD([qD(s),zD(qD([" (",GD(qD([$D,O])),$D,")"]))]));var N=(r&&r.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!(u.comments&&u.comments.length),P=r&&r.expandLastArg&&lh(t,"all"),I="ConditionalExpression"===u.body.type&&!Nd(u.body,!1);return zD(qD([qD(s),zD(qD([GD(qD([UD,I?KD("","("):"",O,I?KD("",")"):""])),N?qD([KD(P?",":""),$D]):""]))]));case"YieldExpression":return s.push("yield"),u.delegate&&s.push("*"),u.argument&&s.push(" ",e.call(n,"argument")),qD(s);case"AwaitExpression":s.push("await ",e.call(n,"argument"));var j=e.getParentNode();return("CallExpression"===j.type||"OptionalCallExpression"===j.type)&&j.callee===u||("MemberExpression"===j.type||"OptionalMemberExpression"===j.type)&&j.object===u?zD(qD([GD(qD([$D,qD(s)])),$D])):qD(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")),qD(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")),qD(s);case"ImportNamespaceSpecifier":return s.push("* as "),s.push(e.call(n,"local")),qD(s);case"ImportDefaultSpecifier":return e.call(n,"local");case"TSExportAssignment":return qD(["export = ",e.call(n,"expression"),a]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return bh(e,t,n);case"ExportAllDeclaration":return s.push("export "),"type"===u.exportKind&&s.push("type "),s.push("* from ",e.call(n,"source"),a),qD(s);case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return e.call(n,"exported");case"ImportDeclaration":s.push("import "),u.importKind&&"value"!==u.importKind&&s.push(u.importKind+" ");var L=[],_=[];return u.specifiers&&u.specifiers.length>0?(e.each(function(e){var t=e.getValue();"ImportDefaultSpecifier"===t.type||"ImportNamespaceSpecifier"===t.type?L.push(n(e)):_.push(n(e))},"specifiers"),L.length>0&&s.push(VD(", ",L)),L.length>0&&_.length>0&&s.push(", "),1===_.length&&0===L.length&&u.specifiers&&!u.specifiers.some(function(e){return e.comments})?s.push(qD(["{",t.bracketSpacing?" ":"",qD(_),t.bracketSpacing?" ":"","}"])):_.length>=1&&s.push(zD(qD(["{",GD(qD([t.bracketSpacing?UD:$D,VD(qD([",",UD]),_)])),KD(lh(t)?",":""),t.bracketSpacing?UD:$D,"}"]))),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),qD(s);case"Import":return"import";case"TSModuleBlock":case"BlockStatement":var M=e.call(function(e){return fh(e,t,n)},"body"),R=u.body.find(function(e){return"EmptyStatement"!==e.type}),q=u.directives&&u.directives.length>0,V=e.getParentNode(),U=e.getParentNode(1);return R||q||Gd(u)||"ArrowFunctionExpression"!==V.type&&"FunctionExpression"!==V.type&&"FunctionDeclaration"!==V.type&&"ObjectMethod"!==V.type&&"ClassMethod"!==V.type&&"ClassPrivateMethod"!==V.type&&"ForStatement"!==V.type&&"WhileStatement"!==V.type&&"DoWhileStatement"!==V.type&&"DoExpression"!==V.type&&("CatchClause"!==V.type||U.finalizer)&&"TSModuleDeclaration"!==V.type?(s.push("{"),q&&e.each(function(e){s.push(GD(qD([WD,n(e),a]))),Ld(t.originalText,e.getValue(),t)&&s.push(WD)},"directives"),R&&s.push(GD(qD([WD,M]))),s.push(da.printDanglingComments(e,t)),s.push(WD,"}"),qD(s)):"{}";case"ReturnStatement":return s.push("return"),u.argument&&(_D(t,u.argument)?s.push(qD([" (",GD(qD([WD,e.call(n,"argument")])),WD,")"])):"LogicalExpression"===u.argument.type||"BinaryExpression"===u.argument.type||"SequenceExpression"===u.argument.type?s.push(zD(qD([KD(" ("," "),GD(qD([$D,e.call(n,"argument")])),$D,KD(")")]))):s.push(" ",e.call(n,"argument"))),Gd(u)&&s.push(" ",da.printDanglingComments(e,t,!0)),s.push(a),qD(s);case"NewExpression":case"OptionalCallExpression":case"CallExpression":var W="NewExpression"===u.type,$=Th(e);if(!W&&"Identifier"===u.callee.type&&("require"===u.callee.name||"define"===u.callee.name)||1===u.arguments.length&&TD(u.arguments[0],t.originalText,t)||!W&&kD(u,e.getParentNode()))return qD([W?"new ":"",e.call(n,"callee"),$,vh(e,0,n),qD(["(",VD(", ",e.map(n,"arguments")),")"])]);var J="Identifier"===u.callee.type&&Xd(u.callee.trailingComments);if(J&&(u.callee.trailingComments[0].printed=!0),!W&&ED(u.callee))return function(e,t,n){var r=[];function u(e){var n=t.originalText,r=Md(n,e,t);return")"==n.charAt(r)?_d(n,r+1,t):Ld(n,e,t)}function a(e){var i=e.getValue();"CallExpression"!==i.type&&"OptionalCallExpression"!==i.type||!ED(i.callee)&&"CallExpression"!==i.callee.type&&"OptionalCallExpression"!==i.callee.type?ED(i)?(r.unshift({node:i,needsParens:dd(e,t),printed:da.printComments(e,function(){return"OptionalMemberExpression"===i.type||"MemberExpression"===i.type?kh(e,0,n):Oh(e,0,n)},t)}),e.call(function(e){return a(e)},"object")):"TSNonNullExpression"===i.type?(r.unshift({node:i,printed:da.printComments(e,function(){return"!"},t)}),e.call(function(e){return a(e)},"expression")):r.unshift({node:i,printed:e.call(n)}):(r.unshift({node:i,printed:qD([da.printComments(e,function(){return qD([Th(e),vh(e,0,n),gh(e,t,n)])},t),u(i)?WD:""])}),e.call(function(e){return a(e)},"callee"))}var i=e.getValue();r.unshift({node:i,printed:qD([Th(e),vh(e,0,n),gh(e,t,n)])}),e.call(function(e){return a(e)},"callee");for(var o=[],s=[r[0]],l=1;l0&&o.push(s);var f=o.length>=2&&!o[1][0].node.comments&&function(n){var r=e.getParentNode(),u=r&&"ExpressionStatement"===r.type,a=n[1].length&&n[1][0].node.computed;if(1===n[0].length){var i=n[0][0].node;return"ThisExpression"===i.type||"Identifier"===i.type&&(p(i.name)||u&&i.name.length<=t.tabWidth||a)}var o=xd(n[0]).node;return("MemberExpression"===o.type||"OptionalMemberExpression"===o.type)&&"Identifier"===o.property.type&&(p(o.property.name)||a)}(o);function d(e){var t=e.map(function(e){return e.printed});return qD(e.length>0&&e[e.length-1].needsParens?["("].concat(A(t),[")"]):t)}var D=o.map(d),h=qD(D),m=f?3:2,g=o.slice(0,m).reduce(function(e,t){return e.concat(t)},[]),y=g.slice(1,-1).some(function(e){return Yd(e.node)})||g.slice(0,-1).some(function(e){return nD(e.node)})||o[m]&&Yd(o[m][0].node);if(o.length<=m&&!y)return gD(e)?h:zD(h);var v,E,C=xd(f?o.slice(1,2)[0]:o[0]).node,F="CallExpression"!==C.type&&"OptionalCallExpression"!==C.type&&u(C),b=qD([d(o[0]),f?qD(o.slice(1,2).map(d)):"",F?WD:"",function(e){return 0===e.length?"":GD(zD(qD([WD,VD(WD,e.map(d))])))}(o.slice(f?2:1))]),x=r.map(function(e){return e.node}).filter(aD);return y||x.length>=3||D.slice(0,-1).some(rh)||(v=xd(D),E=xd(xd(o)).node,aD(E)&&rh(v)&&x.slice(0,-1).some(function(e){return e.arguments.some(cD)}))?zD(b):qD([rh(h)||F?QD:"",HD([h,b])])}(e,t,n);var z=qD([W?"new ":"",e.call(n,"callee"),$,J?"/*:: ".concat(u.callee.trailingComments[0].value.substring(2).trim()," */"):"",vh(e,0,n),gh(e,t,n)]);return aD(u.callee)?zD(z):z;case"TSInterfaceDeclaration":return u.declare&&s.push("declare "),s.push(u.abstract?"abstract ":"",Sh(e,0,n),"interface ",e.call(n,"id"),u.typeParameters?e.call(n,"typeParameters"):""," "),u.extends&&u.extends.length&&s.push(zD(GD(qD([$D,"extends ",(1===u.extends.length?rD:GD)(VD(qD([",",UD]),e.map(n,"extends")))," "])))),s.push(e.call(n,"body")),qD(s);case"ObjectTypeInternalSlot":return qD([u.static?"static ":"","[[",e.call(n,"id"),"]]",Th(e),u.method?"":": ",e.call(n,"value")]);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":var G;G="TSTypeLiteral"===u.type?"members":"TSInterfaceBody"===u.type?"body":"properties";var X="ObjectTypeAnnotation"===u.type,H=[];X&&H.push("indexers","callProperties","internalSlots"),H.push(G);var Y=H.map(function(e){return u[e][0]}).sort(function(e,n){return t.locStart(e)-t.locStart(n)})[0],K=e.getParentNode(0),Q=X&&K&&("InterfaceDeclaration"===K.type||"DeclareInterface"===K.type||"DeclareClass"===K.type)&&"body"===e.getName(),Z="TSInterfaceBody"===u.type||Q||"ObjectPattern"===u.type&&"FunctionDeclaration"!==K.type&&"FunctionExpression"!==K.type&&"ArrowFunctionExpression"!==K.type&&"ObjectMethod"!==K.type&&"ClassMethod"!==K.type&&"ClassPrivateMethod"!==K.type&&"AssignmentPattern"!==K.type&&"CatchClause"!==K.type&&u.properties.some(function(e){return e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type)})||"ObjectPattern"!==u.type&&Y&&bd(t.originalText,t.locStart(u),t.locStart(Y)),ee=Q?";":"TSInterfaceBody"===u.type||"TSTypeLiteral"===u.type?KD(a,";"):",",te=u.exact?"{|":"{",ne=u.exact?"|}":"}",re=[];H.forEach(function(r){e.each(function(e){var r=e.getValue();re.push({node:r,printed:n(e),loc:t.locStart(r)})},r)});var ue=[],ae=re.sort(function(e,t){return e.loc-t.loc}).map(function(e){var n=qD(ue.concat(zD(e.printed)));return ue=[ee,UD],"TSPropertySignature"!==e.node.type&&"TSMethodSignature"!==e.node.type&&"TSConstructSignatureDeclaration"!==e.node.type||!kd(e.node)||ue.shift(),Ld(t.originalText,e.node,t)&&ue.push(WD),n});u.inexact&&ae.push(qD(ue.concat(zD("..."))));var ie,oe=xd(u[G]),se=!(oe&&("RestProperty"===oe.type||"RestElement"===oe.type||kd(oe)||u.inexact));if(0===ae.length){if(!Gd(u))return qD([te,ne,yh(e,t,n)]);ie=zD(qD([te,da.printDanglingComments(e,t),$D,ne,Th(e),yh(e,t,n)]))}else ie=qD([te,GD(qD([t.bracketSpacing?UD:$D,qD(ae)])),KD(se&&(","!==ee||lh(t))?ee:""),qD([t.bracketSpacing?UD:$D,ne]),Th(e),yh(e,t,n)]);var le=e.getParentNode(2);return"ObjectPattern"===u.type&&K&&Wh(K)&&!u.decorators&&K.params[0]===u||Uh(u)&&le&&Wh(le)&&le.params[0].typeAnnotation&&le.params[0].typeAnnotation.typeAnnotation===u?ie:zD(ie,{shouldBreak:Z});case"ObjectProperty":case"Property":return u.method||"get"===u.kind||"set"===u.kind?Dh(e,t,n):(s.push(u.shorthand?e.call(n,"value"):_h(u.key,dh(e,t,n),":",u.value,e.call(n,"value"),t)),qD(s));case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":case"TSAbstractMethodDefinition":return u.decorators&&0!==u.decorators.length&&s.push(ch(e,t,n)),u.accessibility&&s.push(u.accessibility+" "),u.static&&s.push("static "),"TSAbstractMethodDefinition"===u.type&&s.push("abstract "),s.push(Dh(e,t,n)),qD(s);case"ObjectMethod":return Dh(e,t,n);case"Decorator":return qD(["@",e.call(n,"expression"),e.call(n,"callee")]);case"ArrayExpression":case"ArrayPattern":if(0===u.elements.length)Gd(u)?s.push(zD(qD(["[",da.printDanglingComments(e,t),$D,"]"]))):s.push("[]");else{var ce=xd(u.elements),pe=!(ce&&"RestElement"===ce.type),fe=pe&&null===ce,de=u.elements.length>1&&u.elements.every(function(e,t,n){var r=e&&e.type;if("ArrayExpression"!==r&&"ObjectExpression"!==r)return!1;var u=n[t+1];if(u&&r!==u.type)return!1;var a="ArrayExpression"===r?"elements":"properties";return e[a]&&e[a].length>1});s.push(zD(qD(["[",GD(qD([$D,$h(e,t,"elements",n)])),fe?",":"",KD(pe&&!fe&&lh(t)?",":""),da.printDanglingComments(e,t,!0),$D,"]"]),{shouldBreak:de}))}return s.push(Th(e),yh(e,t,n)),qD(s);case"SequenceExpression":var De=e.getParentNode(0);if("ExpressionStatement"===De.type||"ForStatement"===De.type){var he=[];return e.each(function(e){0===e.getName()?he.push(n(e)):he.push(",",GD(qD([UD,n(e)])))},"expressions"),zD(qD(he))}return zD(qD([VD(qD([",",UD]),e.map(n,"expressions"))]));case"ThisExpression":return"this";case"Super":return"super";case"NullLiteral":return"null";case"RegExpLiteral":return qh(u);case"NumericLiteral":return Bd(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 qh(u.regex);if("number"==typeof u.value)return Bd(u.raw);if("string"!=typeof u.value)return""+u.value;var me=e.getParentNode(1);return Rh(u,t,"typescript"===t.parser&&"string"==typeof u.value&&me&&("Program"===me.type||"BlockStatement"===me.type));case"Directive":return e.call(n,"value");case"DirectiveLiteral":return Rh(u,t);case"UnaryExpression":return s.push(u.operator),/[a-z]$/.test(u.operator)&&s.push(" "),s.push(u.argument.comments&&u.argument.comments.length>0?zD(qD(["(",GD(qD([$D,e.call(n,"argument")])),$D,")"])):e.call(n,"argument")),qD(s);case"UpdateExpression":return s.push(e.call(n,"argument"),u.operator),u.prefix&&s.reverse(),qD(s);case"ConditionalExpression":return ph(e,t,n,{beforeParts:function(){return[e.call(n,"test")]},afterParts:function(e){return[e?$D:""]},shouldCheckJsx:!0,conditionalNodeType:"ConditionalExpression",consequentNodePropertyName:"consequent",alternateNodePropertyName:"alternate",testNodePropertyName:"test",breakNested:!0});case"VariableDeclaration":var ge,ye=e.map(function(e){return n(e)},"declarations"),ve=e.getParentNode(),Ee="ForStatement"===ve.type||"ForInStatement"===ve.type||"ForOfStatement"===ve.type||"ForAwaitStatement"===ve.type,Ce=u.declarations.some(function(e){return e.init});return 1!==ye.length||u.declarations[0].comments?ye.length>0&&(ge=GD(ye[0])):ge=ye[0],s=[u.declare?"declare ":"",u.kind,ge?qD([" ",ge]):"",GD(qD(ye.slice(1).map(function(e){return qD([",",Ce&&!Ee?WD:UD,e])})))],Ee&&ve.body!==u||s.push(a),zD(qD(s));case"TSTypeAliasDeclaration":u.declare&&s.push("declare ");var Ae=Lh(u.id,u.typeAnnotation,u.typeAnnotation&&e.call(n,"typeAnnotation"),t);return s.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",Ae,a),zD(qD(s));case"VariableDeclarator":return _h(u.id,e.call(n,"id")," =",u.init,u.init&&e.call(n,"init"),t);case"WithStatement":return zD(qD(["with (",e.call(n,"object"),")",Mh(u.body,e.call(n,"body"))]));case"IfStatement":var Fe=Mh(u.consequent,e.call(n,"consequent")),be=zD(qD(["if (",zD(qD([GD(qD([$D,e.call(n,"test")])),$D])),")",Fe]));if(s.push(be),u.alternate){var xe=nD(u.consequent)&&u.consequent.comments.some(function(e){return e.trailing&&!tf.isBlockComment(e)})||jD(u);s.push("BlockStatement"!==u.consequent.type||xe?WD:" "),Gd(u)&&s.push(da.printDanglingComments(e,t,!0),xe?WD:" "),s.push("else",zD(Mh(u.alternate,e.call(n,"alternate"),"IfStatement"===u.alternate.type)))}return qD(s);case"ForStatement":var Se=Mh(u.body,e.call(n,"body")),we=da.printDanglingComments(e,t,!0),Be=we?qD([we,$D]):"";return qD(u.init||u.test||u.update?[Be,zD(qD(["for (",zD(qD([GD(qD([$D,e.call(n,"init"),";",UD,e.call(n,"test"),";",UD,e.call(n,"update")])),$D])),")",Se]))]:[Be,zD(qD(["for (;;)",Se]))]);case"WhileStatement":return zD(qD(["while (",zD(qD([GD(qD([$D,e.call(n,"test")])),$D])),")",Mh(u.body,e.call(n,"body"))]));case"ForInStatement":return zD(qD([u.each?"for each (":"for (",e.call(n,"left")," in ",e.call(n,"right"),")",Mh(u.body,e.call(n,"body"))]));case"ForOfStatement":case"ForAwaitStatement":return zD(qD(["for","ForAwaitStatement"===u.type||u.await?" await":""," (",e.call(n,"left")," of ",e.call(n,"right"),")",Mh(u.body,e.call(n,"body"))]));case"DoWhileStatement":var Te=Mh(u.body,e.call(n,"body")),ke=zD(qD(["do",Te]));return(s=[ke]).push("BlockStatement"===u.body.type?" ":WD),s.push("while ("),s.push(zD(qD([GD(qD([$D,e.call(n,"test")])),$D])),")",a),qD(s);case"DoExpression":return qD(["do ",e.call(n,"body")]);case"BreakStatement":return s.push("break"),u.label&&s.push(" ",e.call(n,"label")),s.push(a),qD(s);case"ContinueStatement":return s.push("continue"),u.label&&s.push(" ",e.call(n,"label")),s.push(a),qD(s);case"LabeledStatement":return qD("EmptyStatement"===u.body.type?[e.call(n,"label"),":;"]:[e.call(n,"label"),": ",e.call(n,"body")]);case"TryStatement":return qD(["try ",e.call(n,"block"),u.handler?qD([" ",e.call(n,"handler")]):"",u.finalizer?qD([" finally ",e.call(n,"finalizer")]):""]);case"CatchClause":if(u.param){var Oe=u.param.comments&&u.param.comments.some(function(e){return!tf.isBlockComment(e)||e.leading&&Fd(t.originalText,t.locEnd(e))||e.trailing&&Fd(t.originalText,t.locStart(e),{backwards:!0})}),Ne=e.call(n,"param");return qD(["catch ",qD(Oe?["(",GD(qD([$D,Ne])),$D,") "]:["(",Ne,") "]),e.call(n,"body")])}return qD(["catch ",e.call(n,"body")]);case"ThrowStatement":return qD(["throw ",e.call(n,"argument"),a]);case"SwitchStatement":return qD([zD(qD(["switch (",GD(qD([$D,e.call(n,"discriminant")])),$D,")"]))," {",u.cases.length>0?GD(qD([WD,VD(WD,e.map(function(e){var r=e.getValue();return qD([e.call(n),u.cases.indexOf(r)!==u.cases.length-1&&Ld(t.originalText,r,t)?WD:""])},"cases"))])):"",WD,"}"]);case"SwitchCase":u.test?s.push("case ",e.call(n,"test"),":"):s.push("default:");var Pe=u.consequent.filter(function(e){return"EmptyStatement"!==e.type});if(Pe.length>0){var Ie=e.call(function(e){return fh(e,t,n)},"consequent");s.push(1===Pe.length&&"BlockStatement"===Pe[0].type?qD([" ",Ie]):GD(qD([WD,Ie])))}return qD(s);case"DebuggerStatement":return qD(["debugger",a]);case"JSXAttribute":if(s.push(e.call(n,"name")),u.value){var je;if(wD(u.value)){var Le=LD(u.value).replace(/'/g,"'").replace(/"/g,'"'),_e=jd(Le,t.jsxSingleQuote?"'":'"'),Me="'"===_e?"'":""";Le=Le.slice(1,-1).replace(new RegExp(_e,"g"),Me),je=qD([_e,Le,_e])}else je=e.call(n,"value");s.push("=",je)}return qD(s);case"JSXIdentifier":return""+u.name;case"JSXNamespacedName":return VD(":",[e.call(n,"namespace"),e.call(n,"name")]);case"JSXMemberExpression":return VD(".",[e.call(n,"object"),e.call(n,"property")]);case"TSQualifiedName":return VD(".",[e.call(n,"left"),e.call(n,"right")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return qD(["{",e.call(function(e){var r=qD(["...",n(e)]),u=e.getValue();return u.comments&&u.comments.length?qD([GD(qD([$D,da.printComments(e,function(){return r},t)])),$D]):r},"JSXSpreadAttribute"===u.type?"argument":"expression"),"}"]);case"JSXExpressionContainer":var Re=e.getParentNode(0),qe=!("JSXAttribute"===Re.type&&u.expression.comments&&u.expression.comments.length>0)&&("ArrayExpression"===u.expression.type||"ObjectExpression"===u.expression.type||"ArrowFunctionExpression"===u.expression.type||"CallExpression"===u.expression.type||"OptionalCallExpression"===u.expression.type||"FunctionExpression"===u.expression.type||"JSXEmptyExpression"===u.expression.type||"TemplateLiteral"===u.expression.type||"TaggedTemplateExpression"===u.expression.type||"DoExpression"===u.expression.type||dD(Re)&&("ConditionalExpression"===u.expression.type||uD(u.expression)));return zD(qD(qe?["{",e.call(n,"expression"),ZD,"}"]:["{",GD(qD([$D,e.call(n,"expression")])),$D,ZD,"}"]));case"JSXFragment":case"JSXElement":var Ve=da.printComments(e,function(){return function(e,t,n){var r=e.getValue();if("JSXElement"===r.type&&iD(r))return qD([e.call(n,"openingElement"),e.call(n,"closingElement")]);var u=e.call(n,"JSXElement"===r.type?"openingElement":"openingFragment"),a=e.call(n,"JSXElement"===r.type?"closingElement":"closingFragment");if(1===r.children.length&&"JSXExpressionContainer"===r.children[0].type&&("TemplateLiteral"===r.children[0].expression.type||"TaggedTemplateExpression"===r.children[0].expression.type))return qD([u,qD(e.map(n,"children")),a]);r.children=r.children.map(function(e){return DD(e)?{type:"JSXText",value:" ",raw:" "}:e});for(var i=r.children.filter(dD).length>0,o=r.children.filter(function(e){return"JSXExpressionContainer"===e.type}).length>1,s="JSXElement"===r.type&&r.openingElement.attributes.length>1,l=rh(u)||i||s||o,c=t.singleQuote?"{' '}":'{" "}',p=KD(qD([c,$D])," "),f=function(e,t,n,r,u){var a=e.getValue(),i=[];return e.map(function(e,t){var o=e.getValue();if(mD(o)){var s=LD(o);if(yD(o)){var l,c=s.split(ID);if(""===c[0]&&(i.push(""),c.shift(),/\n/.test(c[0])?i.push(Ph(u,c[1],o,a.children[t+1])):i.push(r),c.shift()),""===xd(c)&&(c.pop(),l=c.pop()),0===c.length)return;if(c.forEach(function(e,t){i.push(t%2==1?UD:e)}),void 0!==l)if(/\n/.test(l)){var p=a.children[t+1];i.push(Ph(u,xd(i),o,p))}else i.push(r);else{var f=a.children[t+1];i.push(Nh(u,xd(i),o,f))}}else/\n/.test(s)?s.match(/\n/g).length>1&&(i.push(""),i.push(WD)):(i.push(""),i.push(r))}else{var d=n(e);i.push(d);var D=a.children[t+1];if(D&&yD(D)){var h=LD(D).trim().split(ID)[0];i.push(Nh(u,h,o,D))}else i.push(WD)}},"children"),i}(e,0,n,p,r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name),d=r.children.filter(function(e){return yD(e)}).length>0,D=f.length-2;D>=0;D--){var h=f[D]===p&&""===f[D+1]&&(f[D+2]===$D||f[D+2]===WD);f[D]===WD&&""===f[D+1]&&f[D+2]===WD&&d||""===f[D]&&""===f[D+1]||(f[D]===$D||f[D]===WD)&&""===f[D+1]&&f[D+2]===p||f[D]===p&&""===f[D+1]&&f[D+2]===p||f[D]===$D&&""===f[D+1]&&f[D+2]===WD||f[D]===WD&&""===f[D+1]&&f[D+2]===$D?f.splice(D,2):h&&f.splice(D+1,2)}for(;f.length&&(uh(xd(f))||ah(xd(f)));)f.pop();for(;f.length&&(uh(f[0])||ah(f[0]))&&(uh(f[1])||ah(f[1]));)f.shift(),f.shift();var m=[];f.forEach(function(e,t){if(e===p){if(1===t&&""===f[t-1])return 2===f.length?void m.push(c):void m.push(qD([c,WD]));if(t===f.length-1)return void m.push(c);if(""===f[t-1]&&f[t-2]===WD)return void m.push(c)}m.push(e),rh(e)&&(l=!0)});var g=d?YD(m):zD(qD(m),{shouldBreak:!0}),y=zD(qD([u,GD(qD([WD,g])),WD,a]));return l?y:HD([zD(qD([u,qD(f),a])),y])}(e,t,n)},t);return function(e,t,n){var 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;var u=Id(e,["ArrowFunctionExpression","CallExpression","JSXExpressionContainer"])||Id(e,["ArrowFunctionExpression","OptionalCallExpression","JSXExpressionContainer"]),a=dd(e,n);return zD(qD([a?"":KD("("),GD(qD([$D,t])),$D,a?"":KD(")")]),{shouldBreak:u})}(e,Ve,t);case"JSXOpeningElement":var Ue=e.getValue(),We=Ue.name&&Ue.name.comments&&Ue.name.comments.length>0||Ue.typeParameters&&Ue.typeParameters.comments&&Ue.typeParameters.comments.length>0;if(Ue.selfClosing&&!Ue.attributes.length&&!We)return qD(["<",e.call(n,"name"),e.call(n,"typeParameters")," />"]);if(Ue.attributes&&1===Ue.attributes.length&&Ue.attributes[0].value&&wD(Ue.attributes[0].value)&&!Ue.attributes[0].value.value.includes("\n")&&!We&&(!Ue.attributes[0].comments||!Ue.attributes[0].comments.length))return zD(qD(["<",e.call(n,"name"),e.call(n,"typeParameters")," ",qD(e.map(n,"attributes")),Ue.selfClosing?" />":">"]));var $e=Ue.attributes.length&&nD(xd(Ue.attributes)),Je=!Ue.attributes.length&&!We||t.jsxBracketSameLine&&(!We||Ue.attributes.length)&&!$e,ze=Ue.attributes&&Ue.attributes.some(function(e){return e.value&&wD(e.value)&&e.value.value.includes("\n")});return zD(qD(["<",e.call(n,"name"),e.call(n,"typeParameters"),qD([GD(qD(e.map(function(e){return qD([UD,n(e)])},"attributes"))),Ue.selfClosing?UD:Je?">":$D]),Ue.selfClosing?"/>":Je?"":">"]),{shouldBreak:ze});case"JSXClosingElement":return qD(["",e.call(n,"name"),">"]);case"JSXOpeningFragment":case"JSXClosingFragment":var Ge=u.comments&&u.comments.length,Xe=Ge&&!u.comments.every(tf.isBlockComment),He="JSXOpeningFragment"===u.type;return qD([He?"<":"",GD(qD([Xe?WD:Ge&&!He?" ":"",da.printDanglingComments(e,t,!0)])),Xe?WD:"",">"]);case"JSXText":throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":var Ye=u.comments&&!u.comments.every(tf.isBlockComment);return qD([da.printDanglingComments(e,t,!Ye),Ye?WD:""]);case"ClassBody":return u.comments||0!==u.body.length?qD(["{",u.body.length>0?GD(qD([WD,e.call(function(e){return fh(e,t,n)},"body")])):da.printDanglingComments(e,t),WD,"}"]):"{}";case"ClassProperty":case"TSAbstractClassProperty":case"ClassPrivateProperty":u.decorators&&0!==u.decorators.length&&s.push(ch(e,t,n)),u.accessibility&&s.push(u.accessibility+" "),u.declare&&s.push("declare "),u.static&&s.push("static "),"TSAbstractClassProperty"===u.type&&s.push("abstract "),u.readonly&&s.push("readonly ");var Ke=$d(u);return Ke&&s.push(Ke),s.push(dh(e,t,n),Th(e),yh(e,t,n)),u.value&&s.push(" =",Lh(u.key,u.value,e.call(n,"value"),t)),s.push(a),zD(qD(s));case"ClassDeclaration":case"ClassExpression":return u.declare&&s.push("declare "),s.push(qD(Bh(e,t,n))),qD(s);case"TSInterfaceHeritage":return s.push(e.call(n,"expression")),u.typeParameters&&s.push(e.call(n,"typeParameters")),qD(s);case"TemplateElement":return VD(JD,u.value.raw.split(/\r?\n/g));case"TemplateLiteral":var Qe=e.map(n,"expressions"),Ze=e.getParentNode();if(fD(u,Ze)){var et=function(e,t,n){var r=e.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(r.length>1||r.some(function(e){return 0!==e.length})){for(var u=[],a=t.map(function(e){return"${"+oh(e,Object.assign({},n,{printWidth:1/0,endOfLine:"lf"})).formatted+"}"}),i=[{hasLineBreak:!1,cells:[]}],o=1;o ":": ",e.call(n,"returnType"),e.call(n,"predicate"),e.call(n,"typeAnnotation")),st&&s.push(")"),zD(qD(s));case"TSRestType":return qD(["...",e.call(n,"typeAnnotation")]);case"TSOptionalType":return qD([e.call(n,"typeAnnotation"),"?"]);case"FunctionTypeParam":return qD([e.call(n,"name"),Th(e),u.name?": ":"",e.call(n,"typeAnnotation")]);case"GenericTypeAnnotation":return qD([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(zD(GD(qD([UD,"extends ",(1===u.extends.length?rD:GD)(VD(qD([",",UD]),e.map(n,"extends")))])))),s.push(" ",e.call(n,"body")),zD(qD(s));case"ClassImplements":case"InterfaceExtends":return qD([e.call(n,"id"),e.call(n,"typeParameters")]);case"TSClassImplements":return qD([e.call(n,"expression"),e.call(n,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":for(var lt=e.map(n,"types"),ct=[],pt=!1,ft=0;ft1&&(pt=!0),ct.push(" & ",ft>1?GD(lt[ft]):lt[ft])):ct.push(GD(qD([" &",UD,lt[ft]])));return zD(qD(ct));case"TSUnionType":case"UnionTypeAnnotation":var dt=e.getParentNode(),Dt=!("TypeParameterInstantiation"===dt.type||"TSTypeParameterInstantiation"===dt.type||"GenericTypeAnnotation"===dt.type||"TSTypeReference"===dt.type||"TSTypeAssertion"===dt.type||"TupleTypeAnnotation"===dt.type||"TSTupleType"===dt.type||"FunctionTypeParam"===dt.type&&!dt.name||("TypeAlias"===dt.type||"VariableDeclarator"===dt.type||"TSTypeAliasDeclaration"===dt.type)&&Kd(t.originalText,u,t)),ht=Uh(u),mt=e.map(function(e){var r=e.call(n);return ht||(r=XD(2,r)),da.printComments(e,function(){return r},t)},"types");if(ht)return VD(" | ",mt);var gt=Dt&&!Kd(t.originalText,u,t),yt=qD([KD(qD([gt?UD:"","| "])),VD(qD([UD,"| "]),mt)]);return dd(e,t)?zD(qD([GD(yt),$D])):zD("TupleTypeAnnotation"===dt.type&&dt.types.length>1||"TSTupleType"===dt.type&&dt.elementTypes.length>1?qD([GD(qD([KD(qD(["(",$D])),yt])),$D,KD(")")]):Dt?GD(yt):yt);case"NullableTypeAnnotation":return qD(["?",e.call(n,"typeAnnotation")]);case"TSNullKeyword":case"NullLiteralTypeAnnotation":return"null";case"ThisTypeAnnotation":return"this";case"NumberTypeAnnotation":return"number";case"ObjectTypeCallProperty":return u.static&&s.push("static "),s.push(e.call(n,"value")),qD(s);case"ObjectTypeIndexer":var vt=$d(u);return qD([vt||"","[",e.call(n,"id"),u.id?": ":"",e.call(n,"key"),"]: ",e.call(n,"value")]);case"ObjectTypeProperty":var Et=$d(u),Ct="";return u.proto?Ct="proto ":u.static&&(Ct="static "),qD([Ct,pD(u)?u.kind+" ":"",Et||"",dh(e,t,n),Th(e),lD(u,t)?"":": ",e.call(n,"value")]);case"QualifiedTypeIdentifier":return qD([e.call(n,"qualification"),".",e.call(n,"id")]);case"StringLiteralTypeAnnotation":return Rh(u,t);case"NumberLiteralTypeAnnotation":return jr.strictEqual(o(u.value),"number"),Bd(null!=u.extra?u.extra.raw:u.raw);case"StringTypeAnnotation":return"string";case"DeclareTypeAlias":case"TypeAlias":("DeclareTypeAlias"===u.type||u.declare)&&s.push("declare ");var At=Lh(u.id,u.right,e.call(n,"right"),t);return s.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",At,a),zD(qD(s));case"TypeCastExpression":var Ft=e.getValue(),bt=Ft&&Ft.typeAnnotation&&Ft.typeAnnotation.range&&t.originalText.substring(Ft.typeAnnotation.range[0]).match(/^\/\*\s*:/);return qD(["(",e.call(n,"expression"),bt?" /*":"",": ",e.call(n,"typeAnnotation"),bt?" */":"",")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":var xt=e.getValue(),St=xt.range?t.originalText.substring(0,xt.range[0]).lastIndexOf("/*"):-1;return St>=0&&t.originalText.substring(St).match(/^\/\*\s*::/)?qD(["/*:: ",wh(e,t,n,"params")," */"]):wh(e,t,n,"params");case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return wh(e,t,n,"params");case"TSTypeParameter":case"TypeParameter":var wt=e.getParentNode();if("TSMappedType"===wt.type)return s.push("[",e.call(n,"name")),u.constraint&&s.push(" in ",e.call(n,"constraint")),s.push("]"),qD(s);var Bt=$d(u);Bt&&s.push(Bt),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"));var Tt=e.getNode(2);return wt.params&&1===wt.params.length&&ND(t)&&!u.constraint&&"ArrowFunctionExpression"===Tt.type&&s.push(","),qD(s);case"TypeofTypeAnnotation":return qD(["typeof ",e.call(n,"argument")]);case"VoidTypeAnnotation":return"void";case"InferredPredicate":return"%checks";case"DeclaredPredicate":return qD(["%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 qD([e.call(n,"expression")," as ",e.call(n,"typeAnnotation")]);case"TSArrayType":return qD([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(dh(e,t,n),Th(e)),u.typeAnnotation&&(s.push(": "),s.push(e.call(n,"typeAnnotation"))),u.initializer&&s.push(" = ",e.call(n,"initializer")),qD(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")),qD(s);case"TSTypeReference":return qD([e.call(n,"typeName"),wh(e,t,n,"typeParameters")]);case"TSTypeQuery":return qD(["typeof ",e.call(n,"exprName")]);case"TSIndexSignature":var kt=e.getParentNode();return qD([u.export?"export ":"",u.accessibility?qD([u.accessibility," "]):"",u.static?"static ":"",u.readonly?"readonly ":"","[",u.parameters?qD(e.map(n,"parameters")):"","]: ",e.call(n,"typeAnnotation"),"ClassBody"===kt.type?a:""]);case"TSTypePredicate":return qD([u.asserts?"asserts ":"",e.call(n,"parameterName"),u.typeAnnotation?qD([" is ",e.call(n,"typeAnnotation")]):""]);case"TSNonNullExpression":return qD([e.call(n,"expression"),"!"]);case"TSThisType":return"this";case"TSImportType":return qD([u.isTypeOf?"typeof ":"","import(",e.call(n,"parameter"),")",u.qualifier?qD([".",e.call(n,"qualifier")]):"",wh(e,t,n,"typeParameters")]);case"TSLiteralType":return e.call(n,"literal");case"TSIndexedAccessType":return qD([e.call(n,"objectType"),"[",e.call(n,"indexType"),"]"]);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":return"TSCallSignatureDeclaration"!==u.type&&s.push("new "),s.push(zD(Eh(e,n,t,!1,!0))),u.returnType&&s.push("TSConstructorType"===u.type?" => ":": ",e.call(n,"returnType")),qD(s);case"TSTypeOperator":return qD([u.operator," ",e.call(n,"typeAnnotation")]);case"TSMappedType":var Ot=bd(t.originalText,t.locStart(u),t.locEnd(u));return zD(qD(["{",GD(qD([t.bracketSpacing?UD:$D,u.readonly?qD([zd(u.readonly,"readonly")," "]):"",Sh(e,0,n),e.call(n,"typeParameter"),u.optional?zd(u.optional,"?"):"",": ",e.call(n,"typeAnnotation"),KD(a,"")])),da.printDanglingComments(e,t,!0),t.bracketSpacing?UD:$D,"}"]),{shouldBreak:Ot});case"TSMethodSignature":return s.push(u.accessibility?qD([u.accessibility," "]):"",u.export?"export ":"",u.static?"static ":"",u.readonly?"readonly ":"",u.computed?"[":"",e.call(n,"key"),u.computed?"]":"",Th(e),Eh(e,n,t,!1,!0)),u.returnType&&s.push(": ",e.call(n,"returnType")),zD(qD(s));case"TSNamespaceExportDeclaration":return s.push("export as namespace ",e.call(n,"id")),t.semi&&s.push(";"),zD(qD(s));case"TSEnumDeclaration":return u.declare&&s.push("declare "),u.modifiers&&s.push(Sh(e,0,n)),u.const&&s.push("const "),s.push("enum ",e.call(n,"id")," "),s.push(zD(qD(0===u.members.length?["{",da.printDanglingComments(e,t),$D,"}"]:["{",GD(qD([WD,$h(e,t,"members",n),lh(t,"es5")?",":""])),da.printDanglingComments(e,t,!0),WD,"}"]))),qD(s);case"TSEnumMember":return s.push(e.call(n,"id")),u.initializer&&s.push(" = ",e.call(n,"initializer")),qD(s);case"TSImportEqualsDeclaration":return u.isExport&&s.push("export "),s.push("import ",e.call(n,"id")," = ",e.call(n,"moduleReference")),t.semi&&s.push(";"),zD(qD(s));case"TSExternalModuleReference":return qD(["require(",e.call(n,"expression"),")"]);case"TSModuleDeclaration":var Nt=e.getParentNode(),Pt=mD(u.id),It=u.body&&"TSModuleDeclaration"===u.body.type;if("TSModuleDeclaration"===Nt.type)s.push(".");else{u.declare&&s.push("declare "),s.push(Sh(e,0,n));var jt=t.originalText.slice(t.locStart(u),t.locStart(u.id));"Identifier"===u.id.type&&"global"===u.id.name&&!/namespace|module/.test(jt)||s.push(Pt||/(^|\s)module(\s|$)/.test(jt)?"module ":"namespace ")}return s.push(e.call(n,"id")),It?s.push(e.call(n,"body")):u.body?s.push(" ",zD(e.call(n,"body"))):s.push(a),qD(s);case"PrivateName":return qD(["#",e.call(n,"id")]);case"TSConditionalType":return ph(e,t,n,{beforeParts:function(){return[e.call(n,"checkType")," ","extends"," ",e.call(n,"extendsType")]},afterParts:function(){return[]},shouldCheckJsx:!1,conditionalNodeType:"TSConditionalType",consequentNodePropertyName:"trueType",alternateNodePropertyName:"falseType",testNodePropertyName:"checkType",breakNested:!0});case"TSInferType":return qD(["infer"," ",e.call(n,"typeParameter")]);case"InterpreterDirective":return s.push("#!",u.value,WD),Ld(t.originalText,u,t)&&s.push(WD),qD(s);case"NGRoot":return qD([].concat(e.call(n,"node"),u.node.comments&&0!==u.node.comments.length?qD([" //",u.node.comments[0].value.trimRight()]):[]));case"NGChainedExpression":return zD(VD(qD([";",UD]),e.map(function(e){return eD(e)?n(e):qD(["(",n(e),")"])},"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return qD([u.prefix,":",u.value]);case"NGMicrosyntax":return qD(e.map(function(e,t){return qD([0===t?"":CD(e.getValue(),t,u)?" ":qD([";",UD]),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 qD([e.call(n,"expression"),null===u.alias?"":qD([" as ",e.call(n,"alias")])]);case"NGMicrosyntaxKeyedExpression":var Lt=e.getName(),_t=e.getParentNode(),Mt=CD(u,Lt,_t)||(1===Lt&&("then"===u.key.name||"else"===u.key.name)||2===Lt&&"else"===u.key.name&&"NGMicrosyntaxKeyedExpression"===_t.body[Lt-1].type&&"then"===_t.body[Lt-1].key.name)&&"NGMicrosyntaxExpression"===_t.body[0].type;return qD([e.call(n,"key"),Mt?" ":": ",e.call(n,"expression")]);case"NGMicrosyntaxLet":return qD(["let ",e.call(n,"key"),null===u.value?"":qD([" = ",e.call(n,"value")])]);case"NGMicrosyntaxAs":return qD([e.call(n,"key")," as ",e.call(n,"alias")]);case"ArgumentPlaceholder":return"?";default:throw new Error("unknown type: "+JSON.stringify(u.type))}}(e,t,n,r);if(!u||ah(i))return i;var s=vd(e),l=[];if("ClassMethod"===u.type||"ClassPrivateMethod"===u.type||"ClassProperty"===u.type||"TSAbstractClassProperty"===u.type||"ClassPrivateProperty"===u.type||"MethodDefinition"===u.type||"TSAbstractMethodDefinition"===u.type);else if(u.decorators&&u.decorators.length>0&&!(s&&t.locStart(s,{ignoreDecorators:!0})>t.locStart(u.decorators[0]))){var c="ClassExpression"===u.type||"ClassDeclaration"===u.type||Zd(u,t)?WD:UD;e.each(function(e){var t=e.getValue();t=t.expression?t.expression:t.callee,l.push(n(e),c)},"decorators"),s&&l.unshift(WD)}else Ed(u)&&u.declaration&&u.declaration.decorators&&u.declaration.decorators.length>0&&t.locStart(u,{ignoreDecorators:!0})>t.locStart(u.declaration.decorators[0])?e.each(function(e){var t=e.getValue();l.push("Decorator"===t.type?"":"@",n(e),WD)},"declaration","decorators"):a=dd(e,t);var p=[];if(a&&p.unshift("("),p.push(i),a){var f=e.getValue();Hd(f)&&(p.push(" /*"),p.push(f.trailingComments[0].value.trimLeft()),p.push("*/"),f.trailingComments[0].printed=!0),p.push(")")}return l.length>0?zD(qD(l.concat(p))):qD(p)},embed:function(e,t,n,r){var u,a=e.getValue(),i=e.getParentNode(),o=e.getParentNode(1);switch(a.type){case"TemplateLiteral":if([Ef,Af,Ff,Cf].some(function(t){return t(e)})){var s=a.quasis.map(function(e){return e.value.raw}),l=0,c=s.reduce(function(e,t,n){return 0==n?t:e+"@prettier-placeholder-"+l+++"-id"+t},"");return function(e,t,n){var r=t.getValue();if(1===r.quasis.length&&!r.quasis[0].value.raw.trim())return"``";var u=function(e,t){if(!t||!t.length)return e;var n=t.slice(),r=0,u=hf(e,function(e){if(!e||!e.parts||!e.parts.length)return e;var t=e.parts,u=t.indexOf("@"),a=u+1;if(u>-1&&"string"==typeof t[a]&&t[a].startsWith("prettier-placeholder")){var i=t[u],o=t[a],s=t.slice(a+1);t=t.slice(0,u).concat([i+o]).concat(s)}var l=t.findIndex(function(e){return"string"==typeof e&&e.startsWith("@prettier-placeholder")});if(l>-1){var c=t[l],p=t.slice(l+1),f=c.match(/@prettier-placeholder-(.+)-id([\s\S]*)/),d=f[2],D=n[f[1]];r++,t=t.slice(0,l).concat(["${",D,"}"+d]).concat(p)}return Object.assign({},e,{parts:t})});return n.length===r?u:null}(e,r.expressions?t.map(n,"expressions"):[]);if(!u)throw new Error("Couldn't insert all the expressions");return pf(["`",af(pf([sf,mf(u)])),lf,"`"])}(n(c,{parser:"css"}),e,t)}if(function(e){var t=e.getValue(),n=e.getParentNode();return Sf(t,"GraphQL")||n&&("TaggedTemplateExpression"===n.type&&("MemberExpression"===n.tag.type&&"graphql"===n.tag.object.name&&"experimental"===n.tag.property.name||"Identifier"===n.tag.type&&("gql"===n.tag.name||"graphql"===n.tag.name))||"CallExpression"===n.type&&"Identifier"===n.callee.type&&"graphql"===n.callee.name)}(e)){var p=a.expressions?e.map(t,"expressions"):[],f=a.quasis.length;if(1===f&&""===a.quasis[0].value.raw.trim())return"``";for(var d=[],D=0;D2&&""===y[0].trim()&&""===y[1].trim(),A=v>2&&""===y[v-1].trim()&&""===y[v-2].trim(),F=y.every(function(e){return/^\s*(?:#[^\r\n]*)?$/.test(e)});if(!m&&/#[^\r\n]*$/.test(y[v-1]))return null;var b=null;(b=F?vf(y):mf(n(g,{parser:"graphql"})))?(b=yf(b,!1),!h&&C&&d.push(""),d.push(b),!m&&A&&d.push("")):h||m||!C||d.push(""),E&&d.push(pf(["${",E,"}"]))}return pf(["`",af(pf([sf,of(sf,d)])),sf,"`"])}var x=function(e){return Sf(e.getValue(),"HTML")||wf(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t}])}(e)?"html":function(e){return wf(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"Property"===e.type&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t}].concat([function(e,t){return"ObjectExpression"===e.type&&"properties"===t},function(e,t){return"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t},function(e,t){return"Decorator"===e.type&&"expression"===t}]))}(e)?"angular":void 0;if(x)return function(e,t,n,r,u){var a=e.getValue(),i=Bf;Bf=Bf+1>>>0;var o=function(e){return"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(i,"_IN_JS")},s=a.quasis.map(function(e,t,n){return t===n.length-1?e.value.cooked:e.value.cooked+o(t)}).join(""),l=e.map(t,"expressions");if(0===l.length&&0===s.trim().length)return"``";var c=RegExp(o("(\\d+)"),"g"),p=hf(mf(n(s,{parser:r})),function(e){if("string"!=typeof e)return e;for(var t=[],n=e.split(c),r=0;r1&&t.every(function(e){return"*"===e.trim()[0]})}(n)){var r=function(e){var t=e.value.split("\n");return qD(["/*",VD(WD,t.map(function(e,n){return 0===n?e.trimRight():" "+(n x`"},{value:"always",description:"Always include parens. Example: `(x) => x`"}]},bracketSpacing:mo.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:mo.singleQuote,jsxSingleQuote:{since:"1.15.0",category:"JavaScript",type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:"JavaScript",type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:"JavaScript",type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"none",description:"No trailing commas."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:!0,deprecated:"0.19.0",redirect:"es5"},{value:!1,deprecated:"0.19.0",redirect:"none"}]}},Zh=["js","node"],em=[".js","._js",".bones",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],tm=["Jakefile"],nm=["chakra","d8","js","node","rhino","v8","v8-shell"],rm=Object.freeze({__proto__:null,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:Zh,extensions:em,filenames:tm,interpreters:nm,languageId:183,default:{name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:Zh,extensions:em,filenames:tm,interpreters:nm,languageId:183}}),um=[".jsx"],am=Object.freeze({__proto__:null,name:"JSX",type:"programming",group:"JavaScript",extensions:um,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178,default:{name:"JSX",type:"programming",group:"JavaScript",extensions:um,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178}}),im=["ts"],om=["deno","ts-node"],sm=[".ts"],lm=Object.freeze({__proto__:null,name:"TypeScript",type:"programming",color:"#2b7489",aliases:im,interpreters:om,extensions:sm,tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378,default:{name:"TypeScript",type:"programming",color:"#2b7489",aliases:im,interpreters:om,extensions:sm,tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378}}),cm=[".tsx"],pm=Object.freeze({__proto__:null,name:"TSX",type:"programming",group:"TypeScript",extensions:cm,tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924,default:{name:"TSX",type:"programming",group:"TypeScript",extensions:cm,tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924}}),fm=[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],dm=[".arcconfig",".htmlhintrc",".tern-config",".tern-project",".watchmanconfig","composer.lock","mcmod.info"],Dm=Object.freeze({__proto__:null,name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:fm,filenames:dm,languageId:174,default:{name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:fm,filenames:dm,languageId:174}}),hm=["jsonc"],mm=[".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"],gm=[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","jsconfig.json","language-configuration.json","tsconfig.json"],ym=Object.freeze({__proto__:null,name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:hm,extensions:mm,filenames:gm,languageId:423,default:{name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:hm,extensions:mm,filenames:gm,languageId:423}}),vm=[".json5"],Em=Object.freeze({__proto__:null,name:"JSON5",type:"data",extensions:vm,tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175,default:{name:"JSON5",type:"data",extensions:vm,tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175}}),Cm=lt(rm),Am=lt(am),Fm=lt(lm),bm=lt(pm),xm=lt(Dm),Sm=lt(ym),wm=lt(Em),Bm={languages:[yo(Cm,function(e){return Object.assign(e,{since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript","mongo"],interpreters:e.interpreters.concat(["nodejs"])})}),yo(Cm,function(e){return Object.assign(e,{name:"Flow",since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})}),yo(Am,function(e){return Object.assign(e,{since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascriptreact"]})}),yo(Fm,function(e){return Object.assign(e,{since:"1.4.0",parsers:["typescript"],vscodeLanguageIds:["typescript"]})}),yo(bm,function(e){return Object.assign(e,{since:"1.4.0",parsers:["typescript"],vscodeLanguageIds:["typescriptreact"]})}),yo(xm,function(e){return Object.assign(e,{name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]})}),yo(xm,function(e){return Object.assign(e,{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],filenames:e.filenames.concat([".prettierrc"])})}),yo(Sm,function(e){return Object.assign(e,{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:e.filenames.concat([".eslintrc"])})}),yo(wm,function(e){return Object.assign(e,{since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]})})],options:Qh,printers:{estree:Jh,"estree-json":Kh}},Tm="[\\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]",km="[\\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]",Om=Au.getLast,Nm=["liquidNode","inlineCode","emphasis","strong","delete","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],Pm=Nm.concat(["tableCell","paragraph","heading"]),Im=new RegExp("[\\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]"),jm=new RegExp(km),Lm={mapAst:function(e,t){return function e(n,r,u){var a=t(n,r,u=u||[]);return Array.isArray(a)||(a=Object.assign({},a)).children&&(a.children=a.children.reduce(function(t,n,r){var i=e(n,r,[a].concat(u));return Array.isArray(i)||(i=[i]),t.push.apply(t,i),t},[])),a}(e,null,null)},splitText:function(e,t){var n=[];return("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat(Tm,")\n(").concat(Tm,")"),"g"),"$1$2")).split(/([ \t\n]+)/).forEach(function(e,t,u){t%2!=1?(0!==t&&t!==u.length-1||""!==e)&&e.split(new RegExp("(".concat(Tm,")"))).forEach(function(e,t,n){(0!==t&&t!==n.length-1||""!==e)&&(t%2!=0?r(jm.test(e)?{type:"word",value:e,kind:"cjk-punctuation",hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:e,kind:Im.test(e)?"k-letter":"cj-letter",hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==e&&r({type:"word",value:e,kind:"non-cjk",hasLeadingPunctuation:jm.test(e[0]),hasTrailingPunctuation:jm.test(Om(e))}))}):n.push({type:"whitespace",value:/\n/.test(e)?"\n":" "})}),n;function r(e){var t=Om(n);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:" "}):"non-cjk"===t.kind&&"cjk-punctuation"===e.kind||"cjk-punctuation"===t.kind&&"non-cjk"===e.kind||[t.value,e.value].some(function(e){return/\u3000/.test(e)})||n.push({type:"whitespace",value:""})),n.push(e)}},punctuationPattern:km,getFencedCodeBlockValue:function(e,t){var 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"),i=n[r],o=n.slice(r).match(new RegExp("^[".concat(i,"]+")))[0],s=new RegExp("^\\s{0,3}".concat(o)).test(a[a.length-1].slice(l(a.length-1)));return a.slice(1,s?-1:void 0).map(function(e,t){return e.slice(l(t+1)).replace(u,"")}).join("\n");function l(t){return e.position.indent[t-1]-1}},getOrderedListItemInfo:function(e,t){var n=C(t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/),4);return{numberText:n[1],marker:n[2],leadingSpaces:n[3]}},INLINE_NODE_TYPES:Nm,INLINE_NODE_WRAPPER_TYPES:Pm},_m=$u.builders,Mm=_m.hardline,Rm=_m.literalline,qm=_m.concat,Vm=_m.markAsRoot,Um=$u.utils.mapDoc,Wm=Lm.getFencedCodeBlockValue,$m=["format","prettier"];function Jm(e){var t="@(".concat($m.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 zm={startWithPragma:Jm,hasPragma:function(e){return Jm(Qa(e).content.trimLeft())},insertPragma:function(e){var t=Qa(e),n="\x3c!-- @".concat($m[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)}},Gm=Lm.getOrderedListItemInfo,Xm=Lm.mapAst,Hm=Lm.splitText,Ym=/^([\u0000-\uffff]|[\ud800-\udbff][\udc00-\udfff])$/;function Km(e,t,n){return Xm(e,function(e){if(!e.children)return e;var r=e.children.reduce(function(e,r){var 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 Qm=$u.builders,Zm=Qm.breakParent,eg=Qm.concat,tg=Qm.join,ng=Qm.line,rg=Qm.literalline,ug=Qm.markAsRoot,ag=Qm.hardline,ig=Qm.softline,og=Qm.ifBreak,sg=Qm.fill,lg=Qm.align,cg=Qm.indent,pg=Qm.group,fg=$u.utils.mapDoc,dg=$u.printer.printDocToString,Dg=Lm.getFencedCodeBlockValue,hg=Lm.getOrderedListItemInfo,mg=Lm.splitText,gg=Lm.punctuationPattern,yg=Lm.INLINE_NODE_TYPES,vg=Lm.INLINE_NODE_WRAPPER_TYPES,Eg=Au.replaceEndOfLineWith,Cg=["importExport"],Ag=["heading","tableCell","link"],Fg=["listItem","definition","footnoteDefinition","jsx"];function bg(e,t,n,r){var u=e.getValue(),a=null===u.checked?"":u.checked?"[x] ":"[ ] ";return eg([a,kg(e,t,n,{processor:function(e,u){if(0===u&&"list"!==e.getValue().type)return lg(" ".repeat(a.length),e.call(n));var i,o=" ".repeat((i=t.tabWidth-r.length)<0?0:i>3?3:i);return eg([o,lg(o,e.call(n))])}})])}function xg(e,t){return function(e,t,n){n=n||function(){return!0};var r=-1,u=!0,a=!1,i=void 0;try{for(var o,s=t.children[Symbol.iterator]();!(u=(o=s.next()).done);u=!0){var l=o.value;if(l.type===e.type&&n(l)?r++:r=-1,l===e)return r}}catch(c){a=!0,i=c}finally{try{u||null==s.return||s.return()}finally{if(a)throw i}}}(e,t,function(t){return t.ordered===e.ordered})}function Sg(e,t){for(var n,r=[].concat(t),u=-1;n=e.getParentNode(++u);)if(-1!==r.indexOf(n.type))return u;return-1}function wg(e,t){var n=Sg(e,t);return-1===n?null:e.getParentNode(n)}function Bg(e,t,n){if("preserve"===n.proseWrap&&"\n"===t)return ag;var r="always"===n.proseWrap&&!wg(e,Ag);return""!==t?r?ng:" ":r?ig:""}function Tg(e,t,n){var r=[],u=null,a=e.getValue().children;return a.forEach(function(e,t){switch(Ng(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)}}),kg(e,t,n,{processor:function(e,u){if(0!==r.length){var i=r[0];if(u===i.start.index)return eg([a[i.start.index].value,t.originalText.slice(i.start.offset,i.end.offset),a[i.end.index].value]);if(i.start.index$/);return null!==t&&(t[1]?t[1]:"next")}function Pg(e){return e&&-1!==yg.indexOf(e.type)}function Ig(e){return e&&/\n+$/.test(e.value)}function jg(e,t){return t.prevNode&&"list"===t.prevNode.type&&"code"===e.type&&e.isIndented}function Lg(e){return fg(e,function(e){if(!e.parts)return e;if("concat"===e.type&&1===e.parts.length)return e.parts[0];var t=[];return e.parts.forEach(function(e){"concat"===e.type?t.push.apply(t,e.parts):""!==e&&t.push(e)}),Object.assign({},e,{parts:Rg(t)})})}function _g(e,t){var n=[" "].concat(t||[]);return new RegExp(n.map(function(e){return"\\".concat(e)}).join("|")).test(e)?"<".concat(e,">"):e}function Mg(e,t,n){if(null==n&&(n=!0),!e)return"";if(n)return" "+Mg(e,t,!1);if(e.includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");var 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 Rg(e){return e.reduce(function(e,t){var n=Au.getLast(e);return"string"==typeof n&&"string"==typeof t?e.splice(-1,1,n+t):e.push(t),e},[])}var qg={preprocess:function(e,t){return function(e){return Km(e,function(e,t){return"importExport"===e.type&&"importExport"===t.type},function(e,t){return{type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}}})}(e=function(e){return Xm(e,function(e){return"import"!==e.type&&"export"!==e.type?e:Object.assign({},e,{type:"importExport"})})}(e=function(e,t){return Xm(e,function(e,n,r){var u=C(r,1)[0];if("text"!==e.type)return e;var a=e.value;return"paragraph"===u.type&&(0===n&&(a=a.trimLeft()),n===u.children.length-1&&(a=a.trimRight())),{type:"sentence",position:e.position,children:Hm(a,t)}})}(e=function(e,t){return Xm(e,function(e,r,u){if("list"===e.type&&0!==e.children.length){for(var a=0;a1)return!0;var i=n(u);return-1!==i&&(1===e.children.length?i%t.tabWidth==0:i===n(a)&&(i%t.tabWidth==0||Gm(a,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 Xm(e,function(e,n,r){if("code"===e.type){var u=/^\n?( {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=u,u)for(var a=0;a|^([-+*]|#{1,6}|[0-9]+[.)])$/.test(i.value)?"never":t.proseWrap;return Bg(e,r.value,{proseWrap:o});case"emphasis":var s=e.getParentNode(),l=s.children.indexOf(r),c=s.children[l-1],p=s.children[l+1],f=c&&"sentence"===c.type&&c.children.length>0&&"word"===Au.getLast(c.children).type&&!Au.getLast(c.children).hasTrailingPunctuation||p&&"sentence"===p.type&&p.children.length>0&&"word"===p.children[0].type&&!p.children[0].hasLeadingPunctuation||wg(e,"emphasis")?"*":"_";return eg([f,kg(e,t,n),f]);case"strong":return eg(["**",kg(e,t,n),"**"]);case"delete":return eg(["~~",kg(e,t,n),"~~"]);case"inlineCode":var d=Au.getMinNotPresentContinuousCount(r.value,"`"),D="`".repeat(d||1),h=d?" ":"";return eg([D,h,r.value,h,D]);case"link":switch(t.originalText[r.position.start.offset]){case"<":var m=r.url.startsWith("mailto:")&&"mailto:"!==t.originalText.slice(r.position.start.offset+1,r.position.start.offset+1+"mailto:".length)?r.url.slice("mailto:".length):r.url;return eg(["<",m,">"]);case"[":return eg(["[",kg(e,t,n),"](",_g(r.url,")"),Mg(r.title,t),")"]);default:return t.originalText.slice(r.position.start.offset,r.position.end.offset)}case"image":return eg(["![",r.alt||"","](",_g(r.url,")"),Mg(r.title,t),")"]);case"blockquote":return eg(["> ",lg("> ",kg(e,t,n))]);case"heading":return eg(["#".repeat(r.depth)+" ",kg(e,t,n)]);case"code":if(r.isIndented){var g=" ".repeat(4);return lg(g,eg([g,eg(Eg(r.value,ag))]))}var y=t.__inJsTemplate?"~":"`",v=y.repeat(Math.max(3,Au.getMaxContinuousCount(r.value,y)+1));return eg([v,r.lang||"",ag,eg(Eg(Dg(r,t.originalText),ag)),ag,v]);case"yaml":case"toml":return t.originalText.slice(r.position.start.offset,r.position.end.offset);case"html":var E=e.getParentNode(),C="root"===E.type&&Au.getLast(E.children)===r?r.value.trimRight():r.value,A=/^$/.test(C);return eg(Eg(C,A?ag:ug(rg)));case"list":var F=xg(r,e.getParentNode()),b=r.ordered&&r.children.length>1&&1==+hg(r.children[1],t.originalText).numberText;return kg(e,t,n,{processor:function(e,u){var a,i=(a=r.ordered?(0===u?r.start:b?1:r.start+u)+(F%2==0?". ":") "):F%2==0?"- ":"* ",r.isAligned||r.hasIndentedCodeblock?function(e,t){var n,r=0==(n=e.length%t.tabWidth)?0:t.tabWidth-n;return e+" ".repeat(r>=4?0:r)}(a,t):a);return eg([i,lg(" ".repeat(i.length),bg(e,t,n,i))])}});case"thematicBreak":var x=Sg(e,"list");return-1===x?"---":xg(e.getParentNode(x),e.getParentNode(x+1))%2==0?"***":"---";case"linkReference":return eg(["[",kg(e,t,n),"]","full"===r.referenceType?eg(["[",r.identifier,"]"]):"collapsed"===r.referenceType?"[]":""]);case"imageReference":switch(r.referenceType){case"full":return eg(["![",r.alt||"","][",r.identifier,"]"]);default:return eg(["![",r.alt,"]","collapsed"===r.referenceType?"[]":""])}case"definition":var S="always"===t.proseWrap?ng:" ";return pg(eg([eg(["[",r.identifier,"]:"]),cg(eg([S,_g(r.url),null===r.title?"":eg([S,Mg(r.title,t,!1)])]))]));case"footnote":return eg(["[^",kg(e,t,n),"]"]);case"footnoteReference":return eg(["[^",r.identifier,"]"]);case"footnoteDefinition":var w=e.getParentNode().children[e.getName()+1];return eg(["[^",r.identifier,"]: ",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)?kg(e,t,n):pg(eg([lg(" ".repeat(t.tabWidth),kg(e,t,n,{processor:function(e,t){return 0===t?pg(eg([ig,ig,e.call(n)])):e.call(n)}})),w&&"footnoteDefinition"===w.type?ig:""]))]);case"table":return function(e,t,n){var r=ag.parts[0],u=e.getValue(),a=[];e.map(function(e){var r=[];e.map(function(e){r.push(dg(e.call(n),t).formatted)},"children"),a.push(r)},"children");var i=a.reduce(function(e,t){return e.map(function(e,n){return Math.max(e,Au.getStringWidth(t[n]))})},a[0].map(function(){return 3})),o=tg(r,[c(a[0]),l(),tg(r,a.slice(1).map(function(e){return c(e)}))]);if("never"!==t.proseWrap)return eg([Zm,o]);var s=tg(r,[c(a[0],!0),l(!0),tg(r,a.slice(1).map(function(e){return c(e,!0)}))]);return eg([Zm,pg(og(s,o))]);function l(e){return eg(["| ",tg(" | ",i.map(function(t,n){var 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 eg(["| ",tg(" | ",t?e:e.map(function(e,t){switch(u.align[t]){case"right":return r=i[t]-Au.getStringWidth(n=e),eg([" ".repeat(r),n]);case"center":return function(e,t){var n=t-Au.getStringWidth(e),r=Math.floor(n/2),u=n-r;return eg([" ".repeat(r),e," ".repeat(u)])}(e,i[t]);default:return function(e,t){var n=t-Au.getStringWidth(e);return eg([e," ".repeat(n)])}(e,i[t])}var n,r}))," |"])}}(e,t,n);case"tableCell":return kg(e,t,n);case"break":return/\s/.test(t.originalText[r.position.start.offset])?eg([" ",ug(rg)]):eg(["\\",ag]);case"liquidNode":return eg(Eg(r.value,ag));case"importExport":case"jsx":return r.value;case"math":return eg(["$$",ag,r.value?eg([eg(Eg(r.value,ag)),ag]):"","$$"]);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:function(e,t,n,r){var u,a,i=e.getValue();if("code"===i.type&&null!==i.lang){var o=i.lang.match(/^[A-Za-z0-9_-]+/),s=(u=o?o[0]:"",(a=Ht(null,{plugins:r.plugins}).languages.find(function(e){return e.name.toLowerCase()===u||e.aliases&&-1!==e.aliases.indexOf(u)||e.extensions&&e.extensions.find(function(e){return e.substring(1)===u})}))?a.parsers[0]:null);if(s){var l=r.__inJsTemplate?"~":"`",c=l.repeat(Math.max(3,Au.getMaxContinuousCount(i.value,l)+1)),p=n(Wm(i,r.originalText),{parser:s});return Vm(qm([c,i.lang,Mm,f(p),c]))}}if("yaml"===i.type)return Vm(qm(["---",Mm,i.value&&i.value.trim()?f(n(i.value,{parser:"yaml"})):"","---"]));switch(i.type){case"importExport":return n(i.value,{parser:"babel"});case"jsx":return n(i.value,{parser:"__js_expression"})}return null;function f(e){return Um(e,function(e){return"string"==typeof e&&e.includes("\n")?qm(e.split(/(\n)/g).map(function(e,t){return t%2==0?e:Rm})):e})}},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&&zm.startWithPragma(e.value)?null:void 0)},hasPrettierIgnore:function(e){var t=+e.getName();return 0!==t&&"next"===Ng(e.getParentNode().children[t-1])},insertPragma:zm.insertPragma},Vg={proseWrap:mo.proseWrap,singleQuote:mo.singleQuote},Ug=["pandoc"],Wg=[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".workbook"],$g=["contents.lr"],Jg=lt(Object.freeze({__proto__:null,name:"Markdown",type:"prose",aliases:Ug,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:Wg,filenames:$g,tmScope:"source.gfm",languageId:222,default:{name:"Markdown",type:"prose",aliases:Ug,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:Wg,filenames:$g,tmScope:"source.gfm",languageId:222}})),zg={languages:[yo(Jg,function(e){return Object.assign(e,{since:"1.8.0",parsers:["remark"],vscodeLanguageIds:["markdown"],filenames:e.filenames.concat(["README"]),extensions:e.extensions.filter(function(e){return".mdx"!==e})})}),yo(Jg,function(e){return Object.assign(e,{name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]})})],options:Vg,printers:{mdast:qg}},Gg=Au.getLast;function Xg(e,t){return e&&"string"==typeof e.type&&(!t||-1!==t.indexOf(e.type))}function Hg(e){return"prettier-ignore"===e.value.trim()}function Yg(e){return e&&e.leadingComments&&0!==e.leadingComments.length}function Kg(e){return e&&e.middleComments&&0!==e.middleComments.length}function Qg(e){return e&&e.indicatorComment}function Zg(e){return e&&e.trailingComment}function ey(e){return e&&e.endComments&&0!==e.endComments.length}function ty(e){var t=[],n=void 0,r=!0,u=!1,a=void 0;try{for(var i,o=e.split(/( +)/g)[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;" "!==s?t.push(" "===n?s:(t.pop()||"")+s):void 0===n&&t.unshift(""),n=s}}catch(l){u=!0,a=l}finally{try{r||null==o.return||o.return()}finally{if(u)throw a}}return" "===n&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}var ny={getLast:Gg,getAncestorCount:function(e,t){for(var n=0,r=e.stack.length-1,u=0;u=0&&0===t[r].length;r--)n++;return 0===n?t:t.slice(0,n>=2&&!u?-(n-1):-n)}("preserve"===a.proseWrap||"blockLiteral"===e.type?s.map(function(e){return 0===e.length?[]:[e]}):s.map(function(e){return 0===e.length?[]:ty(e)}).reduce(function(e,t,n){return 0===n||0===s[n-1].length||0===t.length||/^\s/.test(t[0])||/^\s|\s$/.test(Gg(e))?e.concat([t]):e.concat([e.pop().concat(t)])},[]).map(function(e){return e.reduce(function(e,t){return 0!==e.length&&/\s$/.test(Gg(e))?e.concat(e.pop()+" "+t):e.concat(t)},[])}).map(function(e){return"never"===a.proseWrap?[e.join(" ")]:e}))},getFlowScalarLineContents:function(e,t,n){var r=t.split("\n").map(function(e,t,n){return 0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimRight():e.trimLeft()});return"preserve"===n.proseWrap?r.map(function(e){return 0===e.length?[]:[e]}):r.map(function(e){return 0===e.length?[]:ty(e)}).reduce(function(t,n,u){return 0===u||0===r[u-1].length||0===n.length||"quoteDouble"===e&&Gg(Gg(t)).endsWith("\\")?t.concat([n]):t.concat([t.pop().concat(n)])},[]).map(function(e){return"never"===n.proseWrap?[e.join(" ")]:e})},getLastDescendantNode:function e(t){return"children"in t&&0!==t.children.length?e(Gg(t.children)):t},hasPrettierIgnore:function(e){var t=e.getValue();if("documentBody"===t.type){var n=e.getParentNode();return ey(n.head)&&Hg(Gg(n.head.endComments))}return Yg(t)&&Hg(Gg(t.leadingComments))},hasLeadingComments:Yg,hasMiddleComments:Kg,hasIndicatorComment:Qg,hasTrailingComment:Zg,hasEndComments:ey},ry=ny.getAncestorCount,uy=ny.getBlockValueLineContents,ay=ny.getFlowScalarLineContents,iy=ny.getLast,oy=ny.getLastDescendantNode,sy=ny.hasLeadingComments,ly=ny.hasMiddleComments,cy=ny.hasIndicatorComment,py=ny.hasTrailingComment,fy=ny.hasEndComments,dy=ny.hasPrettierIgnore,Dy=ny.isLastDescendantNode,hy=ny.isNextLineEmpty,my=ny.isNode,gy=ny.isEmptyNode,yy=ny.defineShortcut,vy=ny.mapNode,Ey=$u.builders,Cy=Ey.conditionalGroup,Ay=Ey.breakParent,Fy=Ey.concat,by=Ey.dedent,xy=Ey.dedentToRoot,Sy=Ey.fill,wy=Ey.group,By=Ey.hardline,Ty=Ey.ifBreak,ky=Ey.join,Oy=Ey.line,Ny=Ey.lineSuffix,Py=Ey.literalline,Iy=Ey.markAsRoot,jy=Ey.softline,Ly=Au.replaceEndOfLineWith;function _y(e){switch(e.type){case"document":yy(e,"head",function(){return e.children[0]}),yy(e,"body",function(){return e.children[1]});break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":yy(e,"content",function(){return e.children[0]});break;case"mappingItem":case"flowMappingItem":yy(e,"key",function(){return e.children[0]}),yy(e,"value",function(){return e.children[1]})}return e}function My(e,t,n,r,u){switch(e.type){case"root":return Fy([ky(By,n.map(function(t,r){var a=e.children[r],i=e.children[r+1];return Fy([u(t),Vy(a,i)?Fy([By,"...",py(a)?Fy([" ",n.call(u,"trailingComment")]):""]):!i||py(i.head)?"":Fy([By,"---"])])},"children")),0===e.children.length||(x=oy(e),my(x,["blockLiteral","blockFolded"])&&"keep"===x.chomping)?"":By]);case"document":var a=t.children[n.getName()+1];return ky(By,["head"===Uy(e,a,t,r)?ky(By,[0===e.head.children.length&&0===e.head.endComments.length?"":n.call(u,"head"),Fy(["---",py(e.head)?Fy([" ",n.call(u,"head","trailingComment")]):""])].filter(Boolean)):"",(b=e,0!==b.body.children.length||fy(b.body)?n.call(u,"body"):"")].filter(Boolean));case"documentHead":return ky(By,[].concat(n.map(u,"children"),n.map(u,"endComments")));case"documentBody":var i=ky(By,n.map(u,"children")).parts,o=ky(By,n.map(u,"endComments")).parts,s=0===i.length||0===o.length?"":function(e){return my(e,["blockFolded","blockLiteral"])?"keep"===e.chomping?"":Fy([By,By]):By}(oy(e));return Fy([].concat(i,s,o));case"directive":return Fy(["%",ky(" ",[e.name].concat(e.parameters))]);case"comment":return Fy(["#",e.value]);case"alias":return Fy(["*",e.value]);case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return Fy(["&",e.value]);case"plain":return zy(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":var l=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&l.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(l)){var c="quoteDouble"===e.type?'"':"'";return Fy([c,zy(e.type,l,r),c])}if(l.includes('"'))return Fy(["'",zy(e.type,"quoteDouble"===e.type?l.replace(/\\"/g,'"').replace(/'/g,"'".repeat(2)):l,r),"'"]);if(l.includes("'"))return Fy(['"',zy(e.type,"quoteSingle"===e.type?l.replace(/''/g,"'"):l,r),'"']);var p=r.singleQuote?"'":'"';return Fy([p,zy(e.type,l,r),p]);case"blockFolded":case"blockLiteral":var f=ry(n,function(e){return my(e,["sequence","mapping"])}),d=Dy(n);return Fy(["blockFolded"===e.type?">":"|",null===e.indent?"":e.indent.toString(),"clip"===e.chomping?"":"keep"===e.chomping?"+":"-",cy(e)?Fy([" ",n.call(u,"indicatorComment")]):"",(null===e.indent?by:xy)(Ry(null===e.indent?r.tabWidth:e.indent-1+f,Fy(uy(e,{parentIndent:f,isLastDescendant:d,options:r}).reduce(function(t,n,r,u){return t.concat(0===r?By:"",Sy(ky(Oy,n).parts),r!==u.length-1?0===n.length?By:Iy(Py):"keep"===e.chomping&&d?xy(0===n.length?By:Py):"")},[]))))]);case"sequence":return ky(By,n.map(u,"children"));case"sequenceItem":return Fy(["- ",Ry(2,e.content?n.call(u,"content"):"")]);case"mappingKey":case"mappingValue":return e.content?n.call(u,"content"):"";case"mapping":return ky(By,n.map(u,"children"));case"mappingItem":case"flowMappingItem":var D=gy(e.key),h=gy(e.value);if(D&&h)return Fy([": "]);var m=n.call(u,"key"),g=n.call(u,"value");if(h)return"flowMappingItem"===e.type&&"flowMapping"===t.type?m:"mappingItem"!==e.type||!Wy(e.key.content,r)||py(e.key.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?Fy(["? ",Ry(2,m)]):Fy([m,$y(e)?" ":"",":"]);if(D)return Fy([": ",Ry(2,g)]);var y=Symbol("mappingKey");return sy(e.value)||!qy(e.key.content)?Fy(["? ",Ry(2,m),By,ky("",n.map(u,"value","leadingComments").map(function(e){return Fy([e,By])})),": ",Ry(2,g)]):!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)||sy(e.key.content)||ly(e.key.content)||py(e.key.content)||fy(e.key)||sy(e.value.content)||ly(e.value.content)||fy(e.value)||!Wy(e.value.content,r)?Cy([Fy([wy(Fy([Ty("? "),wy(Ry(2,m),{id:y})])),Ty(Fy([By,": ",Ry(2,g)]),S(Fy([$y(e)?" ":"",":",sy(e.value.content)||fy(e.value)&&e.value.content&&!my(e.value.content,["mapping","sequence"])||"mapping"===t.type&&py(e.key.content)&&qy(e.value.content)||my(e.value.content,["mapping","sequence"])&&null===e.value.content.tag&&null===e.value.content.anchor?By:e.value.content?Oy:"",g])),{groupId:y})])]):Fy([m,$y(e)?" ":"",": ",g]);case"flowMapping":case"flowSequence":var v="flowMapping"===e.type?"{":"[",E="flowMapping"===e.type?"}":"]",C="flowMapping"===e.type&&0!==e.children.length&&r.bracketSpacing?Oy:jy,A=0!==e.children.length&&"flowMappingItem"===(F=iy(e.children)).type&&gy(F.key)&&gy(F.value);return Fy([v,S(Fy([C,Fy(n.map(function(t,n){return Fy([u(t),n===e.children.length-1?"":Fy([",",Oy,e.children[n].position.start.line!==e.children[n+1].position.start.line?Jy(t,r.originalText):""])])},"children")),Ty(",","")])),A?"":C,E]);case"flowSequenceItem":return n.call(u,"content");default:throw new Error("Unexpected node type ".concat(e.type))}var F,b,x;function S(e){return Ey.align(" ".repeat(r.tabWidth),e)}}function Ry(e,t){return Ey.align("number"==typeof e&&e>0?" ".repeat(e):e,t)}function qy(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 Vy(e,t){return py(e)||t&&(0!==t.head.children.length||fy(t.head))}function Uy(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||fy(e.head)||py(e.head)?"head":!Vy(e,t)&&!!t&&"root"}function Wy(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-1===e.value.indexOf("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}function $y(e){return e.key.content&&"alias"===e.key.content.type}function Jy(e,t){var n=e.getValue(),r=e.stack[0];return r.isNextEmptyLinePrintedChecklist=r.isNextEmptyLinePrintedChecklist||[],!r.isNextEmptyLinePrintedChecklist[n.position.end.line]&&hy(n,t)?(r.isNextEmptyLinePrintedChecklist[n.position.end.line]=!0,jy):""}function zy(e,t,n){var r=ay(e,t,n);return ky(By,r.map(function(e){return Sy(ky(Oy,e).parts)}))}var Gy={preprocess:function(e){return vy(e,_y)},print:function(e,t,n){var r=e.getValue(),u=e.getParentNode(),a=r.tag?e.call(n,"tag"):"",i=r.anchor?e.call(n,"anchor"):"",o=my(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Dy(e)?Jy(e,t.originalText):"";return Fy(["mappingValue"!==r.type&&sy(r)?Fy([ky(By,e.map(n,"leadingComments")),By]):"",a,a&&i?" ":"",i,a||i?my(r,["sequence","mapping"])&&!ly(r)?By:" ":"",ly(r)?Fy([1===r.middleComments.length?"":By,ky(By,e.map(n,"middleComments")),By]):"",dy(e)?Fy(Ly(t.originalText.slice(r.position.start.offset,r.position.end.offset),Py)):wy(My(r,u,e,t,n)),py(r)&&!my(r,["document","documentHead"])?Ny(Fy(["mappingValue"!==r.type||r.content?" ":"","mappingKey"===u.type&&"mapping"===e.getParentNode(2).type&&qy(r)?"":Ay,e.call(n,"trailingComment")])):"",o,fy(r)&&!my(r,["documentHead","documentBody"])?Ry("sequenceItem"===r.type?2:0,Fy([By,ky(By,e.map(n,"endComments"))])):""])},massageAstNode:function(e,t){if(my(t))switch(delete t.position,t.type){case"comment":if(/^\s*@(prettier|format)\s*$/.test(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:function(e){return"# @format\n\n".concat(e)}},Xy={bracketSpacing:mo.bracketSpacing,singleQuote:mo.singleQuote,proseWrap:mo.proseWrap},Hy=["yml"],Yy=[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yml.mysql"],Ky=[".clang-format",".clang-tidy",".gemrc","glide.lock"],Qy=[yo(lt(Object.freeze({__proto__:null,name:"YAML",type:"data",tmScope:"source.yaml",aliases:Hy,extensions:Yy,filenames:Ky,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407,default:{name:"YAML",type:"data",tmScope:"source.yaml",aliases:Hy,extensions:Yy,filenames:Ky,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407}})),function(e){return Object.assign(e,{since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml"]})})],Zy=zt.version,ev=Ht,tv=[Oo,Xo,Fs,Vp,Bm,zg,{languages:Qy,printers:{yaml:Gy},options:Xy}],nv=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function rv(e){return function(){var t=Array.from(arguments),n=t[1]&&t[1].plugins||[];return nv(n)||(n=Object.values(n)),t[1]=Object.assign({},t[1],{plugins:tv.concat(n)}),e.apply(null,t)}}var uv=rv(function(e,t){return qa(e,t=Oa(t))});return{formatWithCursor:uv,format:function(e,t){return uv(e,t).formatted},check:function(e,t){return uv(e,t).formatted===e},doc:$u,getSupportInfo:rv(ev),version:Zy,util:Ju,__debug:{parse:rv(function(e,t,n){t=Oa(t),-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,"\n"));var r=Br.parse(e,t);return n&&(r.ast=Ir(r.ast,t)),r}),formatAST:rv(function(e,t){t=Oa(t);var n=Sa(e,t);return Ia(n,t)}),formatDoc:rv(function(e,t){return qa(ja(e),t=Oa(Object.assign({},t,{parser:"babel"}))).formatted}),printToDoc:rv(function(e,t){t=Oa(t);var n=Br.parse(e,t),r=n.ast;return Ma(e=n.text,r,t),Sa(r,t)}),printDocToString:rv(function(e,t){return Ia(e,Oa(t))})}}},e.exports=r()}}]);