@posthog/rrweb-player 0.0.28 → 0.0.30
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.
- package/dist/rrweb-player.cjs +16 -16
- package/dist/rrweb-player.cjs.map +1 -1
- package/dist/rrweb-player.js +16 -16
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +16 -16
- package/dist/rrweb-player.umd.cjs.map +2 -2
- package/dist/rrweb-player.umd.min.cjs +1 -1
- package/dist/rrweb-player.umd.min.cjs.map +3 -3
- package/package.json +1 -1
|
@@ -39,7 +39,7 @@ var module = { exports };
|
|
|
39
39
|
`),this.css+=h+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let h=this.toUrl(this.path(f.file)),d=f.root||e(f.file),m;this.mapOpts.sourcesContent===!1?(m=new i(f.text),m.sourcesContent&&(m.sourcesContent=null)):m=f.consumer(),this.map.applySourceMap(m,h,this.toUrl(this.path(d)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let h=this.root.nodes.length-1;h>=0;h--)f=this.root.nodes[h],f.type==="comment"&&f.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(h)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),l&&p&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,h=>{f+=h}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=a.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,h=1,d="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,b;this.stringify(this.root,(y,S,C)=>{if(this.css+=y,S&&C!=="end"&&(m.generated.line=f,m.generated.column=h-1,S.source&&S.source.start?(m.source=this.sourcePath(S),m.original.line=S.source.start.line,m.original.column=S.source.start.column-1,this.map.addMapping(m)):(m.source=d,m.original.line=1,m.original.column=0,this.map.addMapping(m))),b=y.match(/\n/g),b?(f+=b.length,g=y.lastIndexOf(`
|
|
40
40
|
`),h=y.length-g):h+=y.length,S&&C!=="start"){let w=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==w.last||w.raws.semicolon)&&(S.source&&S.source.end?(m.source=this.sourcePath(S),m.original.line=S.source.end.line,m.original.column=S.source.end.column-1,m.generated.line=f,m.generated.column=h-2,this.map.addMapping(m)):(m.source=d,m.original.line=1,m.original.column=0,m.generated.line=f,m.generated.column=h-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f!="undefined"&&f!==!0?!1:this.previous().length?this.previous().some(h=>h.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let h=this.memoizedPaths.get(f);if(h)return h;let d=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=e(r(d,this.mapOpts.annotation)));let m=t(d,f);return this.memoizedPaths.set(f,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let h=f.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let f=new u(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(h=>{if(h.source){let d=h.source.input.from;if(d&&!f[d]){f[d]=!0;let m=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(m,h.source.input.css)}}});else if(this.css){let h=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(h,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let h=this.memoizedFileURLs.get(f);if(h)return h;if(o){let d=o(f).toString();return this.memoizedFileURLs.set(f,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let h=this.memoizedURLs.get(f);if(h)return h;n==="\\"&&(f=f.replace(/\\/g,"/"));let d=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,d),d}}return Zt=s,Zt}var er,is;function Vn(){if(is)return er;is=1;const e=39,t=34,r=92,n=47,i=10,a=32,o=12,u=9,p=13,l=91,s=93,c=40,f=41,h=123,d=125,m=59,g=42,b=58,y=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,C=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,v=/[\da-f]/i;return er=function(R,A={}){let M=R.css.valueOf(),B=A.ignoreErrors,k,J,U,x,q,I,j,H,z,X,ae=M.length,_=0,D=[],O=[];function N(){return _}function P(ie){throw R.error("Unclosed "+ie,_)}function V(){return O.length===0&&_>=ae}function ue(ie){if(O.length)return O.pop();if(_>=ae)return;let be=ie?ie.ignoreUnclosed:!1;switch(k=M.charCodeAt(_),k){case i:case a:case u:case p:case o:{x=_;do x+=1,k=M.charCodeAt(x);while(k===a||k===i||k===u||k===p||k===o);I=["space",M.slice(_,x)],_=x-1;break}case l:case s:case h:case d:case b:case m:case f:{let Ne=String.fromCharCode(k);I=[Ne,Ne,_];break}case c:{if(X=D.length?D.pop()[1]:"",z=M.charCodeAt(_+1),X==="url"&&z!==e&&z!==t&&z!==a&&z!==i&&z!==u&&z!==o&&z!==p){x=_;do{if(j=!1,x=M.indexOf(")",x+1),x===-1)if(B||be){x=_;break}else P("bracket");for(H=x;M.charCodeAt(H-1)===r;)H-=1,j=!j}while(j);I=["brackets",M.slice(_,x+1),_,x],_=x}else x=M.indexOf(")",_+1),J=M.slice(_,x+1),x===-1||w.test(J)?I=["(","(",_]:(I=["brackets",J,_,x],_=x);break}case e:case t:{q=k===e?"'":'"',x=_;do{if(j=!1,x=M.indexOf(q,x+1),x===-1)if(B||be){x=_+1;break}else P("string");for(H=x;M.charCodeAt(H-1)===r;)H-=1,j=!j}while(j);I=["string",M.slice(_,x+1),_,x],_=x;break}case y:{S.lastIndex=_+1,S.test(M),S.lastIndex===0?x=M.length-1:x=S.lastIndex-2,I=["at-word",M.slice(_,x+1),_,x],_=x;break}case r:{for(x=_,U=!0;M.charCodeAt(x+1)===r;)x+=1,U=!U;if(k=M.charCodeAt(x+1),U&&k!==n&&k!==a&&k!==i&&k!==u&&k!==p&&k!==o&&(x+=1,v.test(M.charAt(x)))){for(;v.test(M.charAt(x+1));)x+=1;M.charCodeAt(x+1)===a&&(x+=1)}I=["word",M.slice(_,x+1),_,x],_=x;break}default:{k===n&&M.charCodeAt(_+1)===g?(x=M.indexOf("*/",_+2)+1,x===0&&(B||be?x=M.length:P("comment")),I=["comment",M.slice(_,x+1),_,x],_=x):(C.lastIndex=_+1,C.test(M),C.lastIndex===0?x=M.length-1:x=C.lastIndex-2,I=["word",M.slice(_,x+1),_,x],D.push(I),_=x);break}}return _++,I}function ce(ie){O.push(ie)}return{back:ce,endOfFile:V,nextToken:ue,position:N}},er}var tr,ss;function jn(){if(ss)return tr;ss=1;let e=hi(),t=rt(),r=_t(),n=it(),i=pi(),a=Vn();const o={empty:!0,space:!0};function u(l){for(let s=l.length-1;s>=0;s--){let c=l[s],f=c[3]||c[2];if(f)return f}}class p{constructor(s){this.input=s,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:s,start:{column:1,line:1,offset:0}}}atrule(s){let c=new e;c.name=s[1].slice(1),c.name===""&&this.unnamedAtrule(c,s),this.init(c,s[2]);let f,h,d,m=!1,g=!1,b=[],y=[];for(;!this.tokenizer.endOfFile();){if(s=this.tokenizer.nextToken(),f=s[0],f==="("||f==="["?y.push(f==="("?")":"]"):f==="{"&&y.length>0?y.push("}"):f===y[y.length-1]&&y.pop(),y.length===0)if(f===";"){c.source.end=this.getPosition(s[2]),c.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(b.length>0){for(d=b.length-1,h=b[d];h&&h[0]==="space";)h=b[--d];h&&(c.source.end=this.getPosition(h[3]||h[2]),c.source.end.offset++)}this.end(s);break}else b.push(s);else b.push(s);if(this.tokenizer.endOfFile()){m=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(b),b.length?(c.raws.afterName=this.spacesAndCommentsFromStart(b),this.raw(c,"params",b),m&&(s=b[b.length-1],c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),g&&(c.nodes=[],this.current=c)}checkMissedSemicolon(s){let c=this.colon(s);if(c===!1)return;let f=0,h;for(let d=c-1;d>=0&&(h=s[d],!(h[0]!=="space"&&(f+=1,f===2)));d--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(s){let c=0,f,h,d;for(let[m,g]of s.entries()){if(h=g,d=h[0],d==="("&&(c+=1),d===")"&&(c-=1),c===0&&d===":")if(!f)this.doubleColon(h);else{if(f[0]==="word"&&f[1]==="progid")continue;return m}f=h}return!1}comment(s){let c=new t;this.init(c,s[2]),c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++;let f=s[1].slice(2,-2);if(/^\s*$/.test(f))c.text="",c.raws.left=f,c.raws.right="";else{let h=f.match(/^(\s*)([^]*\S)(\s*)$/);c.text=h[2],c.raws.left=h[1],c.raws.right=h[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(s,c){let f=new r;this.init(f,s[0][2]);let h=s[s.length-1];for(h[0]===";"&&(this.semicolon=!0,s.pop()),f.source.end=this.getPosition(h[3]||h[2]||u(s)),f.source.end.offset++;s[0][0]!=="word";)s.length===1&&this.unknownWord(s),f.raws.before+=s.shift()[1];for(f.source.start=this.getPosition(s[0][2]),f.prop="";s.length;){let y=s[0][0];if(y===":"||y==="space"||y==="comment")break;f.prop+=s.shift()[1]}f.raws.between="";let d;for(;s.length;)if(d=s.shift(),d[0]===":"){f.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),f.raws.between+=d[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let m=[],g;for(;s.length&&(g=s[0][0],!(g!=="space"&&g!=="comment"));)m.push(s.shift());this.precheckMissedSemicolon(s);for(let y=s.length-1;y>=0;y--){if(d=s[y],d[1].toLowerCase()==="!important"){f.important=!0;let S=this.stringFrom(s,y);S=this.spacesFromEnd(s)+S,S!==" !important"&&(f.raws.important=S);break}else if(d[1].toLowerCase()==="important"){let S=s.slice(0),C="";for(let w=y;w>0;w--){let v=S[w][0];if(C.trim().startsWith("!")&&v!=="space")break;C=S.pop()[1]+C}C.trim().startsWith("!")&&(f.important=!0,f.raws.important=C,s=S)}if(d[0]!=="space"&&d[0]!=="comment")break}s.some(y=>y[0]!=="space"&&y[0]!=="comment")&&(f.raws.between+=m.map(y=>y[1]).join(""),m=[]),this.raw(f,"value",m.concat(s),c),f.value.includes(":")&&!c&&this.checkMissedSemicolon(s)}doubleColon(s){throw this.input.error("Double colon",{offset:s[2]},{offset:s[2]+s[1].length})}emptyRule(s){let c=new i;this.init(c,s[2]),c.selector="",c.raws.between="",this.current=c}end(s){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(s[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(s)}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(s){if(this.spaces+=s[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(s){let c=this.input.fromOffset(s);return{column:c.col,line:c.line,offset:s}}init(s,c){this.current.push(s),s.source={input:this.input,start:this.getPosition(c)},s.raws.before=this.spaces,this.spaces="",s.type!=="comment"&&(this.semicolon=!1)}other(s){let c=!1,f=null,h=!1,d=null,m=[],g=s[1].startsWith("--"),b=[],y=s;for(;y;){if(f=y[0],b.push(y),f==="("||f==="[")d||(d=y),m.push(f==="("?")":"]");else if(g&&h&&f==="{")d||(d=y),m.push("}");else if(m.length===0)if(f===";")if(h){this.decl(b,g);return}else break;else if(f==="{"){this.rule(b);return}else if(f==="}"){this.tokenizer.back(b.pop()),c=!0;break}else f===":"&&(h=!0);else f===m[m.length-1]&&(m.pop(),m.length===0&&(d=null));y=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),m.length>0&&this.unclosedBracket(d),c&&h){if(!g)for(;b.length&&(y=b[b.length-1][0],!(y!=="space"&&y!=="comment"));)this.tokenizer.back(b.pop());this.decl(b,g)}else this.unknownWord(b)}parse(){let s;for(;!this.tokenizer.endOfFile();)switch(s=this.tokenizer.nextToken(),s[0]){case"space":this.spaces+=s[1];break;case";":this.freeSemicolon(s);break;case"}":this.end(s);break;case"comment":this.comment(s);break;case"at-word":this.atrule(s);break;case"{":this.emptyRule(s);break;default:this.other(s);break}this.endFile()}precheckMissedSemicolon(){}raw(s,c,f,h){let d,m,g=f.length,b="",y=!0,S,C;for(let w=0;w<g;w+=1)d=f[w],m=d[0],m==="space"&&w===g-1&&!h?y=!1:m==="comment"?(C=f[w-1]?f[w-1][0]:"empty",S=f[w+1]?f[w+1][0]:"empty",!o[C]&&!o[S]?b.slice(-1)===","?y=!1:b+=d[1]:y=!1):b+=d[1];if(!y){let w=f.reduce((v,E)=>v+E[1],"");s.raws[c]={raw:w,value:b}}s[c]=b}rule(s){s.pop();let c=new i;this.init(c,s[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(s),this.raw(c,"selector",s),this.current=c}spacesAndCommentsFromEnd(s){let c,f="";for(;s.length&&(c=s[s.length-1][0],!(c!=="space"&&c!=="comment"));)f=s.pop()[1]+f;return f}spacesAndCommentsFromStart(s){let c,f="";for(;s.length&&(c=s[0][0],!(c!=="space"&&c!=="comment"));)f+=s.shift()[1];return f}spacesFromEnd(s){let c,f="";for(;s.length&&(c=s[s.length-1][0],c==="space");)f=s.pop()[1]+f;return f}stringFrom(s,c){let f="";for(let h=c;h<s.length;h++)f+=s[h][1];return s.splice(c,s.length-c),f}unclosedBlock(){let s=this.current.source.start;throw this.input.error("Unclosed block",s.line,s.column)}unclosedBracket(s){throw this.input.error("Unclosed bracket",{offset:s[2]},{offset:s[2]+1})}unexpectedClose(s){throw this.input.error("Unexpected }",{offset:s[2]},{offset:s[2]+1})}unknownWord(s){throw this.input.error("Unknown word",{offset:s[0][2]},{offset:s[0][2]+s[0][1].length})}unnamedAtrule(s,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return tr=p,tr}var rr,ns;function di(){if(ns)return rr;ns=1;let e=Pe(),t=Nt(),r=jn();function n(i,a){let o=new t(i,a),u=new r(o);try{u.parse()}catch(p){throw p}return u.root}return rr=n,n.default=n,e.registerParse(n),rr}var ir,os;function Gn(){if(os)return ir;os=1;class e{constructor(r,n={}){if(this.type="warning",this.text=r,n.node&&n.node.source){let i=n.node.rangeBy(n);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in n)this[i]=n[i]}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}}return ir=e,e.default=e,ir}var sr,as;function mi(){if(as)return sr;as=1;let e=Gn();class t{constructor(n,i,a){this.processor=n,this.messages=[],this.root=i,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(n,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(n,i);return this.messages.push(a),a}warnings(){return this.messages.filter(n=>n.type==="warning")}get content(){return this.css}}return sr=t,t.default=t,sr}var nr,ls;function $n(){if(ls)return nr;ls=1;let e={};return nr=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},nr}var or,us;function Hn(){if(us)return or;us=1;let e=Pe(),t=fi(),r=Wn(),n=di(),i=mi(),a=it(),o=xt(),{isClean:u,my:p}=ci(),l=$n();const s={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},c={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},f={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function d(C){return typeof C=="object"&&typeof C.then=="function"}function m(C){let w=!1,v=s[C.type];return C.type==="decl"?w=C.prop.toLowerCase():C.type==="atrule"&&(w=C.name.toLowerCase()),w&&C.append?[v,v+"-"+w,h,v+"Exit",v+"Exit-"+w]:w?[v,v+"-"+w,v+"Exit",v+"Exit-"+w]:C.append?[v,h,v+"Exit"]:[v,v+"Exit"]}function g(C){let w;return C.type==="document"?w=["Document",h,"DocumentExit"]:C.type==="root"?w=["Root",h,"RootExit"]:w=m(C),{eventIndex:0,events:w,iterator:0,node:C,visitorIndex:0,visitors:[]}}function b(C){return C[u]=!1,C.nodes&&C.nodes.forEach(w=>b(w)),C}let y={};class S{constructor(w,v,E){this.stringified=!1,this.processed=!1;let R;if(typeof v=="object"&&v!==null&&(v.type==="root"||v.type==="document"))R=b(v);else if(v instanceof S||v instanceof i)R=b(v.root),v.map&&(typeof E.map=="undefined"&&(E.map={}),E.map.inline||(E.map.inline=!1),E.map.prev=v.map);else{let A=n;E.syntax&&(A=E.syntax.parse),E.parser&&(A=E.parser),A.parse&&(A=A.parse);try{R=A(v,E)}catch(M){this.processed=!0,this.error=M}R&&!R[p]&&e.rebuild(R)}this.result=new i(w,R,E),this.helpers=le(Q({},y),{postcss:y,result:this.result}),this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?Q(Q({},A),A.prepare(this.result)):A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,v){let E=this.result.lastPlugin;try{v&&v.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=E.postcssPlugin,w.setMessage()):E.postcssVersion}catch(R){console&&console.error&&console.error(R)}return w}prepareVisitors(){this.listeners={};let w=(v,E,R)=>{this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push([v,R])};for(let v of this.plugins)if(typeof v=="object")for(let E in v){if(!c[E]&&/^[A-Z]/.test(E))throw new Error(`Unknown event ${E} in ${v.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[E])if(typeof v[E]=="object")for(let R in v[E])R==="*"?w(v,E,v[E][R]):w(v,E+"-"+R.toLowerCase(),v[E][R]);else typeof v[E]=="function"&&w(v,E,v[E])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let v=this.plugins[w],E=this.runOnRoot(v);if(d(E))try{await E}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[u];){w[u]=!0;let v=[g(w)];for(;v.length>0;){let E=this.visitTick(v);if(d(E))try{await E}catch(R){let A=v[v.length-1].node;throw this.handleError(R,A)}}}if(this.listeners.OnceExit)for(let[v,E]of this.listeners.OnceExit){this.result.lastPlugin=v;try{if(w.type==="document"){let R=w.nodes.map(A=>E(A,this.helpers));await Promise.all(R)}else await E(w,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let v=this.result.root.nodes.map(E=>w.Once(E,this.helpers));return d(v[0])?Promise.all(v):v}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(v){throw this.handleError(v)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,v=o;w.syntax&&(v=w.syntax.stringify),w.stringifier&&(v=w.stringifier),v.stringify&&(v=v.stringify);let R=new r(v,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 w of this.plugins){let v=this.runOnRoot(w);if(d(v))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[u];)w[u]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let v of w.nodes)this.visitSync(this.listeners.OnceExit,v);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,v){return this.async().then(w,v)}toString(){return this.css}visitSync(w,v){for(let[E,R]of w){this.result.lastPlugin=E;let A;try{A=R(v,this.helpers)}catch(M){throw this.handleError(M,v.proxyOf)}if(v.type!=="root"&&v.type!=="document"&&!v.parent)return!0;if(d(A))throw this.getAsyncError()}}visitTick(w){let v=w[w.length-1],{node:E,visitors:R}=v;if(E.type!=="root"&&E.type!=="document"&&!E.parent){w.pop();return}if(R.length>0&&v.visitorIndex<R.length){let[M,B]=R[v.visitorIndex];v.visitorIndex+=1,v.visitorIndex===R.length&&(v.visitors=[],v.visitorIndex=0),this.result.lastPlugin=M;try{return B(E.toProxy(),this.helpers)}catch(k){throw this.handleError(k,E)}}if(v.iterator!==0){let M=v.iterator,B;for(;B=E.nodes[E.indexes[M]];)if(E.indexes[M]+=1,!B[u]){B[u]=!0,w.push(g(B));return}v.iterator=0,delete E.indexes[M]}let A=v.events;for(;v.eventIndex<A.length;){let M=A[v.eventIndex];if(v.eventIndex+=1,M===h){E.nodes&&E.nodes.length&&(E[u]=!0,v.iterator=E.getIterator());return}else if(this.listeners[M]){v.visitors=this.listeners[M];return}}w.pop()}walkSync(w){w[u]=!0;let v=m(w);for(let E of v)if(E===h)w.nodes&&w.each(R=>{R[u]||this.walkSync(R)});else{let R=this.listeners[E];if(R&&this.visitSync(R,w.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"}}return S.registerPostcss=C=>{y=C},or=S,S.default=S,a.registerLazyResult(S),t.registerLazyResult(S),or}var ar,cs;function wa(){if(cs)return ar;cs=1;let e=Wn(),t=di();const r=mi();let n=xt(),i=$n();class a{constructor(u,p,l){p=p.toString(),this.stringified=!1,this._processor=u,this._css=p,this._opts=l,this._map=void 0;let s,c=n;this.result=new r(this._processor,s,this._opts),this.result.css=p;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let h=new e(c,s,this._opts,p);if(h.isMap()){let[d,m]=h.generate();d&&(this.result.css=d),m&&(this.result.map=m)}else h.clearAnnotation(),this.result.css=h.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,p){return this.async().then(u,p)}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 u,p=t;try{u=p(this._css,this._opts)}catch(l){this.error=l}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}}return ar=a,a.default=a,ar}var lr,hs;function va(){if(hs)return lr;hs=1;let e=fi(),t=Hn(),r=wa(),n=it();class i{constructor(o=[]){this.version="8.5.1",this.plugins=this.normalize(o)}normalize(o){let u=[];for(let p of o)if(p.postcss===!0?p=p():p.postcss&&(p=p.postcss),typeof p=="object"&&Array.isArray(p.plugins))u=u.concat(p.plugins);else if(typeof p=="object"&&p.postcssPlugin)u.push(p);else if(typeof p=="function")u.push(p);else if(!(typeof p=="object"&&(p.parse||p.stringify)))throw new Error(p+" is not a PostCSS plugin");return u}process(o,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new r(this,o,u):new t(this,o,u)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return lr=i,i.default=i,n.registerProcessor(i),e.registerProcessor(i),lr}var ur,fs;function Yn(){if(fs)return ur;fs=1;let e=hi(),t=rt(),r=Pe(),n=ui(),i=_t(),a=fi(),o=ya(),u=Nt(),p=Hn(),l=qn(),s=Mt(),c=di(),f=va(),h=mi(),d=it(),m=pi(),g=xt(),b=Gn();function y(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new f(S)}return y.plugin=function(C,w){let v=!1;function E(...A){console&&console.warn&&!v&&(v=!0,console.warn(C+`: postcss.plugin was deprecated. Migration guide:
|
|
41
41
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(C+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
42
|
-
https://www.w3ctech.com/topic/2226`));let M=w(...A);return M.postcssPlugin=C,M.postcssVersion=new f().version,M}let R;return Object.defineProperty(E,"postcss",{get(){return R||(R=E()),R}}),E.process=function(A,M,B){return y([E(B)]).process(A,M)},E},y.stringify=g,y.parse=c,y.fromJSON=o,y.list=l,y.comment=S=>new t(S),y.atRule=S=>new e(S),y.decl=S=>new i(S),y.rule=S=>new m(S),y.root=S=>new d(S),y.document=S=>new a(S),y.CssSyntaxError=n,y.Declaration=i,y.Container=r,y.Processor=f,y.Document=a,y.Comment=t,y.Warning=b,y.AtRule=e,y.Result=h,y.Input=u,y.Rule=m,y.Root=d,y.Node=s,p.registerPostcss(y),ur=y,y.default=y,ur}var cr,ps;function ba(){if(ps)return cr;ps=1;let e=rt(),t=jn(),r=Vn();class n extends t{checkMissedSemicolon(){}comment(a){let o=new e;this.init(o,a[2]);let u=this.input.fromOffset(a[3])||this.input.fromOffset(this.input.css.length-1);o.source.end={column:u.col,line:u.line,offset:a[3]+1};let p=a[1].slice(2);if(p.slice(-2)==="*/"&&(p=p.slice(0,-2)),/^\s*$/.test(p))o.text="",o.raws.left=p,o.raws.right="";else{let l=p.match(/^(\s*)([^]*\S)(\s*)$/);o.text=l[2],o.raws.left=l[1],o.raws.right=l[3]}}createTokenizer(){this.tokenizer=r(this.input,{ignoreErrors:!0})}decl(a){a.length>1&&a.some(o=>o[0]==="word")&&super.decl(a)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(a){let o=this.colon(a);if(o===!1)return;let u,p;for(u=o-1;u>=0&&a[u][0]!=="word";u--);if(u===0||u<0)return;for(p=u-1;p>=0;p--)if(a[p][0]!=="space"){p+=1;break}let l=a.slice(u),s=a.slice(p,u);a.splice(p,a.length-p),this.spaces=s.map(c=>c[1]).join(""),this.decl(l)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(a){this.spaces+=a.map(o=>o[1]).join("")}unnamedAtrule(a){a.name=""}}return cr=n,cr}var hr,ds;function Sa(){if(ds)return hr;ds=1;let{Input:e}=Yn(),t=ba();return hr=function(n,i){let a=new e(n,i),o=new t(a);return o.parse(),o.root},hr}var Ea=Sa();const Ca=Bn(Ea);var Ra=Yn();const Z=Bn(Ra);Z.stringify;Z.fromJSON;Z.plugin;Z.parse;Z.list;Z.document;Z.comment;Z.atRule;Z.rule;Z.decl;Z.root;Z.CssSyntaxError;Z.Declaration;Z.Container;Z.Processor;Z.Document;Z.Comment;Z.Warning;Z.AtRule;Z.Result;Z.Input;Z.Rule;Z.Root;Z.Node;function Jn(e,t){const r=t==null?void 0:t.stylesWithHoverClass.get(e);if(r)return r;let n=e;try{n=Z([ca,ha]).process(e,{parser:Ca}).css}catch(i){console.warn("Failed to adapt css for replay",i)}return t==null||t.stylesWithHoverClass.set(e,n),n}const ms={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 xa(e){let t=ms[e.tagName]?ms[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function gs(){return{stylesWithHoverClass:new Map}}function Ma(e,t){let r=e.textContent;if(e.isStyle&&t.hackCss)try{r=Jn(e.textContent,t.cache)}catch(n){}return t.doc.createTextNode(r)}function _a(e,t){var r;const{doc:n,hackCss:i,cache:a}=t;switch(e.type){case re.Document:return n.implementation.createDocument(null,"",null);case re.DocumentType:return n.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case re.Element:{const o=xa(e);let u;e.isSVG?u=n.createElementNS("http://www.w3.org/2000/svg",o):(e.isCustom&&((r=n.defaultView)!=null&&r.customElements)&&!n.defaultView.customElements.get(e.tagName)&&n.defaultView.customElements.define(e.tagName,class extends n.defaultView.HTMLElement{}),u=n.createElement(o));const p={};for(const l in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,l))continue;let s=e.attributes[l];if(o==="option"&&l==="selected"&&s===!1||s===null)continue;if(s===!0&&(s=""),l.startsWith("rr_")){p[l]=s;continue}const c=o==="textarea"&&l==="value",f=o==="style"&&l==="_cssText";if(f&&i&&typeof s=="string"&&(s=Jn(s,a)),(c||f)&&typeof s=="string"){u.appendChild(n.createTextNode(s)),e.childNodes=[];continue}try{if(e.isSVG&&l==="xlink:href")u.setAttributeNS("http://www.w3.org/1999/xlink",l,s.toString());else if(l==="onload"||l==="onclick"||l.substring(0,7)==="onmouse")u.setAttribute("_"+l,s.toString());else if(o==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&l==="content"){u.setAttribute("csp-content",s.toString());continue}else o==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||o==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&la(e.attributes.href)==="js"||(o==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?u.setAttribute("rrweb-original-srcset",e.attributes.srcset):u.setAttribute(l,s.toString()))}catch(h){}}for(const l in p){const s=p[l];if(o==="canvas"&&l==="rr_dataURL"){const c=n.createElement("img");c.onload=()=>{const f=u.getContext("2d");f&&f.drawImage(c,0,0,c.width,c.height)},c.src=s.toString(),u.RRNodeType&&(u.rr_dataURL=s.toString())}else if(o==="img"&&l==="rr_dataURL"){const c=u;c.currentSrc.startsWith("data:")||(c.setAttribute("rrweb-original-src",e.attributes.src),c.src=s.toString())}if(l==="rr_width")u.style.setProperty("width",s.toString());else if(l==="rr_height")u.style.setProperty("height",s.toString());else if(l==="rr_mediaCurrentTime"&&typeof s=="number")u.currentTime=s;else if(l==="rr_mediaState")switch(s){case"played":u.play().catch(c=>console.warn("media playback error",c));break;case"paused":u.pause();break}else l==="rr_mediaPlaybackRate"&&typeof s=="number"?u.playbackRate=s:l==="rr_mediaMuted"&&typeof s=="boolean"?u.muted=s:l==="rr_mediaLoop"&&typeof s=="boolean"?u.loop=s:l==="rr_mediaVolume"&&typeof s=="number"?u.volume=s:l==="rr_open_mode"&&u.setAttribute("rr_open_mode",s)}if(e.isShadowHost)if(!u.shadowRoot)u.attachShadow({mode:"open"});else for(;u.shadowRoot.firstChild;)u.shadowRoot.removeChild(u.shadowRoot.firstChild);return u}case re.Text:return Ma(e,{cache:a,doc:n,hackCss:i});case re.CDATA:return e.textContent.trim()===""?null:n.createCDATASection(e.textContent);case re.Comment:return n.createComment(e.textContent);default:return null}}function Ke(e,t){const{doc:r,mirror:n,skipChild:i=!1,hackCss:a=!0,afterAppend:o,cache:u}=t;if(n.has(e.id)){const l=n.getNode(e.id),s=n.getMeta(l);if(aa(s,e))return n.getNode(e.id)}let p=_a(e,{doc:r,hackCss:a,cache:u});if(!p)return null;if(e.rootId&&n.getNode(e.rootId)!==r&&n.replace(e.rootId,r),e.type===re.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==re.DocumentType&&(e.childNodes[0].type===re.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),p=r),n.add(p,e),(e.type===re.Document||e.type===re.Element)&&!i)for(const l of e.childNodes){const s=Ke(l,{doc:r,mirror:n,skipChild:!1,hackCss:a,afterAppend:o,cache:u});if(!s){console.warn("Failed to rebuild",l);continue}if(l.isShadow&&na(p)&&p.shadowRoot)p.shadowRoot.appendChild(s);else if(e.type===re.Document&&l.type==re.Element){const c=s;let f=null;c.childNodes.forEach(h=>{h.nodeName==="BODY"&&(f=h)}),f?(c.removeChild(f),p.appendChild(s),c.appendChild(f)):p.appendChild(s)}else e.type===re.Document&&l.type===re.DocumentType&&p.firstChild&&p.firstChild.nodeType===1?p.insertBefore(s,p.firstChild):p.appendChild(s);o&&o(s,l.id)}return p}function Na(e,t){function r(n){t(n)}for(const n of e.getIds())e.has(n)&&r(e.getNode(n))}function Oa(e,t){const r=t.getMeta(e);if((r==null?void 0:r.type)!==re.Element)return;const n=e;for(const i in r.attributes){if(!(Object.prototype.hasOwnProperty.call(r.attributes,i)&&i.startsWith("rr_")))continue;const a=r.attributes[i];i==="rr_scrollLeft"&&(n.scrollLeft=a),i==="rr_scrollTop"&&(n.scrollTop=a)}}function Aa(e,t){const{doc:r,onVisit:n,hackCss:i=!0,afterAppend:a,cache:o,mirror:u=new Ln}=t,p=Ke(e,{doc:r,mirror:u,skipChild:!1,hackCss:i,afterAppend:a,cache:o});return Na(u,l=>{n&&n(l),Oa(l,u)}),p}var Da=Object.defineProperty,Pa=(e,t,r)=>t in e?Da(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t,r)=>Pa(e,typeof t!="symbol"?t+"":t,r),Ta=Object.defineProperty,ka=(e,t,r)=>t in e?Ta(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ys=(e,t,r)=>ka(e,typeof t!="symbol"?t+"":t,r);let Ia=class{constructor(){ys(this,"idNodeMap",new Map),ys(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const n=(r=this.getMeta(t))==null?void 0:r.id;return n!=null?n:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){const n=this.getNode(t);if(n){const i=this.nodeMetaMap.get(n);i&&this.nodeMetaMap.set(r,i)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function La(){return new Ia}function Fa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ba(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var ct={exports:{}},ws;function Ua(){if(ws)return ct.exports;ws=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return ct.exports=t(),ct.exports.createColors=t,ct.exports}const za={},qa=Object.freeze(Object.defineProperty({__proto__:null,default:za},Symbol.toStringTag,{value:"Module"})),ge=Ba(qa);var fr,vs;function gi(){if(vs)return fr;vs=1;let e=Ua(),t=ge;class r extends Error{constructor(i,a,o,u,p,l){super(i),this.name="CssSyntaxError",this.reason=i,p&&(this.file=p),u&&(this.source=u),l&&(this.plugin=l),typeof a!="undefined"&&typeof o!="undefined"&&(typeof a=="number"?(this.line=a,this.column=o):(this.line=a.line,this.column=a.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}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(i){if(!this.source)return"";let a=this.source;i==null&&(i=e.isColorSupported);let o=h=>h,u=h=>h,p=h=>h;if(i){let{bold:h,gray:d,red:m}=e.createColors(!0);u=g=>h(m(g)),o=g=>d(g),t&&(p=g=>t(g))}let l=a.split(/\r?\n/),s=Math.max(this.line-3,0),c=Math.min(this.line+2,l.length),f=String(c).length;return l.slice(s,c).map((h,d)=>{let m=s+1+d,g=" "+(" "+m).slice(-f)+" | ";if(m===this.line){if(h.length>160){let y=20,S=Math.max(0,this.column-y),C=Math.max(this.column+y,this.endColumn+y),w=h.slice(S,C),v=o(g.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,y-1)).replace(/[^\t]/g," ");return u(">")+o(g)+p(w)+`
|
|
42
|
+
https://www.w3ctech.com/topic/2226`));let M=w(...A);return M.postcssPlugin=C,M.postcssVersion=new f().version,M}let R;return Object.defineProperty(E,"postcss",{get(){return R||(R=E()),R}}),E.process=function(A,M,B){return y([E(B)]).process(A,M)},E},y.stringify=g,y.parse=c,y.fromJSON=o,y.list=l,y.comment=S=>new t(S),y.atRule=S=>new e(S),y.decl=S=>new i(S),y.rule=S=>new m(S),y.root=S=>new d(S),y.document=S=>new a(S),y.CssSyntaxError=n,y.Declaration=i,y.Container=r,y.Processor=f,y.Document=a,y.Comment=t,y.Warning=b,y.AtRule=e,y.Result=h,y.Input=u,y.Rule=m,y.Root=d,y.Node=s,p.registerPostcss(y),ur=y,y.default=y,ur}var cr,ps;function ba(){if(ps)return cr;ps=1;let e=rt(),t=jn(),r=Vn();class n extends t{checkMissedSemicolon(){}comment(a){let o=new e;this.init(o,a[2]);let u=this.input.fromOffset(a[3])||this.input.fromOffset(this.input.css.length-1);o.source.end={column:u.col,line:u.line,offset:a[3]+1};let p=a[1].slice(2);if(p.slice(-2)==="*/"&&(p=p.slice(0,-2)),/^\s*$/.test(p))o.text="",o.raws.left=p,o.raws.right="";else{let l=p.match(/^(\s*)([^]*\S)(\s*)$/);o.text=l[2],o.raws.left=l[1],o.raws.right=l[3]}}createTokenizer(){this.tokenizer=r(this.input,{ignoreErrors:!0})}decl(a){a.length>1&&a.some(o=>o[0]==="word")&&super.decl(a)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(a){let o=this.colon(a);if(o===!1)return;let u,p;for(u=o-1;u>=0&&a[u][0]!=="word";u--);if(u===0||u<0)return;for(p=u-1;p>=0;p--)if(a[p][0]!=="space"){p+=1;break}let l=a.slice(u),s=a.slice(p,u);a.splice(p,a.length-p),this.spaces=s.map(c=>c[1]).join(""),this.decl(l)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(a){this.spaces+=a.map(o=>o[1]).join("")}unnamedAtrule(a){a.name=""}}return cr=n,cr}var hr,ds;function Sa(){if(ds)return hr;ds=1;let{Input:e}=Yn(),t=ba();return hr=function(n,i){let a=new e(n,i),o=new t(a);return o.parse(),o.root},hr}var Ea=Sa();const Ca=Bn(Ea);var Ra=Yn();const Z=Bn(Ra);Z.stringify;Z.fromJSON;Z.plugin;Z.parse;Z.list;Z.document;Z.comment;Z.atRule;Z.rule;Z.decl;Z.root;Z.CssSyntaxError;Z.Declaration;Z.Container;Z.Processor;Z.Document;Z.Comment;Z.Warning;Z.AtRule;Z.Result;Z.Input;Z.Rule;Z.Root;Z.Node;const ms={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 xa(e){let t=ms[e.tagName]?ms[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function Jn(e,t){const r=t==null?void 0:t.stylesWithHoverClass.get(e);if(r)return r;let n=e;try{n=Z([ca,ha]).process(e,{parser:Ca}).css}catch(i){console.warn("Failed to adapt css for replay",i)}return t==null||t.stylesWithHoverClass.set(e,n),n}function gs(){return{stylesWithHoverClass:new Map}}function Ma(e,t){let r=e.textContent;if(e.isStyle&&t.hackCss)try{r=Jn(e.textContent,t.cache)}catch(n){}return t.doc.createTextNode(r)}function _a(e,t){var r;const{doc:n,hackCss:i,cache:a}=t;switch(e.type){case re.Document:return n.implementation.createDocument(null,"",null);case re.DocumentType:return n.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case re.Element:{const o=xa(e);let u;e.isSVG?u=n.createElementNS("http://www.w3.org/2000/svg",o):(e.isCustom&&((r=n.defaultView)!=null&&r.customElements)&&!n.defaultView.customElements.get(e.tagName)&&n.defaultView.customElements.define(e.tagName,class extends n.defaultView.HTMLElement{}),u=n.createElement(o));const p={};for(const l in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,l))continue;let s=e.attributes[l];if(o==="option"&&l==="selected"&&s===!1||s===null)continue;if(s===!0&&(s=""),l.startsWith("rr_")){p[l]=s;continue}const c=o==="textarea"&&l==="value",f=o==="style"&&l==="_cssText";if(f&&i&&typeof s=="string"&&(s=Jn(s,a)),(c||f)&&typeof s=="string"){u.appendChild(n.createTextNode(s)),e.childNodes=[];continue}try{if(e.isSVG&&l==="xlink:href")u.setAttributeNS("http://www.w3.org/1999/xlink",l,s.toString());else if(l==="onload"||l==="onclick"||l.substring(0,7)==="onmouse")u.setAttribute("_"+l,s.toString());else if(o==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&l==="content"){u.setAttribute("csp-content",s.toString());continue}else o==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||o==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&la(e.attributes.href)==="js"||(o==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?u.setAttribute("rrweb-original-srcset",e.attributes.srcset):u.setAttribute(l,s.toString()))}catch(h){}}for(const l in p){const s=p[l];if(o==="canvas"&&l==="rr_dataURL"){const c=n.createElement("img");c.onload=()=>{const f=u.getContext("2d");f&&f.drawImage(c,0,0,c.width,c.height)},c.src=s.toString(),u.RRNodeType&&(u.rr_dataURL=s.toString())}else if(o==="img"&&l==="rr_dataURL"){const c=u;c.currentSrc.startsWith("data:")||(c.setAttribute("rrweb-original-src",e.attributes.src),c.src=s.toString())}if(l==="rr_width")u.style.setProperty("width",s.toString());else if(l==="rr_height")u.style.setProperty("height",s.toString());else if(l==="rr_mediaCurrentTime"&&typeof s=="number")u.currentTime=s;else if(l==="rr_mediaState")switch(s){case"played":u.play().catch(c=>console.warn("media playback error",c));break;case"paused":u.pause();break}else l==="rr_mediaPlaybackRate"&&typeof s=="number"?u.playbackRate=s:l==="rr_mediaMuted"&&typeof s=="boolean"?u.muted=s:l==="rr_mediaLoop"&&typeof s=="boolean"?u.loop=s:l==="rr_mediaVolume"&&typeof s=="number"?u.volume=s:l==="rr_open_mode"&&u.setAttribute("rr_open_mode",s)}if(e.isShadowHost)if(!u.shadowRoot)u.attachShadow({mode:"open"});else for(;u.shadowRoot.firstChild;)u.shadowRoot.removeChild(u.shadowRoot.firstChild);return u}case re.Text:return Ma(e,{cache:a,doc:n,hackCss:i});case re.CDATA:return e.textContent.trim()===""?null:n.createCDATASection(e.textContent);case re.Comment:return n.createComment(e.textContent);default:return null}}function Ke(e,t){const{doc:r,mirror:n,skipChild:i=!1,hackCss:a=!0,afterAppend:o,cache:u}=t;if(n.has(e.id)){const l=n.getNode(e.id),s=n.getMeta(l);if(aa(s,e))return n.getNode(e.id)}let p=_a(e,{doc:r,hackCss:a,cache:u});if(!p)return null;if(e.rootId&&n.getNode(e.rootId)!==r&&n.replace(e.rootId,r),e.type===re.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==re.DocumentType&&(e.childNodes[0].type===re.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),p=r),n.add(p,e),(e.type===re.Document||e.type===re.Element)&&!i)for(const l of e.childNodes){const s=Ke(l,{doc:r,mirror:n,skipChild:!1,hackCss:a,afterAppend:o,cache:u});if(!s){console.warn("Failed to rebuild",l);continue}if(l.isShadow&&na(p)&&p.shadowRoot)p.shadowRoot.appendChild(s);else if(e.type===re.Document&&l.type==re.Element){const c=s;let f=null;c.childNodes.forEach(h=>{h.nodeName==="BODY"&&(f=h)}),f?(c.removeChild(f),p.appendChild(s),c.appendChild(f)):p.appendChild(s)}else e.type===re.Document&&l.type===re.DocumentType&&p.firstChild&&p.firstChild.nodeType===1?p.insertBefore(s,p.firstChild):p.appendChild(s);o&&o(s,l.id)}return p}function Na(e,t){function r(n){t(n)}for(const n of e.getIds())e.has(n)&&r(e.getNode(n))}function Oa(e,t){const r=t.getMeta(e);if((r==null?void 0:r.type)!==re.Element)return;const n=e;for(const i in r.attributes){if(!(Object.prototype.hasOwnProperty.call(r.attributes,i)&&i.startsWith("rr_")))continue;const a=r.attributes[i];i==="rr_scrollLeft"&&(n.scrollLeft=a),i==="rr_scrollTop"&&(n.scrollTop=a)}}function Aa(e,t){const{doc:r,onVisit:n,hackCss:i=!0,afterAppend:a,cache:o,mirror:u=new Ln}=t,p=Ke(e,{doc:r,mirror:u,skipChild:!1,hackCss:i,afterAppend:a,cache:o});return Na(u,l=>{n&&n(l),Oa(l,u)}),p}var Da=Object.defineProperty,Pa=(e,t,r)=>t in e?Da(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t,r)=>Pa(e,typeof t!="symbol"?t+"":t,r),Ta=Object.defineProperty,ka=(e,t,r)=>t in e?Ta(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ys=(e,t,r)=>ka(e,typeof t!="symbol"?t+"":t,r);let Ia=class{constructor(){ys(this,"idNodeMap",new Map),ys(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const n=(r=this.getMeta(t))==null?void 0:r.id;return n!=null?n:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){const n=this.getNode(t);if(n){const i=this.nodeMetaMap.get(n);i&&this.nodeMetaMap.set(r,i)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function La(){return new Ia}function Fa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ba(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var ct={exports:{}},ws;function Ua(){if(ws)return ct.exports;ws=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return ct.exports=t(),ct.exports.createColors=t,ct.exports}const za={},qa=Object.freeze(Object.defineProperty({__proto__:null,default:za},Symbol.toStringTag,{value:"Module"})),ge=Ba(qa);var fr,vs;function gi(){if(vs)return fr;vs=1;let e=Ua(),t=ge;class r extends Error{constructor(i,a,o,u,p,l){super(i),this.name="CssSyntaxError",this.reason=i,p&&(this.file=p),u&&(this.source=u),l&&(this.plugin=l),typeof a!="undefined"&&typeof o!="undefined"&&(typeof a=="number"?(this.line=a,this.column=o):(this.line=a.line,this.column=a.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}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(i){if(!this.source)return"";let a=this.source;i==null&&(i=e.isColorSupported);let o=h=>h,u=h=>h,p=h=>h;if(i){let{bold:h,gray:d,red:m}=e.createColors(!0);u=g=>h(m(g)),o=g=>d(g),t&&(p=g=>t(g))}let l=a.split(/\r?\n/),s=Math.max(this.line-3,0),c=Math.min(this.line+2,l.length),f=String(c).length;return l.slice(s,c).map((h,d)=>{let m=s+1+d,g=" "+(" "+m).slice(-f)+" | ";if(m===this.line){if(h.length>160){let y=20,S=Math.max(0,this.column-y),C=Math.max(this.column+y,this.endColumn+y),w=h.slice(S,C),v=o(g.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,y-1)).replace(/[^\t]/g," ");return u(">")+o(g)+p(w)+`
|
|
43
43
|
`+v+u("^")}let b=o(g.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+o(g)+p(h)+`
|
|
44
44
|
`+b+u("^")}return" "+o(g)+p(h)}).join(`
|
|
45
45
|
`)}toString(){let i=this.showSourceCode();return i&&(i=`
|