@amplitude/rrweb-player 2.0.0-alpha.33 → 2.0.0-alpha.34
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 +6880 -12010
- package/dist/rrweb-player.cjs.map +1 -1
- package/dist/rrweb-player.js +6880 -12010
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +6876 -12015
- package/dist/rrweb-player.umd.cjs.map +4 -4
- package/dist/rrweb-player.umd.min.cjs +118 -65
- package/dist/rrweb-player.umd.min.cjs.map +4 -4
- package/package.json +5 -5
|
@@ -11,80 +11,141 @@
|
|
|
11
11
|
}(this, () => {
|
|
12
12
|
var exports = {};
|
|
13
13
|
var module = { exports };
|
|
14
|
-
"use strict";var
|
|
15
|
-
`+
|
|
16
|
-
|
|
17
|
-
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
14
|
+
"use strict";var Ai=Object.defineProperty,ki=Object.defineProperties;var Mi=Object.getOwnPropertyDescriptors;var Ie=Object.getOwnPropertySymbols;var Er=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable;var _r=(e,i,u)=>i in e?Ai(e,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[i]=u,Q=(e,i)=>{for(var u in i||(i={}))Er.call(i,u)&&_r(e,u,i[u]);if(Ie)for(var u of Ie(i))Ar.call(i,u)&&_r(e,u,i[u]);return e},ie=(e,i)=>ki(e,Mi(i));var Re=(e,i)=>{var u={};for(var d in e)Er.call(e,d)&&i.indexOf(d)<0&&(u[d]=e[d]);if(e!=null&&Ie)for(var d of Ie(e))i.indexOf(d)<0&&Ar.call(e,d)&&(u[d]=e[d]);return u};var Ni=Object.defineProperty,Ii=(e,i,u)=>i in e?Ni(e,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[i]=u,kr=(e,i,u)=>Ii(e,typeof i!="symbol"?i+"":i,u);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function _e(){}function Mr(e,i){for(const u in i)e[u]=i[u];return e}function ei(e){return e()}function Nr(){return Object.create(null)}function xe(e){e.forEach(ei)}function ti(e){return typeof e=="function"}function ar(e,i){return e!=e?i==i:e!==i||e&&typeof e=="object"||typeof e=="function"}function Li(e){return Object.keys(e).length===0}function Ir(e){const i={};for(const u in e)u[0]!=="$"&&(i[u]=e[u]);return i}function z(e,i){e.appendChild(i)}function oe(e,i,u){e.insertBefore(i,u||null)}function se(e){e.parentNode&&e.parentNode.removeChild(e)}function tt(e,i){for(let u=0;u<e.length;u+=1)e[u]&&e[u].d(i)}function H(e){return document.createElement(e)}function je(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function he(e){return document.createTextNode(e)}function ee(){return he(" ")}function Ui(){return he("")}function ye(e,i,u,d){return e.addEventListener(i,u,d),()=>e.removeEventListener(i,u,d)}function L(e,i,u){u==null?e.removeAttribute(i):e.getAttribute(i)!==u&&e.setAttribute(i,u)}function Di(e){return Array.from(e.childNodes)}function Te(e,i){i=""+i,e.data!==i&&(e.data=i)}function J(e,i,u,d){u==null?e.style.removeProperty(i):e.style.setProperty(i,u,"")}function ve(e,i,u){e.classList.toggle(i,!!u)}function Fi(e,i,{bubbles:u=!1,cancelable:d=!1}={}){return new CustomEvent(e,{detail:i,bubbles:u,cancelable:d})}let Ee;function Pe(e){Ee=e}function ri(){if(!Ee)throw new Error("Function called outside component initialization");return Ee}function si(e){ri().$$.on_destroy.push(e)}function zi(){const e=ri();return(i,u,{cancelable:d=!1}={})=>{const s=e.$$.callbacks[i];if(s){const c=Fi(i,u,{cancelable:d});return s.slice().forEach(p=>{p.call(e,c)}),!c.defaultPrevented}return!0}}const ge=[],fe=[];let be=[];const sr=[],qi=Promise.resolve();let ir=!1;function Bi(){ir||(ir=!0,qi.then(ii))}function nr(e){be.push(e)}function ji(e){sr.push(e)}const rt=new Set;let de=0;function ii(){if(de!==0)return;const e=Ee;do{try{for(;de<ge.length;){const i=ge[de];de++,Pe(i),Ti(i.$$)}}catch(i){throw ge.length=0,de=0,i}for(Pe(null),ge.length=0,de=0;fe.length;)fe.pop()();for(let i=0;i<be.length;i+=1){const u=be[i];rt.has(u)||(rt.add(u),u())}be.length=0}while(ge.length);for(;sr.length;)sr.pop()();ir=!1,rt.clear(),Pe(e)}function Ti(e){if(e.fragment!==null){e.update(),xe(e.before_update);const i=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,i),e.after_update.forEach(nr)}}function Wi(e){const i=[],u=[];be.forEach(d=>e.indexOf(d)===-1?i.push(d):u.push(d)),u.forEach(d=>d()),be=i}const Be=new Set;let ue;function ni(){ue={r:0,c:[],p:ue}}function oi(){ue.r||xe(ue.c),ue=ue.p}function ne(e,i){e&&e.i&&(Be.delete(e),e.i(i))}function Se(e,i,u,d){if(e&&e.o){if(Be.has(e))return;Be.add(e),ue.c.push(()=>{Be.delete(e),d&&(u&&e.d(1),d())}),e.o(i)}else d&&d()}function me(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function $i(e,i,u){const d=e.$$.props[i];d!==void 0&&(e.$$.bound[d]=u,u(e.$$.ctx[d]))}function li(e){e&&e.c()}function ur(e,i,u){const{fragment:d,after_update:s}=e.$$;d&&d.m(i,u),nr(()=>{const c=e.$$.on_mount.map(ei).filter(ti);e.$$.on_destroy?e.$$.on_destroy.push(...c):xe(c),e.$$.on_mount=[]}),s.forEach(nr)}function fr(e,i){const u=e.$$;u.fragment!==null&&(Wi(u.after_update),xe(u.on_destroy),u.fragment&&u.fragment.d(i),u.on_destroy=u.fragment=null,u.ctx=[])}function Vi(e,i){e.$$.dirty[0]===-1&&(ge.push(e),Bi(),e.$$.dirty.fill(0)),e.$$.dirty[i/31|0]|=1<<i%31}function hr(e,i,u,d,s,c,p=null,m=[-1]){const a=Ee;Pe(e);const h=e.$$={fragment:null,ctx:[],props:c,update:_e,not_equal:s,bound:Nr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(a?a.$$.context:[])),callbacks:Nr(),dirty:m,skip_bound:!1,root:i.target||a.$$.root};p&&p(h.root);let t=!1;if(h.ctx=u?u(e,i.props||{},(o,n,...r)=>{const f=r.length?r[0]:n;return h.ctx&&s(h.ctx[o],h.ctx[o]=f)&&(!h.skip_bound&&h.bound[o]&&h.bound[o](f),t&&Vi(e,o)),n}):[],h.update(),t=!0,xe(h.before_update),h.fragment=d?d(h.ctx):!1,i.target){if(i.hydrate){const o=Di(i.target);h.fragment&&h.fragment.l(o),o.forEach(se)}else h.fragment&&h.fragment.c();i.intro&&ne(e.$$.fragment),ur(e,i.target,i.anchor),ii()}Pe(a)}class cr{constructor(){kr(this,"$$"),kr(this,"$$set")}$destroy(){fr(this,1),this.$destroy=_e}$on(i,u){if(!ti(u))return _e;const d=this.$$.callbacks[i]||(this.$$.callbacks[i]=[]);return d.push(u),()=>{const s=d.indexOf(u);s!==-1&&d.splice(s,1)}}$set(i){this.$$set&&!Li(i)&&(this.$$.skip_bound=!0,this.$$set(i),this.$$.skip_bound=!1)}}const Gi="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Gi);var Lr,Ji=Object.defineProperty,Hi=(e,i,u)=>i in e?Ji(e,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[i]=u,Ur=(e,i,u)=>Hi(e,typeof i!="symbol"?i+"":i,u);class Yi{constructor(){Ur(this,"idNodeMap",new Map),Ur(this,"nodeMetaMap",new WeakMap)}getId(i){var u;if(!i)return-1;const d=(u=this.getMeta(i))==null?void 0:u.id;return d!=null?d:-1}getNode(i){return this.idNodeMap.get(i)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(i){return this.nodeMetaMap.get(i)||null}removeNodeFromMap(i){const u=this.getId(i);this.idNodeMap.delete(u),i.childNodes&&i.childNodes.forEach(d=>this.removeNodeFromMap(d))}has(i){return this.idNodeMap.has(i)}hasNode(i){return this.nodeMetaMap.has(i)}add(i,u){const d=u.id;this.idNodeMap.set(d,i),this.nodeMetaMap.set(i,u)}replace(i,u){const d=this.getNode(i);if(d){const s=this.nodeMetaMap.get(d);s&&this.nodeMetaMap.set(u,s)}this.idNodeMap.set(i,u)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Qi(){return new Yi}function Ki(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xi(e){if(e.__esModule)return e;var i=e.default;if(typeof i=="function"){var u=function d(){return this instanceof d?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};u.prototype=i.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(e).forEach(function(d){var s=Object.getOwnPropertyDescriptor(e,d);Object.defineProperty(u,d,s.get?s:{enumerable:!0,get:function(){return e[d]}})}),u}var Le={exports:{}},Dr;function Zi(){if(Dr)return Le.exports;Dr=1;var e=String,i=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}};return Le.exports=i(),Le.exports.createColors=i,Le.exports}const en={},tn=Object.freeze(Object.defineProperty({__proto__:null,default:en},Symbol.toStringTag,{value:"Module"})),te=Xi(tn);var st,Fr;function pr(){if(Fr)return st;Fr=1;let e=Zi(),i=te;class u extends Error{constructor(s,c,p,m,a,h){super(s),this.name="CssSyntaxError",this.reason=s,a&&(this.file=a),m&&(this.source=m),h&&(this.plugin=h),typeof c!="undefined"&&typeof p!="undefined"&&(typeof c=="number"?(this.line=c,this.column=p):(this.line=c.line,this.column=c.column,this.endLine=p.line,this.endColumn=p.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,u)}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(s){if(!this.source)return"";let c=this.source;s==null&&(s=e.isColorSupported),i&&s&&(c=i(c));let p=c.split(/\r?\n/),m=Math.max(this.line-3,0),a=Math.min(this.line+2,p.length),h=String(a).length,t,o;if(s){let{bold:n,gray:r,red:f}=e.createColors(!0);t=l=>n(f(l)),o=l=>r(l)}else t=o=n=>n;return p.slice(m,a).map((n,r)=>{let f=m+1+r,l=" "+(" "+f).slice(-h)+" | ";if(f===this.line){let g=o(l.replace(/\d/g," "))+n.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+o(l)+n+`
|
|
15
|
+
`+g+t("^")}return" "+o(l)+n}).join(`
|
|
16
|
+
`)}toString(){let s=this.showSourceCode();return s&&(s=`
|
|
18
17
|
|
|
19
|
-
`+
|
|
20
|
-
`),this.name+": "+this.message+
|
|
18
|
+
`+s+`
|
|
19
|
+
`),this.name+": "+this.message+s}}return st=u,u.default=u,st}var Ue={},zr;function dr(){return zr||(zr=1,Ue.isClean=Symbol("isClean"),Ue.my=Symbol("my")),Ue}var it,qr;function ai(){if(qr)return it;qr=1;const e={after:`
|
|
21
20
|
`,beforeClose:`
|
|
22
21
|
`,beforeComment:`
|
|
23
22
|
`,beforeDecl:`
|
|
24
23
|
`,beforeOpen:" ",beforeRule:`
|
|
25
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function
|
|
26
|
-
`)){let
|
|
27
|
-
`)&&(
|
|
28
|
-
`)&&(
|
|
29
|
-
`)&&(
|
|
30
|
-
`)&&(
|
|
31
|
-
`);return
|
|
32
|
-
`?(
|
|
33
|
-
`);
|
|
24
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function i(d){return d[0].toUpperCase()+d.slice(1)}class u{constructor(s){this.builder=s}atrule(s,c){let p="@"+s.name,m=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName!="undefined"?p+=s.raws.afterName:m&&(p+=" "),s.nodes)this.block(s,p+m);else{let a=(s.raws.between||"")+(c?";":"");this.builder(p+m+a,s)}}beforeAfter(s,c){let p;s.type==="decl"?p=this.raw(s,null,"beforeDecl"):s.type==="comment"?p=this.raw(s,null,"beforeComment"):c==="before"?p=this.raw(s,null,"beforeRule"):p=this.raw(s,null,"beforeClose");let m=s.parent,a=0;for(;m&&m.type!=="root";)a+=1,m=m.parent;if(p.includes(`
|
|
25
|
+
`)){let h=this.raw(s,null,"indent");if(h.length)for(let t=0;t<a;t++)p+=h}return p}block(s,c){let p=this.raw(s,"between","beforeOpen");this.builder(c+p+"{",s,"start");let m;s.nodes&&s.nodes.length?(this.body(s),m=this.raw(s,"after")):m=this.raw(s,"after","emptyBody"),m&&this.builder(m),this.builder("}",s,"end")}body(s){let c=s.nodes.length-1;for(;c>0&&s.nodes[c].type==="comment";)c-=1;let p=this.raw(s,"semicolon");for(let m=0;m<s.nodes.length;m++){let a=s.nodes[m],h=this.raw(a,"before");h&&this.builder(h),this.stringify(a,c!==m||p)}}comment(s){let c=this.raw(s,"left","commentLeft"),p=this.raw(s,"right","commentRight");this.builder("/*"+c+s.text+p+"*/",s)}decl(s,c){let p=this.raw(s,"between","colon"),m=s.prop+p+this.rawValue(s,"value");s.important&&(m+=s.raws.important||" !important"),c&&(m+=";"),this.builder(m,s)}document(s){this.body(s)}raw(s,c,p){let m;if(p||(p=c),c&&(m=s.raws[c],typeof m!="undefined"))return m;let a=s.parent;if(p==="before"&&(!a||a.type==="root"&&a.first===s||a&&a.type==="document"))return"";if(!a)return e[p];let h=s.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[p]!="undefined")return h.rawCache[p];if(p==="before"||p==="after")return this.beforeAfter(s,p);{let t="raw"+i(p);this[t]?m=this[t](h,s):h.walk(o=>{if(m=o.raws[c],typeof m!="undefined")return!1})}return typeof m=="undefined"&&(m=e[p]),h.rawCache[p]=m,m}rawBeforeClose(s){let c;return s.walk(p=>{if(p.nodes&&p.nodes.length>0&&typeof p.raws.after!="undefined")return c=p.raws.after,c.includes(`
|
|
26
|
+
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawBeforeComment(s,c){let p;return s.walkComments(m=>{if(typeof m.raws.before!="undefined")return p=m.raws.before,p.includes(`
|
|
27
|
+
`)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p=="undefined"?p=this.raw(c,null,"beforeDecl"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeDecl(s,c){let p;return s.walkDecls(m=>{if(typeof m.raws.before!="undefined")return p=m.raws.before,p.includes(`
|
|
28
|
+
`)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p=="undefined"?p=this.raw(c,null,"beforeRule"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeOpen(s){let c;return s.walk(p=>{if(p.type!=="decl"&&(c=p.raws.between,typeof c!="undefined"))return!1}),c}rawBeforeRule(s){let c;return s.walk(p=>{if(p.nodes&&(p.parent!==s||s.first!==p)&&typeof p.raws.before!="undefined")return c=p.raws.before,c.includes(`
|
|
29
|
+
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawColon(s){let c;return s.walkDecls(p=>{if(typeof p.raws.between!="undefined")return c=p.raws.between.replace(/[^\s:]/g,""),!1}),c}rawEmptyBody(s){let c;return s.walk(p=>{if(p.nodes&&p.nodes.length===0&&(c=p.raws.after,typeof c!="undefined"))return!1}),c}rawIndent(s){if(s.raws.indent)return s.raws.indent;let c;return s.walk(p=>{let m=p.parent;if(m&&m!==s&&m.parent&&m.parent===s&&typeof p.raws.before!="undefined"){let a=p.raws.before.split(`
|
|
30
|
+
`);return c=a[a.length-1],c=c.replace(/\S/g,""),!1}}),c}rawSemicolon(s){let c;return s.walk(p=>{if(p.nodes&&p.nodes.length&&p.last.type==="decl"&&(c=p.raws.semicolon,typeof c!="undefined"))return!1}),c}rawValue(s,c){let p=s[c],m=s.raws[c];return m&&m.value===p?m.raw:p}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,c){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,c)}}return it=u,u.default=u,it}var nt,Br;function We(){if(Br)return nt;Br=1;let e=ai();function i(u,d){new e(d).stringify(u)}return nt=i,i.default=i,nt}var ot,jr;function $e(){if(jr)return ot;jr=1;let{isClean:e,my:i}=dr(),u=pr(),d=ai(),s=We();function c(m,a){let h=new m.constructor;for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t)||t==="proxyCache")continue;let o=m[t],n=typeof o;t==="parent"&&n==="object"?a&&(h[t]=a):t==="source"?h[t]=o:Array.isArray(o)?h[t]=o.map(r=>c(r,h)):(n==="object"&&o!==null&&(o=c(o)),h[t]=o)}return h}class p{constructor(a={}){this.raws={},this[e]=!1,this[i]=!0;for(let h in a)if(h==="nodes"){this.nodes=[];for(let t of a[h])typeof t.clone=="function"?this.append(t.clone()):this.append(t)}else this[h]=a[h]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let h=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${h.input.from}:${h.start.line}:${h.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let h in a)this[h]=a[h];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let h=c(this);for(let t in a)h[t]=a[t];return h}cloneAfter(a={}){let h=this.clone(a);return this.parent.insertAfter(this,h),h}cloneBefore(a={}){let h=this.clone(a);return this.parent.insertBefore(this,h),h}error(a,h={}){if(this.source){let{end:t,start:o}=this.rangeBy(h);return this.source.input.error(a,{column:o.column,line:o.line},{column:t.column,line:t.line},h)}return new u(a)}getProxyProcessor(){return{get(a,h){return h==="proxyOf"?a:h==="root"?()=>a.root().toProxy():a[h]},set(a,h,t){return a[h]===t||(a[h]=t,(h==="prop"||h==="value"||h==="name"||h==="params"||h==="important"||h==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,h){let t=this.source.start;if(a.index)t=this.positionInside(a.index,h);else if(a.word){h=this.toString();let o=h.indexOf(a.word);o!==-1&&(t=this.positionInside(o,h))}return t}positionInside(a,h){let t=h||this.toString(),o=this.source.start.column,n=this.source.start.line;for(let r=0;r<a;r++)t[r]===`
|
|
31
|
+
`?(o=1,n+=1):o+=1;return{column:o,line:n}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let h={column:this.source.start.column,line:this.source.start.line},t=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:h.column+1,line:h.line};if(a.word){let o=this.toString(),n=o.indexOf(a.word);n!==-1&&(h=this.positionInside(n,o),t=this.positionInside(n+a.word.length,o))}else a.start?h={column:a.start.column,line:a.start.line}:a.index&&(h=this.positionInside(a.index)),a.end?t={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?t=this.positionInside(a.endIndex):a.index&&(t=this.positionInside(a.index+1));return(t.line<h.line||t.line===h.line&&t.column<=h.column)&&(t={column:h.column+1,line:h.line}),{end:t,start:h}}raw(a,h){return new d().raw(this,a,h)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let h=this,t=!1;for(let o of a)o===this?t=!0:t?(this.parent.insertAfter(h,o),h=o):this.parent.insertBefore(h,o);t||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,h){let t={},o=h==null;h=h||new Map;let n=0;for(let r in this){if(!Object.prototype.hasOwnProperty.call(this,r)||r==="parent"||r==="proxyCache")continue;let f=this[r];if(Array.isArray(f))t[r]=f.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,h):l);else if(typeof f=="object"&&f.toJSON)t[r]=f.toJSON(null,h);else if(r==="source"){let l=h.get(f.input);l==null&&(l=n,h.set(f.input,n),n++),t[r]={end:f.end,inputId:l,start:f.start}}else t[r]=f}return o&&(t.inputs=[...h.keys()].map(r=>r.toJSON())),t}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=s){a.stringify&&(a=a.stringify);let h="";return a(this,t=>{h+=t}),h}warn(a,h,t){let o={node:this};for(let n in t)o[n]=t[n];return a.warn(h,o)}get proxyOf(){return this}}return ot=p,p.default=p,ot}var lt,Tr;function Ve(){if(Tr)return lt;Tr=1;let e=$e();class i extends e{constructor(d){d&&typeof d.value!="undefined"&&typeof d.value!="string"&&(d=ie(Q({},d),{value:String(d.value)})),super(d),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return lt=i,i.default=i,lt}var at,Wr;function rn(){if(Wr)return at;Wr=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return at={nanoid:(d=21)=>{let s="",c=d;for(;c--;)s+=e[Math.random()*64|0];return s},customAlphabet:(d,s=21)=>(c=s)=>{let p="",m=c;for(;m--;)p+=d[Math.random()*d.length|0];return p}},at}var ut,$r;function ui(){if($r)return ut;$r=1;let{SourceMapConsumer:e,SourceMapGenerator:i}=te,{existsSync:u,readFileSync:d}=te,{dirname:s,join:c}=te;function p(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class m{constructor(h,t){if(t.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let o=t.map?t.map.prev:void 0,n=this.loadMap(t.from,o);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=s(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(h){let t=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,r=/^data:application\/json,/;if(n.test(h)||r.test(h))return decodeURIComponent(h.substr(RegExp.lastMatch.length));if(t.test(h)||o.test(h))return p(h.substr(RegExp.lastMatch.length));let f=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+f)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let t=h.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let o=h.lastIndexOf(t.pop()),n=h.indexOf("*/",o);o>-1&&n>-1&&(this.annotation=this.getAnnotationURL(h.substring(o,n)))}loadFile(h){if(this.root=s(h),u(h))return this.mapFile=h,d(h,"utf-8").toString().trim()}loadMap(h,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let o=t(h);if(o){let n=this.loadFile(o);if(!n)throw new Error("Unable to load previous source map: "+o.toString());return n}}else{if(t instanceof e)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let o=this.annotation;return h&&(o=c(s(h),o)),this.loadFile(o)}}}startWith(h,t){return h?h.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return ut=m,m.default=m,ut}var ft,Vr;function Ge(){if(Vr)return ft;Vr=1;let{SourceMapConsumer:e,SourceMapGenerator:i}=te,{fileURLToPath:u,pathToFileURL:d}=te,{isAbsolute:s,resolve:c}=te,{nanoid:p}=rn(),m=te,a=pr(),h=ui(),t=Symbol("fromOffsetCache"),o=!!(e&&i),n=!!(c&&s);class r{constructor(l,g={}){if(l===null||typeof l=="undefined"||typeof l=="object"&&!l.toString)throw new Error(`PostCSS received ${l} instead of CSS string`);if(this.css=l.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!n||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=c(g.from)),n&&o){let x=new h(this.css,g);if(x.text){this.map=x;let b=x.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+p(6)+">"),this.map&&(this.map.file=this.from)}error(l,g,x,b={}){let v,C,y;if(g&&typeof g=="object"){let S=g,P=x;if(typeof S.offset=="number"){let A=this.fromOffset(S.offset);g=A.line,x=A.col}else g=S.line,x=S.column;if(typeof P.offset=="number"){let A=this.fromOffset(P.offset);C=A.line,y=A.col}else C=P.line,y=P.column}else if(!x){let S=this.fromOffset(g);g=S.line,x=S.col}let w=this.origin(g,x,C,y);return w?v=new a(l,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,b.plugin):v=new a(l,C===void 0?g:{column:x,line:g},C===void 0?x:{column:y,line:C},this.css,this.file,b.plugin),v.input={column:x,endColumn:y,endLine:C,line:g,source:this.css},this.file&&(d&&(v.input.url=d(this.file).toString()),v.input.file=this.file),v}fromOffset(l){let g,x;if(this[t])x=this[t];else{let v=this.css.split(`
|
|
32
|
+
`);x=new Array(v.length);let C=0;for(let y=0,w=v.length;y<w;y++)x[y]=C,C+=v[y].length+1;this[t]=x}g=x[x.length-1];let b=0;if(l>=g)b=x.length-1;else{let v=x.length-2,C;for(;b<v;)if(C=b+(v-b>>1),l<x[C])v=C-1;else if(l>=x[C+1])b=C+1;else{b=C;break}}return{col:l-x[b]+1,line:b+1}}mapResolve(l){return/^\w+:\/\//.test(l)?l:c(this.map.consumer().sourceRoot||this.map.root||".",l)}origin(l,g,x,b){if(!this.map)return!1;let v=this.map.consumer(),C=v.originalPositionFor({column:g,line:l});if(!C.source)return!1;let y;typeof x=="number"&&(y=v.originalPositionFor({column:b,line:x}));let w;s(C.source)?w=d(C.source):w=new URL(C.source,this.map.consumer().sourceRoot||d(this.map.mapFile));let S={column:C.column,endColumn:y&&y.column,endLine:y&&y.line,line:C.line,url:w.toString()};if(w.protocol==="file:")if(u)S.file=u(w);else throw new Error("file: protocol is not available in this PostCSS build");let P=v.sourceContentFor(C.source);return P&&(S.source=P),S}toJSON(){let l={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(l[g]=this[g]);return this.map&&(l.map=Q({},this.map),l.map.consumerCache&&(l.map.consumerCache=void 0)),l}get from(){return this.file||this.id}}return ft=r,r.default=r,m&&m.registerInput&&m.registerInput(r),ft}var ht,Gr;function fi(){if(Gr)return ht;Gr=1;let{SourceMapConsumer:e,SourceMapGenerator:i}=te,{dirname:u,relative:d,resolve:s,sep:c}=te,{pathToFileURL:p}=te,m=Ge(),a=!!(e&&i),h=!!(u&&s&&d&&c);class t{constructor(n,r,f,l){this.stringify=n,this.mapOpts=f.map||{},this.root=r,this.opts=f,this.css=l,this.originalCSS=l,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let n;this.isInline()?n="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?n=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?n=this.mapOpts.annotation(this.opts.to,this.root):n=this.outputFile()+".map";let r=`
|
|
34
33
|
`;this.css.includes(`\r
|
|
35
|
-
`)&&(
|
|
36
|
-
`),this.css+=
|
|
37
|
-
`),t=l.length-n):t+=l.length,a&&u!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.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(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let i=this.opts.to?si(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=si(qn(i,this.mapOpts.annotation)));let s=Qn(i,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Wa(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let s=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Os){let i=Os(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;eo==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var to=ja;let Za=Ei,cr=class extends Za{constructor(e){super(e),this.type="comment"}};var Ri=cr;cr.default=cr;let{isClean:io,my:ro}=Rt,so=xi,no=Ri,Ha=Ei,oo,Yr,jr,lo;function ao(r){return r.map(e=>(e.nodes&&(e.nodes=ao(e.nodes)),delete e.source,e))}function uo(r){if(r[io]=!1,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)uo(e)}let Re=class co extends Ha{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let s of i)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),i,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],s=e(this.proxyOf.nodes[i],i),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...i)=>e[t](...i.map(s=>typeof s=="function"?(o,n)=>s(o.toProxy(),n):s)):t==="every"||t==="some"?i=>e[t]((s,...o)=>i(s.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let i=this.index(e),s=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let n of s)this.proxyOf.nodes.splice(i+1,0,n);let o;for(let n in this.indexes)o=this.indexes[n],i<o&&(this.indexes[n]=o+s.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),s=i===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[i],s).reverse();i=this.index(e);for(let l of o)this.proxyOf.nodes.splice(i,0,l);let n;for(let l in this.indexes)n=this.indexes[l],i<=n&&(this.indexes[l]=n+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=ao(oo(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new so(e)]}else if(e.selector)e=[new Yr(e)];else if(e.name)e=[new jr(e)];else if(e.text)e=[new no(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[ro]||co.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[io]&&uo(s),typeof s.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let s of i)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+i.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let s;try{s=e(t,i)}catch(o){throw t.addToError(o)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,s)}):this.walk((i,s)=>{if(i.type==="atrule"&&i.name===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="atrule")return t(i,s)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,s)}):this.walk((i,s)=>{if(i.type==="decl"&&i.prop===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="decl")return t(i,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,s)}):this.walk((i,s)=>{if(i.type==="rule"&&i.selector===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="rule")return t(i,s)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Re.registerParse=r=>{oo=r};Re.registerRule=r=>{Yr=r};Re.registerAtRule=r=>{jr=r};Re.registerRoot=r=>{lo=r};var Fe=Re;Re.default=Re;Re.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,jr.prototype):r.type==="rule"?Object.setPrototypeOf(r,Yr.prototype):r.type==="decl"?Object.setPrototypeOf(r,so.prototype):r.type==="comment"?Object.setPrototypeOf(r,no.prototype):r.type==="root"&&Object.setPrototypeOf(r,lo.prototype),r[ro]=!0,r.nodes&&r.nodes.forEach(e=>{Re.rebuild(e)})};let Xa=Fe,ho,fo,wt=class extends Xa{constructor(e){super(U({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new ho(new fo,this,e).stringify()}};wt.registerLazyResult=r=>{ho=r};wt.registerProcessor=r=>{fo=r};var Zr=wt;wt.default=wt;let hr=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var po=hr;hr.default=hr;let Ja=po,fr=class{constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new Ja(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Hr=fr;fr.default=fr;const Ui=39,_s=34,kt=92,Ts=47,Pt=10,ot=32,$t=12,Lt=9,Ft=13,Ka=91,Qa=93,qa=40,eu=41,tu=123,iu=125,ru=59,su=42,nu=58,ou=64,Bt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ut=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,lu=/.[\r\n"'(/\\]/,ks=/[\da-f]/i;var au=function(e,t={}){let i=e.css.valueOf(),s=t.ignoreErrors,o,n,l,a,u,c,h,f,g,d,A=i.length,p=0,m=[],w=[];function v(){return p}function x(I){throw e.error("Unclosed "+I,p)}function R(){return w.length===0&&p>=A}function D(I){if(w.length)return w.pop();if(p>=A)return;let J=I?I.ignoreUnclosed:!1;switch(o=i.charCodeAt(p),o){case Pt:case ot:case Lt:case Ft:case $t:{n=p;do n+=1,o=i.charCodeAt(n);while(o===ot||o===Pt||o===Lt||o===Ft||o===$t);d=["space",i.slice(p,n)],p=n-1;break}case Ka:case Qa:case tu:case iu:case nu:case ru:case eu:{let z=String.fromCharCode(o);d=[z,z,p];break}case qa:{if(f=m.length?m.pop()[1]:"",g=i.charCodeAt(p+1),f==="url"&&g!==Ui&&g!==_s&&g!==ot&&g!==Pt&&g!==Lt&&g!==$t&&g!==Ft){n=p;do{if(c=!1,n=i.indexOf(")",n+1),n===-1)if(s||J){n=p;break}else x("bracket");for(h=n;i.charCodeAt(h-1)===kt;)h-=1,c=!c}while(c);d=["brackets",i.slice(p,n+1),p,n],p=n}else n=i.indexOf(")",p+1),a=i.slice(p,n+1),n===-1||lu.test(a)?d=["(","(",p]:(d=["brackets",a,p,n],p=n);break}case Ui:case _s:{l=o===Ui?"'":'"',n=p;do{if(c=!1,n=i.indexOf(l,n+1),n===-1)if(s||J){n=p+1;break}else x("string");for(h=n;i.charCodeAt(h-1)===kt;)h-=1,c=!c}while(c);d=["string",i.slice(p,n+1),p,n],p=n;break}case ou:{Bt.lastIndex=p+1,Bt.test(i),Bt.lastIndex===0?n=i.length-1:n=Bt.lastIndex-2,d=["at-word",i.slice(p,n+1),p,n],p=n;break}case kt:{for(n=p,u=!0;i.charCodeAt(n+1)===kt;)n+=1,u=!u;if(o=i.charCodeAt(n+1),u&&o!==Ts&&o!==ot&&o!==Pt&&o!==Lt&&o!==Ft&&o!==$t&&(n+=1,ks.test(i.charAt(n)))){for(;ks.test(i.charAt(n+1));)n+=1;i.charCodeAt(n+1)===ot&&(n+=1)}d=["word",i.slice(p,n+1),p,n],p=n;break}default:{o===Ts&&i.charCodeAt(p+1)===su?(n=i.indexOf("*/",p+2)+1,n===0&&(s||J?n=i.length:x("comment")),d=["comment",i.slice(p,n+1),p,n],p=n):(Ut.lastIndex=p+1,Ut.test(i),Ut.lastIndex===0?n=i.length-1:n=Ut.lastIndex-2,d=["word",i.slice(p,n+1),p,n],m.push(d),p=n);break}}return p++,d}function Z(I){w.push(I)}return{back:Z,endOfFile:R,nextToken:D,position:v}};let mo=Fe,ci=class extends mo{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 Xr=ci;ci.default=ci;mo.registerAtRule(ci);let go=Fe,yo,wo,Ke=class extends go{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let s=super.normalize(e);if(t){if(i==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of s)o.raws.before=t.raws.before}return s}removeChild(e,t){let i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new yo(new wo,this,e).stringify()}};Ke.registerLazyResult=r=>{yo=r};Ke.registerProcessor=r=>{wo=r};var Nt=Ke;Ke.default=Ke;go.registerRoot(Ke);let vt={comma(r){return vt.split(r,[","],!0)},space(r){let e=[" ",`
|
|
38
|
-
`," "];return vt.split(r,e)},split(r,e,t){let i=[],s="",o=!1,n=0,l=!1,a="",u=!1;for(let c of r)u?u=!1:c==="\\"?u=!0:l?c===a&&(l=!1):c==='"'||c==="'"?(l=!0,a=c):c==="("?n+=1:c===")"?n>0&&(n-=1):n===0&&e.includes(c)&&(o=!0),o?(s!==""&&i.push(s.trim()),s="",o=!1):s+=c;return(t||s!=="")&&i.push(s.trim()),i}};var vo=vt;vt.default=vt;let bo=Fe,uu=vo,hi=class extends bo{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return uu.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}};var Jr=hi;hi.default=hi;bo.registerRule(hi);let cu=xi,hu=au,fu=Ri,pu=Xr,du=Nt,Ps=Jr;const $s={empty:!0,space:!0};function mu(r){for(let e=r.length-1;e>=0;e--){let t=r[e],i=t[3]||t[2];if(i)return i}}let gu=class{constructor(e){this.input=e,this.root=new du,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 pu;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,s,o,n=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?u.push(i==="("?")":"]"):i==="{"&&u.length>0?u.push("}"):i===u[u.length-1]&&u.pop(),u.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(a.length>0){for(o=a.length-1,s=a[o];s&&s[0]==="space";)s=a[--o];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),n&&(e=a[a.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=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,s;for(let o=t-1;o>=0&&(s=e[o],!(s[0]!=="space"&&(i+=1,i===2)));o--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,i,s,o;for(let[n,l]of e.entries()){if(i=l,s=i[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!o)this.doubleColon(i);else{if(o[0]==="word"&&o[1]==="progid")continue;return n}o=i}return!1}comment(e){let t=new fu;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let s=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=hu(this.input)}decl(e,t){let i=new cu;this.init(i,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||mu(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){i.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),i.raws.between+=o[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let n=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="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"){i.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(o[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let f=u;f>0;f--){let g=c[f][0];if(h.trim().indexOf("!")===0&&g!=="space")break;h=c.pop()[1]+h}h.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=h,e=c)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(i.raws.between+=n.map(u=>u[1]).join(""),n=[]),this.raw(i,"value",n.concat(e),t),i.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 Ps;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,i=null,s=!1,o=null,n=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(i=u[0],a.push(u),i==="("||i==="[")o||(o=u),n.push(i==="("?")":"]");else if(l&&s&&i==="{")o||(o=u),n.push("}");else if(n.length===0)if(i===";")if(s){this.decl(a,l);return}else break;else if(i==="{"){this.rule(a);return}else if(i==="}"){this.tokenizer.back(a.pop()),t=!0;break}else i===":"&&(s=!0);else i===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&&s){if(!l)for(;a.length&&(u=a[a.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}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,i,s){let o,n,l=i.length,a="",u=!0,c,h;for(let f=0;f<l;f+=1)o=i[f],n=o[0],n==="space"&&f===l-1&&!s?u=!1:n==="comment"?(h=i[f-1]?i[f-1][0]:"empty",c=i[f+1]?i[f+1][0]:"empty",!$s[h]&&!$s[c]?a.slice(-1)===","?u=!1:a+=o[1]:u=!1):a+=o[1];if(!u){let f=i.reduce((g,d)=>g+d[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new Ps;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let s=t;s<e.length;s++)i+=e[s][1];return e.splice(t,e.length-t),i}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 yu=gu;let wu=Fe,vu=yu,bu=Ai;function fi(r,e){let t=new bu(r,e),i=new vu(t);try{i.parse()}catch(s){throw s}return i.root}var Kr=fi;fi.default=fi;wu.registerParse(fi);let{isClean:be,my:Cu}=Rt,Su=to,Eu=Si,xu=Fe,Au=Zr;let Ls=Hr,Ru=Kr,Nu=Nt;const Mu={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Iu={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},Du={Once:!0,postcssPlugin:!0,prepare:!0},Qe=0;function lt(r){return typeof r=="object"&&typeof r.then=="function"}function Co(r){let e=!1,t=Mu[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,Qe,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,Qe,t+"Exit"]:[t,t+"Exit"]}function Fs(r){let e;return r.type==="document"?e=["Document",Qe,"DocumentExit"]:r.type==="root"?e=["Root",Qe,"RootExit"]:e=Co(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function pr(r){return r[be]=!1,r.nodes&&r.nodes.forEach(e=>pr(e)),r}let dr={},qe=class So{constructor(e,t,i){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=pr(t);else if(t instanceof So||t instanceof Ls)s=pr(t.root),t.map&&(typeof i.map=="undefined"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let o=Ru;i.syntax&&(o=i.syntax.parse),i.parser&&(o=i.parser),o.parse&&(o=o.parse);try{s=o(t,i)}catch(n){this.processed=!0,this.error=n}s&&!s[Cu]&&xu.rebuild(s)}this.result=new Ls(e,s,i),this.helpers=le(U({},dr),{postcss:dr,result:this.result}),this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?U(U({},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 i=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=i.postcssPlugin,e.setMessage()):i.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,i,s)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!Iu[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Du[i])if(typeof t[i]=="object")for(let s in t[i])s==="*"?e(t,i,t[i][s]):e(t,i+"-"+s.toLowerCase(),t[i][s]);else typeof t[i]=="function"&&e(t,i,t[i])}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],i=this.runOnRoot(t);if(lt(i))try{await i}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[be];){e[be]=!0;let t=[Fs(e)];for(;t.length>0;){let i=this.visitTick(t);if(lt(i))try{await i}catch(s){let o=t[t.length-1].node;throw this.handleError(s,o)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(o=>i(o,this.helpers));await Promise.all(s)}else await i(e,this.helpers)}catch(s){throw this.handleError(s)}}}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(i=>e.Once(i,this.helpers));return lt(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=Eu;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new Su(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[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(lt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[be];)e[be]=!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[i,s]of e){this.result.lastPlugin=i;let o;try{o=s(t,this.helpers)}catch(n){throw this.handleError(n,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(lt(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:s}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[n,l]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=n;try{return l(i.toProxy(),this.helpers)}catch(a){throw this.handleError(a,i)}}if(t.iterator!==0){let n=t.iterator,l;for(;l=i.nodes[i.indexes[n]];)if(i.indexes[n]+=1,!l[be]){l[be]=!0,e.push(Fs(l));return}t.iterator=0,delete i.indexes[n]}let o=t.events;for(;t.eventIndex<o.length;){let n=o[t.eventIndex];if(t.eventIndex+=1,n===Qe){i.nodes&&i.nodes.length&&(i[be]=!0,t.iterator=i.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[be]=!0;let t=Co(e);for(let i of t)if(i===Qe)e.nodes&&e.each(s=>{s[be]||this.walkSync(s)});else{let s=this.listeners[i];if(s&&this.visitSync(s,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"}};qe.registerPostcss=r=>{dr=r};var Eo=qe;qe.default=qe;Nu.registerLazyResult(qe);Au.registerLazyResult(qe);let Ou=to,_u=Si;let Tu=Kr;const ku=Hr;let mr=class{constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let s,o=_u;this.result=new ku(this._processor,s,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let l=new Ou(o,s,this._opts,t);if(l.isMap()){let[a,u]=l.generate();a&&(this.result.css=a),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.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=Tu;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Pu=mr;mr.default=mr;let $u=Pu,Lu=Eo,Fu=Zr,Bu=Nt,bt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)t.push(i);else if(typeof i=="function")t.push(i);else if(!(typeof i=="object"&&(i.parse||i.stringify)))throw new Error(i+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new $u(this,e,t):new Lu(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Uu=bt;bt.default=bt;Bu.registerProcessor(bt);Fu.registerProcessor(bt);let zu=xi,Vu=Jn,Wu=Ri,Gu=Xr,Yu=Ai,ju=Nt,Zu=Jr;function Ct(r,e){if(Array.isArray(r))return r.map(n=>Ct(n));let s=r,{inputs:t}=s,i=nt(s,["inputs"]);if(t){e=[];for(let n of t){let l=le(U({},n),{__proto__:Yu.prototype});l.map&&(l.map=le(U({},l.map),{__proto__:Vu.prototype})),e.push(l)}}if(i.nodes&&(i.nodes=r.nodes.map(n=>Ct(n,e))),i.source){let o=i.source,{inputId:n}=o,l=nt(o,["inputId"]);i.source=l,n!=null&&(i.source.input=e[n])}if(i.type==="root")return new ju(i);if(i.type==="decl")return new zu(i);if(i.type==="rule")return new Zu(i);if(i.type==="comment")return new Wu(i);if(i.type==="atrule")return new Gu(i);throw new Error("Unknown node type: "+r.type)}var Hu=Ct;Ct.default=Ct;let Xu=Gr,xo=xi,Ju=Eo,Ku=Fe,Qr=Uu,Qu=Si,qu=Hu,Ao=Zr,ec=po,Ro=Ri,No=Xr,tc=Hr,ic=Ai,rc=Kr,sc=vo,Mo=Jr,Io=Nt,nc=Ei;function F(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new Qr(r)}F.plugin=function(e,t){let i=!1;function s(...n){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
39
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(
|
|
40
|
-
https://www.w3ctech.com/topic/2226`));let l=t(...n);return l.postcssPlugin=e,l.postcssVersion=new Qr().version,l}let o;return Object.defineProperty(s,"postcss",{get(){return o||(o=s()),o}}),s.process=function(n,l,a){return F([s(a)]).process(n,l)},s};F.stringify=Qu;F.parse=rc;F.fromJSON=qu;F.list=sc;F.comment=r=>new Ro(r);F.atRule=r=>new No(r);F.decl=r=>new xo(r);F.rule=r=>new Mo(r);F.root=r=>new Io(r);F.document=r=>new Ao(r);F.CssSyntaxError=Xu;F.Declaration=xo;F.Container=Ku;F.Processor=Qr;F.Document=Ao;F.Comment=Ro;F.Warning=ec;F.AtRule=No;F.Result=tc;F.Input=ic;F.Rule=Mo;F.Root=Io;F.Node=nc;Ju.registerPostcss(F);var oc=F;F.default=F;const j=wa(oc);j.stringify;j.fromJSON;j.plugin;j.parse;j.list;j.document;j.comment;j.atRule;j.rule;j.decl;j.root;j.CssSyntaxError;j.Declaration;j.Container;j.Processor;j.Document;j.Comment;j.Warning;j.AtRule;j.Result;j.Input;j.Rule;j.Root;j.Node;const lc=["webview"],Bs={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 ac(r){let e=Bs[r.tagName]?Bs[r.tagName]:r.tagName;return e==="link"&&r.attributes._cssText&&(e="style"),e}function Ni(r,e){const t=e==null?void 0:e.stylesWithHoverClass.get(r);if(t)return t;let i=r;try{i=j([ga,ya]).process(r).css}catch(s){console.warn("Failed to adapt css for replay",s)}return e==null||e.stylesWithHoverClass.set(r,i),i}function Us(){return{stylesWithHoverClass:new Map}}function uc(r,e,t,i){const s=[];for(const n of r.childNodes)n.type===Q.Text&&s.push(n);const o=e.split("/* rr_split */");for(;o.length>1&&o.length>s.length;)o.splice(-2,2,o.slice(-2).join(""));for(let n=0;n<s.length;n++){const l=s[n],a=o[n];l&&a&&(l.textContent=t?Ni(a,i):a)}}function cc(r,e,t,i){const{doc:s,hackCss:o,cache:n}=i;r.childNodes.length?uc(r,t,o,n):(o&&(t=Ni(t,n)),e.appendChild(s.createTextNode(t)))}function hc(r,e){var t;const{doc:i,hackCss:s,cache:o}=e;switch(r.type){case Q.Document:return i.implementation.createDocument(null,"",null);case Q.DocumentType:return i.implementation.createDocumentType(r.name||"html",r.publicId,r.systemId);case Q.Element:{const n=ac(r);let l;r.isSVG?l=i.createElementNS("http://www.w3.org/2000/svg",n):(r.isCustom&&((t=i.defaultView)!=null&&t.customElements)&&!i.defaultView.customElements.get(r.tagName)&&!lc.includes(r.tagName)&&i.defaultView.customElements.define(r.tagName,class extends i.defaultView.HTMLElement{}),l=i.createElement(n));const a={};for(const u in r.attributes){if(!Object.prototype.hasOwnProperty.call(r.attributes,u))continue;let c=r.attributes[u];if(!(n==="option"&&u==="selected"&&c===!1)&&c!==null){if(c===!0&&(c=""),u.startsWith("rr_")){a[u]=c;continue}if(typeof c=="string"){if(n==="style"&&u==="_cssText"){cc(r,l,c,e);continue}else if(n==="textarea"&&u==="value"){l.appendChild(i.createTextNode(c)),r.childNodes=[];continue}}try{if(r.isSVG&&u==="xlink:href")l.setAttributeNS("http://www.w3.org/1999/xlink",u,c.toString());else if(u==="onload"||u==="onclick"||u.substring(0,7)==="onmouse")l.setAttribute("_"+u,c.toString());else if(n==="meta"&&r.attributes["http-equiv"]==="Content-Security-Policy"&&u==="content"){l.setAttribute("csp-content",c.toString());continue}else n==="link"&&(r.attributes.rel==="preload"||r.attributes.rel==="modulepreload")&&r.attributes.as==="script"||n==="link"&&r.attributes.rel==="prefetch"&&typeof r.attributes.href=="string"&&r.attributes.href.endsWith(".js")||(n==="img"&&r.attributes.srcset&&r.attributes.rr_dataURL?l.setAttribute("rrweb-original-srcset",r.attributes.srcset):l.setAttribute(u,c.toString()))}catch(h){}}}for(const u in a){const c=a[u];if(n==="canvas"&&u==="rr_dataURL"){const h=i.createElement("img");h.onload=()=>{const f=l.getContext("2d");f&&f.drawImage(h,0,0,h.width,h.height)},h.src=c.toString(),l.RRNodeType&&(l.rr_dataURL=c.toString())}else if(n==="img"&&u==="rr_dataURL"){const h=l;h.currentSrc.startsWith("data:")||(h.setAttribute("rrweb-original-src",r.attributes.src),h.src=c.toString())}if(u==="rr_width")l.style.setProperty("width",c.toString());else if(u==="rr_height")l.style.setProperty("height",c.toString());else if(u==="rr_background_color")l.style.setProperty("background-color",c.toString());else if(u==="rr_mediaCurrentTime"&&typeof c=="number")l.currentTime=c;else if(u==="rr_mediaState")switch(c){case"played":l.play().catch(h=>console.warn("media playback error",h));break;case"paused":l.pause();break}else u==="rr_mediaPlaybackRate"&&typeof c=="number"?l.playbackRate=c:u==="rr_mediaMuted"&&typeof c=="boolean"?l.muted=c:u==="rr_mediaLoop"&&typeof c=="boolean"?l.loop=c:u==="rr_mediaVolume"&&typeof c=="number"?l.volume=c:u==="rr_open_mode"&&l.setAttribute("rr_open_mode",c)}if(r.isShadowHost)if(!l.shadowRoot)l.attachShadow({mode:"open"});else for(;l.shadowRoot.firstChild;)l.shadowRoot.removeChild(l.shadowRoot.firstChild);return l}case Q.Text:return r.isStyle&&s?i.createTextNode(Ni(r.textContent,o)):i.createTextNode(r.textContent);case Q.CDATA:return i.createCDATASection(r.textContent);case Q.Comment:return i.createComment(r.textContent);default:return null}}function dt(r,e){const{doc:t,mirror:i,skipChild:s=!1,hackCss:o=!0,afterAppend:n,cache:l}=e;if(i.has(r.id)){const u=i.getNode(r.id),c=i.getMeta(u);if(da(c,r))return i.getNode(r.id)}let a=hc(r,{doc:t,hackCss:o,cache:l});if(!a)return null;if(r.rootId&&i.getNode(r.rootId)!==t&&i.replace(r.rootId,t),r.type===Q.Document&&(t.close(),t.open(),r.compatMode==="BackCompat"&&r.childNodes&&r.childNodes[0].type!==Q.DocumentType&&(r.childNodes[0].type===Q.Element&&"xmlns"in r.childNodes[0].attributes&&r.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" "">')),a=t),i.add(a,r),(r.type===Q.Document||r.type===Q.Element)&&!s)for(const u of r.childNodes){const c=dt(u,{doc:t,mirror:i,skipChild:!1,hackCss:o,afterAppend:n,cache:l});if(!c){console.warn("Failed to rebuild",u);continue}if(u.isShadow&&fa(a)&&a.shadowRoot)a.shadowRoot.appendChild(c);else if(r.type===Q.Document&&u.type==Q.Element){const h=c;let f=null;h.childNodes.forEach(g=>{g.nodeName==="BODY"&&(f=g)}),f?(h.removeChild(f),a.appendChild(c),h.appendChild(f)):a.appendChild(c)}else a.appendChild(c);n&&n(c,u.id)}return a}function fc(r,e){function t(i){e(i)}for(const i of r.getIds())r.has(i)&&t(r.getNode(i))}function pc(r,e){const t=e.getMeta(r);if((t==null?void 0:t.type)!==Q.Element)return;const i=r;for(const s in t.attributes){if(!(Object.prototype.hasOwnProperty.call(t.attributes,s)&&s.startsWith("rr_")))continue;const o=t.attributes[s];s==="rr_scrollLeft"&&(i.scrollLeft=o),s==="rr_scrollTop"&&(i.scrollTop=o)}}function dc(r,e){const{doc:t,onVisit:i,hackCss:s=!0,afterAppend:o,cache:n,mirror:l=new Yn}=e,a=dt(r,{doc:t,mirror:l,skipChild:!1,hackCss:s,afterAppend:o,cache:n});return fc(l,u=>{i&&i(u),pc(u,l)}),a}var mc=Object.defineProperty,gc=(r,e,t)=>e in r?mc(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,C=(r,e,t)=>gc(r,typeof e!="symbol"?e+"":e,t),yc=Object.defineProperty,wc=(r,e,t)=>e in r?yc(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,zs=(r,e,t)=>wc(r,typeof e!="symbol"?e+"":e,t);let vc=class{constructor(){zs(this,"idNodeMap",new Map),zs(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const i=(t=this.getMeta(e))==null?void 0:t.id;return i!=null?i:-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(i=>this.removeNodeFromMap(i))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const i=t.id;this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,t)}replace(e,t){const i=this.getNode(e);if(i){const s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(t,s)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function bc(){return new vc}function Cc(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Sc(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function i(){return this instanceof i?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(r).forEach(function(i){var s=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:function(){return r[i]}})}),t}var qr={exports:{}},G=String,Do=function(){return{isColorSupported:!1,reset:G,bold:G,dim:G,italic:G,underline:G,inverse:G,hidden:G,strikethrough:G,black:G,red:G,green:G,yellow:G,blue:G,magenta:G,cyan:G,white:G,gray:G,bgBlack:G,bgRed:G,bgGreen:G,bgYellow:G,bgBlue:G,bgMagenta:G,bgCyan:G,bgWhite:G}};qr.exports=Do();qr.exports.createColors=Do;var Ec=qr.exports;const xc={},Ac=Object.freeze(Object.defineProperty({__proto__:null,default:xc},Symbol.toStringTag,{value:"Module"})),ge=Sc(Ac);let Vs=Ec,Ws=ge,gr=class Oo extends Error{constructor(e,t,i,s,o,n){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),s&&(this.source=s),n&&(this.plugin=n),typeof t!="undefined"&&typeof i!="undefined"&&(typeof t=="number"?(this.line=t,this.column=i):(this.line=t.line,this.column=t.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Oo)}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=Vs.isColorSupported),Ws&&e&&(t=Ws(t));let i=t.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,i.length),n=String(o).length,l,a;if(e){let{bold:u,gray:c,red:h}=Vs.createColors(!0);l=f=>u(h(f)),a=f=>c(f)}else l=a=u=>u;return i.slice(s,o).map((u,c)=>{let h=s+1+c,f=" "+(" "+h).slice(-n)+" | ";if(h===this.line){let g=a(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(f)+u+`
|
|
41
|
-
`+g+
|
|
42
|
-
`)}toString(){let
|
|
34
|
+
`)&&(r=`\r
|
|
35
|
+
`),this.css+=r+"/*# sourceMappingURL="+n+" */"}applyPrevMaps(){for(let n of this.previous()){let r=this.toUrl(this.path(n.file)),f=n.root||u(n.file),l;this.mapOpts.sourcesContent===!1?(l=new e(n.text),l.sourcesContent&&(l.sourcesContent=null)):l=n.consumer(),this.map.applySourceMap(l,r,this.toUrl(this.path(f)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let n;for(let r=this.root.nodes.length-1;r>=0;r--)n=this.root.nodes[r],n.type==="comment"&&n.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&a&&this.isMap())return this.generateMap();{let n="";return this.stringify(this.root,r=>{n+=r}),[n]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let n=this.previous()[0].consumer();n.file=this.outputFile(),this.map=i.fromSourceMap(n,{ignoreInvalidMapping:!0})}else this.map=new i({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 i({file:this.outputFile(),ignoreInvalidMapping:!0});let n=1,r=1,f="<no source>",l={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,x;this.stringify(this.root,(b,v,C)=>{if(this.css+=b,v&&C!=="end"&&(l.generated.line=n,l.generated.column=r-1,v.source&&v.source.start?(l.source=this.sourcePath(v),l.original.line=v.source.start.line,l.original.column=v.source.start.column-1,this.map.addMapping(l)):(l.source=f,l.original.line=1,l.original.column=0,this.map.addMapping(l))),g=b.match(/\n/g),g?(n+=g.length,x=b.lastIndexOf(`
|
|
36
|
+
`),r=b.length-x):r+=b.length,v&&C!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(l.source=this.sourcePath(v),l.original.line=v.source.end.line,l.original.column=v.source.end.column-1,l.generated.line=n,l.generated.column=r-2,this.map.addMapping(l)):(l.source=f,l.original.line=1,l.original.column=0,l.generated.line=n,l.generated.column=r-1,this.map.addMapping(l)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(n=>n.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let n=this.mapOpts.annotation;return typeof n!="undefined"&&n!==!0?!1:this.previous().length?this.previous().some(r=>r.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(n=>n.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(n){if(this.mapOpts.absolute||n.charCodeAt(0)===60||/^\w+:\/\//.test(n))return n;let r=this.memoizedPaths.get(n);if(r)return r;let f=this.opts.to?u(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=u(s(f,this.mapOpts.annotation)));let l=d(f,n);return this.memoizedPaths.set(n,l),l}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(n=>{if(n.source&&n.source.input.map){let r=n.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let n=new m(this.originalCSS,this.opts);n.map&&this.previousMaps.push(n.map)}return this.previousMaps}setSourcesContent(){let n={};if(this.root)this.root.walk(r=>{if(r.source){let f=r.source.input.from;if(f&&!n[f]){n[f]=!0;let l=this.usesFileUrls?this.toFileUrl(f):this.toUrl(this.path(f));this.map.setSourceContent(l,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(n){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(n.source.input.from):this.toUrl(this.path(n.source.input.from))}toBase64(n){return Buffer?Buffer.from(n).toString("base64"):window.btoa(unescape(encodeURIComponent(n)))}toFileUrl(n){let r=this.memoizedFileURLs.get(n);if(r)return r;if(p){let f=p(n).toString();return this.memoizedFileURLs.set(n,f),f}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(n){let r=this.memoizedURLs.get(n);if(r)return r;c==="\\"&&(n=n.replace(/\\/g,"/"));let f=encodeURI(n).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(n,f),f}}return ht=t,ht}var ct,Jr;function Je(){if(Jr)return ct;Jr=1;let e=$e();class i extends e{constructor(d){super(d),this.type="comment"}}return ct=i,i.default=i,ct}var pt,Hr;function ce(){if(Hr)return pt;Hr=1;let{isClean:e,my:i}=dr(),u=Ve(),d=Je(),s=$e(),c,p,m,a;function h(n){return n.map(r=>(r.nodes&&(r.nodes=h(r.nodes)),delete r.source,r))}function t(n){if(n[e]=!1,n.proxyOf.nodes)for(let r of n.proxyOf.nodes)t(r)}class o extends s{append(...r){for(let f of r){let l=this.normalize(f,this.last);for(let g of l)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(r){if(super.cleanRaws(r),this.nodes)for(let f of this.nodes)f.cleanRaws(r)}each(r){if(!this.proxyOf.nodes)return;let f=this.getIterator(),l,g;for(;this.indexes[f]<this.proxyOf.nodes.length&&(l=this.indexes[f],g=r(this.proxyOf.nodes[l],l),g!==!1);)this.indexes[f]+=1;return delete this.indexes[f],g}every(r){return this.nodes.every(r)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let r=this.lastEach;return this.indexes[r]=0,r}getProxyProcessor(){return{get(r,f){return f==="proxyOf"?r:r[f]?f==="each"||typeof f=="string"&&f.startsWith("walk")?(...l)=>r[f](...l.map(g=>typeof g=="function"?(x,b)=>g(x.toProxy(),b):g)):f==="every"||f==="some"?l=>r[f]((g,...x)=>l(g.toProxy(),...x)):f==="root"?()=>r.root().toProxy():f==="nodes"?r.nodes.map(l=>l.toProxy()):f==="first"||f==="last"?r[f].toProxy():r[f]:r[f]},set(r,f,l){return r[f]===l||(r[f]=l,(f==="name"||f==="params"||f==="selector")&&r.markDirty()),!0}}}index(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))}insertAfter(r,f){let l=this.index(r),g=this.normalize(f,this.proxyOf.nodes[l]).reverse();l=this.index(r);for(let b of g)this.proxyOf.nodes.splice(l+1,0,b);let x;for(let b in this.indexes)x=this.indexes[b],l<x&&(this.indexes[b]=x+g.length);return this.markDirty(),this}insertBefore(r,f){let l=this.index(r),g=l===0?"prepend":!1,x=this.normalize(f,this.proxyOf.nodes[l],g).reverse();l=this.index(r);for(let v of x)this.proxyOf.nodes.splice(l,0,v);let b;for(let v in this.indexes)b=this.indexes[v],l<=b&&(this.indexes[v]=b+x.length);return this.markDirty(),this}normalize(r,f){if(typeof r=="string")r=h(c(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new u(r)]}else if(r.selector)r=[new p(r)];else if(r.name)r=[new m(r)];else if(r.text)r=[new d(r)];else throw new Error("Unknown node type in node creation");return r.map(g=>(g[i]||o.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&t(g),typeof g.raws.before=="undefined"&&f&&typeof f.raws.before!="undefined"&&(g.raws.before=f.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...r){r=r.reverse();for(let f of r){let l=this.normalize(f,this.first,"prepend").reverse();for(let g of l)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+l.length}return this.markDirty(),this}push(r){return r.parent=this,this.proxyOf.nodes.push(r),this}removeAll(){for(let r of this.proxyOf.nodes)r.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);let f;for(let l in this.indexes)f=this.indexes[l],f>=r&&(this.indexes[l]=f-1);return this.markDirty(),this}replaceValues(r,f,l){return l||(l=f,f={}),this.walkDecls(g=>{f.props&&!f.props.includes(g.prop)||f.fast&&!g.value.includes(f.fast)||(g.value=g.value.replace(r,l))}),this.markDirty(),this}some(r){return this.nodes.some(r)}walk(r){return this.each((f,l)=>{let g;try{g=r(f,l)}catch(x){throw f.addToError(x)}return g!==!1&&f.walk&&(g=f.walk(r)),g})}walkAtRules(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="atrule"&&r.test(l.name))return f(l,g)}):this.walk((l,g)=>{if(l.type==="atrule"&&l.name===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="atrule")return f(l,g)}))}walkComments(r){return this.walk((f,l)=>{if(f.type==="comment")return r(f,l)})}walkDecls(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="decl"&&r.test(l.prop))return f(l,g)}):this.walk((l,g)=>{if(l.type==="decl"&&l.prop===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="decl")return f(l,g)}))}walkRules(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="rule"&&r.test(l.selector))return f(l,g)}):this.walk((l,g)=>{if(l.type==="rule"&&l.selector===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="rule")return f(l,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return o.registerParse=n=>{c=n},o.registerRule=n=>{p=n},o.registerAtRule=n=>{m=n},o.registerRoot=n=>{a=n},pt=o,o.default=o,o.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,m.prototype):n.type==="rule"?Object.setPrototypeOf(n,p.prototype):n.type==="decl"?Object.setPrototypeOf(n,u.prototype):n.type==="comment"?Object.setPrototypeOf(n,d.prototype):n.type==="root"&&Object.setPrototypeOf(n,a.prototype),n[i]=!0,n.nodes&&n.nodes.forEach(r=>{o.rebuild(r)})},pt}var dt,Yr;function mr(){if(Yr)return dt;Yr=1;let e=ce(),i,u;class d extends e{constructor(c){super(Q({type:"document"},c)),this.nodes||(this.nodes=[])}toResult(c={}){return new i(new u,this,c).stringify()}}return d.registerLazyResult=s=>{i=s},d.registerProcessor=s=>{u=s},dt=d,d.default=d,dt}var mt,Qr;function hi(){if(Qr)return mt;Qr=1;let e={};return mt=function(u){e[u]||(e[u]=!0,typeof console!="undefined"&&console.warn&&console.warn(u))},mt}var gt,Kr;function ci(){if(Kr)return gt;Kr=1;class e{constructor(u,d={}){if(this.type="warning",this.text=u,d.node&&d.node.source){let s=d.node.rangeBy(d);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in d)this[s]=d[s]}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 gt=e,e.default=e,gt}var wt,Xr;function gr(){if(Xr)return wt;Xr=1;let e=ci();class i{constructor(d,s,c){this.processor=d,this.messages=[],this.root=s,this.opts=c,this.css=void 0,this.map=void 0}toString(){return this.css}warn(d,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let c=new e(d,s);return this.messages.push(c),c}warnings(){return this.messages.filter(d=>d.type==="warning")}get content(){return this.css}}return wt=i,i.default=i,wt}var yt,Zr;function sn(){if(Zr)return yt;Zr=1;const e=39,i=34,u=92,d=47,s=10,c=32,p=12,m=9,a=13,h=91,t=93,o=40,n=41,r=123,f=125,l=59,g=42,x=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,C=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return yt=function(P,A={}){let _=P.css.valueOf(),U=A.ignoreErrors,I,O,T,Y,q,$,k,j,D,M,K=_.length,R=0,E=[],F=[];function B(){return R}function N(Z){throw P.error("Unclosed "+Z,R)}function X(){return F.length===0&&R>=K}function Me(Z){if(F.length)return F.pop();if(R>=K)return;let ae=Z?Z.ignoreUnclosed:!1;switch(I=_.charCodeAt(R),I){case s:case c:case m:case a:case p:{O=R;do O+=1,I=_.charCodeAt(O);while(I===c||I===s||I===m||I===a||I===p);M=["space",_.slice(R,O)],R=O-1;break}case h:case t:case r:case f:case x:case l:case n:{let Ce=String.fromCharCode(I);M=[Ce,Ce,R];break}case o:{if(j=E.length?E.pop()[1]:"",D=_.charCodeAt(R+1),j==="url"&&D!==e&&D!==i&&D!==c&&D!==s&&D!==m&&D!==p&&D!==a){O=R;do{if($=!1,O=_.indexOf(")",O+1),O===-1)if(U||ae){O=R;break}else N("bracket");for(k=O;_.charCodeAt(k-1)===u;)k-=1,$=!$}while($);M=["brackets",_.slice(R,O+1),R,O],R=O}else O=_.indexOf(")",R+1),Y=_.slice(R,O+1),O===-1||y.test(Y)?M=["(","(",R]:(M=["brackets",Y,R,O],R=O);break}case e:case i:{T=I===e?"'":'"',O=R;do{if($=!1,O=_.indexOf(T,O+1),O===-1)if(U||ae){O=R+1;break}else N("string");for(k=O;_.charCodeAt(k-1)===u;)k-=1,$=!$}while($);M=["string",_.slice(R,O+1),R,O],R=O;break}case b:{v.lastIndex=R+1,v.test(_),v.lastIndex===0?O=_.length-1:O=v.lastIndex-2,M=["at-word",_.slice(R,O+1),R,O],R=O;break}case u:{for(O=R,q=!0;_.charCodeAt(O+1)===u;)O+=1,q=!q;if(I=_.charCodeAt(O+1),q&&I!==d&&I!==c&&I!==s&&I!==m&&I!==a&&I!==p&&(O+=1,w.test(_.charAt(O)))){for(;w.test(_.charAt(O+1));)O+=1;_.charCodeAt(O+1)===c&&(O+=1)}M=["word",_.slice(R,O+1),R,O],R=O;break}default:{I===d&&_.charCodeAt(R+1)===g?(O=_.indexOf("*/",R+2)+1,O===0&&(U||ae?O=_.length:N("comment")),M=["comment",_.slice(R,O+1),R,O],R=O):(C.lastIndex=R+1,C.test(_),C.lastIndex===0?O=_.length-1:O=C.lastIndex-2,M=["word",_.slice(R,O+1),R,O],E.push(M),R=O);break}}return R++,M}function Ne(Z){F.push(Z)}return{back:Ne,endOfFile:X,nextToken:Me,position:B}},yt}var bt,es;function wr(){if(es)return bt;es=1;let e=ce();class i extends e{constructor(d){super(d),this.type="atrule"}append(...d){return this.proxyOf.nodes||(this.nodes=[]),super.append(...d)}prepend(...d){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...d)}}return bt=i,i.default=i,e.registerAtRule(i),bt}var vt,ts;function Ae(){if(ts)return vt;ts=1;let e=ce(),i,u;class d extends e{constructor(c){super(c),this.type="root",this.nodes||(this.nodes=[])}normalize(c,p,m){let a=super.normalize(c);if(p){if(m==="prepend")this.nodes.length>1?p.raws.before=this.nodes[1].raws.before:delete p.raws.before;else if(this.first!==p)for(let h of a)h.raws.before=p.raws.before}return a}removeChild(c,p){let m=this.index(c);return!p&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(c)}toResult(c={}){return new i(new u,this,c).stringify()}}return d.registerLazyResult=s=>{i=s},d.registerProcessor=s=>{u=s},vt=d,d.default=d,e.registerRoot(d),vt}var St,rs;function pi(){if(rs)return St;rs=1;let e={comma(i){return e.split(i,[","],!0)},space(i){let u=[" ",`
|
|
37
|
+
`," "];return e.split(i,u)},split(i,u,d){let s=[],c="",p=!1,m=0,a=!1,h="",t=!1;for(let o of i)t?t=!1:o==="\\"?t=!0:a?o===h&&(a=!1):o==='"'||o==="'"?(a=!0,h=o):o==="("?m+=1:o===")"?m>0&&(m-=1):m===0&&u.includes(o)&&(p=!0),p?(c!==""&&s.push(c.trim()),c="",p=!1):c+=o;return(d||c!=="")&&s.push(c.trim()),s}};return St=e,e.default=e,St}var xt,ss;function yr(){if(ss)return xt;ss=1;let e=ce(),i=pi();class u extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(s){let c=this.selector?this.selector.match(/,\s*/):null,p=c?c[0]:","+this.raw("between","beforeOpen");this.selector=s.join(p)}}return xt=u,u.default=u,e.registerRule(u),xt}var Ct,is;function nn(){if(is)return Ct;is=1;let e=Ve(),i=sn(),u=Je(),d=wr(),s=Ae(),c=yr();const p={empty:!0,space:!0};function m(h){for(let t=h.length-1;t>=0;t--){let o=h[t],n=o[3]||o[2];if(n)return n}}class a{constructor(t){this.input=t,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let o=new d;o.name=t[1].slice(1),o.name===""&&this.unnamedAtrule(o,t),this.init(o,t[2]);let n,r,f,l=!1,g=!1,x=[],b=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),n=t[0],n==="("||n==="["?b.push(n==="("?")":"]"):n==="{"&&b.length>0?b.push("}"):n===b[b.length-1]&&b.pop(),b.length===0)if(n===";"){o.source.end=this.getPosition(t[2]),o.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){g=!0;break}else if(n==="}"){if(x.length>0){for(f=x.length-1,r=x[f];r&&r[0]==="space";)r=x[--f];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(t);break}else x.push(t);else x.push(t);if(this.tokenizer.endOfFile()){l=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(o.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(o,"params",x),l&&(t=x[x.length-1],o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),g&&(o.nodes=[],this.current=o)}checkMissedSemicolon(t){let o=this.colon(t);if(o===!1)return;let n=0,r;for(let f=o-1;f>=0&&(r=t[f],!(r[0]!=="space"&&(n+=1,n===2)));f--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(t){let o=0,n,r,f;for(let[l,g]of t.entries()){if(n=g,r=n[0],r==="("&&(o+=1),r===")"&&(o-=1),o===0&&r===":")if(!f)this.doubleColon(n);else{if(f[0]==="word"&&f[1]==="progid")continue;return l}f=n}return!1}comment(t){let o=new u;this.init(o,t[2]),o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++;let n=t[1].slice(2,-2);if(/^\s*$/.test(n))o.text="",o.raws.left=n,o.raws.right="";else{let r=n.match(/^(\s*)([^]*\S)(\s*)$/);o.text=r[2],o.raws.left=r[1],o.raws.right=r[3]}}createTokenizer(){this.tokenizer=i(this.input)}decl(t,o){let n=new e;this.init(n,t[0][2]);let r=t[t.length-1];for(r[0]===";"&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(r[3]||r[2]||m(t)),n.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),n.raws.before+=t.shift()[1];for(n.source.start=this.getPosition(t[0][2]),n.prop="";t.length;){let b=t[0][0];if(b===":"||b==="space"||b==="comment")break;n.prop+=t.shift()[1]}n.raws.between="";let f;for(;t.length;)if(f=t.shift(),f[0]===":"){n.raws.between+=f[1];break}else f[0]==="word"&&/\w/.test(f[1])&&this.unknownWord([f]),n.raws.between+=f[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let l=[],g;for(;t.length&&(g=t[0][0],!(g!=="space"&&g!=="comment"));)l.push(t.shift());this.precheckMissedSemicolon(t);for(let b=t.length-1;b>=0;b--){if(f=t[b],f[1].toLowerCase()==="!important"){n.important=!0;let v=this.stringFrom(t,b);v=this.spacesFromEnd(t)+v,v!==" !important"&&(n.raws.important=v);break}else if(f[1].toLowerCase()==="important"){let v=t.slice(0),C="";for(let y=b;y>0;y--){let w=v[y][0];if(C.trim().indexOf("!")===0&&w!=="space")break;C=v.pop()[1]+C}C.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=C,t=v)}if(f[0]!=="space"&&f[0]!=="comment")break}t.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(n.raws.between+=l.map(b=>b[1]).join(""),l=[]),this.raw(n,"value",l.concat(t),o),n.value.includes(":")&&!o&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let o=new c;this.init(o,t[2]),o.selector="",o.raws.between="",this.current=o}end(t){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(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}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(t){if(this.spaces+=t[1],this.current.nodes){let o=this.current.nodes[this.current.nodes.length-1];o&&o.type==="rule"&&!o.raws.ownSemicolon&&(o.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let o=this.input.fromOffset(t);return{column:o.col,line:o.line,offset:t}}init(t,o){this.current.push(t),t.source={input:this.input,start:this.getPosition(o)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let o=!1,n=null,r=!1,f=null,l=[],g=t[1].startsWith("--"),x=[],b=t;for(;b;){if(n=b[0],x.push(b),n==="("||n==="[")f||(f=b),l.push(n==="("?")":"]");else if(g&&r&&n==="{")f||(f=b),l.push("}");else if(l.length===0)if(n===";")if(r){this.decl(x,g);return}else break;else if(n==="{"){this.rule(x);return}else if(n==="}"){this.tokenizer.back(x.pop()),o=!0;break}else n===":"&&(r=!0);else n===l[l.length-1]&&(l.pop(),l.length===0&&(f=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(o=!0),l.length>0&&this.unclosedBracket(f),o&&r){if(!g)for(;x.length&&(b=x[x.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,g)}else this.unknownWord(x)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,o,n,r){let f,l,g=n.length,x="",b=!0,v,C;for(let y=0;y<g;y+=1)f=n[y],l=f[0],l==="space"&&y===g-1&&!r?b=!1:l==="comment"?(C=n[y-1]?n[y-1][0]:"empty",v=n[y+1]?n[y+1][0]:"empty",!p[C]&&!p[v]?x.slice(-1)===","?b=!1:x+=f[1]:b=!1):x+=f[1];if(!b){let y=n.reduce((w,S)=>w+S[1],"");t.raws[o]={raw:y,value:x}}t[o]=x}rule(t){t.pop();let o=new c;this.init(o,t[0][2]),o.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(o,"selector",t),this.current=o}spacesAndCommentsFromEnd(t){let o,n="";for(;t.length&&(o=t[t.length-1][0],!(o!=="space"&&o!=="comment"));)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let o,n="";for(;t.length&&(o=t[0][0],!(o!=="space"&&o!=="comment"));)n+=t.shift()[1];return n}spacesFromEnd(t){let o,n="";for(;t.length&&(o=t[t.length-1][0],o==="space");)n=t.pop()[1]+n;return n}stringFrom(t,o){let n="";for(let r=o;r<t.length;r++)n+=t[r][1];return t.splice(o,t.length-o),n}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,o){throw this.input.error("At-rule without name",{offset:o[2]},{offset:o[2]+o[1].length})}}return Ct=a,Ct}var Rt,ns;function br(){if(ns)return Rt;ns=1;let e=ce(),i=nn(),u=Ge();function d(s,c){let p=new u(s,c),m=new i(p);try{m.parse()}catch(a){throw a}return m.root}return Rt=d,d.default=d,e.registerParse(d),Rt}var Ot,os;function di(){if(os)return Ot;os=1;let{isClean:e,my:i}=dr(),u=fi(),d=We(),s=ce(),c=mr(),p=hi(),m=gr(),a=br(),h=Ae();const t={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},o={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},n={Once:!0,postcssPlugin:!0,prepare:!0},r=0;function f(C){return typeof C=="object"&&typeof C.then=="function"}function l(C){let y=!1,w=t[C.type];return C.type==="decl"?y=C.prop.toLowerCase():C.type==="atrule"&&(y=C.name.toLowerCase()),y&&C.append?[w,w+"-"+y,r,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:C.append?[w,r,w+"Exit"]:[w,w+"Exit"]}function g(C){let y;return C.type==="document"?y=["Document",r,"DocumentExit"]:C.type==="root"?y=["Root",r,"RootExit"]:y=l(C),{eventIndex:0,events:y,iterator:0,node:C,visitorIndex:0,visitors:[]}}function x(C){return C[e]=!1,C.nodes&&C.nodes.forEach(y=>x(y)),C}let b={};class v{constructor(y,w,S){this.stringified=!1,this.processed=!1;let P;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))P=x(w);else if(w instanceof v||w instanceof m)P=x(w.root),w.map&&(typeof S.map=="undefined"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=w.map);else{let A=a;S.syntax&&(A=S.syntax.parse),S.parser&&(A=S.parser),A.parse&&(A=A.parse);try{P=A(w,S)}catch(_){this.processed=!0,this.error=_}P&&!P[i]&&s.rebuild(P)}this.result=new m(y,P,S),this.helpers=ie(Q({},b),{postcss:b,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(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let S=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=S.postcssPlugin,y.setMessage()):S.postcssVersion}catch(P){console&&console.error&&console.error(P)}return y}prepareVisitors(){this.listeners={};let y=(w,S,P)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([w,P])};for(let w of this.plugins)if(typeof w=="object")for(let S in w){if(!o[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!n[S])if(typeof w[S]=="object")for(let P in w[S])P==="*"?y(w,S,w[S][P]):y(w,S+"-"+P.toLowerCase(),w[S][P]);else typeof w[S]=="function"&&y(w,S,w[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],S=this.runOnRoot(w);if(f(S))try{await S}catch(P){throw this.handleError(P)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];){y[e]=!0;let w=[g(y)];for(;w.length>0;){let S=this.visitTick(w);if(f(S))try{await S}catch(P){let A=w[w.length-1].node;throw this.handleError(P,A)}}}if(this.listeners.OnceExit)for(let[w,S]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let P=y.nodes.map(A=>S(A,this.helpers));await Promise.all(P)}else await S(y,this.helpers)}catch(P){throw this.handleError(P)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(S=>y.Once(S,this.helpers));return f(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,w=d;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let P=new u(w,this.result.root,this.result.opts).generate();return this.result.css=P[0],this.result.map=P[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 y of this.plugins){let w=this.runOnRoot(y);if(f(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];)y[e]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[S,P]of y){this.result.lastPlugin=S;let A;try{A=P(w,this.helpers)}catch(_){throw this.handleError(_,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(f(A))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:S,visitors:P}=w;if(S.type!=="root"&&S.type!=="document"&&!S.parent){y.pop();return}if(P.length>0&&w.visitorIndex<P.length){let[_,U]=P[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===P.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=_;try{return U(S.toProxy(),this.helpers)}catch(I){throw this.handleError(I,S)}}if(w.iterator!==0){let _=w.iterator,U;for(;U=S.nodes[S.indexes[_]];)if(S.indexes[_]+=1,!U[e]){U[e]=!0,y.push(g(U));return}w.iterator=0,delete S.indexes[_]}let A=w.events;for(;w.eventIndex<A.length;){let _=A[w.eventIndex];if(w.eventIndex+=1,_===r){S.nodes&&S.nodes.length&&(S[e]=!0,w.iterator=S.getIterator());return}else if(this.listeners[_]){w.visitors=this.listeners[_];return}}y.pop()}walkSync(y){y[e]=!0;let w=l(y);for(let S of w)if(S===r)y.nodes&&y.each(P=>{P[e]||this.walkSync(P)});else{let P=this.listeners[S];if(P&&this.visitSync(P,y.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 v.registerPostcss=C=>{b=C},Ot=v,v.default=v,h.registerLazyResult(v),c.registerLazyResult(v),Ot}var Pt,ls;function on(){if(ls)return Pt;ls=1;let e=fi(),i=We(),u=hi(),d=br();const s=gr();class c{constructor(m,a,h){a=a.toString(),this.stringified=!1,this._processor=m,this._css=a,this._opts=h,this._map=void 0;let t,o=i;this.result=new s(this._processor,t,this._opts),this.result.css=a;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let r=new e(o,t,this._opts,a);if(r.isMap()){let[f,l]=r.generate();f&&(this.result.css=f),l&&(this.result.map=l)}else r.clearAnnotation(),this.result.css=r.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(m){return this.async().catch(m)}finally(m){return this.async().then(m,m)}sync(){if(this.error)throw this.error;return this.result}then(m,a){return this.async().then(m,a)}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 m,a=d;try{m=a(this._css,this._opts)}catch(h){this.error=h}if(this.error)throw this.error;return this._root=m,m}get[Symbol.toStringTag](){return"NoWorkResult"}}return Pt=c,c.default=c,Pt}var _t,as;function ln(){if(as)return _t;as=1;let e=on(),i=di(),u=mr(),d=Ae();class s{constructor(p=[]){this.version="8.4.38",this.plugins=this.normalize(p)}normalize(p){let m=[];for(let a of p)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))m=m.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)m.push(a);else if(typeof a=="function")m.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return m}process(p,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new e(this,p,m):new i(this,p,m)}use(p){return this.plugins=this.plugins.concat(this.normalize([p])),this}}return _t=s,s.default=s,d.registerProcessor(s),u.registerProcessor(s),_t}var Et,us;function an(){if(us)return Et;us=1;let e=Ve(),i=ui(),u=Je(),d=wr(),s=Ge(),c=Ae(),p=yr();function m(a,h){if(Array.isArray(a))return a.map(f=>m(f));let n=a,{inputs:t}=n,o=Re(n,["inputs"]);if(t){h=[];for(let f of t){let l=ie(Q({},f),{__proto__:s.prototype});l.map&&(l.map=ie(Q({},l.map),{__proto__:i.prototype})),h.push(l)}}if(o.nodes&&(o.nodes=a.nodes.map(f=>m(f,h))),o.source){let r=o.source,{inputId:f}=r,l=Re(r,["inputId"]);o.source=l,f!=null&&(o.source.input=h[f])}if(o.type==="root")return new c(o);if(o.type==="decl")return new e(o);if(o.type==="rule")return new p(o);if(o.type==="comment")return new u(o);if(o.type==="atrule")return new d(o);throw new Error("Unknown node type: "+a.type)}return Et=m,m.default=m,Et}var At,fs;function un(){if(fs)return At;fs=1;let e=pr(),i=Ve(),u=di(),d=ce(),s=ln(),c=We(),p=an(),m=mr(),a=ci(),h=Je(),t=wr(),o=gr(),n=Ge(),r=br(),f=pi(),l=yr(),g=Ae(),x=$e();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new s(v)}return b.plugin=function(C,y){let w=!1;function S(...A){console&&console.warn&&!w&&(w=!0,console.warn(C+`: postcss.plugin was deprecated. Migration guide:
|
|
38
|
+
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:
|
|
39
|
+
https://www.w3ctech.com/topic/2226`));let _=y(...A);return _.postcssPlugin=C,_.postcssVersion=new s().version,_}let P;return Object.defineProperty(S,"postcss",{get(){return P||(P=S()),P}}),S.process=function(A,_,U){return b([S(U)]).process(A,_)},S},b.stringify=c,b.parse=r,b.fromJSON=p,b.list=f,b.comment=v=>new h(v),b.atRule=v=>new t(v),b.decl=v=>new i(v),b.rule=v=>new l(v),b.root=v=>new g(v),b.document=v=>new m(v),b.CssSyntaxError=e,b.Declaration=i,b.Container=d,b.Processor=s,b.Document=m,b.Comment=h,b.Warning=a,b.AtRule=t,b.Result=o,b.Input=n,b.Rule=l,b.Root=g,b.Node=x,u.registerPostcss(b),At=b,b.default=b,At}var fn=un();const V=Ki(fn);V.stringify;V.fromJSON;V.plugin;V.parse;V.list;V.document;V.comment;V.atRule;V.rule;V.decl;V.root;V.CssSyntaxError;V.Declaration;V.Container;V.Processor;V.Document;V.Comment;V.Warning;V.AtRule;V.Result;V.Input;V.Rule;V.Root;V.Node;function hn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cn(e){if(e.__esModule)return e;var i=e.default;if(typeof i=="function"){var u=function d(){return this instanceof d?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};u.prototype=i.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(e).forEach(function(d){var s=Object.getOwnPropertyDescriptor(e,d);Object.defineProperty(u,d,s.get?s:{enumerable:!0,get:function(){return e[d]}})}),u}var De={exports:{}},hs;function pn(){if(hs)return De.exports;hs=1;var e=String,i=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}};return De.exports=i(),De.exports.createColors=i,De.exports}const dn={},mn=Object.freeze(Object.defineProperty({__proto__:null,default:dn},Symbol.toStringTag,{value:"Module"})),re=cn(mn);var kt,cs;function vr(){if(cs)return kt;cs=1;let e=pn(),i=re;class u extends Error{constructor(s,c,p,m,a,h){super(s),this.name="CssSyntaxError",this.reason=s,a&&(this.file=a),m&&(this.source=m),h&&(this.plugin=h),typeof c!="undefined"&&typeof p!="undefined"&&(typeof c=="number"?(this.line=c,this.column=p):(this.line=c.line,this.column=c.column,this.endLine=p.line,this.endColumn=p.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,u)}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(s){if(!this.source)return"";let c=this.source;s==null&&(s=e.isColorSupported),i&&s&&(c=i(c));let p=c.split(/\r?\n/),m=Math.max(this.line-3,0),a=Math.min(this.line+2,p.length),h=String(a).length,t,o;if(s){let{bold:n,gray:r,red:f}=e.createColors(!0);t=l=>n(f(l)),o=l=>r(l)}else t=o=n=>n;return p.slice(m,a).map((n,r)=>{let f=m+1+r,l=" "+(" "+f).slice(-h)+" | ";if(f===this.line){let g=o(l.replace(/\d/g," "))+n.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+o(l)+n+`
|
|
40
|
+
`+g+t("^")}return" "+o(l)+n}).join(`
|
|
41
|
+
`)}toString(){let s=this.showSourceCode();return s&&(s=`
|
|
43
42
|
|
|
44
|
-
`+
|
|
45
|
-
`),this.name+": "+this.message+
|
|
43
|
+
`+s+`
|
|
44
|
+
`),this.name+": "+this.message+s}}return kt=u,u.default=u,kt}var Fe={},ps;function Sr(){return ps||(ps=1,Fe.isClean=Symbol("isClean"),Fe.my=Symbol("my")),Fe}var Mt,ds;function mi(){if(ds)return Mt;ds=1;const e={after:`
|
|
46
45
|
`,beforeClose:`
|
|
47
46
|
`,beforeComment:`
|
|
48
47
|
`,beforeDecl:`
|
|
49
48
|
`,beforeOpen:" ",beforeRule:`
|
|
50
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function
|
|
51
|
-
`)){let
|
|
52
|
-
`)&&(
|
|
53
|
-
`)&&(
|
|
54
|
-
`)&&(
|
|
55
|
-
`)&&(
|
|
56
|
-
`);return
|
|
57
|
-
`?(
|
|
58
|
-
`);
|
|
49
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function i(d){return d[0].toUpperCase()+d.slice(1)}class u{constructor(s){this.builder=s}atrule(s,c){let p="@"+s.name,m=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName!="undefined"?p+=s.raws.afterName:m&&(p+=" "),s.nodes)this.block(s,p+m);else{let a=(s.raws.between||"")+(c?";":"");this.builder(p+m+a,s)}}beforeAfter(s,c){let p;s.type==="decl"?p=this.raw(s,null,"beforeDecl"):s.type==="comment"?p=this.raw(s,null,"beforeComment"):c==="before"?p=this.raw(s,null,"beforeRule"):p=this.raw(s,null,"beforeClose");let m=s.parent,a=0;for(;m&&m.type!=="root";)a+=1,m=m.parent;if(p.includes(`
|
|
50
|
+
`)){let h=this.raw(s,null,"indent");if(h.length)for(let t=0;t<a;t++)p+=h}return p}block(s,c){let p=this.raw(s,"between","beforeOpen");this.builder(c+p+"{",s,"start");let m;s.nodes&&s.nodes.length?(this.body(s),m=this.raw(s,"after")):m=this.raw(s,"after","emptyBody"),m&&this.builder(m),this.builder("}",s,"end")}body(s){let c=s.nodes.length-1;for(;c>0&&s.nodes[c].type==="comment";)c-=1;let p=this.raw(s,"semicolon");for(let m=0;m<s.nodes.length;m++){let a=s.nodes[m],h=this.raw(a,"before");h&&this.builder(h),this.stringify(a,c!==m||p)}}comment(s){let c=this.raw(s,"left","commentLeft"),p=this.raw(s,"right","commentRight");this.builder("/*"+c+s.text+p+"*/",s)}decl(s,c){let p=this.raw(s,"between","colon"),m=s.prop+p+this.rawValue(s,"value");s.important&&(m+=s.raws.important||" !important"),c&&(m+=";"),this.builder(m,s)}document(s){this.body(s)}raw(s,c,p){let m;if(p||(p=c),c&&(m=s.raws[c],typeof m!="undefined"))return m;let a=s.parent;if(p==="before"&&(!a||a.type==="root"&&a.first===s||a&&a.type==="document"))return"";if(!a)return e[p];let h=s.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[p]!="undefined")return h.rawCache[p];if(p==="before"||p==="after")return this.beforeAfter(s,p);{let t="raw"+i(p);this[t]?m=this[t](h,s):h.walk(o=>{if(m=o.raws[c],typeof m!="undefined")return!1})}return typeof m=="undefined"&&(m=e[p]),h.rawCache[p]=m,m}rawBeforeClose(s){let c;return s.walk(p=>{if(p.nodes&&p.nodes.length>0&&typeof p.raws.after!="undefined")return c=p.raws.after,c.includes(`
|
|
51
|
+
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawBeforeComment(s,c){let p;return s.walkComments(m=>{if(typeof m.raws.before!="undefined")return p=m.raws.before,p.includes(`
|
|
52
|
+
`)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p=="undefined"?p=this.raw(c,null,"beforeDecl"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeDecl(s,c){let p;return s.walkDecls(m=>{if(typeof m.raws.before!="undefined")return p=m.raws.before,p.includes(`
|
|
53
|
+
`)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p=="undefined"?p=this.raw(c,null,"beforeRule"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeOpen(s){let c;return s.walk(p=>{if(p.type!=="decl"&&(c=p.raws.between,typeof c!="undefined"))return!1}),c}rawBeforeRule(s){let c;return s.walk(p=>{if(p.nodes&&(p.parent!==s||s.first!==p)&&typeof p.raws.before!="undefined")return c=p.raws.before,c.includes(`
|
|
54
|
+
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawColon(s){let c;return s.walkDecls(p=>{if(typeof p.raws.between!="undefined")return c=p.raws.between.replace(/[^\s:]/g,""),!1}),c}rawEmptyBody(s){let c;return s.walk(p=>{if(p.nodes&&p.nodes.length===0&&(c=p.raws.after,typeof c!="undefined"))return!1}),c}rawIndent(s){if(s.raws.indent)return s.raws.indent;let c;return s.walk(p=>{let m=p.parent;if(m&&m!==s&&m.parent&&m.parent===s&&typeof p.raws.before!="undefined"){let a=p.raws.before.split(`
|
|
55
|
+
`);return c=a[a.length-1],c=c.replace(/\S/g,""),!1}}),c}rawSemicolon(s){let c;return s.walk(p=>{if(p.nodes&&p.nodes.length&&p.last.type==="decl"&&(c=p.raws.semicolon,typeof c!="undefined"))return!1}),c}rawValue(s,c){let p=s[c],m=s.raws[c];return m&&m.value===p?m.raw:p}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,c){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,c)}}return Mt=u,u.default=u,Mt}var Nt,ms;function He(){if(ms)return Nt;ms=1;let e=mi();function i(u,d){new e(d).stringify(u)}return Nt=i,i.default=i,Nt}var It,gs;function Ye(){if(gs)return It;gs=1;let{isClean:e,my:i}=Sr(),u=vr(),d=mi(),s=He();function c(m,a){let h=new m.constructor;for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t)||t==="proxyCache")continue;let o=m[t],n=typeof o;t==="parent"&&n==="object"?a&&(h[t]=a):t==="source"?h[t]=o:Array.isArray(o)?h[t]=o.map(r=>c(r,h)):(n==="object"&&o!==null&&(o=c(o)),h[t]=o)}return h}class p{constructor(a={}){this.raws={},this[e]=!1,this[i]=!0;for(let h in a)if(h==="nodes"){this.nodes=[];for(let t of a[h])typeof t.clone=="function"?this.append(t.clone()):this.append(t)}else this[h]=a[h]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let h=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${h.input.from}:${h.start.line}:${h.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let h in a)this[h]=a[h];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let h=c(this);for(let t in a)h[t]=a[t];return h}cloneAfter(a={}){let h=this.clone(a);return this.parent.insertAfter(this,h),h}cloneBefore(a={}){let h=this.clone(a);return this.parent.insertBefore(this,h),h}error(a,h={}){if(this.source){let{end:t,start:o}=this.rangeBy(h);return this.source.input.error(a,{column:o.column,line:o.line},{column:t.column,line:t.line},h)}return new u(a)}getProxyProcessor(){return{get(a,h){return h==="proxyOf"?a:h==="root"?()=>a.root().toProxy():a[h]},set(a,h,t){return a[h]===t||(a[h]=t,(h==="prop"||h==="value"||h==="name"||h==="params"||h==="important"||h==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,h){let t=this.source.start;if(a.index)t=this.positionInside(a.index,h);else if(a.word){h=this.toString();let o=h.indexOf(a.word);o!==-1&&(t=this.positionInside(o,h))}return t}positionInside(a,h){let t=h||this.toString(),o=this.source.start.column,n=this.source.start.line;for(let r=0;r<a;r++)t[r]===`
|
|
56
|
+
`?(o=1,n+=1):o+=1;return{column:o,line:n}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let h={column:this.source.start.column,line:this.source.start.line},t=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:h.column+1,line:h.line};if(a.word){let o=this.toString(),n=o.indexOf(a.word);n!==-1&&(h=this.positionInside(n,o),t=this.positionInside(n+a.word.length,o))}else a.start?h={column:a.start.column,line:a.start.line}:a.index&&(h=this.positionInside(a.index)),a.end?t={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?t=this.positionInside(a.endIndex):a.index&&(t=this.positionInside(a.index+1));return(t.line<h.line||t.line===h.line&&t.column<=h.column)&&(t={column:h.column+1,line:h.line}),{end:t,start:h}}raw(a,h){return new d().raw(this,a,h)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let h=this,t=!1;for(let o of a)o===this?t=!0:t?(this.parent.insertAfter(h,o),h=o):this.parent.insertBefore(h,o);t||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,h){let t={},o=h==null;h=h||new Map;let n=0;for(let r in this){if(!Object.prototype.hasOwnProperty.call(this,r)||r==="parent"||r==="proxyCache")continue;let f=this[r];if(Array.isArray(f))t[r]=f.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,h):l);else if(typeof f=="object"&&f.toJSON)t[r]=f.toJSON(null,h);else if(r==="source"){let l=h.get(f.input);l==null&&(l=n,h.set(f.input,n),n++),t[r]={end:f.end,inputId:l,start:f.start}}else t[r]=f}return o&&(t.inputs=[...h.keys()].map(r=>r.toJSON())),t}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=s){a.stringify&&(a=a.stringify);let h="";return a(this,t=>{h+=t}),h}warn(a,h,t){let o={node:this};for(let n in t)o[n]=t[n];return a.warn(h,o)}get proxyOf(){return this}}return It=p,p.default=p,It}var Lt,ws;function Qe(){if(ws)return Lt;ws=1;let e=Ye();class i extends e{constructor(d){d&&typeof d.value!="undefined"&&typeof d.value!="string"&&(d=ie(Q({},d),{value:String(d.value)})),super(d),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Lt=i,i.default=i,Lt}var Ut,ys;function gn(){if(ys)return Ut;ys=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Ut={nanoid:(d=21)=>{let s="",c=d;for(;c--;)s+=e[Math.random()*64|0];return s},customAlphabet:(d,s=21)=>(c=s)=>{let p="",m=c;for(;m--;)p+=d[Math.random()*d.length|0];return p}},Ut}var Dt,bs;function gi(){if(bs)return Dt;bs=1;let{SourceMapConsumer:e,SourceMapGenerator:i}=re,{existsSync:u,readFileSync:d}=re,{dirname:s,join:c}=re;function p(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class m{constructor(h,t){if(t.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let o=t.map?t.map.prev:void 0,n=this.loadMap(t.from,o);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=s(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(h){let t=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,r=/^data:application\/json,/;if(n.test(h)||r.test(h))return decodeURIComponent(h.substr(RegExp.lastMatch.length));if(t.test(h)||o.test(h))return p(h.substr(RegExp.lastMatch.length));let f=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+f)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let t=h.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let o=h.lastIndexOf(t.pop()),n=h.indexOf("*/",o);o>-1&&n>-1&&(this.annotation=this.getAnnotationURL(h.substring(o,n)))}loadFile(h){if(this.root=s(h),u(h))return this.mapFile=h,d(h,"utf-8").toString().trim()}loadMap(h,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let o=t(h);if(o){let n=this.loadFile(o);if(!n)throw new Error("Unable to load previous source map: "+o.toString());return n}}else{if(t instanceof e)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let o=this.annotation;return h&&(o=c(s(h),o)),this.loadFile(o)}}}startWith(h,t){return h?h.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Dt=m,m.default=m,Dt}var Ft,vs;function Ke(){if(vs)return Ft;vs=1;let{SourceMapConsumer:e,SourceMapGenerator:i}=re,{fileURLToPath:u,pathToFileURL:d}=re,{isAbsolute:s,resolve:c}=re,{nanoid:p}=gn(),m=re,a=vr(),h=gi(),t=Symbol("fromOffsetCache"),o=!!(e&&i),n=!!(c&&s);class r{constructor(l,g={}){if(l===null||typeof l=="undefined"||typeof l=="object"&&!l.toString)throw new Error(`PostCSS received ${l} instead of CSS string`);if(this.css=l.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!n||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=c(g.from)),n&&o){let x=new h(this.css,g);if(x.text){this.map=x;let b=x.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+p(6)+">"),this.map&&(this.map.file=this.from)}error(l,g,x,b={}){let v,C,y;if(g&&typeof g=="object"){let S=g,P=x;if(typeof S.offset=="number"){let A=this.fromOffset(S.offset);g=A.line,x=A.col}else g=S.line,x=S.column;if(typeof P.offset=="number"){let A=this.fromOffset(P.offset);C=A.line,y=A.col}else C=P.line,y=P.column}else if(!x){let S=this.fromOffset(g);g=S.line,x=S.col}let w=this.origin(g,x,C,y);return w?v=new a(l,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,b.plugin):v=new a(l,C===void 0?g:{column:x,line:g},C===void 0?x:{column:y,line:C},this.css,this.file,b.plugin),v.input={column:x,endColumn:y,endLine:C,line:g,source:this.css},this.file&&(d&&(v.input.url=d(this.file).toString()),v.input.file=this.file),v}fromOffset(l){let g,x;if(this[t])x=this[t];else{let v=this.css.split(`
|
|
57
|
+
`);x=new Array(v.length);let C=0;for(let y=0,w=v.length;y<w;y++)x[y]=C,C+=v[y].length+1;this[t]=x}g=x[x.length-1];let b=0;if(l>=g)b=x.length-1;else{let v=x.length-2,C;for(;b<v;)if(C=b+(v-b>>1),l<x[C])v=C-1;else if(l>=x[C+1])b=C+1;else{b=C;break}}return{col:l-x[b]+1,line:b+1}}mapResolve(l){return/^\w+:\/\//.test(l)?l:c(this.map.consumer().sourceRoot||this.map.root||".",l)}origin(l,g,x,b){if(!this.map)return!1;let v=this.map.consumer(),C=v.originalPositionFor({column:g,line:l});if(!C.source)return!1;let y;typeof x=="number"&&(y=v.originalPositionFor({column:b,line:x}));let w;s(C.source)?w=d(C.source):w=new URL(C.source,this.map.consumer().sourceRoot||d(this.map.mapFile));let S={column:C.column,endColumn:y&&y.column,endLine:y&&y.line,line:C.line,url:w.toString()};if(w.protocol==="file:")if(u)S.file=u(w);else throw new Error("file: protocol is not available in this PostCSS build");let P=v.sourceContentFor(C.source);return P&&(S.source=P),S}toJSON(){let l={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(l[g]=this[g]);return this.map&&(l.map=Q({},this.map),l.map.consumerCache&&(l.map.consumerCache=void 0)),l}get from(){return this.file||this.id}}return Ft=r,r.default=r,m&&m.registerInput&&m.registerInput(r),Ft}var zt,Ss;function wi(){if(Ss)return zt;Ss=1;let{SourceMapConsumer:e,SourceMapGenerator:i}=re,{dirname:u,relative:d,resolve:s,sep:c}=re,{pathToFileURL:p}=re,m=Ke(),a=!!(e&&i),h=!!(u&&s&&d&&c);class t{constructor(n,r,f,l){this.stringify=n,this.mapOpts=f.map||{},this.root=r,this.opts=f,this.css=l,this.originalCSS=l,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let n;this.isInline()?n="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?n=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?n=this.mapOpts.annotation(this.opts.to,this.root):n=this.outputFile()+".map";let r=`
|
|
59
58
|
`;this.css.includes(`\r
|
|
60
|
-
`)&&(
|
|
61
|
-
`),this.css+=
|
|
62
|
-
`),t=l.length-n):t+=l.length,a&&u!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.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(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let i=this.opts.to?oi(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=oi($o(i,this.mapOpts.annotation)));let s=Po(i,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new jc(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let s=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Js){let i=Js(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Lo==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var Fo=Xc;let Jc=Ii,Ar=class extends Jc{constructor(e){super(e),this.type="comment"}};var _i=Ar;Ar.default=Ar;let{isClean:Bo,my:Uo}=Mt,zo=Di,Vo=_i,Kc=Ii,Wo,ts,is,Go;function Yo(r){return r.map(e=>(e.nodes&&(e.nodes=Yo(e.nodes)),delete e.source,e))}function jo(r){if(r[Bo]=!1,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)jo(e)}let Ne=class Zo extends Kc{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let s of i)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),i,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],s=e(this.proxyOf.nodes[i],i),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...i)=>e[t](...i.map(s=>typeof s=="function"?(o,n)=>s(o.toProxy(),n):s)):t==="every"||t==="some"?i=>e[t]((s,...o)=>i(s.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let i=this.index(e),s=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let n of s)this.proxyOf.nodes.splice(i+1,0,n);let o;for(let n in this.indexes)o=this.indexes[n],i<o&&(this.indexes[n]=o+s.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),s=i===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[i],s).reverse();i=this.index(e);for(let l of o)this.proxyOf.nodes.splice(i,0,l);let n;for(let l in this.indexes)n=this.indexes[l],i<=n&&(this.indexes[l]=n+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Yo(Wo(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new zo(e)]}else if(e.selector)e=[new ts(e)];else if(e.name)e=[new is(e)];else if(e.text)e=[new Vo(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[Uo]||Zo.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Bo]&&jo(s),typeof s.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let s of i)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+i.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let s;try{s=e(t,i)}catch(o){throw t.addToError(o)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,s)}):this.walk((i,s)=>{if(i.type==="atrule"&&i.name===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="atrule")return t(i,s)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,s)}):this.walk((i,s)=>{if(i.type==="decl"&&i.prop===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="decl")return t(i,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,s)}):this.walk((i,s)=>{if(i.type==="rule"&&i.selector===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="rule")return t(i,s)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Ne.registerParse=r=>{Wo=r};Ne.registerRule=r=>{ts=r};Ne.registerAtRule=r=>{is=r};Ne.registerRoot=r=>{Go=r};var Be=Ne;Ne.default=Ne;Ne.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,is.prototype):r.type==="rule"?Object.setPrototypeOf(r,ts.prototype):r.type==="decl"?Object.setPrototypeOf(r,zo.prototype):r.type==="comment"?Object.setPrototypeOf(r,Vo.prototype):r.type==="root"&&Object.setPrototypeOf(r,Go.prototype),r[Uo]=!0,r.nodes&&r.nodes.forEach(e=>{Ne.rebuild(e)})};let Qc=Be,Ho,Xo,St=class extends Qc{constructor(e){super(U({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new Ho(new Xo,this,e).stringify()}};St.registerLazyResult=r=>{Ho=r};St.registerProcessor=r=>{Xo=r};var rs=St;St.default=St;let Rr=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Jo=Rr;Rr.default=Rr;let qc=Jo,Nr=class{constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new qc(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var ss=Nr;Nr.default=Nr;const Gi=39,Ks=34,Wt=92,Qs=47,Gt=10,at=32,Yt=12,jt=9,Zt=13,eh=91,th=93,ih=40,rh=41,sh=123,nh=125,oh=59,lh=42,ah=58,uh=64,Ht=/[\t\n\f\r "#'()/;[\\\]{}]/g,Xt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ch=/.[\r\n"'(/\\]/,qs=/[\da-f]/i;var hh=function(e,t={}){let i=e.css.valueOf(),s=t.ignoreErrors,o,n,l,a,u,c,h,f,g,d,A=i.length,p=0,m=[],w=[];function v(){return p}function x(I){throw e.error("Unclosed "+I,p)}function R(){return w.length===0&&p>=A}function D(I){if(w.length)return w.pop();if(p>=A)return;let J=I?I.ignoreUnclosed:!1;switch(o=i.charCodeAt(p),o){case Gt:case at:case jt:case Zt:case Yt:{n=p;do n+=1,o=i.charCodeAt(n);while(o===at||o===Gt||o===jt||o===Zt||o===Yt);d=["space",i.slice(p,n)],p=n-1;break}case eh:case th:case sh:case nh:case ah:case oh:case rh:{let z=String.fromCharCode(o);d=[z,z,p];break}case ih:{if(f=m.length?m.pop()[1]:"",g=i.charCodeAt(p+1),f==="url"&&g!==Gi&&g!==Ks&&g!==at&&g!==Gt&&g!==jt&&g!==Yt&&g!==Zt){n=p;do{if(c=!1,n=i.indexOf(")",n+1),n===-1)if(s||J){n=p;break}else x("bracket");for(h=n;i.charCodeAt(h-1)===Wt;)h-=1,c=!c}while(c);d=["brackets",i.slice(p,n+1),p,n],p=n}else n=i.indexOf(")",p+1),a=i.slice(p,n+1),n===-1||ch.test(a)?d=["(","(",p]:(d=["brackets",a,p,n],p=n);break}case Gi:case Ks:{l=o===Gi?"'":'"',n=p;do{if(c=!1,n=i.indexOf(l,n+1),n===-1)if(s||J){n=p+1;break}else x("string");for(h=n;i.charCodeAt(h-1)===Wt;)h-=1,c=!c}while(c);d=["string",i.slice(p,n+1),p,n],p=n;break}case uh:{Ht.lastIndex=p+1,Ht.test(i),Ht.lastIndex===0?n=i.length-1:n=Ht.lastIndex-2,d=["at-word",i.slice(p,n+1),p,n],p=n;break}case Wt:{for(n=p,u=!0;i.charCodeAt(n+1)===Wt;)n+=1,u=!u;if(o=i.charCodeAt(n+1),u&&o!==Qs&&o!==at&&o!==Gt&&o!==jt&&o!==Zt&&o!==Yt&&(n+=1,qs.test(i.charAt(n)))){for(;qs.test(i.charAt(n+1));)n+=1;i.charCodeAt(n+1)===at&&(n+=1)}d=["word",i.slice(p,n+1),p,n],p=n;break}default:{o===Qs&&i.charCodeAt(p+1)===lh?(n=i.indexOf("*/",p+2)+1,n===0&&(s||J?n=i.length:x("comment")),d=["comment",i.slice(p,n+1),p,n],p=n):(Xt.lastIndex=p+1,Xt.test(i),Xt.lastIndex===0?n=i.length-1:n=Xt.lastIndex-2,d=["word",i.slice(p,n+1),p,n],m.push(d),p=n);break}}return p++,d}function Z(I){w.push(I)}return{back:Z,endOfFile:R,nextToken:D,position:v}};let Ko=Be,di=class extends Ko{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 ns=di;di.default=di;Ko.registerAtRule(di);let Qo=Be,qo,el,et=class extends Qo{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let s=super.normalize(e);if(t){if(i==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of s)o.raws.before=t.raws.before}return s}removeChild(e,t){let i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new qo(new el,this,e).stringify()}};et.registerLazyResult=r=>{qo=r};et.registerProcessor=r=>{el=r};var It=et;et.default=et;Qo.registerRoot(et);let Et={comma(r){return Et.split(r,[","],!0)},space(r){let e=[" ",`
|
|
63
|
-
`," "];return Et.split(r,e)},split(r,e,t){let i=[],s="",o=!1,n=0,l=!1,a="",u=!1;for(let c of r)u?u=!1:c==="\\"?u=!0:l?c===a&&(l=!1):c==='"'||c==="'"?(l=!0,a=c):c==="("?n+=1:c===")"?n>0&&(n-=1):n===0&&e.includes(c)&&(o=!0),o?(s!==""&&i.push(s.trim()),s="",o=!1):s+=c;return(t||s!=="")&&i.push(s.trim()),i}};var tl=Et;Et.default=Et;let il=Be,fh=tl,mi=class extends il{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return fh.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}};var os=mi;mi.default=mi;il.registerRule(mi);let ph=Di,dh=hh,mh=_i,gh=ns,yh=It,en=os;const tn={empty:!0,space:!0};function wh(r){for(let e=r.length-1;e>=0;e--){let t=r[e],i=t[3]||t[2];if(i)return i}}let vh=class{constructor(e){this.input=e,this.root=new yh,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 gh;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,s,o,n=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?u.push(i==="("?")":"]"):i==="{"&&u.length>0?u.push("}"):i===u[u.length-1]&&u.pop(),u.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(a.length>0){for(o=a.length-1,s=a[o];s&&s[0]==="space";)s=a[--o];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),n&&(e=a[a.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=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,s;for(let o=t-1;o>=0&&(s=e[o],!(s[0]!=="space"&&(i+=1,i===2)));o--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,i,s,o;for(let[n,l]of e.entries()){if(i=l,s=i[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!o)this.doubleColon(i);else{if(o[0]==="word"&&o[1]==="progid")continue;return n}o=i}return!1}comment(e){let t=new mh;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let s=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=dh(this.input)}decl(e,t){let i=new ph;this.init(i,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||wh(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){i.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),i.raws.between+=o[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let n=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="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"){i.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(o[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let f=u;f>0;f--){let g=c[f][0];if(h.trim().indexOf("!")===0&&g!=="space")break;h=c.pop()[1]+h}h.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=h,e=c)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(i.raws.between+=n.map(u=>u[1]).join(""),n=[]),this.raw(i,"value",n.concat(e),t),i.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 en;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,i=null,s=!1,o=null,n=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(i=u[0],a.push(u),i==="("||i==="[")o||(o=u),n.push(i==="("?")":"]");else if(l&&s&&i==="{")o||(o=u),n.push("}");else if(n.length===0)if(i===";")if(s){this.decl(a,l);return}else break;else if(i==="{"){this.rule(a);return}else if(i==="}"){this.tokenizer.back(a.pop()),t=!0;break}else i===":"&&(s=!0);else i===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&&s){if(!l)for(;a.length&&(u=a[a.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}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,i,s){let o,n,l=i.length,a="",u=!0,c,h;for(let f=0;f<l;f+=1)o=i[f],n=o[0],n==="space"&&f===l-1&&!s?u=!1:n==="comment"?(h=i[f-1]?i[f-1][0]:"empty",c=i[f+1]?i[f+1][0]:"empty",!tn[h]&&!tn[c]?a.slice(-1)===","?u=!1:a+=o[1]:u=!1):a+=o[1];if(!u){let f=i.reduce((g,d)=>g+d[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new en;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let s=t;s<e.length;s++)i+=e[s][1];return e.splice(t,e.length-t),i}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 bh=vh;let Ch=Be,Sh=bh,Eh=Oi;function gi(r,e){let t=new Eh(r,e),i=new Sh(t);try{i.parse()}catch(s){throw s}return i.root}var ls=gi;gi.default=gi;Ch.registerParse(gi);let{isClean:Ce,my:xh}=Mt,Ah=Fo,Rh=Mi,Nh=Be,Mh=rs;let rn=ss,Ih=ls,Dh=It;const Oh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},_h={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},Th={Once:!0,postcssPlugin:!0,prepare:!0},tt=0;function ut(r){return typeof r=="object"&&typeof r.then=="function"}function rl(r){let e=!1,t=Oh[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,tt,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,tt,t+"Exit"]:[t,t+"Exit"]}function sn(r){let e;return r.type==="document"?e=["Document",tt,"DocumentExit"]:r.type==="root"?e=["Root",tt,"RootExit"]:e=rl(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function Mr(r){return r[Ce]=!1,r.nodes&&r.nodes.forEach(e=>Mr(e)),r}let Ir={},it=class sl{constructor(e,t,i){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=Mr(t);else if(t instanceof sl||t instanceof rn)s=Mr(t.root),t.map&&(typeof i.map=="undefined"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let o=Ih;i.syntax&&(o=i.syntax.parse),i.parser&&(o=i.parser),o.parse&&(o=o.parse);try{s=o(t,i)}catch(n){this.processed=!0,this.error=n}s&&!s[xh]&&Nh.rebuild(s)}this.result=new rn(e,s,i),this.helpers=le(U({},Ir),{postcss:Ir,result:this.result}),this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?U(U({},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 i=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=i.postcssPlugin,e.setMessage()):i.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,i,s)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!_h[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Th[i])if(typeof t[i]=="object")for(let s in t[i])s==="*"?e(t,i,t[i][s]):e(t,i+"-"+s.toLowerCase(),t[i][s]);else typeof t[i]=="function"&&e(t,i,t[i])}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],i=this.runOnRoot(t);if(ut(i))try{await i}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ce];){e[Ce]=!0;let t=[sn(e)];for(;t.length>0;){let i=this.visitTick(t);if(ut(i))try{await i}catch(s){let o=t[t.length-1].node;throw this.handleError(s,o)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(o=>i(o,this.helpers));await Promise.all(s)}else await i(e,this.helpers)}catch(s){throw this.handleError(s)}}}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(i=>e.Once(i,this.helpers));return ut(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=Rh;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new Ah(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[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(ut(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ce];)e[Ce]=!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[i,s]of e){this.result.lastPlugin=i;let o;try{o=s(t,this.helpers)}catch(n){throw this.handleError(n,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(ut(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:s}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[n,l]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=n;try{return l(i.toProxy(),this.helpers)}catch(a){throw this.handleError(a,i)}}if(t.iterator!==0){let n=t.iterator,l;for(;l=i.nodes[i.indexes[n]];)if(i.indexes[n]+=1,!l[Ce]){l[Ce]=!0,e.push(sn(l));return}t.iterator=0,delete i.indexes[n]}let o=t.events;for(;t.eventIndex<o.length;){let n=o[t.eventIndex];if(t.eventIndex+=1,n===tt){i.nodes&&i.nodes.length&&(i[Ce]=!0,t.iterator=i.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[Ce]=!0;let t=rl(e);for(let i of t)if(i===tt)e.nodes&&e.each(s=>{s[Ce]||this.walkSync(s)});else{let s=this.listeners[i];if(s&&this.visitSync(s,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"}};it.registerPostcss=r=>{Ir=r};var nl=it;it.default=it;Dh.registerLazyResult(it);Mh.registerLazyResult(it);let kh=Fo,Ph=Mi;let $h=ls;const Lh=ss;let Dr=class{constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let s,o=Ph;this.result=new Lh(this._processor,s,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let l=new kh(o,s,this._opts,t);if(l.isMap()){let[a,u]=l.generate();a&&(this.result.css=a),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.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=$h;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Fh=Dr;Dr.default=Dr;let Bh=Fh,Uh=nl,zh=rs,Vh=It,xt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)t.push(i);else if(typeof i=="function")t.push(i);else if(!(typeof i=="object"&&(i.parse||i.stringify)))throw new Error(i+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Bh(this,e,t):new Uh(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Wh=xt;xt.default=xt;Vh.registerProcessor(xt);zh.registerProcessor(xt);let Gh=Di,Yh=To,jh=_i,Zh=ns,Hh=Oi,Xh=It,Jh=os;function At(r,e){if(Array.isArray(r))return r.map(n=>At(n));let s=r,{inputs:t}=s,i=nt(s,["inputs"]);if(t){e=[];for(let n of t){let l=le(U({},n),{__proto__:Hh.prototype});l.map&&(l.map=le(U({},l.map),{__proto__:Yh.prototype})),e.push(l)}}if(i.nodes&&(i.nodes=r.nodes.map(n=>At(n,e))),i.source){let o=i.source,{inputId:n}=o,l=nt(o,["inputId"]);i.source=l,n!=null&&(i.source.input=e[n])}if(i.type==="root")return new Xh(i);if(i.type==="decl")return new Gh(i);if(i.type==="rule")return new Jh(i);if(i.type==="comment")return new jh(i);if(i.type==="atrule")return new Zh(i);throw new Error("Unknown node type: "+r.type)}var Kh=At;At.default=At;let Qh=es,ol=Di,qh=nl,ef=Be,as=Wh,tf=Mi,rf=Kh,ll=rs,sf=Jo,al=_i,ul=ns,nf=ss,of=Oi,lf=ls,af=tl,cl=os,hl=It,uf=Ii;function B(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new as(r)}B.plugin=function(e,t){let i=!1;function s(...n){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
64
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(
|
|
65
|
-
https://www.w3ctech.com/topic/2226`));let l=t(...n);return l.postcssPlugin=e,l.postcssVersion=new as().version,l}let o;return Object.defineProperty(s,"postcss",{get(){return o||(o=s()),o}}),s.process=function(n,l,a){return B([s(a)]).process(n,l)},s};B.stringify=tf;B.parse=lf;B.fromJSON=rf;B.list=af;B.comment=r=>new al(r);B.atRule=r=>new ul(r);B.decl=r=>new ol(r);B.rule=r=>new cl(r);B.root=r=>new hl(r);B.document=r=>new ll(r);B.CssSyntaxError=Qh;B.Declaration=ol;B.Container=ef;B.Processor=as;B.Document=ll;B.Comment=al;B.Warning=sf;B.AtRule=ul;B.Result=nf;B.Input=of;B.Rule=cl;B.Root=hl;B.Node=uf;qh.registerPostcss(B);var cf=B;B.default=B;const X=Cc(cf);X.stringify;X.fromJSON;X.plugin;X.parse;X.list;X.document;X.comment;X.atRule;X.rule;X.decl;X.root;X.CssSyntaxError;X.Declaration;X.Container;X.Processor;X.Document;X.Comment;X.Warning;X.AtRule;X.Result;X.Input;X.Rule;X.Root;X.Node;var O=(r=>(r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r))(O||{});function hf(r){const e={},t=/;(?![^(]*\))/g,i=/:(.+)/,s=/\/\*.*?\*\//g;return r.replace(s,"").split(t).forEach(function(o){if(o){const n=o.split(i);n.length>1&&(e[Or(n[0].trim())]=n[1].trim())}}),e}function nn(r){const e=[];for(const t in r){const i=r[t];if(typeof i!="string")continue;const s=mf(t);e.push(`${s}: ${i};`)}return e.join(" ")}const ff=/-([a-z])/g,pf=/^--[a-zA-Z0-9-]+$/,Or=r=>pf.test(r)?r:r.replace(ff,(e,t)=>t?t.toUpperCase():""),df=/\B([A-Z])/g,mf=r=>r.replace(df,"-$1").toLowerCase();class ye{constructor(...e){C(this,"parentElement",null),C(this,"parentNode",null),C(this,"ownerDocument"),C(this,"firstChild",null),C(this,"lastChild",null),C(this,"previousSibling",null),C(this,"nextSibling",null),C(this,"ELEMENT_NODE",1),C(this,"TEXT_NODE",3),C(this,"nodeType"),C(this,"nodeName"),C(this,"RRNodeType")}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof ye){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}class us extends ye{constructor(...e){super(e),C(this,"nodeType",9),C(this,"nodeName","#document"),C(this,"compatMode","CSS1Compat"),C(this,"RRNodeType",O.Document),C(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(e=>e.RRNodeType===O.Element&&e.tagName==="HTML")||null}get body(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===O.Element&&t.tagName==="BODY"))||null}get head(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===O.Element&&t.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){const t=e.RRNodeType;if((t===O.Element||t===O.DocumentType)&&this.childNodes.some(s=>s.RRNodeType===t))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===O.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const i=cs(this,e);return i.parentElement=null,i}insertBefore(e,t){const i=e.RRNodeType;if((i===O.Element||i===O.DocumentType)&&this.childNodes.some(o=>o.RRNodeType===i))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${i===O.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=gl(this,e,t);return s.parentElement=null,s}removeChild(e){return yl(this,e)}open(){this.firstChild=null,this.lastChild=null}close(){}write(e){let t;if(e==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?t="-//W3C//DTD XHTML 1.0 Transitional//EN":e==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(t="-//W3C//DTD HTML 4.0 Transitional//EN"),t){const i=this.createDocumentType("html",t,"");this.open(),this.appendChild(i)}}createDocument(e,t,i){return new us}createDocumentType(e,t,i){const s=new fl(e,t,i);return s.ownerDocument=this,s}createElement(e){const t=new Ti(e);return t.ownerDocument=this,t}createElementNS(e,t){return this.createElement(t)}createTextNode(e){const t=new pl(e);return t.ownerDocument=this,t}createComment(e){const t=new dl(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new ml(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}class fl extends ye{constructor(e,t,i){super(),C(this,"nodeType",10),C(this,"RRNodeType",O.DocumentType),C(this,"name"),C(this,"publicId"),C(this,"systemId"),C(this,"textContent",null),this.name=e,this.publicId=t,this.systemId=i,this.nodeName=e}toString(){return"RRDocumentType"}}class Ti extends ye{constructor(e){super(),C(this,"nodeType",1),C(this,"RRNodeType",O.Element),C(this,"tagName"),C(this,"attributes",{}),C(this,"shadowRoot",null),C(this,"scrollLeft"),C(this,"scrollTop"),this.tagName=e.toUpperCase(),this.nodeName=e.toUpperCase()}get textContent(){let e="";return this.childNodes.forEach(t=>e+=t.textContent),e}set textContent(e){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(e))}get classList(){return new wf(this.attributes.class,e=>{this.attributes.class=e})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const e=this.attributes.style?hf(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(i,s,o)=>{if(t.test(i))return;const n=Or(i);s?e[n]=s:delete e[n],o==="important"&&(e[n]+=" !important"),this.attributes.style=nn(e)},e.removeProperty=i=>{if(t.test(i))return"";const s=Or(i),o=e[s]||"";return delete e[s],this.attributes.style=nn(e),o},e}getAttribute(e){return this.attributes[e]===void 0?null:this.attributes[e]}setAttribute(e,t){this.attributes[e]=t}setAttributeNS(e,t,i){this.setAttribute(t,i)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return cs(this,e)}insertBefore(e,t){return gl(this,e,t)}removeChild(e){return yl(this,e)}attachShadow(e){const t=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=t,t}dispatchEvent(e){return!0}toString(){let e="";for(const t in this.attributes)e+=`${t}="${this.attributes[t]}" `;return`${this.tagName} ${e}`}}class gf extends Ti{constructor(){super(...arguments),C(this,"currentTime"),C(this,"volume"),C(this,"paused"),C(this,"muted"),C(this,"playbackRate"),C(this,"loop")}attachShadow(e){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}class yf extends Ti{constructor(){super(...arguments),C(this,"tagName","DIALOG"),C(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}}class pl extends ye{constructor(e){super(),C(this,"nodeType",3),C(this,"nodeName","#text"),C(this,"RRNodeType",O.Text),C(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class dl extends ye{constructor(e){super(),C(this,"nodeType",8),C(this,"nodeName","#comment"),C(this,"RRNodeType",O.Comment),C(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class ml extends ye{constructor(e){super(),C(this,"nodeName","#cdata-section"),C(this,"nodeType",4),C(this,"RRNodeType",O.CDATA),C(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class wf{constructor(e,t){if(C(this,"onChange"),C(this,"classes",[]),C(this,"add",(...i)=>{for(const s of i){const o=String(s);this.classes.indexOf(o)>=0||this.classes.push(o)}this.onChange&&this.onChange(this.classes.join(" "))}),C(this,"remove",(...i)=>{this.classes=this.classes.filter(s=>i.indexOf(s)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),e){const i=e.trim().split(/\s+/);this.classes.push(...i)}this.onChange=t}}function cs(r,e){return e.parentNode&&e.parentNode.removeChild(e),r.lastChild?(r.lastChild.nextSibling=e,e.previousSibling=r.lastChild):(r.firstChild=e,e.previousSibling=null),r.lastChild=e,e.nextSibling=null,e.parentNode=r,e.parentElement=r,e.ownerDocument=r.ownerDocument,e}function gl(r,e,t){if(!t)return cs(r,e);if(t.parentNode!==r)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return e===t||(e.parentNode&&e.parentNode.removeChild(e),e.previousSibling=t.previousSibling,t.previousSibling=e,e.nextSibling=t,e.previousSibling?e.previousSibling.nextSibling=e:r.firstChild=e,e.parentElement=r,e.parentNode=r,e.ownerDocument=r.ownerDocument),e}function yl(r,e){if(e.parentNode!==r)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return e.previousSibling?e.previousSibling.nextSibling=e.nextSibling:r.firstChild=e.nextSibling,e.nextSibling?e.nextSibling.previousSibling=e.previousSibling:r.lastChild=e.previousSibling,e.previousSibling=null,e.nextSibling=null,e.parentElement=null,e.parentNode=null,e}var ue=(r=>(r[r.PLACEHOLDER=0]="PLACEHOLDER",r[r.ELEMENT_NODE=1]="ELEMENT_NODE",r[r.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",r[r.TEXT_NODE=3]="TEXT_NODE",r[r.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",r[r.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",r[r.ENTITY_NODE=6]="ENTITY_NODE",r[r.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",r[r.COMMENT_NODE=8]="COMMENT_NODE",r[r.DOCUMENT_NODE=9]="DOCUMENT_NODE",r[r.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",r[r.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",r))(ue||{});const _r={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},vf={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"};let Se=null;function yi(r,e,t,i=e.mirror||e.ownerDocument.mirror){r=bf(r,e,t,i),wl(r,e,t,i),Cf(r,e,t)}function bf(r,e,t,i){var s;if(t.afterAppend&&!Se&&(Se=new WeakSet,setTimeout(()=>{Se=null},0)),!hs(r,e)){const o=wi(e,t.mirror,i);(s=r.parentNode)==null||s.replaceChild(o,r),r=o}switch(e.RRNodeType){case O.Document:{if(!We(r,e,t.mirror,i)){const o=i.getMeta(e);o&&(t.mirror.removeNodeFromMap(r),r.close(),r.open(),t.mirror.add(r,o),Se==null||Se.add(r))}break}case O.Element:{const o=r,n=e;switch(n.tagName){case"IFRAME":{const l=r.contentDocument;if(!l)break;yi(l,e.contentDocument,t,i);break}}n.shadowRoot&&(o.shadowRoot||o.attachShadow({mode:"open"}),wl(o.shadowRoot,n.shadowRoot,t,i)),Sf(o,n,i);break}}return r}function Cf(r,e,t){var i;switch(e.RRNodeType){case O.Document:{const s=e.scrollData;s&&t.applyScroll(s,!0);break}case O.Element:{const s=r,o=e;switch(o.scrollData&&t.applyScroll(o.scrollData,!0),o.inputData&&t.applyInput(o.inputData),o.tagName){case"AUDIO":case"VIDEO":{const n=r,l=o;l.paused!==void 0&&(l.paused?n.pause():n.play()),l.muted!==void 0&&(n.muted=l.muted),l.volume!==void 0&&(n.volume=l.volume),l.currentTime!==void 0&&(n.currentTime=l.currentTime),l.playbackRate!==void 0&&(n.playbackRate=l.playbackRate),l.loop!==void 0&&(n.loop=l.loop);break}case"CANVAS":{const n=e;if(n.rr_dataURL!==null){const l=document.createElement("img");l.onload=()=>{const a=s.getContext("2d");a&&a.drawImage(l,0,0,l.width,l.height)},l.src=n.rr_dataURL}n.canvasMutations.forEach(l=>t.applyCanvas(l.event,l.mutation,r));break}case"STYLE":{const n=s.sheet;n&&e.rules.forEach(l=>t.applyStyleSheetMutation(l,n));break}case"DIALOG":{const n=s,l=o,a=n.open,u=n.matches("dialog:modal"),c=l.open,h=l.isModal,f=u!==h,g=a!==c;if((f||a&&g)&&n.close(),c&&(g||f))try{h?n.showModal():n.show()}catch(d){console.warn(d)}break}}break}case O.Text:case O.Comment:case O.CDATA:{r.textContent!==e.data&&(r.textContent=e.data);break}}Se!=null&&Se.has(r)&&(Se.delete(r),(i=t.afterAppend)==null||i.call(t,r,t.mirror.getId(r)))}function Sf(r,e,t){const i=r.attributes,s=e.attributes;for(const o in s){const n=s[o],l=t.getMeta(e);if(l!=null&&l.isSVG&&_r[o])r.setAttributeNS(_r[o],o,n);else if(e.tagName==="CANVAS"&&o==="rr_dataURL"){const a=document.createElement("img");a.src=n,a.onload=()=>{const u=r.getContext("2d");u&&u.drawImage(a,0,0,a.width,a.height)}}else{if(e.tagName==="IFRAME"&&o==="srcdoc")continue;try{r.setAttribute(o,n)}catch(a){console.warn(a)}}}for(const{name:o}of Array.from(i))o in s||r.removeAttribute(o);e.scrollLeft&&(r.scrollLeft=e.scrollLeft),e.scrollTop&&(r.scrollTop=e.scrollTop)}function wl(r,e,t,i){const s=Array.from(r.childNodes),o=e.childNodes;if(s.length===0&&o.length===0)return;let n=0,l=s.length-1,a=0,u=o.length-1,c=s[n],h=s[l],f=o[a],g=o[u],d,A;for(;n<=l&&a<=u;)if(c===void 0)c=s[++n];else if(h===void 0)h=s[--l];else if(We(c,f,t.mirror,i))c=s[++n],f=o[++a];else if(We(h,g,t.mirror,i))h=s[--l],g=o[--u];else if(We(c,g,t.mirror,i)){try{r.insertBefore(c,h.nextSibling)}catch(w){console.warn(w)}c=s[++n],g=o[--u]}else if(We(h,f,t.mirror,i)){try{r.insertBefore(h,c)}catch(w){console.warn(w)}h=s[--l],f=o[++a]}else{if(!d){d={};for(let v=n;v<=l;v++){const x=s[v];x&&t.mirror.hasNode(x)&&(d[t.mirror.getId(x)]=v)}}A=d[i.getId(f)];const w=s[A];if(A!==void 0&&w&&We(w,f,t.mirror,i)){try{r.insertBefore(w,c)}catch(v){console.warn(v)}s[A]=void 0}else{const v=wi(f,t.mirror,i);r.nodeName==="#document"&&c&&(v.nodeType===v.DOCUMENT_TYPE_NODE&&c.nodeType===c.DOCUMENT_TYPE_NODE||v.nodeType===v.ELEMENT_NODE&&c.nodeType===c.ELEMENT_NODE)&&(r.removeChild(c),t.mirror.removeNodeFromMap(c),c=s[++n]);try{r.insertBefore(v,c||null)}catch(x){console.warn(x)}}f=o[++a]}if(n>l){const w=o[u+1];let v=null;for(w&&(v=t.mirror.getNode(i.getId(w)));a<=u;++a){const x=wi(o[a],t.mirror,i);try{r.insertBefore(x,v)}catch(R){console.warn(R)}}}else if(a>u)for(;n<=l;n++){const w=s[n];if(!(!w||w.parentNode!==r))try{r.removeChild(w),t.mirror.removeNodeFromMap(w)}catch(v){console.warn(v)}}let p=r.firstChild,m=e.firstChild;for(;p!==null&&m!==null;)yi(p,m,t,i),p=p.nextSibling,m=m.nextSibling}function wi(r,e,t){const i=t.getId(r),s=t.getMeta(r);let o=null;if(i>-1&&(o=e.getNode(i)),o!==null&&hs(o,r))return o;switch(r.RRNodeType){case O.Document:o=new Document;break;case O.DocumentType:o=document.implementation.createDocumentType(r.name,r.publicId,r.systemId);break;case O.Element:{let n=r.tagName.toLowerCase();n=vf[n]||n,s&&"isSVG"in s&&(s!=null&&s.isSVG)?o=document.createElementNS(_r.svg,n):o=document.createElement(r.tagName);break}case O.Text:o=document.createTextNode(r.data);break;case O.Comment:o=document.createComment(r.data);break;case O.CDATA:o=document.createCDATASection(r.data);break}s&&e.add(o,U({},s));try{Se==null||Se.add(o)}catch(n){}return o}function hs(r,e){return r.nodeType!==e.nodeType?!1:r.nodeType!==r.ELEMENT_NODE||r.tagName.toUpperCase()===e.tagName}function We(r,e,t,i){const s=t.getId(r),o=i.getId(e);return s===-1||s!==o?!1:hs(r,e)}class st extends us{constructor(e){super(),C(this,"UNSERIALIZED_STARTING_ID",-2),C(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),C(this,"mirror",kf()),C(this,"scrollData",null),e&&(this.mirror=e)}get unserializedId(){return this._unserializedId--}createDocument(e,t,i){return new st}createDocumentType(e,t,i){const s=new Ef(e,t,i);return s.ownerDocument=this,s}createElement(e){const t=e.toUpperCase();let i;switch(t){case"AUDIO":case"VIDEO":i=new xf(t);break;case"IFRAME":i=new Mf(t,this.mirror);break;case"CANVAS":i=new Rf(t);break;case"STYLE":i=new Nf(t);break;case"DIALOG":i=new Af(t);break;default:i=new ki(t);break}return i.ownerDocument=this,i}createComment(e){const t=new Df(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new Of(e);return t.ownerDocument=this,t}createTextNode(e){const t=new If(e);return t.ownerDocument=this,t}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}const Ef=fl;class ki extends Ti{constructor(){super(...arguments),C(this,"inputData",null),C(this,"scrollData",null)}}class xf extends gf{}class Af extends yf{}class Rf extends ki{constructor(){super(...arguments),C(this,"rr_dataURL",null),C(this,"canvasMutations",[])}getContext(){return null}}class Nf extends ki{constructor(){super(...arguments),C(this,"rules",[])}}class Mf extends ki{constructor(e,t){super(e),C(this,"contentDocument",new st),this.contentDocument.mirror=t}}const If=pl,Df=dl,Of=ml;function _f(r){return r instanceof HTMLFormElement?"FORM":r.tagName.toUpperCase()}function vl(r,e,t,i){let s;switch(r.nodeType){case ue.DOCUMENT_NODE:i&&i.nodeName==="IFRAME"?s=i.contentDocument:(s=e,s.compatMode=r.compatMode);break;case ue.DOCUMENT_TYPE_NODE:{const n=r;s=e.createDocumentType(n.name,n.publicId,n.systemId);break}case ue.ELEMENT_NODE:{const n=r,l=_f(n);s=e.createElement(l);const a=s;for(const{name:u,value:c}of Array.from(n.attributes))a.attributes[u]=c;n.scrollLeft&&(a.scrollLeft=n.scrollLeft),n.scrollTop&&(a.scrollTop=n.scrollTop);break}case ue.TEXT_NODE:s=e.createTextNode(r.textContent||"");break;case ue.CDATA_SECTION_NODE:s=e.createCDATASection(r.data);break;case ue.COMMENT_NODE:s=e.createComment(r.textContent||"");break;case ue.DOCUMENT_FRAGMENT_NODE:s=i.attachShadow({mode:"open"});break;default:return null}let o=t.getMeta(r);return e instanceof st&&(o||(o=Tr(s,e.unserializedId),t.add(r,o)),e.mirror.add(s,U({},o))),s}function Tf(r,e=bc(),t=new st){function i(s,o){const n=vl(s,t,e,o);if(n!==null)if((o==null?void 0:o.nodeName)!=="IFRAME"&&s.nodeType!==ue.DOCUMENT_FRAGMENT_NODE&&(o==null||o.appendChild(n),n.parentNode=o,n.parentElement=o),s.nodeName==="IFRAME"){const l=s.contentDocument;l&&i(l,n)}else(s.nodeType===ue.DOCUMENT_NODE||s.nodeType===ue.ELEMENT_NODE||s.nodeType===ue.DOCUMENT_FRAGMENT_NODE)&&(s.nodeType===ue.ELEMENT_NODE&&s.shadowRoot&&i(s.shadowRoot,n),s.childNodes.forEach(l=>i(l,n)))}return i(r,null),t}function kf(){return new Pf}class Pf{constructor(){C(this,"idNodeMap",new Map),C(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const i=(t=this.getMeta(e))==null?void 0:t.id;return i!=null?i:-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(i=>this.removeNodeFromMap(i))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const i=t.id;this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,t)}replace(e,t){const i=this.getNode(e);if(i){const s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(t,s)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Tr(r,e){switch(r.RRNodeType){case O.Document:return{id:e,type:r.RRNodeType,childNodes:[]};case O.DocumentType:{const t=r;return{id:e,type:r.RRNodeType,name:t.name,publicId:t.publicId,systemId:t.systemId}}case O.Element:return{id:e,type:r.RRNodeType,tagName:r.tagName.toLowerCase(),attributes:{},childNodes:[]};case O.Text:return{id:e,type:r.RRNodeType,textContent:r.textContent||""};case O.Comment:return{id:e,type:r.RRNodeType,textContent:r.textContent||""};case O.CDATA:return{id:e,type:r.RRNodeType,textContent:""}}}const on={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ln={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Jt={};function $f(r){var e,t;const i=(t=(e=globalThis==null?void 0:globalThis.Zone)==null?void 0:e.__symbol__)==null?void 0:t.call(e,r);if(i&&globalThis[i])return globalThis[i]}function fs(r){if(Jt[r])return Jt[r];const e=$f(r)||globalThis[r],t=e.prototype,i=r in on?on[r]:void 0,s=!!(i&&i.every(l=>{var a,u;return!!((u=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&u.toString().includes("[native code]"))})),o=r in ln?ln[r]:void 0,n=!!(o&&o.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(s&&n)return Jt[r]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const a=l.contentWindow;if(!a)return e.prototype;const u=a[r].prototype;return document.body.removeChild(l),u?Jt[r]=u:t}catch(l){return t}}const Yi={};function Te(r,e,t){var i;const s=`${r}.${String(t)}`;if(Yi[s])return Yi[s].call(e);const o=fs(r),n=(i=Object.getOwnPropertyDescriptor(o,t))==null?void 0:i.get;return n?(Yi[s]=n,n.call(e)):e[t]}const ji={};function bl(r,e,t){const i=`${r}.${String(t)}`;if(ji[i])return ji[i].bind(e);const o=fs(r)[t];return typeof o!="function"?e[t]:(ji[i]=o,o.bind(e))}function Lf(r){return Te("Node",r,"childNodes")}function Ff(r){return Te("Node",r,"parentNode")}function Bf(r){return Te("Node",r,"parentElement")}function Uf(r){return Te("Node",r,"textContent")}function zf(r,e){return bl("Node",r,"contains")(e)}function Vf(r){return bl("Node",r,"getRootNode")()}function Wf(r){return!r||!("host"in r)?null:Te("ShadowRoot",r,"host")}function Gf(r){return r.styleSheets}function Yf(r){return!r||!("shadowRoot"in r)?null:Te("Element",r,"shadowRoot")}function jf(r,e){return Te("Element",r,"querySelector")(e)}function Zf(r,e){return Te("Element",r,"querySelectorAll")(e)}function Hf(){return fs("MutationObserver").constructor}const Xf={childNodes:Lf,parentNode:Ff,parentElement:Bf,textContent:Uf,contains:zf,getRootNode:Vf,host:Wf,styleSheets:Gf,shadowRoot:Yf,querySelector:jf,querySelectorAll:Zf,mutationObserver:Hf},Ge=`Please stop import mirror directly. Instead of that,\r
|
|
59
|
+
`)&&(r=`\r
|
|
60
|
+
`),this.css+=r+"/*# sourceMappingURL="+n+" */"}applyPrevMaps(){for(let n of this.previous()){let r=this.toUrl(this.path(n.file)),f=n.root||u(n.file),l;this.mapOpts.sourcesContent===!1?(l=new e(n.text),l.sourcesContent&&(l.sourcesContent=null)):l=n.consumer(),this.map.applySourceMap(l,r,this.toUrl(this.path(f)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let n;for(let r=this.root.nodes.length-1;r>=0;r--)n=this.root.nodes[r],n.type==="comment"&&n.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&a&&this.isMap())return this.generateMap();{let n="";return this.stringify(this.root,r=>{n+=r}),[n]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let n=this.previous()[0].consumer();n.file=this.outputFile(),this.map=i.fromSourceMap(n,{ignoreInvalidMapping:!0})}else this.map=new i({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 i({file:this.outputFile(),ignoreInvalidMapping:!0});let n=1,r=1,f="<no source>",l={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,x;this.stringify(this.root,(b,v,C)=>{if(this.css+=b,v&&C!=="end"&&(l.generated.line=n,l.generated.column=r-1,v.source&&v.source.start?(l.source=this.sourcePath(v),l.original.line=v.source.start.line,l.original.column=v.source.start.column-1,this.map.addMapping(l)):(l.source=f,l.original.line=1,l.original.column=0,this.map.addMapping(l))),g=b.match(/\n/g),g?(n+=g.length,x=b.lastIndexOf(`
|
|
61
|
+
`),r=b.length-x):r+=b.length,v&&C!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(l.source=this.sourcePath(v),l.original.line=v.source.end.line,l.original.column=v.source.end.column-1,l.generated.line=n,l.generated.column=r-2,this.map.addMapping(l)):(l.source=f,l.original.line=1,l.original.column=0,l.generated.line=n,l.generated.column=r-1,this.map.addMapping(l)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(n=>n.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let n=this.mapOpts.annotation;return typeof n!="undefined"&&n!==!0?!1:this.previous().length?this.previous().some(r=>r.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(n=>n.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(n){if(this.mapOpts.absolute||n.charCodeAt(0)===60||/^\w+:\/\//.test(n))return n;let r=this.memoizedPaths.get(n);if(r)return r;let f=this.opts.to?u(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=u(s(f,this.mapOpts.annotation)));let l=d(f,n);return this.memoizedPaths.set(n,l),l}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(n=>{if(n.source&&n.source.input.map){let r=n.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let n=new m(this.originalCSS,this.opts);n.map&&this.previousMaps.push(n.map)}return this.previousMaps}setSourcesContent(){let n={};if(this.root)this.root.walk(r=>{if(r.source){let f=r.source.input.from;if(f&&!n[f]){n[f]=!0;let l=this.usesFileUrls?this.toFileUrl(f):this.toUrl(this.path(f));this.map.setSourceContent(l,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(n){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(n.source.input.from):this.toUrl(this.path(n.source.input.from))}toBase64(n){return Buffer?Buffer.from(n).toString("base64"):window.btoa(unescape(encodeURIComponent(n)))}toFileUrl(n){let r=this.memoizedFileURLs.get(n);if(r)return r;if(p){let f=p(n).toString();return this.memoizedFileURLs.set(n,f),f}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(n){let r=this.memoizedURLs.get(n);if(r)return r;c==="\\"&&(n=n.replace(/\\/g,"/"));let f=encodeURI(n).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(n,f),f}}return zt=t,zt}var qt,xs;function Xe(){if(xs)return qt;xs=1;let e=Ye();class i extends e{constructor(d){super(d),this.type="comment"}}return qt=i,i.default=i,qt}var Bt,Cs;function pe(){if(Cs)return Bt;Cs=1;let{isClean:e,my:i}=Sr(),u=Qe(),d=Xe(),s=Ye(),c,p,m,a;function h(n){return n.map(r=>(r.nodes&&(r.nodes=h(r.nodes)),delete r.source,r))}function t(n){if(n[e]=!1,n.proxyOf.nodes)for(let r of n.proxyOf.nodes)t(r)}class o extends s{append(...r){for(let f of r){let l=this.normalize(f,this.last);for(let g of l)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(r){if(super.cleanRaws(r),this.nodes)for(let f of this.nodes)f.cleanRaws(r)}each(r){if(!this.proxyOf.nodes)return;let f=this.getIterator(),l,g;for(;this.indexes[f]<this.proxyOf.nodes.length&&(l=this.indexes[f],g=r(this.proxyOf.nodes[l],l),g!==!1);)this.indexes[f]+=1;return delete this.indexes[f],g}every(r){return this.nodes.every(r)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let r=this.lastEach;return this.indexes[r]=0,r}getProxyProcessor(){return{get(r,f){return f==="proxyOf"?r:r[f]?f==="each"||typeof f=="string"&&f.startsWith("walk")?(...l)=>r[f](...l.map(g=>typeof g=="function"?(x,b)=>g(x.toProxy(),b):g)):f==="every"||f==="some"?l=>r[f]((g,...x)=>l(g.toProxy(),...x)):f==="root"?()=>r.root().toProxy():f==="nodes"?r.nodes.map(l=>l.toProxy()):f==="first"||f==="last"?r[f].toProxy():r[f]:r[f]},set(r,f,l){return r[f]===l||(r[f]=l,(f==="name"||f==="params"||f==="selector")&&r.markDirty()),!0}}}index(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))}insertAfter(r,f){let l=this.index(r),g=this.normalize(f,this.proxyOf.nodes[l]).reverse();l=this.index(r);for(let b of g)this.proxyOf.nodes.splice(l+1,0,b);let x;for(let b in this.indexes)x=this.indexes[b],l<x&&(this.indexes[b]=x+g.length);return this.markDirty(),this}insertBefore(r,f){let l=this.index(r),g=l===0?"prepend":!1,x=this.normalize(f,this.proxyOf.nodes[l],g).reverse();l=this.index(r);for(let v of x)this.proxyOf.nodes.splice(l,0,v);let b;for(let v in this.indexes)b=this.indexes[v],l<=b&&(this.indexes[v]=b+x.length);return this.markDirty(),this}normalize(r,f){if(typeof r=="string")r=h(c(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new u(r)]}else if(r.selector)r=[new p(r)];else if(r.name)r=[new m(r)];else if(r.text)r=[new d(r)];else throw new Error("Unknown node type in node creation");return r.map(g=>(g[i]||o.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&t(g),typeof g.raws.before=="undefined"&&f&&typeof f.raws.before!="undefined"&&(g.raws.before=f.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...r){r=r.reverse();for(let f of r){let l=this.normalize(f,this.first,"prepend").reverse();for(let g of l)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+l.length}return this.markDirty(),this}push(r){return r.parent=this,this.proxyOf.nodes.push(r),this}removeAll(){for(let r of this.proxyOf.nodes)r.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);let f;for(let l in this.indexes)f=this.indexes[l],f>=r&&(this.indexes[l]=f-1);return this.markDirty(),this}replaceValues(r,f,l){return l||(l=f,f={}),this.walkDecls(g=>{f.props&&!f.props.includes(g.prop)||f.fast&&!g.value.includes(f.fast)||(g.value=g.value.replace(r,l))}),this.markDirty(),this}some(r){return this.nodes.some(r)}walk(r){return this.each((f,l)=>{let g;try{g=r(f,l)}catch(x){throw f.addToError(x)}return g!==!1&&f.walk&&(g=f.walk(r)),g})}walkAtRules(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="atrule"&&r.test(l.name))return f(l,g)}):this.walk((l,g)=>{if(l.type==="atrule"&&l.name===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="atrule")return f(l,g)}))}walkComments(r){return this.walk((f,l)=>{if(f.type==="comment")return r(f,l)})}walkDecls(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="decl"&&r.test(l.prop))return f(l,g)}):this.walk((l,g)=>{if(l.type==="decl"&&l.prop===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="decl")return f(l,g)}))}walkRules(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="rule"&&r.test(l.selector))return f(l,g)}):this.walk((l,g)=>{if(l.type==="rule"&&l.selector===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="rule")return f(l,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return o.registerParse=n=>{c=n},o.registerRule=n=>{p=n},o.registerAtRule=n=>{m=n},o.registerRoot=n=>{a=n},Bt=o,o.default=o,o.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,m.prototype):n.type==="rule"?Object.setPrototypeOf(n,p.prototype):n.type==="decl"?Object.setPrototypeOf(n,u.prototype):n.type==="comment"?Object.setPrototypeOf(n,d.prototype):n.type==="root"&&Object.setPrototypeOf(n,a.prototype),n[i]=!0,n.nodes&&n.nodes.forEach(r=>{o.rebuild(r)})},Bt}var jt,Rs;function xr(){if(Rs)return jt;Rs=1;let e=pe(),i,u;class d extends e{constructor(c){super(Q({type:"document"},c)),this.nodes||(this.nodes=[])}toResult(c={}){return new i(new u,this,c).stringify()}}return d.registerLazyResult=s=>{i=s},d.registerProcessor=s=>{u=s},jt=d,d.default=d,jt}var Tt,Os;function yi(){if(Os)return Tt;Os=1;let e={};return Tt=function(u){e[u]||(e[u]=!0,typeof console!="undefined"&&console.warn&&console.warn(u))},Tt}var Wt,Ps;function bi(){if(Ps)return Wt;Ps=1;class e{constructor(u,d={}){if(this.type="warning",this.text=u,d.node&&d.node.source){let s=d.node.rangeBy(d);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in d)this[s]=d[s]}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 Wt=e,e.default=e,Wt}var $t,_s;function Cr(){if(_s)return $t;_s=1;let e=bi();class i{constructor(d,s,c){this.processor=d,this.messages=[],this.root=s,this.opts=c,this.css=void 0,this.map=void 0}toString(){return this.css}warn(d,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let c=new e(d,s);return this.messages.push(c),c}warnings(){return this.messages.filter(d=>d.type==="warning")}get content(){return this.css}}return $t=i,i.default=i,$t}var Vt,Es;function wn(){if(Es)return Vt;Es=1;const e=39,i=34,u=92,d=47,s=10,c=32,p=12,m=9,a=13,h=91,t=93,o=40,n=41,r=123,f=125,l=59,g=42,x=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,C=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return Vt=function(P,A={}){let _=P.css.valueOf(),U=A.ignoreErrors,I,O,T,Y,q,$,k,j,D,M,K=_.length,R=0,E=[],F=[];function B(){return R}function N(Z){throw P.error("Unclosed "+Z,R)}function X(){return F.length===0&&R>=K}function Me(Z){if(F.length)return F.pop();if(R>=K)return;let ae=Z?Z.ignoreUnclosed:!1;switch(I=_.charCodeAt(R),I){case s:case c:case m:case a:case p:{O=R;do O+=1,I=_.charCodeAt(O);while(I===c||I===s||I===m||I===a||I===p);M=["space",_.slice(R,O)],R=O-1;break}case h:case t:case r:case f:case x:case l:case n:{let Ce=String.fromCharCode(I);M=[Ce,Ce,R];break}case o:{if(j=E.length?E.pop()[1]:"",D=_.charCodeAt(R+1),j==="url"&&D!==e&&D!==i&&D!==c&&D!==s&&D!==m&&D!==p&&D!==a){O=R;do{if($=!1,O=_.indexOf(")",O+1),O===-1)if(U||ae){O=R;break}else N("bracket");for(k=O;_.charCodeAt(k-1)===u;)k-=1,$=!$}while($);M=["brackets",_.slice(R,O+1),R,O],R=O}else O=_.indexOf(")",R+1),Y=_.slice(R,O+1),O===-1||y.test(Y)?M=["(","(",R]:(M=["brackets",Y,R,O],R=O);break}case e:case i:{T=I===e?"'":'"',O=R;do{if($=!1,O=_.indexOf(T,O+1),O===-1)if(U||ae){O=R+1;break}else N("string");for(k=O;_.charCodeAt(k-1)===u;)k-=1,$=!$}while($);M=["string",_.slice(R,O+1),R,O],R=O;break}case b:{v.lastIndex=R+1,v.test(_),v.lastIndex===0?O=_.length-1:O=v.lastIndex-2,M=["at-word",_.slice(R,O+1),R,O],R=O;break}case u:{for(O=R,q=!0;_.charCodeAt(O+1)===u;)O+=1,q=!q;if(I=_.charCodeAt(O+1),q&&I!==d&&I!==c&&I!==s&&I!==m&&I!==a&&I!==p&&(O+=1,w.test(_.charAt(O)))){for(;w.test(_.charAt(O+1));)O+=1;_.charCodeAt(O+1)===c&&(O+=1)}M=["word",_.slice(R,O+1),R,O],R=O;break}default:{I===d&&_.charCodeAt(R+1)===g?(O=_.indexOf("*/",R+2)+1,O===0&&(U||ae?O=_.length:N("comment")),M=["comment",_.slice(R,O+1),R,O],R=O):(C.lastIndex=R+1,C.test(_),C.lastIndex===0?O=_.length-1:O=C.lastIndex-2,M=["word",_.slice(R,O+1),R,O],E.push(M),R=O);break}}return R++,M}function Ne(Z){F.push(Z)}return{back:Ne,endOfFile:X,nextToken:Me,position:B}},Vt}var Gt,As;function Rr(){if(As)return Gt;As=1;let e=pe();class i extends e{constructor(d){super(d),this.type="atrule"}append(...d){return this.proxyOf.nodes||(this.nodes=[]),super.append(...d)}prepend(...d){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...d)}}return Gt=i,i.default=i,e.registerAtRule(i),Gt}var Jt,ks;function ke(){if(ks)return Jt;ks=1;let e=pe(),i,u;class d extends e{constructor(c){super(c),this.type="root",this.nodes||(this.nodes=[])}normalize(c,p,m){let a=super.normalize(c);if(p){if(m==="prepend")this.nodes.length>1?p.raws.before=this.nodes[1].raws.before:delete p.raws.before;else if(this.first!==p)for(let h of a)h.raws.before=p.raws.before}return a}removeChild(c,p){let m=this.index(c);return!p&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(c)}toResult(c={}){return new i(new u,this,c).stringify()}}return d.registerLazyResult=s=>{i=s},d.registerProcessor=s=>{u=s},Jt=d,d.default=d,e.registerRoot(d),Jt}var Ht,Ms;function vi(){if(Ms)return Ht;Ms=1;let e={comma(i){return e.split(i,[","],!0)},space(i){let u=[" ",`
|
|
62
|
+
`," "];return e.split(i,u)},split(i,u,d){let s=[],c="",p=!1,m=0,a=!1,h="",t=!1;for(let o of i)t?t=!1:o==="\\"?t=!0:a?o===h&&(a=!1):o==='"'||o==="'"?(a=!0,h=o):o==="("?m+=1:o===")"?m>0&&(m-=1):m===0&&u.includes(o)&&(p=!0),p?(c!==""&&s.push(c.trim()),c="",p=!1):c+=o;return(d||c!=="")&&s.push(c.trim()),s}};return Ht=e,e.default=e,Ht}var Yt,Ns;function Or(){if(Ns)return Yt;Ns=1;let e=pe(),i=vi();class u extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(s){let c=this.selector?this.selector.match(/,\s*/):null,p=c?c[0]:","+this.raw("between","beforeOpen");this.selector=s.join(p)}}return Yt=u,u.default=u,e.registerRule(u),Yt}var Qt,Is;function yn(){if(Is)return Qt;Is=1;let e=Qe(),i=wn(),u=Xe(),d=Rr(),s=ke(),c=Or();const p={empty:!0,space:!0};function m(h){for(let t=h.length-1;t>=0;t--){let o=h[t],n=o[3]||o[2];if(n)return n}}class a{constructor(t){this.input=t,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let o=new d;o.name=t[1].slice(1),o.name===""&&this.unnamedAtrule(o,t),this.init(o,t[2]);let n,r,f,l=!1,g=!1,x=[],b=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),n=t[0],n==="("||n==="["?b.push(n==="("?")":"]"):n==="{"&&b.length>0?b.push("}"):n===b[b.length-1]&&b.pop(),b.length===0)if(n===";"){o.source.end=this.getPosition(t[2]),o.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){g=!0;break}else if(n==="}"){if(x.length>0){for(f=x.length-1,r=x[f];r&&r[0]==="space";)r=x[--f];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(t);break}else x.push(t);else x.push(t);if(this.tokenizer.endOfFile()){l=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(o.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(o,"params",x),l&&(t=x[x.length-1],o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),g&&(o.nodes=[],this.current=o)}checkMissedSemicolon(t){let o=this.colon(t);if(o===!1)return;let n=0,r;for(let f=o-1;f>=0&&(r=t[f],!(r[0]!=="space"&&(n+=1,n===2)));f--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(t){let o=0,n,r,f;for(let[l,g]of t.entries()){if(n=g,r=n[0],r==="("&&(o+=1),r===")"&&(o-=1),o===0&&r===":")if(!f)this.doubleColon(n);else{if(f[0]==="word"&&f[1]==="progid")continue;return l}f=n}return!1}comment(t){let o=new u;this.init(o,t[2]),o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++;let n=t[1].slice(2,-2);if(/^\s*$/.test(n))o.text="",o.raws.left=n,o.raws.right="";else{let r=n.match(/^(\s*)([^]*\S)(\s*)$/);o.text=r[2],o.raws.left=r[1],o.raws.right=r[3]}}createTokenizer(){this.tokenizer=i(this.input)}decl(t,o){let n=new e;this.init(n,t[0][2]);let r=t[t.length-1];for(r[0]===";"&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(r[3]||r[2]||m(t)),n.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),n.raws.before+=t.shift()[1];for(n.source.start=this.getPosition(t[0][2]),n.prop="";t.length;){let b=t[0][0];if(b===":"||b==="space"||b==="comment")break;n.prop+=t.shift()[1]}n.raws.between="";let f;for(;t.length;)if(f=t.shift(),f[0]===":"){n.raws.between+=f[1];break}else f[0]==="word"&&/\w/.test(f[1])&&this.unknownWord([f]),n.raws.between+=f[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let l=[],g;for(;t.length&&(g=t[0][0],!(g!=="space"&&g!=="comment"));)l.push(t.shift());this.precheckMissedSemicolon(t);for(let b=t.length-1;b>=0;b--){if(f=t[b],f[1].toLowerCase()==="!important"){n.important=!0;let v=this.stringFrom(t,b);v=this.spacesFromEnd(t)+v,v!==" !important"&&(n.raws.important=v);break}else if(f[1].toLowerCase()==="important"){let v=t.slice(0),C="";for(let y=b;y>0;y--){let w=v[y][0];if(C.trim().indexOf("!")===0&&w!=="space")break;C=v.pop()[1]+C}C.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=C,t=v)}if(f[0]!=="space"&&f[0]!=="comment")break}t.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(n.raws.between+=l.map(b=>b[1]).join(""),l=[]),this.raw(n,"value",l.concat(t),o),n.value.includes(":")&&!o&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let o=new c;this.init(o,t[2]),o.selector="",o.raws.between="",this.current=o}end(t){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(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}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(t){if(this.spaces+=t[1],this.current.nodes){let o=this.current.nodes[this.current.nodes.length-1];o&&o.type==="rule"&&!o.raws.ownSemicolon&&(o.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let o=this.input.fromOffset(t);return{column:o.col,line:o.line,offset:t}}init(t,o){this.current.push(t),t.source={input:this.input,start:this.getPosition(o)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let o=!1,n=null,r=!1,f=null,l=[],g=t[1].startsWith("--"),x=[],b=t;for(;b;){if(n=b[0],x.push(b),n==="("||n==="[")f||(f=b),l.push(n==="("?")":"]");else if(g&&r&&n==="{")f||(f=b),l.push("}");else if(l.length===0)if(n===";")if(r){this.decl(x,g);return}else break;else if(n==="{"){this.rule(x);return}else if(n==="}"){this.tokenizer.back(x.pop()),o=!0;break}else n===":"&&(r=!0);else n===l[l.length-1]&&(l.pop(),l.length===0&&(f=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(o=!0),l.length>0&&this.unclosedBracket(f),o&&r){if(!g)for(;x.length&&(b=x[x.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,g)}else this.unknownWord(x)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,o,n,r){let f,l,g=n.length,x="",b=!0,v,C;for(let y=0;y<g;y+=1)f=n[y],l=f[0],l==="space"&&y===g-1&&!r?b=!1:l==="comment"?(C=n[y-1]?n[y-1][0]:"empty",v=n[y+1]?n[y+1][0]:"empty",!p[C]&&!p[v]?x.slice(-1)===","?b=!1:x+=f[1]:b=!1):x+=f[1];if(!b){let y=n.reduce((w,S)=>w+S[1],"");t.raws[o]={raw:y,value:x}}t[o]=x}rule(t){t.pop();let o=new c;this.init(o,t[0][2]),o.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(o,"selector",t),this.current=o}spacesAndCommentsFromEnd(t){let o,n="";for(;t.length&&(o=t[t.length-1][0],!(o!=="space"&&o!=="comment"));)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let o,n="";for(;t.length&&(o=t[0][0],!(o!=="space"&&o!=="comment"));)n+=t.shift()[1];return n}spacesFromEnd(t){let o,n="";for(;t.length&&(o=t[t.length-1][0],o==="space");)n=t.pop()[1]+n;return n}stringFrom(t,o){let n="";for(let r=o;r<t.length;r++)n+=t[r][1];return t.splice(o,t.length-o),n}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,o){throw this.input.error("At-rule without name",{offset:o[2]},{offset:o[2]+o[1].length})}}return Qt=a,Qt}var Kt,Ls;function Pr(){if(Ls)return Kt;Ls=1;let e=pe(),i=yn(),u=Ke();function d(s,c){let p=new u(s,c),m=new i(p);try{m.parse()}catch(a){throw a}return m.root}return Kt=d,d.default=d,e.registerParse(d),Kt}var Xt,Us;function Si(){if(Us)return Xt;Us=1;let{isClean:e,my:i}=Sr(),u=wi(),d=He(),s=pe(),c=xr(),p=yi(),m=Cr(),a=Pr(),h=ke();const t={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},o={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},n={Once:!0,postcssPlugin:!0,prepare:!0},r=0;function f(C){return typeof C=="object"&&typeof C.then=="function"}function l(C){let y=!1,w=t[C.type];return C.type==="decl"?y=C.prop.toLowerCase():C.type==="atrule"&&(y=C.name.toLowerCase()),y&&C.append?[w,w+"-"+y,r,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:C.append?[w,r,w+"Exit"]:[w,w+"Exit"]}function g(C){let y;return C.type==="document"?y=["Document",r,"DocumentExit"]:C.type==="root"?y=["Root",r,"RootExit"]:y=l(C),{eventIndex:0,events:y,iterator:0,node:C,visitorIndex:0,visitors:[]}}function x(C){return C[e]=!1,C.nodes&&C.nodes.forEach(y=>x(y)),C}let b={};class v{constructor(y,w,S){this.stringified=!1,this.processed=!1;let P;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))P=x(w);else if(w instanceof v||w instanceof m)P=x(w.root),w.map&&(typeof S.map=="undefined"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=w.map);else{let A=a;S.syntax&&(A=S.syntax.parse),S.parser&&(A=S.parser),A.parse&&(A=A.parse);try{P=A(w,S)}catch(_){this.processed=!0,this.error=_}P&&!P[i]&&s.rebuild(P)}this.result=new m(y,P,S),this.helpers=ie(Q({},b),{postcss:b,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(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let S=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=S.postcssPlugin,y.setMessage()):S.postcssVersion}catch(P){console&&console.error&&console.error(P)}return y}prepareVisitors(){this.listeners={};let y=(w,S,P)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([w,P])};for(let w of this.plugins)if(typeof w=="object")for(let S in w){if(!o[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!n[S])if(typeof w[S]=="object")for(let P in w[S])P==="*"?y(w,S,w[S][P]):y(w,S+"-"+P.toLowerCase(),w[S][P]);else typeof w[S]=="function"&&y(w,S,w[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],S=this.runOnRoot(w);if(f(S))try{await S}catch(P){throw this.handleError(P)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];){y[e]=!0;let w=[g(y)];for(;w.length>0;){let S=this.visitTick(w);if(f(S))try{await S}catch(P){let A=w[w.length-1].node;throw this.handleError(P,A)}}}if(this.listeners.OnceExit)for(let[w,S]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let P=y.nodes.map(A=>S(A,this.helpers));await Promise.all(P)}else await S(y,this.helpers)}catch(P){throw this.handleError(P)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(S=>y.Once(S,this.helpers));return f(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,w=d;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let P=new u(w,this.result.root,this.result.opts).generate();return this.result.css=P[0],this.result.map=P[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 y of this.plugins){let w=this.runOnRoot(y);if(f(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];)y[e]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[S,P]of y){this.result.lastPlugin=S;let A;try{A=P(w,this.helpers)}catch(_){throw this.handleError(_,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(f(A))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:S,visitors:P}=w;if(S.type!=="root"&&S.type!=="document"&&!S.parent){y.pop();return}if(P.length>0&&w.visitorIndex<P.length){let[_,U]=P[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===P.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=_;try{return U(S.toProxy(),this.helpers)}catch(I){throw this.handleError(I,S)}}if(w.iterator!==0){let _=w.iterator,U;for(;U=S.nodes[S.indexes[_]];)if(S.indexes[_]+=1,!U[e]){U[e]=!0,y.push(g(U));return}w.iterator=0,delete S.indexes[_]}let A=w.events;for(;w.eventIndex<A.length;){let _=A[w.eventIndex];if(w.eventIndex+=1,_===r){S.nodes&&S.nodes.length&&(S[e]=!0,w.iterator=S.getIterator());return}else if(this.listeners[_]){w.visitors=this.listeners[_];return}}y.pop()}walkSync(y){y[e]=!0;let w=l(y);for(let S of w)if(S===r)y.nodes&&y.each(P=>{P[e]||this.walkSync(P)});else{let P=this.listeners[S];if(P&&this.visitSync(P,y.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 v.registerPostcss=C=>{b=C},Xt=v,v.default=v,h.registerLazyResult(v),c.registerLazyResult(v),Xt}var Zt,Ds;function bn(){if(Ds)return Zt;Ds=1;let e=wi(),i=He(),u=yi(),d=Pr();const s=Cr();class c{constructor(m,a,h){a=a.toString(),this.stringified=!1,this._processor=m,this._css=a,this._opts=h,this._map=void 0;let t,o=i;this.result=new s(this._processor,t,this._opts),this.result.css=a;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let r=new e(o,t,this._opts,a);if(r.isMap()){let[f,l]=r.generate();f&&(this.result.css=f),l&&(this.result.map=l)}else r.clearAnnotation(),this.result.css=r.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(m){return this.async().catch(m)}finally(m){return this.async().then(m,m)}sync(){if(this.error)throw this.error;return this.result}then(m,a){return this.async().then(m,a)}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 m,a=d;try{m=a(this._css,this._opts)}catch(h){this.error=h}if(this.error)throw this.error;return this._root=m,m}get[Symbol.toStringTag](){return"NoWorkResult"}}return Zt=c,c.default=c,Zt}var er,Fs;function vn(){if(Fs)return er;Fs=1;let e=bn(),i=Si(),u=xr(),d=ke();class s{constructor(p=[]){this.version="8.4.38",this.plugins=this.normalize(p)}normalize(p){let m=[];for(let a of p)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))m=m.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)m.push(a);else if(typeof a=="function")m.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return m}process(p,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new e(this,p,m):new i(this,p,m)}use(p){return this.plugins=this.plugins.concat(this.normalize([p])),this}}return er=s,s.default=s,d.registerProcessor(s),u.registerProcessor(s),er}var tr,zs;function Sn(){if(zs)return tr;zs=1;let e=Qe(),i=gi(),u=Xe(),d=Rr(),s=Ke(),c=ke(),p=Or();function m(a,h){if(Array.isArray(a))return a.map(f=>m(f));let n=a,{inputs:t}=n,o=Re(n,["inputs"]);if(t){h=[];for(let f of t){let l=ie(Q({},f),{__proto__:s.prototype});l.map&&(l.map=ie(Q({},l.map),{__proto__:i.prototype})),h.push(l)}}if(o.nodes&&(o.nodes=a.nodes.map(f=>m(f,h))),o.source){let r=o.source,{inputId:f}=r,l=Re(r,["inputId"]);o.source=l,f!=null&&(o.source.input=h[f])}if(o.type==="root")return new c(o);if(o.type==="decl")return new e(o);if(o.type==="rule")return new p(o);if(o.type==="comment")return new u(o);if(o.type==="atrule")return new d(o);throw new Error("Unknown node type: "+a.type)}return tr=m,m.default=m,tr}var rr,qs;function xn(){if(qs)return rr;qs=1;let e=vr(),i=Qe(),u=Si(),d=pe(),s=vn(),c=He(),p=Sn(),m=xr(),a=bi(),h=Xe(),t=Rr(),o=Cr(),n=Ke(),r=Pr(),f=vi(),l=Or(),g=ke(),x=Ye();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new s(v)}return b.plugin=function(C,y){let w=!1;function S(...A){console&&console.warn&&!w&&(w=!0,console.warn(C+`: postcss.plugin was deprecated. Migration guide:
|
|
63
|
+
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:
|
|
64
|
+
https://www.w3ctech.com/topic/2226`));let _=y(...A);return _.postcssPlugin=C,_.postcssVersion=new s().version,_}let P;return Object.defineProperty(S,"postcss",{get(){return P||(P=S()),P}}),S.process=function(A,_,U){return b([S(U)]).process(A,_)},S},b.stringify=c,b.parse=r,b.fromJSON=p,b.list=f,b.comment=v=>new h(v),b.atRule=v=>new t(v),b.decl=v=>new i(v),b.rule=v=>new l(v),b.root=v=>new g(v),b.document=v=>new m(v),b.CssSyntaxError=e,b.Declaration=i,b.Container=d,b.Processor=s,b.Document=m,b.Comment=h,b.Warning=a,b.AtRule=t,b.Result=o,b.Input=n,b.Rule=l,b.Root=g,b.Node=x,u.registerPostcss(b),rr=b,b.default=b,rr}var Cn=xn();const G=hn(Cn);G.stringify;G.fromJSON;G.plugin;G.parse;G.list;G.document;G.comment;G.atRule;G.rule;G.decl;G.root;G.CssSyntaxError;G.Declaration;G.Container;G.Processor;G.Document;G.Comment;G.Warning;G.AtRule;G.Result;G.Input;G.Rule;G.Root;G.Node;const we=`Please stop import mirror directly. Instead of that,\r
|
|
66
65
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
67
|
-
or you can use record.mirror to access the mirror instance during recording.`;let an={map:{},getId(){return console.error(Ge),-1},getNode(){return console.error(Ge),null},removeNodeFromMap(){console.error(Ge)},has(){return console.error(Ge),!1},reset(){console.error(Ge)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(an=new Proxy(an,{get(r,e,t){return e==="map"&&console.error(Ge),Reflect.get(r,e,t)}}));Date.now().toString();function Jf(r=window){"NodeList"in r&&!r.NodeList.prototype.forEach&&(r.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in r&&!r.DOMTokenList.prototype.forEach&&(r.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Kf(r){const e={},t=(s,o)=>{const n={value:s,parent:o,children:[]};return e[s.node.id]=n,n},i=[];for(const s of r){const{nextId:o,parentId:n}=s;if(o&&o in e){const l=e[o];if(l.parent){const a=l.parent.children.indexOf(l);l.parent.children.splice(a,0,t(s,l.parent))}else{const a=i.indexOf(l);i.splice(a,0,t(s,null))}continue}if(n in e){const l=e[n];l.children.push(t(s,l));continue}i.push(t(s,null))}return i}function Cl(r,e){e(r.value);for(let t=r.children.length-1;t>=0;t--)Cl(r.children[t],e)}function Zi(r,e){return!!(r.nodeName==="IFRAME"&&e.getMeta(r))}function Sl(r,e){var t,i;const s=(i=(t=r.ownerDocument)==null?void 0:t.defaultView)==null?void 0:i.frameElement;if(!s||s===e)return{x:0,y:0,relativeScale:1,absoluteScale:1};const o=s.getBoundingClientRect(),n=Sl(s,e),l=o.height/s.clientHeight;return{x:o.x*n.relativeScale+n.x,y:o.y*n.relativeScale+n.y,relativeScale:l,absoluteScale:n.absoluteScale*l}}function Kt(r){return r?r instanceof ye&&"shadowRoot"in r?!!r.shadowRoot:!!Xf.shadowRoot(r):!1}function ht(r,e){const t=r[e[0]];return e.length===1?t:ht(t.cssRules[e[1]].cssRules,e.slice(2))}function un(r){const e=[...r],t=e.pop();return{positions:e,index:t}}function Qf(r){const e=new Set,t=[];for(let i=r.length;i--;){const s=r[i];e.has(s.id)||(t.push(s),e.add(s.id))}return t}class qf{constructor(){N(this,"id",1),N(this,"styleIDMap",new WeakMap),N(this,"idStyleMap",new Map)}getId(e){var t;return(t=this.styleIDMap.get(e))!=null?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let i;return t===void 0?i=this.id++:i=t,this.styleIDMap.set(e,i),this.idStyleMap.set(i,e),i}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}var H=(r=>(r[r.DomContentLoaded=0]="DomContentLoaded",r[r.Load=1]="Load",r[r.FullSnapshot=2]="FullSnapshot",r[r.IncrementalSnapshot=3]="IncrementalSnapshot",r[r.Meta=4]="Meta",r[r.Custom=5]="Custom",r[r.Plugin=6]="Plugin",r))(H||{}),_=(r=>(r[r.Mutation=0]="Mutation",r[r.MouseMove=1]="MouseMove",r[r.MouseInteraction=2]="MouseInteraction",r[r.Scroll=3]="Scroll",r[r.ViewportResize=4]="ViewportResize",r[r.Input=5]="Input",r[r.TouchMove=6]="TouchMove",r[r.MediaInteraction=7]="MediaInteraction",r[r.StyleSheetRule=8]="StyleSheetRule",r[r.CanvasMutation=9]="CanvasMutation",r[r.Font=10]="Font",r[r.Log=11]="Log",r[r.Drag=12]="Drag",r[r.StyleDeclaration=13]="StyleDeclaration",r[r.Selection=14]="Selection",r[r.AdoptedStyleSheet=15]="AdoptedStyleSheet",r[r.CustomElement=16]="CustomElement",r))(_||{}),ie=(r=>(r[r.MouseUp=0]="MouseUp",r[r.MouseDown=1]="MouseDown",r[r.Click=2]="Click",r[r.ContextMenu=3]="ContextMenu",r[r.DblClick=4]="DblClick",r[r.Focus=5]="Focus",r[r.Blur=6]="Blur",r[r.TouchStart=7]="TouchStart",r[r.TouchMove_Departed=8]="TouchMove_Departed",r[r.TouchEnd=9]="TouchEnd",r[r.TouchCancel=10]="TouchCancel",r))(ie||{}),vi=(r=>(r[r["2D"]=0]="2D",r[r.WebGL=1]="WebGL",r[r.WebGL2=2]="WebGL2",r))(vi||{}),kr=(r=>(r[r.Play=0]="Play",r[r.Pause=1]="Pause",r[r.Seeked=2]="Seeked",r[r.VolumeChange=3]="VolumeChange",r[r.RateChange=4]="RateChange",r))(kr||{}),P=(r=>(r.Start="start",r.Pause="pause",r.Resume="resume",r.Resize="resize",r.Finish="finish",r.FullsnapshotRebuilded="fullsnapshot-rebuilded",r.LoadStylesheetStart="load-stylesheet-start",r.LoadStylesheetEnd="load-stylesheet-end",r.SkipStart="skip-start",r.SkipEnd="skip-end",r.MouseInteraction="mouse-interaction",r.EventCast="event-cast",r.CustomEvent="custom-event",r.Flush="flush",r.StateChange="state-change",r.PlayBack="play-back",r.Destroy="destroy",r))(P||{}),De=(r=>(r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r))(De||{}),cn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ft=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var Qt=0;Qt<cn.length;Qt++)ft[cn.charCodeAt(Qt)]=Qt;var ep=function(r){var e=r.length*.75,t=r.length,i,s=0,o,n,l,a;r[r.length-1]==="="&&(e--,r[r.length-2]==="="&&e--);var u=new ArrayBuffer(e),c=new Uint8Array(u);for(i=0;i<t;i+=4)o=ft[r.charCodeAt(i)],n=ft[r.charCodeAt(i+1)],l=ft[r.charCodeAt(i+2)],a=ft[r.charCodeAt(i+3)],c[s++]=o<<2|n>>4,c[s++]=(n&15)<<4|l>>2,c[s++]=(l&3)<<6|a&63;return u};const tp="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",ip=r=>Uint8Array.from(atob(r),e=>e.charCodeAt(0));typeof window!="undefined"&&window.Blob&&new Blob([ip(tp)],{type:"text/javascript;charset=utf-8"});try{if(Array.from([1],r=>r*2)[0]!==2){const r=document.createElement("iframe");document.body.appendChild(r),Array.from=((bs=r.contentWindow)==null?void 0:bs.Array.from)||Array.from,document.body.removeChild(r)}}catch(r){console.debug("Unable to override Array.from",r)}jn();function El(r){return{all:r=r||new Map,on:function(e,t){var i=r.get(e);i?i.push(t):r.set(e,[t])},off:function(e,t){var i=r.get(e);i&&(t?i.splice(i.indexOf(t)>>>0,1):r.set(e,[]))},emit:function(e,t){var i=r.get(e);i&&i.slice().map(function(s){s(t)}),(i=r.get("*"))&&i.slice().map(function(s){s(e,t)})}}}const rp=Object.freeze(Object.defineProperty({__proto__:null,default:El},Symbol.toStringTag,{value:"Module"}));function sp(r=window,e=document){if("scrollBehavior"in e.documentElement.style&&r.__forceSmoothScrollPolyfill__!==!0)return;const t=r.HTMLElement||r.Element,i=468,s={scroll:r.scroll||r.scrollTo,scrollBy:r.scrollBy,elementScroll:t.prototype.scroll||a,scrollIntoView:t.prototype.scrollIntoView},o=r.performance&&r.performance.now?r.performance.now.bind(r.performance):Date.now;function n(m){const w=["MSIE ","Trident/","Edge/"];return new RegExp(w.join("|")).test(m)}const l=n(r.navigator.userAgent)?1:0;function a(m,w){this.scrollLeft=m,this.scrollTop=w}function u(m){return .5*(1-Math.cos(Math.PI*m))}function c(m){if(m===null||typeof m!="object"||m.behavior===void 0||m.behavior==="auto"||m.behavior==="instant")return!0;if(typeof m=="object"&&m.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+m.behavior+" is not a valid value for enumeration ScrollBehavior.")}function h(m,w){if(w==="Y")return m.clientHeight+l<m.scrollHeight;if(w==="X")return m.clientWidth+l<m.scrollWidth}function f(m,w){const v=r.getComputedStyle(m,null)["overflow"+w];return v==="auto"||v==="scroll"}function g(m){const w=h(m,"Y")&&f(m,"Y"),v=h(m,"X")&&f(m,"X");return w||v}function d(m){for(;m!==e.body&&g(m)===!1;)m=m.parentNode||m.host;return m}function A(m){const w=o();let v,x,R,D=(w-m.startTime)/i;D=D>1?1:D,v=u(D),x=m.startX+(m.x-m.startX)*v,R=m.startY+(m.y-m.startY)*v,m.method.call(m.scrollable,x,R),(x!==m.x||R!==m.y)&&r.requestAnimationFrame(A.bind(r,m))}function p(m,w,v){let x,R,D,Z;const I=o();m===e.body?(x=r,R=r.scrollX||r.pageXOffset,D=r.scrollY||r.pageYOffset,Z=s.scroll):(x=m,R=m.scrollLeft,D=m.scrollTop,Z=a),A({scrollable:x,method:Z,startTime:I,startX:R,startY:D,x:w,y:v})}r.scroll=r.scrollTo=function(){if(arguments[0]!==void 0){if(c(arguments[0])===!0){s.scroll.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:r.scrollY||r.pageYOffset);return}p.call(r,e.body,arguments[0].left!==void 0?~~arguments[0].left:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:r.scrollY||r.pageYOffset)}},r.scrollBy=function(){if(arguments[0]!==void 0){if(c(arguments[0])){s.scrollBy.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}p.call(r,e.body,~~arguments[0].left+(r.scrollX||r.pageXOffset),~~arguments[0].top+(r.scrollY||r.pageYOffset))}},t.prototype.scroll=t.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(c(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");s.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}const m=arguments[0].left,w=arguments[0].top;p.call(this,this,typeof m=="undefined"?this.scrollLeft:~~m,typeof w=="undefined"?this.scrollTop:~~w)},t.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(c(arguments[0])===!0){s.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},t.prototype.scrollIntoView=function(){if(c(arguments[0])===!0){s.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const m=d(this),w=m.getBoundingClientRect(),v=this.getBoundingClientRect();m!==e.body?(p.call(this,m,m.scrollLeft+v.left-w.left,m.scrollTop+v.top-w.top),r.getComputedStyle(m).position!=="fixed"&&r.scrollBy({left:w.left,top:w.top,behavior:"smooth"})):r.scrollBy({left:v.left,top:v.top,behavior:"smooth"})}}class np{constructor(e=[],t){N(this,"timeOffset",0),N(this,"speed"),N(this,"actions"),N(this,"raf",null),N(this,"lastTimestamp"),this.actions=e,this.speed=t.speed}addAction(e){const t=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=e.delay)this.actions.push(e);else{const i=this.findActionIndex(e);this.actions.splice(i,0,e)}t&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){const e=performance.now();for(this.timeOffset+=(e-this.lastTimestamp)*this.speed,this.lastTimestamp=e;this.actions.length;){const t=this.actions[0];if(this.timeOffset>=t.delay)this.actions.shift(),t.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(this.raf!==!0&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(e){this.speed=e}isActive(){return this.raf!==null}findActionIndex(e){let t=0,i=this.actions.length-1;for(;t<=i;){const s=Math.floor((t+i)/2);if(this.actions[s].delay<e.delay)t=s+1;else if(this.actions[s].delay>e.delay)i=s-1;else return s+1}return t}}function hn(r,e){if(r.type===H.IncrementalSnapshot&&r.data.source===_.MouseMove&&r.data.positions&&r.data.positions.length){const t=r.data.positions[0].timeOffset,i=r.timestamp+t;return r.delay=i-e,i-e}return r.delay=r.timestamp-e,r.delay}/*! *****************************************************************************
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
***************************************************************************** */function fn(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i,s,o=t.call(r),n=[];try{for(;(e===void 0||e-- >0)&&!(i=o.next()).done;)n.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(s)throw s.error}}return n}var Ze;(function(r){r[r.NotStarted=0]="NotStarted",r[r.Running=1]="Running",r[r.Stopped=2]="Stopped"})(Ze||(Ze={}));var xl={type:"xstate.init"};function Hi(r){return r===void 0?[]:[].concat(r)}function Ye(r){return{type:"xstate.assign",assignment:r}}function pn(r,e){return typeof(r=typeof r=="string"&&e&&e[r]?e[r]:r)=="string"?{type:r}:typeof r=="function"?{type:r.name,exec:r}:r}function bi(r){return function(e){return r===e}}function Al(r){return typeof r=="string"?{type:r}:r}function dn(r,e){return{value:r,context:e,actions:[],changed:!1,matches:bi(r)}}function mn(r,e,t){var i=e,s=!1;return[r.filter(function(o){if(o.type==="xstate.assign"){s=!0;var n=Object.assign({},i);return typeof o.assignment=="function"?n=o.assignment(i,t):Object.keys(o.assignment).forEach(function(l){n[l]=typeof o.assignment[l]=="function"?o.assignment[l](i,t):o.assignment[l]}),i=n,!1}return!0}),i,s]}function Rl(r,e){e===void 0&&(e={});var t=fn(mn(Hi(r.states[r.initial].entry).map(function(n){return pn(n,e.actions)}),r.context,xl),2),i=t[0],s=t[1],o={config:r,_options:e,initialState:{value:r.initial,actions:i,context:s,matches:bi(r.initial)},transition:function(n,l){var a,u,c=typeof n=="string"?{value:n,context:r.context}:n,h=c.value,f=c.context,g=Al(l),d=r.states[h];if(d.on){var A=Hi(d.on[g.type]);try{for(var p=function(V){var oe=typeof Symbol=="function"&&Symbol.iterator,se=oe&&V[oe],te=0;if(se)return se.call(V);if(V&&typeof V.length=="number")return{next:function(){return V&&te>=V.length&&(V=void 0),{value:V&&V[te++],done:!V}}};throw new TypeError(oe?"Object is not iterable.":"Symbol.iterator is not defined.")}(A),m=p.next();!m.done;m=p.next()){var w=m.value;if(w===void 0)return dn(h,f);var v=typeof w=="string"?{target:w}:w,x=v.target,R=v.actions,D=R===void 0?[]:R,Z=v.cond,I=Z===void 0?function(){return!0}:Z,J=x===void 0,z=x!=null?x:h,fe=r.states[z];if(I(f,g)){var ae=fn(mn((J?Hi(D):[].concat(d.exit,D,fe.entry).filter(function(V){return V})).map(function(V){return pn(V,o._options.actions)}),f,g),3),q=ae[0],L=ae[1],ne=ae[2],k=x!=null?x:h;return{value:k,context:L,actions:q,changed:x!==h||q.length>0||ne,matches:bi(k)}}}}catch(V){a={error:V}}finally{try{m&&!m.done&&(u=p.return)&&u.call(p)}finally{if(a)throw a.error}}}return dn(h,f)}};return o}var gn=function(r,e){return r.actions.forEach(function(t){var i=t.exec;return i&&i(r.context,e)})};function Nl(r){var e=r.initialState,t=Ze.NotStarted,i=new Set,s={_machine:r,send:function(o){t===Ze.Running&&(e=r.transition(e,o),gn(e,Al(o)),i.forEach(function(n){return n(e)}))},subscribe:function(o){return i.add(o),o(e),{unsubscribe:function(){return i.delete(o)}}},start:function(o){if(o){var n=typeof o=="object"?o:{context:r.config.context,value:o};e={value:n.value,actions:[],context:n.context,matches:bi(n.value)}}return t=Ze.Running,gn(e,xl),s},stop:function(){return t=Ze.Stopped,i.clear(),s},get state(){return e},get status(){return t}};return s}function op(r,e){for(let t=r.length-1;t>=0;t--){const i=r[t];if(i.type===H.Meta&&i.timestamp<=e)return r.slice(t)}return r}function lp(r,{getCastFn:e,applyEventsSynchronously:t,emitter:i}){const s=Rl({id:"player",context:r,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:Ye({lastPlayedEvent:(o,n)=>n.type==="CAST_EVENT"?n.payload.event:o.lastPlayedEvent}),recordTimeOffset:Ye((o,n)=>{let l=o.timeOffset;return"payload"in n&&"timeOffset"in n.payload&&(l=n.payload.timeOffset),le(U({},o),{timeOffset:l,baselineTime:o.events[0].timestamp+l})}),play(o){var n;const{timer:l,events:a,baselineTime:u,lastPlayedEvent:c}=o;l.clear();for(const d of a)hn(d,u);const h=op(a,u);let f=c==null?void 0:c.timestamp;(c==null?void 0:c.type)===H.IncrementalSnapshot&&c.data.source===_.MouseMove&&(f=c.timestamp+((n=c.data.positions[0])==null?void 0:n.timeOffset)),u<(f||0)&&i.emit(P.PlayBack);const g=new Array;for(const d of h)if(!(f&&f<u&&(d.timestamp<=f||d===c)))if(d.timestamp<u)g.push(d);else{const A=e(d,!1);l.addAction({doAction:()=>{A()},delay:d.delay})}t(g),i.emit(P.Flush),l.start()},pause(o){o.timer.clear()},resetLastPlayedEvent:Ye(o=>le(U({},o),{lastPlayedEvent:null})),startLive:Ye({baselineTime:(o,n)=>(o.timer.start(),n.type==="TO_LIVE"&&n.payload.baselineTime?n.payload.baselineTime:Date.now())}),addEvent:Ye((o,n)=>{const{baselineTime:l,timer:a,events:u}=o;if(n.type==="ADD_EVENT"){const{event:c}=n.payload;hn(c,l);let h=u.length-1;if(!u[h]||u[h].timestamp<=c.timestamp)u.push(c);else{let d=-1,A=0;for(;A<=h;){const p=Math.floor((A+h)/2);u[p].timestamp<=c.timestamp?A=p+1:h=p-1}d===-1&&(d=A),u.splice(d,0,c)}const f=c.timestamp<l,g=e(c,f);f?g():a.isActive()&&a.addAction({doAction:()=>{g()},delay:c.delay})}return le(U({},o),{events:u})})}});return Nl(s)}function ap(r){const e=Rl({id:"speed",context:r,initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(t,i)=>{"payload"in i&&t.timer.setSpeed(i.payload.speed)},recordSpeed:Ye({normalSpeed:t=>t.timer.speed}),restoreSpeed:t=>{t.timer.setSpeed(t.normalSpeed)}}});return Nl(e)}const yn=r=>[`.${r} { background: currentColor }`,"noscript { display: none !important; }"],wn=new Map;function Ml(r,e){let t=wn.get(r);return t||(t=new Map,wn.set(r,t)),t.has(e)||t.set(e,[]),t.get(e)}function Oe(r,e,t){return async i=>{if(i&&typeof i=="object"&&"rr_type"in i)if(t&&(t.isUnchanged=!1),i.rr_type==="ImageBitmap"&&"args"in i){const s=await Oe(r,e,t)(i.args);return await createImageBitmap.apply(null,s)}else if("index"in i){if(t||e===null)return i;const{rr_type:s,index:o}=i;return Ml(e,s)[o]}else if("args"in i){const{rr_type:s,args:o}=i,n=window[s];return new n(...await Promise.all(o.map(Oe(r,e,t))))}else{if("base64"in i)return ep(i.base64);if("src"in i){const s=r.get(i.src);if(s)return s;{const o=new Image;return o.src=i.src,r.set(i.src,o),o}}else if("data"in i&&i.rr_type==="Blob"){const s=await Promise.all(i.data.map(Oe(r,e,t)));return new Blob(s,{type:i.type})}}else if(Array.isArray(i))return await Promise.all(i.map(Oe(r,e,t)));return i}}function up(r,e){try{return e===vi.WebGL?r.getContext("webgl")||r.getContext("experimental-webgl"):r.getContext("webgl2")}catch(t){return null}}const cp=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function hp(r,e){if(!(e!=null&&e.constructor))return;const{name:t}=e.constructor;if(!cp.includes(t))return;const i=Ml(r,t);i.includes(e)||i.push(e)}async function fp({mutation:r,target:e,type:t,imageMap:i,errorHandler:s}){try{const o=up(e,t);if(!o)return;if(r.setter){o[r.property]=r.args[0];return}const n=o[r.property],l=await Promise.all(r.args.map(Oe(i,o))),a=n.apply(o,l);hp(o,a);const u=!1}catch(o){s(r,o)}}async function pp({event:r,mutations:e,target:t,imageMap:i,errorHandler:s}){const o=t.getContext("2d");if(!o){s(e[0],new Error("Canvas context is null"));return}const n=e.map(async a=>Promise.all(a.args.map(Oe(i,o))));(await Promise.all(n)).forEach((a,u)=>{const c=e[u];try{if(c.setter){o[c.property]=c.args[0];return}const h=o[c.property];c.property==="drawImage"&&typeof c.args[0]=="string"?(i.get(r),h.apply(o,c.args)):h.apply(o,a)}catch(h){s(c,h)}})}async function vn({event:r,mutation:e,target:t,imageMap:i,canvasEventMap:s,errorHandler:o}){try{const n=s.get(r)||e,l="commands"in n?n.commands:[n];if([vi.WebGL,vi.WebGL2].includes(e.type)){for(let a=0;a<l.length;a++){const u=l[a];await fp({mutation:u,type:e.type,target:t,imageMap:i,errorHandler:o})}return}await pp({event:r,mutations:l,target:t,imageMap:i,errorHandler:o})}catch(n){o(e,n)}}class dp{constructor(e){N(this,"mediaMap",new Map),N(this,"warn"),N(this,"service"),N(this,"speedService"),N(this,"emitter"),N(this,"getCurrentTime"),N(this,"metadataCallbackMap",new Map),this.warn=e.warn,this.service=e.service,this.speedService=e.speedService,this.emitter=e.emitter,this.getCurrentTime=e.getCurrentTime,this.emitter.on(P.Start,this.start.bind(this)),this.emitter.on(P.SkipStart,this.start.bind(this)),this.emitter.on(P.Pause,this.pause.bind(this)),this.emitter.on(P.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(e={pause:!1}){this.mediaMap.forEach((t,i)=>{this.syncTargetWithState(i),e.pause&&i.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:e,target:t,mediaState:i}){if(i.isPlaying){const o=(e-i.lastInteractionTimeOffset)/1e3*i.playbackRate,n="duration"in t&&t.duration;if(Number.isNaN(n)){this.waitForMetadata(t);return}let l=i.currentTimeAtLastInteraction+o;t.loop&&n!==!1&&(l=l%n),t.currentTime=l}else t.pause(),t.currentTime=i.currentTimeAtLastInteraction}waitForMetadata(e){if(this.metadataCallbackMap.has(e)||!("addEventListener"in e))return;const t=()=>{this.metadataCallbackMap.delete(e);const i=this.mediaMap.get(e);i&&this.seekTo({time:this.getCurrentTime(),target:e,mediaState:i})};this.metadataCallbackMap.set(e,t),e.addEventListener("loadedmetadata",t,{once:!0})}getMediaStateFromMutation({target:e,timeOffset:t,mutation:i}){var g,d,A,p,m;const s=this.mediaMap.get(e),{type:o,playbackRate:n,currentTime:l,muted:a,volume:u,loop:c}=i;return{isPlaying:o===kr.Play||o!==kr.Pause&&((s==null?void 0:s.isPlaying)||e.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:(g=l!=null?l:s==null?void 0:s.currentTimeAtLastInteraction)!=null?g:0,lastInteractionTimeOffset:t,playbackRate:(d=n!=null?n:s==null?void 0:s.playbackRate)!=null?d:1,volume:(A=u!=null?u:s==null?void 0:s.volume)!=null?A:1,muted:(p=a!=null?a:s==null?void 0:s.muted)!=null?p:e.getAttribute("muted")===null,loop:(m=c!=null?c:s==null?void 0:s.loop)!=null?m:e.getAttribute("loop")===null}}syncTargetWithState(e){const t=this.mediaMap.get(e);if(!t)return;const{muted:i,loop:s,volume:o,isPlaying:n}=t,l=this.service.state.matches("paused"),a=t.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:e,mediaState:t}),e.volume!==o&&(e.volume=o),e.muted=i,e.loop=s,e.playbackRate!==a&&(e.playbackRate=a),n&&!l?e.play():e.pause()}catch(u){this.warn(`Failed to replay media interactions: ${u.message||u}`)}}addMediaElements(e,t,i){if(!["AUDIO","VIDEO"].includes(e.nodeName))return;const s=e,o=i.getMeta(s);if(!o||!("attributes"in o))return;const n=this.service.state.matches("paused"),l=o.attributes;let a=!1;l.rr_mediaState?a=l.rr_mediaState==="played":a=s.getAttribute("autoplay")!==null,a&&n&&s.pause();let u=1;typeof l.rr_mediaPlaybackRate=="number"&&(u=l.rr_mediaPlaybackRate);let c=!1;typeof l.rr_mediaMuted=="boolean"?c=l.rr_mediaMuted:c=s.getAttribute("muted")!==null;let h=!1;typeof l.rr_mediaLoop=="boolean"?h=l.rr_mediaLoop:h=s.getAttribute("loop")!==null;let f=1;typeof l.rr_mediaVolume=="number"&&(f=l.rr_mediaVolume);let g=0;typeof l.rr_mediaCurrentTime=="number"&&(g=l.rr_mediaCurrentTime),this.mediaMap.set(s,{isPlaying:a,currentTimeAtLastInteraction:g,lastInteractionTimeOffset:t,playbackRate:u,volume:f,muted:c,loop:h}),this.syncTargetWithState(s)}mediaMutation({target:e,timeOffset:t,mutation:i}){this.mediaMap.set(e,this.getMediaStateFromMutation({target:e,timeOffset:t,mutation:i})),this.syncTargetWithState(e)}isSupportedMediaElement(e){return["AUDIO","VIDEO"].includes(e.nodeName)}reset(){this.mediaMap.clear()}}function qt(r,e){if(r.nodeName!=="DIALOG"||r instanceof ye)return;const t=r,i=t.open,s=i&&t.matches("dialog:modal"),o=t.getAttribute("rr_open_mode"),n=typeof(e==null?void 0:e.attributes.open)=="string"||typeof t.getAttribute("open")=="string",l=o==="modal";if(!(i&&!(s&&o==="non-modal"||!s&&l))){if(!t.isConnected){console.warn("dialog is not attached to the dom",t);return}i&&t.close(),n&&(l?t.showModal():t.show())}}function mp(r,e){if(r.nodeName!=="DIALOG"||r instanceof ye)return;const t=r;if(!t.isConnected){console.warn("dialog is not attached to the dom",t);return}e.attributes.open===null&&(t.removeAttribute("open"),t.removeAttribute("rr_open_mode"))}const gp=El||rp,bn="[replayer]",ei="__rrweb-injected-style__",Xi={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Cn(r){return r.type==H.IncrementalSnapshot&&(r.data.source==_.TouchMove||r.data.source==_.MouseInteraction&&r.data.type==ie.TouchStart)}class yp{constructor(e,t){if(N(this,"wrapper"),N(this,"iframe"),N(this,"service"),N(this,"speedService"),N(this,"config"),N(this,"usingVirtualDom",!1),N(this,"virtualDom",new st),N(this,"mouse"),N(this,"mouseTail",null),N(this,"tailPositions",[]),N(this,"emitter",gp()),N(this,"nextUserInteractionEvent"),N(this,"legacy_missingNodeRetryMap",{}),N(this,"cache",Us()),N(this,"imageMap",new Map),N(this,"canvasEventMap",new Map),N(this,"mirror",jn()),N(this,"styleMirror",new qf),N(this,"mediaManager"),N(this,"firstFullSnapshot",null),N(this,"newDocumentQueue",[]),N(this,"mousePos",null),N(this,"touchActive",null),N(this,"lastMouseDownEvent",null),N(this,"lastHoveredRootNode"),N(this,"lastSelectionData",null),N(this,"constructedStyleMutations",[]),N(this,"adoptedStyleSheets",[]),N(this,"handleResize",l=>{this.iframe.style.display="inherit";for(const a of[this.mouseTail,this.iframe])a&&(a.setAttribute("width",String(l.width)),a.setAttribute("height",String(l.height)))}),N(this,"applyEventsSynchronously",l=>{for(const a of l){switch(a.type){case H.DomContentLoaded:case H.Load:case H.Custom:continue;case H.FullSnapshot:case H.Meta:case H.Plugin:case H.IncrementalSnapshot:break}this.getCastFn(a,!0)()}}),N(this,"getCastFn",(l,a=!1)=>{let u;switch(l.type){case H.DomContentLoaded:case H.Load:break;case H.Custom:u=()=>{this.emitter.emit(P.CustomEvent,l)};break;case H.Meta:u=()=>this.emitter.emit(P.Resize,{width:l.data.width,height:l.data.height});break;case H.FullSnapshot:u=()=>{var h;if(this.firstFullSnapshot){if(this.firstFullSnapshot===l){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(l,a),(h=this.iframe.contentWindow)==null||h.scrollTo(l.data.initialOffset)};break;case H.IncrementalSnapshot:u=()=>{if(this.applyIncremental(l,a),!a&&this.config.skipInactive&&!this.nextUserInteractionEvent){for(const h of this.service.state.context.events)if(!(h.timestamp<=l.timestamp)&&this.isUserInteraction(h)){h.delay-l.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=h);break}if(this.nextUserInteractionEvent){const h=this.nextUserInteractionEvent.delay-l.delay;this.play(this.getCurrentTime()+h),this.nextUserInteractionEvent=null}}};break}return()=>{u&&u();for(const f of this.config.plugins||[])f.handler&&f.handler(l,a,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:l}});const h=this.service.state.context.events.length-1;if(!this.config.liveMode&&l===this.service.state.context.events[h]){const f=()=>{h<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(P.Finish))};let g=50;l.type===H.IncrementalSnapshot&&l.data.source===_.MouseMove&&l.data.positions.length&&(g+=Math.max(0,-l.data.positions[0].timeOffset)),setTimeout(f,g)}this.emitter.emit(P.EventCast,l)}}),!(t!=null&&t.liveMode)&&e.length<2)throw new Error("Replayer need at least 2 events.");const i={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:10*1e3,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:Xi,useVirtualDom:!0,logger:console};this.config=Object.assign({},i,t),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(P.Resize,this.handleResize),this.setupDom();for(const l of this.config.plugins||[])l.getMirror&&l.getMirror({nodeMirror:this.mirror});this.emitter.on(P.Flush,()=>{if(this.usingVirtualDom){const l={mirror:this.mirror,applyCanvas:(a,u,c)=>{vn({event:a,mutation:u,target:c,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(a,u)=>{a.source===_.StyleSheetRule?this.applyStyleSheetRule(a,u):a.source===_.StyleDeclaration&&this.applyStyleDeclaration(a,u)},afterAppend:(a,u)=>{for(const c of this.config.plugins||[])c.onBuild&&c.onBuild(a,{id:u,replayer:this})}};if(this.iframe.contentDocument)try{yi(this.iframe.contentDocument,this.virtualDom,l,this.virtualDom.mirror)}catch(a){console.warn(a)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(const a in this.legacy_missingNodeRetryMap)try{const u=this.legacy_missingNodeRetryMap[a],c=wi(u.node,this.mirror,this.virtualDom.mirror);yi(c,u.node,l,this.virtualDom.mirror),u.node=c}catch(u){this.warn(u)}this.constructedStyleMutations.forEach(a=>{this.applyStyleSheetMutation(a)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(a=>{this.applyAdoptedStyleSheet(a)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),this.touchActive===!0?this.mouse.classList.add("touch-active"):this.touchActive===!1&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){const[l,a]=this.lastMouseDownEvent;l.dispatchEvent(a)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(P.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});const s=new np([],{speed:this.config.speed});this.service=lp({events:e.map(l=>t&&t.unpackFn?t.unpackFn(l):l).sort((l,a)=>l.timestamp-a.timestamp),timer:s,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(l=>{this.emitter.emit(P.StateChange,{player:l})}),this.speedService=ap({normalSpeed:-1,timer:s}),this.speedService.start(),this.speedService.subscribe(l=>{this.emitter.emit(P.StateChange,{speed:l})}),this.mediaManager=new dp({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});const o=this.service.state.context.events.find(l=>l.type===H.Meta),n=this.service.state.context.events.find(l=>l.type===H.FullSnapshot);if(o){const{width:l,height:a}=o.data;setTimeout(()=>{this.emitter.emit(P.Resize,{width:l,height:a})},0)}n&&setTimeout(()=>{var l;this.firstFullSnapshot||(this.firstFullSnapshot=n,this.rebuildFullSnapshot(n),(l=this.iframe.contentWindow)==null||l.scrollTo(n.data.initialOffset))},1),this.service.state.context.events.find(Cn)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(e,t){return this.emitter.on(e,t),this}off(e,t){return this.emitter.off(e,t),this}setConfig(e){Object.keys(e).forEach(t=>{e[t],this.config[t]=e[t]}),this.config.skipInactive||this.backToNormal(),typeof e.speed!="undefined"&&this.speedService.send({type:"SET_SPEED",payload:{speed:e.speed}}),typeof e.mouseTail!="undefined"&&(e.mouseTail===!1?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){const e=this.service.state.context.events[0],t=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:e.timestamp,endTime:t.timestamp,totalTime:t.timestamp-e.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){const{baselineTime:e,events:t}=this.service.state.context;return e-t[0].timestamp}getMirror(){return this.mirror}play(e=0){var t,i;this.service.state.matches("paused")?this.service.send({type:"PLAY",payload:{timeOffset:e}}):(this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:e}})),(i=(t=this.iframe.contentDocument)==null?void 0:t.getElementsByTagName("html")[0])==null||i.classList.remove("rrweb-paused"),this.emitter.emit(P.Start)}pause(e){var t,i;e===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof e=="number"&&(this.play(e),this.service.send({type:"PAUSE"})),(i=(t=this.iframe.contentDocument)==null?void 0:t.getElementsByTagName("html")[0])==null||i.classList.add("rrweb-paused"),this.emitter.emit(P.Pause)}resume(e=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(e),this.emitter.emit(P.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(P.Destroy)}startLive(e){this.service.send({type:"TO_LIVE",payload:{baselineTime:e}})}addEvent(e){const t=this.config.unpackFn?this.config.unpackFn(e):e;Cn(t)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:t}}))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=Us()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),this.config.mouseTail!==!1&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.iframe=document.createElement("iframe");const e=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&e.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",e.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(sp(this.iframe.contentWindow,this.iframe.contentDocument),Jf(this.iframe.contentWindow))}rebuildFullSnapshot(e,t=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};const i=[],s=new Set,o=(a,u)=>{if(a.nodeName==="DIALOG"&&s.add(a),this.collectIframeAndAttachDocument(i,a),this.mediaManager.isSupportedMediaElement(a)){const{events:c}=this.service.state.context;this.mediaManager.addMediaElements(a,e.timestamp-c[0].timestamp,this.mirror)}for(const c of this.config.plugins||[])c.onBuild&&c.onBuild(a,{id:u,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),dc(e.data.node,{doc:this.iframe.contentDocument,afterAppend:o,cache:this.cache,mirror:this.mirror}),o(this.iframe.contentDocument,e.data.node.id);for(const{mutationInQueue:a,builtNode:u}of i)this.attachDocumentToIframe(a,u),this.newDocumentQueue=this.newDocumentQueue.filter(c=>c!==a);const{documentElement:n,head:l}=this.iframe.contentDocument;this.insertStyleRules(n,l),s.forEach(a=>qt(a)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(P.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(e,t){var i;const s=yn(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&s.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),!!s.length)if(this.usingVirtualDom){const o=this.virtualDom.createElement("style");this.virtualDom.mirror.add(o,Tr(o,this.virtualDom.unserializedId)),e.insertBefore(o,t),o.rules.push({source:_.StyleSheetRule,adds:s.map((n,l)=>({rule:n,index:l}))})}else{const o=document.createElement("style");e.insertBefore(o,t);for(let n=0;n<s.length;n++)(i=o.sheet)==null||i.insertRule(s[n],n)}}isShadowRoot(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}insertStyleRulesIntoShadowRoot(e){var s;var t;const i=yn(this.config.blockClass).concat(this.config.insertStyleRules);if(i.length){if(this.usingVirtualDom&&e.getAttribute("id")!==ei){const o=this.virtualDom.createElement("style");this.virtualDom.mirror.add(o,Tr(o,this.virtualDom.unserializedId)),o.setAttribute("id",ei),e.insertBefore(o,e.firstChild||null),o.rules.push({source:_.StyleSheetRule,adds:i.map((n,l)=>({rule:n,index:l}))})}else if(this.isShadowRoot(e)&&!e.getElementById(ei)){const o=document.createElement("style");o.id=ei,e.insertBefore(o,(s=e.firstChild)!=null?s:null);for(let n=0;n<i.length;n++)(t=o.sheet)==null||t.insertRule(i[n],n)}}}attachDocumentToIframe(e,t){const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,s=[],o=new Set,n=(l,a)=>{l.nodeName==="DIALOG"&&o.add(l),this.collectIframeAndAttachDocument(s,l);const u=i.getMeta(l);if((u==null?void 0:u.type)===De.Element&&(u==null?void 0:u.tagName.toUpperCase())==="HTML"){const{documentElement:c,head:h}=t.contentDocument;this.insertStyleRules(c,h)}if(!this.usingVirtualDom)for(const c of this.config.plugins||[])c.onBuild&&c.onBuild(l,{id:a,replayer:this})};dt(e.node,{doc:t.contentDocument,mirror:i,hackCss:!0,skipChild:!1,afterAppend:n,cache:this.cache}),n(t.contentDocument,e.node.id);for(const{mutationInQueue:l,builtNode:a}of s)this.attachDocumentToIframe(l,a),this.newDocumentQueue=this.newDocumentQueue.filter(u=>u!==l);o.forEach(l=>qt(l))}collectIframeAndAttachDocument(e,t){if(Zi(t,this.mirror)){const i=this.newDocumentQueue.find(s=>s.parentId===this.mirror.getId(t));i&&e.push({mutationInQueue:i,builtNode:t})}}waitForStylesheetLoad(){var e;const t=(e=this.iframe.contentDocument)==null?void 0:e.head;if(t){const i=new Set;let s,o=this.service.state;const n=()=>{o=this.service.state};this.emitter.on(P.Start,n),this.emitter.on(P.Pause,n);const l=()=>{this.emitter.off(P.Start,n),this.emitter.off(P.Pause,n)};t.querySelectorAll('link[rel="stylesheet"]').forEach(a=>{a.sheet||(i.add(a),a.addEventListener("load",()=>{i.delete(a),i.size===0&&s!==-1&&(o.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(P.LoadStylesheetEnd),s&&clearTimeout(s),l())}))}),i.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(P.LoadStylesheetStart),s=setTimeout(()=>{o.matches("playing")&&this.play(this.getCurrentTime()),s=-1,l()},this.config.loadTimeout))}}async preloadAllImages(){const e=[];for(const t of this.service.state.context.events)t.type===H.IncrementalSnapshot&&t.data.source===_.CanvasMutation&&(e.push(this.deserializeAndPreloadCanvasEvents(t.data,t)),("commands"in t.data?t.data.commands:[t.data]).forEach(s=>{this.preloadImages(s,t)}));return Promise.all(e)}preloadImages(e,t){if(e.property==="drawImage"&&typeof e.args[0]=="string"&&!this.imageMap.has(t)){const i=document.createElement("canvas"),s=i.getContext("2d"),o=s==null?void 0:s.createImageData(i.width,i.height);s==null||s.putImageData(o,0,0)}}async deserializeAndPreloadCanvasEvents(e,t){if(!this.canvasEventMap.has(t)){const i={isUnchanged:!0};if("commands"in e){const s=await Promise.all(e.commands.map(async o=>{const n=await Promise.all(o.args.map(Oe(this.imageMap,null,i)));return le(U({},o),{args:n})}));i.isUnchanged===!1&&this.canvasEventMap.set(t,le(U({},e),{commands:s}))}else{const s=await Promise.all(e.args.map(Oe(this.imageMap,null,i)));i.isUnchanged===!1&&this.canvasEventMap.set(t,le(U({},e),{args:s}))}}}applyIncremental(e,t){var i,s,o;const{data:n}=e;switch(n.source){case _.Mutation:{try{this.applyMutation(n,t)}catch(l){this.warn(`Exception in mutation ${l.message||l}`,n)}break}case _.Drag:case _.TouchMove:case _.MouseMove:if(t){const l=n.positions[n.positions.length-1];this.mousePos={x:l.x,y:l.y,id:l.id,debugData:n}}else n.positions.forEach(l=>{const a={doAction:()=>{this.moveAndHover(l.x,l.y,l.id,t,n)},delay:l.timeOffset+e.timestamp-this.service.state.context.baselineTime};this.timer.addAction(a)}),this.timer.addAction({doAction(){},delay:e.delay-((i=n.positions[0])==null?void 0:i.timeOffset)});break;case _.MouseInteraction:{if(n.id===-1)break;const l=new Event(pa(ie[n.type])),a=this.mirror.getNode(n.id);if(!a)return this.debugNodeNotFound(n,n.id);this.emitter.emit(P.MouseInteraction,{type:n.type,target:a});const{triggerFocus:u}=this.config;switch(n.type){case ie.Blur:"blur"in a&&a.blur();break;case ie.Focus:u&&a.focus&&a.focus({preventScroll:!0});break;case ie.Click:case ie.TouchStart:case ie.TouchEnd:case ie.MouseDown:case ie.MouseUp:t?(n.type===ie.TouchStart?this.touchActive=!0:n.type===ie.TouchEnd&&(this.touchActive=!1),n.type===ie.MouseDown?this.lastMouseDownEvent=[a,l]:n.type===ie.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:n.x||0,y:n.y||0,id:n.id,debugData:n}):(n.type===ie.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(n.x||0,n.y||0,n.id,t,n),n.type===ie.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):n.type===ie.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):n.type===ie.TouchEnd?this.mouse.classList.remove("touch-active"):a.dispatchEvent(l));break;case ie.TouchCancel:t?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:a.dispatchEvent(l)}break}case _.Scroll:{if(n.id===-1)break;if(this.usingVirtualDom){const l=this.virtualDom.mirror.getNode(n.id);if(!l)return this.debugNodeNotFound(n,n.id);l.scrollData=n;break}this.applyScroll(n,t);break}case _.ViewportResize:this.emitter.emit(P.Resize,{width:n.width,height:n.height});break;case _.Input:{if(n.id===-1)break;if(this.usingVirtualDom){const l=this.virtualDom.mirror.getNode(n.id);if(!l)return this.debugNodeNotFound(n,n.id);l.inputData=n;break}this.applyInput(n);break}case _.MediaInteraction:{const l=this.usingVirtualDom?this.virtualDom.mirror.getNode(n.id):this.mirror.getNode(n.id);if(!l)return this.debugNodeNotFound(n,n.id);const a=l,{events:u}=this.service.state.context;this.mediaManager.mediaMutation({target:a,timeOffset:e.timestamp-u[0].timestamp,mutation:n});break}case _.StyleSheetRule:case _.StyleDeclaration:{this.usingVirtualDom?n.styleId?this.constructedStyleMutations.push(n):n.id&&((s=this.virtualDom.mirror.getNode(n.id))==null||s.rules.push(n)):this.applyStyleSheetMutation(n);break}case _.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){const l=this.virtualDom.mirror.getNode(n.id);if(!l)return this.debugNodeNotFound(n,n.id);l.canvasMutations.push({event:e,mutation:n})}else{const l=this.mirror.getNode(n.id);if(!l)return this.debugNodeNotFound(n,n.id);vn({event:e,mutation:n,target:l,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case _.Font:{try{const l=new FontFace(n.family,n.buffer?new Uint8Array(JSON.parse(n.fontSource)):n.fontSource,n.descriptors);(o=this.iframe.contentDocument)==null||o.fonts.add(l)}catch(l){this.warn(l)}break}case _.Selection:{if(t){this.lastSelectionData=n;break}this.applySelection(n);break}case _.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(n):this.applyAdoptedStyleSheet(n);break}}}applyMutation(e,t){if(this.config.useVirtualDom&&!this.usingVirtualDom&&t&&(this.usingVirtualDom=!0,Tf(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(const u in this.legacy_missingNodeRetryMap)try{const c=this.legacy_missingNodeRetryMap[u],h=vl(c.node,this.virtualDom,this.mirror);h&&(c.node=h)}catch(c){this.warn(c)}const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;e.removes=e.removes.filter(u=>i.getNode(u.id)?!0:(this.warnNodeNotFound(e,u.id),!1)),e.removes.forEach(u=>{var c;const h=i.getNode(u.id);if(!h)return;let f=i.getNode(u.parentId);if(!f)return this.warnNodeNotFound(e,u.parentId);if(u.isShadow&&Kt(f)&&(f=f.shadowRoot),i.removeNodeFromMap(h),f)try{f.removeChild(h),this.usingVirtualDom&&h.nodeName==="#text"&&f.nodeName==="STYLE"&&((c=f.rules)==null?void 0:c.length)>0&&(f.rules=[])}catch(g){if(g instanceof DOMException)this.warn("parent could not remove child in mutation",f,h,e);else throw g}});const s=U({},this.legacy_missingNodeRetryMap),o=[],n=u=>{let c=null;return u.nextId&&(c=i.getNode(u.nextId)),u.nextId!==null&&u.nextId!==void 0&&u.nextId!==-1&&!c},l=u=>{var c,h;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let f=i.getNode(u.parentId);if(!f)return u.node.type===De.Document?this.newDocumentQueue.push(u):o.push(u);u.node.isShadow&&(Kt(f)||f.attachShadow({mode:"open"}),f=f.shadowRoot,this.insertStyleRulesIntoShadowRoot(f));let g=null,d=null;if(u.previousId&&(g=i.getNode(u.previousId)),u.nextId&&(d=i.getNode(u.nextId)),n(u))return o.push(u);if(u.node.rootId&&!i.getNode(u.node.rootId))return;const A=u.node.rootId?i.getNode(u.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(Zi(f,i)){this.attachDocumentToIframe(u,f);return}const p=(v,x)=>{if(!this.usingVirtualDom){qt(v);for(const R of this.config.plugins||[])R.onBuild&&R.onBuild(v,{id:x,replayer:this})}},m=dt(u.node,{doc:A,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:p});if(u.previousId===-1||u.nextId===-1){s[u.node.id]={node:m,mutation:u};return}const w=i.getMeta(f);if(w&&w.type===De.Element&&u.node.type===De.Text){const v=Array.isArray(f.childNodes)?f.childNodes:Array.from(f.childNodes);if(w.tagName==="textarea")for(const x of v)x.nodeType===f.TEXT_NODE&&f.removeChild(x);else if(w.tagName==="style"&&v.length===1)for(const x of v)x.nodeType===f.TEXT_NODE&&!i.hasNode(x)&&(m.textContent=x.textContent,f.removeChild(x))}else if((w==null?void 0:w.type)===De.Document){const v=f;u.node.type===De.DocumentType&&((c=v.childNodes[0])==null?void 0:c.nodeType)===Node.DOCUMENT_TYPE_NODE&&v.removeChild(v.childNodes[0]),m.nodeName==="HTML"&&v.documentElement&&v.removeChild(v.documentElement)}if(g&&g.nextSibling&&g.nextSibling.parentNode?f.insertBefore(m,g.nextSibling):d&&d.parentNode?f.contains(d)?f.insertBefore(m,d):f.insertBefore(m,null):f.appendChild(m),p(m,u.node.id),this.usingVirtualDom&&m.nodeName==="#text"&&f.nodeName==="STYLE"&&((h=f.rules)==null?void 0:h.length)>0&&(f.rules=[]),Zi(m,this.mirror)){const v=this.mirror.getId(m),x=this.newDocumentQueue.find(R=>R.parentId===v);x&&(this.attachDocumentToIframe(x,m),this.newDocumentQueue=this.newDocumentQueue.filter(R=>R!==x))}(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(s,f,m,u)};e.adds.forEach(u=>{l(u)});const a=Date.now();for(;o.length;){const u=Kf(o);if(o.length=0,Date.now()-a>500){this.warn("Timeout in the loop, please check the resolve tree data:",u);break}for(const c of u)i.getNode(c.value.parentId)?Cl(c,f=>{l(f)}):this.debug("Drop resolve tree since there is no parent for the root node.",c)}Object.keys(s).length&&Object.assign(this.legacy_missingNodeRetryMap,s),Qf(e.texts).forEach(u=>{var c;const h=i.getNode(u.id);if(!h)return e.removes.find(g=>g.id===u.id)?void 0:this.warnNodeNotFound(e,u.id);const f=h.parentElement;if(u.value&&f&&f.tagName==="STYLE"?h.textContent=Ni(u.value,this.cache):h.textContent=u.value,this.usingVirtualDom){const g=h.parentNode;((c=g==null?void 0:g.rules)==null?void 0:c.length)>0&&(g.rules=[])}}),e.attributes.forEach(u=>{var c;const h=i.getNode(u.id);if(!h)return e.removes.find(f=>f.id===u.id)?void 0:this.warnNodeNotFound(e,u.id);for(const f in u.attributes)if(typeof f=="string"){const g=u.attributes[f];if(g===null)h.removeAttribute(f),f==="open"&&mp(h,u);else if(typeof g=="string")try{if(f==="_cssText"&&(h.nodeName==="LINK"||h.nodeName==="STYLE"))try{const d=i.getMeta(h);Object.assign(d.attributes,u.attributes);const A=dt(d,{doc:h.ownerDocument,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache}),p=h.nextSibling,m=h.parentNode;if(A&&m){m.removeChild(h),m.insertBefore(A,p),i.replace(u.id,A);break}}catch(d){}if(f==="value"&&h.nodeName==="TEXTAREA"){const d=h;d.childNodes.forEach(p=>d.removeChild(p));const A=(c=h.ownerDocument)==null?void 0:c.createTextNode(g);A&&d.appendChild(A)}else h.setAttribute(f,g);f==="rr_open_mode"&&h.nodeName==="DIALOG"&&qt(h,u)}catch(d){this.warn("An error occurred may due to the checkout feature.",d)}else if(f==="style"){const d=g,A=h;for(const p in d)if(d[p]===!1)A.style.removeProperty(p);else if(d[p]instanceof Array){const m=d[p];A.style.setProperty(p,m[0],m[1])}else{const m=d[p];A.style.setProperty(p,m)}}}})}applyScroll(e,t){var i,s;const o=this.mirror.getNode(e.id);if(!o)return this.debugNodeNotFound(e,e.id);const n=this.mirror.getMeta(o);if(o===this.iframe.contentDocument)(i=this.iframe.contentWindow)==null||i.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else if((n==null?void 0:n.type)===De.Document)(s=o.defaultView)==null||s.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else try{o.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"})}catch(l){}}applyInput(e){const t=this.mirror.getNode(e.id);if(!t)return this.debugNodeNotFound(e,e.id);try{t.checked=e.isChecked,t.value=e.text}catch(i){}}applySelection(e){try{const t=new Set,i=e.ranges.map(({start:s,startOffset:o,end:n,endOffset:l})=>{const a=this.mirror.getNode(s),u=this.mirror.getNode(n);if(!a||!u)return;const c=new Range;c.setStart(a,o),c.setEnd(u,l);const h=a.ownerDocument,f=h==null?void 0:h.getSelection();return f&&t.add(f),{range:c,selection:f}});t.forEach(s=>s.removeAllRanges()),i.forEach(s=>{var o;return s&&((o=s.selection)==null?void 0:o.addRange(s.range))})}catch(t){}}applyStyleSheetMutation(e){var t;let i=null;e.styleId?i=this.styleMirror.getStyle(e.styleId):e.id&&(i=((t=this.mirror.getNode(e.id))==null?void 0:t.sheet)||null),i&&(e.source===_.StyleSheetRule?this.applyStyleSheetRule(e,i):e.source===_.StyleDeclaration&&this.applyStyleDeclaration(e,i))}applyStyleSheetRule(e,t){var i,s,o,n;if((i=e.adds)==null||i.forEach(({rule:l,index:a})=>{try{if(Array.isArray(a)){const{positions:u,index:c}=un(a);ht(t.cssRules,u).insertRule(l,c)}else{const u=a===void 0?void 0:Math.min(a,t.cssRules.length);t==null||t.insertRule(l,u)}}catch(u){}}),(s=e.removes)==null||s.forEach(({index:l})=>{try{if(Array.isArray(l)){const{positions:a,index:u}=un(l);ht(t.cssRules,a).deleteRule(u||0)}else t==null||t.deleteRule(l)}catch(a){}}),e.replace)try{(o=t.replace)==null||o.call(t,e.replace)}catch(l){}if(e.replaceSync)try{(n=t.replaceSync)==null||n.call(t,e.replaceSync)}catch(l){}}applyStyleDeclaration(e,t){e.set&&ht(t.rules,e.index).style.setProperty(e.set.property,e.set.value,e.set.priority),e.remove&&ht(t.rules,e.index).style.removeProperty(e.remove.property)}applyAdoptedStyleSheet(e){var t;const i=this.mirror.getNode(e.id);if(!i)return;(t=e.styles)==null||t.forEach(l=>{var a;let u=null,c=null;if(Kt(i)?c=((a=i.ownerDocument)==null?void 0:a.defaultView)||null:i.nodeName==="#document"&&(c=i.defaultView),!!c)try{u=new c.CSSStyleSheet,this.styleMirror.add(u,l.styleId),this.applyStyleSheetRule({source:_.StyleSheetRule,adds:l.rules},u)}catch(h){}});const s=10;let o=0;const n=(l,a)=>{const u=a.map(c=>this.styleMirror.getStyle(c)).filter(c=>c!==null);Kt(l)?l.shadowRoot.adoptedStyleSheets=u:l.nodeName==="#document"&&(l.adoptedStyleSheets=u),u.length!==a.length&&o<s&&(setTimeout(()=>n(l,a),0+100*o),o++)};n(i,e.styleIds)}legacy_resolveMissingNode(e,t,i,s){const{previousId:o,nextId:n}=s,l=o&&e[o],a=n&&e[n];if(l){const{node:u,mutation:c}=l;t.insertBefore(u,i),delete e[c.node.id],delete this.legacy_missingNodeRetryMap[c.node.id],(c.previousId||c.nextId)&&this.legacy_resolveMissingNode(e,t,u,c)}if(a){const{node:u,mutation:c}=a;t.insertBefore(u,i.nextSibling),delete e[c.node.id],delete this.legacy_missingNodeRetryMap[c.node.id],(c.previousId||c.nextId)&&this.legacy_resolveMissingNode(e,t,u,c)}}moveAndHover(e,t,i,s,o){const n=this.mirror.getNode(i);if(!n)return this.debugNodeNotFound(o,i);const l=Sl(n,this.iframe),a=e*l.absoluteScale+l.x,u=t*l.absoluteScale+l.y;this.mouse.style.left=`${a}px`,this.mouse.style.top=`${u}px`,s||this.drawMouseTail({x:a,y:u}),this.hoverElements(n)}drawMouseTail(e){if(!this.mouseTail)return;const{lineCap:t,lineWidth:i,strokeStyle:s,duration:o}=this.config.mouseTail===!0?Xi:Object.assign({},Xi,this.config.mouseTail),n=()=>{if(!this.mouseTail)return;const l=this.mouseTail.getContext("2d");!l||!this.tailPositions.length||(l.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),l.beginPath(),l.lineWidth=i,l.lineCap=t,l.strokeStyle=s,l.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(a=>l.lineTo(a.x,a.y)),l.stroke())};this.tailPositions.push(e),n(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(l=>l!==e),n()},o/this.speedService.state.context.timer.speed)}hoverElements(e){var t;(t=this.lastHoveredRootNode||this.iframe.contentDocument)==null||t.querySelectorAll(".\\:hover").forEach(s=>{s.classList.remove(":hover")}),this.lastHoveredRootNode=e.getRootNode();let i=e;for(;i;)i.classList&&i.classList.add(":hover"),i=i.parentElement}isUserInteraction(e){return e.type!==H.IncrementalSnapshot?!1:e.data.source>_.Mutation&&e.data.source<=_.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(P.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(e,t){this.warn(`Node with id '${t}' not found. `,e)}warnCanvasMutationFailed(e,t){this.warn("Has error on canvas update",t,"canvas mutation:",e)}debugNodeNotFound(e,t){this.debug(`Node with id '${t}' not found. `,e)}warn(...e){this.config.showWarning&&this.config.logger.warn(bn,...e)}debug(...e){this.config.showDebug&&this.config.logger.log(bn,...e)}}var he=Uint8Array,_e=Uint16Array,Pr=Uint32Array,Il=new he([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Dl=new he([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),wp=new he([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ol=function(r,e){for(var t=new _e(31),i=0;i<31;++i)t[i]=e+=1<<r[i-1];for(var s=new Pr(t[30]),i=1;i<30;++i)for(var o=t[i];o<t[i+1];++o)s[o]=o-t[i]<<5|i;return[t,s]},_l=Ol(Il,2),Tl=_l[0],vp=_l[1];Tl[28]=258,vp[258]=28;var bp=Ol(Dl,0),Cp=bp[0],$r=new _e(32768);for(var Y=0;Y<32768;++Y){var Ie=(Y&43690)>>>1|(Y&21845)<<1;Ie=(Ie&52428)>>>2|(Ie&13107)<<2,Ie=(Ie&61680)>>>4|(Ie&3855)<<4,$r[Y]=((Ie&65280)>>>8|(Ie&255)<<8)>>>1}var mt=function(r,e,t){for(var i=r.length,s=0,o=new _e(e);s<i;++s)++o[r[s]-1];var n=new _e(e);for(s=0;s<e;++s)n[s]=n[s-1]+o[s-1]<<1;var l;if(t){l=new _e(1<<e);var a=15-e;for(s=0;s<i;++s)if(r[s])for(var u=s<<4|r[s],c=e-r[s],h=n[r[s]-1]++<<c,f=h|(1<<c)-1;h<=f;++h)l[$r[h]>>>a]=u}else for(l=new _e(i),s=0;s<i;++s)l[s]=$r[n[r[s]-1]++]>>>15-r[s];return l},Dt=new he(288);for(var Y=0;Y<144;++Y)Dt[Y]=8;for(var Y=144;Y<256;++Y)Dt[Y]=9;for(var Y=256;Y<280;++Y)Dt[Y]=7;for(var Y=280;Y<288;++Y)Dt[Y]=8;var kl=new he(32);for(var Y=0;Y<32;++Y)kl[Y]=5;var Sp=mt(Dt,9,1),Ep=mt(kl,5,1),Ji=function(r){for(var e=r[0],t=1;t<r.length;++t)r[t]>e&&(e=r[t]);return e},de=function(r,e,t){var i=e/8>>0;return(r[i]|r[i+1]<<8)>>>(e&7)&t},Ki=function(r,e){var t=e/8>>0;return(r[t]|r[t+1]<<8|r[t+2]<<16)>>>(e&7)},xp=function(r){return(r/8>>0)+(r&7&&1)},Pl=function(r,e,t){(t==null||t>r.length)&&(t=r.length);var i=new(r instanceof _e?_e:r instanceof Pr?Pr:he)(t-e);return i.set(r.subarray(e,t)),i},Ap=function(r,e,t){var i=r.length,s=!e||t,o=!t||t.i;t||(t={}),e||(e=new he(i*3));var n=function(y){var E=e.length;if(y>E){var $=new he(Math.max(E*2,y));$.set(e),e=$}},l=t.f||0,a=t.p||0,u=t.b||0,c=t.l,h=t.d,f=t.m,g=t.n,d=i*8;do{if(!c){t.f=l=de(r,a,1);var A=de(r,a+1,3);if(a+=3,A)if(A==1)c=Sp,h=Ep,f=9,g=5;else if(A==2){var v=de(r,a,31)+257,x=de(r,a+10,15)+4,R=v+de(r,a+5,31)+1;a+=14;for(var D=new he(R),Z=new he(19),I=0;I<x;++I)Z[wp[I]]=de(r,a+I*3,7);a+=x*3;var J=Ji(Z),z=(1<<J)-1;if(!o&&a+R*(J+7)>d)break;for(var fe=mt(Z,J,1),I=0;I<R;){var ae=fe[de(r,a,z)];a+=ae&15;var p=ae>>>4;if(p<16)D[I++]=p;else{var q=0,L=0;for(p==16?(L=3+de(r,a,3),a+=2,q=D[I-1]):p==17?(L=3+de(r,a,7),a+=3):p==18&&(L=11+de(r,a,127),a+=7);L--;)D[I++]=q}}var ne=D.subarray(0,v),k=D.subarray(v);f=Ji(ne),g=Ji(k),c=mt(ne,f,1),h=mt(k,g,1)}else throw"invalid block type";else{var p=xp(a)+4,m=r[p-4]|r[p-3]<<8,w=p+m;if(w>i){if(o)throw"unexpected EOF";break}s&&n(u+m),e.set(r.subarray(p,w),u),t.b=u+=m,t.p=a=w*8;continue}if(a>d)throw"unexpected EOF"}s&&n(u+131072);for(var V=(1<<f)-1,oe=(1<<g)-1,se=f+g+18;o||a+se<d;){var q=c[Ki(r,a)&V],te=q>>>4;if(a+=q&15,a>d)throw"unexpected EOF";if(!q)throw"invalid length/literal";if(te<256)e[u++]=te;else if(te==256){c=null;break}else{var K=te-254;if(te>264){var I=te-257,pe=Il[I];K=de(r,a,(1<<pe)-1)+Tl[I],a+=pe}var we=h[Ki(r,a)&oe],S=we>>>4;if(!we)throw"invalid distance";a+=we&15;var k=Cp[S];if(S>3){var pe=Dl[S];k+=Ki(r,a)&(1<<pe)-1,a+=pe}if(a>d)throw"unexpected EOF";s&&n(u+131072);for(var b=u+K;u<b;u+=4)e[u]=e[u-k],e[u+1]=e[u+1-k],e[u+2]=e[u+2-k],e[u+3]=e[u+3-k];u=b}}t.l=c,t.p=a,t.b=u,c&&(l=1,t.m=f,t.d=h,t.n=g)}while(!l);return u==e.length?e:Pl(e,0,u)},Rp=function(r){if((r[0]&15)!=8||r[0]>>>4>7||(r[0]<<8|r[1])%31)throw"invalid zlib data";if(r[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function Np(r,e){return Ap((Rp(r),r.subarray(2,-4)),e)}function Mp(r,e){for(var t=r.length,i=new he(r.length+(r.length>>>1)),s=0,o=function(u){i[s++]=u},n=0;n<t;++n){if(s+5>i.length){var l=new he(s+8+(t-n<<1));l.set(i),i=l}var a=r.charCodeAt(n);a<128||e?o(a):a<2048?(o(192|a>>>6),o(128|a&63)):a>55295&&a<57344?(a=65536+(a&1047552)|r.charCodeAt(++n)&1023,o(240|a>>>18),o(128|a>>>12&63),o(128|a>>>6&63),o(128|a&63)):(o(224|a>>>12),o(128|a>>>6&63),o(128|a&63))}return Pl(i,0,s)}function Ip(r,e){var t="";if(typeof TextDecoder!="undefined")return new TextDecoder().decode(r);for(var i=0;i<r.length;){var s=r[i++];s<128||e?t+=String.fromCharCode(s):s<224?t+=String.fromCharCode((s&31)<<6|r[i++]&63):s<240?t+=String.fromCharCode((s&15)<<12|(r[i++]&63)<<6|r[i++]&63):(s=((s&15)<<18|(r[i++]&63)<<12|(r[i++]&63)<<6|r[i++]&63)-65536,t+=String.fromCharCode(55296|s>>10,56320|s&1023))}return t}const Sn="v1",Dp=r=>{if(typeof r!="string")return r;try{const e=JSON.parse(r);if(e.timestamp)return e}catch(e){}try{const e=JSON.parse(Ip(Np(Mp(r,!0))));if(e.v===Sn)return e;throw new Error(`These events were packed with packer ${e.v} which is incompatible with current packer ${Sn}.`)}catch(e){throw console.error(e),new Error("Unknown data format.")}};function En(r){let e="";return Object.keys(r).forEach(t=>{e+=`${t}: ${r[t]};`}),e}function ct(r,e=2){let t=String(r);const i=Math.pow(10,e-1);if(r<i)for(;String(i).length>t.length;)t=`0${r}`;return t}const $l=1e3,Lr=60*$l,xn=60*Lr;function ti(r){if(r<=0)return"00:00";const e=Math.floor(r/xn);r=r%xn;const t=Math.floor(r/Lr);r=r%Lr;const i=Math.floor(r/$l);return e?`${ct(e)}:${ct(t)}:${ct(i)}`:`${ct(t)}:${ct(i)}`}function Op(r){return r.requestFullscreen?r.requestFullscreen():r.mozRequestFullScreen?r.mozRequestFullScreen():r.webkitRequestFullscreen?r.webkitRequestFullscreen():r.msRequestFullscreen?r.msRequestFullscreen():Promise.resolve()}function _p(){return document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():Promise.resolve()}function An(){let r=!1;return["fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement"].forEach(e=>{e in document&&(r=r||!!document[e])}),r}function Tp(r){return document.addEventListener("fullscreenchange",r),document.addEventListener("webkitfullscreenchange",r),document.addEventListener("mozfullscreenchange",r),document.addEventListener("MSFullscreenChange",r),()=>{document.removeEventListener("fullscreenchange",r),document.removeEventListener("webkitfullscreenchange",r),document.removeEventListener("mozfullscreenchange",r),document.removeEventListener("MSFullscreenChange",r)}}function Rn(r){return{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"}[Object.prototype.toString.call(r)]}function kp(r){return r.type!==H.IncrementalSnapshot?!1:r.data.source>_.Mutation&&r.data.source<=_.Input}function Pp(r,e){const t=[];let i=r[0].timestamp;for(const s of r)kp(s)&&(s.timestamp-i>e&&t.push([i,s.timestamp]),i=s.timestamp);return t}var Ll=(r=>(r[r.DomContentLoaded=0]="DomContentLoaded",r[r.Load=1]="Load",r[r.FullSnapshot=2]="FullSnapshot",r[r.IncrementalSnapshot=3]="IncrementalSnapshot",r[r.Meta=4]="Meta",r[r.Custom=5]="Custom",r[r.Plugin=6]="Plugin",r))(Ll||{});function $p(r){let e,t,i,s,o,n,l,a,u;return{c(){e=re("div"),t=re("input"),i=ce(),s=re("label"),o=ce(),n=re("span"),l=Le(r[3]),M(t,"type","checkbox"),M(t,"id",r[2]),t.disabled=r[1],M(t,"class","svelte-a6h7w7"),M(s,"for",r[2]),M(s,"class","svelte-a6h7w7"),M(n,"class","label svelte-a6h7w7"),M(e,"class","switch svelte-a6h7w7"),Xe(e,"disabled",r[1])},m(c,h){Me(c,e,h),T(e,t),t.checked=r[0],T(e,i),T(e,s),T(e,o),T(e,n),T(n,l),a||(u=je(t,"change",r[4]),a=!0)},p(c,[h]){h&4&&M(t,"id",c[2]),h&2&&(t.disabled=c[1]),h&1&&(t.checked=c[0]),h&4&&M(s,"for",c[2]),h&8&&ai(l,c[3]),h&2&&Xe(e,"disabled",c[1])},i:gt,o:gt,d(c){c&&Ee(e),a=!1,u()}}}function Lp(r,e,t){let{disabled:i}=e,{checked:s}=e,{id:o}=e,{label:n}=e;function l(){s=this.checked,t(0,s)}return r.$$set=a=>{"disabled"in a&&t(1,i=a.disabled),"checked"in a&&t(0,s=a.checked),"id"in a&&t(2,o=a.id),"label"in a&&t(3,n=a.label)},[s,i,o,n,l]}class Fp extends Vr{constructor(e){super(),zr(this,e,Lp,$p,Fr,{disabled:1,checked:0,id:2,label:3})}}function Nn(r,e,t){const i=r.slice();return i[38]=e[t],i}function Mn(r,e,t){const i=r.slice();return i[41]=e[t],i}function In(r,e,t){const i=r.slice();return i[44]=e[t],i}function Dn(r){let e,t,i,s=ti(r[6])+"",o,n,l,a,u,c,h,f,g,d,A=ti(r[8].totalTime)+"",p,m,w,v,x,R,D,Z,I,J,z,fe,ae,q=ze(r[13]),L=[];for(let S=0;S<q.length;S+=1)L[S]=On(In(r,q,S));let ne=ze(r[9]),k=[];for(let S=0;S<ne.length;S+=1)k[S]=_n(Mn(r,ne,S));function V(S,b){return S[7]==="playing"?Up:Bp}let oe=V(r),se=oe(r),te=ze(r[3]),K=[];for(let S=0;S<te.length;S+=1)K[S]=Tn(Nn(r,te,S));function pe(S){r[29](S)}let we={id:"skip",disabled:r[10]==="skipping",label:"skip inactive"};return r[0]!==void 0&&(we.checked=r[0]),D=new Fp({props:we}),$e.push(()=>na(D,"checked",pe)),{c(){e=re("div"),t=re("div"),i=re("span"),o=Le(s),n=ce(),l=re("div"),a=re("div"),u=ce();for(let S=0;S<L.length;S+=1)L[S].c();c=ce();for(let S=0;S<k.length;S+=1)k[S].c();h=ce(),f=re("div"),g=ce(),d=re("span"),p=Le(A),m=ce(),w=re("div"),v=re("button"),se.c(),x=ce();for(let S=0;S<K.length;S+=1)K[S].c();R=ce(),Gn(D.$$.fragment),I=ce(),J=re("button"),J.innerHTML=`<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M916 380c-26.4 0-48-21.6-48-48L868 223.2 613.6 477.6c-18.4
|
|
66
|
+
or you can use record.mirror to access the mirror instance during recording.`;let Bs={map:{},getId(){return console.error(we),-1},getNode(){return console.error(we),null},removeNodeFromMap(){console.error(we)},has(){return console.error(we),!1},reset(){console.error(we)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Bs=new Proxy(Bs,{get(e,i,u){return i==="map"&&console.error(we),Reflect.get(e,i,u)}}));Date.now().toString();var xi=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(xi||{}),or=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(or||{}),js="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rn=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var ze=0;ze<js.length;ze++)Rn[js.charCodeAt(ze)]=ze;const On=`(function() {
|
|
67
|
+
"use strict";
|
|
68
|
+
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
69
|
+
var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
|
|
70
|
+
for (var i = 0; i < chars.length; i++) {
|
|
71
|
+
lookup[chars.charCodeAt(i)] = i;
|
|
72
|
+
}
|
|
73
|
+
var encode = function(arraybuffer) {
|
|
74
|
+
var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";
|
|
75
|
+
for (i2 = 0; i2 < len; i2 += 3) {
|
|
76
|
+
base64 += chars[bytes[i2] >> 2];
|
|
77
|
+
base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];
|
|
78
|
+
base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];
|
|
79
|
+
base64 += chars[bytes[i2 + 2] & 63];
|
|
80
|
+
}
|
|
81
|
+
if (len % 3 === 2) {
|
|
82
|
+
base64 = base64.substring(0, base64.length - 1) + "=";
|
|
83
|
+
} else if (len % 3 === 1) {
|
|
84
|
+
base64 = base64.substring(0, base64.length - 2) + "==";
|
|
85
|
+
}
|
|
86
|
+
return base64;
|
|
87
|
+
};
|
|
88
|
+
const lastBlobMap = /* @__PURE__ */ new Map();
|
|
89
|
+
const transparentBlobMap = /* @__PURE__ */ new Map();
|
|
90
|
+
async function getTransparentBlobFor(width, height, dataURLOptions) {
|
|
91
|
+
const id = \`\${width}-\${height}\`;
|
|
92
|
+
if ("OffscreenCanvas" in globalThis) {
|
|
93
|
+
if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);
|
|
94
|
+
const offscreen = new OffscreenCanvas(width, height);
|
|
95
|
+
offscreen.getContext("2d");
|
|
96
|
+
const blob = await offscreen.convertToBlob(dataURLOptions);
|
|
97
|
+
const arrayBuffer = await blob.arrayBuffer();
|
|
98
|
+
const base64 = encode(arrayBuffer);
|
|
99
|
+
transparentBlobMap.set(id, base64);
|
|
100
|
+
return base64;
|
|
101
|
+
} else {
|
|
102
|
+
return "";
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
const worker = self;
|
|
106
|
+
worker.onmessage = async function(e) {
|
|
107
|
+
if ("OffscreenCanvas" in globalThis) {
|
|
108
|
+
const { id, bitmap, width, height, dataURLOptions } = e.data;
|
|
109
|
+
const transparentBase64 = getTransparentBlobFor(
|
|
110
|
+
width,
|
|
111
|
+
height,
|
|
112
|
+
dataURLOptions
|
|
113
|
+
);
|
|
114
|
+
const offscreen = new OffscreenCanvas(width, height);
|
|
115
|
+
const ctx = offscreen.getContext("2d");
|
|
116
|
+
ctx.drawImage(bitmap, 0, 0);
|
|
117
|
+
bitmap.close();
|
|
118
|
+
const blob = await offscreen.convertToBlob(dataURLOptions);
|
|
119
|
+
const type = blob.type;
|
|
120
|
+
const arrayBuffer = await blob.arrayBuffer();
|
|
121
|
+
const base64 = encode(arrayBuffer);
|
|
122
|
+
if (!lastBlobMap.has(id) && await transparentBase64 === base64) {
|
|
123
|
+
lastBlobMap.set(id, base64);
|
|
124
|
+
return worker.postMessage({ id });
|
|
125
|
+
}
|
|
126
|
+
if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });
|
|
127
|
+
worker.postMessage({
|
|
128
|
+
id,
|
|
129
|
+
type,
|
|
130
|
+
base64,
|
|
131
|
+
width,
|
|
132
|
+
height
|
|
133
|
+
});
|
|
134
|
+
lastBlobMap.set(id, base64);
|
|
135
|
+
} else {
|
|
136
|
+
return worker.postMessage({ id: e.data.id });
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
})();
|
|
140
|
+
//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
|
|
141
|
+
`;typeof self!="undefined"&&self.Blob&&new Blob([On],{type:"text/javascript;charset=utf-8"});try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Lr=e.contentWindow)==null?void 0:Lr.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}Qi();var Ts;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Ts||(Ts={}));var Ze=Uint8Array,Ci=Uint16Array,Pn=Uint32Array,_n=new Ze([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),En=new Ze([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ri=function(e,i){for(var u=new Ci(31),d=0;d<31;++d)u[d]=i+=1<<e[d-1];for(var s=new Pn(u[30]),d=1;d<30;++d)for(var c=u[d];c<u[d+1];++c)s[c]=c-u[d]<<5|d;return[u,s]},Oi=Ri(_n,2),An=Oi[0],kn=Oi[1];An[28]=258,kn[258]=28;Ri(En,0);var Mn=new Ci(32768);for(var W=0;W<32768;++W){var le=(W&43690)>>>1|(W&21845)<<1;le=(le&52428)>>>2|(le&13107)<<2,le=(le&61680)>>>4|(le&3855)<<4,Mn[W]=((le&65280)>>>8|(le&255)<<8)>>>1}var et=new Ze(288);for(var W=0;W<144;++W)et[W]=8;for(var W=144;W<256;++W)et[W]=9;for(var W=256;W<280;++W)et[W]=7;for(var W=280;W<288;++W)et[W]=8;var Nn=new Ze(32);for(var W=0;W<32;++W)Nn[W]=5;function Ws(e){let i="";return Object.keys(e).forEach(u=>{i+=`${u}: ${e[u]};`}),i}function Oe(e,i=2){let u=String(e);const d=Math.pow(10,i-1);if(e<d)for(;String(d).length>u.length;)u=`0${e}`;return u}const Pi=1e3,lr=60*Pi,$s=60*lr;function qe(e){if(e<=0)return"00:00";const i=Math.floor(e/$s);e=e%$s;const u=Math.floor(e/lr);e=e%lr;const d=Math.floor(e/Pi);return i?`${Oe(i)}:${Oe(u)}:${Oe(d)}`:`${Oe(u)}:${Oe(d)}`}function In(e){return e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():Promise.resolve()}function Ln(){return document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():Promise.resolve()}function Un(){let e=!1;return["fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement"].forEach(i=>{i in document&&(e=e||!!document[i])}),e}function Dn(e){return e.type!==xi.IncrementalSnapshot?!1:e.data.source>or.Mutation&&e.data.source<=or.Input}function Fn(e,i){const u=[];let d=e[0].timestamp;for(const s of e)Dn(s)&&(s.timestamp-d>i&&u.push([d,s.timestamp]),d=s.timestamp);return u}var _i=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(_i||{});function zn(e){let i,u,d,s,c,p,m,a,h;return{c(){i=H("div"),u=H("input"),d=ee(),s=H("label"),c=ee(),p=H("span"),m=he(e[3]),L(u,"type","checkbox"),L(u,"id",e[2]),u.disabled=e[1],L(u,"class","svelte-a6h7w7"),L(s,"for",e[2]),L(s,"class","svelte-a6h7w7"),L(p,"class","label svelte-a6h7w7"),L(i,"class","switch svelte-a6h7w7"),ve(i,"disabled",e[1])},m(t,o){oe(t,i,o),z(i,u),u.checked=e[0],z(i,d),z(i,s),z(i,c),z(i,p),z(p,m),a||(h=ye(u,"change",e[4]),a=!0)},p(t,[o]){o&4&&L(u,"id",t[2]),o&2&&(u.disabled=t[1]),o&1&&(u.checked=t[0]),o&4&&L(s,"for",t[2]),o&8&&Te(m,t[3]),o&2&&ve(i,"disabled",t[1])},i:_e,o:_e,d(t){t&&se(i),a=!1,h()}}}function qn(e,i,u){let{disabled:d}=i,{checked:s}=i,{id:c}=i,{label:p}=i;function m(){s=this.checked,u(0,s)}return e.$$set=a=>{"disabled"in a&&u(1,d=a.disabled),"checked"in a&&u(0,s=a.checked),"id"in a&&u(2,c=a.id),"label"in a&&u(3,p=a.label)},[s,d,c,p,m]}class Bn extends cr{constructor(i){super(),hr(this,i,qn,zn,ar,{disabled:1,checked:0,id:2,label:3})}}function Vs(e,i,u){const d=e.slice();return d[38]=i[u],d}function Gs(e,i,u){const d=e.slice();return d[41]=i[u],d}function Js(e,i,u){const d=e.slice();return d[44]=i[u],d}function Hs(e){let i,u,d,s=qe(e[6])+"",c,p,m,a,h,t,o,n,r,f,l=qe(e[8].totalTime)+"",g,x,b,v,C,y,w,S,P,A,_,U,I,O=me(e[13]),T=[];for(let E=0;E<O.length;E+=1)T[E]=Ys(Js(e,O,E));let Y=me(e[9]),q=[];for(let E=0;E<Y.length;E+=1)q[E]=Qs(Gs(e,Y,E));function $(E,F){return E[7]==="playing"?Tn:jn}let k=$(e),j=k(e),D=me(e[3]),M=[];for(let E=0;E<D.length;E+=1)M[E]=Ks(Vs(e,D,E));function K(E){e[29](E)}let R={id:"skip",disabled:e[10]==="skipping",label:"skip inactive"};return e[0]!==void 0&&(R.checked=e[0]),w=new Bn({props:R}),fe.push(()=>$i(w,"checked",K)),{c(){i=H("div"),u=H("div"),d=H("span"),c=he(s),p=ee(),m=H("div"),a=H("div"),h=ee();for(let E=0;E<T.length;E+=1)T[E].c();t=ee();for(let E=0;E<q.length;E+=1)q[E].c();o=ee(),n=H("div"),r=ee(),f=H("span"),g=he(l),x=ee(),b=H("div"),v=H("button"),j.c(),C=ee();for(let E=0;E<M.length;E+=1)M[E].c();y=ee(),li(w.$$.fragment),P=ee(),A=H("button"),A.innerHTML=`<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M916 380c-26.4 0-48-21.6-48-48L868 223.2 613.6 477.6c-18.4
|
|
81
142
|
18.4-48.8 18.4-68 0-18.4-18.4-18.4-48.8 0-68L800 156 692 156c-26.4
|
|
82
143
|
0-48-21.6-48-48 0-26.4 21.6-48 48-48l224 0c26.4 0 48 21.6 48 48l0
|
|
83
144
|
224C964 358.4 942.4 380 916 380zM231.2 860l108.8 0c26.4 0 48 21.6 48
|
|
84
145
|
48s-21.6 48-48 48l-224 0c-26.4 0-48-21.6-48-48l0-224c0-26.4 21.6-48
|
|
85
146
|
48-48 26.4 0 48 21.6 48 48L164 792l253.6-253.6c18.4-18.4 48.8-18.4
|
|
86
|
-
68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg>`,
|
|
87
|
-
512l-388.66944-233.32864 0 466.65728z`),
|
|
147
|
+
68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg>`,L(d,"class","rr-timeline__time svelte-189zk2r"),L(a,"class","rr-progress__step svelte-189zk2r"),J(a,"width",e[12]),L(n,"class","rr-progress__handler svelte-189zk2r"),J(n,"left",e[12]),L(m,"class","rr-progress svelte-189zk2r"),ve(m,"disabled",e[10]==="skipping"),L(f,"class","rr-timeline__time svelte-189zk2r"),L(u,"class","rr-timeline svelte-189zk2r"),L(v,"class","svelte-189zk2r"),L(A,"class","svelte-189zk2r"),L(b,"class","rr-controller__btns svelte-189zk2r"),L(i,"class","rr-controller svelte-189zk2r")},m(E,F){oe(E,i,F),z(i,u),z(u,d),z(d,c),z(u,p),z(u,m),z(m,a),z(m,h);for(let B=0;B<T.length;B+=1)T[B]&&T[B].m(m,null);z(m,t);for(let B=0;B<q.length;B+=1)q[B]&&q[B].m(m,null);z(m,o),z(m,n),e[27](m),z(u,r),z(u,f),z(f,g),z(i,x),z(i,b),z(b,v),j.m(v,null),z(b,C);for(let B=0;B<M.length;B+=1)M[B]&&M[B].m(b,null);z(b,y),ur(w,b,null),z(b,P),z(b,A),_=!0,U||(I=[ye(m,"click",e[15]),ye(m,"keydown",e[16]),ye(v,"click",e[4]),ye(A,"click",e[30])],U=!0)},p(E,F){if((!_||F[0]&64)&&s!==(s=qe(E[6])+"")&&Te(c,s),(!_||F[0]&4096)&&J(a,"width",E[12]),F[0]&8192){O=me(E[13]);let N;for(N=0;N<O.length;N+=1){const X=Js(E,O,N);T[N]?T[N].p(X,F):(T[N]=Ys(X),T[N].c(),T[N].m(m,t))}for(;N<T.length;N+=1)T[N].d(1);T.length=O.length}if(F[0]&512){Y=me(E[9]);let N;for(N=0;N<Y.length;N+=1){const X=Gs(E,Y,N);q[N]?q[N].p(X,F):(q[N]=Qs(X),q[N].c(),q[N].m(m,o))}for(;N<q.length;N+=1)q[N].d(1);q.length=Y.length}if((!_||F[0]&4096)&&J(n,"left",E[12]),(!_||F[0]&1024)&&ve(m,"disabled",E[10]==="skipping"),(!_||F[0]&256)&&l!==(l=qe(E[8].totalTime)+"")&&Te(g,l),k!==(k=$(E))&&(j.d(1),j=k(E),j&&(j.c(),j.m(v,null))),F[0]&1066){D=me(E[3]);let N;for(N=0;N<D.length;N+=1){const X=Vs(E,D,N);M[N]?M[N].p(X,F):(M[N]=Ks(X),M[N].c(),M[N].m(b,y))}for(;N<M.length;N+=1)M[N].d(1);M.length=D.length}const B={};F[0]&1024&&(B.disabled=E[10]==="skipping"),!S&&F[0]&1&&(S=!0,B.checked=E[0],ji(()=>S=!1)),w.$set(B)},i(E){_||(ne(w.$$.fragment,E),_=!0)},o(E){Se(w.$$.fragment,E),_=!1},d(E){E&&se(i),tt(T,E),tt(q,E),e[27](null),j.d(),tt(M,E),fr(w),U=!1,xe(I)}}}function Ys(e){let i,u;return{c(){i=H("div"),L(i,"title",u=e[44].name),J(i,"width",e[44].width),J(i,"height","4px"),J(i,"position","absolute"),J(i,"background",e[44].background),J(i,"left",e[44].position)},m(d,s){oe(d,i,s)},p(d,s){s[0]&8192&&u!==(u=d[44].name)&&L(i,"title",u),s[0]&8192&&J(i,"width",d[44].width),s[0]&8192&&J(i,"background",d[44].background),s[0]&8192&&J(i,"left",d[44].position)},d(d){d&&se(i)}}}function Qs(e){let i,u;return{c(){i=H("div"),L(i,"title",u=e[41].name),J(i,"width","10px"),J(i,"height","5px"),J(i,"position","absolute"),J(i,"top","2px"),J(i,"transform","translate(-50%, -50%)"),J(i,"background",e[41].background),J(i,"left",e[41].position)},m(d,s){oe(d,i,s)},p(d,s){s[0]&512&&u!==(u=d[41].name)&&L(i,"title",u),s[0]&512&&J(i,"background",d[41].background),s[0]&512&&J(i,"left",d[41].position)},d(d){d&&se(i)}}}function jn(e){let i,u;return{c(){i=je("svg"),u=je("path"),L(u,"d",`M170.65984 896l0-768 640 384zM644.66944
|
|
148
|
+
512l-388.66944-233.32864 0 466.65728z`),L(i,"class","icon"),L(i,"viewBox","0 0 1024 1024"),L(i,"version","1.1"),L(i,"xmlns","http://www.w3.org/2000/svg"),L(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),L(i,"width","16"),L(i,"height","16")},m(d,s){oe(d,i,s),z(i,u)},d(d){d&&se(i)}}}function Tn(e){let i,u;return{c(){i=je("svg"),u=je("path"),L(u,"d",`M682.65984 128q53.00224 0 90.50112 37.49888t37.49888 90.50112l0
|
|
88
149
|
512q0 53.00224-37.49888 90.50112t-90.50112
|
|
89
150
|
37.49888-90.50112-37.49888-37.49888-90.50112l0-512q0-53.00224
|
|
90
151
|
37.49888-90.50112t90.50112-37.49888zM341.34016 128q53.00224 0
|
|
@@ -97,15 +158,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
97
158
|
12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928zM682.65984
|
|
98
159
|
213.34016q-17.67424 0-30.16704 12.4928t-12.4928 30.16704l0 512q0
|
|
99
160
|
17.67424 12.4928 30.16704t30.16704 12.4928 30.16704-12.4928
|
|
100
|
-
12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z`),
|
|
101
|
-
current config:
|
|
102
|
-
{
|
|
103
|
-
...
|
|
104
|
-
speed: ${c},
|
|
105
|
-
speedOption: [${u.toString()}]
|
|
106
|
-
...
|
|
107
|
-
}
|
|
108
|
-
`);t(7,d=new yp(n,U({speed:c,root:m,unpackFn:Dp},e))),d.on("resize",y=>{I(d.wrapper,y)}),w=Tp(()=>{An()?setTimeout(()=>{v=i,x=s,t(13,i=p.offsetWidth),t(14,s=p.offsetHeight-(h?$n:0)),I(d.wrapper,{width:d.iframe.offsetWidth,height:d.iframe.offsetHeight})},0):(t(13,i=v),t(14,s=x),I(d.wrapper,{width:d.iframe.offsetWidth,height:d.iframe.offsetHeight}))})}),Un(()=>{w&&w()});function pe(y){$e[y?"unshift":"push"](()=>{m=y,t(9,m)})}function we(y){$e[y?"unshift":"push"](()=>{R=y,t(10,R)})}const S=()=>z();function b(y){$e[y?"unshift":"push"](()=>{p=y,t(8,p)})}return r.$$set=y=>{t(39,e=ys(ys({},e),vs(y))),"width"in y&&t(13,i=y.width),"height"in y&&t(14,s=y.height),"maxScale"in y&&t(15,o=y.maxScale),"events"in y&&t(16,n=y.events),"skipInactive"in y&&t(0,l=y.skipInactive),"autoPlay"in y&&t(1,a=y.autoPlay),"speedOption"in y&&t(2,u=y.speedOption),"speed"in y&&t(17,c=y.speed),"showController"in y&&t(3,h=y.showController),"tags"in y&&t(4,f=y.tags),"inactiveColor"in y&&t(5,g=y.inactiveColor)},r.$$.update=()=>{r.$$.dirty[0]&24576&&t(11,D=En({width:`${i}px`,height:`${s}px`})),r.$$.dirty[0]&24584&&t(12,Z=En({width:`${i}px`,height:`${s+(h?$n:0)}px`}))},e=vs(e),[l,a,u,h,f,g,z,d,p,m,R,D,Z,i,s,o,n,c,A,J,fe,ae,q,L,ne,k,V,oe,se,te,K,pe,we,S,b]}let jp=class extends Vr{constructor(e){super(),zr(this,e,Yp,Gp,Fr,{width:13,height:14,maxScale:15,events:16,skipInactive:0,autoPlay:1,speedOption:2,speed:17,showController:3,tags:4,inactiveColor:5,getMirror:18,triggerResize:19,toggleFullscreen:6,addEventListener:20,addEvent:21,getMetaData:22,getReplayer:23,toggle:24,setSpeed:25,toggleSkipInactive:26,play:27,pause:28,goto:29,playRange:30},null,[-1,-1])}get getMirror(){return this.$$.ctx[18]}get triggerResize(){return this.$$.ctx[19]}get toggleFullscreen(){return this.$$.ctx[6]}get addEventListener(){return this.$$.ctx[20]}get addEvent(){return this.$$.ctx[21]}get getMetaData(){return this.$$.ctx[22]}get getReplayer(){return this.$$.ctx[23]}get toggle(){return this.$$.ctx[24]}get setSpeed(){return this.$$.ctx[25]}get toggleSkipInactive(){return this.$$.ctx[26]}get play(){return this.$$.ctx[27]}get pause(){return this.$$.ctx[28]}get goto(){return this.$$.ctx[29]}get playRange(){return this.$$.ctx[30]}};class Fl extends jp{constructor(e){super({target:e.target,props:e.data||e.props})}}exports.Player=Fl;exports.default=Fl;
|
|
161
|
+
12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z`),L(i,"class","icon"),L(i,"viewBox","0 0 1024 1024"),L(i,"version","1.1"),L(i,"xmlns","http://www.w3.org/2000/svg"),L(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),L(i,"width","16"),L(i,"height","16")},m(d,s){oe(d,i,s),z(i,u)},d(d){d&&se(i)}}}function Ks(e){let i,u=e[38]+"",d,s,c,p,m;function a(){return e[28](e[38])}return{c(){i=H("button"),d=he(u),s=he("x"),i.disabled=c=e[10]==="skipping",L(i,"class","svelte-189zk2r"),ve(i,"active",e[38]===e[1]&&e[10]!=="skipping")},m(h,t){oe(h,i,t),z(i,d),z(i,s),p||(m=ye(i,"click",a),p=!0)},p(h,t){e=h,t[0]&8&&u!==(u=e[38]+"")&&Te(d,u),t[0]&1024&&c!==(c=e[10]==="skipping")&&(i.disabled=c),t[0]&1034&&ve(i,"active",e[38]===e[1]&&e[10]!=="skipping")},d(h){h&&se(i),p=!1,m()}}}function Wn(e){let i,u,d=e[2]&&Hs(e);return{c(){d&&d.c(),i=Ui()},m(s,c){d&&d.m(s,c),oe(s,i,c),u=!0},p(s,c){s[2]?d?(d.p(s,c),c[0]&4&&ne(d,1)):(d=Hs(s),d.c(),ne(d,1),d.m(i.parentNode,i)):d&&(ni(),Se(d,1,1,()=>{d=null}),oi())},i(s){u||(ne(d),u=!0)},o(s){Se(d),u=!1},d(s){s&&se(i),d&&d.d(s)}}}function Xs(e,i,u){const d=i-e;return(100-(i-u)/d*100).toFixed(2)}function $n(e,i,u){const d=zi();let{replayer:s}=i,{showController:c}=i,{autoPlay:p}=i,{skipInactive:m}=i,{speedOption:a}=i,{speed:h=a.length?a[0]:1}=i,{tags:t={}}=i,{inactiveColor:o}=i,n=0,r,f,l,g,x,b,v;const C=()=>{},y=()=>{},w=()=>{},S=(k,j)=>{u(6,n=k),(typeof j=="boolean"?j:r==="playing")?s.play(k):s.pause(k)},P=(k,j,D=!1,M=void 0)=>{u(6,n=k),s.play(k)},A=k=>{const j=l.getBoundingClientRect();let M=(k.clientX-j.left)/j.width;M<0?M=0:M>1&&(M=1);const K=g.totalTime*M;S(K)},_=k=>{k.key==="ArrowLeft"?S(n-5):k.key==="ArrowRight"&&S(n+5)},U=k=>{u(1,h=k),s.setConfig({speed:h})},I=()=>{u(0,m=!m)},O=()=>Promise.resolve().then(()=>{u(8,g=s.getMetaData())});si(()=>{s.pause()});function T(k){fe[k?"unshift":"push"](()=>{l=k,u(11,l)})}const Y=k=>U(k);function q(k){m=k,u(0,m)}const $=()=>d("fullscreen");return e.$$set=k=>{"replayer"in k&&u(17,s=k.replayer),"showController"in k&&u(2,c=k.showController),"autoPlay"in k&&u(18,p=k.autoPlay),"skipInactive"in k&&u(0,m=k.skipInactive),"speedOption"in k&&u(3,a=k.speedOption),"speed"in k&&u(1,h=k.speed),"tags"in k&&u(19,t=k.tags),"inactiveColor"in k&&u(20,o=k.inactiveColor)},e.$$.update=()=>{if(e.$$.dirty[0]&64&&d("ui-update-current-time",{payload:n}),e.$$.dirty[0]&128&&d("ui-update-player-state",{payload:r}),e.$$.dirty[0]&131072&&u(8,g=s.getMetaData()),e.$$.dirty[0]&320){const k=Math.min(1,n/g.totalTime);u(12,x=`${100*k}%`),d("ui-update-progress",{payload:k})}e.$$.dirty[0]&655360&&u(9,b=(()=>{const{context:k}=s.service.state,j=k.events.length,D=k.events[0].timestamp,M=k.events[j-1].timestamp,K=[];return k.events.forEach(R=>{if(R.type===_i.Custom){const E={name:R.data.tag,background:t[R.data.tag]||"rgb(73, 80, 246)",position:`${Xs(D,M,R.timestamp)}%`};K.push(E)}}),K})()),e.$$.dirty[0]&1179648&&u(13,v=(()=>{try{const{context:k}=s.service.state,j=k.events.length,D=k.events[0].timestamp,M=k.events[j-1].timestamp,K=Fn(k.events,s.config.inactivePeriodThreshold),R=(E,F,B,N)=>{const X=F-E;return((N-B)/X*100).toFixed(2)};return K.map(E=>({name:"inactive period",background:o,position:`${Xs(D,M,E[0])}%`,width:`${R(D,M,E[0],E[1])}%`}))}catch(k){return[]}})())},[m,h,c,a,C,U,n,r,g,b,f,l,x,v,d,A,_,s,p,t,o,y,w,S,P,I,O,T,Y,q,$]}class Vn extends cr{constructor(i){super(),hr(this,i,$n,Wn,ar,{replayer:17,showController:2,autoPlay:18,skipInactive:0,speedOption:3,speed:1,tags:19,inactiveColor:20,toggle:4,play:21,pause:22,goto:23,playRange:24,setSpeed:5,toggleSkipInactive:25,triggerUpdateMeta:26},null,[-1,-1])}get toggle(){return this.$$.ctx[4]}get play(){return this.$$.ctx[21]}get pause(){return this.$$.ctx[22]}get goto(){return this.$$.ctx[23]}get playRange(){return this.$$.ctx[24]}get setSpeed(){return this.$$.ctx[5]}get toggleSkipInactive(){return this.$$.ctx[25]}get triggerUpdateMeta(){return this.$$.ctx[26]}}function Zs(e){let i,u,d={replayer:e[7],showController:e[3],autoPlay:e[1],speedOption:e[2],skipInactive:e[0],tags:e[4],inactiveColor:e[5]};return i=new Vn({props:d}),e[32](i),i.$on("fullscreen",e[33]),{c(){li(i.$$.fragment)},m(s,c){ur(i,s,c),u=!0},p(s,c){const p={};c[0]&128&&(p.replayer=s[7]),c[0]&8&&(p.showController=s[3]),c[0]&2&&(p.autoPlay=s[1]),c[0]&4&&(p.speedOption=s[2]),c[0]&1&&(p.skipInactive=s[0]),c[0]&16&&(p.tags=s[4]),c[0]&32&&(p.inactiveColor=s[5]),i.$set(p)},i(s){u||(ne(i.$$.fragment,s),u=!0)},o(s){Se(i.$$.fragment,s),u=!1},d(s){e[32](null),fr(i,s)}}}function Gn(e){let i,u,d,s,c=e[7]&&Zs(e);return{c(){i=H("div"),u=H("div"),d=ee(),c&&c.c(),L(u,"class","rr-player__frame"),L(u,"style",e[11]),L(i,"class","rr-player"),L(i,"style",e[12])},m(p,m){oe(p,i,m),z(i,u),e[31](u),z(i,d),c&&c.m(i,null),e[34](i),s=!0},p(p,m){(!s||m[0]&2048)&&L(u,"style",p[11]),p[7]?c?(c.p(p,m),m[0]&128&&ne(c,1)):(c=Zs(p),c.c(),ne(c,1),c.m(i,null)):c&&(ni(),Se(c,1,1,()=>{c=null}),oi()),(!s||m[0]&4096)&&L(i,"style",p[12])},i(p){s||(ne(c),s=!0)},o(p){Se(c),s=!1},d(p){p&&se(i),e[31](null),c&&c.d(),e[34](null)}}}const Jn=80;function Hn(e,i,u){let{width:d=1024}=i,{height:s=576}=i,{maxScale:c=1}=i,{events:p}=i,{skipInactive:m=!0}=i,{autoPlay:a=!0}=i,{speedOption:h=[1,2,4,8]}=i,{speed:t=1}=i,{showController:o=!0}=i,{tags:n={}}=i,{inactiveColor:r="#D4D4D4"}=i,f;const l=()=>f.getMirror();let g,x,b,v,C;const y=(R,E)=>{const F=d/E.width,B=s/E.height,N=[F,B];c&&N.push(c),R.style.transform=`scale(${Math.min(...N)})translate(-50%, -50%)`},w=()=>{y(f.wrapper,{width:f.iframe.offsetWidth,height:f.iframe.offsetHeight})},S=()=>{g&&(Un()?Ln():In(g))},P=(R,E)=>{switch(f.on(R,E),R){case"ui-update-current-time":case"ui-update-progress":case"ui-update-player-state":b.$on(R,({detail:F})=>E(F))}},A=R=>{f.addEvent(R),b.triggerUpdateMeta()},_=()=>f.getMetaData(),U=()=>f,I=()=>{b.toggle()},O=R=>{b.setSpeed(R)},T=()=>{b.toggleSkipInactive()},Y=()=>{b.play()},q=()=>{b.pause()},$=(R,E)=>{b.goto(R,E)},k=(R,E,F=!1,B=void 0)=>{b.playRange(R,E,F,B)};si(()=>{});function j(R){fe[R?"unshift":"push"](()=>{x=R,u(9,x)})}function D(R){fe[R?"unshift":"push"](()=>{b=R,u(10,b)})}const M=()=>S();function K(R){fe[R?"unshift":"push"](()=>{g=R,u(8,g)})}return e.$$set=R=>{u(39,i=Mr(Mr({},i),Ir(R))),"width"in R&&u(13,d=R.width),"height"in R&&u(14,s=R.height),"maxScale"in R&&u(15,c=R.maxScale),"events"in R&&u(16,p=R.events),"skipInactive"in R&&u(0,m=R.skipInactive),"autoPlay"in R&&u(1,a=R.autoPlay),"speedOption"in R&&u(2,h=R.speedOption),"speed"in R&&u(17,t=R.speed),"showController"in R&&u(3,o=R.showController),"tags"in R&&u(4,n=R.tags),"inactiveColor"in R&&u(5,r=R.inactiveColor)},e.$$.update=()=>{e.$$.dirty[0]&24576&&u(11,v=Ws({width:`${d}px`,height:`${s}px`})),e.$$.dirty[0]&24584&&u(12,C=Ws({width:`${d}px`,height:`${s+(o?Jn:0)}px`}))},i=Ir(i),[m,a,h,o,n,r,S,f,g,x,b,v,C,d,s,c,p,t,l,w,P,A,_,U,I,O,T,Y,q,$,k,j,D,M,K]}let Yn=class extends cr{constructor(i){super(),hr(this,i,Hn,Gn,ar,{width:13,height:14,maxScale:15,events:16,skipInactive:0,autoPlay:1,speedOption:2,speed:17,showController:3,tags:4,inactiveColor:5,getMirror:18,triggerResize:19,toggleFullscreen:6,addEventListener:20,addEvent:21,getMetaData:22,getReplayer:23,toggle:24,setSpeed:25,toggleSkipInactive:26,play:27,pause:28,goto:29,playRange:30},null,[-1,-1])}get getMirror(){return this.$$.ctx[18]}get triggerResize(){return this.$$.ctx[19]}get toggleFullscreen(){return this.$$.ctx[6]}get addEventListener(){return this.$$.ctx[20]}get addEvent(){return this.$$.ctx[21]}get getMetaData(){return this.$$.ctx[22]}get getReplayer(){return this.$$.ctx[23]}get toggle(){return this.$$.ctx[24]}get setSpeed(){return this.$$.ctx[25]}get toggleSkipInactive(){return this.$$.ctx[26]}get play(){return this.$$.ctx[27]}get pause(){return this.$$.ctx[28]}get goto(){return this.$$.ctx[29]}get playRange(){return this.$$.ctx[30]}};class Ei extends Yn{constructor(i){super({target:i.target,props:i.data||i.props})}}exports.Player=Ei;exports.default=Ei;
|
|
109
162
|
if (typeof module.exports == "object" && typeof exports == "object") {
|
|
110
163
|
var __cp = (to, from, except, desc) => {
|
|
111
164
|
if ((from && typeof from === "object") || typeof from === "function") {
|