Files
waybar-online/assets/Label-DtmeicGq.js

3 lines
28 KiB
JavaScript
Raw Permalink Normal View History

function tt(t){Object.defineProperty(t,"__esModule",{value:!0,configurable:!0})}function X(t,e,n,r){Object.defineProperty(t,e,{get:n,set:r,enumerable:!0,configurable:!0})}var et={};tt(et);X(et,"default",()=>nt);class nt extends Error{constructor(e,n,r,a,o){super(e+":"+r+":"+a+": "+n),this.reason=n,this.filename=e,this.line=r,this.column=a,this.source=o}}var rt={};tt(rt);X(rt,"default",()=>at);class at{constructor(e,n,r){this.start=e,this.end=n,this.source=r}}var Dt={};X(Dt,"CssTypes",()=>x);var x=function(t){return t.stylesheet="stylesheet",t.rule="rule",t.declaration="declaration",t.comment="comment",t.container="container",t.charset="charset",t.document="document",t.customMedia="custom-media",t.fontFace="font-face",t.host="host",t.import="import",t.keyframes="keyframes",t.keyframe="keyframe",t.layer="layer",t.media="media",t.namespace="namespace",t.page="page",t.startingStyle="starting-style",t.supports="supports",t}({});const ot=1e4,G=(t,e,n)=>{let r=n,a=ot;do{const o=e.map(p=>t.indexOf(p,r));o.push(t.indexOf("\\",r));const u=o.filter(p=>p!==-1);if(u.length===0)return-1;const c=Math.min(...u);if(t[c]==="\\")r=c+2,a--;else return c}while(a>0);throw new Error("Too many escaping")},j=(t,e,n)=>{let r=n,a=ot;do{const o=e.map(d=>t.indexOf(d,r));o.push(t.indexOf("(",r)),o.push(t.indexOf('"',r)),o.push(t.indexOf("'",r)),o.push(t.indexOf("\\",r));const u=o.filter(d=>d!==-1);if(u.length===0)return-1;const c=Math.min(...u);switch(t[c]){case"\\":r=c+2;break;case"(":{const d=j(t,[")"],c+1);if(d===-1)return-1;r=d+1}break;case'"':{const d=G(t,['"'],c+1);if(d===-1)return-1;r=d+1}break;case"'":{const d=G(t,["'"],c+1);if(d===-1)return-1;r=d+1}break;default:return c}a--}while(a>0);throw new Error("Too many escaping")},St=(t,e)=>{const n=[];let r=0;for(;r<t.length;){const a=j(t,e,r);if(a===-1)return n.push(t.substring(r)),n;n.push(t.substring(r,a)),r=a+1}return n},A=/\/\*[^]*?(?:\*\/|$)/g,$t=(t,e)=>{e=e||{};let n=1,r=1;function a(s){const i=s.match(/\n/g);i&&(n+=i.length);const f=s.lastIndexOf(`
`);r=~f?s.length-f:r+s.length}function o(){const s={line:n,column:r};return function(i){return i.position=new at(s,{line:n,column:r},e?.source||""),M(),i}}const u=[];function c(s){const i=new nt(e?.source||"",s,n,r,t);if(e?.silent)u.push(i);else throw i}function p(){const s=m();return{type:x.stylesheet,stylesheet:{source:e?.source,rules:s,parsingErrors:u}}}function d(){const s=/^{\s*/.exec(t);return s?(l(s),!0):!1}function h(){const s=/^}/.exec(t);return s?(l(s),!0):!1}function m(){let s;const i=[];for(M(),g(i);t.length&&t.charAt(0)!=="}"&&(s=kt()||Wt());)s&&(i.push(s),g(i));return i}function l(s){const i=s[0];return a(i),t=t.slice(i.length),s}function M(){const s=/^\s*/.exec(t);s&&l(s)}function g(s){let i;for(s=s||[];i=O();)i&&s.push(i);return s}function O(){const s=o();if(t.charAt(0)!=="/"||t.charAt(1)!=="*")return;const i=/^\/\*[^]*?\*\//.exec(t);return i?(l(i),s({type:x.comment,comment:i[0].slice(2,-2)})):c("End of comment missing")}function q(){const s=/^([^{]+)/.exec(t);if(!s)return;l(s);const i=P(s[0]).replace(A,"");return St(i,[","]).map(f=>P(f))}function E(){const s=o(),i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/.exec(t);if(!i)return;l(i);const f=P(i[0]),w=/^:\s*/.exec(t);if(!w)return c("property missing ':'");l(w);let b="";const k=j(t,[";","}"]);k!==-1&&(b=t.substring(0,k),l([b]),b=P(b).replace(A,""));const $=s({type:x.declaration,property:f.replace(A,""),value:b}),R=/^[;\s]*/.exec(t);return R&&l(R),$}function I(){const s=[];if(!d())return c("missing '{'");g(s);let i;for(;i=E();)i&&(s.push(i),g(s));return h()?s:c("missing '}'")}function dt(){let s;const i=[],f=o();for(;s=/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(t);){const w=l(s);i.push(w[1]);const b=/^,\s*/.exec(t);b&&l(b)}if(i.length)return f({type:x.keyframe,values:i,declarations:I()||[]})}function ft(){const s=o(),i=/^@([-\w]+)?keyframes\s*/.exec(t);if(!i)return;const f=l(i)[1],w=/^([-\w]+)\s*/.exec(t);if(!w)return c("@keyframes missing name");const b=l(w)[1];if(!d())return c("@keyframes missing '{'");let k,$=g();for(;k=dt();)$.push(k),$=$.concat(g());return h()?s({type:x.keyframes,name:b,vendor:f,keyframes:$}):c("@keyframes missing '}'")}function lt(){const s=o(),i=/^@supports *([^{]+)/.exec(t);if(!i)return;const f=P(l(i)[1]);if(!d())return c("@supports missing '{'");const w=g().concat(m());return h()?s({type:x.supports,supports:f,rules:w}):c("@supports missing '}'")}function mt(){const s=o(),i=/^@host\s*/.exec(t);if(!i)return;if(l(i),!d())return c("@host missing '{'");const f=g().concat(m());return h()?s({type:x.host,rules:f}):c("@host missing '}'")}function ht(){const s=o(),i=/^@container *([^{]+)/.exec(t);if(!i)return;const f=P(l(i)[1]);if(!d())return c("@container missing '{'");const w=g().concat(m());return h()?s({type:x.container,container:f,rules:w}):c("@container missing '}'")}function gt(){const s=o(),i=/^@layer *([^{;@]+)/.exec(t);if(!i)return;const f=P(l(i)[1]);if(!d()){const b=/^[;\s]*/.exec(t);return b&&l(b),s({type:x.layer,layer:f})}const w=g().concat(m());return h()?s({type:x.layer,layer:f,rules:w}):c("@layer missing '}'")}function yt(){const s=o(),i=/^@media *([^{]+)/.exec(t);if(!i)return;const f=P(l(i)[1]);if(!d())return c("@media missing '{'");const w=g().concat(m());return h()?s({type:x.media,media:f,rules:w}):c("@media missing '}'")}function wt(){const s=o(),i=/^@custom-media\s+(--\S+)\s+([^{;\s][^{;]*);/.exec(t);if(!i)return;const f=l(i);return s({type:x.customMedia,name:P(f[1]),media:P(f[2])})}function pt(){const s=o(),i=/^@page */.exec(t);if(!i)return;l(i);const f=q()||[];if(!d())return c("@page missing '{'");let w=g(),b;for(;b=E();)w.push(b),w=w.concat(g());return h()?s({type:x.page,selectors:f,declarations:w}):c("@page missing '}'")}function bt(){const s=o(),i=/^@([-\w]+)?document *([^{]+)/.exec(t);if(!i)return;const f=l(i),w=P(f[1]),b=P(f[2]);if(!d())return c("@document missing '{'");const k=g().concat(m());return h()?s({type:x.document,document:b,vendor:w,rules:k}):c("@document missing '}'")}function xt(){const s=o(),i=/^@font-face\s*/.exec(t);if(!i)return;if(l(i),!d())return c("@font-face missing '{'");let f=g(),w;for(;w=E();)f