MCPcopy
hub / github.com/mudler/LocalAI / warn

Method warn

core/http/static/assets/tailwindcss.js:17–17  ·  view source on GitHub ↗
(e,t,i)

Source from the content-addressed store, hash-verified

15`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeClose(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after!="undefined")return t=i.raws.after,t.includes(`
16`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(e){let t;return e.walk(i=>{if(i.type!=="decl"&&(t=i.raws.between,typeof t!="undefined"))return!1}),t}rawColon(e){let t;return e.walkDecls(i=>{if(typeof i.raws.between!="undefined")return t=i.raws.between.replace(/[^\s:]/g,""),!1}),t}beforeAfter(e,t){let i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):t==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");let n=e.parent,s=0;for(;n&&n.type!=="root";)s+=1,n=n.parent;if(i.includes(`
17`)){let a=this.raw(e,null,"indent");if(a.length)for(let o=0;o<s;o++)i+=a}return i}rawValue(e,t){let i=e[t],n=e.raws[t];return n&&n.value===i?n.raw:i}};Uf.exports=Ri;Ri.default=Ri});var xr=x((BE,Vf)=>{l();"use strict";var vw=Bs();function Ms(r,e){new vw(e).stringify(r)}Vf.exports=Ms;Ms.default=Ms});var vr=x((ME,Wf)=>{l();"use strict";var{isClean:Fi,my:kw}=qi(),Sw=Ii(),Cw=Bs(),Aw=xr();function Ls(r,e){let t=new r.constructor;for(let i in r){if(!Object.prototype.hasOwnProperty.call(r,i)||i==="proxyCache")continue;let n=r[i],s=typeof n;i==="parent"&&s==="object"?e&&(t[i]=e):i==="source"?t[i]=n:Array.isArray(n)?t[i]=n.map(a=>Ls(a,t)):(s==="object"&&n!==null&&(n=Ls(n)),t[i]=n)}return t}var Bi=class{constructor(e={}){this.raws={},this[Fi]=!1,this[kw]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let i of e[t])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[t]=e[t]}error(e,t={}){if(this.source){let{start:i,end:n}=this.rangeBy(t);return this.source.input.error(e,{line:i.line,column:i.column},{line:n.line,column:n.column},t)}return new Sw(e)}warn(e,t,i){let n={node:this};for(let s in i)n[s]=i[s];return e.warn(t,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=Aw){e.stringify&&(e=e.stringify);let t="";return e(this,i=>{t+=i}),t}assign(e={}){for(let t in e)this[t]=e[t];return this}clone(e={}){let t=Ls(this);for(let i in e)t[i]=e[i];return t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(...e){if(this.parent){let t=this,i=!1;for(let n of e)n===this?i=!0:i?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);i||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}raw(e,t){return new Cw().raw(this,e,t)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,t){let i={},n=t==null;t=t||new Map;let s=0;for(let a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a==="parent"||a==="proxyCache")continue;let o=this[a];if(Array.isArray(o))i[a]=o.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,t):u);else if(typeof o=="object"&&o.toJSON)i[a]=o.toJSON(null,t);else if(a==="source"){let u=t.get(o.input);u==null&&(u=s,t.set(o.input,s),s++),i[a]={inputId:u,start:o.start,end:o.end}}else i[a]=o}return n&&(i.inputs=[...t.keys()].map(a=>a.toJSON())),i}positionInside(e){let t=this.toString(),i=this.source.start.column,n=this.source.start.line;for(let s=0;s<e;s++)t[s]===`
18`?(i=1,n+=1):i+=1;return{line:n,column:i}}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let i=this.toString().indexOf(e.word);i!==-1&&(t=this.positionInside(i))}return t}rangeBy(e){let t={line:this.source.start.line,column:this.source.start.column},i=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:t.line,column:t.column+1};if(e.word){let n=this.toString().indexOf(e.word);n!==-1&&(t=this.positionInside(n),i=this.positionInside(n+e.word.length))}else e.start?t={line:e.start.line,column:e.start.column}:e.index&&(t=this.positionInside(e.index)),e.end?i={line:e.end.line,column:e.end.column}:e.endIndex?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<t.line||i.line===t.line&&i.column<=t.column)&&(i={line:t.line,column:t.column+1}),{start:t,end:i}}getProxyProcessor(){return{set(e,t,i){return e[t]===i||(e[t]=i,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0},get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}markDirty(){if(this[Fi]){this[Fi]=!1;let e=this;for(;e=e.parent;)e[Fi]=!1}}get proxyOf(){return this}};Wf.exports=Bi;Bi.default=Bi});var kr=x((LE,Gf)=>{l();"use strict";var Ow=vr(),Mi=class extends Ow{constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e={...e,value:String(e.value)});super(e);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};Gf.exports=Mi;Mi.default=Mi});var $s=x(($E,Hf)=>{l();Hf.exports=function(r,e){return{generate:()=>{let t="";return r(e,i=>{t+=i}),[t]}}}});var Sr=x((NE,Yf)=>{l();"use strict";var Ew=vr(),Li=class extends Ew{constructor(e){super(e);this.type="comment"}};Yf.exports=Li;Li.default=Li});var nt=x((zE,ic)=>{l();"use strict";var{isClean:Qf,my:Xf}=qi(),Jf=kr(),Kf=Sr(),_w=vr(),Zf,Ns,zs,ec;function tc(r){return r.map(e=>(e.nodes&&(e.nodes=tc(e.nodes)),delete e.source,e))}function rc(r){if(r[Qf]=!1,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)rc(e)}var xe=class extends _w{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),i,n;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],n=e(this.proxyOf.nodes[i],i),n!==!1);)this.indexes[t]+=1;return delete this.indexes[t],n}walk(e){return this.each((t,i)=>{let n;try{n=e(t,i)}catch(s){throw t.addToError(s)}return n!==!1&&t.walk&&(n=t.walk(e)),n})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,n)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,n)}):this.walk((i,n)=>{if(i.type==="decl"&&i.prop===e)return t(i,n)}):(t=e,this.walk((i,n)=>{if(i.type==="decl")return t(i,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,n)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,n)}):this.walk((i,n)=>{if(i.type==="rule"&&i.selector===e)return t(i,n)}):(t=e,this.walk((i,n)=>{if(i.type==="rule")return t(i,n)}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,n)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,n)}):this.walk((i,n)=>{if(i.type==="atrule"&&i.name===e)return t(i,n)}):(t=e,this.walk((i,n)=>{if(i.type==="atrule")return t(i,n)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let n of i)this.proxyOf.nodes.push(n)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let n of i)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+i.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertBefore(e,t){let i=this.index(e),n=i===0?"prepend":!1,s=this.normalize(t,this.proxyOf.nodes[i],n).reverse();i=this.index(e);for(let o of s)this.proxyOf.nodes.splice(i,0,o);let a;for(let o in this.indexes)a=this.indexes[o],i<=a&&(this.indexes[o]=a+s.length);return this.markDirty(),this}insertAfter(e,t){let i=this.index(e),n=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let a of n)this.proxyOf.nodes.splice(i+1,0,a);let s;for(let a in this.indexes)s=this.indexes[a],i<s&&(this.indexes[a]=s+n.length);return this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,t,i){return i||(i=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,i))}),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(!!this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(!!this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,t){if(typeof e=="string")e=tc(Zf(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Jf(e)]}else if(e.selector)e=[new Ns(e)];else if(e.name)e=[new zs(e)];else if(e.text)e=[new Kf(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[Xf]||xe.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Qf]&&rc(n),typeof n.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(n.raws.before=t.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}getProxyProcessor(){return{set(e,t,i){return e[t]===i||(e[t]=i,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0},get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...i)=>e[t](...i.map(n=>typeof n=="function"?(s,a)=>n(s.toProxy(),a):n)):t==="every"||t==="some"?i=>e[t]((n,...s)=>i(n.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]}}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}};xe.registerParse=r=>{Zf=r};xe.registerRule=r=>{Ns=r};xe.registerAtRule=r=>{zs=r};xe.registerRoot=r=>{ec=r};ic.exports=xe;xe.default=xe;xe.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,zs.prototype):r.type==="rule"?Object.setPrototypeOf(r,Ns.prototype):r.type==="decl"?Object.setPrototypeOf(r,Jf.prototype):r.type==="comment"?Object.setPrototypeOf(r,Kf.prototype):r.type==="root"&&Object.setPrototypeOf(r,ec.prototype),r[Xf]=!0,r.nodes&&r.nodes.forEach(e=>{xe.rebuild(e)})}});var $i=x((jE,ac)=>{l();"use strict";var Tw=nt(),nc,sc,It=class extends Tw{constructor(e){super({type:"document",...e});this.nodes||(this.nodes=[])}toResult(e={}){return new nc(new sc,this,e).stringify()}};It.registerLazyResult=r=>{nc=r};It.registerProcessor=r=>{sc=r};ac.exports=It;It.default=It});var js=x((UE,lc)=>{l();"use strict";var oc={};lc.exports=function(e){oc[e]||(oc[e]=!0,typeof console!="undefined"&&console.warn&&console.warn(e))}});var Us=x((VE,uc)=>{l();"use strict";var Ni=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};uc.exports=Ni;Ni.default=Ni});var ji=x((WE,fc)=>{l();"use strict";var Pw=Us(),zi=class{constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new Pw(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};fc.exports=zi;zi.default=zi});var mc=x((GE,hc)=>{l();"use strict";var Vs="'".charCodeAt(0),cc='"'.charCodeAt(0),Ui="\\".charCodeAt(0),pc="/".charCodeAt(0),Vi=`
19`.charCodeAt(0),Cr=" ".charCodeAt(0),Wi="\f".charCodeAt(0),Gi=" ".charCodeAt(0),Hi="\r".charCodeAt(0),Dw="[".charCodeAt(0),Iw="]".charCodeAt(0),qw="(".charCodeAt(0),Rw=")".charCodeAt(0),Fw="{".charCodeAt(0),Bw="}".charCodeAt(0),Mw=";".charCodeAt(0),Lw="*".charCodeAt(0),$w=":".charCodeAt(0),Nw="@".charCodeAt(0),Yi=/[\t\n\f\r "#'()/;[\\\]{}]/g,Qi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,zw=/.[\n"'(/\\]/,dc=/[\da-f]/i;hc.exports=function(e,t={}){let i=e.css.valueOf(),n=t.ignoreErrors,s,a,o,u,c,f,d,h,m,y,v=i.length,b=0,w=[],k=[];function C(){return b}function A(I){throw e.error("Unclosed "+I,b)}function P(){return k.length===0&&b>=v}function F(I){if(k.length)return k.pop();if(b>=v)return;let K=I?I.ignoreUnclosed:!1;switch(s=i.charCodeAt(b),s){case Vi:case Cr:case Gi:case Hi:case Wi:{a=b;do a+=1,s=i.charCodeAt(a);while(s===Cr||s===Vi||s===Gi||s===Hi||s===Wi);y=["space",i.slice(b,a)],b=a-1;break}case Dw:case Iw:case Fw:case Bw:case $w:case Mw:case Rw:{let we=String.fromCharCode(s);y=[we,we,b];break}case qw:{if(h=w.length?w.pop()[1]:"",m=i.charCodeAt(b+1),h==="url"&&m!==Vs&&m!==cc&&m!==Cr&&m!==Vi&&m!==Gi&&m!==Wi&&m!==Hi){a=b;do{if(f=!1,a=i.indexOf(")",a+1),a===-1)if(n||K){a=b;break}else A("bracket");for(d=a;i.charCodeAt(d-1)===Ui;)d-=1,f=!f}while(f);y=["brackets",i.slice(b,a+1),b,a],b=a}else a=i.indexOf(")",b+1),u=i.slice(b,a+1),a===-1||zw.test(u)?y=["(","(",b]:(y=["brackets",u,b,a],b=a);break}case Vs:case cc:{o=s===Vs?"'":'"',a=b;do{if(f=!1,a=i.indexOf(o,a+1),a===-1)if(n||K){a=b+1;break}else A("string");for(d=a;i.charCodeAt(d-1)===Ui;)d-=1,f=!f}while(f);y=["string",i.slice(b,a+1),b,a],b=a;break}case Nw:{Yi.lastIndex=b+1,Yi.test(i),Yi.lastIndex===0?a=i.length-1:a=Yi.lastIndex-2,y=["at-word",i.slice(b,a+1),b,a],b=a;break}case Ui:{for(a=b,c=!0;i.charCodeAt(a+1)===Ui;)a+=1,c=!c;if(s=i.charCodeAt(a+1),c&&s!==pc&&s!==Cr&&s!==Vi&&s!==Gi&&s!==Hi&&s!==Wi&&(a+=1,dc.test(i.charAt(a)))){for(;dc.test(i.charAt(a+1));)a+=1;i.charCodeAt(a+1)===Cr&&(a+=1)}y=["word",i.slice(b,a+1),b,a],b=a;break}default:{s===pc&&i.charCodeAt(b+1)===Lw?(a=i.indexOf("*/",b+2)+1,a===0&&(n||K?a=i.length:A("comment")),y=["comment",i.slice(b,a+1),b,a],b=a):(Qi.lastIndex=b+1,Qi.test(i),Qi.lastIndex===0?a=i.length-1:a=Qi.lastIndex-2,y=["word",i.slice(b,a+1),b,a],w.push(y),b=a);break}}return b++,y}function B(I){k.push(I)}return{back:B,nextToken:F,endOfFile:P,position:C}}});var Xi=x((HE,yc)=>{l();"use strict";var gc=nt(),Ar=class extends gc{constructor(e){super(e);this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};yc.exports=Ar;Ar.default=Ar;gc.registerAtRule(Ar)});var qt=x((YE,vc)=>{l();"use strict";var bc=nt(),wc,xc,xt=class extends bc{constructor(e){super(e);this.type="root",this.nodes||(this.nodes=[])}removeChild(e,t){let i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}normalize(e,t,i){let n=super.normalize(e);if(t){if(i==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of n)s.raws.before=t.raws.before}return n}toResult(e={}){return new wc(new xc,this,e).stringify()}};xt.registerLazyResult=r=>{wc=r};xt.registerProcessor=r=>{xc=r};vc.exports=xt;xt.default=xt;bc.registerRoot(xt)});var Ws=x((QE,kc)=>{l();"use strict";var Or={split(r,e,t){let i=[],n="",s=!1,a=0,o=!1,u="",c=!1;for(let f of r)c?c=!1:f==="\\"?c=!0:o?f===u&&(o=!1):f==='"'||f==="'"?(o=!0,u=f):f==="("?a+=1:f===")"?a>0&&(a-=1):a===0&&e.includes(f)&&(s=!0),s?(n!==""&&i.push(n.trim()),n="",s=!1):n+=f;return(t||n!=="")&&i.push(n.trim()),i},space(r){let e=[" ",`
20`," "];return Or.split(r,e)},comma(r){return Or.split(r,[","],!0)}};kc.exports=Or;Or.default=Or});var Ji=x((XE,Cc)=>{l();"use strict";var Sc=nt(),jw=Ws(),Er=class extends Sc{constructor(e){super(e);this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return jw.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}};Cc.exports=Er;Er.default=Er;Sc.registerRule(Er)});var Tc=x((JE,_c)=>{l();"use strict";var Uw=kr(),Vw=mc(),Ww=Sr(),Gw=Xi(),Hw=qt(),Ac=Ji(),Oc={empty:!0,space:!0};function Yw(r){for(let e=r.length-1;e>=0;e--){let t=r[e],i=t[3]||t[2];if(i)return i}}var Ec=class{constructor(e){this.input=e,this.root=new Hw,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=Vw(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}comment(e){let t=new Ww;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]);let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let n=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}emptyRule(e){let t=new Ac;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,i=null,n=!1,s=null,a=[],o=e[1].startsWith("--"),u=[],c=e;for(;c;){if(i=c[0],u.push(c),i==="("||i==="[")s||(s=c),a.push(i==="("?")":"]");else if(o&&n&&i==="{")s||(s=c),a.push("}");else if(a.length===0)if(i===";")if(n){this.decl(u,o);return}else break;else if(i==="{"){this.rule(u);return}else if(i==="}"){this.tokenizer.back(u.pop()),t=!0;break}else i===":"&&(n=!0);else i===a[a.length-1]&&(a.pop(),a.length===0&&(s=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(s),t&&n){if(!o)for(;u.length&&(c=u[u.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,o)}else this.unknownWord(u)}rule(e){e.pop();let t=new Ac;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}decl(e,t){let i=new Uw;this.init(i,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(n[3]||n[2]||Yw(e));e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){i.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),i.raws.between+=s[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let a=[],o;for(;e.length&&(o=e[0][0],!(o!=="space"&&o!=="comment"));)a.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(s=e[c],s[1].toLowerCase()==="!important"){i.important=!0;let f=this.stringFrom(e,c);f=this.spacesFromEnd(e)+f,f!==" !important"&&(i.raws.important=f);break}else if(s[1].toLowerCase()==="important"){let f=e.slice(0),d="";for(let h=c;h>0;h--){let m=f[h][0];if(d.trim().indexOf("!")===0&&m!=="space")break;d=f.pop()[1]+d}d.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=d,e=f)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(i.raws.between+=a.map(c=>c[1]).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t=new Gw;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,n,s,a=!1,o=!1,u=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?c.push(i==="("?")":"]"):i==="{"&&c.length>0?c.push("}"):i===c[c.length-1]&&c.pop(),c.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),this.semicolon=!0;break}else if(i==="{"){o=!0;break}else if(i==="}"){if(u.length>0){for(s=u.length-1,n=u[s];n&&n[0]==="space";)n=u[--s];n&&(t.source.end=this.getPosition(n[3]||n[2]))}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(t.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(t,"params",u),a&&(e=u[u.length-1],t.source.end=this.getPosition(e[3]||e[2]),this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),o&&(t.nodes=[],this.current=t)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e),e.source={start:this.getPosition(t),input:this.input},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}raw(e,t,i,n){let s,a,o=i.length,u="",c=!0,f,d;for(let h=0;h<o;h+=1)s=i[h],a=s[0],a==="space"&&h===o-1&&!n?c=!1:a==="comment"?(d=i[h-1]?i[h-1][0]:"empty",f=i[h+1]?i[h+1][0]:"empty",!Oc[d]&&!Oc[f]?u.slice(-1)===","?c=!1:u+=s[1]:c=!1):u+=s[1];if(!c){let h=i.reduce((m,y)=>m+y[1],"");e.raws[t]={value:u,raw:h}}e[t]=u}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let n=t;n<e.length;n++)i+=e[n][1];return e.splice(t,e.length-t),i}colon(e){let t=0,i,n,s;for(let[a,o]of e.entries()){if(i=o,n=i[0],n==="("&&(t+=1),n===")"&&(t-=1),t===0&&n===":")if(!s)this.doubleColon(i);else{if(s[0]==="word"&&s[1]==="progid")continue;return a}s=i}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,n;for(let s=t-1;s>=0&&(n=e[s],!(n[0]!=="space"&&(i+=1,i===2)));s--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}};_c.exports=Ec});var Pc=x(()=>{l()});var Ic=x((e_,Dc)=>{l();var Qw="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Xw=(r,e=21)=>(t=e)=>{let i="",n=t;for(;n--;)i+=r[Math.random()*r.length|0];return i},Jw=(r=21)=>{let e="",t=r;for(;t--;)e+=Qw[Math.random()*64|0];return e};Dc.exports={nanoid:Jw,customAlphabet:Xw}});var Gs=x((t_,qc)=>{l();qc.exports={}});var Zi=x((r_,Mc)=>{l();"use strict";var{SourceMapConsumer:Kw,SourceMapGenerator:Zw}=Pc(),{fileURLToPath:Rc,pathToFileURL:Ki}=(qs(),Lf),{resolve:Hs,isAbsolute:Ys}=(wt(),Ff),{nanoid:ex}=Ic(),Qs=Rs(),Fc=Ii(),tx=Gs(),Xs=Symbol("fromOffsetCache"),rx=Boolean(Kw&&Zw),Bc=Boolean(Hs&&Ys),_r=class{constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Bc||/^\w+:\/\//.test(t.from)||Ys(t.from)?this.file=t.from:this.file=Hs(t.from)),Bc&&rx){let i=new tx(this.css,t);if(i.text){this.map=i;let n=i.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+ex(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let t,i;if(this[Xs])i=this[Xs];else{let s=this.css.split(`

Callers 15

saveChatsToStorageFunction · 0.80
sendTestToneFunction · 0.80
pollWebRTCStatsFunction · 0.80
#eMethod · 0.80
teFunction · 0.80
beforeFunction · 0.80
EFunction · 0.80
setFunction · 0.80
deletePropertyFunction · 0.80
VFunction · 0.80
cnFunction · 0.80
dnFunction · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected