@appsurify-testmap/rrweb-replay 2.1.2-alpha.1 → 2.1.2-alpha.2

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.
@@ -11,7 +11,7 @@
11
11
  }(this, () => {
12
12
  var exports = {};
13
13
  var module = { exports };
14
- "use strict";var Jn=Object.defineProperty,Kn=Object.defineProperties;var Qn=Object.getOwnPropertyDescriptors;var _e=Object.getOwnPropertySymbols;var si=Object.prototype.hasOwnProperty,ii=Object.prototype.propertyIsEnumerable;var ti=(i,e,t)=>e in i?Jn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,N=(i,e)=>{for(var t in e||(e={}))si.call(e,t)&&ti(i,t,e[t]);if(_e)for(var t of _e(e))ii.call(e,t)&&ti(i,t,e[t]);return i},B=(i,e)=>Kn(i,Qn(e));var me=(i,e)=>{var t={};for(var s in i)si.call(i,s)&&e.indexOf(s)<0&&(t[s]=i[s]);if(i!=null&&_e)for(var s of _e(i))e.indexOf(s)<0&&ii.call(i,s)&&(t[s]=i[s]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var qn=Object.defineProperty,eo=(i,e,t)=>e in i?qn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,b=(i,e,t)=>eo(i,typeof e!="symbol"?e+"":e,t),ri,to=Object.defineProperty,so=(i,e,t)=>e in i?to(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ni=(i,e,t)=>so(i,typeof e!="symbol"?e+"":e,t),_=(i=>(i[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment",i))(_||{});function io(i){return i.nodeType===i.ELEMENT_NODE}class or{constructor(){ni(this,"idNodeMap",new Map),ni(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const s=(t=this.getMeta(e))==null?void 0:t.id;return s!=null?s:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t)}replace(e,t){const s=this.getNode(e);if(s){const r=this.nodeMetaMap.get(s);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function ar(){return new or}function ro(i){return i.toLowerCase()}function no(i,e){return!i||!e||i.type!==e.type?!1:i.type===_.Document?i.compatMode===e.compatMode:i.type===_.DocumentType?i.name===e.name&&i.publicId===e.publicId&&i.systemId===e.systemId:i.type===_.Comment||i.type===_.Text||i.type===_.CDATA?i.textContent===e.textContent:i.type===_.Element?i.tagName===e.tagName&&JSON.stringify(i.attributes)===JSON.stringify(e.attributes)&&i.isSVG===e.isSVG&&i.needBlock===e.needBlock:!1}function oo(i,e){var o;let t;try{t=new URL(i,e!=null?e:window.location.href)}catch(n){return null}const s=/\.([0-9a-z]+)(?:$)/i,r=t.pathname.match(s);return(o=r==null?void 0:r[1])!=null?o:null}const ao=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],lo=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],lr=new WeakSet,uo=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(i,e,t){if(uo.call(this,i,e,t),this instanceof Element){const s=i.toLowerCase();ao.includes(s)&&lr.add(this)}};const co=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(i,e,t){co.call(this,i,e,t)};function oi(){document.querySelectorAll("*").forEach(e=>{lo.forEach(t=>{e.hasAttribute(t)&&lr.add(e)})})}document.readyState==="complete"||document.readyState==="interactive"?oi():document.addEventListener("DOMContentLoaded",oi);const ho=/(max|min)-device-(width|height)/,ai=new RegExp(ho.source,"g"),fo={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(i){i.params.match(ai)&&(i.params=i.params.replace(ai,"$1-$2"))}}}},po={postcssPlugin:"postcss-hover-classes",prepare:function(){const i=[];return{Rule:function(e){i.indexOf(e)===-1&&(i.push(e),e.selectors.forEach(function(t){t.includes(":hover")&&(e.selector+=`,
14
+ "use strict";var Jn=Object.defineProperty,Kn=Object.defineProperties;var Qn=Object.getOwnPropertyDescriptors;var _e=Object.getOwnPropertySymbols;var si=Object.prototype.hasOwnProperty,ii=Object.prototype.propertyIsEnumerable;var ti=(i,e,t)=>e in i?Jn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,N=(i,e)=>{for(var t in e||(e={}))si.call(e,t)&&ti(i,t,e[t]);if(_e)for(var t of _e(e))ii.call(e,t)&&ti(i,t,e[t]);return i},B=(i,e)=>Kn(i,Qn(e));var me=(i,e)=>{var t={};for(var s in i)si.call(i,s)&&e.indexOf(s)<0&&(t[s]=i[s]);if(i!=null&&_e)for(var s of _e(i))e.indexOf(s)<0&&ii.call(i,s)&&(t[s]=i[s]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var qn=Object.defineProperty,eo=(i,e,t)=>e in i?qn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,b=(i,e,t)=>eo(i,typeof e!="symbol"?e+"":e,t),ri,to=Object.defineProperty,so=(i,e,t)=>e in i?to(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ni=(i,e,t)=>so(i,typeof e!="symbol"?e+"":e,t),_=(i=>(i[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment",i))(_||{});function io(i){return i.nodeType===i.ELEMENT_NODE}class or{constructor(){ni(this,"idNodeMap",new Map),ni(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const s=(t=this.getMeta(e))==null?void 0:t.id;return s!=null?s:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t)}replace(e,t){const s=this.getNode(e);if(s){const r=this.nodeMetaMap.get(s);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function ar(){return new or}function ro(i){return i.toLowerCase()}function no(i,e){return!i||!e||i.type!==e.type?!1:i.type===_.Document?i.compatMode===e.compatMode:i.type===_.DocumentType?i.name===e.name&&i.publicId===e.publicId&&i.systemId===e.systemId:i.type===_.Comment||i.type===_.Text||i.type===_.CDATA?i.textContent===e.textContent:i.type===_.Element?i.tagName===e.tagName&&JSON.stringify(i.attributes)===JSON.stringify(e.attributes)&&i.isSVG===e.isSVG&&i.needBlock===e.needBlock:!1}function oo(i,e){var o;let t;try{t=new URL(i,e!=null?e:window.location.href)}catch(n){return null}const s=/\.([0-9a-z]+)(?:$)/i,r=t.pathname.match(s);return(o=r==null?void 0:r[1])!=null?o:null}const ao=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],lo=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],lr=new WeakSet,uo=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(i,e,t){if(uo.call(this,i,e,t),this instanceof Element){const s=i.toLowerCase();ao.includes(s)&&lr.add(this)}};const co=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(i,e,t){co.call(this,i,e,t)};function oi(){document.querySelectorAll("*").forEach(e=>{lo.forEach(t=>{e.hasAttribute(t)&&lr.add(e)})})}try{document.readyState==="complete"||document.readyState==="interactive"?oi():document.addEventListener("DOMContentLoaded",oi)}catch(i){}const ho=/(max|min)-device-(width|height)/,ai=new RegExp(ho.source,"g"),fo={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(i){i.params.match(ai)&&(i.params=i.params.replace(ai,"$1-$2"))}}}},po={postcssPlugin:"postcss-hover-classes",prepare:function(){const i=[];return{Rule:function(e){i.indexOf(e)===-1&&(i.push(e),e.selectors.forEach(function(t){t.includes(":hover")&&(e.selector+=`,
15
15
  `+t.replace(/:hover/g,".\\:hover"))}))}}}};function mo(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function go(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(s){var r=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:function(){return i[s]}})}),t}var Rs={exports:{}},M=String,ur=function(){return{isColorSupported:!1,reset:M,bold:M,dim:M,italic:M,underline:M,inverse:M,hidden:M,strikethrough:M,black:M,red:M,green:M,yellow:M,blue:M,magenta:M,cyan:M,white:M,gray:M,bgBlack:M,bgRed:M,bgGreen:M,bgYellow:M,bgBlue:M,bgMagenta:M,bgCyan:M,bgWhite:M}};Rs.exports=ur();Rs.exports.createColors=ur;var yo=Rs.exports;const wo={},vo=Object.freeze(Object.defineProperty({__proto__:null,default:wo},Symbol.toStringTag,{value:"Module"})),W=go(vo);let li=yo,ui=W,Ht=class cr extends Error{constructor(e,t,s,r,o,n){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),r&&(this.source=r),n&&(this.plugin=n),typeof t!="undefined"&&typeof s!="undefined"&&(typeof t=="number"?(this.line=t,this.column=s):(this.line=t.line,this.column=t.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,cr)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=li.isColorSupported),ui&&e&&(t=ui(t));let s=t.split(/\r?\n/),r=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),n=String(o).length,a,l;if(e){let{bold:u,gray:c,red:h}=li.createColors(!0);a=f=>u(h(f)),l=f=>c(f)}else a=l=u=>u;return s.slice(r,o).map((u,c)=>{let h=r+1+c,f=" "+(" "+h).slice(-n)+" | ";if(h===this.line){let m=l(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(f)+u+`
16
16
  `+m+a("^")}return" "+l(f)+u}).join(`
17
17
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
@@ -38,7 +38,7 @@ var module = { exports };
38
38
  `.charCodeAt(0),ge=" ".charCodeAt(0),Ue="\f".charCodeAt(0),Ve=" ".charCodeAt(0),We="\r".charCodeAt(0),Ho="[".charCodeAt(0),Xo="]".charCodeAt(0),Jo="(".charCodeAt(0),Ko=")".charCodeAt(0),Qo="{".charCodeAt(0),qo="}".charCodeAt(0),ea=";".charCodeAt(0),ta="*".charCodeAt(0),sa=":".charCodeAt(0),ia="@".charCodeAt(0),ze=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ge=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ra=/.[\r\n"'(/\\]/,vi=/[\da-f]/i;var na=function(e,t={}){let s=e.css.valueOf(),r=t.ignoreErrors,o,n,a,l,u,c,h,f,m,g,S=s.length,p=0,d=[],w=[];function v(){return p}function C(L){throw e.error("Unclosed "+L,p)}function $(){return w.length===0&&p>=S}function U(L){if(w.length)return w.pop();if(p>=S)return;let X=L?L.ignoreUnclosed:!1;switch(o=s.charCodeAt(p),o){case Be:case ge:case Ve:case We:case Ue:{n=p;do n+=1,o=s.charCodeAt(n);while(o===ge||o===Be||o===Ve||o===We||o===Ue);g=["space",s.slice(p,n)],p=n-1;break}case Ho:case Xo:case Qo:case qo:case sa:case ea:case Ko:{let te=String.fromCharCode(o);g=[te,te,p];break}case Jo:{if(f=d.length?d.pop()[1]:"",m=s.charCodeAt(p+1),f==="url"&&m!==Ft&&m!==yi&&m!==ge&&m!==Be&&m!==Ve&&m!==Ue&&m!==We){n=p;do{if(c=!1,n=s.indexOf(")",n+1),n===-1)if(r||X){n=p;break}else C("bracket");for(h=n;s.charCodeAt(h-1)===Fe;)h-=1,c=!c}while(c);g=["brackets",s.slice(p,n+1),p,n],p=n}else n=s.indexOf(")",p+1),l=s.slice(p,n+1),n===-1||ra.test(l)?g=["(","(",p]:(g=["brackets",l,p,n],p=n);break}case Ft:case yi:{a=o===Ft?"'":'"',n=p;do{if(c=!1,n=s.indexOf(a,n+1),n===-1)if(r||X){n=p+1;break}else C("string");for(h=n;s.charCodeAt(h-1)===Fe;)h-=1,c=!c}while(c);g=["string",s.slice(p,n+1),p,n],p=n;break}case ia:{ze.lastIndex=p+1,ze.test(s),ze.lastIndex===0?n=s.length-1:n=ze.lastIndex-2,g=["at-word",s.slice(p,n+1),p,n],p=n;break}case Fe:{for(n=p,u=!0;s.charCodeAt(n+1)===Fe;)n+=1,u=!u;if(o=s.charCodeAt(n+1),u&&o!==wi&&o!==ge&&o!==Be&&o!==Ve&&o!==We&&o!==Ue&&(n+=1,vi.test(s.charAt(n)))){for(;vi.test(s.charAt(n+1));)n+=1;s.charCodeAt(n+1)===ge&&(n+=1)}g=["word",s.slice(p,n+1),p,n],p=n;break}default:{o===wi&&s.charCodeAt(p+1)===ta?(n=s.indexOf("*/",p+2)+1,n===0&&(r||X?n=s.length:C("comment")),g=["comment",s.slice(p,n+1),p,n],p=n):(Ge.lastIndex=p+1,Ge.test(s),Ge.lastIndex===0?n=s.length-1:n=Ge.lastIndex-2,g=["word",s.slice(p,n+1),p,n],d.push(g),p=n);break}}return p++,g}function Y(L){w.push(L)}return{back:Y,endOfFile:$,nextToken:U,position:v}};let Or=se,ut=class extends Or{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)}};var $s=ut;ut.default=ut;Or.registerAtRule(ut);let Dr=se,Tr,$r,le=class extends Dr{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,s){let r=super.normalize(e);if(t){if(s==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of r)o.raws.before=t.raws.before}return r}removeChild(e,t){let s=this.index(e);return!t&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(e)}toResult(e={}){return new Tr(new $r,this,e).stringify()}};le.registerLazyResult=i=>{Tr=i};le.registerProcessor=i=>{$r=i};var Te=le;le.default=le;Dr.registerRoot(le);let xe={comma(i){return xe.split(i,[","],!0)},space(i){let e=[" ",`
39
39
  `," "];return xe.split(i,e)},split(i,e,t){let s=[],r="",o=!1,n=0,a=!1,l="",u=!1;for(let c of i)u?u=!1:c==="\\"?u=!0:a?c===l&&(a=!1):c==='"'||c==="'"?(a=!0,l=c):c==="("?n+=1:c===")"?n>0&&(n-=1):n===0&&e.includes(c)&&(o=!0),o?(r!==""&&s.push(r.trim()),r="",o=!1):r+=c;return(t||r!=="")&&s.push(r.trim()),s}};var Pr=xe;xe.default=xe;let _r=se,oa=Pr,ct=class extends _r{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return oa.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,s=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}};var Ps=ct;ct.default=ct;_r.registerRule(ct);let aa=St,la=na,ua=xt,ca=$s,ha=Te,bi=Ps;const Ci={empty:!0,space:!0};function fa(i){for(let e=i.length-1;e>=0;e--){let t=i[e],s=t[3]||t[2];if(s)return s}}let pa=class{constructor(e){this.input=e,this.root=new ha,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 ca;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let s,r,o,n=!1,a=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),s=e[0],s==="("||s==="["?u.push(s==="("?")":"]"):s==="{"&&u.length>0?u.push("}"):s===u[u.length-1]&&u.pop(),u.length===0)if(s===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){a=!0;break}else if(s==="}"){if(l.length>0){for(o=l.length-1,r=l[o];r&&r[0]==="space";)r=l[--o];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),n&&(e=l[l.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=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let s=0,r;for(let o=t-1;o>=0&&(r=e[o],!(r[0]!=="space"&&(s+=1,s===2)));o--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(e){let t=0,s,r,o;for(let[n,a]of e.entries()){if(s=a,r=s[0],r==="("&&(t+=1),r===")"&&(t-=1),t===0&&r===":")if(!o)this.doubleColon(s);else{if(o[0]==="word"&&o[1]==="progid")continue;return n}o=s}return!1}comment(e){let t=new ua;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let s=e[1].slice(2,-2);if(/^\s*$/.test(s))t.text="",t.raws.left=s,t.raws.right="";else{let r=s.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}createTokenizer(){this.tokenizer=la(this.input)}decl(e,t){let s=new aa;this.init(s,e[0][2]);let r=e[e.length-1];for(r[0]===";"&&(this.semicolon=!0,e.pop()),s.source.end=this.getPosition(r[3]||r[2]||fa(e)),s.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),s.raws.before+=e.shift()[1];for(s.source.start=this.getPosition(e[0][2]),s.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;s.prop+=e.shift()[1]}s.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){s.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),s.raws.between+=o[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));let n=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)n.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(o=e[u],o[1].toLowerCase()==="!important"){s.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(s.raws.important=c);break}else if(o[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let f=u;f>0;f--){let m=c[f][0];if(h.trim().indexOf("!")===0&&m!=="space")break;h=c.pop()[1]+h}h.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=h,e=c)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(s.raws.between+=n.map(u=>u[1]).join(""),n=[]),this.raw(s,"value",n.concat(e),t),s.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 bi;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="")}}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,s=null,r=!1,o=null,n=[],a=e[1].startsWith("--"),l=[],u=e;for(;u;){if(s=u[0],l.push(u),s==="("||s==="[")o||(o=u),n.push(s==="("?")":"]");else if(a&&r&&s==="{")o||(o=u),n.push("}");else if(n.length===0)if(s===";")if(r){this.decl(l,a);return}else break;else if(s==="{"){this.rule(l);return}else if(s==="}"){this.tokenizer.back(l.pop()),t=!0;break}else s===":"&&(r=!0);else s===n[n.length-1]&&(n.pop(),n.length===0&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(o),t&&r){if(!a)for(;l.length&&(u=l[l.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}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,s,r){let o,n,a=s.length,l="",u=!0,c,h;for(let f=0;f<a;f+=1)o=s[f],n=o[0],n==="space"&&f===a-1&&!r?u=!1:n==="comment"?(h=s[f-1]?s[f-1][0]:"empty",c=s[f+1]?s[f+1][0]:"empty",!Ci[h]&&!Ci[c]?l.slice(-1)===","?u=!1:l+=o[1]:u=!1):l+=o[1];if(!u){let f=s.reduce((m,g)=>m+g[1],"");e.raws[t]={raw:f,value:l}}e[t]=l}rule(e){e.pop();let t=new bi;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)s=e.pop()[1]+s;return s}spacesAndCommentsFromStart(e){let t,s="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)s+=e.shift()[1];return s}spacesFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],t==="space");)s=e.pop()[1]+s;return s}stringFrom(e,t){let s="";for(let r=t;r<e.length;r++)s+=e[r][1];return e.splice(t,e.length-t),s}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",{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})}};var da=pa;let ma=se,ga=da,ya=Et;function ht(i,e){let t=new ya(i,e),s=new ga(t);try{s.parse()}catch(r){throw r}return s.root}var _s=ht;ht.default=ht;ma.registerParse(ht);let{isClean:j,my:wa}=De,va=yr,ba=bt,Ca=se,Sa=Ds;let Si=Ts,Ea=_s,xa=Te;const Aa={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Na={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},Ra={Once:!0,postcssPlugin:!0,prepare:!0},ue=0;function ye(i){return typeof i=="object"&&typeof i.then=="function"}function kr(i){let e=!1,t=Aa[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,ue,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,ue,t+"Exit"]:[t,t+"Exit"]}function Ei(i){let e;return i.type==="document"?e=["Document",ue,"DocumentExit"]:i.type==="root"?e=["Root",ue,"RootExit"]:e=kr(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function os(i){return i[j]=!1,i.nodes&&i.nodes.forEach(e=>os(e)),i}let as={},ce=class Lr{constructor(e,t,s){this.stringified=!1,this.processed=!1;let r;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))r=os(t);else if(t instanceof Lr||t instanceof Si)r=os(t.root),t.map&&(typeof s.map=="undefined"&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=t.map);else{let o=Ea;s.syntax&&(o=s.syntax.parse),s.parser&&(o=s.parser),o.parse&&(o=o.parse);try{r=o(t,s)}catch(n){this.processed=!0,this.error=n}r&&!r[wa]&&Ca.rebuild(r)}this.result=new Si(e,r,s),this.helpers=B(N({},as),{postcss:as,result:this.result}),this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?N(N({},o),o.prepare(this.result)):o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let s=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=s.postcssPlugin,e.setMessage()):s.postcssVersion}catch(r){console&&console.error&&console.error(r)}return e}prepareVisitors(){this.listeners={};let e=(t,s,r)=>{this.listeners[s]||(this.listeners[s]=[]),this.listeners[s].push([t,r])};for(let t of this.plugins)if(typeof t=="object")for(let s in t){if(!Na[s]&&/^[A-Z]/.test(s))throw new Error(`Unknown event ${s} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Ra[s])if(typeof t[s]=="object")for(let r in t[s])r==="*"?e(t,s,t[s][r]):e(t,s+"-"+r.toLowerCase(),t[s][r]);else typeof t[s]=="function"&&e(t,s,t[s])}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],s=this.runOnRoot(t);if(ye(s))try{await s}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[j];){e[j]=!0;let t=[Ei(e)];for(;t.length>0;){let s=this.visitTick(t);if(ye(s))try{await s}catch(r){let o=t[t.length-1].node;throw this.handleError(r,o)}}}if(this.listeners.OnceExit)for(let[t,s]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let r=e.nodes.map(o=>s(o,this.helpers));await Promise.all(r)}else await s(e,this.helpers)}catch(r){throw this.handleError(r)}}}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(s=>e.Once(s,this.helpers));return ye(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(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=ba;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new va(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){let t=this.runOnRoot(e);if(ye(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[j];)e[j]=!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 this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[s,r]of e){this.result.lastPlugin=s;let o;try{o=r(t,this.helpers)}catch(n){throw this.handleError(n,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(ye(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:s,visitors:r}=t;if(s.type!=="root"&&s.type!=="document"&&!s.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[n,a]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=n;try{return a(s.toProxy(),this.helpers)}catch(l){throw this.handleError(l,s)}}if(t.iterator!==0){let n=t.iterator,a;for(;a=s.nodes[s.indexes[n]];)if(s.indexes[n]+=1,!a[j]){a[j]=!0,e.push(Ei(a));return}t.iterator=0,delete s.indexes[n]}let o=t.events;for(;t.eventIndex<o.length;){let n=o[t.eventIndex];if(t.eventIndex+=1,n===ue){s.nodes&&s.nodes.length&&(s[j]=!0,t.iterator=s.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[j]=!0;let t=kr(e);for(let s of t)if(s===ue)e.nodes&&e.each(r=>{r[j]||this.walkSync(r)});else{let r=this.listeners[s];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}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"}};ce.registerPostcss=i=>{as=i};var Fr=ce;ce.default=ce;xa.registerLazyResult(ce);Sa.registerLazyResult(ce);let Ia=yr,Ma=bt;let Oa=_s;const Da=Ts;let ls=class{constructor(e,t,s){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=s,this._map=void 0;let r,o=Ma;this.result=new Da(this._processor,r,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let a=new Ia(o,r,this._opts,t);if(a.isMap()){let[l,u]=a.generate();l&&(this.result.css=l),u&&(this.result.map=u)}else a.clearAnnotation(),this.result.css=a.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 this.async().then(e,t)}toString(){return this._css}warnings(){return[]}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=Oa;try{e=t(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Ta=ls;ls.default=ls;let $a=Ta,Pa=Fr,_a=Ds,ka=Te,Ae=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let s of e)if(s.postcss===!0?s=s():s.postcss&&(s=s.postcss),typeof s=="object"&&Array.isArray(s.plugins))t=t.concat(s.plugins);else if(typeof s=="object"&&s.postcssPlugin)t.push(s);else if(typeof s=="function")t.push(s);else if(!(typeof s=="object"&&(s.parse||s.stringify)))throw new Error(s+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new $a(this,e,t):new Pa(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var La=Ae;Ae.default=Ae;ka.registerProcessor(Ae);_a.registerProcessor(Ae);let Fa=St,Ba=fr,Ua=xt,Va=$s,Wa=Et,za=Te,Ga=Ps;function Ne(i,e){if(Array.isArray(i))return i.map(n=>Ne(n));let r=i,{inputs:t}=r,s=me(r,["inputs"]);if(t){e=[];for(let n of t){let a=B(N({},n),{__proto__:Wa.prototype});a.map&&(a.map=B(N({},a.map),{__proto__:Ba.prototype})),e.push(a)}}if(s.nodes&&(s.nodes=i.nodes.map(n=>Ne(n,e))),s.source){let o=s.source,{inputId:n}=o,a=me(o,["inputId"]);s.source=a,n!=null&&(s.source.input=e[n])}if(s.type==="root")return new za(s);if(s.type==="decl")return new Fa(s);if(s.type==="rule")return new Ga(s);if(s.type==="comment")return new Ua(s);if(s.type==="atrule")return new Va(s);throw new Error("Unknown node type: "+i.type)}var Ya=Ne;Ne.default=Ne;let ja=Is,Br=St,Za=Fr,Ha=se,ks=La,Xa=bt,Ja=Ya,Ur=Ds,Ka=Mr,Vr=xt,Wr=$s,Qa=Ts,qa=Et,el=_s,tl=Pr,zr=Ps,Gr=Te,sl=Ct;function R(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new ks(i)}R.plugin=function(e,t){let s=!1;function r(...n){console&&console.warn&&!s&&(s=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
40
40
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
41
- https://www.w3ctech.com/topic/2226`));let a=t(...n);return a.postcssPlugin=e,a.postcssVersion=new ks().version,a}let o;return Object.defineProperty(r,"postcss",{get(){return o||(o=r()),o}}),r.process=function(n,a,l){return R([r(l)]).process(n,a)},r};R.stringify=Xa;R.parse=el;R.fromJSON=Ja;R.list=tl;R.comment=i=>new Vr(i);R.atRule=i=>new Wr(i);R.decl=i=>new Br(i);R.rule=i=>new zr(i);R.root=i=>new Gr(i);R.document=i=>new Ur(i);R.CssSyntaxError=ja;R.Declaration=Br;R.Container=Ha;R.Processor=ks;R.Document=Ur;R.Comment=Vr;R.Warning=Ka;R.AtRule=Wr;R.Result=Qa;R.Input=qa;R.Rule=zr;R.Root=Gr;R.Node=sl;Za.registerPostcss(R);var il=R;R.default=R;const D=mo(il);D.stringify;D.fromJSON;D.plugin;D.parse;D.list;D.document;D.comment;D.atRule;D.rule;D.decl;D.root;D.CssSyntaxError;D.Declaration;D.Container;D.Processor;D.Document;D.Comment;D.Warning;D.AtRule;D.Result;D.Input;D.Rule;D.Root;D.Node;const xi={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function rl(i){let e=xi[i.tagName]?xi[i.tagName]:i.tagName;return e==="link"&&i.attributes._cssText&&(e="style"),e}function At(i,e){const t=e==null?void 0:e.stylesWithHoverClass.get(i);if(t)return t;let s=i;try{s=D([fo,po]).process(i).css}catch(r){console.warn("Failed to adapt css for replay",r)}return e==null||e.stylesWithHoverClass.set(i,s),s}function Ai(){return{stylesWithHoverClass:new Map}}function nl(i,e,t,s){const r=[];for(const l of i.childNodes)l.type===_.Text&&r.push(l);const o=e.split("/* rr_split */");for(;o.length>1&&o.length>r.length;)o.splice(-2,2,o.slice(-2).join(""));let n="";t&&(n=At(o.join(""),s));let a=0;for(let l=0;l<r.length&&l!==o.length;l++){const u=r[l];if(!t)u.textContent=o[l];else if(l<o.length-1){let c=a,h=o[l+1].length;h=Math.min(h,30);let f=!1;for(;h>2;h--){const m=o[l+1].substring(0,h),g=n.substring(a).indexOf(m);if(f=g!==-1,f){c+=g;break}}f||(c+=o[l].length),u.textContent=n.substring(a,c),a=c}else u.textContent=n.substring(a)}}function ol(i,e,t,s){const{doc:r,hackCss:o,cache:n}=s;i.childNodes.length?nl(i,t,o,n):(o&&(t=At(t,n)),e.appendChild(r.createTextNode(t)))}function al(i,e){var t;const{doc:s,hackCss:r,cache:o}=e;switch(i.type){case _.Document:return s.implementation.createDocument(null,"",null);case _.DocumentType:return s.implementation.createDocumentType(i.name||"html",i.publicId,i.systemId);case _.Element:{const n=rl(i);let a;i.isSVG?a=s.createElementNS("http://www.w3.org/2000/svg",n):(i.isCustom&&((t=s.defaultView)!=null&&t.customElements)&&!s.defaultView.customElements.get(i.tagName)&&s.defaultView.customElements.define(i.tagName,class extends s.defaultView.HTMLElement{}),a=s.createElement(n));const l={};for(const u in i.attributes){if(!Object.prototype.hasOwnProperty.call(i.attributes,u))continue;let c=i.attributes[u];if(!(n==="option"&&u==="selected"&&c===!1)&&c!==null){if(c===!0&&(c=""),u.startsWith("rr_")){l[u]=c;continue}if(typeof c=="string"){if(n==="style"&&u==="_cssText"){ol(i,a,c,e);continue}else if(n==="textarea"&&u==="value"){a.appendChild(s.createTextNode(c)),i.childNodes=[];continue}}try{if(i.isSVG&&u==="xlink:href")a.setAttributeNS("http://www.w3.org/1999/xlink",u,c.toString());else if(u==="onload"||u==="onclick"||u.substring(0,7)==="onmouse")a.setAttribute("_"+u,c.toString());else if(n==="meta"&&i.attributes["http-equiv"]==="Content-Security-Policy"&&u==="content"){a.setAttribute("csp-content",c.toString());continue}else n==="link"&&(i.attributes.rel==="preload"&&i.attributes.as==="script"||i.attributes.rel==="modulepreload")||n==="link"&&i.attributes.rel==="prefetch"&&typeof i.attributes.href=="string"&&oo(i.attributes.href)==="js"||(n==="img"&&i.attributes.srcset&&i.attributes.rr_dataURL?a.setAttribute("rrweb-original-srcset",i.attributes.srcset):a.setAttribute(u,c.toString()))}catch(h){}}}for(const u in l){const c=l[u];if(n==="canvas"&&u==="rr_dataURL"){const h=s.createElement("img");h.onload=()=>{const f=a.getContext("2d");f&&f.drawImage(h,0,0,h.width,h.height)},h.src=c.toString(),a.RRNodeType&&(a.rr_dataURL=c.toString())}else if(n==="img"&&u==="rr_dataURL"){const h=a;h.currentSrc.startsWith("data:")||(h.setAttribute("rrweb-original-src",i.attributes.src),h.src=c.toString())}if(u==="rr_width")a.style.setProperty("width",c.toString());else if(u==="rr_height")a.style.setProperty("height",c.toString());else if(u==="rr_mediaCurrentTime"&&typeof c=="number")a.currentTime=c;else if(u==="rr_mediaState")switch(c){case"played":a.play().catch(h=>console.warn("media playback error",h));break;case"paused":a.pause();break}else u==="rr_mediaPlaybackRate"&&typeof c=="number"?a.playbackRate=c:u==="rr_mediaMuted"&&typeof c=="boolean"?a.muted=c:u==="rr_mediaLoop"&&typeof c=="boolean"?a.loop=c:u==="rr_mediaVolume"&&typeof c=="number"?a.volume=c:u==="rr_open_mode"&&a.setAttribute("rr_open_mode",c)}if(i.isShadowHost)if(!a.shadowRoot)a.attachShadow({mode:"open"});else for(;a.shadowRoot.firstChild;)a.shadowRoot.removeChild(a.shadowRoot.firstChild);return a}case _.Text:return i.isStyle&&r?s.createTextNode(At(i.textContent,o)):s.createTextNode(i.textContent);case _.CDATA:return s.createCDATASection(i.textContent);case _.Comment:return s.createComment(i.textContent);default:return null}}function Se(i,e){const{doc:t,mirror:s,skipChild:r=!1,hackCss:o=!0,afterAppend:n,cache:a}=e;if(s.has(i.id)){const u=s.getNode(i.id),c=s.getMeta(u);if(no(c,i))return s.getNode(i.id)}let l=al(i,{doc:t,hackCss:o,cache:a});if(!l)return null;if(i.rootId&&s.getNode(i.rootId)!==t&&s.replace(i.rootId,t),i.type===_.Document&&(t.close(),t.open(),i.compatMode==="BackCompat"&&i.childNodes&&i.childNodes[0].type!==_.DocumentType&&(i.childNodes[0].type===_.Element&&"xmlns"in i.childNodes[0].attributes&&i.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),l=t),s.add(l,i),(i.type===_.Document||i.type===_.Element)&&!r)for(const u of i.childNodes){const c=Se(u,{doc:t,mirror:s,skipChild:!1,hackCss:o,afterAppend:n,cache:a});if(!c){console.warn("Failed to rebuild",u);continue}if(u.isShadow&&io(l)&&l.shadowRoot)l.shadowRoot.appendChild(c);else if(i.type===_.Document&&u.type==_.Element){const h=c;let f=null;h.childNodes.forEach(m=>{m.nodeName==="BODY"&&(f=m)}),f?(h.removeChild(f),l.appendChild(c),h.appendChild(f)):l.appendChild(c)}else l.appendChild(c);n&&n(c,u.id)}return l}function ll(i,e){function t(s){e(s)}for(const s of i.getIds())i.has(s)&&t(i.getNode(s))}function ul(i,e){const t=e.getMeta(i);if((t==null?void 0:t.type)!==_.Element)return;const s=i;for(const r in t.attributes){if(!(Object.prototype.hasOwnProperty.call(t.attributes,r)&&r.startsWith("rr_")))continue;const o=t.attributes[r];r==="rr_scrollLeft"&&(s.scrollLeft=o),r==="rr_scrollTop"&&(s.scrollTop=o)}}function cl(i,e){const{doc:t,onVisit:s,hackCss:r=!0,afterAppend:o,cache:n,mirror:a=new or}=e,l=Se(i,{doc:t,mirror:a,skipChild:!1,hackCss:r,afterAppend:o,cache:n});return ll(a,u=>{s&&s(u),ul(u,a)}),l}var hl=Object.defineProperty,fl=(i,e,t)=>e in i?hl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,y=(i,e,t)=>fl(i,typeof e!="symbol"?e+"":e,t),pl=Object.defineProperty,dl=(i,e,t)=>e in i?pl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ni=(i,e,t)=>dl(i,typeof e!="symbol"?e+"":e,t);let ml=class{constructor(){Ni(this,"idNodeMap",new Map),Ni(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const s=(t=this.getMeta(e))==null?void 0:t.id;return s!=null?s:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t)}replace(e,t){const s=this.getNode(e);if(s){const r=this.nodeMetaMap.get(s);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function gl(){return new ml}const yl=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],wl=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],Yr=new WeakSet,vl=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(i,e,t){if(vl.call(this,i,e,t),this instanceof Element){const s=i.toLowerCase();yl.includes(s)&&Yr.add(this)}};const bl=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(i,e,t){bl.call(this,i,e,t)};function Ri(){document.querySelectorAll("*").forEach(e=>{wl.forEach(t=>{e.hasAttribute(t)&&Yr.add(e)})})}document.readyState==="complete"||document.readyState==="interactive"?Ri():document.addEventListener("DOMContentLoaded",Ri);function Cl(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Sl(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(s){var r=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:function(){return i[s]}})}),t}var Ls={exports:{}},O=String,jr=function(){return{isColorSupported:!1,reset:O,bold:O,dim:O,italic:O,underline:O,inverse:O,hidden:O,strikethrough:O,black:O,red:O,green:O,yellow:O,blue:O,magenta:O,cyan:O,white:O,gray:O,bgBlack:O,bgRed:O,bgGreen:O,bgYellow:O,bgBlue:O,bgMagenta:O,bgCyan:O,bgWhite:O}};Ls.exports=jr();Ls.exports.createColors=jr;var El=Ls.exports;const xl={},Al=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),z=Sl(Al);let Ii=El,Mi=z,us=class Zr extends Error{constructor(e,t,s,r,o,n){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),r&&(this.source=r),n&&(this.plugin=n),typeof t!="undefined"&&typeof s!="undefined"&&(typeof t=="number"?(this.line=t,this.column=s):(this.line=t.line,this.column=t.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Zr)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Ii.isColorSupported),Mi&&e&&(t=Mi(t));let s=t.split(/\r?\n/),r=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),n=String(o).length,a,l;if(e){let{bold:u,gray:c,red:h}=Ii.createColors(!0);a=f=>u(h(f)),l=f=>c(f)}else a=l=u=>u;return s.slice(r,o).map((u,c)=>{let h=r+1+c,f=" "+(" "+h).slice(-n)+" | ";if(h===this.line){let m=l(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(f)+u+`
41
+ https://www.w3ctech.com/topic/2226`));let a=t(...n);return a.postcssPlugin=e,a.postcssVersion=new ks().version,a}let o;return Object.defineProperty(r,"postcss",{get(){return o||(o=r()),o}}),r.process=function(n,a,l){return R([r(l)]).process(n,a)},r};R.stringify=Xa;R.parse=el;R.fromJSON=Ja;R.list=tl;R.comment=i=>new Vr(i);R.atRule=i=>new Wr(i);R.decl=i=>new Br(i);R.rule=i=>new zr(i);R.root=i=>new Gr(i);R.document=i=>new Ur(i);R.CssSyntaxError=ja;R.Declaration=Br;R.Container=Ha;R.Processor=ks;R.Document=Ur;R.Comment=Vr;R.Warning=Ka;R.AtRule=Wr;R.Result=Qa;R.Input=qa;R.Rule=zr;R.Root=Gr;R.Node=sl;Za.registerPostcss(R);var il=R;R.default=R;const D=mo(il);D.stringify;D.fromJSON;D.plugin;D.parse;D.list;D.document;D.comment;D.atRule;D.rule;D.decl;D.root;D.CssSyntaxError;D.Declaration;D.Container;D.Processor;D.Document;D.Comment;D.Warning;D.AtRule;D.Result;D.Input;D.Rule;D.Root;D.Node;const xi={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function rl(i){let e=xi[i.tagName]?xi[i.tagName]:i.tagName;return e==="link"&&i.attributes._cssText&&(e="style"),e}function At(i,e){const t=e==null?void 0:e.stylesWithHoverClass.get(i);if(t)return t;let s=i;try{s=D([fo,po]).process(i).css}catch(r){console.warn("Failed to adapt css for replay",r)}return e==null||e.stylesWithHoverClass.set(i,s),s}function Ai(){return{stylesWithHoverClass:new Map}}function nl(i,e,t,s){const r=[];for(const l of i.childNodes)l.type===_.Text&&r.push(l);const o=e.split("/* rr_split */");for(;o.length>1&&o.length>r.length;)o.splice(-2,2,o.slice(-2).join(""));let n="";t&&(n=At(o.join(""),s));let a=0;for(let l=0;l<r.length&&l!==o.length;l++){const u=r[l];if(!t)u.textContent=o[l];else if(l<o.length-1){let c=a,h=o[l+1].length;h=Math.min(h,30);let f=!1;for(;h>2;h--){const m=o[l+1].substring(0,h),g=n.substring(a).indexOf(m);if(f=g!==-1,f){c+=g;break}}f||(c+=o[l].length),u.textContent=n.substring(a,c),a=c}else u.textContent=n.substring(a)}}function ol(i,e,t,s){const{doc:r,hackCss:o,cache:n}=s;i.childNodes.length?nl(i,t,o,n):(o&&(t=At(t,n)),e.appendChild(r.createTextNode(t)))}function al(i,e){var t;const{doc:s,hackCss:r,cache:o}=e;switch(i.type){case _.Document:return s.implementation.createDocument(null,"",null);case _.DocumentType:return s.implementation.createDocumentType(i.name||"html",i.publicId,i.systemId);case _.Element:{const n=rl(i);let a;i.isSVG?a=s.createElementNS("http://www.w3.org/2000/svg",n):(i.isCustom&&((t=s.defaultView)!=null&&t.customElements)&&!s.defaultView.customElements.get(i.tagName)&&s.defaultView.customElements.define(i.tagName,class extends s.defaultView.HTMLElement{}),a=s.createElement(n));const l={};for(const u in i.attributes){if(!Object.prototype.hasOwnProperty.call(i.attributes,u))continue;let c=i.attributes[u];if(!(n==="option"&&u==="selected"&&c===!1)&&c!==null){if(c===!0&&(c=""),u.startsWith("rr_")){l[u]=c;continue}if(typeof c=="string"){if(n==="style"&&u==="_cssText"){ol(i,a,c,e);continue}else if(n==="textarea"&&u==="value"){a.appendChild(s.createTextNode(c)),i.childNodes=[];continue}}try{if(i.isSVG&&u==="xlink:href")a.setAttributeNS("http://www.w3.org/1999/xlink",u,c.toString());else if(u==="onload"||u==="onclick"||u.substring(0,7)==="onmouse")a.setAttribute("_"+u,c.toString());else if(n==="meta"&&i.attributes["http-equiv"]==="Content-Security-Policy"&&u==="content"){a.setAttribute("csp-content",c.toString());continue}else n==="link"&&(i.attributes.rel==="preload"&&i.attributes.as==="script"||i.attributes.rel==="modulepreload")||n==="link"&&i.attributes.rel==="prefetch"&&typeof i.attributes.href=="string"&&oo(i.attributes.href)==="js"||(n==="img"&&i.attributes.srcset&&i.attributes.rr_dataURL?a.setAttribute("rrweb-original-srcset",i.attributes.srcset):a.setAttribute(u,c.toString()))}catch(h){}}}for(const u in l){const c=l[u];if(n==="canvas"&&u==="rr_dataURL"){const h=s.createElement("img");h.onload=()=>{const f=a.getContext("2d");f&&f.drawImage(h,0,0,h.width,h.height)},h.src=c.toString(),a.RRNodeType&&(a.rr_dataURL=c.toString())}else if(n==="img"&&u==="rr_dataURL"){const h=a;h.currentSrc.startsWith("data:")||(h.setAttribute("rrweb-original-src",i.attributes.src),h.src=c.toString())}if(u==="rr_width")a.style.setProperty("width",c.toString());else if(u==="rr_height")a.style.setProperty("height",c.toString());else if(u==="rr_mediaCurrentTime"&&typeof c=="number")a.currentTime=c;else if(u==="rr_mediaState")switch(c){case"played":a.play().catch(h=>console.warn("media playback error",h));break;case"paused":a.pause();break}else u==="rr_mediaPlaybackRate"&&typeof c=="number"?a.playbackRate=c:u==="rr_mediaMuted"&&typeof c=="boolean"?a.muted=c:u==="rr_mediaLoop"&&typeof c=="boolean"?a.loop=c:u==="rr_mediaVolume"&&typeof c=="number"?a.volume=c:u==="rr_open_mode"&&a.setAttribute("rr_open_mode",c)}if(i.isShadowHost)if(!a.shadowRoot)a.attachShadow({mode:"open"});else for(;a.shadowRoot.firstChild;)a.shadowRoot.removeChild(a.shadowRoot.firstChild);return a}case _.Text:return i.isStyle&&r?s.createTextNode(At(i.textContent,o)):s.createTextNode(i.textContent);case _.CDATA:return s.createCDATASection(i.textContent);case _.Comment:return s.createComment(i.textContent);default:return null}}function Se(i,e){const{doc:t,mirror:s,skipChild:r=!1,hackCss:o=!0,afterAppend:n,cache:a}=e;if(s.has(i.id)){const u=s.getNode(i.id),c=s.getMeta(u);if(no(c,i))return s.getNode(i.id)}let l=al(i,{doc:t,hackCss:o,cache:a});if(!l)return null;if(i.rootId&&s.getNode(i.rootId)!==t&&s.replace(i.rootId,t),i.type===_.Document&&(t.close(),t.open(),i.compatMode==="BackCompat"&&i.childNodes&&i.childNodes[0].type!==_.DocumentType&&(i.childNodes[0].type===_.Element&&"xmlns"in i.childNodes[0].attributes&&i.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),l=t),s.add(l,i),(i.type===_.Document||i.type===_.Element)&&!r)for(const u of i.childNodes){const c=Se(u,{doc:t,mirror:s,skipChild:!1,hackCss:o,afterAppend:n,cache:a});if(!c){console.warn("Failed to rebuild",u);continue}if(u.isShadow&&io(l)&&l.shadowRoot)l.shadowRoot.appendChild(c);else if(i.type===_.Document&&u.type==_.Element){const h=c;let f=null;h.childNodes.forEach(m=>{m.nodeName==="BODY"&&(f=m)}),f?(h.removeChild(f),l.appendChild(c),h.appendChild(f)):l.appendChild(c)}else l.appendChild(c);n&&n(c,u.id)}return l}function ll(i,e){function t(s){e(s)}for(const s of i.getIds())i.has(s)&&t(i.getNode(s))}function ul(i,e){const t=e.getMeta(i);if((t==null?void 0:t.type)!==_.Element)return;const s=i;for(const r in t.attributes){if(!(Object.prototype.hasOwnProperty.call(t.attributes,r)&&r.startsWith("rr_")))continue;const o=t.attributes[r];r==="rr_scrollLeft"&&(s.scrollLeft=o),r==="rr_scrollTop"&&(s.scrollTop=o)}}function cl(i,e){const{doc:t,onVisit:s,hackCss:r=!0,afterAppend:o,cache:n,mirror:a=new or}=e,l=Se(i,{doc:t,mirror:a,skipChild:!1,hackCss:r,afterAppend:o,cache:n});return ll(a,u=>{s&&s(u),ul(u,a)}),l}var hl=Object.defineProperty,fl=(i,e,t)=>e in i?hl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,y=(i,e,t)=>fl(i,typeof e!="symbol"?e+"":e,t),pl=Object.defineProperty,dl=(i,e,t)=>e in i?pl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ni=(i,e,t)=>dl(i,typeof e!="symbol"?e+"":e,t);let ml=class{constructor(){Ni(this,"idNodeMap",new Map),Ni(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const s=(t=this.getMeta(e))==null?void 0:t.id;return s!=null?s:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t)}replace(e,t){const s=this.getNode(e);if(s){const r=this.nodeMetaMap.get(s);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function gl(){return new ml}const yl=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],wl=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],Yr=new WeakSet,vl=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(i,e,t){if(vl.call(this,i,e,t),this instanceof Element){const s=i.toLowerCase();yl.includes(s)&&Yr.add(this)}};const bl=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(i,e,t){bl.call(this,i,e,t)};function Ri(){document.querySelectorAll("*").forEach(e=>{wl.forEach(t=>{e.hasAttribute(t)&&Yr.add(e)})})}try{document.readyState==="complete"||document.readyState==="interactive"?Ri():document.addEventListener("DOMContentLoaded",Ri)}catch(i){}function Cl(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Sl(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(s){var r=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:function(){return i[s]}})}),t}var Ls={exports:{}},O=String,jr=function(){return{isColorSupported:!1,reset:O,bold:O,dim:O,italic:O,underline:O,inverse:O,hidden:O,strikethrough:O,black:O,red:O,green:O,yellow:O,blue:O,magenta:O,cyan:O,white:O,gray:O,bgBlack:O,bgRed:O,bgGreen:O,bgYellow:O,bgBlue:O,bgMagenta:O,bgCyan:O,bgWhite:O}};Ls.exports=jr();Ls.exports.createColors=jr;var El=Ls.exports;const xl={},Al=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),z=Sl(Al);let Ii=El,Mi=z,us=class Zr extends Error{constructor(e,t,s,r,o,n){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),r&&(this.source=r),n&&(this.plugin=n),typeof t!="undefined"&&typeof s!="undefined"&&(typeof t=="number"?(this.line=t,this.column=s):(this.line=t.line,this.column=t.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Zr)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Ii.isColorSupported),Mi&&e&&(t=Mi(t));let s=t.split(/\r?\n/),r=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),n=String(o).length,a,l;if(e){let{bold:u,gray:c,red:h}=Ii.createColors(!0);a=f=>u(h(f)),l=f=>c(f)}else a=l=u=>u;return s.slice(r,o).map((u,c)=>{let h=r+1+c,f=" "+(" "+h).slice(-n)+" | ";if(h===this.line){let m=l(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(f)+u+`
42
42
  `+m+a("^")}return" "+l(f)+u}).join(`
43
43
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
44
44