Son CV dans un terminal web en Javascript! https://terminal-cv.gregandev.fr
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terminal-cv/node_modules/prettier/parser-postcss.js

22 lines
221 KiB

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.prettierPlugins=t():(e.prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.postcss=t())}(new Function("return this")(),(function(){return(()=>{var e={2426:e=>{"use strict";e.exports=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}},118:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},6956:(e,t,r)=>{var n=r(2521);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},9729:(e,t,r)=>{var n=r(9969),o=r(8331),i=r(1588),createMethod=function(e){return function(t,r,s){var u,a=n(t),c=o(a.length),l=i(s,c);if(e&&r!=r){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((e||l in a)&&a[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},9719:(e,t,r)=>{"use strict";var n=r(2763);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){throw 1},1)}))}},3407:e=>{var t=Math.floor,mergeSort=function(e,r){var n=e.length,o=t(n/2);return n<8?insertionSort(e,r):merge(mergeSort(e.slice(0,o),r),mergeSort(e.slice(o),r),r)},insertionSort=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},merge=function(e,t,r){for(var n=e.length,o=t.length,i=0,s=0,u=[];i<n||s<o;)i<n&&s<o?u.push(r(e[i],t[s])<=0?e[i++]:t[s++]):u.push(i<n?e[i++]:t[s++]);return u};e.exports=mergeSort},2021:(e,t,r)=>{var n=r(2521),o=r(3964),i=r(1386)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)?n(t)&&null===(t=t[i])&&(t=void 0):t=void 0),void 0===t?Array:t}},8347:(e,t,r)=>{var n=r(2021);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},2849:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},9538:(e,t,r)=>{var n=r(6395),o=r(2849),i=r(1386)("toStringTag"),s="Arguments"==o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:s?o(t):"Object"==(n=o(t))&&"function"==typeof t.callee?"Arguments":n}},4488:(e,t,r)=>{var n=r(2766),o=r(9593),i=r(8769),s=r(7455);e.exports=function(e,t){for(var r=o(t),u=s.f,a=i.f,c=0;c<r.length;c++){var l=r[c];n(e,l)||u(e,l,a(t,l))}}},1471:(e,t,r)=>{var n=r(7703),o=r(7455),i=r(5938);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},5938:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},2385:(e,t,r)=>{"use strict";var n=r(5224),o=r(7455),i=r(5938);e.exports=function(e,t,r){var s=n(t);s in e?o.f(e,s,i(0,r)):e[s]=r}},7703:(e,t,r)=>{var n=r(2763);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6004:(e,t,r)=>{var n=r(6121),o=r(2521),i=n.document,s=o(i)&&o(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},5249:(e,t,r)=>{var n=r(8635).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},2049:(e,t,r)=>{var n=r(8635);e.exports=/MSIE|Trident/.test(n)},8635:(e,t,r)=>{var n=r(7642);e.exports=n("navigator","userAgent")||""},6962:(e,t,r)=>{var n,o,i=r(6121),s=r(8635),u=i.process,a=i.Deno,c=u&&u.versions||a&&a.version,l=c&&c.v8;l?o=(n=l.split("."))[0]<4?1:n[0]+n[1]:s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=n[1]),e.exports=o&&+o},8998:(e,t,r)=>{var n=r(8635).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},4731:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7309:(e,t,r)=>{var n=r(6121),o=r(8769).f,i=r(1471),s=r(2327),u=r(6565),a=r(4488),c=r(676);e.exports=function(e,t){var r,l,p,f,h,d=e.targe
Print (to stderr) where a cursor at the given position would move to after formatting.
This option cannot be used with --range-start and --range-end.
`,cliCategory:i},endOfLine:{since:"1.15.0",category:u,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:n`
Maintain existing
(mixed values within one file are normalised by looking at what's used after the first line)
`}]},filepath:{since:"1.4.0",category:a,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:s,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:a,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:s},parser:{since:"0.0.10",category:u,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:e=>"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:u,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:o},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:u,description:n`
Custom directory that contains prettier plugins in node_modules subdirectory.
Overrides default behavior when plugins are searched relatively to the location of Prettier.
Multiple values are accepted.
`,exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin-search-dir",cliCategory:o},printWidth:{since:"0.0.0",category:u,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:a,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:n`
Format code ending at a given character offset (exclusive).
The range will extend forwards to the end of the selected statement.
This option cannot be used with --cursor-offset.
`,cliCategory:i},rangeStart:{since:"1.4.0",category:a,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:n`
Format code starting at a given character offset.
The range will extend backwards to the start of the first line containing the selected statement.
This option cannot be used with --cursor-offset.
`,cliCategory:i},requirePragma:{since:"1.7.0",category:a,type:"boolean",default:!1,description:n`
Require either '@prettier' or '@format' to be present in the file's first docblock comment
in order for it to be formatted.
`,cliCategory:s},tabWidth:{type:"int",category:u,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:u,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:u,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};e.exports={CATEGORY_CONFIG:o,CATEGORY_EDITOR:i,CATEGORY_FORMAT:"Format",CATEGORY_OTHER:s,CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:u,CATEGORY_SPECIAL:a,options:c}},7290:(e,t,r)=>{"use strict";const n=["cliName","cliCategory","cliDescription"];function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r(4304),r(4070),r(2612);const o={compare:r(2828),lt:r(3725),gte:r(9195)},i=r(9077),s=r(4147).i8,u=r(8988).options;e.exports={getSupportInfo:function({plugins:e=[],showUnreleased:t=!1,showDeprecated:r=!1,showInternal:a=!1}={}){const c=s.split("-",1)[0],l=e.flatMap((e=>e.languages||[])).filter(filterSince),p=i(Object.assign({},...e.map((({options:e})=>e)),u),"name").filter((e=>filterSince(e)&&filterDeprecated(e))).sort(((e,t)=>e.name===t.name?0:e.name<t.name?-1:1)).map((function(e){if(a)return e;const{cliName:t,cliCategory:r,cliDescription:o}=e;return _objectWithoutProperties(e,n)})).map((t=>{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(filterSince).sort(((e,t)=>o.compare(t.since,e.since)))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter((e=>filterSince(e)&&filterDeprecated(e))),"parser"===t.name&&function(e,t,r){const n=new Set(e.choices.map((e=>e.value)));for(const o of t)if(o.parsers)for(const t of o.parsers)if(!n.has(t)){n.add(t);const i=r.find((e=>e.parsers&&e.parsers[t]));let s=o.name;i&&i.name&&(s+=` (plugin: ${i.name})`),e.choices.push({value:t,description:s})}}(t,l,e));const r=Object.fromEntries(e.filter((e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name])).map((e=>[e.name,e.defaultOptions[t.name]])));return Object.assign(Object.assign({},t),{},{pluginDefaults:r})}));return{languages:l,options:p};function filterSince(e){return t||!("since"in e)||e.since&&o.gte(c,e.since)}function filterDeprecated(e){return r||!("deprecated"in e)||e.deprecated&&o.lt(c,e.deprecated)}}}},9077:e=>{"use strict";e.exports=(e,t)=>Object.entries(e).map((([e,r])=>Object.assign({[t]:e},r)))},5115:e=>{"use strict";const t=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");e.exports=function(e){const r=e.match(t);if(!r)return{content:e};const{startDelimiter:n,language:o,value:i="",endDelimiter:s}=r.groups;let u=o.trim()||"yaml";if("+++"===n&&(u="toml"),"yaml"!==u&&n!==s)return{content:e};const[a]=r;return{frontMatter:{type:"front-matter",lang:u,value:i,startDelimiter:n,endDelimiter:s,raw:a.replace(/\n$/,"")},content:a.replace(/[^\n]/g," ")+e.slice(a.length)}}},4652:e=>{"use strict";e.exports=e=>e[e.length-1]},6920:e=>{"use strict";e.exports=function(e,t){let r=0;for(let n=0;n<e.line-1;++n)r=t.indexOf("\n",r)+1;return r+e.column}},8472:()=>{},2868:()=>{},3248:()=>{},6083:()=>{},4940:(e,t,r)=>{"use strict";r.r(t),r.d(t,{existsSync:()=>existsSync,readFileSync:()=>readFileSync,default:()=>n});const existsSync=()=>!1,readFileSync=()=>"",n={existsSync,readFileSync}},4372:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={EOL:"\n",platform:()=>"browser",cpus:()=>[{model:"Prettier"}]}},3974:(e,t