easycomponentstools 1.1.45 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4060,22 +4060,22 @@ Actual: `+e.attribValue);else{var i=e.tag,a=e.tags[e.tags.length-1]||e;i.ns===a.
|
|
|
4060
4060
|
`)}toString(){let e=this.showSourceCode();return e&&=`
|
|
4061
4061
|
|
|
4062
4062
|
`+e+`
|
|
4063
|
-
`,this.name+`: `+this.message+e}};t.exports=i,i.default=i})),vG=d(((e,t)=>{var n=/(<)(\/?style\b)/gi,r=/(<)(!--)/g
|
|
4063
|
+
`,this.name+`: `+this.message+e}};t.exports=i,i.default=i})),vG=d(((e,t)=>{var n=/(<)(\/?style\b)/gi,r=/(<)(!--)/g,i=/[\t\n\f\r "#'()/;[\\\]{}]/;function a(e){return typeof e!=`string`||!e.includes(`<`)?e:e.replace(n,`\\3c $2`).replace(r,`\\3c $2`)}var o={after:`
|
|
4064
4064
|
`,beforeClose:`
|
|
4065
4065
|
`,beforeComment:`
|
|
4066
4066
|
`,beforeDecl:`
|
|
4067
4067
|
`,beforeOpen:` `,beforeRule:`
|
|
4068
|
-
`,colon:`: `,commentLeft:` `,commentRight:` `,emptyBody:``,indent:` `,semicolon:!1};function
|
|
4069
|
-
`)){let t=this.raw(e,null,`indent`);if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n=this.raw(e,`between`,`beforeOpen`);this.builder(
|
|
4068
|
+
`,colon:`: `,commentLeft:` `,commentRight:` `,emptyBody:``,indent:` `,semicolon:!1};function s(e){return e[0].toUpperCase()+e.slice(1)}function c(e,t){let n=`@`+t.name,r=t.params?e.rawValue(t,`params`):``,a=t.raws.afterName;return a===void 0?a=r?` `:``:a===``&&r&&!i.test(r[0])&&(a=` `),n+a+r}function l(e,t,n){let r=n.nodes,i=r.length-1;for(;i>0&&r[i].type===`comment`;)--i;let a=e.raw(n,`semicolon`),o=n.type===`document`;for(let e=r.length-1;e>=0;e--){let n=r[e],s=i!==e||a;!s&&e<r.length-1&&(n.type===`atrule`&&!n.nodes||n.type===`decl`&&n.prop.startsWith(`--`))&&(s=!0),t.push({document:o,node:n,semicolon:s})}}function u(e,t,n,r){let i=e.raw(n,`between`,`beforeOpen`);e.builder(a(r+i)+`{`,n,`start`);let o=n.nodes&&n.nodes.length,s=()=>{let t=o?e.raw(n,`after`):e.raw(n,`after`,`emptyBody`);t&&e.builder(a(t)),e.builder(`}`,n,`end`),n.type===`rule`&&n.raws.ownSemicolon&&e.builder(a(n.raws.ownSemicolon),n,`end`)};o?(t.push(s),l(e,t,n)):s()}var d=class e{constructor(e){this.builder=e}atrule(e,t){let n=c(this,e);if(e.nodes)this.block(e,n);else{let r=(e.raws.between||``)+(t?`;`:``);this.builder(a(n+r),e)}}beforeAfter(e,t){let n;n=e.type===`decl`?this.raw(e,null,`beforeDecl`):e.type===`comment`?this.raw(e,null,`beforeComment`):t===`before`?this.raw(e,null,`beforeRule`):this.raw(e,null,`beforeClose`);let r=e.parent,i=0;for(;r&&r.type!==`root`;)i+=1,r=r.parent;if(n.includes(`
|
|
4069
|
+
`)){let t=this.raw(e,null,`indent`);if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n=this.raw(e,`between`,`beforeOpen`);this.builder(a(t+n)+`{`,e,`start`);let r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,`after`)):r=this.raw(e,`after`,`emptyBody`),r&&this.builder(a(r)),this.builder(`}`,e,`end`)}body(t){let n=e.prototype,r=[`atrule`,`block`,`body`,`rule`,`stringify`].every(e=>this[e]===n[e]),i=[];for(l(this,i,t);i.length>0;){let e=i.pop();if(typeof e==`function`){e();continue}let t=e.node,n=this.raw(t,`before`);n&&this.builder(e.document?n:a(n)),r&&t.type===`rule`?u(this,i,t,this.rawValue(t,`selector`)):r&&t.type===`atrule`&&t.nodes?u(this,i,t,c(this,t)):this.stringify(t,e.semicolon)}}comment(e){let t=this.raw(e,`left`,`commentLeft`),n=this.raw(e,`right`,`commentRight`);this.builder(a(`/*`+t+e.text+n+`*/`),e)}decl(e,t){let n=e.raws,r=this.raw(e,`between`,`colon`),i=e.prop+r+this.rawValue(e,`value`);e.important&&(i+=n.important||` !important`),t&&(i+=`;`),this.builder(a(i),e)}document(e){this.body(e)}raw(e,t,n){let r;if(n||=t,t&&(r=e.raws[t],r!==void 0))return r;let i=e.parent;if(n===`before`&&(!i||i.type===`root`&&i.first===e||i&&i.type===`document`))return``;if(!i)return o[n];let a=e.root(),c=a.rawCache||={};if(c[n]!==void 0)return c[n];if(n===`before`||n===`after`)return this.beforeAfter(e,n);{let i=`raw`+s(n);this[i]?r=this[i](a,e):a.walk(e=>{if(r=e.raws[t],r!==void 0)return!1})}return r===void 0&&(r=o[n]),c[n]=r,r}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&e.raws.after!==void 0)return t=e.raws.after,t.includes(`
|
|
4070
4070
|
`)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
|
|
4071
4071
|
`)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeDecl`):n&&=n.replace(/\S/g,``),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
|
|
4072
4072
|
`)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeRule`):n&&=n.replace(/\S/g,``),n}rawBeforeOpen(e){let t;return e.walk(e=>{if(e.type!==`decl`&&(t=e.raws.between,t!==void 0))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&n.raws.before!==void 0)return t=n.raws.before,t.includes(`
|
|
4073
4073
|
`)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t}rawColon(e){let t;return e.walkDecls(e=>{if(e.raws.between!==void 0)return t=e.raws.between.replace(/[^\s:]/g,``),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length===0&&(t=e.raws.after,t!==void 0))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&n.raws.before!==void 0){let e=n.raws.before.split(`
|
|
4074
|
-
`);return t=e[e.length-1],t=t.replace(/\S/g,``),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&e.last.type===`decl`&&(t=e.raws.semicolon,t!==void 0))return!1}),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){if(this.body(e),e.raws.after){let t=e.raws.after,n=e.parent&&e.parent.type===`document`;this.builder(n?t:
|
|
4075
|
-
`?(n=1,r+=1):n+=1}return i}var l=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[a]=!1,this[o]=!0;for(let t
|
|
4076
|
-
`?(t=1,n+=1):t+=1;return{column:t,line:n,offset:a}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t=`document`in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:c(t,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset==`number`?this.source.end.offset:c(t,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let i=t.slice(c(t,this.source.start),c(t,this.source.end)).indexOf(e.word);i!==-1&&(n=this.positionInside(i),r=this.positionInside(i+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:c(t,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line,offset:c(t,e.end)}:typeof e.endIndex==`number`?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={column:n.column+1,line:n.line,offset:n.offset+1}),{end:r,start:n}}raw(e,t){return new r().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!==`document`;)e=e.parent;return e}toJSON(e,t){let n={},r=t==null;t||=new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||e===`parent`||e===`proxyCache`)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map(e=>typeof e==`object`&&e.toJSON?e.toJSON(null,t):e);else if(typeof r==`object`&&r.toJSON)n[e]=r.toJSON(null,t);else if(e===`source`){if(r==null)continue;let a=t.get(r.input);a??(a=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:a,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map(e=>e.toJSON())),n}toProxy(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t=``;return e(this,e=>{t+=e}),t}warn(e,t,n={}){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}};t.exports=l,l.default=l})),SG=d(((e,t)=>{var n=xG(),r=class extends n{constructor(e){super(e),this.type=`comment`}};t.exports=r,r.default=r})),CG=d(((e,t)=>{var n=xG(),r=class extends n{get variable(){return this.prop.startsWith(`--`)||this.prop[0]===`$`}constructor(e){e&&e.value!==void 0&&typeof e.value!=`string`&&(e={...e,value:String(e.value)}),super(e),this.type=`decl`}};t.exports=r,r.default=r})),wG=d(((e,t)=>{var n=SG(),r=CG(),i=xG(),{isClean:a,my:o}=bG(),s,c,l,u;function d(e){return e.map(e=>(e.nodes&&=d(e.nodes),delete e.source,e))}function f(e){if(e[a]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)f(t)}var p=class e extends i{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]}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||=0,this.indexes||={},this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:e[t]?t===`each`||typeof t==`string`&&t.startsWith(`walk`)?(...n)=>e[t](...n.map(e=>typeof e==`function`?(t,n)=>e(t.toProxy(),n):e)):t===`every`||t===`some`?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):t===`root`?()=>e.root().toProxy():t===`nodes`?e.nodes.map(e=>e.toProxy()):t===`first`||t===`last`?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n?!0:(e[t]=n,(t===`name`||t===`params`||t===`selector`)&&e.markDirty(),!0)}}}index(e){return typeof e==`number`?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of r)this.proxyOf.nodes.splice(n+1,0,e);let i;for(let e in this.indexes)i=this.indexes[e],n<i&&(this.indexes[e]=i+r.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),r=n===0?`prepend`:!1,i=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(let e of i)this.proxyOf.nodes.splice(n,0,e);let a;for(let e in this.indexes)a=this.indexes[e],n<=a&&(this.indexes[e]=a+i.length);return this.markDirty(),this}normalize(t,i){if(typeof t==`string`)t=d(c(t).nodes);else if(t===void 0)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type===`root`&&this.type!==`document`){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type)t=[t];else if(t.prop){if(t.value===void 0)throw Error(`Value field is missed in node creation`);typeof t.value!=`string`&&(t.value=String(t.value)),t=[new r(t)]}else if(t.selector||t.selectors)t=[new u(t)];else if(t.name)t=[new s(t)];else if(t.text)t=[new n(t)];else throw Error(`Unknown node type in node creation`);return t.map(t=>(t[o]||e.rebuild(t),t=t.proxyOf,t.parent&&t.parent.removeChild(t),t[a]&&f(t),t.raws||={},t.raws.before===void 0&&i&&i.raws.before!==void 0&&(t.raws.before=i.raws.before.replace(/\S/g,``)),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,`prepend`).reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],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 n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`atrule`&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if(n.type===`atrule`&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`atrule`)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if(t.type===`comment`)return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`decl`&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if(n.type===`decl`&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`decl`)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`rule`&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if(n.type===`rule`&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`rule`)return t(e,n)}))}};p.registerParse=e=>{c=e},p.registerRule=e=>{u=e},p.registerAtRule=e=>{s=e},p.registerRoot=e=>{l=e},t.exports=p,p.default=p,p.rebuild=e=>{e.type===`atrule`?Object.setPrototypeOf(e,s.prototype):e.type===`rule`?Object.setPrototypeOf(e,u.prototype):e.type===`decl`?Object.setPrototypeOf(e,r.prototype):e.type===`comment`?Object.setPrototypeOf(e,n.prototype):e.type===`root`&&Object.setPrototypeOf(e,l.prototype),e[o]=!0,e.nodes&&e.nodes.forEach(e=>{p.rebuild(e)})}})),TG=d(((e,t)=>{var n=wG(),r=class extends n{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)}};t.exports=r,r.default=r,n.registerAtRule(r)})),EG=d(((e,t)=>{var n=wG(),r,i,a=class extends n{constructor(e){super({type:`document`,...e}),this.nodes||=[]}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a})),DG=d(((e,t)=>{var n=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;t.exports={nanoid:(e=21)=>{let t=``,r=e|0;for(;r--;)t+=n[Math.random()*64|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r=``,i=n|0;for(;i--;)r+=e[Math.random()*e.length|0];return r}}})),OG=d(((e,t)=>{var{existsSync:n,readFileSync:r}=xW(),{dirname:i,join:a}=xW(),{SourceMapConsumer:o,SourceMapGenerator:s}=xW();function c(e){return Buffer?Buffer.from(e,`base64`).toString():window.atob(e)}var l=class{constructor(e,t){if(t.map===!1)return;t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,`data:`);let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=i(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||=new o(this.json||this.text),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,r=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(r)return decodeURIComponent(e.substr(r[0].length));let i=e.match(t)||e.match(n);if(i)return c(e.substr(i[0].length));let a=e.slice(22);throw a=a.slice(0,a.indexOf(`,`)),Error(`Unsupported source map encoding `+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,``).trim()}isMap(e){return typeof e==`object`?typeof e.mappings==`string`||typeof e._mappings==`string`||Array.isArray(e.sections):!1}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf(`*/`,n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e,t,a){if(!(!a&&!this.unsafeMap&&!/\.map$/i.test(e))&&(this.root=i(e),n(e)))return this.mapFile=e,r(e,`utf-8`).toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t==`string`)return t;if(typeof t==`function`){let n=t(e);if(n){let t=this.loadFile(n,e,!0);if(!t)throw Error(`Unable to load previous source map: `+n.toString());return t}}else if(t instanceof o)return s.fromSourceMap(t).toString();else if(t instanceof s)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error(`Unsupported previous source map format: `+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;e&&(t=a(i(e),t));let n=this.loadFile(t,e,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,``))}catch{return}return n}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};t.exports=l,l.default=l})),kG=d(((e,t)=>{var{nanoid:n}=DG(),{isAbsolute:r,resolve:i}=xW(),{SourceMapConsumer:a,SourceMapGenerator:o}=xW(),{fileURLToPath:s,pathToFileURL:c}=xW(),l=_G(),u=OG(),d=xW(),f=Symbol(`lineToIndexCache`),p=!!(a&&o),m=!!(i&&r);function h(e){if(e[f])return e[f];let t=e.css.split(`
|
|
4077
|
-
`),n=Array(t.length),r=0;for(let e=0,i=t.length;e<i;e++)n[e]=r,r+=t[e].length+1;return e[f]=n,n}var g=class{get from(){return this.file||this.id}constructor(e,t={}){if(e==null||typeof e==`object`&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]===``||this.css[0]===``?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!m||/^\w+:\/\//.test(t.from)||r(t.from)?this.file=t.from:this.file=i(t.from)),m&&p){let e=new u(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id=`<input css `+n(6)+`>`),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,a,o,s,u;if(t&&typeof t==`object`){let e=t,r=n;if(typeof e.offset==`number`){s=e.offset;let r=this.fromOffset(s);t=r.line,n=r.col}else t=e.line,n=e.column,s=this.fromLineAndColumn(t,n);if(typeof r.offset==`number`){o=r.offset;let e=this.fromOffset(o);a=e.line,i=e.col}else a=r.line,i=r.column,o=this.fromLineAndColumn(r.line,r.column)}else if(n)s=this.fromLineAndColumn(t,n);else{s=t;let e=this.fromOffset(s);t=e.line,n=e.col}let d=this.origin(t,n,a,i);return u=d?new l(e,d.endLine===void 0?d.line:{column:d.column,line:d.line},d.endLine===void 0?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,r.plugin):new l(e,a===void 0?t:{column:n,line:t},a===void 0?n:{column:i,line:a},this.css,this.file,r.plugin),u.input={column:n,endColumn:i,endLine:a,endOffset:o,line:t,offset:s,source:this.css},this.file&&(c&&(u.input.url=c(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(e,t){return h(this)[e-1]+t-1}fromOffset(e){let t=h(this),n=t[t.length-1],r=0;if(e>=n)r=t.length-1;else{let n=t.length-2,i;for(;r<n;)if(i=r+(n-r>>1),e<t[i])n=i-1;else if(e>=t[i+1])r=i+1;else{r=i;break}}return{col:e-t[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:i(this.map.consumer().sourceRoot||this.map.root||`.`,e)}origin(e,t,n,i){if(!this.map)return!1;let a=this.map.consumer(),o=a.originalPositionFor({column:t,line:e});if(!o.source)return!1;let l;typeof n==`number
|
|
4078
|
-
`,` `])},split(e,t,n){let r=[],i=``,a=!1,o=0,s=!1,c=``,l=!1;for(let n of e)l?l=!1:n===`\\`?l=!0:s?n===c&&(s=!1):n===`"`||n===`'`?(s=!0,c=n):n===`(`?o+=1:n===`)`?o>0&&--o:o===0&&t.includes(n)&&(a=!0),a?(i!==``&&r.push(i.trim()),i=``,a=!1):i+=n;return(n||i!==``)&&r.push(i.trim()),r}};t.exports=n,n.default=n})),MG=d(((e,t)=>{var n=wG(),r=jG(),i=class extends n{get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:`,`+this.raw(`between`,`beforeOpen`);this.selector=e.join(n)}constructor(e){super(e),this.type=`rule`,this.nodes||=[]}};t.exports=i,i.default=i,n.registerRule(i)})),NG=d(((e,t)=>{var n=TG(),r=SG(),i=CG(),a=kG(),o=OG(),s=AG(),c=MG();function l(e,t){
|
|
4074
|
+
`);return t=e[e.length-1],t=t.replace(/\S/g,``),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&e.last.type===`decl`&&(t=e.raws.semicolon,t!==void 0))return!1}),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){if(e.source&&e.source.input.hasBOM&&this.builder(``,e,`start`),this.body(e),e.raws.after){let t=e.raws.after,n=e.parent&&e.parent.type===`document`;this.builder(n?t:a(t))}}rule(e){this.block(e,this.rawValue(e,`selector`)),e.raws.ownSemicolon&&this.builder(a(e.raws.ownSemicolon),e,`end`)}stringify(e,t){if(!this[e.type])throw Error(`Unknown AST node type `+e.type+`. Maybe you need to change PostCSS stringifier.`);this[e.type](e,t)}};t.exports=d,d.default=d})),yG=d(((e,t)=>{var n=vG();function r(e,t){new n(t).stringify(e)}t.exports=r,r.default=r})),bG=d(((e,t)=>{t.exports.isClean=Symbol(`isClean`),t.exports.my=Symbol(`my`)})),xG=d(((e,t)=>{var n=_G(),r=vG(),i=yG(),{isClean:a,my:o}=bG();function s(e,t){let n=new e.constructor,r=[[e,n,t]];for(;r.length>0;){let[e,t,n]=r.pop();for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)||i===`proxyCache`)continue;let a=e[i],o=typeof a;if(i===`parent`&&o===`object`)n&&(t[i]=n);else if(i===`source`)t[i]=a;else if(Array.isArray(a)){let e=[];t[i]=e;for(let n of a){let i=new n.constructor;e.push(i),r.push([n,i,t])}}else{if(o===`object`&&a!==null){let e=new a.constructor;r.push([a,e,void 0]),a=e}t[i]=a}}}return n}function c(e,t){if(t&&t.offset!==void 0)return t.offset;let n=1,r=1,i=0;for(let a=0;a<e.length;a++){if(r===t.line&&n===t.column){i=a;break}e[a]===`
|
|
4075
|
+
`?(n=1,r+=1):n+=1}return i}var l=class e{get proxyOf(){return this}constructor(e={}){this.raws={},this[a]=!1,this[o]=!0;for(let t of Object.keys(e))if(t!==`__proto__`)if(t===`nodes`){this.nodes=[];for(let n of e[t])typeof n.clone==`function`&&n.parent?this.append(n.clone()):this.append(n)}else this[t]=e[t]}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}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=s(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new n(e)}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:t===`root`?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n?!0:(e[t]=n,(t===`prop`||t===`value`||t===`name`||t===`params`||t===`important`||t===`text`)&&e.markDirty(),!0)}}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let e=this;for(;e=e.parent;)e[a]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=`document`in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:c(t,this.source.start)};if(e.index)n=this.positionInside(e.index);else if(e.word){let r=t.slice(c(t,this.source.start),c(t,this.source.end)).indexOf(e.word);r!==-1&&(n=this.positionInside(r))}return n}positionInside(e){let t=this.source.start.column,n=this.source.start.line,r=`document`in this.source.input?this.source.input.document:this.source.input.css,i=c(r,this.source.start),a=i+e;for(let e=i;e<a;e++)r[e]===`
|
|
4076
|
+
`?(t=1,n+=1):t+=1;return{column:t,line:n,offset:a}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t=`document`in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:c(t,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset==`number`?this.source.end.offset:c(t,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let i=t.slice(c(t,this.source.start),c(t,this.source.end)).indexOf(e.word);i!==-1&&(n=this.positionInside(i),r=this.positionInside(i+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:c(t,e.start)}:typeof e.index==`number`&&(n=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line,offset:c(t,e.end)}:typeof e.endIndex==`number`?r=this.positionInside(e.endIndex):typeof e.index==`number`&&(r=this.positionInside(e.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={column:n.column+1,line:n.line,offset:n.offset+1}),{end:r,start:n}}raw(e,t){return new r().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!==`document`;)e=e.parent;return e}toJSON(t,n){let r=n==null;n||=new Map;let i=[],a=[[this,i,0]];for(let t=0;t<a.length;t++){let[r,i,o]=a[t],s={};i[o]=s;for(let t in r){if(!Object.prototype.hasOwnProperty.call(r,t)||t===`parent`||t===`proxyCache`)continue;let i=r[t];if(Array.isArray(i)){let r=[];s[t]=r;for(let t=0;t<i.length;t++){let o=i[t];typeof o==`object`&&o.toJSON?o.toJSON===e.prototype.toJSON?a.push([o,r,t]):r[t]=o.toJSON(null,n):r[t]=o}}else if(typeof i==`object`&&i.toJSON)i.toJSON===e.prototype.toJSON?a.push([i,s,t]):s[t]=i.toJSON(null,n);else if(t===`source`){if(i==null)continue;let e=n.get(i.input);e??(e=n.size,n.set(i.input,e)),s[t]={end:i.end,inputId:e,start:i.start}}else s[t]=i}}let o=i[0];return r&&(o.inputs=[...n.keys()].map(e=>e.toJSON())),o}toProxy(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t=``;return e(this,e=>{t+=e}),t}warn(e,t,n={}){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}};t.exports=l,l.default=l})),SG=d(((e,t)=>{var n=xG(),r=class extends n{constructor(e){super(e),this.type=`comment`}};t.exports=r,r.default=r})),CG=d(((e,t)=>{var n=xG(),r=class extends n{get variable(){return this.prop.startsWith(`--`)||this.prop[0]===`$`}constructor(e){e&&e.value!==void 0&&typeof e.value!=`string`&&(e={...e,value:String(e.value)}),super(e),this.type=`decl`}};t.exports=r,r.default=r})),wG=d(((e,t)=>{var n=SG(),r=CG(),i=xG(),{isClean:a,my:o}=bG(),s,c,l,u;function d(e){let t=e.slice();for(;t.length>0;){let e=t.pop();if(delete e.source,e.nodes){e.nodes=e.nodes.slice();for(let n of e.nodes)t.push(n)}}return e.slice()}function f(e){let t=[e];for(;t.length>0;){let e=t.pop();if(e[a]=!1,e.proxyOf.nodes)for(let n of e.proxyOf.nodes)t.push(n)}}var p=class e extends i{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]}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(t){let n=[this];for(;n.length>0;){let r=n.pop();if(r!==this&&r.cleanRaws!==e.prototype.cleanRaws){r.cleanRaws(t);continue}if(i.prototype.cleanRaws.call(r,t),r.nodes)for(let e of r.nodes)n.push(e)}}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||=0,this.indexes||={},this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:e[t]?t===`each`||typeof t==`string`&&t.startsWith(`walk`)?(...n)=>e[t](...n.map(e=>typeof e==`function`?(t,n)=>e(t.toProxy(),n):e)):t===`every`||t===`some`?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):t===`root`?()=>e.root().toProxy():t===`nodes`?e.nodes.map(e=>e.toProxy()):t===`first`||t===`last`?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n?!0:(e[t]=n,(t===`name`||t===`params`||t===`selector`)&&e.markDirty(),!0)}}}index(e){return typeof e==`number`?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of r)this.proxyOf.nodes.splice(n+1,0,e);let i;for(let e in this.indexes)i=this.indexes[e],n<i&&(this.indexes[e]=i+r.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),r=n===0?`prepend`:!1,i=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(let e of i)this.proxyOf.nodes.splice(n,0,e);let a;for(let e in this.indexes)a=this.indexes[e],n<=a&&(this.indexes[e]=a+i.length);return this.markDirty(),this}normalize(t,i){if(typeof t==`string`)t=d(c(t).nodes);else if(t===void 0)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type===`root`&&this.type!==`document`){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type)t=[t];else if(t.prop){if(t.value===void 0)throw Error(`Value field is missed in node creation`);typeof t.value!=`string`&&(t.value=String(t.value)),t=[new r(t)]}else if(t.selector||t.selectors)t=[new u(t)];else if(t.name)t=[new s(t)];else if(t.text)t=[new n(t)];else throw Error(`Unknown node type in node creation`);return t.map(t=>(t[o]||e.rebuild(t),t=t.proxyOf,t.parent&&t.parent.removeChild(t),t[a]&&f(t),t.raws||={},t.raws.before===void 0&&i&&i.raws.before!==void 0&&(t.raws.before=i.raws.before.replace(/\S/g,``)),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,`prepend`).reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],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 n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){if(!this.proxyOf.nodes)return;let t=[{iterator:this.getIterator(),node:this.proxyOf}];for(;t.length>0;){let{iterator:n,node:r}=t[t.length-1],i=r.indexes[n];if(i>=r.proxyOf.nodes.length){delete r.indexes[n],t.pop();let e=t[t.length-1];e&&(e.node.indexes[e.iterator]+=1);continue}let a=r.proxyOf.nodes[i],o;try{o=e(a,i)}catch(e){throw a.addToError(e)}if(o===!1){for(let e of t)delete e.node.indexes[e.iterator];return!1}a.walk&&a.proxyOf.nodes?t.push({iterator:a.getIterator(),node:a}):r.indexes[n]+=1}}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`atrule`&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if(n.type===`atrule`&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`atrule`)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if(t.type===`comment`)return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`decl`&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if(n.type===`decl`&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`decl`)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`rule`&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if(n.type===`rule`&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`rule`)return t(e,n)}))}};p.registerParse=e=>{c=e},p.registerRule=e=>{u=e},p.registerAtRule=e=>{s=e},p.registerRoot=e=>{l=e},t.exports=p,p.default=p,p.rebuild=e=>{let t=[e];for(;t.length>0;){let e=t.pop();if(e.type===`atrule`?Object.setPrototypeOf(e,s.prototype):e.type===`rule`?Object.setPrototypeOf(e,u.prototype):e.type===`decl`?Object.setPrototypeOf(e,r.prototype):e.type===`comment`?Object.setPrototypeOf(e,n.prototype):e.type===`root`&&Object.setPrototypeOf(e,l.prototype),e[o]=!0,e.nodes)for(let n of e.nodes)t.push(n)}}})),TG=d(((e,t)=>{var n=wG(),r=class extends n{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)}};t.exports=r,r.default=r,n.registerAtRule(r)})),EG=d(((e,t)=>{var n=wG(),r,i,a=class extends n{constructor(e){super({type:`document`,...e}),this.nodes||=[]}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a})),DG=d(((e,t)=>{var n=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;t.exports={nanoid:(e=21)=>{let t=``,r=e|0;for(;r-- >0;)t+=n[Math.random()*64|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r=``,i=n|0;for(;i-- >0;)r+=e[Math.random()*e.length|0];return r}}})),OG=d(((e,t)=>{var{existsSync:n,readFileSync:r,realpathSync:i}=xW(),{dirname:a,isAbsolute:o,join:s,relative:c,sep:l}=xW(),{SourceMapConsumer:u,SourceMapGenerator:d}=xW();function f(e){try{return i(e)}catch{return e}}function p(e){return Buffer?Buffer.from(e,`base64`).toString():window.atob(e)}var m=class{constructor(e,t){if(t.map===!1)return;t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,`data:`);let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=a(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||=new u(this.json||this.text),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,r=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(r)return decodeURIComponent(e.substr(r[0].length));let i=e.match(t)||e.match(n);if(i)return p(e.substr(i[0].length));let a=e.slice(22);throw a=a.slice(0,a.indexOf(`,`)),Error(`Unsupported source map encoding `+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,``).trim()}isMap(e){return typeof e==`object`?typeof e.mappings==`string`||typeof e._mappings==`string`||Array.isArray(e.sections):!1}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf(`*/`,n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e,t,i){if(!i&&!this.unsafeMap){if(!/\.map$/i.test(e)||!t)return;let n=c(f(a(t)),f(e));if(n===`..`||n.startsWith(`..`+l)||o(n))return}if(this.root=a(e),n(e))return this.mapFile=e,r(e,`utf-8`).toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t==`string`)return t;if(typeof t==`function`){let n=t(e);if(n){let t=this.loadFile(n,e,!0);if(!t)throw Error(`Unable to load previous source map: `+n.toString());return t}}else if(t instanceof u)return d.fromSourceMap(t).toString();else if(t instanceof d)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error(`Unsupported previous source map format: `+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;e&&(t=s(a(e),t));let n=this.loadFile(t,e,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,``))}catch{return}return n}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};t.exports=m,m.default=m})),kG=d(((e,t)=>{var{nanoid:n}=DG(),{isAbsolute:r,resolve:i}=xW(),{SourceMapConsumer:a,SourceMapGenerator:o}=xW(),{fileURLToPath:s,pathToFileURL:c}=xW(),l=_G(),u=OG(),d=xW(),f=Symbol(`lineToIndexCache`),p=!!(a&&o),m=!!(i&&r);function h(e){if(e[f])return e[f];let t=e.css.split(`
|
|
4077
|
+
`),n=Array(t.length),r=0;for(let e=0,i=t.length;e<i;e++)n[e]=r,r+=t[e].length+1;return e[f]=n,n}var g=class{get from(){return this.file||this.id}constructor(e,t={}){if(e==null||typeof e==`object`&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]===``||this.css[0]===``?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!m||/^\w+:\/\//.test(t.from)||r(t.from)?this.file=t.from:this.file=i(t.from)),m&&p){let e=new u(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id=`<input css `+n(6)+`>`),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,a,o,s,u;if(t&&typeof t==`object`){let e=t,r=n;if(typeof e.offset==`number`){s=e.offset;let r=this.fromOffset(s);t=r.line,n=r.col}else t=e.line,n=e.column,s=this.fromLineAndColumn(t,n);if(typeof r.offset==`number`){o=r.offset;let e=this.fromOffset(o);a=e.line,i=e.col}else a=r.line,i=r.column,o=this.fromLineAndColumn(r.line,r.column)}else if(n)s=this.fromLineAndColumn(t,n);else{s=t;let e=this.fromOffset(s);t=e.line,n=e.col}let d=this.origin(t,n,a,i);return u=d?new l(e,d.endLine===void 0?d.line:{column:d.column,line:d.line},d.endLine===void 0?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,r.plugin):new l(e,a===void 0?t:{column:n,line:t},a===void 0?n:{column:i,line:a},this.css,this.file,r.plugin),u.input={column:n,endColumn:i,endLine:a,endOffset:o,line:t,offset:s,source:this.css},this.file&&(c&&(u.input.url=c(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(e,t){return h(this)[e-1]+t-1}fromOffset(e){let t=h(this),n=t[t.length-1],r=0;if(e>=n)r=t.length-1;else{let n=t.length-2,i;for(;r<n;)if(i=r+(n-r>>1),e<t[i])n=i-1;else if(e>=t[i+1])r=i+1;else{r=i;break}}return{col:e-t[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:i(this.map.consumer().sourceRoot||this.map.root||`.`,e)}origin(e,t,n,i){if(!this.map)return!1;let a=this.map.consumer(),o=a.originalPositionFor({column:t-1,line:e});if(!o.source)return!1;let l;if(typeof n==`number`){let e=a.originalPositionFor({column:i-1,line:n});e.source&&(l=e)}let u;u=r(o.source)?c(o.source):new URL(o.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let d={column:o.column+1,endColumn:l&&l.column+1,endLine:l&&l.line,line:o.line,url:u.toString()};if(u.protocol===`file:`)if(s)d.file=s(u);else throw Error(`file: protocol is not available in this PostCSS build`);let f=a.sourceContentFor(o.source);return f&&(d.source=f),d}toJSON(){let e={};for(let t of[`hasBOM`,`css`,`file`,`id`])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};t.exports=g,g.default=g,d&&d.registerInput&&d.registerInput(g)})),AG=d(((e,t)=>{var n=wG(),r,i,a=class extends n{constructor(e){super(e),this.type=`root`,this.nodes||=[]}normalize(e,t,n){let r=new Set;for(let t of Array.isArray(e)?e:[e])t&&typeof t==`object`&&!t.parent&&t.raws&&t.raws.before!==void 0&&r.add(t.raws);let i=super.normalize(e);if(t){if(n===`prepend`)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of i)r.has(e.raws)||(e.raws.before=t.raws.before)}return i}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a,n.registerRoot(a)})),jG=d(((e,t)=>{var n={comma(e){return n.split(e,[`,`],!0)},space(e){return n.split(e,[` `,`
|
|
4078
|
+
`,` `])},split(e,t,n){if(typeof e!=`string`)return[];let r=[],i=``,a=!1,o=0,s=!1,c=``,l=!1;for(let n of e)l?l=!1:n===`\\`?l=!0:s?n===c&&(s=!1):n===`"`||n===`'`?(s=!0,c=n):n===`(`?o+=1:n===`)`?o>0&&--o:o===0&&t.includes(n)&&(a=!0),a?(i!==``&&r.push(i.trim()),i=``,a=!1):i+=n;return(n||i!==``)&&r.push(i.trim()),r}};t.exports=n,n.default=n})),MG=d(((e,t)=>{var n=wG(),r=jG(),i=class extends n{get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:`,`+this.raw(`between`,`beforeOpen`);this.selector=e.join(n)}constructor(e){super(e),this.type=`rule`,this.nodes||=[]}};t.exports=i,i.default=i,n.registerRule(i)})),NG=d(((e,t)=>{var n=TG(),r=SG(),i=CG(),a=kG(),o=OG(),s=AG(),c=MG();function l(e,t){return e.inputs?e.inputs.map(e=>{let t={...e,__proto__:a.prototype};return t.map&&={...t.map,__proto__:o.prototype},t}):t}function u(e,t,a){let o={...e};if(delete o.inputs,delete o.nodes,o.source){let{inputId:e,...n}=o.source;o.source=n,e!=null&&(o.source.input=t[e])}let l;if(o.type===`root`)l=new s(o);else if(o.type===`decl`)l=new i(o);else if(o.type===`rule`)l=new c(o);else if(o.type===`comment`)l=new r(o);else if(o.type===`atrule`)l=new n(o);else throw Error(`Unknown node type: `+e.type);if(a){l.nodes=a;for(let e of a)e.parent=l}return l}function d(e,t){if(Array.isArray(e))return e.map(e=>d(e));let n,r=[{childIndex:0,children:[],inputs:l(e,t),json:e}];for(;r.length>0;){let e=r[r.length-1],t=e.json.nodes;if(t&&e.childIndex<t.length){let n=t[e.childIndex];e.childIndex+=1,r.push({childIndex:0,children:[],inputs:l(n,e.inputs),json:n});continue}r.pop();let i=u(e.json,e.inputs,t?e.children:void 0);r.length>0?r[r.length-1].children.push(i):n=i}return n}t.exports=d,d.default=d})),PG=d(((e,t)=>{var{dirname:n,relative:r,resolve:i,sep:a}=xW(),{SourceMapConsumer:o,SourceMapGenerator:s}=xW(),{pathToFileURL:c}=xW(),l=kG(),u=!!(o&&s),d=!!(n&&i&&r&&a);t.exports=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?`data:application/json;base64,`+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation==`string`?this.mapOpts.annotation:typeof this.mapOpts.annotation==`function`?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+`.map`;let t=`
|
|
4079
4079
|
`;this.css.includes(`\r
|
|
4080
4080
|
`)&&(t=`\r
|
|
4081
4081
|
`),this.css+=t+`/*# sourceMappingURL=`+e+` */`}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||n(e.file),i;this.mapOpts.sourcesContent===!1?(i=new o(e.text),i.sourcesContent&&=null):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1){if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type===`comment`&&e.text.startsWith(`# sourceMappingURL=`)&&this.root.removeChild(t)}else if(this.css){let e;for(;(e=this.css.lastIndexOf(`/*#`))!==-1;){let t=this.css.indexOf(`*/`,e+3);if(t===-1)break;for(;e>0&&this.css[e-1]===`
|
|
@@ -4083,7 +4083,7 @@ Actual: `+e.attribValue);else{var i=e.tag,a=e.tags[e.tags.length-1]||e;i.ns===a.
|
|
|
4083
4083
|
`),t=o.length-i):t+=o.length,s&&c!==`start`){let i=s.parent||{raws:{}};(!(s.type===`decl`||s.type===`atrule`&&!s.nodes)||s!==i.last||i.raws.semicolon)&&(s.source&&s.source.end?(r.source=this.sourcePath(s),r.original.line=s.source.end.line,r.original.column=s.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0:this.mapOpts.annotation===void 0?this.previous().length?this.previous().some(e=>e.annotation):!0:this.mapOpts.annotation}isInline(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;let e=this.mapOpts.annotation;return e!==void 0&&e!==!0?!1:this.previous().length?this.previous().some(e=>e.inline):!0}isMap(){return this.opts.map===void 0?this.previous().length>0:!!this.opts.map}isSourcesContent(){return this.mapOpts.sourcesContent===void 0?this.previous().length?this.previous().some(e=>e.withContent()):!0:this.mapOpts.sourcesContent}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):`to.css`}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let a=this.opts.to?n(this.opts.to):`.`;typeof this.mapOpts.annotation==`string`&&(a=n(i(a,this.mapOpts.annotation)));let o=r(a,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new l(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`;this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString(`base64`):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(c){let t=c(e).toString();return this.memoizedFileURLs.set(e,t),t}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;a===`\\`&&(e=e.replace(/\\/g,`/`));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}})),FG=d(((e,t)=>{var n=39,r=34,i=92,a=47,o=10,s=32,c=12,l=9,u=13,d=91,f=93,p=40,m=41,h=123,g=125,_=59,v=42,y=58,b=64,x=/[\t\n\f\r "#'()/;[\\\]{}]/g,S=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,C=/.[\r\n"'(/\\]/,w=/[\da-f]/i;t.exports=function(e,t={}){let T=e.css.valueOf(),E=t.ignoreErrors,D,O,k,A,j,M,N,P,F,I,L=T.length,R=0,z=[],B=[],V=-1;function H(){return R}function ee(t){throw e.error(`Unclosed `+t,R)}function U(){return B.length===0&&R>=L}function te(e){if(B.length)return B.pop();if(R>=L)return;let t=e?e.ignoreUnclosed:!1;switch(D=T.charCodeAt(R),D){case o:case s:case l:case u:case c:A=R;do A+=1,D=T.charCodeAt(A);while(D===s||D===o||D===l||D===u||D===c);M=[`space`,T.slice(R,A)],R=A-1;break;case d:case f:case h:case g:case y:case _:case m:{let e=String.fromCharCode(D);M=[e,e,R];break}case p:if(I=z.length?z.pop()[1]:``,F=T.charCodeAt(R+1),I===`url`&&F!==n&&F!==r&&F!==s&&F!==o&&F!==l&&F!==c&&F!==u){A=R;do{if(N=!1,A=T.indexOf(`)`,A+1),A===-1)if(E||t){A=R;break}else ee(`bracket`);for(P=A;T.charCodeAt(P-1)===i;)--P,N=!N}while(N);M=[`brackets`,T.slice(R,A+1),R,A],R=A}else R<=V?M=[`(`,`(`,R]:(A=T.indexOf(`)`,R+1),O=T.slice(R,A+1),A===-1||C.test(O)?(V=A===-1?L:A,M=[`(`,`(`,R]):(M=[`brackets`,O,R,A],R=A));break;case n:case r:j=D===n?`'`:`"`,A=R;do{if(N=!1,A=T.indexOf(j,A+1),A===-1)if(E||t){A=R+1;break}else ee(`string`);for(P=A;T.charCodeAt(P-1)===i;)--P,N=!N}while(N);M=[`string`,T.slice(R,A+1),R,A],R=A;break;case b:x.lastIndex=R+1,x.test(T),A=x.lastIndex===0?T.length-1:x.lastIndex-2,M=[`at-word`,T.slice(R,A+1),R,A],R=A;break;case i:for(A=R,k=!0;T.charCodeAt(A+1)===i;)A+=1,k=!k;if(D=T.charCodeAt(A+1),k&&D!==a&&D!==s&&D!==o&&D!==l&&D!==u&&D!==c&&(A+=1,w.test(T.charAt(A)))){for(;w.test(T.charAt(A+1));)A+=1;T.charCodeAt(A+1)===s&&(A+=1)}M=[`word`,T.slice(R,A+1),R,A],R=A;break;default:D===a&&T.charCodeAt(R+1)===v?(A=T.indexOf(`*/`,R+2)+1,A===0&&(E||t?A=T.length:ee(`comment`)),M=[`comment`,T.slice(R,A+1),R,A],R=A):(S.lastIndex=R+1,S.test(T),A=S.lastIndex===0?T.length-1:S.lastIndex-2,M=[`word`,T.slice(R,A+1),R,A],z.push(M),R=A);break}return R++,M}function ne(e){B.push(e)}return{back:ne,endOfFile:U,nextToken:te,position:H}}})),IG=d(((e,t)=>{var n=TG(),r=SG(),i=CG(),a=AG(),o=MG(),s=FG(),c={empty:!0,space:!0};function l(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}function u(e,t,n){let r=``;for(let i=t;i<n;i++)r+=e[i][1];return r}t.exports=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces=``,this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new n;t.name=e[1].slice(1),t.name===``&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,a,o=!1,s=!1,c=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r===`(`||r===`[`?l.push(r===`(`?`)`:`]`):r===`{`&&l.length>0?l.push(`}`):r===l[l.length-1]&&l.pop(),l.length===0)if(r===`;`){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r===`{`){s=!0;break}else if(r===`}`){if(c.length>0){for(a=c.length-1,i=c[a];i&&i[0]===`space`;)i=c[--a];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else c.push(e);else c.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(t.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(t,`params`,c),o&&(e=c[c.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=``)):(t.raws.afterName=``,t.params=``),s&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,r;for(let i=t-1;i>=0&&(r=e[i],!(r[0]!==`space`&&(n+=1,n===2)));i--);throw this.input.error(`Missed semicolon`,r[0]===`word`?r[3]+1:r[2])}colon(e){let t=0,n,r,i;for(let[a,o]of e.entries()){if(r=o,i=r[0],i===`(`&&(t+=1),i===`)`&&--t,t===0&&i===`:`)if(!n)this.doubleColon(r);else if(n[0]===`word`&&n[1]===`progid`)continue;else return a;n=r}return!1}comment(e){let t=new r;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(!n.trim())t.text=``,t.raws.left=n,t.raws.right=``;else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=s(this.input)}decl(e,t){let n=new i;this.init(n,e[0][2]);let r=e[e.length-1];r[0]===`;`&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||l(e)),n.source.end.offset++;let a=0;for(;e[a][0]!==`word`;)a===e.length-1&&this.unknownWord([e[a]]),a++;n.raws.before+=u(e,0,a),n.source.start=this.getPosition(e[a][2]);let o=a;for(;a<e.length;){let t=e[a][0];if(t===`:`||t===`space`||t===`comment`)break;a++}n.prop=u(e,o,a);let s=a,c;for(;a<e.length&&(c=e[a],a++,c[0]!==`:`);)c[0]===`word`&&/\w/.test(c[1])&&this.unknownWord([c]);n.raws.between=u(e,s,a),(n.prop[0]===`_`||n.prop[0]===`*`)&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let d=a;for(;a<e.length;){let t=e[a][0];if(t!==`space`&&t!==`comment`)break;a++}let f=e.slice(d,a);e=e.slice(a),this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(c=e[t],c[1].toLowerCase()===`!important`){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r,r!==` !important`&&(n.raws.important=r);break}else if(c[1].toLowerCase()===`important`){let r=e.slice(0),i=``;for(let e=t;e>0;e--){let t=r[e][0];if(i.trim().startsWith(`!`)&&t!==`space`)break;i=r.pop()[1]+i}i.trim().startsWith(`!`)&&(n.important=!0,n.raws.important=i,e=r)}if(c[0]!==`space`&&c[0]!==`comment`)break}e.some(e=>e[0]!==`space`&&e[0]!==`comment`)&&(n.raws.between+=f.map(e=>e[1]).join(``),f=[]),this.raw(n,`value`,f.concat(e),t),n.value.includes(`:`)&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error(`Double colon`,{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new o;this.init(t,e[2]),t.selector=``,t.raws.between=``,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.source.end.offset++,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,this.root.source.end=this.getPosition(this.tokenizer.position())}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=``,t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces=``,e.type!==`comment`&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith(`--`),s=[],c=e;for(;c;){if(n=c[0],s.push(c),n===`(`||n===`[`)i||=c,a.push(n===`(`?`)`:`]`);else if(o&&r&&n===`{`)i||=c,a.push(`}`);else if(a.length===0)if(n===`;`)if(r){this.decl(s,o);return}else break;else if(n===`{`){this.rule(s);return}else if(n===`}`){this.tokenizer.back(s.pop()),t=!0;break}else n===`:`&&(r=!0);else n===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&(c=s[s.length-1][0],!(c!==`space`&&c!==`comment`));)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)}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()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,a,o=n.length,s=``,l=!0,u,d;for(let e=0;e<o;e+=1)i=n[e],a=i[0],a===`space`&&e===o-1&&!r?l=!1:a===`comment`?(d=n[e-1]?n[e-1][0]:`empty`,u=n[e+1]?n[e+1][0]:`empty`,!c[d]&&!c[u]?s.slice(-1)===`,`?l=!1:s+=i[1]:l=!1):s+=i[1];if(!l){let r=n.reduce((e,t)=>e+t[1],``);e.raws[t]={raw:r,value:s}}e[t]=s}rule(e){e.pop();let t=new o;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,`selector`,e),this.current=t}spacesAndCommentsFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],!(t!==`space`&&t!==`comment`));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n=``;for(;e.length&&(t=e[0][0],!(t!==`space`&&t!==`comment`));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],t===`space`);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n=``;for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error(`Unclosed block`,e.line,e.column)}unclosedBracket(e){throw this.input.error(`Unclosed bracket`,{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error(`Unexpected }`,{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error(`Unknown word `+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error(`At-rule without name`,{offset:t[2]},{offset:t[2]+t[1].length})}}})),LG=d(((e,t)=>{var n=wG(),r=kG(),i=IG();function a(e,t){let n=new i(new r(e,t));try{n.parse()}catch(e){throw process.env.NODE_ENV!==`production`&&e.name===`CssSyntaxError`&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+=`
|
|
4084
4084
|
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(t.from)?e.message+=`
|
|
4085
4085
|
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(t.from)&&(e.message+=`
|
|
4086
|
-
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),e}return n.root}t.exports=a,a.default=a,n.registerParse(a)})),RG=d(((e,t)=>{var n=class{constructor(e,t={}){if(this.type=`warning`,this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+`: `+this.text:this.text}};t.exports=n,n.default=n})),zG=d(((e,t)=>{var n=RG(),r=class{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=``,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type===`warning`)}};t.exports=r,r.default=r})),BG=d(((e,t)=>{var n={};t.exports=function(e){n[e]||(n[e]=!0,typeof console<`u`&&console.warn&&console.warn(e))}})),VG=d(((e,t)=>{var n=wG(),r=EG(),i=PG(),a=LG(),o=zG(),s=AG(),c=yG(),{isClean:l,my:u}=bG(),d=BG(),f={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},m={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function g(e){return typeof e==`object`&&typeof e.then==`function`}function _(e){let t=!1,n=f[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,h,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,h,n+`Exit`]:[n,n+`Exit`]}function v(e){let t;return t=e.type===`document`?[`Document`,h,`DocumentExit`]:e.type===`root`?[`Root`,h,`RootExit`]:_(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function y(e){return e[l]=!1,e.nodes&&e.nodes.forEach(e=>y(e)),e}var b={},x=class e{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return`LazyResult`}constructor(t,r,i){this.stringified=!1,this.processed=!1;let s;if(typeof r==`object`&&r&&(r.type===`root`||r.type===`document`))s=y(r);else if(r instanceof e||r instanceof o)s=y(r.root),r.map&&(i.map===void 0&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=a;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{s=e(r,i)}catch(e){this.processed=!0,this.error=e}s&&!s[u]&&n.rebuild(s)}this.result=new o(t,s,i),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(e=>typeof e==`object`&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||=this.runAsync(),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error(`Use process(css).then(cb) to work with async plugins`)}handleError(e,t){let n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!==`production`){let e=n.postcssPlugin,t=n.postcssVersion,r=this.result.processor.version,i=t.split(`.`),a=r.split(`.`);(i[0]!==a[0]||parseInt(i[1])>parseInt(a[1]))&&console.error(`Unknown error from PostCSS plugin. Your current PostCSS version is `+r+`, but `+e+` uses `+t+`. Perhaps this is the source of the error below.`)}}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if(typeof t==`object`)for(let n in t){if(!p[n]&&/^[A-Z]/.test(n))throw Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!m[n])if(typeof t[n]==`object`)for(let r in t[n])r===`*`?e(t,n,t[n][r]):e(t,n+`-`+r.toLowerCase(),t[n][r]);else typeof t[n]==`function`&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(g(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];){e[l]=!0;let t=[v(e)];for(;t.length>0;){let e=this.visitTick(t);if(g(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type===`document`){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==`object`&&e.Once){if(this.result.root.type===`document`){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return g(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e==`function`)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=c;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=this.result.root.source;if(e.map===void 0&&!(n&&n.input&&n.input.map)){let e=``;return t(this.result.root,t=>{e+=t}),this.result.css=e,this.result}let r=new i(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(g(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];)e[l]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type===`document`)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return process.env.NODE_ENV!==`production`&&(`from`in this.opts||d("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){this.result.lastPlugin=n;let e;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(g(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if(n.type!==`root`&&n.type!==`document`&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(t.iterator!==0){let r=t.iterator,i;for(;i=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!i[l]){i[l]=!0,e.push(v(i));return}t.iterator=0,delete n.indexes[r]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,e===h){n.nodes&&n.nodes.length&&(n[l]=!0,t.iterator=n.getIterator());return}else if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){e[l]=!0;let t=_(e);for(let n of t)if(n===h)e.nodes&&e.each(e=>{e[l]||this.walkSync(e)});else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}};x.registerPostcss=e=>{b=e},t.exports=x,x.default=x,s.registerLazyResult(x),r.registerLazyResult(x)})),HG=d(((e,t)=>{var n=PG(),r=LG(),i=zG(),a=yG(),o=BG(),s=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=r;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return`NoWorkResult`}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let o=a;this.result=new i(this._processor,void 0,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let c=new n(o,void 0,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return process.env.NODE_ENV!==`production`&&(`from`in this._opts||o("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};t.exports=s,s.default=s})),UG=d(((e,t)=>{var n=EG(),r=VG(),i=HG(),a=AG(),o=class{constructor(e=[]){this.version=`8.5.15`,this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n==`object`&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n==`object`&&n.postcssPlugin)t.push(n);else if(typeof n==`function`)t.push(n);else if(typeof n==`object`&&(n.parse||n.stringify)){if(process.env.NODE_ENV!==`production`)throw Error(`PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.`)}else throw Error(n+` is not a PostCSS plugin`);return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new i(this,e,t):new r(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};t.exports=o,o.default=o,a.registerProcessor(o),n.registerProcessor(o)})),WG=d(((e,t)=>{var n=TG(),r=SG(),i=wG(),a=_G(),o=CG(),s=EG(),c=NG(),l=kG(),u=VG(),d=jG(),f=xG(),p=LG(),m=UG(),h=zG(),g=AG(),_=MG(),v=yG(),y=RG();function b(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new m(e)}b.plugin=function(e,t){let n=!1;function r(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
4086
|
+
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),e}return n.root}t.exports=a,a.default=a,n.registerParse(a)})),RG=d(((e,t)=>{var n=wG(),{my:r}=bG(),i=class{constructor(e,t={}){if(this.type=`warning`,this.text=e,t.node&&t.node.source){t.node[r]||n.rebuild(t.node);let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+`: `+this.text:this.text}};t.exports=i,i.default=i})),zG=d(((e,t)=>{var n=RG(),r=class{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=``,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type===`warning`)}};t.exports=r,r.default=r})),BG=d(((e,t)=>{var n={};t.exports=function(e){n[e]||(n[e]=!0,typeof console<`u`&&console.warn&&console.warn(e))}})),VG=d(((e,t)=>{var n=wG(),r=EG(),i=PG(),a=LG(),o=zG(),s=AG(),c=yG(),{isClean:l,my:u}=bG(),d=BG(),f={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},m={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function g(e){return typeof e==`object`&&typeof e.then==`function`}function _(e){let t=!1,n=f[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,h,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,h,n+`Exit`]:[n,n+`Exit`]}function v(e){let t;return t=e.type===`document`?[`Document`,h,`DocumentExit`]:e.type===`root`?[`Root`,h,`RootExit`]:_(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function y(e){let t=[e];for(;t.length>0;){let e=t.pop();if(e[l]=!1,e.nodes)for(let n of e.nodes)t.push(n)}return e}var b={},x=class e{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return`LazyResult`}constructor(t,r,i){this.stringified=!1,this.processed=!1;let s;if(typeof r==`object`&&r&&(r.type===`root`||r.type===`document`))s=y(r);else if(r instanceof e||r instanceof o)s=y(r.root),r.map&&(i.map===void 0&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=a;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{s=e(r,i)}catch(e){this.processed=!0,this.error=e}s&&!s[u]&&n.rebuild(s)}this.result=new o(t,s,i),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(e=>typeof e==`object`&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||=this.runAsync(),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error(`Use process(css).then(cb) to work with async plugins`)}handleError(e,t){let n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!==`production`){let e=n.postcssPlugin,t=n.postcssVersion,r=this.result.processor.version,i=t.split(`.`),a=r.split(`.`);(i[0]!==a[0]||parseInt(i[1])>parseInt(a[1]))&&console.error(`Unknown error from PostCSS plugin. Your current PostCSS version is `+r+`, but `+e+` uses `+t+`. Perhaps this is the source of the error below.`)}}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if(typeof t==`object`)for(let n in t){if(!p[n]&&/^[A-Z]/.test(n))throw Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!m[n])if(typeof t[n]==`object`)for(let r in t[n])r===`*`?e(t,n,t[n][r]):e(t,n+`-`+r.toLowerCase(),t[n][r]);else typeof t[n]==`function`&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(g(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];){e[l]=!0;let t=[v(e)];for(;t.length>0;){let e=this.visitTick(t);if(g(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type===`document`){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==`object`&&e.Once){if(this.result.root.type===`document`){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return g(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e==`function`)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=c;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=this.result.root.source;if(e.map===void 0&&!(n&&n.input&&n.input.map)){let e=``;return t(this.result.root,t=>{e+=t}),this.result.css=e,this.result}let r=new i(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(g(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];)e[l]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type===`document`)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return process.env.NODE_ENV!==`production`&&(`from`in this.opts||d("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){this.result.lastPlugin=n;let e;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(g(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if(n.type!==`root`&&n.type!==`document`&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(t.iterator!==0){let r=t.iterator;t.descending&&(t.descending=!1,n.indexes[r]+=1);let i;for(;i=n.nodes[n.indexes[r]];){if(!i[l]){i[l]=!0,t.descending=!0,e.push(v(i));return}n.indexes[r]+=1}t.iterator=0,delete n.indexes[r]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,e===h){n.nodes&&n.nodes.length&&(n[l]=!0,t.iterator=n.getIterator());return}else if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){e[l]=!0;let t=[{eventIndex:0,events:_(e),iterator:0,node:e}];for(;t.length>0;){let e=t[t.length-1],n=e.node;if(e.iterator!==0){let r=e.iterator;e.descending&&(e.descending=!1,n.indexes[r]+=1);let i,a=!1;for(;i=n.nodes[n.indexes[r]];){if(!i[l]){i[l]=!0,e.descending=!0,t.push({eventIndex:0,events:_(i),iterator:0,node:i}),a=!0;break}n.indexes[r]+=1}if(a)continue;e.iterator=0,delete n.indexes[r]}if(e.eventIndex<e.events.length){let r=e.events[e.eventIndex];if(e.eventIndex+=1,r===h)n.nodes&&n.nodes.length&&(e.iterator=n.getIterator());else{let e=this.listeners[r];e&&this.visitSync(e,n.toProxy())&&t.pop()}continue}t.pop()}}warnings(){return this.sync().warnings()}};x.registerPostcss=e=>{b=e},t.exports=x,x.default=x,s.registerLazyResult(x),r.registerLazyResult(x)})),HG=d(((e,t)=>{var n=PG(),r=LG(),i=zG(),a=yG(),o=BG(),s=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=r;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return`NoWorkResult`}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let o=a;this.result=new i(this._processor,void 0,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let c=new n(o,void 0,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return process.env.NODE_ENV!==`production`&&(`from`in this._opts||o("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};t.exports=s,s.default=s})),UG=d(((e,t)=>{var n=EG(),r=VG(),i=HG(),a=AG(),o=class{constructor(e=[]){this.version=`8.5.26`,this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n==`object`&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n==`object`&&n.postcssPlugin)t.push(n);else if(typeof n==`function`)t.push(n);else if(typeof n==`object`&&(n.parse||n.stringify)){if(process.env.NODE_ENV!==`production`)throw Error(`PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.`)}else throw Error(n+` is not a PostCSS plugin`);return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new i(this,e,t):new r(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};t.exports=o,o.default=o,a.registerProcessor(o),n.registerProcessor(o)})),WG=d(((e,t)=>{var n=TG(),r=SG(),i=wG(),a=_G(),o=CG(),s=EG(),c=NG(),l=kG(),u=VG(),d=jG(),f=xG(),p=LG(),m=UG(),h=zG(),g=AG(),_=MG(),v=yG(),y=RG();function b(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new m(e)}b.plugin=function(e,t){let n=!1;function r(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
4087
4087
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith(`cn`)&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
4088
4088
|
https://www.w3ctech.com/topic/2226`));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=new m().version,i}let i;return Object.defineProperty(r,"postcss",{get(){return i||=r(),i}}),r.process=function(e,t,n){return b([r(n)]).process(e,t)},r},b.stringify=v,b.parse=p,b.fromJSON=c,b.list=d,b.comment=e=>new r(e),b.atRule=e=>new n(e),b.decl=e=>new o(e),b.rule=e=>new _(e),b.root=e=>new g(e),b.document=e=>new s(e),b.CssSyntaxError=a,b.Declaration=o,b.Container=i,b.Processor=m,b.Document=s,b.Comment=r,b.Warning=y,b.AtRule=n,b.Result=h,b.Input=l,b.Rule=_,b.Root=g,b.Node=f,u.registerPostcss(b),t.exports=b,b.default=b})),GG=d(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),KG=d(((e,t)=>{var n=GG();function r(e){for(e=e.replace(/[\x00-\x20]+/g,``);;){let t=e.indexOf(`<!--`);if(t===-1)break;let n=e.indexOf(`-->`,t+4);if(n===-1)break;e=e.substring(0,t)+e.substring(n+3)}return e}function i(e,t){t||={};let n=t.allowedSchemes||[`http`,`https`,`ftp`,`mailto`,`tel`,`sms`],i=t.allowProtocolRelative!==!1;if(typeof e!=`string`)return!1;e=r(e);let a=e.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!a)return e.match(/^[/\\]{2}/)?!i:!1;let o=a[1].toLowerCase();return n.indexOf(o)===-1}t.exports=function(e){let t={};return t.options=e||{},t.filterTag=t.options.filterTag||function(e){return e=e.trim(),e.toLowerCase()},t.string=function(e,t){return typeof e!=`string`&&(typeof e==`number`||typeof e==`boolean`?e+=``:e=``),e=e.trim(),t!==void 0&&e===``&&(e=t),e},t.strings=function(e){return Array.isArray(e)?e.map(function(e){return t.string(e)}):[]},t.integer=function(e,t,n,r){if(t===void 0&&(t=0),typeof e==`number`)e=Math.floor(e);else try{e=parseInt(e,10),isNaN(e)&&(e=t)}catch{e=t}return typeof n==`number`&&e<n&&(e=n),typeof r==`number`&&e>r&&(e=r),e},t.padInteger=function(e,t){let n=e+``;for(;n.length<t;)n=`0`+n;return n},t.float=function(e,t,n,r){if(t===void 0&&(t=0),typeof e!=`number`)try{e=parseFloat(e,10),isNaN(e)&&(e=t)}catch{e=t}return typeof n==`number`&&e<n&&(e=n),typeof r==`number`&&e>r&&(e=r),e},t.naughtyHref=i,t.url=function(e,n,a){if(e=t.string(e,n),e===n)return e;if(e=r(e),i(e)||(e=o(e),e===null))return n;return e;function o(e){return e.match(/^(((https?|ftp):\/\/)|((mailto|tel|sms):)|#|([^/.]+)?\/|[^/.]+$)/)?e:e.match(/^[^/.]+\.[^/.]+/)?(a?`https://`:`http://`)+e:null}},t.select=function(e,n,r){if(e=t.string(e),!n||!n.length)return r;let i;return typeof n[0]==`object`?(i=n.find(function(t){return t.value===null||t.value===void 0?!1:t.value.toString()===e}),i==null?r:i.value):(i=n.find(function(t){return t==null?!1:t.toString()===e}),i===void 0?r:i)},t.boolean=function(e,n){return e===!0?!0:e===!1?!1:(e=t.string(e,n),e===n?e===void 0?!1:e:(e=e.toLowerCase().charAt(0),e===``||e===`n`||e===`0`||e===`f`?!1:e===`t`||e===`y`||e===`1`))},t.addBooleanFilterToCriteria=function(e,n,r,i){i===void 0&&(i=null);let a=typeof e==`object`&&e?e[n]:e;a=a===void 0?i:a,a=t.booleanOrNull(a),a===null||(a?r[n]=!0:r[n]={$ne:!0})},t.booleanOrNull=function(e,n){return e===!0||e===!1||e===null?e:(e=t.string(e,n),e===n?n===void 0?null:e:e===`null`?null:(e=e.toLowerCase().charAt(0),e===``||e===`n`||e===`0`||e===`f`?!1:e===`t`||e===`y`||e===`1`?!0:e===`a`?null:n))},t.date=function(e,r,i){let a;function o(){return r===void 0&&(r=n().format(`YYYY-MM-DD`)),r}if(typeof e==`string`){if(e.match(/\//)){if(a=e.split(`/`),a.length===2)return(i||new Date).getFullYear()+`-`+t.padInteger(a[0],2)+`-`+t.padInteger(a[1],2);if(a.length===3){if(a[2]<100){let e=i||new Date,t=e.getFullYear()%100,n=e.getFullYear()-t,r=parseInt(a[2])+n;r-e.getFullYear()>50&&(r-=100),a[2]=r}return t.padInteger(a[2],4)+`-`+t.padInteger(a[0],2)+`-`+t.padInteger(a[1],2)}else return o()}else if(e.match(/-/))return a=e.split(`-`),a.length===2?(i||new Date).getFullYear()+`-`+t.padInteger(a[0],2)+`-`+t.padInteger(a[1],2):a.length===3?t.padInteger(a[0],4)+`-`+t.padInteger(a[1],2)+`-`+t.padInteger(a[2],2):o()}try{return e===null||(e=i||new Date(e),isNaN(e.getTime()))?o():e.getFullYear()+`-`+t.padInteger(e.getMonth()+1,2)+`-`+t.padInteger(e.getDate(),2)}catch{return o()}},t.formatDate=function(e){return n(e).format(`YYYY-MM-DD`)},t.time=function(e,r){e=t.string(e).toLowerCase(),e=e.trim();let i=e.match(/^(\d+)([:|.](\d+))?([:|.](\d+))?\s*(am|pm|AM|PM|a|p|A|M)?$/);if(i){let e=parseInt(i[1],10),n=i[3]===void 0?0:parseInt(i[3],10),r=i[5]===void 0?0:parseInt(i[5],10),a=i[6]?i[6].toLowerCase():i[6];return a&&=a.charAt(0),e===12&&a===`a`?e-=12:e===12&&a===`p`||a===`p`&&(e+=12),(e===24||e===`24`)&&(e=0),t.padInteger(e,2)+`:`+t.padInteger(n,2)+`:`+t.padInteger(r,2)}else return r===void 0?n().format(`HH:mm`):r},t.formatTime=function(e){return n(e).format(`HH:mm:ss`)},t.tags=function(e,n){return typeof e==`string`&&(e=e.split(/,\s*/)),Array.isArray(e)?e.map(e=>t.string(e)).map(n||t.filterTag).filter(e=>e.length>0):[]},t.idRegExp=t.options.idRegExp||/^[A-Za-z0-9_]+$/,t.id=function(e,n){let r=t.string(e,n);return r===n||r.match(t.idRegExp)?r:n},t.ids=function(e){return Array.isArray(e)?e.filter(function(e){return t.id(e)!==void 0}):[]},t},t.exports.naughtyHref=i})),qG=m(d(((e,t)=>{var n=dG(),r=fG(),{isPlainObject:i}=pG(),a=mG(),o=hG(),{parse:s}=WG(),{naughtyHref:c}=KG(),l=[`img`,`audio`,`video`,`picture`,`svg`,`object`,`map`,`iframe`,`embed`],u=[`script`,`style`];function d(e,t){e&&Object.keys(e).forEach(function(n){t(e[n],n)})}function f(e,t){return{}.hasOwnProperty.call(e,t)}function p(e,t){let n=[];return d(e,function(e){t(e)&&n.push(e)}),n}function m(e){for(let t in e)if(f(e,t))return!1;return!0}function h(e){return e.map(function(e){if(!e.url)throw Error(`URL missing`);return e.url+(e.w?` ${e.w}w`:``)+(e.h?` ${e.h}h`:``)+(e.d?` ${e.d}x`:``)}).join(`, `)}t.exports=_;var g=/^[^\0\t\n\f\r /<=>]+$/;function _(e,t,y){if(e==null)return``;typeof e==`number`&&(e=e.toString());let b=``,x=``;function S(e,t){let n=this;this.tag=e,this.attribs=t||{},this.tagPosition=b.length,this.text=``,this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(N.length){let e=N[N.length-1];e.text+=n.text}},this.updateParentNodeMediaChildren=function(){N.length&&l.includes(this.tag)&&N[N.length-1].mediaChildren.push(this.tag)}}t=Object.assign({},_.defaults,t),t.parser=Object.assign({},v,t.parser);let C=function(e){return t.allowedTags===!1||(t.allowedTags||[]).indexOf(e)>-1};u.forEach(function(e){C(e)&&!t.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)});let w=t.nonTextTags||[`script`,`style`,`textarea`,`option`,`xmp`],T,E;t.allowedAttributes&&(T={},E={},d(t.allowedAttributes,function(e,t){T[t]=[];let n=[];e.forEach(function(e){typeof e==`string`&&e.indexOf(`*`)>=0?n.push(r(e).replace(/\\\*/g,`.*`)):T[t].push(e)}),n.length&&(E[t]=RegExp(`^(`+n.join(`|`)+`)$`))}));let D={},O={},k={};d(t.allowedClasses,function(e,t){if(T&&(f(T,t)||(T[t]=[]),T[t].push(`class`)),D[t]=e,Array.isArray(e)){let n=[];D[t]=[],k[t]=[],e.forEach(function(e){typeof e==`string`&&e.indexOf(`*`)>=0?n.push(r(e).replace(/\\\*/g,`.*`)):e instanceof RegExp?k[t].push(e):D[t].push(e)}),n.length&&(O[t]=RegExp(`^(`+n.join(`|`)+`)$`))}});let A={},j;d(t.transformTags,function(e,t){let n;typeof e==`function`?n=e:typeof e==`string`&&(n=_.simpleTransform(e)),t===`*`?j=n:A[t]=n});let M,N,P,F,I,L,R=!1;B();let z=new n.Parser({onopentag:function(e,n){if(t.onOpenTag&&t.onOpenTag(e,n),t.enforceHtmlBoundary&&e===`html`&&B(),I){L++;return}let r=new S(e,n);N.push(r);let c=!1,l=!!r.text,u;if(f(A,e)&&(u=A[e](e,n),r.attribs=n=u.attribs,u.text!==void 0&&(r.innerText=u.text),e!==u.tagName&&(r.name=e=u.tagName,F[M]=u.tagName)),j&&(u=j(e,n),r.attribs=n=u.attribs,e!==u.tagName&&(r.name=e=u.tagName,F[M]=u.tagName)),(!C(e)||t.disallowedTagsMode===`recursiveEscape`&&!m(P)||t.nestingLimit!=null&&M>=t.nestingLimit)&&(c=!0,P[M]=!0,(t.disallowedTagsMode===`discard`||t.disallowedTagsMode===`completelyDiscard`)&&w.indexOf(e)!==-1&&(I=!0,L=1)),M++,c){if(t.disallowedTagsMode===`discard`||t.disallowedTagsMode===`completelyDiscard`){if(r.innerText&&!l){let n=V(r.innerText);t.textFilter?b+=t.textFilter(n,e):b+=n,R=!0}return}x=b,b=``}b+=`<`+e,e===`script`&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(r.innerText=``),c&&(t.disallowedTagsMode===`escape`||t.disallowedTagsMode===`recursiveEscape`)&&t.preserveEscapedAttributes?d(n,function(e,t){b+=` `+t+`="`+V(e||``,!0)+`"`}):(!T||f(T,e)||T[`*`])&&d(n,function(n,c){if(!g.test(c)){delete r.attribs[c];return}if(n===``&&!t.allowedEmptyAttributes.includes(c)&&(t.nonBooleanAttributes.includes(c)||t.nonBooleanAttributes.includes(`*`))){delete r.attribs[c];return}let l=!1;if(!T||f(T,e)&&T[e].indexOf(c)!==-1||T[`*`]&&T[`*`].indexOf(c)!==-1||f(E,e)&&E[e].test(c)||E[`*`]&&E[`*`].test(c))l=!0;else if(T&&T[e]){for(let t of T[e])if(i(t)&&t.name&&t.name===c){l=!0;let e=``;if(t.multiple===!0){let r=n.split(` `);for(let n of r)t.values.indexOf(n)!==-1&&(e===``?e=n:e+=` `+n)}else t.values.indexOf(n)>=0&&(e=n);n=e}}if(l){if(t.allowedSchemesAppliedToAttributes.indexOf(c)!==-1&&H(e,n)){delete r.attribs[c];return}if(e===`script`&&c===`src`){let e=!0;try{let r=ee(n);if(t.allowedScriptHostnames||t.allowedScriptDomains){let n=(t.allowedScriptHostnames||[]).find(function(e){return e===r.url.hostname}),i=(t.allowedScriptDomains||[]).find(function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)});e=n||i}}catch{e=!1}if(!e){delete r.attribs[c];return}}if(e===`iframe`&&c===`src`){let e=!0;try{let r=ee(n);if(r.isRelativeUrl)e=f(t,`allowIframeRelativeUrls`)?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){let n=(t.allowedIframeHostnames||[]).find(function(e){return e===r.url.hostname}),i=(t.allowedIframeDomains||[]).find(function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)});e=n||i}}catch{e=!1}if(!e){delete r.attribs[c];return}}if(c===`srcset`||c===`imagesrcset`)try{let e=o(n);if(e.forEach(function(e){H(c,e.url)&&(e.evil=!0)}),e=p(e,function(e){return!e.evil}),e.length)n=h(p(e,function(e){return!e.evil})),r.attribs[c]=n;else{delete r.attribs[c];return}}catch{delete r.attribs[c];return}if(c===`class`){let t=D[e],i=D[`*`],o=O[e],s=k[e],l=k[`*`],u=[o,O[`*`]].concat(s,l).filter(function(e){return e});if(n=t&&i?W(n,a(t,i),u):W(n,t||i,u),!n.length){delete r.attribs[c];return}}if(c===`style`){if(t.parseStyleAttributes)try{if(n=te(U(s(e+` {`+n+`}`,{map:!1}),t.allowedStyles)),n.length===0){delete r.attribs[c];return}}catch{typeof window<`u`&&console.warn(`Failed to parse "`+e+` {`+n+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete r.attribs[c];return}else if(t.allowedStyles)throw Error(`allowedStyles option cannot be used together with parseStyleAttributes: false.`)}b+=` `+c,n&&n.length?b+=`="`+V(n,!0)+`"`:t.allowedEmptyAttributes.includes(c)&&(b+=`=""`)}else delete r.attribs[c]}),t.selfClosing.indexOf(e)===-1?(b+=`>`,r.innerText&&!l&&!t.textFilter&&(b+=V(r.innerText),R=!0)):b+=` />`,c&&(b=x+V(b),x=``),r.openingTagLength=b.length-r.tagPosition},ontext:function(e){if(I)return;let n=N[N.length-1],r;if(n&&(r=n.tag,e=n.innerText===void 0?e:n.innerText),t.disallowedTagsMode===`completelyDiscard`&&!C(r))e=``;else if(r&&C(r)&&(t.disallowedTagsMode===`discard`||t.disallowedTagsMode===`completelyDiscard`)&&(r===`script`||r===`style`))b+=e;else if(r&&C(r)&&(t.disallowedTagsMode===`discard`||t.disallowedTagsMode===`completelyDiscard`)&&(r===`textarea`||r===`xmp`))b+=e;else if(!R){let n=V(e,!1);t.textFilter?b+=t.textFilter(n,r):b+=n}if(N.length){let t=N[N.length-1];t.text+=e}},onclosetag:function(e,n){if(t.onCloseTag&&t.onCloseTag(e,n),I)if(L--,!L)I=!1;else return;let r=N.pop();if(!r)return;if(r.tag!==e){N.push(r);return}I=t.enforceHtmlBoundary?e===`html`:!1,M--;let i=P[M];if(i){if(delete P[M],t.disallowedTagsMode===`discard`||t.disallowedTagsMode===`completelyDiscard`){r.updateParentNodeText();return}x=b,b=``}if(F[M]&&(e=F[M],delete F[M]),t.exclusiveFilter){let e=t.exclusiveFilter(r);if(e===`excludeTag`){i&&(b=x,x=``),b=b.substring(0,r.tagPosition)+b.substring(r.tagPosition+r.openingTagLength);return}else if(e){b=b.substring(0,r.tagPosition);return}}if(r.updateParentNodeMediaChildren(),r.updateParentNodeText(),t.selfClosing.indexOf(e)!==-1||n&&!C(e)&&[`escape`,`recursiveEscape`].indexOf(t.disallowedTagsMode)>=0){i&&(b=x,x=``);return}b+=`</`+e+`>`,i&&(b=x+V(b),x=``),R=!1}},t.parser);if(z.write(e),z.end(),t.disallowedTagsMode===`escape`||t.disallowedTagsMode===`recursiveEscape`){let t=z.endIndex;if(t!=null&&t>=0&&t<e.length){let n=e.substring(t);b+=V(n)}else (t==null||t<0)&&e.length>0&&b===``&&(b=V(e))}return b;function B(){b=``,M=0,N=[],P={},F={},I=!1,L=0}function V(e,n){return typeof e!=`string`&&(e+=``),t.parser.decodeEntities&&(e=e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),n&&(e=e.replace(/"/g,`"`))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),n&&(e=e.replace(/"/g,`"`)),e}function H(e,n){return c(n,{allowedSchemes:f(t.allowedSchemesByTag,e)?t.allowedSchemesByTag[e]:t.allowedSchemes||[],allowProtocolRelative:t.allowProtocolRelative})}function ee(e){if(e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,`$1//`),e.startsWith(`relative:`))throw Error(`relative: exploit attempt`);let t=`relative://relative-site`;for(let e=0;e<100;e++)t+=`/${e}`;let n=new URL(e,t);return{isRelativeUrl:n&&n.hostname===`relative-site`&&n.protocol===`relative:`,url:n}}function U(e,t){if(!t)return e;let n=e.nodes[0],r;return r=t[n.selector]&&t[`*`]?a(t[n.selector],t[`*`]):t[n.selector]||t[`*`],r&&(e.nodes[0].nodes=n.nodes.reduce(ne(r),[])),e}function te(e){return e.nodes[0].nodes.reduce(function(e,t){return e.push(`${t.prop}:${t.value}${t.important?` !important`:``}`),e},[]).join(`;`)}function ne(e){return function(t,n){return f(e,n.prop)&&e[n.prop].some(function(e){return e.test(n.value)})&&t.push(n),t}}function W(e,t,n){return t?(e=e.split(/\s+/),e.filter(function(e){return t.indexOf(e)!==-1||n.some(function(t){return t.test(e)})}).join(` `)):e}}var v={decodeEntities:!0};_.defaults={allowedTags:`address.article.aside.footer.header.h1.h2.h3.h4.h5.h6.hgroup.main.nav.section.blockquote.dd.div.dl.dt.figcaption.figure.hr.li.menu.ol.p.pre.ul.a.abbr.b.bdi.bdo.br.cite.code.data.dfn.em.i.kbd.mark.q.rb.rp.rt.rtc.ruby.s.samp.small.span.strong.sub.sup.time.u.var.wbr.caption.col.colgroup.table.tbody.td.tfoot.th.thead.tr`.split(`.`),nonBooleanAttributes:`abbr.accept.accept-charset.accesskey.action.allow.alt.as.autocapitalize.autocomplete.blocking.charset.cite.class.color.cols.colspan.content.contenteditable.coords.crossorigin.data.datetime.decoding.dir.dirname.download.draggable.enctype.enterkeyhint.fetchpriority.for.form.formaction.formenctype.formmethod.formtarget.headers.height.hidden.high.href.hreflang.http-equiv.id.imagesizes.imagesrcset.inputmode.integrity.is.itemid.itemprop.itemref.itemtype.kind.label.lang.list.loading.low.max.maxlength.media.method.min.minlength.name.nonce.optimum.pattern.ping.placeholder.popover.popovertarget.popovertargetaction.poster.preload.referrerpolicy.rel.rows.rowspan.sandbox.scope.shape.size.sizes.slot.span.spellcheck.src.srcdoc.srclang.srcset.start.step.style.tabindex.target.title.translate.type.usemap.value.width.wrap.onauxclick.onafterprint.onbeforematch.onbeforeprint.onbeforeunload.onbeforetoggle.onblur.oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncontextlost.oncontextmenu.oncontextrestored.oncopy.oncuechange.oncut.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.onformdata.onhashchange.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onlanguagechange.onload.onloadeddata.onloadedmetadata.onloadstart.onmessage.onmessageerror.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onoffline.ononline.onpagehide.onpageshow.onpaste.onpause.onplay.onplaying.onpopstate.onprogress.onratechange.onreset.onresize.onrejectionhandled.onscroll.onscrollend.onsecuritypolicyviolation.onseeked.onseeking.onselect.onslotchange.onstalled.onstorage.onsubmit.onsuspend.ontimeupdate.ontoggle.onunhandledrejection.onunload.onvolumechange.onwaiting.onwheel`.split(`.`),disallowedTagsMode:`discard`,allowedAttributes:{a:[`href`,`name`,`target`],img:[`src`,`srcset`,`alt`,`title`,`width`,`height`,`loading`]},allowedEmptyAttributes:[`alt`],selfClosing:[`img`,`br`,`hr`,`area`,`base`,`basefont`,`input`,`link`,`meta`],allowedSchemes:[`http`,`https`,`ftp`,`mailto`,`tel`],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:[`href`,`src`,`cite`,`action`,`formaction`,`data`,`xlink:href`,`poster`,`background`,`ping`,`longdesc`,`usemap`,`codebase`,`classid`,`archive`,`profile`,`manifest`,`itemid`,`dynsrc`,`lowsrc`],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1},_.simpleTransform=function(e,t,n){return n=n===void 0?!0:n,t||={},function(r,i){let a;if(n)for(a in t)i[a]=t[a];else i=t;return{tagName:e,attribs:i}}}}))(),1),JG=[`innerHTML`],YG=(0,n.defineComponent)({__name:`ColumnValue`,props:{header:{},item:{}},setup(e){let t=e,r=()=>{let e=``;if(typeof t.header.cellRenderer==`function`){let e=t.header.cellRenderer(t.item[t.header.value],t.item);return Array.isArray(e)?(0,n.h)(`div`,{},e):e}else if(typeof t.header.valueFormatter==`function`)return t.header.valueFormatter(t.item[t.header.value],t.item);else return e=t.item[t.header.value],(0,qG.default)(e)};return(e,i)=>((0,n.openBlock)(),(0,n.createElementBlock)(`div`,null,[typeof t.header.cellRenderer==`function`?((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(r()),{key:0})):((0,n.openBlock)(),(0,n.createElementBlock)(`span`,{key:1,innerHTML:r()},null,8,JG))]))}}),XG=((e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n})((0,n.defineComponent)({__name:`EasyConfirmationModal`,props:{description:{},acceptText:{},cancelText:{}},emits:[`onConfirm`],setup(e,{expose:t,emit:r}){let i=r,a=(0,n.ref)(!1),o=(0,n.ref)(``),s=e=>{o.value=e,a.value=!0},c=()=>{a.value=!1,i(`onConfirm`,o.value)};return t({open:s}),(t,r)=>{let i=(0,n.resolveComponent)(`v-col`),o=(0,n.resolveComponent)(`v-row`),s=(0,n.resolveComponent)(`v-card-title`),l=(0,n.resolveComponent)(`v-btn`),u=(0,n.resolveComponent)(`v-card-actions`),d=(0,n.resolveComponent)(`v-card`),f=(0,n.resolveComponent)(`v-dialog`);return(0,n.openBlock)(),(0,n.createBlock)(f,{modelValue:a.value,"onUpdate:modelValue":r[1]||=e=>a.value=e,width:`700`,persistent:``},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(d,null,{default:(0,n.withCtx)(()=>[(0,n.createVNode)(s,{class:`text-center mt-10`},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(o,{class:`textWarning`},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(i,{cols:`4`,class:`d-flex justify-end`},{default:(0,n.withCtx)(()=>[...r[2]||=[(0,n.createElementVNode)(`i`,{class:`icon icon-octagon-alert warning-modal`},null,-1)]]),_:1}),(0,n.createVNode)(i,{cols:`8`,class:`d-flex justify-start align-center text-wrap`},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.description),1)]),_:1})]),_:1})]),_:1}),(0,n.createVNode)(u,{class:`ma-4`},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(o,null,{default:(0,n.withCtx)(()=>[(0,n.createVNode)(i,{class:`d-flex justify-start`},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(l,{color:`error`,variant:`flat`,onClick:r[0]||=e=>a.value=!1},{default:(0,n.withCtx)(()=>[r[3]||=(0,n.createElementVNode)(`i`,{class:`icon icon-x`},null,-1),(0,n.createTextVNode)(` `+(0,n.toDisplayString)(e.cancelText),1)]),_:1})]),_:1}),(0,n.createVNode)(i,{class:`d-flex justify-end`},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(l,{color:`primary`,variant:`flat`,onClick:c},{default:(0,n.withCtx)(()=>[r[4]||=(0,n.createElementVNode)(`i`,{class:`icon icon-check`},null,-1),(0,n.createTextVNode)(` `+(0,n.toDisplayString)(e.acceptText),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,[`modelValue`])}}}),[[`__scopeId`,`data-v-fd60ce93`]]),ZG={key:0,style:{display:`flex`,"justify-content":`center`}},QG=(0,n.defineComponent)({__name:`EasyTable`,props:{id:{},headers:{},showSelect:{type:Boolean,default:!1},multipleHardFilters:{type:Boolean,default:!1},multipleDeletion:{type:Boolean,default:!1},api:{},title:{default:``},hardFilters:{default:()=>[]},advancedFilters:{default:()=>[]},calcHeight:{default:``},showExportData:{type:Boolean,default:!1}},emits:[`onLoaded`,`successDelete`,`errorDelete`,`fetchError`],setup(e,{expose:t,emit:r}){let i=e,a=r,o=Di(),s=(0,n.ref)([]),c=(0,n.ref)(10),l=(0,n.ref)(1),u=(0,n.ref)([]),d=(0,n.ref)([]),f=(0,n.ref)(null),p=(0,n.ref)([]),m=(0,n.ref)([]),h=(0,n.ref)(0),g=hW(),_=(0,n.ref)(!1),v=(0,n.ref)(null),y=(0,n.ref)(null),b=(0,n.ref)(null),x=(0,n.ref)([{value:10,title:`10`},{value:25,title:`25`},{value:50,title:`50`},{value:100,title:`100`}]);function S(e){return`item.${e.value}`}let C=e=>{i.api?.delete&&(_.value=!0,fetch(`${i.api.delete}/${e}`,{method:`DELETE`}).then(async e=>{if(!e.ok)throw{statusCode:e.status,data:await e.json()};return e.json()}).then(()=>{a(`successDelete`),E()}).catch(async e=>a(`errorDelete`,e)).finally(()=>_.value=!1))},w=()=>{i.api?.multipleDelete&&(_.value=!0,fetch(`${i.api.multipleDelete}`,{method:`DELETE`,body:JSON.stringify({ids:d.value})}).then(async e=>{if(!e.ok)throw{statusCode:e.status,data:await e.json()};return e.json()}).then(()=>{a(`successDelete`),d.value=[],E()}).catch(async e=>a(`errorDelete`,e)).finally(()=>_.value=!1))},T=()=>{y.value?.open(0)},E=async()=>{_.value=!0;let e=new URLSearchParams({sort:JSON.stringify(f.value??{}),filters:JSON.stringify(p.value),hard_filters:JSON.stringify(m.value),page:l.value.toString(),limit:c.value.toString()});fetch(`${i.api.get}?${e}`,{method:`GET`}).then(async e=>{if(!e.ok)throw{statusCode:e.status,data:await e.json()};return e.json()}).then(e=>{u.value=e.data,h.value=e.page.total,b.value?.updateExportDataTotal(h.value),a(`onLoaded`,u.value)}).catch(async e=>a(`fetchError`,e)).finally(()=>_.value=!1)},D=e=>{e.length!==0&&(f.value={column:e[0].key,sort:e[0].order},b.value?.updateExportSortData(f.value),l.value=1,E())},O=e=>{m.value=e,l.value=1,E()},k=e=>{p.value=e,l.value=1,E()},A=e=>{s.value=e,E()};return(0,n.onMounted)(()=>{setTimeout(()=>{b.value?.updateExportData(i.api.get,i.headers,h.value,f.value,p.value,m.value)},500)}),(0,n.onBeforeMount)(()=>{let e=g.loadHeaders(i.headers,i.id);e.length===0?s.value=i.headers.filter(e=>!e?.hidden):s.value=e.filter(e=>!e?.hidden)}),t({getData:E,loading:_}),(t,r)=>{let a=(0,n.resolveComponent)(`VDataTableServer`),f=(0,n.resolveComponent)(`v-container`);return(0,n.openBlock)(),(0,n.createBlock)(f,{class:`maintable`},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(NW,{id:e.id,ref_key:`headerRef`,ref:b,title:i.title,headers:i.headers,"advanced-filters":i.advancedFilters,"hard-filters":i.hardFilters,create:e.api?.create,"show-export-data":e.showExportData,"multiple-hard-filters":e.multipleHardFilters,"multiple-deletion":e.multipleDeletion,selected:d.value,onMultipleDelete:T,onHeaders:A,onSearch:k,onHardFilters:O,onLoading:r[0]||=e=>_.value=e},{moreActions:(0,n.withCtx)(()=>[(0,n.renderSlot)(t.$slots,`moreActions`)]),_:3},8,[`id`,`title`,`headers`,`advanced-filters`,`hard-filters`,`create`,`show-export-data`,`multiple-hard-filters`,`multiple-deletion`,`selected`]),(0,n.createVNode)(a,{modelValue:d.value,"onUpdate:modelValue":r[1]||=e=>d.value=e,page:l.value,"onUpdate:page":[r[2]||=e=>l.value=e,E],"items-per-page":c.value,"onUpdate:itemsPerPage":[r[3]||=e=>c.value=e,E],headers:s.value,items:u.value,"show-select":e.showSelect,loading:_.value,"items-length":h.value,"items-per-page-options":x.value,class:(0,n.normalizeClass)(t.$attrs.class),style:(0,n.normalizeStyle)({width:typeof t.$attrs.width==`string`?t.$attrs.width:`auto`}),height:e.calcHeight,"fixed-header":``,"onUpdate:sortBy":D,"onUpdate:sortDesc":D},(0,n.createSlots)({"header.actions":(0,n.withCtx)(()=>[(0,n.createElementVNode)(`i`,(0,n.mergeProps)({class:`icon icon-settings`},i,{style:{"font-size":`20px`}}),null,16)]),_:2},[(0,n.renderList)(s.value,e=>({name:S(e),fn:(0,n.withCtx)(t=>[e.type===`actions`?((0,n.openBlock)(),(0,n.createElementBlock)(`span`,ZG,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.actions,(e,r)=>((0,n.openBlock)(),(0,n.createElementBlock)(`span`,{key:r},[e.type===`menu`?((0,n.openBlock)(),(0,n.createBlock)(PW,{key:0,action:e,item:t.item,onOnDelete:e=>v.value?.open(t.item?.id)},null,8,[`action`,`item`,`onOnDelete`])):((0,n.openBlock)(),(0,n.createBlock)(FW,{key:1,action:e,item:t.item,onOnDelete:e=>v.value?.open(t.item?.id)},null,8,[`action`,`item`,`onOnDelete`]))]))),128))])):((0,n.openBlock)(),(0,n.createBlock)(YG,{key:1,header:e,item:t.item},null,8,[`header`,`item`]))])}))]),1032,[`modelValue`,`page`,`items-per-page`,`headers`,`items`,`show-select`,`loading`,`items-length`,`items-per-page-options`,`class`,`style`,`height`]),(0,n.createVNode)(XG,{ref_key:`confirm_deletion`,ref:v,description:(0,n.unref)(o).t(`table.deletion_description`),"accept-text":(0,n.unref)(o).t(`table.yes`),"cancel-text":(0,n.unref)(o).t(`table.no`),onOnConfirm:C},null,8,[`description`,`accept-text`,`cancel-text`]),(0,n.createVNode)(XG,{ref_key:`multiple_confirm_deletion`,ref:y,description:(0,n.unref)(o).t(`table.multiple_deletion_description`),"accept-text":(0,n.unref)(o).t(`table.yes`),"cancel-text":(0,n.unref)(o).t(`table.no`),onOnConfirm:w},null,8,[`description`,`accept-text`,`cancel-text`])]),_:3})}}});e.EasyComponents={install(e,n){if(!t.createVuetify)throw Error(`[EasyComponents] Vuetify is required. Please install it:
|
|
4089
4089
|
npm install vuetify`);if(n.i18n){let e=n.i18n.global??n.i18n;e.mergeLocaleMessage(`en`,Vi),e.mergeLocaleMessage(`el`,Wi)}else{let t=Ei({legacy:!1,locale:n.locale??`en`,messages:{en:Vi,el:Wi}});e.use(t)}(0,r.getActivePinia)()||e.use((0,r.createPinia)()),e.component(`EasyForm`,pW),e.component(`EasyTable`,QG),e.component(`EasyConfirmationModal`,XG),e.component(`EasyMap`,cW),e.runWithContext(()=>{let e=Gi();e.timeZone=n.timeZone,e.location=n.location??null,e.mapId=n.mapId??null}),mW().run()}},e.EasyConfirmationModal=XG,e.EasyForm=pW,e.EasyMap=cW,e.EasyTable=QG});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easycomponentstools",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.1
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Easy Vue Components",
|
|
7
7
|
"keywords": [
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"@types/sanitize-html": "^2.16.1",
|
|
43
43
|
"@types/supercluster": "^7.1.3",
|
|
44
44
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
45
|
+
"@vue/language-core": "^3.1.8",
|
|
45
46
|
"eslint": "^10.4.1",
|
|
46
47
|
"eslint-config-prettier": "^10.1.8",
|
|
47
48
|
"eslint-plugin-vue": "^10.9.1",
|
|
@@ -71,7 +72,6 @@
|
|
|
71
72
|
"@turf/turf": "^7.3.5",
|
|
72
73
|
"@types/google.maps": "^3.65.0",
|
|
73
74
|
"json-as-xlsx": "^2.5.6",
|
|
74
|
-
"lucide-static": "^0.577.0",
|
|
75
75
|
"moment-timezone": "^0.6.2",
|
|
76
76
|
"pdfmake": "^0.3.6",
|
|
77
77
|
"print-js": "^1.6.0",
|