summaryrefslogtreecommitdiff
path: root/.config/coc/extensions/node_modules/coc-css/lib/index.js
diff options
context:
space:
mode:
Diffstat (limited to '.config/coc/extensions/node_modules/coc-css/lib/index.js')
-rw-r--r--.config/coc/extensions/node_modules/coc-css/lib/index.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/.config/coc/extensions/node_modules/coc-css/lib/index.js b/.config/coc/extensions/node_modules/coc-css/lib/index.js
deleted file mode 100644
index 0bb0daf..0000000
--- a/.config/coc/extensions/node_modules/coc-css/lib/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var ne=Object.create;var T=Object.defineProperty;var oe=Object.getOwnPropertyDescriptor;var ie=Object.getOwnPropertyNames;var se=Object.getPrototypeOf,ae=Object.prototype.hasOwnProperty;var K=l=>T(l,"__esModule",{value:!0});var he=(l,m)=>{for(var y in m)T(l,y,{get:m[y],enumerable:!0})},G=(l,m,y,d)=>{if(m&&typeof m=="object"||typeof m=="function")for(let f of ie(m))!ae.call(l,f)&&(y||f!=="default")&&T(l,f,{get:()=>m[f],enumerable:!(d=oe(m,f))||d.enumerable});return l},H=(l,m)=>G(K(T(l!=null?ne(se(l)):{},"default",!m&&l&&l.__esModule?{get:()=>l.default,enumerable:!0}:{value:l,enumerable:!0})),l),ue=(l=>(m,y)=>l&&l.get(m)||(y=G(K({}),m,1),l&&l.set(m,y),y))(typeof WeakMap!="undefined"?new WeakMap:0);var ce={};he(ce,{activate:()=>te});var j=H(require("coc.nvim"));var _=H(require("coc.nvim"));var Q;Q=(()=>{"use strict";var l={470:d=>{function f(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function w(t,o){for(var i,h="",c=0,u=-1,p=0,a=0;a<=t.length;++a){if(a<t.length)i=t.charCodeAt(a);else{if(i===47)break;i=47}if(i===47){if(!(u===a-1||p===1))if(u!==a-1&&p===2){if(h.length<2||c!==2||h.charCodeAt(h.length-1)!==46||h.charCodeAt(h.length-2)!==46){if(h.length>2){var C=h.lastIndexOf("/");if(C!==h.length-1){C===-1?(h="",c=0):c=(h=h.slice(0,C)).length-1-h.lastIndexOf("/"),u=a,p=0;continue}}else if(h.length===2||h.length===1){h="",c=0,u=a,p=0;continue}}o&&(h.length>0?h+="/..":h="..",c=2)}else h.length>0?h+="/"+t.slice(u+1,a):h=t.slice(u+1,a),c=a-u-1;u=a,p=0}else i===46&&p!==-1?++p:p=-1}return h}var x={resolve:function(){for(var t,o="",i=!1,h=arguments.length-1;h>=-1&&!i;h--){var c;h>=0?c=arguments[h]:(t===void 0&&(t=process.cwd()),c=t),f(c),c.length!==0&&(o=c+"/"+o,i=c.charCodeAt(0)===47)}return o=w(o,!i),i?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(t){if(f(t),t.length===0)return".";var o=t.charCodeAt(0)===47,i=t.charCodeAt(t.length-1)===47;return(t=w(t,!o)).length!==0||o||(t="."),t.length>0&&i&&(t+="/"),o?"/"+t:t},isAbsolute:function(t){return f(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,o=0;o<arguments.length;++o){var i=arguments[o];f(i),i.length>0&&(t===void 0?t=i:t+="/"+i)}return t===void 0?".":x.normalize(t)},relative:function(t,o){if(f(t),f(o),t===o||(t=x.resolve(t))===(o=x.resolve(o)))return"";for(var i=1;i<t.length&&t.charCodeAt(i)===47;++i);for(var h=t.length,c=h-i,u=1;u<o.length&&o.charCodeAt(u)===47;++u);for(var p=o.length-u,a=c<p?c:p,C=-1,A=0;A<=a;++A){if(A===a){if(p>a){if(o.charCodeAt(u+A)===47)return o.slice(u+A+1);if(A===0)return o.slice(u+A)}else c>a&&(t.charCodeAt(i+A)===47?C=A:A===0&&(C=0));break}var S=t.charCodeAt(i+A);if(S!==o.charCodeAt(u+A))break;S===47&&(C=A)}var E="";for(A=i+C+1;A<=h;++A)A!==h&&t.charCodeAt(A)!==47||(E.length===0?E+="..":E+="/..");return E.length>0?E+o.slice(u+C):(u+=C,o.charCodeAt(u)===47&&++u,o.slice(u))},_makeLong:function(t){return t},dirname:function(t){if(f(t),t.length===0)return".";for(var o=t.charCodeAt(0),i=o===47,h=-1,c=!0,u=t.length-1;u>=1;--u)if((o=t.charCodeAt(u))===47){if(!c){h=u;break}}else c=!1;return h===-1?i?"/":".":i&&h===1?"//":t.slice(0,h)},basename:function(t,o){if(o!==void 0&&typeof o!="string")throw new TypeError('"ext" argument must be a string');f(t);var i,h=0,c=-1,u=!0;if(o!==void 0&&o.length>0&&o.length<=t.length){if(o.length===t.length&&o===t)return"";var p=o.length-1,a=-1;for(i=t.length-1;i>=0;--i){var C=t.charCodeAt(i);if(C===47){if(!u){h=i+1;break}}else a===-1&&(u=!1,a=i+1),p>=0&&(C===o.charCodeAt(p)?--p==-1&&(c=i):(p=-1,c=a))}return h===c?c=a:c===-1&&(c=t.length),t.slice(h,c)}for(i=t.length-1;i>=0;--i)if(t.charCodeAt(i)===47){if(!u){h=i+1;break}}else c===-1&&(u=!1,c=i+1);return c===-1?"":t.slice(h,c)},extname:function(t){f(t);for(var o=-1,i=0,h=-1,c=!0,u=0,p=t.length-1;p>=0;--p){var a=t.charCodeAt(p);if(a!==47)h===-1&&(c=!1,h=p+1),a===46?o===-1?o=p:u!==1&&(u=1):o!==-1&&(u=-1);else if(!c){i=p+1;break}}return o===-1||h===-1||u===0||u===1&&o===h-1&&o===i+1?"":t.slice(o,h)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(o,i){var h=i.dir||i.root,c=i.base||(i.name||"")+(i.ext||"");return h?h===i.root?h+c:h+"/"+c:c}(0,t)},parse:function(t){f(t);var o={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return o;var i,h=t.charCodeAt(0),c=h===47;c?(o.root="/",i=1):i=0;for(var u=-1,p=0,a=-1,C=!0,A=t.length-1,S=0;A>=i;--A)if((h=t.charCodeAt(A))!==47)a===-1&&(C=!1,a=A+1),h===46?u===-1?u=A:S!==1&&(S=1):u!==-1&&(S=-1);else if(!C){p=A+1;break}return u===-1||a===-1||S===0||S===1&&u===a-1&&u===p+1?a!==-1&&(o.base=o.name=p===0&&c?t.slice(1,a):t.slice(p,a)):(p===0&&c?(o.name=t.slice(1,u),o.base=t.slice(1,a)):(o.name=t.slice(p,u),o.base=t.slice(p,a)),o.ext=t.slice(u,a)),p>0?o.dir=t.slice(0,p-1):c&&(o.dir="/"),o},sep:"/",delimiter:":",win32:null,posix:null};x.posix=x,d.exports=x},447:(d,f,w)=>{var x;if(w.r(f),w.d(f,{URI:()=>S,Utils:()=>z}),typeof process=="object")x=process.platform==="win32";else if(typeof navigator=="object"){var t=navigator.userAgent;x=t.indexOf("Windows")>=0}var o,i,h=(o=function(n,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var b in s)Object.prototype.hasOwnProperty.call(s,b)&&(r[b]=s[b])})(n,e)},function(n,e){function r(){this.constructor=n}o(n,e),n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}),c=/^\w[\w\d+.-]*$/,u=/^\//,p=/^\/\//,a="",C="/",A=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,S=function(){function n(e,r,s,b,g,v){v===void 0&&(v=!1),typeof e=="object"?(this.scheme=e.scheme||a,this.authority=e.authority||a,this.path=e.path||a,this.query=e.query||a,this.fragment=e.fragment||a):(this.scheme=function(P,O){return P||O?P:"file"}(e,v),this.authority=r||a,this.path=function(P,O){switch(P){case"https":case"http":case"file":O?O[0]!==C&&(O=C+O):O=C}return O}(this.scheme,s||a),this.query=b||a,this.fragment=g||a,function(P,O){if(!P.scheme&&O)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+P.authority+'", path: "'+P.path+'", query: "'+P.query+'", fragment: "'+P.fragment+'"}');if(P.scheme&&!c.test(P.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(P.path){if(P.authority){if(!u.test(P.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(p.test(P.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,v))}return n.isUri=function(e){return e instanceof n||!!e&&typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="function"&&typeof e.with=="function"&&typeof e.toString=="function"},Object.defineProperty(n.prototype,"fsPath",{get:function(){return W(this,!1)},enumerable:!1,configurable:!0}),n.prototype.with=function(e){if(!e)return this;var r=e.scheme,s=e.authority,b=e.path,g=e.query,v=e.fragment;return r===void 0?r=this.scheme:r===null&&(r=a),s===void 0?s=this.authority:s===null&&(s=a),b===void 0?b=this.path:b===null&&(b=a),g===void 0?g=this.query:g===null&&(g=a),v===void 0?v=this.fragment:v===null&&(v=a),r===this.scheme&&s===this.authority&&b===this.path&&g===this.query&&v===this.fragment?this:new k(r,s,b,g,v)},n.parse=function(e,r){r===void 0&&(r=!1);var s=A.exec(e);return s?new k(s[2]||a,q(s[4]||a),q(s[5]||a),q(s[7]||a),q(s[9]||a),r):new k(a,a,a,a,a)},n.file=function(e){var r=a;if(x&&(e=e.replace(/\\/g,C)),e[0]===C&&e[1]===C){var s=e.indexOf(C,2);s===-1?(r=e.substring(2),e=C):(r=e.substring(2,s),e=e.substring(s)||C)}return new k("file",r,e,a,a)},n.from=function(e){return new k(e.scheme,e.authority,e.path,e.query,e.fragment)},n.prototype.toString=function(e){return e===void 0&&(e=!1),N(this,e)},n.prototype.toJSON=function(){return this},n.revive=function(e){if(e){if(e instanceof n)return e;var r=new k(e);return r._formatted=e.external,r._fsPath=e._sep===E?e.fsPath:null,r}return e},n}(),E=x?1:void 0,k=function(n){function e(){var r=n!==null&&n.apply(this,arguments)||this;return r._formatted=null,r._fsPath=null,r}return h(e,n),Object.defineProperty(e.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=W(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),e.prototype.toString=function(r){return r===void 0&&(r=!1),r?N(this,!0):(this._formatted||(this._formatted=N(this,!1)),this._formatted)},e.prototype.toJSON=function(){var r={$mid:1};return this._fsPath&&(r.fsPath=this._fsPath,r._sep=E),this._formatted&&(r.external=this._formatted),this.path&&(r.path=this.path),this.scheme&&(r.scheme=this.scheme),this.authority&&(r.authority=this.authority),this.query&&(r.query=this.query),this.fragment&&(r.fragment=this.fragment),r},e}(S),B=((i={})[58]="%3A",i[47]="%2F",i[63]="%3F",i[35]="%23",i[91]="%5B",i[93]="%5D",i[64]="%40",i[33]="%21",i[36]="%24",i[38]="%26",i[39]="%27",i[40]="%28",i[41]="%29",i[42]="%2A",i[43]="%2B",i[44]="%2C",i[59]="%3B",i[61]="%3D",i[32]="%20",i);function J(n,e){for(var r=void 0,s=-1,b=0;b<n.length;b++){var g=n.charCodeAt(b);if(g>=97&&g<=122||g>=65&&g<=90||g>=48&&g<=57||g===45||g===46||g===95||g===126||e&&g===47)s!==-1&&(r+=encodeURIComponent(n.substring(s,b)),s=-1),r!==void 0&&(r+=n.charAt(b));else{r===void 0&&(r=n.substr(0,b));var v=B[g];v!==void 0?(s!==-1&&(r+=encodeURIComponent(n.substring(s,b)),s=-1),r+=v):s===-1&&(s=b)}}return s!==-1&&(r+=encodeURIComponent(n.substring(s))),r!==void 0?r:n}function re(n){for(var e=void 0,r=0;r<n.length;r++){var s=n.charCodeAt(r);s===35||s===63?(e===void 0&&(e=n.substr(0,r)),e+=B[s]):e!==void 0&&(e+=n[r])}return e!==void 0?e:n}function W(n,e){var r;return r=n.authority&&n.path.length>1&&n.scheme==="file"?"//"+n.authority+n.path:n.path.charCodeAt(0)===47&&(n.path.charCodeAt(1)>=65&&n.path.charCodeAt(1)<=90||n.path.charCodeAt(1)>=97&&n.path.charCodeAt(1)<=122)&&n.path.charCodeAt(2)===58?e?n.path.substr(1):n.path[1].toLowerCase()+n.path.substr(2):n.path,x&&(r=r.replace(/\//g,"\\")),r}function N(n,e){var r=e?re:J,s="",b=n.scheme,g=n.authority,v=n.path,P=n.query,O=n.fragment;if(b&&(s+=b,s+=":"),(g||b==="file")&&(s+=C,s+=C),g){var U=g.indexOf("@");if(U!==-1){var R=g.substr(0,U);g=g.substr(U+1),(U=R.indexOf(":"))===-1?s+=r(R,!1):(s+=r(R.substr(0,U),!1),s+=":",s+=r(R.substr(U+1),!1)),s+="@"}(U=(g=g.toLowerCase()).indexOf(":"))===-1?s+=r(g,!1):(s+=r(g.substr(0,U),!1),s+=g.substr(U))}if(v){if(v.length>=3&&v.charCodeAt(0)===47&&v.charCodeAt(2)===58)(D=v.charCodeAt(1))>=65&&D<=90&&(v="/"+String.fromCharCode(D+32)+":"+v.substr(3));else if(v.length>=2&&v.charCodeAt(1)===58){var D;(D=v.charCodeAt(0))>=65&&D<=90&&(v=String.fromCharCode(D+32)+":"+v.substr(2))}s+=r(v,!0)}return P&&(s+="?",s+=r(P,!1)),O&&(s+="#",s+=e?O:J(O,!1)),s}function M(n){try{return decodeURIComponent(n)}catch{return n.length>3?n.substr(0,3)+M(n.substr(3)):n}}var V=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function q(n){return n.match(V)?n.replace(V,function(e){return M(e)}):n}var z,Z=w(470),$=function(){for(var n=0,e=0,r=arguments.length;e<r;e++)n+=arguments[e].length;var s=Array(n),b=0;for(e=0;e<r;e++)for(var g=arguments[e],v=0,P=g.length;v<P;v++,b++)s[b]=g[v];return s},I=Z.posix||Z;(function(n){n.joinPath=function(e){for(var r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];return e.with({path:I.join.apply(I,$([e.path],r))})},n.resolvePath=function(e){for(var r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];var b=e.path||"/";return e.with({path:I.resolve.apply(I,$([b],r))})},n.dirname=function(e){var r=I.dirname(e.path);return r.length===1&&r.charCodeAt(0)===46?e:e.with({path:r})},n.basename=function(e){return I.basename(e.path)},n.extname=function(e){return I.extname(e.path)}})(z||(z={}))}},m={};function y(d){if(m[d])return m[d].exports;var f=m[d]={exports:{}};return l[d](f,f.exports,y),f.exports}return y.d=(d,f)=>{for(var w in f)y.o(f,w)&&!y.o(d,w)&&Object.defineProperty(d,w,{enumerable:!0,get:f[w]})},y.o=(d,f)=>Object.prototype.hasOwnProperty.call(d,f),y.r=d=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},y(447)})();var{URI:le,Utils:F}=Q;function X(l){let m=Y(),y=ee(),d=new _.Emitter;return l.push(_.extensions.onDidActiveExtension(f=>{let w=ee();(w.length!==y.length||!w.every((x,t)=>x===y[t]))&&(y=w,d.fire())})),l.push(_.workspace.onDidChangeConfiguration(f=>{f.affectsConfiguration("css.customData")&&(m=Y(),d.fire())})),{get uris(){return m.concat(y)},get onDidChange(){return d.event}}}function Y(){let l=_.workspace.workspaceFolders,m=[];if(!l)return m;let y=(d,f)=>{if(Array.isArray(d))for(let w of d)typeof w=="string"&&m.push(F.resolvePath(f,w).toString())};for(let d=0;d<l.length;d++){let f=l[d].uri,x=_.workspace.getConfiguration("css",f).inspect("customData");x&&(y(x.workspaceValue,_.Uri.parse(f)),d===0&&y(x.globalValue,_.Uri.parse(f)))}return m}function ee(){var m,y,d;let l=[];for(let f of _.extensions.all){let w=(d=(y=(m=f.packageJSON)==null?void 0:m.contributes)==null?void 0:y.css)==null?void 0:d.customData;if(Array.isArray(w))for(let x of w){let t=_.Uri.file(f.extensionPath);l.push(F.joinPath(t,x).toString())}}return l}var L;(m=>{m.type=new j.NotificationType("css/customDataChanged")})(L||(L={}));async function te(l){let{subscriptions:m}=l,y=j.workspace.getConfiguration().get("css",{});if(!y.enable)return;let d=l.asAbsolutePath("./lib/server.js"),f=["css","less","scss","wxss"],w=X(l.subscriptions),x={module:d,transport:j.TransportKind.ipc,options:{cwd:j.workspace.root,execArgv:y.execArgv||[]}},t={documentSelector:f,synchronize:{configurationSection:["css","less","scss","wxss"]},outputChannelName:"css",initializationOptions:{handledSchemas:["file"]},middleware:{}},o=new j.LanguageClient("css","Css language server",x,t);o.onReady().then(()=>{o.sendNotification(L.type,w.uris),w.onDidChange(()=>{o.sendNotification(L.type,w.uris)})}),m.push(j.services.registLanguageClient(o))}module.exports=ue(ce);0&&(module.exports={activate});
-//# sourceMappingURL=index.js.map