@appsurify-testmap/rrweb-player 3.1.1-alpha.1 → 3.1.1-alpha.3
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 +2971 -2690
- package/dist/rrweb-player.cjs.map +1 -1
- package/dist/rrweb-player.d.cts +47 -26
- package/dist/rrweb-player.d.ts +47 -26
- package/dist/rrweb-player.js +2971 -2690
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +3086 -2810
- package/dist/rrweb-player.umd.cjs.map +4 -4
- package/dist/rrweb-player.umd.min.cjs +44 -52
- package/dist/rrweb-player.umd.min.cjs.map +4 -4
- package/package.json +4 -4
|
@@ -1,72 +1,64 @@
|
|
|
1
|
-
(function (g, f) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} else if ("object" == typeof exports) {
|
|
7
|
-
exports["rrwebPlayer"] = f();
|
|
8
|
-
} else {
|
|
9
|
-
g["rrwebPlayer"] = f();
|
|
10
|
-
}
|
|
11
|
-
}(this, () => {
|
|
12
|
-
var exports = {};
|
|
13
|
-
var module = { exports };
|
|
14
|
-
"use strict";var ql=Object.defineProperty,ea=Object.defineProperties;var ta=Object.getOwnPropertyDescriptors;var Pt=Object.getOwnPropertySymbols;var ws=Object.prototype.hasOwnProperty,vs=Object.prototype.propertyIsEnumerable;var ys=(r,e,t)=>e in r?ql(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,T=(r,e)=>{for(var t in e||(e={}))ws.call(e,t)&&ys(r,t,e[t]);if(Pt)for(var t of Pt(e))vs.call(e,t)&&ys(r,t,e[t]);return r},oe=(r,e)=>ea(r,ta(e));var ut=(r,e)=>{var t={};for(var i in r)ws.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&Pt)for(var i of Pt(r))e.indexOf(i)<0&&vs.call(r,i)&&(t[i]=r[i]);return t};var ia=Object.defineProperty,ra=(r,e,t)=>e in r?ia(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,bs=(r,e,t)=>ra(r,typeof e!="symbol"?e+"":e,t);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function bt(){}function Cs(r,e){for(const t in e)r[t]=e[t];return r}function Gn(r){return r()}function Ss(){return Object.create(null)}function lt(r){r.forEach(Gn)}function jn(r){return typeof r=="function"}function zr(r,e){return r!=r?e==e:r!==e||r&&typeof r=="object"||typeof r=="function"}function sa(r){return Object.keys(r).length===0}function Es(r){const e={};for(const t in r)t[0]!=="$"&&(e[t]=r[t]);return e}function P(r,e){r.appendChild(e)}function De(r,e,t){r.insertBefore(e,t||null)}function Ne(r){r.parentNode&&r.parentNode.removeChild(r)}function Fi(r,e){for(let t=0;t<r.length;t+=1)r[t]&&r[t].d(e)}function ne(r){return document.createElement(r)}function ci(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function Ue(r){return document.createTextNode(r)}function ge(){return Ue(" ")}function na(){return Ue("")}function Xe(r,e,t,i){return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}function N(r,e,t){t==null?r.removeAttribute(e):r.getAttribute(e)!==t&&r.setAttribute(e,t)}function oa(r){return Array.from(r.childNodes)}function hi(r,e){e=""+e,r.data!==e&&(r.data=e)}function ie(r,e,t,i){t==null?r.style.removeProperty(e):r.style.setProperty(e,t,"")}function Qe(r,e,t){r.classList.toggle(e,!!t)}function la(r,e,{bubbles:t=!1,cancelable:i=!1}={}){return new CustomEvent(r,{detail:e,bubbles:t,cancelable:i})}let Ct;function yt(r){Ct=r}function Ai(){if(!Ct)throw new Error("Function called outside component initialization");return Ct}function Yn(r){Ai().$$.on_mount.push(r)}function aa(r){Ai().$$.after_update.push(r)}function Zn(r){Ai().$$.on_destroy.push(r)}function ua(){const r=Ai();return(e,t,{cancelable:i=!1}={})=>{const s=r.$$.callbacks[e];if(s){const o=la(e,t,{cancelable:i});return s.slice().forEach(n=>{n.call(r,o)}),!o.defaultPrevented}return!0}}const je=[],Be=[];let Ke=[];const tr=[],ca=Promise.resolve();let ir=!1;function ha(){ir||(ir=!0,ca.then(Hn))}function rr(r){Ke.push(r)}function fa(r){tr.push(r)}const Bi=new Set;let We=0;function Hn(){if(We!==0)return;const r=Ct;do{try{for(;We<je.length;){const e=je[We];We++,yt(e),pa(e.$$)}}catch(e){throw je.length=0,We=0,e}for(yt(null),je.length=0,We=0;Be.length;)Be.pop()();for(let e=0;e<Ke.length;e+=1){const t=Ke[e];Bi.has(t)||(Bi.add(t),t())}Ke.length=0}while(je.length);for(;tr.length;)tr.pop()();ir=!1,Bi.clear(),yt(r)}function pa(r){if(r.fragment!==null){r.update(),lt(r.before_update);const e=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,e),r.after_update.forEach(rr)}}function da(r){const e=[],t=[];Ke.forEach(i=>r.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),Ke=e}const ni=new Set;let Fe;function Xn(){Fe={r:0,c:[],p:Fe}}function Jn(){Fe.r||lt(Fe.c),Fe=Fe.p}function Me(r,e){r&&r.i&&(ni.delete(r),r.i(e))}function qe(r,e,t,i){if(r&&r.o){if(ni.has(r))return;ni.add(r),Fe.c.push(()=>{ni.delete(r),i&&(t&&r.d(1),i())}),r.o(e)}else i&&i()}function Ge(r){return(r==null?void 0:r.length)!==void 0?r:Array.from(r)}function ma(r,e,t){const i=r.$$.props[e];i!==void 0&&(r.$$.bound[i]=t,t(r.$$.ctx[i]))}function Kn(r){r&&r.c()}function Vr(r,e,t){const{fragment:i,after_update:s}=r.$$;i&&i.m(e,t),rr(()=>{const o=r.$$.on_mount.map(Gn).filter(jn);r.$$.on_destroy?r.$$.on_destroy.push(...o):lt(o),r.$$.on_mount=[]}),s.forEach(rr)}function Wr(r,e){const t=r.$$;t.fragment!==null&&(da(t.after_update),lt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function ga(r,e){r.$$.dirty[0]===-1&&(je.push(r),ha(),r.$$.dirty.fill(0)),r.$$.dirty[e/31|0]|=1<<e%31}function Gr(r,e,t,i,s,o,n=null,l=[-1]){const a=Ct;yt(r);const u=r.$$={fragment:null,ctx:[],props:o,update:bt,not_equal:s,bound:Ss(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:Ss(),dirty:l,skip_bound:!1,root:e.target||a.$$.root};n&&n(u.root);let c=!1;if(u.ctx=t?t(r,e.props||{},(h,f,...m)=>{const g=m.length?m[0]:f;return u.ctx&&s(u.ctx[h],u.ctx[h]=g)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](g),c&&ga(r,h)),f}):[],u.update(),c=!0,lt(u.before_update),u.fragment=i?i(u.ctx):!1,e.target){if(e.hydrate){const h=oa(e.target);u.fragment&&u.fragment.l(h),h.forEach(Ne)}else u.fragment&&u.fragment.c();e.intro&&Me(r.$$.fragment),Vr(r,e.target,e.anchor),Hn()}yt(a)}class jr{constructor(){bs(this,"$$"),bs(this,"$$set")}$destroy(){Wr(this,1),this.$destroy=bt}$on(e,t){if(!jn(t))return bt;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const s=i.indexOf(t);s!==-1&&i.splice(s,1)}}$set(e){this.$$set&&!sa(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ya="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ya);var wa=Object.defineProperty,va=(r,e,t)=>e in r?wa(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,R=(r,e,t)=>va(r,typeof e!="symbol"?e+"":e,t),As,ba=Object.defineProperty,Ca=(r,e,t)=>e in r?ba(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,xs=(r,e,t)=>Ca(r,typeof e!="symbol"?e+"":e,t),q=(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))(q||{});function Sa(r){return r.nodeType===r.ELEMENT_NODE}class Qn{constructor(){xs(this,"idNodeMap",new Map),xs(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 qn(){return new Qn}function Ea(r){return r.toLowerCase()}function Aa(r,e){return!r||!e||r.type!==e.type?!1:r.type===q.Document?r.compatMode===e.compatMode:r.type===q.DocumentType?r.name===e.name&&r.publicId===e.publicId&&r.systemId===e.systemId:r.type===q.Comment||r.type===q.Text||r.type===q.CDATA?r.textContent===e.textContent:r.type===q.Element?r.tagName===e.tagName&&JSON.stringify(r.attributes)===JSON.stringify(e.attributes)&&r.isSVG===e.isSVG&&r.needBlock===e.needBlock:!1}function xa(r,e){var o;let t;try{t=new URL(r,e!=null?e:window.location.href)}catch(n){return null}const i=/\.([0-9a-z]+)(?:$)/i,s=t.pathname.match(i);return(o=s==null?void 0:s[1])!=null?o:null}const Ra=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],Na=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],eo=new WeakSet,Ma=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(r,e,t){if(Ma.call(this,r,e,t),this instanceof Element){const i=r.toLowerCase();Ra.includes(i)&&eo.add(this)}};const Ia=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(r,e,t){Ia.call(this,r,e,t)};function Rs(){document.querySelectorAll("*").forEach(e=>{Na.forEach(t=>{e.hasAttribute(t)&&eo.add(e)})})}try{document.readyState==="complete"||document.readyState==="interactive"?Rs():document.addEventListener("DOMContentLoaded",Rs)}catch(r){}const Oa=/(max|min)-device-(width|height)/,Ns=new RegExp(Oa.source,"g"),Da={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(r){r.params.match(Ns)&&(r.params=r.params.replace(Ns,"$1-$2"))}}}},_a={postcssPlugin:"postcss-hover-classes",prepare:function(){const r=[];return{Rule:function(e){r.indexOf(e)===-1&&(r.push(e),e.selectors.forEach(function(t){t.includes(":hover")&&(e.selector+=`,
|
|
15
|
-
`+t.replace(/:hover/g,".\\:hover"))}))}}}},Ta={postcssPlugin:"postcss-animation-fill-mode",prepare:function(){return{Rule:function(r){let e=!1,t=!1,i=null;r.walkDecls(s=>{s.prop==="animation"&&(e=!0,i=s),s.prop==="animation-fill-mode"&&(t=!0)}),e&&!t&&i&&r.insertAfter(i,{prop:"animation-fill-mode",value:"forwards"})}}}};function ka(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Pa(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 Yr={exports:{}},j=String,to=function(){return{isColorSupported:!1,reset:j,bold:j,dim:j,italic:j,underline:j,inverse:j,hidden:j,strikethrough:j,black:j,red:j,green:j,yellow:j,blue:j,magenta:j,cyan:j,white:j,gray:j,bgBlack:j,bgRed:j,bgGreen:j,bgYellow:j,bgBlue:j,bgMagenta:j,bgCyan:j,bgWhite:j}};Yr.exports=to();Yr.exports.createColors=to;var La=Yr.exports;const $a={},Fa=Object.freeze(Object.defineProperty({__proto__:null,default:$a},Symbol.toStringTag,{value:"Module"})),be=Pa(Fa);let Ms=La,Is=be,sr=class io 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,io)}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=Ms.isColorSupported),Is&&e&&(t=Is(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}=Ms.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 m=a(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(f)+u+`
|
|
16
|
-
`+m+l("^")}return" "+a(f)+u}).join(`
|
|
1
|
+
(function (g, f) {if ("object" == typeof exports && "object" == typeof module) {module.exports = f();} else if ("function" == typeof define && define.amd) {define("rrwebPlayer", [], f);} else if ("object" == typeof exports) {exports["rrwebPlayer"] = f();} else {g["rrwebPlayer"] = f();}}(typeof self !== 'undefined' ? self : typeof globalThis !== 'undefined' ? globalThis : this, () => {var exports = {};var module = { exports };
|
|
2
|
+
"use strict";var sa=Object.defineProperty,ra=Object.defineProperties;var na=Object.getOwnPropertyDescriptors;var Bt=Object.getOwnPropertySymbols;var Sr=Object.prototype.hasOwnProperty,Er=Object.prototype.propertyIsEnumerable;var Cr=(s,e,t)=>e in s?sa(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,P=(s,e)=>{for(var t in e||(e={}))Sr.call(e,t)&&Cr(s,t,e[t]);if(Bt)for(var t of Bt(e))Er.call(e,t)&&Cr(s,t,e[t]);return s},oe=(s,e)=>ra(s,na(e));var ht=(s,e)=>{var t={};for(var i in s)Sr.call(s,i)&&e.indexOf(i)<0&&(t[i]=s[i]);if(s!=null&&Bt)for(var i of Bt(s))e.indexOf(i)<0&&Er.call(s,i)&&(t[i]=s[i]);return t};var oa=Object.defineProperty,la=(s,e,t)=>e in s?oa(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,xr=(s,e,t)=>la(s,typeof e!="symbol"?e+"":e,t);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function xt(){}function Ar(s,e){for(const t in e)s[t]=e[t];return s}function Hn(s){return s()}function Nr(){return Object.create(null)}function ut(s){s.forEach(Hn)}function Xn(s){return typeof s=="function"}function Ys(s,e){return s!=s?e==e:s!==e||s&&typeof s=="object"||typeof s=="function"}function aa(s){return Object.keys(s).length===0}function Mr(s){const e={};for(const t in s)t[0]!=="$"&&(e[t]=s[t]);return e}function $(s,e){s.appendChild(e)}function Te(s,e,t){s.insertBefore(e,t||null)}function Me(s){s.parentNode&&s.parentNode.removeChild(s)}function Ui(s,e){for(let t=0;t<s.length;t+=1)s[t]&&s[t].d(e)}function ne(s){return document.createElement(s)}function fi(s){return document.createElementNS("http://www.w3.org/2000/svg",s)}function Ve(s){return document.createTextNode(s)}function ge(){return Ve(" ")}function ua(){return Ve("")}function Ke(s,e,t,i){return s.addEventListener(e,t,i),()=>s.removeEventListener(e,t,i)}function M(s,e,t){t==null?s.removeAttribute(e):s.getAttribute(e)!==t&&s.setAttribute(e,t)}function ca(s){return Array.from(s.childNodes)}function di(s,e){e=""+e,s.data!==e&&(s.data=e)}function ie(s,e,t,i){t==null?s.style.removeProperty(e):s.style.setProperty(e,t,"")}function et(s,e,t){s.classList.toggle(e,!!t)}function ha(s,e,{bubbles:t=!1,cancelable:i=!1}={}){return new CustomEvent(s,{detail:e,bubbles:t,cancelable:i})}let At;function Ct(s){At=s}function Ni(){if(!At)throw new Error("Function called outside component initialization");return At}function Jn(s){Ni().$$.on_mount.push(s)}function fa(s){Ni().$$.after_update.push(s)}function Kn(s){Ni().$$.on_destroy.push(s)}function da(){const s=Ni();return(e,t,{cancelable:i=!1}={})=>{const r=s.$$.callbacks[e];if(r){const n=ha(e,t,{cancelable:i});return r.slice().forEach(o=>{o.call(s,n)}),!n.defaultPrevented}return!0}}const Ze=[],ze=[];let qe=[];const ns=[],pa=Promise.resolve();let os=!1;function ma(){os||(os=!0,pa.then(Qn))}function ls(s){qe.push(s)}function ga(s){ns.push(s)}const zi=new Set;let Ye=0;function Qn(){if(Ye!==0)return;const s=At;do{try{for(;Ye<Ze.length;){const e=Ze[Ye];Ye++,Ct(e),ya(e.$$)}}catch(e){throw Ze.length=0,Ye=0,e}for(Ct(null),Ze.length=0,Ye=0;ze.length;)ze.pop()();for(let e=0;e<qe.length;e+=1){const t=qe[e];zi.has(t)||(zi.add(t),t())}qe.length=0}while(Ze.length);for(;ns.length;)ns.pop()();os=!1,zi.clear(),Ct(s)}function ya(s){if(s.fragment!==null){s.update(),ut(s.before_update);const e=s.dirty;s.dirty=[-1],s.fragment&&s.fragment.p(s.ctx,e),s.after_update.forEach(ls)}}function wa(s){const e=[],t=[];qe.forEach(i=>s.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),qe=e}const li=new Set;let Ue;function qn(){Ue={r:0,c:[],p:Ue}}function eo(){Ue.r||ut(Ue.c),Ue=Ue.p}function Oe(s,e){s&&s.i&&(li.delete(s),s.i(e))}function tt(s,e,t,i){if(s&&s.o){if(li.has(s))return;li.add(s),Ue.c.push(()=>{li.delete(s),i&&(t&&s.d(1),i())}),s.o(e)}else i&&i()}function je(s){return(s==null?void 0:s.length)!==void 0?s:Array.from(s)}function va(s,e,t){const i=s.$$.props[e];i!==void 0&&(s.$$.bound[i]=t,t(s.$$.ctx[i]))}function to(s){s&&s.c()}function js(s,e,t){const{fragment:i,after_update:r}=s.$$;i&&i.m(e,t),ls(()=>{const n=s.$$.on_mount.map(Hn).filter(Xn);s.$$.on_destroy?s.$$.on_destroy.push(...n):ut(n),s.$$.on_mount=[]}),r.forEach(ls)}function Zs(s,e){const t=s.$$;t.fragment!==null&&(wa(t.after_update),ut(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function ba(s,e){s.$$.dirty[0]===-1&&(Ze.push(s),ma(),s.$$.dirty.fill(0)),s.$$.dirty[e/31|0]|=1<<e%31}function Hs(s,e,t,i,r,n,o=null,l=[-1]){const a=At;Ct(s);const u=s.$$={fragment:null,ctx:[],props:n,update:xt,not_equal:r,bound:Nr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:Nr(),dirty:l,skip_bound:!1,root:e.target||a.$$.root};o&&o(u.root);let c=!1;if(u.ctx=t?t(s,e.props||{},(h,f,...p)=>{const y=p.length?p[0]:f;return u.ctx&&r(u.ctx[h],u.ctx[h]=y)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](y),c&&ba(s,h)),f}):[],u.update(),c=!0,ut(u.before_update),u.fragment=i?i(u.ctx):!1,e.target){if(e.hydrate){const h=ca(e.target);u.fragment&&u.fragment.l(h),h.forEach(Me)}else u.fragment&&u.fragment.c();e.intro&&Oe(s.$$.fragment),js(s,e.target,e.anchor),Qn()}Ct(a)}class Xs{constructor(){xr(this,"$$"),xr(this,"$$set")}$destroy(){Zs(this,1),this.$destroy=xt}$on(e,t){if(!Xn(t))return xt;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const r=i.indexOf(t);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!aa(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Ca="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ca);var Sa=Object.defineProperty,Ea=(s,e,t)=>e in s?Sa(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e,t)=>Ea(s,typeof e!="symbol"?e+"":e,t),Rr,xa=Object.defineProperty,Aa=(s,e,t)=>e in s?xa(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Vi=(s,e,t)=>Aa(s,typeof e!="symbol"?e+"":e,t),q=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(q||{});function Na(s){return s.nodeType===s.ELEMENT_NODE}class io{constructor(){Vi(this,"idNodeMap",new Map),Vi(this,"nodeMetaMap",new WeakMap),Vi(this,"selectorNodeMap",new Map)}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);const i=this.getMeta(e);if(i!=null&&i.selector){const r=this.selectorNodeMap.get(i.selector);r&&(r.delete(e),r.size===0&&this.selectorNodeMap.delete(i.selector))}e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const i=t.id;if(this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,t),t.selector){let r=this.selectorNodeMap.get(t.selector);r||(r=new Set,this.selectorNodeMap.set(t.selector,r)),r.add(e)}}replace(e,t){const i=this.getNode(e);if(i){const r=this.nodeMetaMap.get(i);if(r&&(this.nodeMetaMap.set(t,r),r.selector)){const n=this.selectorNodeMap.get(r.selector);n&&(n.delete(i),n.add(t))}}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap,this.selectorNodeMap=new Map}getNodeBySelector(e){const t=this.selectorNodeMap.get(e);return!t||t.size===0?null:t.values().next().value||null}getNodesBySelector(e){const t=this.selectorNodeMap.get(e);return t?Array.from(t):[]}hasSelector(e){const t=this.selectorNodeMap.get(e);return t!==void 0&&t.size>0}}function so(){return new io}function Ma(s){return s.toLowerCase()}function Ra(s,e){return!s||!e||s.type!==e.type?!1:s.type===q.Document?s.compatMode===e.compatMode:s.type===q.DocumentType?s.name===e.name&&s.publicId===e.publicId&&s.systemId===e.systemId:s.type===q.Comment||s.type===q.Text||s.type===q.CDATA?s.textContent===e.textContent:s.type===q.Element?s.tagName===e.tagName&&JSON.stringify(s.attributes)===JSON.stringify(e.attributes)&&s.isSVG===e.isSVG&&s.needBlock===e.needBlock:!1}function Ia(s,e){var n;let t;try{t=new URL(s,e!=null?e:window.location.href)}catch(o){return null}const i=/\.([0-9a-z]+)(?:$)/i,r=t.pathname.match(i);return(n=r==null?void 0:r[1])!=null?n:null}const Oa=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],Da=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],ro=new WeakSet,_a=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(s,e,t){if(_a.call(this,s,e,t),this instanceof Element){const i=s.toLowerCase();Oa.includes(i)&&ro.add(this)}};const Ta=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(s,e,t){Ta.call(this,s,e,t)};function Ir(){document.querySelectorAll("*").forEach(e=>{Da.forEach(t=>{e.hasAttribute(t)&&ro.add(e)})})}try{document.readyState==="complete"||document.readyState==="interactive"?Ir():document.addEventListener("DOMContentLoaded",Ir)}catch(s){}const ka=/(max|min)-device-(width|height)/,Or=new RegExp(ka.source,"g"),Pa={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(s){s.params.match(Or)&&(s.params=s.params.replace(Or,"$1-$2"))}}}},La={postcssPlugin:"postcss-hover-classes",prepare:function(){const s=[];return{Rule:function(e){s.indexOf(e)===-1&&(s.push(e),e.selectors.forEach(function(t){t.includes(":hover")&&(e.selector+=`,
|
|
3
|
+
`+t.replace(/:hover/g,".\\:hover"))}))}}}},$a={postcssPlugin:"postcss-animation-fill-mode",prepare:function(){return{Rule:function(s){let e=!1,t=!1,i=null;s.walkDecls(r=>{r.prop==="animation"&&(e=!0,i=r),r.prop==="animation-fill-mode"&&(t=!0)}),e&&!t&&i&&s.insertAfter(i,{prop:"animation-fill-mode",value:"forwards"})}}}};function Fa(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Ba(s){if(s.__esModule)return s;var e=s.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(s).forEach(function(i){var r=Object.getOwnPropertyDescriptor(s,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return s[i]}})}),t}var Js={exports:{}},I=String,no=function(){return{isColorSupported:!1,reset:I,bold:I,dim:I,italic:I,underline:I,inverse:I,hidden:I,strikethrough:I,black:I,red:I,green:I,yellow:I,blue:I,magenta:I,cyan:I,white:I,gray:I,bgBlack:I,bgRed:I,bgGreen:I,bgYellow:I,bgBlue:I,bgMagenta:I,bgCyan:I,bgWhite:I,blackBright:I,redBright:I,greenBright:I,yellowBright:I,blueBright:I,magentaBright:I,cyanBright:I,whiteBright:I,bgBlackBright:I,bgRedBright:I,bgGreenBright:I,bgYellowBright:I,bgBlueBright:I,bgMagentaBright:I,bgCyanBright:I,bgWhiteBright:I}};Js.exports=no();Js.exports.createColors=no;var Ua=Js.exports;const za={},Va=Object.freeze(Object.defineProperty({__proto__:null,default:za},Symbol.toStringTag,{value:"Module"})),be=Ba(Va);let Dr=Ua,_r=be,as=class oo extends Error{constructor(e,t,i,r,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),r&&(this.source=r),o&&(this.plugin=o),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=Dr.isColorSupported);let i=c=>c,r=c=>c,n=c=>c;if(e){let{bold:c,gray:h,red:f}=Dr.createColors(!0);r=p=>c(f(p)),i=p=>h(p),_r&&(n=p=>_r(p))}let o=t.split(/\r?\n/),l=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),u=String(a).length;return o.slice(l,a).map((c,h)=>{let f=l+1+h,p=" "+(" "+f).slice(-u)+" | ";if(f===this.line){if(c.length>160){let b=20,d=Math.max(0,this.column-b),m=Math.max(this.column+b,this.endColumn+b),w=c.slice(d,m),v=i(p.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,b-1)).replace(/[^\t]/g," ");return r(">")+i(p)+n(w)+`
|
|
4
|
+
`+v+r("^")}let y=i(p.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+i(p)+n(c)+`
|
|
5
|
+
`+y+r("^")}return" "+i(p)+n(c)}).join(`
|
|
17
6
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
18
7
|
|
|
19
8
|
`+e+`
|
|
20
|
-
`),this.name+": "+this.message+e}};var
|
|
9
|
+
`),this.name+": "+this.message+e}};var Ks=as;as.default=as;const Tr={after:`
|
|
21
10
|
`,beforeClose:`
|
|
22
11
|
`,beforeComment:`
|
|
23
12
|
`,beforeDecl:`
|
|
24
13
|
`,beforeOpen:" ",beforeRule:`
|
|
25
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function
|
|
26
|
-
`)){let
|
|
27
|
-
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let i;return e.walkComments(
|
|
28
|
-
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i=="undefined"?i=this.raw(t,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,t){let i;return e.walkDecls(
|
|
14
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Wa(s){return s[0].toUpperCase()+s.slice(1)}let us=class{constructor(e){this.builder=e}atrule(e,t){let i="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?i+=e.raws.afterName:r&&(i+=" "),e.nodes)this.block(e,i+r);else{let n=(e.raws.between||"")+(t?";":"");this.builder(i+r+n,e)}}beforeAfter(e,t){let i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):t==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");let r=e.parent,n=0;for(;r&&r.type!=="root";)n+=1,r=r.parent;if(i.includes(`
|
|
15
|
+
`)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<n;l++)i+=o}return i}block(e,t){let i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start");let r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let i=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let n=e.nodes[r],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,t!==r||i)}}comment(e){let t=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+i+"*/",e)}decl(e,t){let i=this.raw(e,"between","colon"),r=e.prop+i+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(e,t,i){let r;if(i||(i=t),t&&(r=e.raws[t],typeof r!="undefined"))return r;let n=e.parent;if(i==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return Tr[i];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[i]!="undefined")return o.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);{let l="raw"+Wa(i);this[l]?r=this[l](o,e):o.walk(a=>{if(r=a.raws[t],typeof r!="undefined")return!1})}return typeof r=="undefined"&&(r=Tr[i]),o.rawCache[i]=r,r}rawBeforeClose(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after!="undefined")return t=i.raws.after,t.includes(`
|
|
16
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let i;return e.walkComments(r=>{if(typeof r.raws.before!="undefined")return i=r.raws.before,i.includes(`
|
|
17
|
+
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i=="undefined"?i=this.raw(t,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,t){let i;return e.walkDecls(r=>{if(typeof r.raws.before!="undefined")return i=r.raws.before,i.includes(`
|
|
29
18
|
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i=="undefined"?i=this.raw(t,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(e){let t;return e.walk(i=>{if(i.type!=="decl"&&(t=i.raws.between,typeof t!="undefined"))return!1}),t}rawBeforeRule(e){let t;return e.walk(i=>{if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before!="undefined")return t=i.raws.before,t.includes(`
|
|
30
|
-
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(i=>{if(typeof i.raws.between!="undefined")return t=i.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(t=i.raws.after,typeof t!="undefined"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(i=>{let
|
|
31
|
-
`);return t=
|
|
32
|
-
`?(
|
|
33
|
-
`);i=new Array(o.length);let n=0;for(let l=0,a=o.length;l<a;l++)i[l]=n,n+=o[l].length+1;this[Vi]=i}t=i[i.length-1];let s=0;if(e>=t)s=i.length-1;else{let o=i.length-2,n;for(;s<o;)if(n=s+(o-s>>1),e<i[n])o=n-1;else if(e>=i[n+1])s=n+1;else{s=n;break}}return{col:e-i[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:fr(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,s){if(!this.map)return!1;let o=this.map.consumer(),n=o.originalPositionFor({column:t,line:e});if(!n.source)return!1;let l;typeof i=="number"&&(l=o.originalPositionFor({column:s,line:i}));let a;hr(n.source)?a=$t(n.source):a=new URL(n.source,this.map.consumer().sourceRoot||$t(this.map.mapFile));let u={column:n.column,endColumn:l&&l.column,endLine:l&&l.line,line:n.line,url:a.toString()};if(a.protocol==="file:")if(Ts)u.file=Ts(a);else throw new Error("file: protocol is not available in this PostCSS build");let c=o.sourceContentFor(n.source);return c&&(u.source=c),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=T({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var Mi=fi;fi.default=fi;zi&&zi.registerInput&&zi.registerInput(fi);let{SourceMapConsumer:no,SourceMapGenerator:oi}=be,{dirname:li,relative:oo,resolve:lo,sep:ao}=be,{pathToFileURL:Ls}=be,nu=Mi,ou=!!(no&&oi),lu=!!(li&&lo&&oo&&ao),au=class{constructor(e,t,i,s){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
|
|
19
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(i=>{if(typeof i.raws.between!="undefined")return t=i.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(t=i.raws.after,typeof t!="undefined"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(i=>{let r=i.parent;if(r&&r!==e&&r.parent&&r.parent===e&&typeof i.raws.before!="undefined"){let n=i.raws.before.split(`
|
|
20
|
+
`);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(t=i.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let i=e[t],r=e.raws[t];return r&&r.value===i?r.raw:i}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var lo=us;us.default=us;let Ga=lo;function cs(s,e){new Ga(e).stringify(s)}var Mi=cs;cs.default=cs;var kt={};kt.isClean=Symbol("isClean");kt.my=Symbol("my");let Ya=Ks,ja=lo,Za=Mi,{isClean:ft,my:Ha}=kt;function hs(s,e){let t=new s.constructor;for(let i in s){if(!Object.prototype.hasOwnProperty.call(s,i)||i==="proxyCache")continue;let r=s[i],n=typeof r;i==="parent"&&n==="object"?e&&(t[i]=e):i==="source"?t[i]=r:Array.isArray(r)?t[i]=r.map(o=>hs(o,t)):(n==="object"&&r!==null&&(r=hs(r)),t[i]=r)}return t}function Re(s,e){if(e&&typeof e.offset!="undefined")return e.offset;let t=1,i=1,r=0;for(let n=0;n<s.length;n++){if(i===e.line&&t===e.column){r=n;break}s[n]===`
|
|
21
|
+
`?(t=1,i+=1):t+=1}return r}let fs=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[ft]=!1,this[Ha]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let i of e[t])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=hs(this);for(let i in e)t[i]=e[i];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:i,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:i.column,line:i.line},t)}return new Ya(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[ft]=!0}markDirty(){if(this[ft]){this[ft]=!1;let e=this;for(;e=e.parent;)e[ft]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let i="document"in this.source.input?this.source.input.document:this.source.input.css,n=i.slice(Re(i,this.source.start),Re(i,this.source.end)).indexOf(e.word);n!==-1&&(t=this.positionInside(n))}return t}positionInside(e){let t=this.source.start.column,i=this.source.start.line,r="document"in this.source.input?this.source.input.document:this.source.input.css,n=Re(r,this.source.start),o=n+e;for(let l=n;l<o;l++)r[l]===`
|
|
22
|
+
`?(t=1,i+=1):t+=1;return{column:t,line:i,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,i={column:this.source.start.column,line:this.source.start.line,offset:Re(t,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:Re(t,this.source.end)+1}:{column:i.column+1,line:i.line,offset:i.offset+1};if(e.word){let o=t.slice(Re(t,this.source.start),Re(t,this.source.end)).indexOf(e.word);o!==-1&&(i=this.positionInside(o),r=this.positionInside(o+e.word.length))}else e.start?i={column:e.start.column,line:e.start.line,offset:Re(t,e.start)}:e.index&&(i=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line,offset:Re(t,e.end)}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<i.line||r.line===i.line&&r.column<=i.column)&&(r={column:i.column+1,line:i.line,offset:i.offset+1}),{end:r,start:i}}raw(e,t){return new ja().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,i=!1;for(let r of e)r===this?i=!0:i?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);i||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let i={},r=t==null;t=t||new Map;let n=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let l=this[o];if(Array.isArray(l))i[o]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)i[o]=l.toJSON(null,t);else if(o==="source"){if(l==null)continue;let a=t.get(l.input);a==null&&(a=n,t.set(l.input,n),n++),i[o]={end:l.end,inputId:a,start:l.start}}else i[o]=l}return r&&(i.inputs=[...t.keys()].map(o=>o.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Za){e.stringify&&(e=e.stringify);let t="";return e(this,i=>{t+=i}),t}warn(e,t,i={}){let r={node:this};for(let n in i)r[n]=i[n];return e.warn(t,r)}};var Ri=fs;fs.default=fs;let Xa=Ri,ds=class extends Xa{constructor(e){super(e),this.type="comment"}};var Ii=ds;ds.default=ds;let Ja=Ri,ps=class extends Ja{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=oe(P({},e),{value:String(e.value)})),super(e),this.type="decl"}};var Oi=ps;ps.default=ps;let ao=Ii,uo=Oi,Ka=Ri,{isClean:co,my:ho}=kt,Qs,fo,po,qs;function mo(s){return s.map(e=>(e.nodes&&(e.nodes=mo(e.nodes)),delete e.source,e))}function go(s){if(s[co]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)go(e)}let De=class yo extends Ka{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let r of i)this.proxyOf.nodes.push(r)}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,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],r=e(this.proxyOf.nodes[i],i),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}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(r=>typeof r=="function"?(n,o)=>r(n.toProxy(),o):r)):t==="every"||t==="some"?i=>e[t]((r,...n)=>i(r.toProxy(),...n)):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),r=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let o of r)this.proxyOf.nodes.splice(i+1,0,o);let n;for(let o in this.indexes)n=this.indexes[o],i<n&&(this.indexes[o]=n+r.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),r=i===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[i],r).reverse();i=this.index(e);for(let l of n)this.proxyOf.nodes.splice(i,0,l);let o;for(let l in this.indexes)o=this.indexes[l],i<=o&&(this.indexes[l]=o+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=mo(fo(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"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 uo(e)]}else if(e.selector||e.selectors)e=[new qs(e)];else if(e.name)e=[new Qs(e)];else if(e.text)e=[new ao(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[ho]||yo.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[co]&&go(r),r.raws||(r.raws={}),typeof r.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(r.raws.before=t.raws.before.replace(/\S/g,"")),r.parent=this.proxyOf,r))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let r of i)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+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(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let r;try{r=e(t,i)}catch(n){throw t.addToError(n)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,r)}):this.walk((i,r)=>{if(i.type==="atrule"&&i.name===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="atrule")return t(i,r)}))}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,r)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,r)}):this.walk((i,r)=>{if(i.type==="decl"&&i.prop===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="decl")return t(i,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,r)}):this.walk((i,r)=>{if(i.type==="rule"&&i.selector===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="rule")return t(i,r)}))}};De.registerParse=s=>{fo=s};De.registerRule=s=>{qs=s};De.registerAtRule=s=>{Qs=s};De.registerRoot=s=>{po=s};var We=De;De.default=De;De.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,Qs.prototype):s.type==="rule"?Object.setPrototypeOf(s,qs.prototype):s.type==="decl"?Object.setPrototypeOf(s,uo.prototype):s.type==="comment"?Object.setPrototypeOf(s,ao.prototype):s.type==="root"&&Object.setPrototypeOf(s,po.prototype),s[ho]=!0,s.nodes&&s.nodes.forEach(e=>{De.rebuild(e)})};let wo=We,pi=class extends wo{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 er=pi;pi.default=pi;wo.registerAtRule(pi);let Qa=We,vo,bo,Nt=class extends Qa{constructor(e){super(P({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new vo(new bo,this,e).stringify()}};Nt.registerLazyResult=s=>{vo=s};Nt.registerProcessor=s=>{bo=s};var tr=Nt;Nt.default=Nt;let qa="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",eu=(s=21)=>{let e="",t=s|0;for(;t--;)e+=qa[Math.random()*64|0];return e};var tu={nanoid:eu};let{existsSync:iu,readFileSync:su}=be,{dirname:Wi,join:ru}=be,{SourceMapConsumer:kr,SourceMapGenerator:Pr}=be;function nu(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}let ms=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=t.map?t.map.prev:void 0,r=this.loadMap(t.from,i);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Wi(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new kr(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,r=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,o=e.match(r)||e.match(n);if(o)return decodeURIComponent(e.substr(o[0].length));let l=e.match(t)||e.match(i);if(l)return nu(e.substr(l[0].length));let a=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let i=e.lastIndexOf(t.pop()),r=e.indexOf("*/",i);i>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,r)))}loadFile(e){if(this.root=Wi(e),iu(e))return this.mapFile=e,su(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let i=t(e);if(i){let r=this.loadFile(i);if(!r)throw new Error("Unable to load previous source map: "+i.toString());return r}}else{if(t instanceof kr)return Pr.fromSourceMap(t).toString();if(t instanceof Pr)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 i=this.annotation;return e&&(i=ru(Wi(e),i)),this.loadFile(i)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Co=ms;ms.default=ms;let{nanoid:ou}=tu,{isAbsolute:gs,resolve:ys}=be,{SourceMapConsumer:lu,SourceMapGenerator:au}=be,{fileURLToPath:Lr,pathToFileURL:Ut}=be,$r=Ks,uu=Co,Gi=be,Yi=Symbol("lineToIndexCache"),cu=!!(lu&&au),Fr=!!(ys&&gs);function Br(s){if(s[Yi])return s[Yi];let e=s.css.split(`
|
|
23
|
+
`),t=new Array(e.length),i=0;for(let r=0,n=e.length;r<n;r++)t[r]=i,i+=e[r].length+1;return s[Yi]=t,t}let mi=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!Fr||/^\w+:\/\//.test(t.from)||gs(t.from)?this.file=t.from:this.file=ys(t.from)),Fr&&cu){let i=new uu(this.css,t);if(i.text){this.map=i;let r=i.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id="<input css "+ou(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,i,r={}){let n,o,l,a,u;if(t&&typeof t=="object"){let h=t,f=i;if(typeof h.offset=="number"){a=h.offset;let p=this.fromOffset(a);t=p.line,i=p.col}else t=h.line,i=h.column,a=this.fromLineAndColumn(t,i);if(typeof f.offset=="number"){l=f.offset;let p=this.fromOffset(l);o=p.line,n=p.col}else o=f.line,n=f.column,l=this.fromLineAndColumn(f.line,f.column)}else if(i)a=this.fromLineAndColumn(t,i);else{a=t;let h=this.fromOffset(a);t=h.line,i=h.col}let c=this.origin(t,i,o,n);return c?u=new $r(e,c.endLine===void 0?c.line:{column:c.column,line:c.line},c.endLine===void 0?c.column:{column:c.endColumn,line:c.endLine},c.source,c.file,r.plugin):u=new $r(e,o===void 0?t:{column:i,line:t},o===void 0?i:{column:n,line:o},this.css,this.file,r.plugin),u.input={column:i,endColumn:n,endLine:o,endOffset:l,line:t,offset:a,source:this.css},this.file&&(Ut&&(u.input.url=Ut(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(e,t){return Br(this)[e-1]+t-1}fromOffset(e){let t=Br(this),i=t[t.length-1],r=0;if(e>=i)r=t.length-1;else{let n=t.length-2,o;for(;r<n;)if(o=r+(n-r>>1),e<t[o])n=o-1;else if(e>=t[o+1])r=o+1;else{r=o;break}}return{col:e-t[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ys(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,r){if(!this.map)return!1;let n=this.map.consumer(),o=n.originalPositionFor({column:t,line:e});if(!o.source)return!1;let l;typeof i=="number"&&(l=n.originalPositionFor({column:r,line:i}));let a;gs(o.source)?a=Ut(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||Ut(this.map.mapFile));let u={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Lr)u.file=Lr(a);else throw new Error("file: protocol is not available in this PostCSS build");let c=n.sourceContentFor(o.source);return c&&(u.source=c),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=P({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Di=mi;mi.default=mi;Gi&&Gi.registerInput&&Gi.registerInput(mi);let So=We,Eo,xo,it=class extends So{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let r=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 n of r)n.raws.before=t.raws.before}return r}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 Eo(new xo,this,e).stringify()}};it.registerLazyResult=s=>{Eo=s};it.registerProcessor=s=>{xo=s};var Pt=it;it.default=it;So.registerRoot(it);let Mt={comma(s){return Mt.split(s,[","],!0)},space(s){let e=[" ",`
|
|
24
|
+
`," "];return Mt.split(s,e)},split(s,e,t){let i=[],r="",n=!1,o=0,l=!1,a="",u=!1;for(let c of s)u?u=!1:c==="\\"?u=!0:l?c===a&&(l=!1):c==='"'||c==="'"?(l=!0,a=c):c==="("?o+=1:c===")"?o>0&&(o-=1):o===0&&e.includes(c)&&(n=!0),n?(r!==""&&i.push(r.trim()),r="",n=!1):r+=c;return(t||r!=="")&&i.push(r.trim()),i}};var Ao=Mt;Mt.default=Mt;let No=We,hu=Ao,gi=class extends No{get selectors(){return hu.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)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var ir=gi;gi.default=gi;No.registerRule(gi);let fu=er,du=Ii,pu=Oi,mu=Di,gu=Co,yu=Pt,wu=ir;function Rt(s,e){if(Array.isArray(s))return s.map(o=>Rt(o));let r=s,{inputs:t}=r,i=ht(r,["inputs"]);if(t){e=[];for(let o of t){let l=oe(P({},o),{__proto__:mu.prototype});l.map&&(l.map=oe(P({},l.map),{__proto__:gu.prototype})),e.push(l)}}if(i.nodes&&(i.nodes=s.nodes.map(o=>Rt(o,e))),i.source){let n=i.source,{inputId:o}=n,l=ht(n,["inputId"]);i.source=l,o!=null&&(i.source.input=e[o])}if(i.type==="root")return new yu(i);if(i.type==="decl")return new pu(i);if(i.type==="rule")return new wu(i);if(i.type==="comment")return new du(i);if(i.type==="atrule")return new fu(i);throw new Error("Unknown node type: "+s.type)}var vu=Rt;Rt.default=Rt;let{dirname:ai,relative:Mo,resolve:Ro,sep:Io}=be,{SourceMapConsumer:Oo,SourceMapGenerator:ui}=be,{pathToFileURL:Ur}=be,bu=Di,Cu=!!(Oo&&ui),Su=!!(ai&&Ro&&Mo&&Io),Eu=class{constructor(e,t,i,r){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
|
|
34
25
|
`;this.css.includes(`\r
|
|
35
26
|
`)&&(t=`\r
|
|
36
|
-
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||
|
|
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?(
|
|
38
|
-
`.charCodeAt(0),ct=" ".charCodeAt(0),Ut="\f".charCodeAt(0),zt=" ".charCodeAt(0),Vt="\r".charCodeAt(0),pu="[".charCodeAt(0),du="]".charCodeAt(0),mu="(".charCodeAt(0),gu=")".charCodeAt(0),yu="{".charCodeAt(0),wu="}".charCodeAt(0),vu=";".charCodeAt(0),bu="*".charCodeAt(0),Cu=":".charCodeAt(0),Su="@".charCodeAt(0),Wt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Gt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Eu=/.[\r\n"'(/\\]/,Bs=/[\da-f]/i;var Au=function(e,t={}){let i=e.css.valueOf(),s=t.ignoreErrors,o,n,l,a,u,c,h,f,m,g,E=i.length,p=0,d=[],w=[];function v(){return p}function A(x){throw e.error("Unclosed "+x,p)}function M(){return w.length===0&&p>=E}function O(x){if(w.length)return w.pop();if(p>=E)return;let V=x?x.ignoreUnclosed:!1;switch(o=i.charCodeAt(p),o){case Bt:case ct:case zt:case Vt:case Ut:{n=p;do n+=1,o=i.charCodeAt(n);while(o===ct||o===Bt||o===zt||o===Vt||o===Ut);g=["space",i.slice(p,n)],p=n-1;break}case pu:case du:case yu:case wu:case Cu:case vu:case gu:{let W=String.fromCharCode(o);g=[W,W,p];break}case mu:{if(f=d.length?d.pop()[1]:"",m=i.charCodeAt(p+1),f==="url"&&m!==Wi&&m!==$s&&m!==ct&&m!==Bt&&m!==zt&&m!==Ut&&m!==Vt){n=p;do{if(c=!1,n=i.indexOf(")",n+1),n===-1)if(s||V){n=p;break}else A("bracket");for(h=n;i.charCodeAt(h-1)===Ft;)h-=1,c=!c}while(c);g=["brackets",i.slice(p,n+1),p,n],p=n}else n=i.indexOf(")",p+1),a=i.slice(p,n+1),n===-1||Eu.test(a)?g=["(","(",p]:(g=["brackets",a,p,n],p=n);break}case Wi:case $s:{l=o===Wi?"'":'"',n=p;do{if(c=!1,n=i.indexOf(l,n+1),n===-1)if(s||V){n=p+1;break}else A("string");for(h=n;i.charCodeAt(h-1)===Ft;)h-=1,c=!c}while(c);g=["string",i.slice(p,n+1),p,n],p=n;break}case Su:{Wt.lastIndex=p+1,Wt.test(i),Wt.lastIndex===0?n=i.length-1:n=Wt.lastIndex-2,g=["at-word",i.slice(p,n+1),p,n],p=n;break}case Ft:{for(n=p,u=!0;i.charCodeAt(n+1)===Ft;)n+=1,u=!u;if(o=i.charCodeAt(n+1),u&&o!==Fs&&o!==ct&&o!==Bt&&o!==zt&&o!==Vt&&o!==Ut&&(n+=1,Bs.test(i.charAt(n)))){for(;Bs.test(i.charAt(n+1));)n+=1;i.charCodeAt(n+1)===ct&&(n+=1)}g=["word",i.slice(p,n+1),p,n],p=n;break}default:{o===Fs&&i.charCodeAt(p+1)===bu?(n=i.indexOf("*/",p+2)+1,n===0&&(s||V?n=i.length:A("comment")),g=["comment",i.slice(p,n+1),p,n],p=n):(Gt.lastIndex=p+1,Gt.test(i),Gt.lastIndex===0?n=i.length-1:n=Gt.lastIndex-2,g=["word",i.slice(p,n+1),p,n],d.push(g),p=n);break}}return p++,g}function B(x){w.push(x)}return{back:B,endOfFile:M,nextToken:O,position:v}};let Eo=ze,pi=class extends Eo{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 Qr=pi;pi.default=pi;Eo.registerAtRule(pi);let Ao=ze,xo,Ro,et=class extends Ao{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 xo(new Ro,this,e).stringify()}};et.registerLazyResult=r=>{xo=r};et.registerProcessor=r=>{Ro=r};var Dt=et;et.default=et;Ao.registerRoot(et);let Et={comma(r){return Et.split(r,[","],!0)},space(r){let e=[" ",`
|
|
39
|
-
`," "];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 No=Et;Et.default=Et;let Mo=ze,xu=No,di=class extends Mo{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return xu.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 qr=di;di.default=di;Mo.registerRule(di);let Ru=Ni,Nu=Au,Mu=Ii,Iu=Qr,Ou=Dt,Us=qr;const zs={empty:!0,space:!0};function Du(r){for(let e=r.length-1;e>=0;e--){let t=r[e],i=t[3]||t[2];if(i)return i}}let _u=class{constructor(e){this.input=e,this.root=new Ou,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 Iu;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 Mu;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=Nu(this.input)}decl(e,t){let i=new Ru;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]||Du(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 m=c[f][0];if(h.trim().indexOf("!")===0&&m!=="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 Us;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",!zs[h]&&!zs[c]?a.slice(-1)===","?u=!1:a+=o[1]:u=!1):a+=o[1];if(!u){let f=i.reduce((m,g)=>m+g[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new Us;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 Tu=_u;let ku=ze,Pu=Tu,Lu=Mi;function mi(r,e){let t=new Lu(r,e),i=new Pu(t);try{i.parse()}catch(s){throw s}return i.root}var es=mi;mi.default=mi;ku.registerParse(mi);let{isClean:Ae,my:$u}=Ot,Fu=uo,Bu=xi,Uu=ze,zu=Jr;let Vs=Kr,Vu=es,Wu=Dt;const Gu={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ju={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},Yu={Once:!0,postcssPlugin:!0,prepare:!0},tt=0;function ht(r){return typeof r=="object"&&typeof r.then=="function"}function Io(r){let e=!1,t=Gu[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 Ws(r){let e;return r.type==="document"?e=["Document",tt,"DocumentExit"]:r.type==="root"?e=["Root",tt,"RootExit"]:e=Io(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function gr(r){return r[Ae]=!1,r.nodes&&r.nodes.forEach(e=>gr(e)),r}let yr={},it=class Oo{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=gr(t);else if(t instanceof Oo||t instanceof Vs)s=gr(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=Vu;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[$u]&&Uu.rebuild(s)}this.result=new Vs(e,s,i),this.helpers=oe(T({},yr),{postcss:yr,result:this.result}),this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?T(T({},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(!ju[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Yu[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(ht(i))try{await i}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ae];){e[Ae]=!0;let t=[Ws(e)];for(;t.length>0;){let i=this.visitTick(t);if(ht(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 ht(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=Bu;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new Fu(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(ht(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ae];)e[Ae]=!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(ht(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[Ae]){l[Ae]=!0,e.push(Ws(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[Ae]=!0,t.iterator=i.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[Ae]=!0;let t=Io(e);for(let i of t)if(i===tt)e.nodes&&e.each(s=>{s[Ae]||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=>{yr=r};var Do=it;it.default=it;Wu.registerLazyResult(it);zu.registerLazyResult(it);let Zu=uo,Hu=xi;let Xu=es;const Ju=Kr;let wr=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=Hu;this.result=new Ju(this._processor,s,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let l=new Zu(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=Xu;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 Ku=wr;wr.default=wr;let Qu=Ku,qu=Do,ec=Jr,tc=Dt,At=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 Qu(this,e,t):new qu(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var ic=At;At.default=At;tc.registerProcessor(At);ec.registerProcessor(At);let rc=Ni,sc=so,nc=Ii,oc=Qr,lc=Mi,ac=Dt,uc=qr;function xt(r,e){if(Array.isArray(r))return r.map(n=>xt(n));let s=r,{inputs:t}=s,i=ut(s,["inputs"]);if(t){e=[];for(let n of t){let l=oe(T({},n),{__proto__:lc.prototype});l.map&&(l.map=oe(T({},l.map),{__proto__:sc.prototype})),e.push(l)}}if(i.nodes&&(i.nodes=r.nodes.map(n=>xt(n,e))),i.source){let o=i.source,{inputId:n}=o,l=ut(o,["inputId"]);i.source=l,n!=null&&(i.source.input=e[n])}if(i.type==="root")return new ac(i);if(i.type==="decl")return new rc(i);if(i.type==="rule")return new uc(i);if(i.type==="comment")return new nc(i);if(i.type==="atrule")return new oc(i);throw new Error("Unknown node type: "+r.type)}var cc=xt;xt.default=xt;let hc=Zr,_o=Ni,fc=Do,pc=ze,ts=ic,dc=xi,mc=cc,To=Jr,gc=So,ko=Ii,Po=Qr,yc=Kr,wc=Mi,vc=es,bc=No,Lo=qr,$o=Dt,Cc=Ri;function $(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new ts(r)}$.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:
|
|
27
|
+
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||ai(e.file),r;this.mapOpts.sourcesContent===!1?(r=new Oo(e.text),r.sourcesContent&&(r.sourcesContent=null)):r=e.consumer(),this.map.applySourceMap(r,t,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Su&&Cu&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=ui.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ui({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 ui({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,i="<no source>",r={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,o;this.stringify(this.root,(l,a,u)=>{if(this.css+=l,a&&u!=="end"&&(r.generated.line=e,r.generated.column=t-1,a.source&&a.source.start?(r.source=this.sourcePath(a),r.original.line=a.source.start.line,r.original.column=a.source.start.column-1,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,this.map.addMapping(r))),o=l.match(/\n/g),o?(e+=o.length,n=l.lastIndexOf(`
|
|
28
|
+
`),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?(r.source=this.sourcePath(a),r.original.line=a.source.end.line,r.original.column=a.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0: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?ai(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=ai(Ro(i,this.mapOpts.annotation)));let r=Mo(i,e);return this.memoizedPaths.set(e,r),r}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 bu(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 r=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(r,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(Ur){let i=Ur(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;Io==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var Do=Eu;const ji="'".charCodeAt(0),zr='"'.charCodeAt(0),zt="\\".charCodeAt(0),Vr="/".charCodeAt(0),Vt=`
|
|
29
|
+
`.charCodeAt(0),dt=" ".charCodeAt(0),Wt="\f".charCodeAt(0),Gt=" ".charCodeAt(0),Yt="\r".charCodeAt(0),xu="[".charCodeAt(0),Au="]".charCodeAt(0),Nu="(".charCodeAt(0),Mu=")".charCodeAt(0),Ru="{".charCodeAt(0),Iu="}".charCodeAt(0),Ou=";".charCodeAt(0),Du="*".charCodeAt(0),_u=":".charCodeAt(0),Tu="@".charCodeAt(0),jt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Zt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ku=/.[\r\n"'(/\\]/,Wr=/[\da-f]/i;var Pu=function(e,t={}){let i=e.css.valueOf(),r=t.ignoreErrors,n,o,l,a,u,c,h,f,p,y,b=i.length,d=0,m=[],w=[];function v(){return d}function x(A){throw e.error("Unclosed "+A,d)}function R(){return w.length===0&&d>=b}function _(A){if(w.length)return w.pop();if(d>=b)return;let G=A?A.ignoreUnclosed:!1;switch(n=i.charCodeAt(d),n){case Vt:case dt:case Gt:case Yt:case Wt:{a=d;do a+=1,n=i.charCodeAt(a);while(n===dt||n===Vt||n===Gt||n===Yt||n===Wt);c=["space",i.slice(d,a)],d=a-1;break}case xu:case Au:case Ru:case Iu:case _u:case Ou:case Mu:{let Y=String.fromCharCode(n);c=[Y,Y,d];break}case Nu:{if(y=m.length?m.pop()[1]:"",p=i.charCodeAt(d+1),y==="url"&&p!==ji&&p!==zr&&p!==dt&&p!==Vt&&p!==Gt&&p!==Wt&&p!==Yt){a=d;do{if(h=!1,a=i.indexOf(")",a+1),a===-1)if(r||G){a=d;break}else x("bracket");for(f=a;i.charCodeAt(f-1)===zt;)f-=1,h=!h}while(h);c=["brackets",i.slice(d,a+1),d,a],d=a}else a=i.indexOf(")",d+1),o=i.slice(d,a+1),a===-1||ku.test(o)?c=["(","(",d]:(c=["brackets",o,d,a],d=a);break}case ji:case zr:{u=n===ji?"'":'"',a=d;do{if(h=!1,a=i.indexOf(u,a+1),a===-1)if(r||G){a=d+1;break}else x("string");for(f=a;i.charCodeAt(f-1)===zt;)f-=1,h=!h}while(h);c=["string",i.slice(d,a+1),d,a],d=a;break}case Tu:{jt.lastIndex=d+1,jt.test(i),jt.lastIndex===0?a=i.length-1:a=jt.lastIndex-2,c=["at-word",i.slice(d,a+1),d,a],d=a;break}case zt:{for(a=d,l=!0;i.charCodeAt(a+1)===zt;)a+=1,l=!l;if(n=i.charCodeAt(a+1),l&&n!==Vr&&n!==dt&&n!==Vt&&n!==Gt&&n!==Yt&&n!==Wt&&(a+=1,Wr.test(i.charAt(a)))){for(;Wr.test(i.charAt(a+1));)a+=1;i.charCodeAt(a+1)===dt&&(a+=1)}c=["word",i.slice(d,a+1),d,a],d=a;break}default:{n===Vr&&i.charCodeAt(d+1)===Du?(a=i.indexOf("*/",d+2)+1,a===0&&(r||G?a=i.length:x("comment")),c=["comment",i.slice(d,a+1),d,a],d=a):(Zt.lastIndex=d+1,Zt.test(i),Zt.lastIndex===0?a=i.length-1:a=Zt.lastIndex-2,c=["word",i.slice(d,a+1),d,a],m.push(c),d=a);break}}return d++,c}function z(A){w.push(A)}return{back:z,endOfFile:R,nextToken:_,position:v}};let Lu=er,$u=Ii,Fu=Oi,Bu=Pt,Gr=ir,Uu=Pu;const Yr={empty:!0,space:!0};function zu(s){for(let e=s.length-1;e>=0;e--){let t=s[e],i=t[3]||t[2];if(i)return i}}let Vu=class{constructor(e){this.input=e,this.root=new Bu,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 Lu;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,r,n,o=!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(n=a.length-1,r=a[n];r&&r[0]==="space";)r=a[--n];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(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,r;for(let n=t-1;n>=0&&(r=e[n],!(r[0]!=="space"&&(i+=1,i===2)));n--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(e){let t=0,i,r,n;for(let[o,l]of e.entries()){if(r=l,n=r[0],n==="("&&(t+=1),n===")"&&(t-=1),t===0&&n===":")if(!i)this.doubleColon(r);else{if(i[0]==="word"&&i[1]==="progid")continue;return o}i=r}return!1}comment(e){let t=new $u;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 r=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}createTokenizer(){this.tokenizer=Uu(this.input)}decl(e,t){let i=new Fu;this.init(i,e[0][2]);let r=e[e.length-1];for(r[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(r[3]||r[2]||zu(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 n;for(;e.length;)if(n=e.shift(),n[0]===":"){i.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),i.raws.between+=n[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let o=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(n=e[u],n[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(n[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let f=u;f>0;f--){let p=c[f][0];if(h.trim().startsWith("!")&&p!=="space")break;h=c.pop()[1]+h}h.trim().startsWith("!")&&(i.important=!0,i.raws.important=h,e=c)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(i.raws.between+=o.map(u=>u[1]).join(""),o=[]),this.raw(i,"value",o.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 Gr;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,i=null,r=!1,n=null,o=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(i=u[0],a.push(u),i==="("||i==="[")n||(n=u),o.push(i==="("?")":"]");else if(l&&r&&i==="{")n||(n=u),o.push("}");else if(o.length===0)if(i===";")if(r){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===":"&&(r=!0);else i===o[o.length-1]&&(o.pop(),o.length===0&&(n=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&r){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,r){let n,o,l=i.length,a="",u=!0,c,h;for(let f=0;f<l;f+=1)n=i[f],o=n[0],o==="space"&&f===l-1&&!r?u=!1:o==="comment"?(h=i[f-1]?i[f-1][0]:"empty",c=i[f+1]?i[f+1][0]:"empty",!Yr[h]&&!Yr[c]?a.slice(-1)===","?u=!1:a+=n[1]:u=!1):a+=n[1];if(!u){let f=i.reduce((p,y)=>p+y[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new Gr;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 r=t;r<e.length;r++)i+=e[r][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 "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Wu=Vu;let Gu=We,Yu=Di,ju=Wu;function yi(s,e){let t=new Yu(s,e),i=new ju(t);try{i.parse()}catch(r){throw r}return i.root}var sr=yi;yi.default=yi;Gu.registerParse(yi);let ws=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 _o=ws;ws.default=ws;let Zu=_o,vs=class{get content(){return this.css}constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new Zu(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}};var rr=vs;vs.default=vs;let Hu=We,Xu=tr,Ju=Do,Ku=sr,jr=rr,Qu=Pt,qu=Mi,{isClean:xe,my:ec}=kt;const tc={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ic={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},sc={Once:!0,postcssPlugin:!0,prepare:!0},st=0;function pt(s){return typeof s=="object"&&typeof s.then=="function"}function To(s){let e=!1,t=tc[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,st,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,st,t+"Exit"]:[t,t+"Exit"]}function Zr(s){let e;return s.type==="document"?e=["Document",st,"DocumentExit"]:s.type==="root"?e=["Root",st,"RootExit"]:e=To(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function bs(s){return s[xe]=!1,s.nodes&&s.nodes.forEach(e=>bs(e)),s}let Cs={},rt=class ko{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,i){this.stringified=!1,this.processed=!1;let r;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))r=bs(t);else if(t instanceof ko||t instanceof jr)r=bs(t.root),t.map&&(typeof i.map=="undefined"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let n=Ku;i.syntax&&(n=i.syntax.parse),i.parser&&(n=i.parser),n.parse&&(n=n.parse);try{r=n(t,i)}catch(o){this.processed=!0,this.error=o}r&&!r[ec]&&Hu.rebuild(r)}this.result=new jr(e,r,i),this.helpers=oe(P({},Cs),{postcss:Cs,result:this.result}),this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?P(P({},n),n.prepare(this.result)):n)}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(r){console&&console.error&&console.error(r)}return e}prepareVisitors(){this.listeners={};let e=(t,i,r)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,r])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!ic[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!sc[i])if(typeof t[i]=="object")for(let r in t[i])r==="*"?e(t,i,t[i][r]):e(t,i+"-"+r.toLowerCase(),t[i][r]);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(pt(i))try{await i}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[xe];){e[xe]=!0;let t=[Zr(e)];for(;t.length>0;){let i=this.visitTick(t);if(pt(i))try{await i}catch(r){let n=t[t.length-1].node;throw this.handleError(r,n)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let r=e.nodes.map(n=>i(n,this.helpers));await Promise.all(r)}else await i(e,this.helpers)}catch(r){throw this.handleError(r)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(i=>e.Once(i,this.helpers));return pt(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=qu;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new Ju(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(pt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[xe];)e[xe]=!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,r]of e){this.result.lastPlugin=i;let n;try{n=r(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(pt(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:r}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[o,l]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(i.toProxy(),this.helpers)}catch(a){throw this.handleError(a,i)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=i.nodes[i.indexes[o]];)if(i.indexes[o]+=1,!l[xe]){l[xe]=!0,e.push(Zr(l));return}t.iterator=0,delete i.indexes[o]}let n=t.events;for(;t.eventIndex<n.length;){let o=n[t.eventIndex];if(t.eventIndex+=1,o===st){i.nodes&&i.nodes.length&&(i[xe]=!0,t.iterator=i.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[xe]=!0;let t=To(e);for(let i of t)if(i===st)e.nodes&&e.each(r=>{r[xe]||this.walkSync(r)});else{let r=this.listeners[i];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}};rt.registerPostcss=s=>{Cs=s};var Po=rt;rt.default=rt;Qu.registerLazyResult(rt);Xu.registerLazyResult(rt);let rc=Do,nc=sr;const oc=rr;let lc=Mi;let Ss=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=nc;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"}constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let r,n=lc;this.result=new oc(this._processor,r,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new rc(n,r,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[]}};var ac=Ss;Ss.default=Ss;let uc=tr,cc=Po,hc=ac,fc=Pt,It=class{constructor(e=[]){this.version="8.5.6",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 hc(this,e,t):new cc(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var dc=It;It.default=It;fc.registerProcessor(It);uc.registerProcessor(It);let Lo=er,$o=Ii,pc=We,mc=Ks,Fo=Oi,Bo=tr,gc=vu,yc=Di,wc=Po,vc=Ao,bc=Ri,Cc=sr,nr=dc,Sc=rr,Uo=Pt,zo=ir,Ec=Mi,xc=_o;function B(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new nr(s)}B.plugin=function(e,t){let i=!1;function r(...o){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
40
30
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
41
|
-
https://www.w3ctech.com/topic/2226`));let l=t(...n);return l.postcssPlugin=e,l.postcssVersion=new ts().version,l}let o;return Object.defineProperty(s,"postcss",{get(){return o||(o=s()),o}}),s.process=function(n,l,a){return $([s(a)]).process(n,l)},s};$.stringify=dc;$.parse=vc;$.fromJSON=mc;$.list=bc;$.comment=r=>new ko(r);$.atRule=r=>new Po(r);$.decl=r=>new _o(r);$.rule=r=>new Lo(r);$.root=r=>new $o(r);$.document=r=>new To(r);$.CssSyntaxError=hc;$.Declaration=_o;$.Container=pc;$.Processor=ts;$.Document=To;$.Comment=ko;$.Warning=gc;$.AtRule=Po;$.Result=yc;$.Input=wc;$.Rule=Lo;$.Root=$o;$.Node=Cc;fc.registerPostcss($);var Sc=$;$.default=$;const H=ka(Sc);H.stringify;H.fromJSON;H.plugin;H.parse;H.list;H.document;H.comment;H.atRule;H.rule;H.decl;H.root;H.CssSyntaxError;H.Declaration;H.Container;H.Processor;H.Document;H.Comment;H.Warning;H.AtRule;H.Result;H.Input;H.Rule;H.Root;H.Node;const Gs={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 Ec(r){let e=Gs[r.tagName]?Gs[r.tagName]:r.tagName;return e==="link"&&r.attributes._cssText&&(e="style"),e}function Oi(r,e){const t=e==null?void 0:e.stylesWithHoverClass.get(r);if(t)return t;let i=r;try{i=H([Da,_a,Ta]).process(r).css}catch(s){console.warn("Failed to adapt css for replay",s)}return e==null||e.stylesWithHoverClass.set(r,i),i}function js(){return{stylesWithHoverClass:new Map}}function Ac(r,e,t,i){const s=[];for(const a of r.childNodes)a.type===q.Text&&s.push(a);const o=e.split("/* rr_split */");for(;o.length>1&&o.length>s.length;)o.splice(-2,2,o.slice(-2).join(""));let n="";t&&(n=Oi(o.join(""),i));let l=0;for(let a=0;a<s.length&&a!==o.length;a++){const u=s[a];if(!t)u.textContent=o[a];else if(a<o.length-1){let c=l,h=o[a+1].length;h=Math.min(h,30);let f=!1;for(;h>2;h--){const m=o[a+1].substring(0,h),g=n.substring(l).indexOf(m);if(f=g!==-1,f){c+=g;break}}f||(c+=o[a].length),u.textContent=n.substring(l,c),l=c}else u.textContent=n.substring(l)}}function xc(r,e,t,i){const{doc:s,hackCss:o,cache:n}=i;r.childNodes.length?Ac(r,t,o,n):(o&&(t=Oi(t,n)),e.appendChild(s.createTextNode(t)))}function Rc(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=Ec(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)&&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"){xc(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.as==="script"||r.attributes.rel==="modulepreload")||n==="link"&&r.attributes.rel==="prefetch"&&typeof r.attributes.href=="string"&&xa(r.attributes.href)==="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_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(Oi(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 wt(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(Aa(c,r))return i.getNode(r.id)}let a=Rc(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=wt(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&&Sa(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(m=>{m.nodeName==="BODY"&&(f=m)}),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 Nc(r,e){function t(i){e(i)}for(const i of r.getIds())r.has(i)&&t(r.getNode(i))}function Mc(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 Ic(r,e){const{doc:t,onVisit:i,hackCss:s=!0,afterAppend:o,cache:n,mirror:l=new Qn}=e,a=wt(r,{doc:t,mirror:l,skipChild:!1,hackCss:s,afterAppend:o,cache:n});return Nc(l,u=>{i&&i(u),Mc(u,l)}),a}var Oc=Object.defineProperty,Dc=(r,e,t)=>e in r?Oc(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,C=(r,e,t)=>Dc(r,typeof e!="symbol"?e+"":e,t),_c=Object.defineProperty,Tc=(r,e,t)=>e in r?_c(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Ys=(r,e,t)=>Tc(r,typeof e!="symbol"?e+"":e,t);let kc=class{constructor(){Ys(this,"idNodeMap",new Map),Ys(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 Pc(){return new kc}const Lc=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],$c=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],Fo=new WeakSet,Fc=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(r,e,t){if(Fc.call(this,r,e,t),this instanceof Element){const i=r.toLowerCase();Lc.includes(i)&&Fo.add(this)}};const Bc=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(r,e,t){Bc.call(this,r,e,t)};function Zs(){document.querySelectorAll("*").forEach(e=>{$c.forEach(t=>{e.hasAttribute(t)&&Fo.add(e)})})}try{document.readyState==="complete"||document.readyState==="interactive"?Zs():document.addEventListener("DOMContentLoaded",Zs)}catch(r){}function Uc(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function zc(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 is={exports:{}},Y=String,Bo=function(){return{isColorSupported:!1,reset:Y,bold:Y,dim:Y,italic:Y,underline:Y,inverse:Y,hidden:Y,strikethrough:Y,black:Y,red:Y,green:Y,yellow:Y,blue:Y,magenta:Y,cyan:Y,white:Y,gray:Y,bgBlack:Y,bgRed:Y,bgGreen:Y,bgYellow:Y,bgBlue:Y,bgMagenta:Y,bgCyan:Y,bgWhite:Y}};is.exports=Bo();is.exports.createColors=Bo;var Vc=is.exports;const Wc={},Gc=Object.freeze(Object.defineProperty({__proto__:null,default:Wc},Symbol.toStringTag,{value:"Module"})),Ce=zc(Gc);let Hs=Vc,Xs=Ce,vr=class Uo 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,Uo)}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=Hs.isColorSupported),Xs&&e&&(t=Xs(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}=Hs.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 m=a(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(f)+u+`
|
|
42
|
-
`+
|
|
31
|
+
https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new nr().version,l}let n;return Object.defineProperty(r,"postcss",{get(){return n||(n=r()),n}}),r.process=function(o,l,a){return B([r(a)]).process(o,l)},r};B.stringify=Ec;B.parse=Cc;B.fromJSON=gc;B.list=vc;B.comment=s=>new $o(s);B.atRule=s=>new Lo(s);B.decl=s=>new Fo(s);B.rule=s=>new zo(s);B.root=s=>new Uo(s);B.document=s=>new Bo(s);B.CssSyntaxError=mc;B.Declaration=Fo;B.Container=pc;B.Processor=nr;B.Document=Bo;B.Comment=$o;B.Warning=xc;B.AtRule=Lo;B.Result=Sc;B.Input=yc;B.Rule=zo;B.Root=Uo;B.Node=bc;wc.registerPostcss(B);var Ac=B;B.default=B;const H=Fa(Ac);H.stringify;H.fromJSON;H.plugin;H.parse;H.list;H.document;H.comment;H.atRule;H.rule;H.decl;H.root;H.CssSyntaxError;H.Declaration;H.Container;H.Processor;H.Document;H.Comment;H.Warning;H.AtRule;H.Result;H.Input;H.Rule;H.Root;H.Node;const Hr={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 Nc(s){let e=Hr[s.tagName]?Hr[s.tagName]:s.tagName;return e==="link"&&s.attributes._cssText&&(e="style"),e}function _i(s,e){const t=e==null?void 0:e.stylesWithHoverClass.get(s);if(t)return t;let i=s;try{i=H([Pa,La,$a]).process(s).css}catch(r){console.warn("Failed to adapt css for replay",r)}return e==null||e.stylesWithHoverClass.set(s,i),i}function Xr(){return{stylesWithHoverClass:new Map}}function Mc(s,e,t,i){const r=[];for(const a of s.childNodes)a.type===q.Text&&r.push(a);const n=e.split("/* rr_split */");for(;n.length>1&&n.length>r.length;)n.splice(-2,2,n.slice(-2).join(""));let o="";t&&(o=_i(n.join(""),i));let l=0;for(let a=0;a<r.length&&a!==n.length;a++){const u=r[a];if(!t)u.textContent=n[a];else if(a<n.length-1){let c=l,h=n[a+1].length;h=Math.min(h,30);let f=!1;for(;h>2;h--){const p=n[a+1].substring(0,h),y=o.substring(l).indexOf(p);if(f=y!==-1,f){c+=y;break}}f||(c+=n[a].length),u.textContent=o.substring(l,c),l=c}else u.textContent=o.substring(l)}}function Rc(s,e,t,i){const{doc:r,hackCss:n,cache:o}=i;s.childNodes.length?Mc(s,t,n,o):(n&&(t=_i(t,o)),e.appendChild(r.createTextNode(t)))}function Ic(s,e){var t;const{doc:i,hackCss:r,cache:n}=e;switch(s.type){case q.Document:return i.implementation.createDocument(null,"",null);case q.DocumentType:return i.implementation.createDocumentType(s.name||"html",s.publicId,s.systemId);case q.Element:{const o=Nc(s);let l;s.isSVG?l=i.createElementNS("http://www.w3.org/2000/svg",o):(s.isCustom&&((t=i.defaultView)!=null&&t.customElements)&&!i.defaultView.customElements.get(s.tagName)&&i.defaultView.customElements.define(s.tagName,class extends i.defaultView.HTMLElement{}),l=i.createElement(o));const a={};for(const u in s.attributes){if(!Object.prototype.hasOwnProperty.call(s.attributes,u))continue;let c=s.attributes[u];if(!(o==="option"&&u==="selected"&&c===!1)&&c!==null){if(c===!0&&(c=""),u.startsWith("rr_")){a[u]=c;continue}if(typeof c=="string"){if(o==="style"&&u==="_cssText"){Rc(s,l,c,e);continue}else if(o==="textarea"&&u==="value"){l.appendChild(i.createTextNode(c)),s.childNodes=[];continue}}try{if(s.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(o==="meta"&&s.attributes["http-equiv"]==="Content-Security-Policy"&&u==="content"){l.setAttribute("csp-content",c.toString());continue}else o==="link"&&(s.attributes.rel==="preload"&&s.attributes.as==="script"||s.attributes.rel==="modulepreload")||o==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&Ia(s.attributes.href)==="js"||(o==="img"&&s.attributes.srcset&&s.attributes.rr_dataURL?l.setAttribute("rrweb-original-srcset",s.attributes.srcset):l.setAttribute(u,c.toString()))}catch(h){}}}for(const u in a){const c=a[u];if(o==="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(o==="img"&&u==="rr_dataURL"){const h=l;h.currentSrc.startsWith("data:")||(h.setAttribute("rrweb-original-src",s.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_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(s.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 s.isStyle&&r?i.createTextNode(_i(s.textContent,n)):i.createTextNode(s.textContent);case q.CDATA:return i.createCDATASection(s.textContent);case q.Comment:return i.createComment(s.textContent);default:return null}}function St(s,e){const{doc:t,mirror:i,skipChild:r=!1,hackCss:n=!0,afterAppend:o,cache:l}=e;if(i.has(s.id)){const u=i.getNode(s.id),c=i.getMeta(u);if(Ra(c,s))return i.getNode(s.id)}let a=Ic(s,{doc:t,hackCss:n,cache:l});if(!a)return null;if(s.rootId&&i.getNode(s.rootId)!==t&&i.replace(s.rootId,t),s.type===q.Document&&(t.close(),t.open(),s.compatMode==="BackCompat"&&s.childNodes&&s.childNodes[0].type!==q.DocumentType&&(s.childNodes[0].type===q.Element&&"xmlns"in s.childNodes[0].attributes&&s.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,s),(s.type===q.Document||s.type===q.Element)&&!r)for(const u of s.childNodes){const c=St(u,{doc:t,mirror:i,skipChild:!1,hackCss:n,afterAppend:o,cache:l});if(!c){console.warn("Failed to rebuild",u);continue}if(u.isShadow&&Na(a)&&a.shadowRoot)a.shadowRoot.appendChild(c);else if(s.type===q.Document&&u.type==q.Element){const h=c;let f=null;h.childNodes.forEach(p=>{p.nodeName==="BODY"&&(f=p)}),f?(h.removeChild(f),a.appendChild(c),h.appendChild(f)):a.appendChild(c)}else a.appendChild(c);o&&o(c,u.id)}return a}function Oc(s,e){function t(i){e(i)}for(const i of s.getIds())s.has(i)&&t(s.getNode(i))}function Dc(s,e){const t=e.getMeta(s);if((t==null?void 0:t.type)!==q.Element)return;const i=s;for(const r in t.attributes){if(!(Object.prototype.hasOwnProperty.call(t.attributes,r)&&r.startsWith("rr_")))continue;const n=t.attributes[r];r==="rr_scrollLeft"&&(i.scrollLeft=n),r==="rr_scrollTop"&&(i.scrollTop=n)}}function _c(s,e){const{doc:t,onVisit:i,hackCss:r=!0,afterAppend:n,cache:o,mirror:l=new io}=e,a=St(s,{doc:t,mirror:l,skipChild:!1,hackCss:r,afterAppend:n,cache:o});return Oc(l,u=>{i&&i(u),Dc(u,l)}),a}var Tc=Object.defineProperty,kc=(s,e,t)=>e in s?Tc(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,S=(s,e,t)=>kc(s,typeof e!="symbol"?e+"":e,t),Pc=Object.defineProperty,Lc=(s,e,t)=>e in s?Pc(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Zi=(s,e,t)=>Lc(s,typeof e!="symbol"?e+"":e,t);let $c=class{constructor(){Zi(this,"idNodeMap",new Map),Zi(this,"nodeMetaMap",new WeakMap),Zi(this,"selectorNodeMap",new Map)}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);const i=this.getMeta(e);if(i!=null&&i.selector){const r=this.selectorNodeMap.get(i.selector);r&&(r.delete(e),r.size===0&&this.selectorNodeMap.delete(i.selector))}e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const i=t.id;if(this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,t),t.selector){let r=this.selectorNodeMap.get(t.selector);r||(r=new Set,this.selectorNodeMap.set(t.selector,r)),r.add(e)}}replace(e,t){const i=this.getNode(e);if(i){const r=this.nodeMetaMap.get(i);if(r&&(this.nodeMetaMap.set(t,r),r.selector)){const n=this.selectorNodeMap.get(r.selector);n&&(n.delete(i),n.add(t))}}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap,this.selectorNodeMap=new Map}getNodeBySelector(e){const t=this.selectorNodeMap.get(e);return!t||t.size===0?null:t.values().next().value||null}getNodesBySelector(e){const t=this.selectorNodeMap.get(e);return t?Array.from(t):[]}hasSelector(e){const t=this.selectorNodeMap.get(e);return t!==void 0&&t.size>0}};function Fc(){return new $c}const Bc=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],Uc=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],Vo=new WeakSet,zc=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(s,e,t){if(zc.call(this,s,e,t),this instanceof Element){const i=s.toLowerCase();Bc.includes(i)&&Vo.add(this)}};const Vc=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(s,e,t){Vc.call(this,s,e,t)};function Jr(){document.querySelectorAll("*").forEach(e=>{Uc.forEach(t=>{e.hasAttribute(t)&&Vo.add(e)})})}try{document.readyState==="complete"||document.readyState==="interactive"?Jr():document.addEventListener("DOMContentLoaded",Jr)}catch(s){}function Wc(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Gc(s){if(s.__esModule)return s;var e=s.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(s).forEach(function(i){var r=Object.getOwnPropertyDescriptor(s,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return s[i]}})}),t}var or={exports:{}},O=String,Wo=function(){return{isColorSupported:!1,reset:O,bold:O,dim:O,italic:O,underline:O,inverse:O,hidden:O,strikethrough:O,black:O,red:O,green:O,yellow:O,blue:O,magenta:O,cyan:O,white:O,gray:O,bgBlack:O,bgRed:O,bgGreen:O,bgYellow:O,bgBlue:O,bgMagenta:O,bgCyan:O,bgWhite:O,blackBright:O,redBright:O,greenBright:O,yellowBright:O,blueBright:O,magentaBright:O,cyanBright:O,whiteBright:O,bgBlackBright:O,bgRedBright:O,bgGreenBright:O,bgYellowBright:O,bgBlueBright:O,bgMagentaBright:O,bgCyanBright:O,bgWhiteBright:O}};or.exports=Wo();or.exports.createColors=Wo;var Yc=or.exports;const jc={},Zc=Object.freeze(Object.defineProperty({__proto__:null,default:jc},Symbol.toStringTag,{value:"Module"})),Ce=Gc(Zc);let Kr=Yc,Qr=Ce,Es=class Go extends Error{constructor(e,t,i,r,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),r&&(this.source=r),o&&(this.plugin=o),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,Go)}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=Kr.isColorSupported);let i=c=>c,r=c=>c,n=c=>c;if(e){let{bold:c,gray:h,red:f}=Kr.createColors(!0);r=p=>c(f(p)),i=p=>h(p),Qr&&(n=p=>Qr(p))}let o=t.split(/\r?\n/),l=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),u=String(a).length;return o.slice(l,a).map((c,h)=>{let f=l+1+h,p=" "+(" "+f).slice(-u)+" | ";if(f===this.line){if(c.length>160){let b=20,d=Math.max(0,this.column-b),m=Math.max(this.column+b,this.endColumn+b),w=c.slice(d,m),v=i(p.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,b-1)).replace(/[^\t]/g," ");return r(">")+i(p)+n(w)+`
|
|
32
|
+
`+v+r("^")}let y=i(p.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+i(p)+n(c)+`
|
|
33
|
+
`+y+r("^")}return" "+i(p)+n(c)}).join(`
|
|
43
34
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
44
35
|
|
|
45
36
|
`+e+`
|
|
46
|
-
`),this.name+": "+this.message+e}};var
|
|
37
|
+
`),this.name+": "+this.message+e}};var lr=Es;Es.default=Es;const qr={after:`
|
|
47
38
|
`,beforeClose:`
|
|
48
39
|
`,beforeComment:`
|
|
49
40
|
`,beforeDecl:`
|
|
50
41
|
`,beforeOpen:" ",beforeRule:`
|
|
51
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function
|
|
52
|
-
`)){let
|
|
53
|
-
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let i;return e.walkComments(
|
|
54
|
-
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i=="undefined"?i=this.raw(t,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,t){let i;return e.walkDecls(
|
|
42
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Hc(s){return s[0].toUpperCase()+s.slice(1)}let xs=class{constructor(e){this.builder=e}atrule(e,t){let i="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?i+=e.raws.afterName:r&&(i+=" "),e.nodes)this.block(e,i+r);else{let n=(e.raws.between||"")+(t?";":"");this.builder(i+r+n,e)}}beforeAfter(e,t){let i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):t==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");let r=e.parent,n=0;for(;r&&r.type!=="root";)n+=1,r=r.parent;if(i.includes(`
|
|
43
|
+
`)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<n;l++)i+=o}return i}block(e,t){let i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start");let r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let i=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let n=e.nodes[r],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,t!==r||i)}}comment(e){let t=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+i+"*/",e)}decl(e,t){let i=this.raw(e,"between","colon"),r=e.prop+i+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(e,t,i){let r;if(i||(i=t),t&&(r=e.raws[t],typeof r!="undefined"))return r;let n=e.parent;if(i==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return qr[i];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[i]!="undefined")return o.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);{let l="raw"+Hc(i);this[l]?r=this[l](o,e):o.walk(a=>{if(r=a.raws[t],typeof r!="undefined")return!1})}return typeof r=="undefined"&&(r=qr[i]),o.rawCache[i]=r,r}rawBeforeClose(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after!="undefined")return t=i.raws.after,t.includes(`
|
|
44
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let i;return e.walkComments(r=>{if(typeof r.raws.before!="undefined")return i=r.raws.before,i.includes(`
|
|
45
|
+
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i=="undefined"?i=this.raw(t,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,t){let i;return e.walkDecls(r=>{if(typeof r.raws.before!="undefined")return i=r.raws.before,i.includes(`
|
|
55
46
|
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i=="undefined"?i=this.raw(t,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(e){let t;return e.walk(i=>{if(i.type!=="decl"&&(t=i.raws.between,typeof t!="undefined"))return!1}),t}rawBeforeRule(e){let t;return e.walk(i=>{if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before!="undefined")return t=i.raws.before,t.includes(`
|
|
56
|
-
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(i=>{if(typeof i.raws.between!="undefined")return t=i.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(t=i.raws.after,typeof t!="undefined"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(i=>{let
|
|
57
|
-
`);return t=
|
|
58
|
-
`?(
|
|
59
|
-
`);i=new Array(o.length);let n=0;for(let l=0,a=o.length;l<a;l++)i[l]=n,n+=o[l].length+1;this[Yi]=i}t=i[i.length-1];let s=0;if(e>=t)s=i.length-1;else{let o=i.length-2,n;for(;s<o;)if(n=s+(o-s>>1),e<i[n])o=n-1;else if(e>=i[n+1])s=n+1;else{s=n;break}}return{col:e-i[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Nr(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,s){if(!this.map)return!1;let o=this.map.consumer(),n=o.originalPositionFor({column:t,line:e});if(!n.source)return!1;let l;typeof i=="number"&&(l=o.originalPositionFor({column:s,line:i}));let a;Rr(n.source)?a=Yt(n.source):a=new URL(n.source,this.map.consumer().sourceRoot||Yt(this.map.mapFile));let u={column:n.column,endColumn:l&&l.column,endLine:l&&l.line,line:n.line,url:a.toString()};if(a.protocol==="file:")if(qs)u.file=qs(a);else throw new Error("file: protocol is not available in this PostCSS build");let c=o.sourceContentFor(n.source);return c&&(u.source=c),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=T({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var ki=gi;gi.default=gi;ji&&ji.registerInput&&ji.registerInput(gi);let{SourceMapConsumer:Wo,SourceMapGenerator:ai}=Ce,{dirname:ui,relative:Go,resolve:jo,sep:Yo}=Ce,{pathToFileURL:rn}=Ce,hh=ki,fh=!!(Wo&&ai),ph=!!(ui&&jo&&Go&&Yo),dh=class{constructor(e,t,i,s){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
|
|
47
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(i=>{if(typeof i.raws.between!="undefined")return t=i.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(t=i.raws.after,typeof t!="undefined"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(i=>{let r=i.parent;if(r&&r!==e&&r.parent&&r.parent===e&&typeof i.raws.before!="undefined"){let n=i.raws.before.split(`
|
|
48
|
+
`);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(t=i.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let i=e[t],r=e.raws[t];return r&&r.value===i?r.raw:i}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Yo=xs;xs.default=xs;let Xc=Yo;function As(s,e){new Xc(e).stringify(s)}var Ti=As;As.default=As;var Lt={};Lt.isClean=Symbol("isClean");Lt.my=Symbol("my");let Jc=lr,Kc=Yo,Qc=Ti,{isClean:mt,my:qc}=Lt;function Ns(s,e){let t=new s.constructor;for(let i in s){if(!Object.prototype.hasOwnProperty.call(s,i)||i==="proxyCache")continue;let r=s[i],n=typeof r;i==="parent"&&n==="object"?e&&(t[i]=e):i==="source"?t[i]=r:Array.isArray(r)?t[i]=r.map(o=>Ns(o,t)):(n==="object"&&r!==null&&(r=Ns(r)),t[i]=r)}return t}function Ie(s,e){if(e&&typeof e.offset!="undefined")return e.offset;let t=1,i=1,r=0;for(let n=0;n<s.length;n++){if(i===e.line&&t===e.column){r=n;break}s[n]===`
|
|
49
|
+
`?(t=1,i+=1):t+=1}return r}let Ms=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[mt]=!1,this[qc]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let i of e[t])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Ns(this);for(let i in e)t[i]=e[i];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:i,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:i.column,line:i.line},t)}return new Jc(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[mt]=!0}markDirty(){if(this[mt]){this[mt]=!1;let e=this;for(;e=e.parent;)e[mt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let i="document"in this.source.input?this.source.input.document:this.source.input.css,n=i.slice(Ie(i,this.source.start),Ie(i,this.source.end)).indexOf(e.word);n!==-1&&(t=this.positionInside(n))}return t}positionInside(e){let t=this.source.start.column,i=this.source.start.line,r="document"in this.source.input?this.source.input.document:this.source.input.css,n=Ie(r,this.source.start),o=n+e;for(let l=n;l<o;l++)r[l]===`
|
|
50
|
+
`?(t=1,i+=1):t+=1;return{column:t,line:i,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,i={column:this.source.start.column,line:this.source.start.line,offset:Ie(t,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:Ie(t,this.source.end)+1}:{column:i.column+1,line:i.line,offset:i.offset+1};if(e.word){let o=t.slice(Ie(t,this.source.start),Ie(t,this.source.end)).indexOf(e.word);o!==-1&&(i=this.positionInside(o),r=this.positionInside(o+e.word.length))}else e.start?i={column:e.start.column,line:e.start.line,offset:Ie(t,e.start)}:e.index&&(i=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line,offset:Ie(t,e.end)}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<i.line||r.line===i.line&&r.column<=i.column)&&(r={column:i.column+1,line:i.line,offset:i.offset+1}),{end:r,start:i}}raw(e,t){return new Kc().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,i=!1;for(let r of e)r===this?i=!0:i?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);i||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let i={},r=t==null;t=t||new Map;let n=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let l=this[o];if(Array.isArray(l))i[o]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)i[o]=l.toJSON(null,t);else if(o==="source"){if(l==null)continue;let a=t.get(l.input);a==null&&(a=n,t.set(l.input,n),n++),i[o]={end:l.end,inputId:a,start:l.start}}else i[o]=l}return r&&(i.inputs=[...t.keys()].map(o=>o.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Qc){e.stringify&&(e=e.stringify);let t="";return e(this,i=>{t+=i}),t}warn(e,t,i={}){let r={node:this};for(let n in i)r[n]=i[n];return e.warn(t,r)}};var ki=Ms;Ms.default=Ms;let eh=ki,Rs=class extends eh{constructor(e){super(e),this.type="comment"}};var Pi=Rs;Rs.default=Rs;let th=ki,Is=class extends th{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=oe(P({},e),{value:String(e.value)})),super(e),this.type="decl"}};var Li=Is;Is.default=Is;let jo=Pi,Zo=Li,ih=ki,{isClean:Ho,my:Xo}=Lt,ar,Jo,Ko,ur;function Qo(s){return s.map(e=>(e.nodes&&(e.nodes=Qo(e.nodes)),delete e.source,e))}function qo(s){if(s[Ho]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)qo(e)}let _e=class el extends ih{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let r of i)this.proxyOf.nodes.push(r)}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,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],r=e(this.proxyOf.nodes[i],i),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}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(r=>typeof r=="function"?(n,o)=>r(n.toProxy(),o):r)):t==="every"||t==="some"?i=>e[t]((r,...n)=>i(r.toProxy(),...n)):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),r=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let o of r)this.proxyOf.nodes.splice(i+1,0,o);let n;for(let o in this.indexes)n=this.indexes[o],i<n&&(this.indexes[o]=n+r.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),r=i===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[i],r).reverse();i=this.index(e);for(let l of n)this.proxyOf.nodes.splice(i,0,l);let o;for(let l in this.indexes)o=this.indexes[l],i<=o&&(this.indexes[l]=o+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Qo(Jo(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"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.selectors)e=[new ur(e)];else if(e.name)e=[new ar(e)];else if(e.text)e=[new jo(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[Xo]||el.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[Ho]&&qo(r),r.raws||(r.raws={}),typeof r.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(r.raws.before=t.raws.before.replace(/\S/g,"")),r.parent=this.proxyOf,r))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let r of i)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+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(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let r;try{r=e(t,i)}catch(n){throw t.addToError(n)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,r)}):this.walk((i,r)=>{if(i.type==="atrule"&&i.name===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="atrule")return t(i,r)}))}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,r)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,r)}):this.walk((i,r)=>{if(i.type==="decl"&&i.prop===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="decl")return t(i,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,r)}):this.walk((i,r)=>{if(i.type==="rule"&&i.selector===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="rule")return t(i,r)}))}};_e.registerParse=s=>{Jo=s};_e.registerRule=s=>{ur=s};_e.registerAtRule=s=>{ar=s};_e.registerRoot=s=>{Ko=s};var Ge=_e;_e.default=_e;_e.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,ar.prototype):s.type==="rule"?Object.setPrototypeOf(s,ur.prototype):s.type==="decl"?Object.setPrototypeOf(s,Zo.prototype):s.type==="comment"?Object.setPrototypeOf(s,jo.prototype):s.type==="root"&&Object.setPrototypeOf(s,Ko.prototype),s[Xo]=!0,s.nodes&&s.nodes.forEach(e=>{_e.rebuild(e)})};let tl=Ge,wi=class extends tl{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 cr=wi;wi.default=wi;tl.registerAtRule(wi);let sh=Ge,il,sl,Ot=class extends sh{constructor(e){super(P({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new il(new sl,this,e).stringify()}};Ot.registerLazyResult=s=>{il=s};Ot.registerProcessor=s=>{sl=s};var hr=Ot;Ot.default=Ot;let rh="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",nh=(s=21)=>{let e="",t=s|0;for(;t--;)e+=rh[Math.random()*64|0];return e};var oh={nanoid:nh};let{existsSync:lh,readFileSync:ah}=Ce,{dirname:Hi,join:uh}=Ce,{SourceMapConsumer:en,SourceMapGenerator:tn}=Ce;function ch(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}let Os=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=t.map?t.map.prev:void 0,r=this.loadMap(t.from,i);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Hi(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new en(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,r=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,o=e.match(r)||e.match(n);if(o)return decodeURIComponent(e.substr(o[0].length));let l=e.match(t)||e.match(i);if(l)return ch(e.substr(l[0].length));let a=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let i=e.lastIndexOf(t.pop()),r=e.indexOf("*/",i);i>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,r)))}loadFile(e){if(this.root=Hi(e),lh(e))return this.mapFile=e,ah(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let i=t(e);if(i){let r=this.loadFile(i);if(!r)throw new Error("Unable to load previous source map: "+i.toString());return r}}else{if(t instanceof en)return tn.fromSourceMap(t).toString();if(t instanceof tn)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 i=this.annotation;return e&&(i=uh(Hi(e),i)),this.loadFile(i)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var rl=Os;Os.default=Os;let{nanoid:hh}=oh,{isAbsolute:Ds,resolve:_s}=Ce,{SourceMapConsumer:fh,SourceMapGenerator:dh}=Ce,{fileURLToPath:sn,pathToFileURL:Ht}=Ce,rn=lr,ph=rl,Xi=Ce,Ji=Symbol("lineToIndexCache"),mh=!!(fh&&dh),nn=!!(_s&&Ds);function on(s){if(s[Ji])return s[Ji];let e=s.css.split(`
|
|
51
|
+
`),t=new Array(e.length),i=0;for(let r=0,n=e.length;r<n;r++)t[r]=i,i+=e[r].length+1;return s[Ji]=t,t}let vi=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!nn||/^\w+:\/\//.test(t.from)||Ds(t.from)?this.file=t.from:this.file=_s(t.from)),nn&&mh){let i=new ph(this.css,t);if(i.text){this.map=i;let r=i.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id="<input css "+hh(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,i,r={}){let n,o,l,a,u;if(t&&typeof t=="object"){let h=t,f=i;if(typeof h.offset=="number"){a=h.offset;let p=this.fromOffset(a);t=p.line,i=p.col}else t=h.line,i=h.column,a=this.fromLineAndColumn(t,i);if(typeof f.offset=="number"){l=f.offset;let p=this.fromOffset(l);o=p.line,n=p.col}else o=f.line,n=f.column,l=this.fromLineAndColumn(f.line,f.column)}else if(i)a=this.fromLineAndColumn(t,i);else{a=t;let h=this.fromOffset(a);t=h.line,i=h.col}let c=this.origin(t,i,o,n);return c?u=new rn(e,c.endLine===void 0?c.line:{column:c.column,line:c.line},c.endLine===void 0?c.column:{column:c.endColumn,line:c.endLine},c.source,c.file,r.plugin):u=new rn(e,o===void 0?t:{column:i,line:t},o===void 0?i:{column:n,line:o},this.css,this.file,r.plugin),u.input={column:i,endColumn:n,endLine:o,endOffset:l,line:t,offset:a,source:this.css},this.file&&(Ht&&(u.input.url=Ht(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(e,t){return on(this)[e-1]+t-1}fromOffset(e){let t=on(this),i=t[t.length-1],r=0;if(e>=i)r=t.length-1;else{let n=t.length-2,o;for(;r<n;)if(o=r+(n-r>>1),e<t[o])n=o-1;else if(e>=t[o+1])r=o+1;else{r=o;break}}return{col:e-t[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:_s(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,r){if(!this.map)return!1;let n=this.map.consumer(),o=n.originalPositionFor({column:t,line:e});if(!o.source)return!1;let l;typeof i=="number"&&(l=n.originalPositionFor({column:r,line:i}));let a;Ds(o.source)?a=Ht(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||Ht(this.map.mapFile));let u={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(sn)u.file=sn(a);else throw new Error("file: protocol is not available in this PostCSS build");let c=n.sourceContentFor(o.source);return c&&(u.source=c),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=P({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var $i=vi;vi.default=vi;Xi&&Xi.registerInput&&Xi.registerInput(vi);let nl=Ge,ol,ll,nt=class extends nl{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let r=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 n of r)n.raws.before=t.raws.before}return r}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 ol(new ll,this,e).stringify()}};nt.registerLazyResult=s=>{ol=s};nt.registerProcessor=s=>{ll=s};var $t=nt;nt.default=nt;nl.registerRoot(nt);let Dt={comma(s){return Dt.split(s,[","],!0)},space(s){let e=[" ",`
|
|
52
|
+
`," "];return Dt.split(s,e)},split(s,e,t){let i=[],r="",n=!1,o=0,l=!1,a="",u=!1;for(let c of s)u?u=!1:c==="\\"?u=!0:l?c===a&&(l=!1):c==='"'||c==="'"?(l=!0,a=c):c==="("?o+=1:c===")"?o>0&&(o-=1):o===0&&e.includes(c)&&(n=!0),n?(r!==""&&i.push(r.trim()),r="",n=!1):r+=c;return(t||r!=="")&&i.push(r.trim()),i}};var al=Dt;Dt.default=Dt;let ul=Ge,gh=al,bi=class extends ul{get selectors(){return gh.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)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var fr=bi;bi.default=bi;ul.registerRule(bi);let yh=cr,wh=Pi,vh=Li,bh=$i,Ch=rl,Sh=$t,Eh=fr;function _t(s,e){if(Array.isArray(s))return s.map(o=>_t(o));let r=s,{inputs:t}=r,i=ht(r,["inputs"]);if(t){e=[];for(let o of t){let l=oe(P({},o),{__proto__:bh.prototype});l.map&&(l.map=oe(P({},l.map),{__proto__:Ch.prototype})),e.push(l)}}if(i.nodes&&(i.nodes=s.nodes.map(o=>_t(o,e))),i.source){let n=i.source,{inputId:o}=n,l=ht(n,["inputId"]);i.source=l,o!=null&&(i.source.input=e[o])}if(i.type==="root")return new Sh(i);if(i.type==="decl")return new vh(i);if(i.type==="rule")return new Eh(i);if(i.type==="comment")return new wh(i);if(i.type==="atrule")return new yh(i);throw new Error("Unknown node type: "+s.type)}var xh=_t;_t.default=_t;let{dirname:ci,relative:cl,resolve:hl,sep:fl}=Ce,{SourceMapConsumer:dl,SourceMapGenerator:hi}=Ce,{pathToFileURL:ln}=Ce,Ah=$i,Nh=!!(dl&&hi),Mh=!!(ci&&hl&&cl&&fl),Rh=class{constructor(e,t,i,r){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
|
|
60
53
|
`;this.css.includes(`\r
|
|
61
54
|
`)&&(t=`\r
|
|
62
|
-
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||
|
|
63
|
-
`),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?(
|
|
64
|
-
`.charCodeAt(0),ft=" ".charCodeAt(0),Xt="\f".charCodeAt(0),Jt=" ".charCodeAt(0),Kt="\r".charCodeAt(0),vh="[".charCodeAt(0),bh="]".charCodeAt(0),Ch="(".charCodeAt(0),Sh=")".charCodeAt(0),Eh="{".charCodeAt(0),Ah="}".charCodeAt(0),xh=";".charCodeAt(0),Rh="*".charCodeAt(0),Nh=":".charCodeAt(0),Mh="@".charCodeAt(0),Qt=/[\t\n\f\r "#'()/;[\\\]{}]/g,qt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ih=/.[\r\n"'(/\\]/,on=/[\da-f]/i;var Oh=function(e,t={}){let i=e.css.valueOf(),s=t.ignoreErrors,o,n,l,a,u,c,h,f,m,g,E=i.length,p=0,d=[],w=[];function v(){return p}function A(x){throw e.error("Unclosed "+x,p)}function M(){return w.length===0&&p>=E}function O(x){if(w.length)return w.pop();if(p>=E)return;let V=x?x.ignoreUnclosed:!1;switch(o=i.charCodeAt(p),o){case Ht:case ft:case Jt:case Kt:case Xt:{n=p;do n+=1,o=i.charCodeAt(n);while(o===ft||o===Ht||o===Jt||o===Kt||o===Xt);g=["space",i.slice(p,n)],p=n-1;break}case vh:case bh:case Eh:case Ah:case Nh:case xh:case Sh:{let W=String.fromCharCode(o);g=[W,W,p];break}case Ch:{if(f=d.length?d.pop()[1]:"",m=i.charCodeAt(p+1),f==="url"&&m!==Zi&&m!==sn&&m!==ft&&m!==Ht&&m!==Jt&&m!==Xt&&m!==Kt){n=p;do{if(c=!1,n=i.indexOf(")",n+1),n===-1)if(s||V){n=p;break}else A("bracket");for(h=n;i.charCodeAt(h-1)===Zt;)h-=1,c=!c}while(c);g=["brackets",i.slice(p,n+1),p,n],p=n}else n=i.indexOf(")",p+1),a=i.slice(p,n+1),n===-1||Ih.test(a)?g=["(","(",p]:(g=["brackets",a,p,n],p=n);break}case Zi:case sn:{l=o===Zi?"'":'"',n=p;do{if(c=!1,n=i.indexOf(l,n+1),n===-1)if(s||V){n=p+1;break}else A("string");for(h=n;i.charCodeAt(h-1)===Zt;)h-=1,c=!c}while(c);g=["string",i.slice(p,n+1),p,n],p=n;break}case Mh:{Qt.lastIndex=p+1,Qt.test(i),Qt.lastIndex===0?n=i.length-1:n=Qt.lastIndex-2,g=["at-word",i.slice(p,n+1),p,n],p=n;break}case Zt:{for(n=p,u=!0;i.charCodeAt(n+1)===Zt;)n+=1,u=!u;if(o=i.charCodeAt(n+1),u&&o!==nn&&o!==ft&&o!==Ht&&o!==Jt&&o!==Kt&&o!==Xt&&(n+=1,on.test(i.charAt(n)))){for(;on.test(i.charAt(n+1));)n+=1;i.charCodeAt(n+1)===ft&&(n+=1)}g=["word",i.slice(p,n+1),p,n],p=n;break}default:{o===nn&&i.charCodeAt(p+1)===Rh?(n=i.indexOf("*/",p+2)+1,n===0&&(s||V?n=i.length:A("comment")),g=["comment",i.slice(p,n+1),p,n],p=n):(qt.lastIndex=p+1,qt.test(i),qt.lastIndex===0?n=i.length-1:n=qt.lastIndex-2,g=["word",i.slice(p,n+1),p,n],d.push(g),p=n);break}}return p++,g}function B(x){w.push(x)}return{back:B,endOfFile:M,nextToken:O,position:v}};let ol=Ve,yi=class extends ol{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 as=yi;yi.default=yi;ol.registerAtRule(yi);let ll=Ve,al,ul,rt=class extends ll{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 al(new ul,this,e).stringify()}};rt.registerLazyResult=r=>{al=r};rt.registerProcessor=r=>{ul=r};var Tt=rt;rt.default=rt;ll.registerRoot(rt);let Nt={comma(r){return Nt.split(r,[","],!0)},space(r){let e=[" ",`
|
|
65
|
-
`," "];return Nt.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 cl=Nt;Nt.default=Nt;let hl=Ve,Dh=cl,wi=class extends hl{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Dh.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 us=wi;wi.default=wi;hl.registerRule(wi);let _h=Ti,Th=Oh,kh=Pi,Ph=as,Lh=Tt,ln=us;const an={empty:!0,space:!0};function $h(r){for(let e=r.length-1;e>=0;e--){let t=r[e],i=t[3]||t[2];if(i)return i}}let Fh=class{constructor(e){this.input=e,this.root=new Lh,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 Ph;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 kh;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=Th(this.input)}decl(e,t){let i=new _h;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]||$h(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 m=c[f][0];if(h.trim().indexOf("!")===0&&m!=="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 ln;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",!an[h]&&!an[c]?a.slice(-1)===","?u=!1:a+=o[1]:u=!1):a+=o[1];if(!u){let f=i.reduce((m,g)=>m+g[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new ln;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=Fh;let Uh=Ve,zh=Bh,Vh=ki;function vi(r,e){let t=new Vh(r,e),i=new zh(t);try{i.parse()}catch(s){throw s}return i.root}var cs=vi;vi.default=vi;Uh.registerParse(vi);let{isClean:xe,my:Wh}=_t,Gh=Zo,jh=Di,Yh=Ve,Zh=os;let un=ls,Hh=cs,Xh=Tt;const Jh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Kh={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},Qh={Once:!0,postcssPlugin:!0,prepare:!0},st=0;function pt(r){return typeof r=="object"&&typeof r.then=="function"}function fl(r){let e=!1,t=Jh[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,st,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,st,t+"Exit"]:[t,t+"Exit"]}function cn(r){let e;return r.type==="document"?e=["Document",st,"DocumentExit"]:r.type==="root"?e=["Root",st,"RootExit"]:e=fl(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function Dr(r){return r[xe]=!1,r.nodes&&r.nodes.forEach(e=>Dr(e)),r}let _r={},nt=class pl{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=Dr(t);else if(t instanceof pl||t instanceof un)s=Dr(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=Hh;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[Wh]&&Yh.rebuild(s)}this.result=new un(e,s,i),this.helpers=oe(T({},_r),{postcss:_r,result:this.result}),this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?T(T({},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(!Kh[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Qh[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(pt(i))try{await i}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[xe];){e[xe]=!0;let t=[cn(e)];for(;t.length>0;){let i=this.visitTick(t);if(pt(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 pt(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=jh;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new Gh(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(pt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[xe];)e[xe]=!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(pt(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[xe]){l[xe]=!0,e.push(cn(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===st){i.nodes&&i.nodes.length&&(i[xe]=!0,t.iterator=i.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[xe]=!0;let t=fl(e);for(let i of t)if(i===st)e.nodes&&e.each(s=>{s[xe]||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"}};nt.registerPostcss=r=>{_r=r};var dl=nt;nt.default=nt;Xh.registerLazyResult(nt);Zh.registerLazyResult(nt);let qh=Zo,ef=Di;let tf=cs;const rf=ls;let Tr=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=ef;this.result=new rf(this._processor,s,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let l=new qh(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=tf;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 sf=Tr;Tr.default=Tr;let nf=sf,of=dl,lf=os,af=Tt,Mt=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 nf(this,e,t):new of(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var uf=Mt;Mt.default=Mt;af.registerProcessor(Mt);lf.registerProcessor(Mt);let cf=Ti,hf=Vo,ff=Pi,pf=as,df=ki,mf=Tt,gf=us;function It(r,e){if(Array.isArray(r))return r.map(n=>It(n));let s=r,{inputs:t}=s,i=ut(s,["inputs"]);if(t){e=[];for(let n of t){let l=oe(T({},n),{__proto__:df.prototype});l.map&&(l.map=oe(T({},l.map),{__proto__:hf.prototype})),e.push(l)}}if(i.nodes&&(i.nodes=r.nodes.map(n=>It(n,e))),i.source){let o=i.source,{inputId:n}=o,l=ut(o,["inputId"]);i.source=l,n!=null&&(i.source.input=e[n])}if(i.type==="root")return new mf(i);if(i.type==="decl")return new cf(i);if(i.type==="rule")return new gf(i);if(i.type==="comment")return new ff(i);if(i.type==="atrule")return new pf(i);throw new Error("Unknown node type: "+r.type)}var yf=It;It.default=It;let wf=rs,ml=Ti,vf=dl,bf=Ve,hs=uf,Cf=Di,Sf=yf,gl=os,Ef=nl,yl=Pi,wl=as,Af=ls,xf=ki,Rf=cs,Nf=cl,vl=us,bl=Tt,Mf=_i;function F(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new hs(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:
|
|
55
|
+
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||ci(e.file),r;this.mapOpts.sourcesContent===!1?(r=new dl(e.text),r.sourcesContent&&(r.sourcesContent=null)):r=e.consumer(),this.map.applySourceMap(r,t,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Mh&&Nh&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=hi.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new hi({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 hi({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,i="<no source>",r={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,o;this.stringify(this.root,(l,a,u)=>{if(this.css+=l,a&&u!=="end"&&(r.generated.line=e,r.generated.column=t-1,a.source&&a.source.start?(r.source=this.sourcePath(a),r.original.line=a.source.start.line,r.original.column=a.source.start.column-1,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,this.map.addMapping(r))),o=l.match(/\n/g),o?(e+=o.length,n=l.lastIndexOf(`
|
|
56
|
+
`),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?(r.source=this.sourcePath(a),r.original.line=a.source.end.line,r.original.column=a.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0: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?ci(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=ci(hl(i,this.mapOpts.annotation)));let r=cl(i,e);return this.memoizedPaths.set(e,r),r}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 Ah(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 r=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(r,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(ln){let i=ln(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;fl==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var pl=Rh;const Ki="'".charCodeAt(0),an='"'.charCodeAt(0),Xt="\\".charCodeAt(0),un="/".charCodeAt(0),Jt=`
|
|
57
|
+
`.charCodeAt(0),gt=" ".charCodeAt(0),Kt="\f".charCodeAt(0),Qt=" ".charCodeAt(0),qt="\r".charCodeAt(0),Ih="[".charCodeAt(0),Oh="]".charCodeAt(0),Dh="(".charCodeAt(0),_h=")".charCodeAt(0),Th="{".charCodeAt(0),kh="}".charCodeAt(0),Ph=";".charCodeAt(0),Lh="*".charCodeAt(0),$h=":".charCodeAt(0),Fh="@".charCodeAt(0),ei=/[\t\n\f\r "#'()/;[\\\]{}]/g,ti=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Bh=/.[\r\n"'(/\\]/,cn=/[\da-f]/i;var Uh=function(e,t={}){let i=e.css.valueOf(),r=t.ignoreErrors,n,o,l,a,u,c,h,f,p,y,b=i.length,d=0,m=[],w=[];function v(){return d}function x(A){throw e.error("Unclosed "+A,d)}function R(){return w.length===0&&d>=b}function _(A){if(w.length)return w.pop();if(d>=b)return;let G=A?A.ignoreUnclosed:!1;switch(n=i.charCodeAt(d),n){case Jt:case gt:case Qt:case qt:case Kt:{a=d;do a+=1,n=i.charCodeAt(a);while(n===gt||n===Jt||n===Qt||n===qt||n===Kt);c=["space",i.slice(d,a)],d=a-1;break}case Ih:case Oh:case Th:case kh:case $h:case Ph:case _h:{let Y=String.fromCharCode(n);c=[Y,Y,d];break}case Dh:{if(y=m.length?m.pop()[1]:"",p=i.charCodeAt(d+1),y==="url"&&p!==Ki&&p!==an&&p!==gt&&p!==Jt&&p!==Qt&&p!==Kt&&p!==qt){a=d;do{if(h=!1,a=i.indexOf(")",a+1),a===-1)if(r||G){a=d;break}else x("bracket");for(f=a;i.charCodeAt(f-1)===Xt;)f-=1,h=!h}while(h);c=["brackets",i.slice(d,a+1),d,a],d=a}else a=i.indexOf(")",d+1),o=i.slice(d,a+1),a===-1||Bh.test(o)?c=["(","(",d]:(c=["brackets",o,d,a],d=a);break}case Ki:case an:{u=n===Ki?"'":'"',a=d;do{if(h=!1,a=i.indexOf(u,a+1),a===-1)if(r||G){a=d+1;break}else x("string");for(f=a;i.charCodeAt(f-1)===Xt;)f-=1,h=!h}while(h);c=["string",i.slice(d,a+1),d,a],d=a;break}case Fh:{ei.lastIndex=d+1,ei.test(i),ei.lastIndex===0?a=i.length-1:a=ei.lastIndex-2,c=["at-word",i.slice(d,a+1),d,a],d=a;break}case Xt:{for(a=d,l=!0;i.charCodeAt(a+1)===Xt;)a+=1,l=!l;if(n=i.charCodeAt(a+1),l&&n!==un&&n!==gt&&n!==Jt&&n!==Qt&&n!==qt&&n!==Kt&&(a+=1,cn.test(i.charAt(a)))){for(;cn.test(i.charAt(a+1));)a+=1;i.charCodeAt(a+1)===gt&&(a+=1)}c=["word",i.slice(d,a+1),d,a],d=a;break}default:{n===un&&i.charCodeAt(d+1)===Lh?(a=i.indexOf("*/",d+2)+1,a===0&&(r||G?a=i.length:x("comment")),c=["comment",i.slice(d,a+1),d,a],d=a):(ti.lastIndex=d+1,ti.test(i),ti.lastIndex===0?a=i.length-1:a=ti.lastIndex-2,c=["word",i.slice(d,a+1),d,a],m.push(c),d=a);break}}return d++,c}function z(A){w.push(A)}return{back:z,endOfFile:R,nextToken:_,position:v}};let zh=cr,Vh=Pi,Wh=Li,Gh=$t,hn=fr,Yh=Uh;const fn={empty:!0,space:!0};function jh(s){for(let e=s.length-1;e>=0;e--){let t=s[e],i=t[3]||t[2];if(i)return i}}let Zh=class{constructor(e){this.input=e,this.root=new Gh,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 zh;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,r,n,o=!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(n=a.length-1,r=a[n];r&&r[0]==="space";)r=a[--n];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(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,r;for(let n=t-1;n>=0&&(r=e[n],!(r[0]!=="space"&&(i+=1,i===2)));n--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(e){let t=0,i,r,n;for(let[o,l]of e.entries()){if(r=l,n=r[0],n==="("&&(t+=1),n===")"&&(t-=1),t===0&&n===":")if(!i)this.doubleColon(r);else{if(i[0]==="word"&&i[1]==="progid")continue;return o}i=r}return!1}comment(e){let t=new Vh;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 r=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}createTokenizer(){this.tokenizer=Yh(this.input)}decl(e,t){let i=new Wh;this.init(i,e[0][2]);let r=e[e.length-1];for(r[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(r[3]||r[2]||jh(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 n;for(;e.length;)if(n=e.shift(),n[0]===":"){i.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),i.raws.between+=n[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let o=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(n=e[u],n[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(n[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let f=u;f>0;f--){let p=c[f][0];if(h.trim().startsWith("!")&&p!=="space")break;h=c.pop()[1]+h}h.trim().startsWith("!")&&(i.important=!0,i.raws.important=h,e=c)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(i.raws.between+=o.map(u=>u[1]).join(""),o=[]),this.raw(i,"value",o.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 hn;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,i=null,r=!1,n=null,o=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(i=u[0],a.push(u),i==="("||i==="[")n||(n=u),o.push(i==="("?")":"]");else if(l&&r&&i==="{")n||(n=u),o.push("}");else if(o.length===0)if(i===";")if(r){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===":"&&(r=!0);else i===o[o.length-1]&&(o.pop(),o.length===0&&(n=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&r){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,r){let n,o,l=i.length,a="",u=!0,c,h;for(let f=0;f<l;f+=1)n=i[f],o=n[0],o==="space"&&f===l-1&&!r?u=!1:o==="comment"?(h=i[f-1]?i[f-1][0]:"empty",c=i[f+1]?i[f+1][0]:"empty",!fn[h]&&!fn[c]?a.slice(-1)===","?u=!1:a+=n[1]:u=!1):a+=n[1];if(!u){let f=i.reduce((p,y)=>p+y[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new hn;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 r=t;r<e.length;r++)i+=e[r][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 "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Hh=Zh;let Xh=Ge,Jh=$i,Kh=Hh;function Ci(s,e){let t=new Jh(s,e),i=new Kh(t);try{i.parse()}catch(r){throw r}return i.root}var dr=Ci;Ci.default=Ci;Xh.registerParse(Ci);let Ts=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 ml=Ts;Ts.default=Ts;let Qh=ml,ks=class{get content(){return this.css}constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new Qh(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}};var pr=ks;ks.default=ks;let qh=Ge,ef=hr,tf=pl,sf=dr,dn=pr,rf=$t,nf=Ti,{isClean:Ae,my:of}=Lt;const lf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},af={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},uf={Once:!0,postcssPlugin:!0,prepare:!0},ot=0;function yt(s){return typeof s=="object"&&typeof s.then=="function"}function gl(s){let e=!1,t=lf[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,ot,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,ot,t+"Exit"]:[t,t+"Exit"]}function pn(s){let e;return s.type==="document"?e=["Document",ot,"DocumentExit"]:s.type==="root"?e=["Root",ot,"RootExit"]:e=gl(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function Ps(s){return s[Ae]=!1,s.nodes&&s.nodes.forEach(e=>Ps(e)),s}let Ls={},lt=class yl{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,i){this.stringified=!1,this.processed=!1;let r;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))r=Ps(t);else if(t instanceof yl||t instanceof dn)r=Ps(t.root),t.map&&(typeof i.map=="undefined"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let n=sf;i.syntax&&(n=i.syntax.parse),i.parser&&(n=i.parser),n.parse&&(n=n.parse);try{r=n(t,i)}catch(o){this.processed=!0,this.error=o}r&&!r[of]&&qh.rebuild(r)}this.result=new dn(e,r,i),this.helpers=oe(P({},Ls),{postcss:Ls,result:this.result}),this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?P(P({},n),n.prepare(this.result)):n)}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(r){console&&console.error&&console.error(r)}return e}prepareVisitors(){this.listeners={};let e=(t,i,r)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,r])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!af[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!uf[i])if(typeof t[i]=="object")for(let r in t[i])r==="*"?e(t,i,t[i][r]):e(t,i+"-"+r.toLowerCase(),t[i][r]);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(yt(i))try{await i}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ae];){e[Ae]=!0;let t=[pn(e)];for(;t.length>0;){let i=this.visitTick(t);if(yt(i))try{await i}catch(r){let n=t[t.length-1].node;throw this.handleError(r,n)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let r=e.nodes.map(n=>i(n,this.helpers));await Promise.all(r)}else await i(e,this.helpers)}catch(r){throw this.handleError(r)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(i=>e.Once(i,this.helpers));return yt(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=nf;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new tf(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(yt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ae];)e[Ae]=!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,r]of e){this.result.lastPlugin=i;let n;try{n=r(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(yt(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:r}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[o,l]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(i.toProxy(),this.helpers)}catch(a){throw this.handleError(a,i)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=i.nodes[i.indexes[o]];)if(i.indexes[o]+=1,!l[Ae]){l[Ae]=!0,e.push(pn(l));return}t.iterator=0,delete i.indexes[o]}let n=t.events;for(;t.eventIndex<n.length;){let o=n[t.eventIndex];if(t.eventIndex+=1,o===ot){i.nodes&&i.nodes.length&&(i[Ae]=!0,t.iterator=i.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Ae]=!0;let t=gl(e);for(let i of t)if(i===ot)e.nodes&&e.each(r=>{r[Ae]||this.walkSync(r)});else{let r=this.listeners[i];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}};lt.registerPostcss=s=>{Ls=s};var wl=lt;lt.default=lt;rf.registerLazyResult(lt);ef.registerLazyResult(lt);let cf=pl,hf=dr;const ff=pr;let df=Ti;let $s=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=hf;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"}constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let r,n=df;this.result=new ff(this._processor,r,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new cf(n,r,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[]}};var pf=$s;$s.default=$s;let mf=hr,gf=wl,yf=pf,wf=$t,Tt=class{constructor(e=[]){this.version="8.5.6",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 yf(this,e,t):new gf(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var vf=Tt;Tt.default=Tt;wf.registerProcessor(Tt);mf.registerProcessor(Tt);let vl=cr,bl=Pi,bf=Ge,Cf=lr,Cl=Li,Sl=hr,Sf=xh,Ef=$i,xf=wl,Af=al,Nf=ki,Mf=dr,mr=vf,Rf=pr,El=$t,xl=fr,If=Ti,Of=ml;function U(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new mr(s)}U.plugin=function(e,t){let i=!1;function r(...o){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
66
58
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
67
|
-
https://www.w3ctech.com/topic/2226`));let l=t(...n);return l.postcssPlugin=e,l.postcssVersion=new hs().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=Cf;F.parse=Rf;F.fromJSON=Sf;F.list=Nf;F.comment=r=>new yl(r);F.atRule=r=>new wl(r);F.decl=r=>new ml(r);F.rule=r=>new vl(r);F.root=r=>new bl(r);F.document=r=>new gl(r);F.CssSyntaxError=wf;F.Declaration=ml;F.Container=bf;F.Processor=hs;F.Document=gl;F.Comment=yl;F.Warning=Ef;F.AtRule=wl;F.Result=Af;F.Input=xf;F.Rule=vl;F.Root=bl;F.Node=Mf;vf.registerPostcss(F);var If=F;F.default=F;const X=Uc(If);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 D=(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))(D||{});function Of(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[kr(n[0].trim())]=n[1].trim())}}),e}function hn(r){const e=[];for(const t in r){const i=r[t];if(typeof i!="string")continue;const s=kf(t);e.push(`${s}: ${i};`)}return e.join(" ")}const Df=/-([a-z])/g,_f=/^--[a-zA-Z0-9-]+$/,kr=r=>_f.test(r)?r:r.replace(Df,(e,t)=>t?t.toUpperCase():""),Tf=/\B([A-Z])/g,kf=r=>r.replace(Tf,"-$1").toLowerCase();class Se{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 Se){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 fs extends Se{constructor(...e){super(e),C(this,"nodeType",9),C(this,"nodeName","#document"),C(this,"compatMode","CSS1Compat"),C(this,"RRNodeType",D.Document),C(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(e=>e.RRNodeType===D.Element&&e.tagName==="HTML")||null}get body(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===D.Element&&t.tagName==="BODY"))||null}get head(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===D.Element&&t.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){const t=e.RRNodeType;if((t===D.Element||t===D.DocumentType)&&this.childNodes.some(s=>s.RRNodeType===t))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===D.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const i=ps(this,e);return i.parentElement=null,i}insertBefore(e,t){const i=e.RRNodeType;if((i===D.Element||i===D.DocumentType)&&this.childNodes.some(o=>o.RRNodeType===i))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${i===D.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=xl(this,e,t);return s.parentElement=null,s}removeChild(e){return Rl(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 fs}createDocumentType(e,t,i){const s=new Cl(e,t,i);return s.ownerDocument=this,s}createElement(e){const t=new Li(e);return t.ownerDocument=this,t}createElementNS(e,t){return this.createElement(t)}createTextNode(e){const t=new Sl(e);return t.ownerDocument=this,t}createComment(e){const t=new El(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new Al(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}class Cl extends Se{constructor(e,t,i){super(),C(this,"nodeType",10),C(this,"RRNodeType",D.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 Li extends Se{constructor(e){super(),C(this,"nodeType",1),C(this,"RRNodeType",D.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 $f(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?Of(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(i,s,o)=>{if(t.test(i))return;const n=kr(i);s?e[n]=s:delete e[n],o==="important"&&(e[n]+=" !important"),this.attributes.style=hn(e)},e.removeProperty=i=>{if(t.test(i))return"";const s=kr(i),o=e[s]||"";return delete e[s],this.attributes.style=hn(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 ps(this,e)}insertBefore(e,t){return xl(this,e,t)}removeChild(e){return Rl(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 Pf extends Li{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 Lf extends Li{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 Sl extends Se{constructor(e){super(),C(this,"nodeType",3),C(this,"nodeName","#text"),C(this,"RRNodeType",D.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 El extends Se{constructor(e){super(),C(this,"nodeType",8),C(this,"nodeName","#comment"),C(this,"RRNodeType",D.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 Al extends Se{constructor(e){super(),C(this,"nodeName","#cdata-section"),C(this,"nodeType",4),C(this,"RRNodeType",D.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 $f{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 ps(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 xl(r,e,t){if(!t)return ps(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 Rl(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 de=(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))(de||{});const Pr={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},Ff={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 Re=null;function bi(r,e,t,i=e.mirror||e.ownerDocument.mirror){r=Bf(r,e,t,i),Nl(r,e,t,i),Uf(r,e,t)}function Bf(r,e,t,i){var s;if(t.afterAppend&&!Re&&(Re=new WeakSet,setTimeout(()=>{Re=null},0)),!ds(r,e)){const o=Ci(e,t.mirror,i);(s=r.parentNode)==null||s.replaceChild(o,r),r=o}switch(e.RRNodeType){case D.Document:{if(!Ye(r,e,t.mirror,i)){const o=i.getMeta(e);o&&(t.mirror.removeNodeFromMap(r),r.close(),r.open(),t.mirror.add(r,o),Re==null||Re.add(r))}break}case D.Element:{const o=r,n=e;switch(n.tagName){case"IFRAME":{const l=r.contentDocument;if(!l)break;bi(l,e.contentDocument,t,i);break}}n.shadowRoot&&(o.shadowRoot||o.attachShadow({mode:"open"}),Nl(o.shadowRoot,n.shadowRoot,t,i)),zf(o,n,i);break}}return r}function Uf(r,e,t){var i;switch(e.RRNodeType){case D.Document:{const s=e.scrollData;s&&t.applyScroll(s,!0);break}case D.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,m=a!==c;if((f||a&&m)&&n.close(),c&&(m||f))try{h?n.showModal():n.show()}catch(g){console.warn(g)}break}}break}case D.Text:case D.Comment:case D.CDATA:{r.textContent!==e.data&&(r.textContent=e.data);break}}Re!=null&&Re.has(r)&&(Re.delete(r),(i=t.afterAppend)==null||i.call(t,r,t.mirror.getId(r)))}function zf(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&&Pr[o])r.setAttributeNS(Pr[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 Nl(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],m=o[u],g,E;for(;n<=l&&a<=u;)if(c===void 0)c=s[++n];else if(h===void 0)h=s[--l];else if(Ye(c,f,t.mirror,i))c=s[++n],f=o[++a];else if(Ye(h,m,t.mirror,i))h=s[--l],m=o[--u];else if(Ye(c,m,t.mirror,i)){try{r.insertBefore(c,h.nextSibling)}catch(w){console.warn(w)}c=s[++n],m=o[--u]}else if(Ye(h,f,t.mirror,i)){try{r.insertBefore(h,c)}catch(w){console.warn(w)}h=s[--l],f=o[++a]}else{if(!g){g={};for(let v=n;v<=l;v++){const A=s[v];A&&t.mirror.hasNode(A)&&(g[t.mirror.getId(A)]=v)}}E=g[i.getId(f)];const w=s[E];if(E!==void 0&&w&&Ye(w,f,t.mirror,i)){try{r.insertBefore(w,c)}catch(v){console.warn(v)}s[E]=void 0}else{const v=Ci(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(A){console.warn(A)}}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 A=Ci(o[a],t.mirror,i);try{r.insertBefore(A,v)}catch(M){console.warn(M)}}}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,d=e.firstChild;for(;p!==null&&d!==null;)bi(p,d,t,i),p=p.nextSibling,d=d.nextSibling}function Ci(r,e,t){const i=t.getId(r),s=t.getMeta(r);let o=null;if(i>-1&&(o=e.getNode(i)),o!==null&&ds(o,r))return o;switch(r.RRNodeType){case D.Document:o=new Document;break;case D.DocumentType:o=document.implementation.createDocumentType(r.name,r.publicId,r.systemId);break;case D.Element:{let n=r.tagName.toLowerCase();n=Ff[n]||n,s&&"isSVG"in s&&(s!=null&&s.isSVG)?o=document.createElementNS(Pr.svg,n):o=document.createElement(r.tagName);break}case D.Text:o=document.createTextNode(r.data);break;case D.Comment:o=document.createComment(r.data);break;case D.CDATA:o=document.createCDATASection(r.data);break}s&&e.add(o,T({},s));try{Re==null||Re.add(o)}catch(n){}return o}function ds(r,e){return r.nodeType!==e.nodeType?!1:r.nodeType!==r.ELEMENT_NODE||r.tagName.toUpperCase()===e.tagName}function Ye(r,e,t,i){const s=t.getId(r),o=i.getId(e);return s===-1||s!==o?!1:ds(r,e)}class at extends fs{constructor(e){super(),C(this,"UNSERIALIZED_STARTING_ID",-2),C(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),C(this,"mirror",qf()),C(this,"scrollData",null),e&&(this.mirror=e)}get unserializedId(){return this._unserializedId--}createDocument(e,t,i){return new at}createDocumentType(e,t,i){const s=new Vf(e,t,i);return s.ownerDocument=this,s}createElement(e){const t=e.toUpperCase();let i;switch(t){case"AUDIO":case"VIDEO":i=new Wf(t);break;case"IFRAME":i=new Zf(t,this.mirror);break;case"CANVAS":i=new jf(t);break;case"STYLE":i=new Yf(t);break;case"DIALOG":i=new Gf(t);break;default:i=new $i(t);break}return i.ownerDocument=this,i}createComment(e){const t=new Xf(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new Jf(e);return t.ownerDocument=this,t}createTextNode(e){const t=new Hf(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 Vf=Cl;class $i extends Li{constructor(){super(...arguments),C(this,"inputData",null),C(this,"scrollData",null)}}class Wf extends Pf{}class Gf extends Lf{}class jf extends $i{constructor(){super(...arguments),C(this,"rr_dataURL",null),C(this,"canvasMutations",[])}getContext(){return null}}class Yf extends $i{constructor(){super(...arguments),C(this,"rules",[])}}class Zf extends $i{constructor(e,t){super(e),C(this,"contentDocument",new at),this.contentDocument.mirror=t}}const Hf=Sl,Xf=El,Jf=Al;function Kf(r){return r instanceof HTMLFormElement?"FORM":r.tagName.toUpperCase()}function Ml(r,e,t,i){let s;switch(r.nodeType){case de.DOCUMENT_NODE:i&&i.nodeName==="IFRAME"?s=i.contentDocument:(s=e,s.compatMode=r.compatMode);break;case de.DOCUMENT_TYPE_NODE:{const n=r;s=e.createDocumentType(n.name,n.publicId,n.systemId);break}case de.ELEMENT_NODE:{const n=r,l=Kf(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 de.TEXT_NODE:s=e.createTextNode(r.textContent||"");break;case de.CDATA_SECTION_NODE:s=e.createCDATASection(r.data);break;case de.COMMENT_NODE:s=e.createComment(r.textContent||"");break;case de.DOCUMENT_FRAGMENT_NODE:s=i.attachShadow({mode:"open"});break;default:return null}let o=t.getMeta(r);return e instanceof at&&(o||(o=Il(s,e.unserializedId),t.add(r,o)),e.mirror.add(s,T({},o))),s}function Qf(r,e=Pc(),t=new at){function i(s,o){const n=Ml(s,t,e,o);if(n!==null)if((o==null?void 0:o.nodeName)!=="IFRAME"&&s.nodeType!==de.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===de.DOCUMENT_NODE||s.nodeType===de.ELEMENT_NODE||s.nodeType===de.DOCUMENT_FRAGMENT_NODE)&&(s.nodeType===de.ELEMENT_NODE&&s.shadowRoot&&i(s.shadowRoot,n),s.childNodes.forEach(l=>i(l,n)))}return i(r,null),t}function qf(){return new ep}class ep{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 Il(r,e){switch(r.RRNodeType){case D.Document:return{id:e,type:r.RRNodeType,childNodes:[]};case D.DocumentType:{const t=r;return{id:e,type:r.RRNodeType,name:t.name,publicId:t.publicId,systemId:t.systemId}}case D.Element:return{id:e,type:r.RRNodeType,tagName:r.tagName.toLowerCase(),attributes:{},childNodes:[]};case D.Text:return{id:e,type:r.RRNodeType,textContent:r.textContent||""};case D.Comment:return{id:e,type:r.RRNodeType,textContent:r.textContent||""};case D.CDATA:return{id:e,type:r.RRNodeType,textContent:""}}}const fn={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},pn={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ei={},tp=()=>!!globalThis.Zone;function ms(r){if(ei[r])return ei[r];const e=globalThis[r],t=e.prototype,i=r in fn?fn[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 pn?pn[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&&!tp())return ei[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?ei[r]=u:t}catch(l){return t}}const Hi={};function Le(r,e,t){var i;const s=`${r}.${String(t)}`;if(Hi[s])return Hi[s].call(e);const o=ms(r),n=(i=Object.getOwnPropertyDescriptor(o,t))==null?void 0:i.get;return n?(Hi[s]=n,n.call(e)):e[t]}const Xi={};function Ol(r,e,t){const i=`${r}.${String(t)}`;if(Xi[i])return Xi[i].bind(e);const o=ms(r)[t];return typeof o!="function"?e[t]:(Xi[i]=o,o.bind(e))}function ip(r){return Le("Node",r,"childNodes")}function rp(r){return Le("Node",r,"parentNode")}function sp(r){return Le("Node",r,"parentElement")}function np(r){return Le("Node",r,"textContent")}function op(r,e){return Ol("Node",r,"contains")(e)}function lp(r){return Ol("Node",r,"getRootNode")()}function ap(r){return!r||!("host"in r)?null:Le("ShadowRoot",r,"host")}function up(r){return r.styleSheets}function cp(r){return!r||!("shadowRoot"in r)?null:Le("Element",r,"shadowRoot")}function hp(r,e){return Le("Element",r,"querySelector")(e)}function fp(r,e){return Le("Element",r,"querySelectorAll")(e)}function pp(){return ms("MutationObserver").constructor}function dp(r,e,t){try{if(!(e in r))return()=>{};const i=r[e],s=t(i);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:i}})),r[e]=s,()=>{r[e]=i}}catch(i){return()=>{}}}function mp(r){const e=r.tagName.toLowerCase(),t=r.id?`#${r.id}`:"",i=r.classList.length?"."+Array.from(r.classList).join("."):"";return`${e}${t}${i}`}function gp(r){var f;var e,t;const i=(f=(e=r.ownerDocument)==null?void 0:e.defaultView)!=null?f:window,s=r.getBoundingClientRect(),o=i.innerWidth||i.document.documentElement.clientWidth||0,n=i.innerHeight||i.document.documentElement.clientHeight||0,l=s.width>0&&s.height>0&&s.bottom>0&&s.right>0&&s.top<n&&s.left<o,a=(t=i.getComputedStyle)==null?void 0:t.call(i,r),c=!!a&&a.display!=="none"&&a.visibility!=="hidden"&&(parseFloat(a.opacity)||0)>0&&l;let h=0;if(c){const m=Math.max(0,Math.min(s.right,o)-Math.max(s.left,0)),g=Math.max(0,Math.min(s.bottom,n)-Math.max(s.top,0)),E=m*g,p=s.width*s.height;h=p>0?E/p:0}return{isVisible:c,ratio:h}}const yp={childNodes:ip,parentNode:rp,parentElement:sp,textContent:np,contains:op,getRootNode:lp,host:ap,styleSheets:up,shadowRoot:cp,querySelector:hp,querySelectorAll:fp,mutationObserver:pp,patch:dp,describeNode:mp,getElementVisibility:gp},Ze=`Please stop import mirror directly. Instead of that,\r
|
|
59
|
+
https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new mr().version,l}let n;return Object.defineProperty(r,"postcss",{get(){return n||(n=r()),n}}),r.process=function(o,l,a){return U([r(a)]).process(o,l)},r};U.stringify=If;U.parse=Mf;U.fromJSON=Sf;U.list=Af;U.comment=s=>new bl(s);U.atRule=s=>new vl(s);U.decl=s=>new Cl(s);U.rule=s=>new xl(s);U.root=s=>new El(s);U.document=s=>new Sl(s);U.CssSyntaxError=Cf;U.Declaration=Cl;U.Container=bf;U.Processor=mr;U.Document=Sl;U.Comment=bl;U.Warning=Of;U.AtRule=vl;U.Result=Rf;U.Input=Ef;U.Rule=xl;U.Root=El;U.Node=Nf;xf.registerPostcss(U);var Df=U;U.default=U;const X=Wc(Df);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 T=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(T||{});function _f(s){const e={},t=/;(?![^(]*\))/g,i=/:(.+)/,r=/\/\*.*?\*\//g;return s.replace(r,"").split(t).forEach(function(n){if(n){const o=n.split(i);o.length>1&&(e[Fs(o[0].trim())]=o[1].trim())}}),e}function mn(s){const e=[];for(const t in s){const i=s[t];if(typeof i!="string")continue;const r=Lf(t);e.push(`${r}: ${i};`)}return e.join(" ")}const Tf=/-([a-z])/g,kf=/^--[a-zA-Z0-9-]+$/,Fs=s=>kf.test(s)?s:s.replace(Tf,(e,t)=>t?t.toUpperCase():""),Pf=/\B([A-Z])/g,Lf=s=>s.replace(Pf,"-$1").toLowerCase();class Se{constructor(...e){S(this,"parentElement",null),S(this,"parentNode",null),S(this,"ownerDocument"),S(this,"firstChild",null),S(this,"lastChild",null),S(this,"previousSibling",null),S(this,"nextSibling",null),S(this,"ELEMENT_NODE",1),S(this,"TEXT_NODE",3),S(this,"nodeType"),S(this,"nodeName"),S(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 Se){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 gr extends Se{constructor(...e){super(e),S(this,"nodeType",9),S(this,"nodeName","#document"),S(this,"compatMode","CSS1Compat"),S(this,"RRNodeType",T.Document),S(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(e=>e.RRNodeType===T.Element&&e.tagName==="HTML")||null}get body(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===T.Element&&t.tagName==="BODY"))||null}get head(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===T.Element&&t.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){const t=e.RRNodeType;if((t===T.Element||t===T.DocumentType)&&this.childNodes.some(r=>r.RRNodeType===t))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===T.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const i=yr(this,e);return i.parentElement=null,i}insertBefore(e,t){const i=e.RRNodeType;if((i===T.Element||i===T.DocumentType)&&this.childNodes.some(n=>n.RRNodeType===i))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${i===T.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const r=Il(this,e,t);return r.parentElement=null,r}removeChild(e){return Ol(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 gr}createDocumentType(e,t,i){const r=new Al(e,t,i);return r.ownerDocument=this,r}createElement(e){const t=new Fi(e);return t.ownerDocument=this,t}createElementNS(e,t){return this.createElement(t)}createTextNode(e){const t=new Nl(e);return t.ownerDocument=this,t}createComment(e){const t=new Ml(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new Rl(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}class Al extends Se{constructor(e,t,i){super(),S(this,"nodeType",10),S(this,"RRNodeType",T.DocumentType),S(this,"name"),S(this,"publicId"),S(this,"systemId"),S(this,"textContent",null),this.name=e,this.publicId=t,this.systemId=i,this.nodeName=e}toString(){return"RRDocumentType"}}class Fi extends Se{constructor(e){super(),S(this,"nodeType",1),S(this,"RRNodeType",T.Element),S(this,"tagName"),S(this,"attributes",{}),S(this,"shadowRoot",null),S(this,"scrollLeft"),S(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 Bf(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?_f(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(i,r,n)=>{if(t.test(i))return;const o=Fs(i);r?e[o]=r:delete e[o],n==="important"&&(e[o]+=" !important"),this.attributes.style=mn(e)},e.removeProperty=i=>{if(t.test(i))return"";const r=Fs(i),n=e[r]||"";return delete e[r],this.attributes.style=mn(e),n},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 yr(this,e)}insertBefore(e,t){return Il(this,e,t)}removeChild(e){return Ol(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 $f extends Fi{constructor(){super(...arguments),S(this,"currentTime"),S(this,"volume"),S(this,"paused"),S(this,"muted"),S(this,"playbackRate"),S(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 Ff extends Fi{constructor(){super(...arguments),S(this,"tagName","DIALOG"),S(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 Nl extends Se{constructor(e){super(),S(this,"nodeType",3),S(this,"nodeName","#text"),S(this,"RRNodeType",T.Text),S(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 Ml extends Se{constructor(e){super(),S(this,"nodeType",8),S(this,"nodeName","#comment"),S(this,"RRNodeType",T.Comment),S(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 Rl extends Se{constructor(e){super(),S(this,"nodeName","#cdata-section"),S(this,"nodeType",4),S(this,"RRNodeType",T.CDATA),S(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 Bf{constructor(e,t){if(S(this,"onChange"),S(this,"classes",[]),S(this,"add",(...i)=>{for(const r of i){const n=String(r);this.classes.indexOf(n)>=0||this.classes.push(n)}this.onChange&&this.onChange(this.classes.join(" "))}),S(this,"remove",(...i)=>{this.classes=this.classes.filter(r=>i.indexOf(r)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),e){const i=e.trim().split(/\s+/);this.classes.push(...i)}this.onChange=t}}function yr(s,e){return e.parentNode&&e.parentNode.removeChild(e),s.lastChild?(s.lastChild.nextSibling=e,e.previousSibling=s.lastChild):(s.firstChild=e,e.previousSibling=null),s.lastChild=e,e.nextSibling=null,e.parentNode=s,e.parentElement=s,e.ownerDocument=s.ownerDocument,e}function Il(s,e,t){if(!t)return yr(s,e);if(t.parentNode!==s)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:s.firstChild=e,e.parentElement=s,e.parentNode=s,e.ownerDocument=s.ownerDocument),e}function Ol(s,e){if(e.parentNode!==s)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:s.firstChild=e.nextSibling,e.nextSibling?e.nextSibling.previousSibling=e.previousSibling:s.lastChild=e.previousSibling,e.previousSibling=null,e.nextSibling=null,e.parentElement=null,e.parentNode=null,e}var pe=(s=>(s[s.PLACEHOLDER=0]="PLACEHOLDER",s[s.ELEMENT_NODE=1]="ELEMENT_NODE",s[s.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",s[s.TEXT_NODE=3]="TEXT_NODE",s[s.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",s[s.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",s[s.ENTITY_NODE=6]="ENTITY_NODE",s[s.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",s[s.COMMENT_NODE=8]="COMMENT_NODE",s[s.DOCUMENT_NODE=9]="DOCUMENT_NODE",s[s.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",s[s.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",s))(pe||{});const Bs={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},Uf={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 Ne=null;function Si(s,e,t,i=e.mirror||e.ownerDocument.mirror){s=zf(s,e,t,i),Dl(s,e,t,i),Vf(s,e,t)}function zf(s,e,t,i){var r;if(t.afterAppend&&!Ne&&(Ne=new WeakSet,setTimeout(()=>{Ne=null},0)),!wr(s,e)){const n=Ei(e,t.mirror,i);(r=s.parentNode)==null||r.replaceChild(n,s),s=n}switch(e.RRNodeType){case T.Document:{if(!He(s,e,t.mirror,i)){const n=i.getMeta(e);n&&(t.mirror.removeNodeFromMap(s),s.close(),s.open(),t.mirror.add(s,n),Ne==null||Ne.add(s))}break}case T.Element:{const n=s,o=e;switch(o.tagName){case"IFRAME":{const l=s.contentDocument;if(!l)break;Si(l,e.contentDocument,t,i);break}}o.shadowRoot&&(n.shadowRoot||n.attachShadow({mode:"open"}),Dl(n.shadowRoot,o.shadowRoot,t,i)),Wf(n,o,i);break}}return s}function Vf(s,e,t){var i;switch(e.RRNodeType){case T.Document:{const r=e.scrollData;r&&t.applyScroll(r,!0);break}case T.Element:{const r=s,n=e;switch(n.scrollData&&t.applyScroll(n.scrollData,!0),n.inputData&&t.applyInput(n.inputData),n.tagName){case"AUDIO":case"VIDEO":{const o=s,l=n;l.paused!==void 0&&(l.paused?o.pause():o.play()),l.muted!==void 0&&(o.muted=l.muted),l.volume!==void 0&&(o.volume=l.volume),l.currentTime!==void 0&&(o.currentTime=l.currentTime),l.playbackRate!==void 0&&(o.playbackRate=l.playbackRate),l.loop!==void 0&&(o.loop=l.loop);break}case"CANVAS":{const o=e;if(o.rr_dataURL!==null){const l=document.createElement("img");l.onload=()=>{const a=r.getContext("2d");a&&a.drawImage(l,0,0,l.width,l.height)},l.src=o.rr_dataURL}o.canvasMutations.forEach(l=>t.applyCanvas(l.event,l.mutation,s));break}case"STYLE":{const o=r.sheet;o&&e.rules.forEach(l=>t.applyStyleSheetMutation(l,o));break}case"DIALOG":{const o=r,l=n,a=o.open,u=o.matches("dialog:modal"),c=l.open,h=l.isModal,f=u!==h,p=a!==c;if((f||a&&p)&&o.close(),c&&(p||f))try{h?o.showModal():o.show()}catch(y){console.warn(y)}break}}break}case T.Text:case T.Comment:case T.CDATA:{s.textContent!==e.data&&(s.textContent=e.data);break}}Ne!=null&&Ne.has(s)&&(Ne.delete(s),(i=t.afterAppend)==null||i.call(t,s,t.mirror.getId(s)))}function Wf(s,e,t){const i=s.attributes,r=e.attributes;for(const n in r){const o=r[n],l=t.getMeta(e);if(l!=null&&l.isSVG&&Bs[n])s.setAttributeNS(Bs[n],n,o);else if(e.tagName==="CANVAS"&&n==="rr_dataURL"){const a=document.createElement("img");a.src=o,a.onload=()=>{const u=s.getContext("2d");u&&u.drawImage(a,0,0,a.width,a.height)}}else{if(e.tagName==="IFRAME"&&n==="srcdoc")continue;try{s.setAttribute(n,o)}catch(a){console.warn(a)}}}for(const{name:n}of Array.from(i))n in r||s.removeAttribute(n);e.scrollLeft&&(s.scrollLeft=e.scrollLeft),e.scrollTop&&(s.scrollTop=e.scrollTop)}function Dl(s,e,t,i){const r=Array.from(s.childNodes),n=e.childNodes;if(r.length===0&&n.length===0)return;let o=0,l=r.length-1,a=0,u=n.length-1,c=r[o],h=r[l],f=n[a],p=n[u],y,b;for(;o<=l&&a<=u;)if(c===void 0)c=r[++o];else if(h===void 0)h=r[--l];else if(He(c,f,t.mirror,i))c=r[++o],f=n[++a];else if(He(h,p,t.mirror,i))h=r[--l],p=n[--u];else if(He(c,p,t.mirror,i)){try{s.insertBefore(c,h.nextSibling)}catch(w){console.warn(w)}c=r[++o],p=n[--u]}else if(He(h,f,t.mirror,i)){try{s.insertBefore(h,c)}catch(w){console.warn(w)}h=r[--l],f=n[++a]}else{if(!y){y={};for(let v=o;v<=l;v++){const x=r[v];x&&t.mirror.hasNode(x)&&(y[t.mirror.getId(x)]=v)}}b=y[i.getId(f)];const w=r[b];if(b!==void 0&&w&&He(w,f,t.mirror,i)){try{s.insertBefore(w,c)}catch(v){console.warn(v)}r[b]=void 0}else{const v=Ei(f,t.mirror,i);s.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)&&(s.removeChild(c),t.mirror.removeNodeFromMap(c),c=r[++o]);try{s.insertBefore(v,c||null)}catch(x){console.warn(x)}}f=n[++a]}if(o>l){const w=n[u+1];let v=null;for(w&&(v=t.mirror.getNode(i.getId(w)));a<=u;++a){const x=Ei(n[a],t.mirror,i);try{s.insertBefore(x,v)}catch(R){console.warn(R)}}}else if(a>u)for(;o<=l;o++){const w=r[o];if(!(!w||w.parentNode!==s))try{s.removeChild(w),t.mirror.removeNodeFromMap(w)}catch(v){console.warn(v)}}let d=s.firstChild,m=e.firstChild;for(;d!==null&&m!==null;)Si(d,m,t,i),d=d.nextSibling,m=m.nextSibling}function Ei(s,e,t){const i=t.getId(s),r=t.getMeta(s);let n=null;if(i>-1&&(n=e.getNode(i)),n!==null&&wr(n,s))return n;switch(s.RRNodeType){case T.Document:n=new Document;break;case T.DocumentType:n=document.implementation.createDocumentType(s.name,s.publicId,s.systemId);break;case T.Element:{let o=s.tagName.toLowerCase();o=Uf[o]||o,r&&"isSVG"in r&&(r!=null&&r.isSVG)?n=document.createElementNS(Bs.svg,o):n=document.createElement(s.tagName);break}case T.Text:n=document.createTextNode(s.data);break;case T.Comment:n=document.createComment(s.data);break;case T.CDATA:n=document.createCDATASection(s.data);break}r&&e.add(n,P({},r));try{Ne==null||Ne.add(n)}catch(o){}return n}function wr(s,e){return s.nodeType!==e.nodeType?!1:s.nodeType!==s.ELEMENT_NODE||s.tagName.toUpperCase()===e.tagName}function He(s,e,t,i){const r=t.getId(s),n=i.getId(e);return r===-1||r!==n?!1:wr(s,e)}class ct extends gr{constructor(e){super(),S(this,"UNSERIALIZED_STARTING_ID",-2),S(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),S(this,"mirror",td()),S(this,"scrollData",null),e&&(this.mirror=e)}get unserializedId(){return this._unserializedId--}createDocument(e,t,i){return new ct}createDocumentType(e,t,i){const r=new Gf(e,t,i);return r.ownerDocument=this,r}createElement(e){const t=e.toUpperCase();let i;switch(t){case"AUDIO":case"VIDEO":i=new Yf(t);break;case"IFRAME":i=new Xf(t,this.mirror);break;case"CANVAS":i=new Zf(t);break;case"STYLE":i=new Hf(t);break;case"DIALOG":i=new jf(t);break;default:i=new Bi(t);break}return i.ownerDocument=this,i}createComment(e){const t=new Kf(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new Qf(e);return t.ownerDocument=this,t}createTextNode(e){const t=new Jf(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 Gf=Al;class Bi extends Fi{constructor(){super(...arguments),S(this,"inputData",null),S(this,"scrollData",null)}}class Yf extends $f{}class jf extends Ff{}class Zf extends Bi{constructor(){super(...arguments),S(this,"rr_dataURL",null),S(this,"canvasMutations",[])}getContext(){return null}}class Hf extends Bi{constructor(){super(...arguments),S(this,"rules",[])}}class Xf extends Bi{constructor(e,t){super(e),S(this,"contentDocument",new ct),this.contentDocument.mirror=t}}const Jf=Nl,Kf=Ml,Qf=Rl;function qf(s){return s instanceof HTMLFormElement?"FORM":s.tagName.toUpperCase()}function _l(s,e,t,i){let r;switch(s.nodeType){case pe.DOCUMENT_NODE:i&&i.nodeName==="IFRAME"?r=i.contentDocument:(r=e,r.compatMode=s.compatMode);break;case pe.DOCUMENT_TYPE_NODE:{const o=s;r=e.createDocumentType(o.name,o.publicId,o.systemId);break}case pe.ELEMENT_NODE:{const o=s,l=qf(o);r=e.createElement(l);const a=r;for(const{name:u,value:c}of Array.from(o.attributes))a.attributes[u]=c;o.scrollLeft&&(a.scrollLeft=o.scrollLeft),o.scrollTop&&(a.scrollTop=o.scrollTop);break}case pe.TEXT_NODE:r=e.createTextNode(s.textContent||"");break;case pe.CDATA_SECTION_NODE:r=e.createCDATASection(s.data);break;case pe.COMMENT_NODE:r=e.createComment(s.textContent||"");break;case pe.DOCUMENT_FRAGMENT_NODE:r=i.attachShadow({mode:"open"});break;default:return null}let n=t.getMeta(s);return e instanceof ct&&(n||(n=Tl(r,e.unserializedId),t.add(s,n)),e.mirror.add(r,P({},n))),r}function ed(s,e=Fc(),t=new ct){function i(r,n){const o=_l(r,t,e,n);if(o!==null)if((n==null?void 0:n.nodeName)!=="IFRAME"&&r.nodeType!==pe.DOCUMENT_FRAGMENT_NODE&&(n==null||n.appendChild(o),o.parentNode=n,o.parentElement=n),r.nodeName==="IFRAME"){const l=r.contentDocument;l&&i(l,o)}else(r.nodeType===pe.DOCUMENT_NODE||r.nodeType===pe.ELEMENT_NODE||r.nodeType===pe.DOCUMENT_FRAGMENT_NODE)&&(r.nodeType===pe.ELEMENT_NODE&&r.shadowRoot&&i(r.shadowRoot,o),r.childNodes.forEach(l=>i(l,o)))}return i(s,null),t}function td(){return new id}class id{constructor(){S(this,"idNodeMap",new Map),S(this,"nodeMetaMap",new WeakMap),S(this,"selectorNodeMap",new Map)}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);const i=this.getMeta(e);if(i!=null&&i.selector){const r=this.selectorNodeMap.get(i.selector);r&&(r.delete(e),r.size===0&&this.selectorNodeMap.delete(i.selector))}e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const i=t.id;if(this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,t),t.selector){let r=this.selectorNodeMap.get(t.selector);r||(r=new Set,this.selectorNodeMap.set(t.selector,r)),r.add(e)}}replace(e,t){const i=this.getNode(e);if(i){const r=this.nodeMetaMap.get(i);if(r&&(this.nodeMetaMap.set(t,r),r.selector)){const n=this.selectorNodeMap.get(r.selector);n&&(n.delete(i),n.add(t))}}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap,this.selectorNodeMap=new Map}getNodeBySelector(e){const t=this.selectorNodeMap.get(e);return!t||t.size===0?null:t.values().next().value||null}getNodesBySelector(e){const t=this.selectorNodeMap.get(e);return t?Array.from(t):[]}hasSelector(e){const t=this.selectorNodeMap.get(e);return t!==void 0&&t.size>0}}function Tl(s,e){switch(s.RRNodeType){case T.Document:return{id:e,type:s.RRNodeType,childNodes:[]};case T.DocumentType:{const t=s;return{id:e,type:s.RRNodeType,name:t.name,publicId:t.publicId,systemId:t.systemId}}case T.Element:return{id:e,type:s.RRNodeType,tagName:s.tagName.toLowerCase(),attributes:{},childNodes:[]};case T.Text:return{id:e,type:s.RRNodeType,textContent:s.textContent||""};case T.Comment:return{id:e,type:s.RRNodeType,textContent:s.textContent||""};case T.CDATA:return{id:e,type:s.RRNodeType,textContent:""}}}const gn={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},yn={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ii={},sd=()=>!!globalThis.Zone;function vr(s){if(ii[s])return ii[s];const e=globalThis[s],t=e.prototype,i=s in gn?gn[s]:void 0,r=!!(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]"))})),n=s in yn?yn[s]:void 0,o=!!(n&&n.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(r&&o&&!sd())return ii[s]=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[s].prototype;return document.body.removeChild(l),u?ii[s]=u:t}catch(l){return t}}const Qi={};function Fe(s,e,t){var i;const r=`${s}.${String(t)}`;if(Qi[r])return Qi[r].call(e);const n=vr(s),o=(i=Object.getOwnPropertyDescriptor(n,t))==null?void 0:i.get;return o?(Qi[r]=o,o.call(e)):e[t]}const qi={};function kl(s,e,t){const i=`${s}.${String(t)}`;if(qi[i])return qi[i].bind(e);const n=vr(s)[t];return typeof n!="function"?e[t]:(qi[i]=n,n.bind(e))}function rd(s){return Fe("Node",s,"childNodes")}function nd(s){return Fe("Node",s,"parentNode")}function od(s){return Fe("Node",s,"parentElement")}function ld(s){return Fe("Node",s,"textContent")}function ad(s,e){return kl("Node",s,"contains")(e)}function ud(s){return kl("Node",s,"getRootNode")()}function cd(s){return!s||!("host"in s)?null:Fe("ShadowRoot",s,"host")}function hd(s){return s.styleSheets}function fd(s){return!s||!("shadowRoot"in s)?null:Fe("Element",s,"shadowRoot")}function dd(s,e){return Fe("Element",s,"querySelector")(e)}function pd(s,e){return Fe("Element",s,"querySelectorAll")(e)}function md(){return vr("MutationObserver").constructor}function gd(s,e,t){try{if(!(e in s))return()=>{};const i=s[e],r=t(i);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:i}})),s[e]=r,()=>{s[e]=i}}catch(i){return()=>{}}}function yd(s){const e=s.tagName.toLowerCase(),t=s.id?`#${s.id}`:"",i=s.classList.length?"."+Array.from(s.classList).join("."):"";return`${e}${t}${i}`}function wd(s){var f;var e,t;const i=(f=(e=s.ownerDocument)==null?void 0:e.defaultView)!=null?f:window,r=s.getBoundingClientRect(),n=i.innerWidth||i.document.documentElement.clientWidth||0,o=i.innerHeight||i.document.documentElement.clientHeight||0,l=r.width>0&&r.height>0&&r.bottom>0&&r.right>0&&r.top<o&&r.left<n,a=(t=i.getComputedStyle)==null?void 0:t.call(i,s),c=!!a&&a.display!=="none"&&a.visibility!=="hidden"&&(parseFloat(a.opacity)||0)>0&&l;let h=0;if(c){const p=Math.max(0,Math.min(r.right,n)-Math.max(r.left,0)),y=Math.max(0,Math.min(r.bottom,o)-Math.max(r.top,0)),b=p*y,d=r.width*r.height;h=d>0?b/d:0}return{isVisible:c,ratio:h}}const vd={childNodes:rd,parentNode:nd,parentElement:od,textContent:ld,contains:ad,getRootNode:ud,host:cd,styleSheets:hd,shadowRoot:fd,querySelector:dd,querySelectorAll:pd,mutationObserver:md,patch:gd,describeNode:yd,getElementVisibility:wd},Xe=`Please stop import mirror directly. Instead of that,\r
|
|
68
60
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
69
|
-
or you can use record.mirror to access the mirror instance during recording.`;let dn={map:{},getId(){return console.error(Ze),-1},getNode(){return console.error(Ze),null},removeNodeFromMap(){console.error(Ze)},has(){return console.error(Ze),!1},reset(){console.error(Ze)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(dn=new Proxy(dn,{get(r,e,t){return e==="map"&&console.error(Ze),Reflect.get(r,e,t)}}));function wp(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 vp(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 Dl(r,e){e(r.value);for(let t=r.children.length-1;t>=0;t--)Dl(r.children[t],e)}function Ji(r,e){return!!(r.nodeName==="IFRAME"&&e.getMeta(r))}function _l(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=_l(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 ti(r){return r?r instanceof Se&&"shadowRoot"in r?!!r.shadowRoot:!!yp.shadowRoot(r):!1}function mt(r,e){const t=r[e[0]];return e.length===1?t:mt(t.cssRules[e[1]].cssRules,e.slice(2))}function mn(r){const e=[...r],t=e.pop();return{positions:e,index:t}}function bp(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 Cp{constructor(){R(this,"id",1),R(this,"styleIDMap",new WeakMap),R(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 K=(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))(K||{}),L=(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[r.VisibilityMutation=17]="VisibilityMutation",r))(L||{}),se=(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))(se||{}),Si=(r=>(r[r["2D"]=0]="2D",r[r.WebGL=1]="WebGL",r[r.WebGL2=2]="WebGL2",r))(Si||{}),Lr=(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))(Lr||{}),k=(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))(k||{}),Te=(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))(Te||{}),gn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gt=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var ii=0;ii<gn.length;ii++)gt[gn.charCodeAt(ii)]=ii;var Sp=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=gt[r.charCodeAt(i)],n=gt[r.charCodeAt(i+1)],l=gt[r.charCodeAt(i+2)],a=gt[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 Ep="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Ap=r=>Uint8Array.from(atob(r),e=>e.charCodeAt(0));typeof window!="undefined"&&window.Blob&&new Blob([Ap(Ep)],{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=((As=r.contentWindow)==null?void 0:As.Array.from)||Array.from,document.body.removeChild(r)}}catch(r){console.debug("Unable to override Array.from",r)}qn();function Tl(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 xp=Object.freeze(Object.defineProperty({__proto__:null,default:Tl},Symbol.toStringTag,{value:"Module"}));function Rp(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(d){const w=["MSIE ","Trident/","Edge/"];return new RegExp(w.join("|")).test(d)}const l=n(r.navigator.userAgent)?1:0;function a(d,w){this.scrollLeft=d,this.scrollTop=w}function u(d){return .5*(1-Math.cos(Math.PI*d))}function c(d){if(d===null||typeof d!="object"||d.behavior===void 0||d.behavior==="auto"||d.behavior==="instant")return!0;if(typeof d=="object"&&d.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+d.behavior+" is not a valid value for enumeration ScrollBehavior.")}function h(d,w){if(w==="Y")return d.clientHeight+l<d.scrollHeight;if(w==="X")return d.clientWidth+l<d.scrollWidth}function f(d,w){const v=r.getComputedStyle(d,null)["overflow"+w];return v==="auto"||v==="scroll"}function m(d){const w=h(d,"Y")&&f(d,"Y"),v=h(d,"X")&&f(d,"X");return w||v}function g(d){for(;d!==e.body&&m(d)===!1;)d=d.parentNode||d.host;return d}function E(d){const w=o();let v,A,M,O=(w-d.startTime)/i;O=O>1?1:O,v=u(O),A=d.startX+(d.x-d.startX)*v,M=d.startY+(d.y-d.startY)*v,d.method.call(d.scrollable,A,M),(A!==d.x||M!==d.y)&&r.requestAnimationFrame(E.bind(r,d))}function p(d,w,v){let A,M,O,B;const x=o();d===e.body?(A=r,M=r.scrollX||r.pageXOffset,O=r.scrollY||r.pageYOffset,B=s.scroll):(A=d,M=d.scrollLeft,O=d.scrollTop,B=a),E({scrollable:A,method:B,startTime:x,startX:M,startY:O,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 d=arguments[0].left,w=arguments[0].top;p.call(this,this,typeof d=="undefined"?this.scrollLeft:~~d,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 d=g(this),w=d.getBoundingClientRect(),v=this.getBoundingClientRect();d!==e.body?(p.call(this,d,d.scrollLeft+v.left-w.left,d.scrollTop+v.top-w.top),r.getComputedStyle(d).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){R(this,"timeOffset",0),R(this,"speed"),R(this,"actions"),R(this,"raf",null),R(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 yn(r,e){if(r.type===K.IncrementalSnapshot&&r.data.source===L.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}/*! *****************************************************************************
|
|
61
|
+
or you can use record.mirror to access the mirror instance during recording.`;let wn={map:{},getId(){return console.error(Xe),-1},getNode(){return console.error(Xe),null},removeNodeFromMap(){console.error(Xe)},has(){return console.error(Xe),!1},reset(){console.error(Xe)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(wn=new Proxy(wn,{get(s,e,t){return e==="map"&&console.error(Xe),Reflect.get(s,e,t)}}));function bd(s=window){"NodeList"in s&&!s.NodeList.prototype.forEach&&(s.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in s&&!s.DOMTokenList.prototype.forEach&&(s.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Cd(s){const e={},t=(r,n)=>{const o={value:r,parent:n,children:[]};return e[r.node.id]=o,o},i=[];for(const r of s){const{nextId:n,parentId:o}=r;if(n&&n in e){const l=e[n];if(l.parent){const a=l.parent.children.indexOf(l);l.parent.children.splice(a,0,t(r,l.parent))}else{const a=i.indexOf(l);i.splice(a,0,t(r,null))}continue}if(o in e){const l=e[o];l.children.push(t(r,l));continue}i.push(t(r,null))}return i}function Pl(s,e){e(s.value);for(let t=s.children.length-1;t>=0;t--)Pl(s.children[t],e)}function es(s,e){return!!(s.nodeName==="IFRAME"&&e.getMeta(s))}function Ll(s,e){var t,i;const r=(i=(t=s.ownerDocument)==null?void 0:t.defaultView)==null?void 0:i.frameElement;if(!r||r===e)return{x:0,y:0,relativeScale:1,absoluteScale:1};const n=r.getBoundingClientRect(),o=Ll(r,e),l=n.height/r.clientHeight;return{x:n.x*o.relativeScale+o.x,y:n.y*o.relativeScale+o.y,relativeScale:l,absoluteScale:o.absoluteScale*l}}function si(s){return s?s instanceof Se&&"shadowRoot"in s?!!s.shadowRoot:!!vd.shadowRoot(s):!1}function vt(s,e){const t=s[e[0]];return e.length===1?t:vt(t.cssRules[e[1]].cssRules,e.slice(2))}function vn(s){const e=[...s],t=e.pop();return{positions:e,index:t}}function Sd(s){const e=new Set,t=[];for(let i=s.length;i--;){const r=s[i];e.has(r.id)||(t.push(r),e.add(r.id))}return t}class Ed{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 K=(s=>(s[s.DomContentLoaded=0]="DomContentLoaded",s[s.Load=1]="Load",s[s.FullSnapshot=2]="FullSnapshot",s[s.IncrementalSnapshot=3]="IncrementalSnapshot",s[s.Meta=4]="Meta",s[s.Custom=5]="Custom",s[s.Plugin=6]="Plugin",s))(K||{}),F=(s=>(s[s.Mutation=0]="Mutation",s[s.MouseMove=1]="MouseMove",s[s.MouseInteraction=2]="MouseInteraction",s[s.Scroll=3]="Scroll",s[s.ViewportResize=4]="ViewportResize",s[s.Input=5]="Input",s[s.TouchMove=6]="TouchMove",s[s.MediaInteraction=7]="MediaInteraction",s[s.StyleSheetRule=8]="StyleSheetRule",s[s.CanvasMutation=9]="CanvasMutation",s[s.Font=10]="Font",s[s.Log=11]="Log",s[s.Drag=12]="Drag",s[s.StyleDeclaration=13]="StyleDeclaration",s[s.Selection=14]="Selection",s[s.AdoptedStyleSheet=15]="AdoptedStyleSheet",s[s.CustomElement=16]="CustomElement",s[s.Visibility=17]="Visibility",s))(F||{}),re=(s=>(s[s.MouseUp=0]="MouseUp",s[s.MouseDown=1]="MouseDown",s[s.Click=2]="Click",s[s.ContextMenu=3]="ContextMenu",s[s.DblClick=4]="DblClick",s[s.Focus=5]="Focus",s[s.Blur=6]="Blur",s[s.TouchStart=7]="TouchStart",s[s.TouchMove_Departed=8]="TouchMove_Departed",s[s.TouchEnd=9]="TouchEnd",s[s.TouchCancel=10]="TouchCancel",s))(re||{}),xi=(s=>(s[s["2D"]=0]="2D",s[s.WebGL=1]="WebGL",s[s.WebGL2=2]="WebGL2",s))(xi||{}),Us=(s=>(s[s.Play=0]="Play",s[s.Pause=1]="Pause",s[s.Seeked=2]="Seeked",s[s.VolumeChange=3]="VolumeChange",s[s.RateChange=4]="RateChange",s))(Us||{}),L=(s=>(s.Start="start",s.Pause="pause",s.Resume="resume",s.Resize="resize",s.Finish="finish",s.FullsnapshotRebuilded="fullsnapshot-rebuilded",s.LoadStylesheetStart="load-stylesheet-start",s.LoadStylesheetEnd="load-stylesheet-end",s.SkipStart="skip-start",s.SkipEnd="skip-end",s.MouseInteraction="mouse-interaction",s.EventCast="event-cast",s.CustomEvent="custom-event",s.Flush="flush",s.StateChange="state-change",s.PlayBack="play-back",s.Destroy="destroy",s))(L||{}),Pe=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(Pe||{}),bn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bt=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var ri=0;ri<bn.length;ri++)bt[bn.charCodeAt(ri)]=ri;var xd=function(s){var e=s.length*.75,t=s.length,i,r=0,n,o,l,a;s[s.length-1]==="="&&(e--,s[s.length-2]==="="&&e--);var u=new ArrayBuffer(e),c=new Uint8Array(u);for(i=0;i<t;i+=4)n=bt[s.charCodeAt(i)],o=bt[s.charCodeAt(i+1)],l=bt[s.charCodeAt(i+2)],a=bt[s.charCodeAt(i+3)],c[r++]=n<<2|o>>4,c[r++]=(o&15)<<4|l>>2,c[r++]=(l&3)<<6|a&63;return u};const Ad="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Nd=s=>Uint8Array.from(atob(s),e=>e.charCodeAt(0));typeof self!="undefined"&&self.Blob&&new Blob([Nd(Ad)],{type:"text/javascript;charset=utf-8"});try{if(Array.from([1],s=>s*2)[0]!==2){const s=document.createElement("iframe");document.body.appendChild(s),Array.from=((Rr=s.contentWindow)==null?void 0:Rr.Array.from)||Array.from,document.body.removeChild(s)}}catch(s){console.debug("Unable to override Array.from",s)}so();function $l(s){return{all:s=s||new Map,on:function(e,t){var i=s.get(e);i?i.push(t):s.set(e,[t])},off:function(e,t){var i=s.get(e);i&&(t?i.splice(i.indexOf(t)>>>0,1):s.set(e,[]))},emit:function(e,t){var i=s.get(e);i&&i.slice().map(function(r){r(t)}),(i=s.get("*"))&&i.slice().map(function(r){r(e,t)})}}}const Md=Object.freeze(Object.defineProperty({__proto__:null,default:$l},Symbol.toStringTag,{value:"Module"}));function Rd(s=window,e=document){if("scrollBehavior"in e.documentElement.style&&s.__forceSmoothScrollPolyfill__!==!0)return;const t=s.HTMLElement||s.Element,i=468,r={scroll:s.scroll||s.scrollTo,scrollBy:s.scrollBy,elementScroll:t.prototype.scroll||a,scrollIntoView:t.prototype.scrollIntoView},n=s.performance&&s.performance.now?s.performance.now.bind(s.performance):Date.now;function o(m){const w=["MSIE ","Trident/","Edge/"];return new RegExp(w.join("|")).test(m)}const l=o(s.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=s.getComputedStyle(m,null)["overflow"+w];return v==="auto"||v==="scroll"}function p(m){const w=h(m,"Y")&&f(m,"Y"),v=h(m,"X")&&f(m,"X");return w||v}function y(m){for(;m!==e.body&&p(m)===!1;)m=m.parentNode||m.host;return m}function b(m){const w=n();let v,x,R,_=(w-m.startTime)/i;_=_>1?1:_,v=u(_),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)&&s.requestAnimationFrame(b.bind(s,m))}function d(m,w,v){let x,R,_,z;const A=n();m===e.body?(x=s,R=s.scrollX||s.pageXOffset,_=s.scrollY||s.pageYOffset,z=r.scroll):(x=m,R=m.scrollLeft,_=m.scrollTop,z=a),b({scrollable:x,method:z,startTime:A,startX:R,startY:_,x:w,y:v})}s.scroll=s.scrollTo=function(){if(arguments[0]!==void 0){if(c(arguments[0])===!0){r.scroll.call(s,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:s.scrollX||s.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:s.scrollY||s.pageYOffset);return}d.call(s,e.body,arguments[0].left!==void 0?~~arguments[0].left:s.scrollX||s.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:s.scrollY||s.pageYOffset)}},s.scrollBy=function(){if(arguments[0]!==void 0){if(c(arguments[0])){r.scrollBy.call(s,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}d.call(s,e.body,~~arguments[0].left+(s.scrollX||s.pageXOffset),~~arguments[0].top+(s.scrollY||s.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");r.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;d.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){r.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){r.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const m=y(this),w=m.getBoundingClientRect(),v=this.getBoundingClientRect();m!==e.body?(d.call(this,m,m.scrollLeft+v.left-w.left,m.scrollTop+v.top-w.top),s.getComputedStyle(m).position!=="fixed"&&s.scrollBy({left:w.left,top:w.top,behavior:"smooth"})):s.scrollBy({left:v.left,top:v.top,behavior:"smooth"})}}class Id{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 r=Math.floor((t+i)/2);if(this.actions[r].delay<e.delay)t=r+1;else if(this.actions[r].delay>e.delay)i=r-1;else return r+1}return t}}function Cn(s,e){if(s.type===K.IncrementalSnapshot&&s.data.source===F.MouseMove&&s.data.positions&&s.data.positions.length){const t=s.data.positions[0].timeOffset,i=s.timestamp+t;return s.delay=i-e,i-e}return s.delay=s.timestamp-e,s.delay}/*! *****************************************************************************
|
|
70
62
|
Copyright (c) Microsoft Corporation.
|
|
71
63
|
|
|
72
64
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -79,14 +71,14 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
79
71
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
80
72
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
81
73
|
PERFORMANCE OF THIS SOFTWARE.
|
|
82
|
-
***************************************************************************** */function wn(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 Je;(function(r){r[r.NotStarted=0]="NotStarted",r[r.Running=1]="Running",r[r.Stopped=2]="Stopped"})(Je||(Je={}));var kl={type:"xstate.init"};function Ki(r){return r===void 0?[]:[].concat(r)}function He(r){return{type:"xstate.assign",assignment:r}}function vn(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 Ei(r){return function(e){return r===e}}function Pl(r){return typeof r=="string"?{type:r}:r}function bn(r,e){return{value:r,context:e,actions:[],changed:!1,matches:Ei(r)}}function Cn(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 Ll(r,e){e===void 0&&(e={});var t=wn(Cn(Ki(r.states[r.initial].entry).map(function(n){return vn(n,e.actions)}),r.context,kl),2),i=t[0],s=t[1],o={config:r,_options:e,initialState:{value:r.initial,actions:i,context:s,matches:Ei(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,m=Pl(l),g=r.states[h];if(g.on){var E=Ki(g.on[m.type]);try{for(var p=function(z){var he=typeof Symbol=="function"&&Symbol.iterator,le=he&&z[he],te=0;if(le)return le.call(z);if(z&&typeof z.length=="number")return{next:function(){return z&&te>=z.length&&(z=void 0),{value:z&&z[te++],done:!z}}};throw new TypeError(he?"Object is not iterable.":"Symbol.iterator is not defined.")}(E),d=p.next();!d.done;d=p.next()){var w=d.value;if(w===void 0)return bn(h,f);var v=typeof w=="string"?{target:w}:w,A=v.target,M=v.actions,O=M===void 0?[]:M,B=v.cond,x=B===void 0?function(){return!0}:B,V=A===void 0,W=A!=null?A:h,ce=r.states[W];if(x(f,m)){var ue=wn(Cn((V?Ki(O):[].concat(g.exit,O,ce.entry).filter(function(z){return z})).map(function(z){return vn(z,o._options.actions)}),f,m),3),ee=ue[0],U=ue[1],ae=ue[2],_=A!=null?A:h;return{value:_,context:U,actions:ee,changed:A!==h||ee.length>0||ae,matches:Ei(_)}}}}catch(z){a={error:z}}finally{try{d&&!d.done&&(u=p.return)&&u.call(p)}finally{if(a)throw a.error}}}return bn(h,f)}};return o}var Sn=function(r,e){return r.actions.forEach(function(t){var i=t.exec;return i&&i(r.context,e)})};function $l(r){var e=r.initialState,t=Je.NotStarted,i=new Set,s={_machine:r,send:function(o){t===Je.Running&&(e=r.transition(e,o),Sn(e,Pl(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:Ei(n.value)}}return t=Je.Running,Sn(e,kl),s},stop:function(){return t=Je.Stopped,i.clear(),s},get state(){return e},get status(){return t}};return s}function Mp(r,e){for(let t=r.length-1;t>=0;t--){const i=r[t];if(i.type===K.Meta&&i.timestamp<=e)return r.slice(t)}return r}function Ip(r,{getCastFn:e,applyEventsSynchronously:t,emitter:i}){const s=Ll({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:He({lastPlayedEvent:(o,n)=>n.type==="CAST_EVENT"?n.payload.event:o.lastPlayedEvent}),recordTimeOffset:He((o,n)=>{let l=o.timeOffset;return"payload"in n&&"timeOffset"in n.payload&&(l=n.payload.timeOffset),oe(T({},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 g of a)yn(g,u);const h=Mp(a,u);let f=c==null?void 0:c.timestamp;(c==null?void 0:c.type)===K.IncrementalSnapshot&&c.data.source===L.MouseMove&&(f=c.timestamp+((n=c.data.positions[0])==null?void 0:n.timeOffset)),u<(f||0)&&i.emit(k.PlayBack);const m=new Array;for(const g of h)if(!(f&&f<u&&(g.timestamp<=f||g===c)))if(g.timestamp<=u)m.push(g);else{const E=e(g,!1);l.addAction({doAction:()=>{E()},delay:g.delay})}t(m),i.emit(k.Flush),l.start()},pause(o){o.timer.clear()},resetLastPlayedEvent:He(o=>oe(T({},o),{lastPlayedEvent:null})),startLive:He({baselineTime:(o,n)=>(o.timer.start(),n.type==="TO_LIVE"&&n.payload.baselineTime?n.payload.baselineTime:Date.now())}),addEvent:He((o,n)=>{const{baselineTime:l,timer:a,events:u}=o;if(n.type==="ADD_EVENT"){const{event:c}=n.payload;yn(c,l);let h=u.length-1;if(!u[h]||u[h].timestamp<=c.timestamp)u.push(c);else{let g=-1,E=0;for(;E<=h;){const p=Math.floor((E+h)/2);u[p].timestamp<=c.timestamp?E=p+1:h=p-1}g===-1&&(g=E),u.splice(g,0,c)}const f=c.timestamp<l,m=e(c,f);f?m():a.isActive()&&a.addAction({doAction:()=>{m()},delay:c.delay})}return oe(T({},o),{events:u})})}});return $l(s)}function Op(r){const e=Ll({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:He({normalSpeed:t=>t.timer.speed}),restoreSpeed:t=>{t.timer.setSpeed(t.normalSpeed)}}});return $l(e)}const Dp=r=>[`.${r} { background: currentColor }`,"noscript { display: none !important; }"],En=new Map;function Fl(r,e){let t=En.get(r);return t||(t=new Map,En.set(r,t)),t.has(e)||t.set(e,[]),t.get(e)}function ke(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 ke(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 Fl(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(ke(r,e,t))))}else{if("base64"in i)return Sp(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(ke(r,e,t)));return new Blob(s,{type:i.type})}}else if(Array.isArray(i))return await Promise.all(i.map(ke(r,e,t)));return i}}function _p(r,e){try{return e===Si.WebGL?r.getContext("webgl")||r.getContext("experimental-webgl"):r.getContext("webgl2")}catch(t){return null}}const Tp=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function kp(r,e){if(!(e!=null&&e.constructor))return;const{name:t}=e.constructor;if(!Tp.includes(t))return;const i=Fl(r,t);i.includes(e)||i.push(e)}async function Pp({mutation:r,target:e,type:t,imageMap:i,errorHandler:s}){try{const o=_p(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(ke(i,o))),a=n.apply(o,l);kp(o,a);const u=!1}catch(o){s(r,o)}}async function Lp({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(ke(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 An({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([Si.WebGL,Si.WebGL2].includes(e.type)){for(let a=0;a<l.length;a++){const u=l[a];await Pp({mutation:u,type:e.type,target:t,imageMap:i,errorHandler:o})}return}await Lp({event:r,mutations:l,target:t,imageMap:i,errorHandler:o})}catch(n){o(e,n)}}class $p{constructor(e){R(this,"mediaMap",new Map),R(this,"warn"),R(this,"service"),R(this,"speedService"),R(this,"emitter"),R(this,"getCurrentTime"),R(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(k.Start,this.start.bind(this)),this.emitter.on(k.SkipStart,this.start.bind(this)),this.emitter.on(k.Pause,this.pause.bind(this)),this.emitter.on(k.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 m,g,E,p,d;const s=this.mediaMap.get(e),{type:o,playbackRate:n,currentTime:l,muted:a,volume:u,loop:c}=i;return{isPlaying:o===Lr.Play||o!==Lr.Pause&&((s==null?void 0:s.isPlaying)||e.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:(m=l!=null?l:s==null?void 0:s.currentTimeAtLastInteraction)!=null?m:0,lastInteractionTimeOffset:t,playbackRate:(g=n!=null?n:s==null?void 0:s.playbackRate)!=null?g:1,volume:(E=u!=null?u:s==null?void 0:s.volume)!=null?E:1,muted:(p=a!=null?a:s==null?void 0:s.muted)!=null?p:e.getAttribute("muted")===null,loop:(d=c!=null?c:s==null?void 0:s.loop)!=null?d: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 m=0;typeof l.rr_mediaCurrentTime=="number"&&(m=l.rr_mediaCurrentTime),this.mediaMap.set(s,{isPlaying:a,currentTimeAtLastInteraction:m,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 ri(r,e){if(r.nodeName!=="DIALOG"||r instanceof Se)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 Fp(r,e){if(r.nodeName!=="DIALOG"||r instanceof Se)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 Bp=5*1e3,Up=Tl||xp,xn="[replayer]",Qi={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Rn(r){return r.type==K.IncrementalSnapshot&&(r.data.source==L.TouchMove||r.data.source==L.MouseInteraction&&r.data.type==se.TouchStart)}class zp{constructor(e,t){if(R(this,"wrapper"),R(this,"iframe"),R(this,"service"),R(this,"speedService"),R(this,"config"),R(this,"usingVirtualDom",!1),R(this,"virtualDom",new at),R(this,"mouse"),R(this,"mouseTail",null),R(this,"tailPositions",[]),R(this,"emitter",Up()),R(this,"nextUserInteractionEvent"),R(this,"legacy_missingNodeRetryMap",{}),R(this,"cache",js()),R(this,"imageMap",new Map),R(this,"canvasEventMap",new Map),R(this,"mirror",qn()),R(this,"styleMirror",new Cp),R(this,"mediaManager"),R(this,"firstFullSnapshot",null),R(this,"newDocumentQueue",[]),R(this,"mousePos",null),R(this,"touchActive",null),R(this,"lastMouseDownEvent",null),R(this,"lastHoveredRootNode"),R(this,"lastSelectionData",null),R(this,"constructedStyleMutations",[]),R(this,"adoptedStyleSheets",[]),R(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)))}),R(this,"applyEventsSynchronously",l=>{for(const a of l){switch(a.type){case K.DomContentLoaded:case K.Load:case K.Custom:continue;case K.FullSnapshot:case K.Meta:case K.Plugin:case K.IncrementalSnapshot:break}this.getCastFn(a,!0)()}}),R(this,"getCastFn",(l,a=!1)=>{let u;switch(l.type){case K.DomContentLoaded:case K.Load:break;case K.Custom:u=()=>{this.emitter.emit(k.CustomEvent,l)};break;case K.Meta:u=()=>this.emitter.emit(k.Resize,{width:l.data.width,height:l.data.height});break;case K.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 K.IncrementalSnapshot:u=()=>{if(this.applyIncremental(l,a),!a&&(l===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),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,f={speed:Math.min(Math.round(h/Bp),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:f}),this.emitter.emit(k.SkipStart,f)}}};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(k.Finish))};let m=50;l.type===K.IncrementalSnapshot&&l.data.source===L.MouseMove&&l.data.positions.length&&(m+=Math.max(0,-l.data.positions[0].timeOffset)),setTimeout(f,m)}this.emitter.emit(k.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:Qi,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(k.Resize,this.handleResize),this.setupDom();for(const l of this.config.plugins||[])l.getMirror&&l.getMirror({nodeMirror:this.mirror});this.emitter.on(k.Flush,()=>{if(this.usingVirtualDom){const l={mirror:this.mirror,applyCanvas:(a,u,c)=>{An({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===L.StyleSheetRule?this.applyStyleSheetRule(a,u):a.source===L.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{bi(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=Ci(u.node,this.mirror,this.virtualDom.mirror);bi(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(k.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});const s=new Np([],{speed:this.config.speed});this.service=Ip({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(k.StateChange,{player:l})}),this.speedService=Op({normalSpeed:-1,timer:s}),this.speedService.start(),this.speedService.subscribe(l=>{this.emitter.emit(k.StateChange,{speed:l})}),this.mediaManager=new $p({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===K.Meta),n=this.service.state.context.events.find(l=>l.type===K.FullSnapshot);if(o){const{width:l,height:a}=o.data;setTimeout(()=>{this.emitter.emit(k.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(Rn)&&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(k.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(k.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(k.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(k.Destroy)}startLive(e){this.service.send({type:"TO_LIVE",payload:{baselineTime:e}})}addEvent(e){const t=this.config.unpackFn?this.config.unpackFn(e):e;Rn(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=js()}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&&(Rp(this.iframe.contentWindow,this.iframe.contentDocument),wp(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(),Ic(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=>ri(a)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(k.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(e,t){var i;const s=Dp(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,Il(o,this.virtualDom.unserializedId)),e.insertBefore(o,t),o.rules.push({source:L.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)}}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)===Te.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})};wt(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=>ri(l))}collectIframeAndAttachDocument(e,t){if(Ji(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(k.Start,n),this.emitter.on(k.Pause,n);const l=()=>{this.emitter.off(k.Start,n),this.emitter.off(k.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(k.LoadStylesheetEnd),s&&clearTimeout(s),l())}))}),i.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(k.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===K.IncrementalSnapshot&&t.data.source===L.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(ke(this.imageMap,null,i)));return oe(T({},o),{args:n})}));i.isUnchanged===!1&&this.canvasEventMap.set(t,oe(T({},e),{commands:s}))}else{const s=await Promise.all(e.args.map(ke(this.imageMap,null,i)));i.isUnchanged===!1&&this.canvasEventMap.set(t,oe(T({},e),{args:s}))}}}applyIncremental(e,t){var i,s,o;const{data:n}=e;switch(n.source){case L.Mutation:{try{this.applyMutation(n,t)}catch(l){this.warn(`Exception in mutation ${l.message||l}`,n)}break}case L.Drag:case L.TouchMove:case L.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 L.MouseInteraction:{if(n.id===-1)break;const l=new Event(Ea(se[n.type])),a=this.mirror.getNode(n.id);if(!a)return this.debugNodeNotFound(n,n.id);this.emitter.emit(k.MouseInteraction,{type:n.type,target:a});const{triggerFocus:u}=this.config;switch(n.type){case se.Blur:"blur"in a&&a.blur();break;case se.Focus:u&&a.focus&&a.focus({preventScroll:!0});break;case se.Click:case se.TouchStart:case se.TouchEnd:case se.MouseDown:case se.MouseUp:t?(n.type===se.TouchStart?this.touchActive=!0:n.type===se.TouchEnd&&(this.touchActive=!1),n.type===se.MouseDown?this.lastMouseDownEvent=[a,l]:n.type===se.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:n.x||0,y:n.y||0,id:n.id,debugData:n}):(n.type===se.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(n.x||0,n.y||0,n.id,t,n),n.type===se.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):n.type===se.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):n.type===se.TouchEnd?this.mouse.classList.remove("touch-active"):a.dispatchEvent(l));break;case se.TouchCancel:t?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:a.dispatchEvent(l)}break}case L.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 L.ViewportResize:this.emitter.emit(k.Resize,{width:n.width,height:n.height});break;case L.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 L.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 L.StyleSheetRule:case L.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 L.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);An({event:e,mutation:n,target:l,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case L.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 L.Selection:{if(t){this.lastSelectionData=n;break}this.applySelection(n);break}case L.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(n):this.applyAdoptedStyleSheet(n);break}}}applyMutation(e,t){if(this.config.useVirtualDom&&!this.usingVirtualDom&&t&&(this.usingVirtualDom=!0,Qf(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=Ml(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&&ti(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(m){if(m instanceof DOMException)this.warn("parent could not remove child in mutation",f,h,e);else throw m}});const s=T({},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===Te.Document?this.newDocumentQueue.push(u):o.push(u);u.node.isShadow&&(ti(f)||f.attachShadow({mode:"open"}),f=f.shadowRoot);let m=null,g=null;if(u.previousId&&(m=i.getNode(u.previousId)),u.nextId&&(g=i.getNode(u.nextId)),n(u))return o.push(u);if(u.node.rootId&&!i.getNode(u.node.rootId))return;const E=u.node.rootId?i.getNode(u.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(Ji(f,i)){this.attachDocumentToIframe(u,f);return}const p=(v,A)=>{if(!this.usingVirtualDom){ri(v);for(const M of this.config.plugins||[])M.onBuild&&M.onBuild(v,{id:A,replayer:this})}},d=wt(u.node,{doc:E,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:p});if(u.previousId===-1||u.nextId===-1){s[u.node.id]={node:d,mutation:u};return}const w=i.getMeta(f);if(w&&w.type===Te.Element&&u.node.type===Te.Text){const v=Array.isArray(f.childNodes)?f.childNodes:Array.from(f.childNodes);if(w.tagName==="textarea")for(const A of v)A.nodeType===f.TEXT_NODE&&f.removeChild(A);else if(w.tagName==="style"&&v.length===1)for(const A of v)A.nodeType===f.TEXT_NODE&&!i.hasNode(A)&&(d.textContent=A.textContent,f.removeChild(A))}else if((w==null?void 0:w.type)===Te.Document){const v=f;u.node.type===Te.DocumentType&&((c=v.childNodes[0])==null?void 0:c.nodeType)===Node.DOCUMENT_TYPE_NODE&&v.removeChild(v.childNodes[0]),d.nodeName==="HTML"&&v.documentElement&&v.removeChild(v.documentElement)}if(m&&m.nextSibling&&m.nextSibling.parentNode?f.insertBefore(d,m.nextSibling):g&&g.parentNode?f.contains(g)?f.insertBefore(d,g):f.insertBefore(d,null):f.appendChild(d),p(d,u.node.id),this.usingVirtualDom&&d.nodeName==="#text"&&f.nodeName==="STYLE"&&((h=f.rules)==null?void 0:h.length)>0&&(f.rules=[]),Ji(d,this.mirror)){const v=this.mirror.getId(d),A=this.newDocumentQueue.find(M=>M.parentId===v);A&&(this.attachDocumentToIframe(A,d),this.newDocumentQueue=this.newDocumentQueue.filter(M=>M!==A))}(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(s,f,d,u)};e.adds.forEach(u=>{l(u)});const a=Date.now();for(;o.length;){const u=vp(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)?Dl(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),bp(e.texts).forEach(u=>{var c;const h=i.getNode(u.id);if(!h)return e.removes.find(m=>m.id===u.id)?void 0:this.warnNodeNotFound(e,u.id);const f=h.parentElement;if(u.value&&f&&f.tagName==="STYLE"?h.textContent=Oi(u.value,this.cache):h.textContent=u.value,this.usingVirtualDom){const m=h.parentNode;((c=m==null?void 0:m.rules)==null?void 0:c.length)>0&&(m.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 m=u.attributes[f];if(m===null)h.removeAttribute(f),f==="open"&&Fp(h,u);else if(typeof m=="string")try{if(f==="_cssText"&&(h.nodeName==="LINK"||h.nodeName==="STYLE"))try{const g=i.getMeta(h),E=wt(oe(T({},g),{attributes:T(T({},g.attributes),u.attributes)}),{doc:h.ownerDocument,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(g.attributes,u.attributes);const p=h.nextSibling,d=h.parentNode;if(E&&d){d.removeChild(h),d.insertBefore(E,p),i.replace(u.id,E);break}}catch(g){}if(f==="value"&&h.nodeName==="TEXTAREA"){const g=h;g.childNodes.forEach(p=>g.removeChild(p));const E=(c=h.ownerDocument)==null?void 0:c.createTextNode(m);E&&g.appendChild(E)}else h.setAttribute(f,m);f==="rr_open_mode"&&h.nodeName==="DIALOG"&&ri(h,u)}catch(g){this.warn("An error occurred may due to the checkout feature.",g)}else if(f==="style"){const g=m,E=h;for(const p in g)if(g[p]===!1)E.style.removeProperty(p);else if(g[p]instanceof Array){const d=g[p];E.style.setProperty(p,d[0],d[1])}else{const d=g[p];E.style.setProperty(p,d)}}}})}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)===Te.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===L.StyleSheetRule?this.applyStyleSheetRule(e,i):e.source===L.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}=mn(a);mt(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}=mn(l);mt(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&&mt(t.rules,e.index).style.setProperty(e.set.property,e.set.value,e.set.priority),e.remove&&mt(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(ti(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:L.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);ti(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=_l(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?Qi:Object.assign({},Qi,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!==K.IncrementalSnapshot?!1:e.data.source>L.Mutation&&e.data.source<=L.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(k.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(xn,...e)}debug(...e){this.config.showDebug&&this.config.logger.log(xn,...e)}}var ye=Uint8Array,Pe=Uint16Array,$r=Uint32Array,Bl=new ye([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]),Ul=new ye([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]),Vp=new ye([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),zl=function(r,e){for(var t=new Pe(31),i=0;i<31;++i)t[i]=e+=1<<r[i-1];for(var s=new $r(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]},Vl=zl(Bl,2),Wl=Vl[0],Wp=Vl[1];Wl[28]=258,Wp[258]=28;var Gp=zl(Ul,0),jp=Gp[0],Fr=new Pe(32768);for(var Z=0;Z<32768;++Z){var _e=(Z&43690)>>>1|(Z&21845)<<1;_e=(_e&52428)>>>2|(_e&13107)<<2,_e=(_e&61680)>>>4|(_e&3855)<<4,Fr[Z]=((_e&65280)>>>8|(_e&255)<<8)>>>1}var vt=function(r,e,t){for(var i=r.length,s=0,o=new Pe(e);s<i;++s)++o[r[s]-1];var n=new Pe(e);for(s=0;s<e;++s)n[s]=n[s-1]+o[s-1]<<1;var l;if(t){l=new Pe(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[Fr[h]>>>a]=u}else for(l=new Pe(i),s=0;s<i;++s)l[s]=Fr[n[r[s]-1]++]>>>15-r[s];return l},kt=new ye(288);for(var Z=0;Z<144;++Z)kt[Z]=8;for(var Z=144;Z<256;++Z)kt[Z]=9;for(var Z=256;Z<280;++Z)kt[Z]=7;for(var Z=280;Z<288;++Z)kt[Z]=8;var Gl=new ye(32);for(var Z=0;Z<32;++Z)Gl[Z]=5;var Yp=vt(kt,9,1),Zp=vt(Gl,5,1),qi=function(r){for(var e=r[0],t=1;t<r.length;++t)r[t]>e&&(e=r[t]);return e},ve=function(r,e,t){var i=e/8>>0;return(r[i]|r[i+1]<<8)>>>(e&7)&t},er=function(r,e){var t=e/8>>0;return(r[t]|r[t+1]<<8|r[t+2]<<16)>>>(e&7)},Hp=function(r){return(r/8>>0)+(r&7&&1)},jl=function(r,e,t){(t==null||t>r.length)&&(t=r.length);var i=new(r instanceof Pe?Pe:r instanceof $r?$r:ye)(t-e);return i.set(r.subarray(e,t)),i},Xp=function(r,e,t){var i=r.length,s=!e||t,o=!t||t.i;t||(t={}),e||(e=new ye(i*3));var n=function(G){var y=e.length;if(G>y){var I=new ye(Math.max(y*2,G));I.set(e),e=I}},l=t.f||0,a=t.p||0,u=t.b||0,c=t.l,h=t.d,f=t.m,m=t.n,g=i*8;do{if(!c){t.f=l=ve(r,a,1);var E=ve(r,a+1,3);if(a+=3,E)if(E==1)c=Yp,h=Zp,f=9,m=5;else if(E==2){var v=ve(r,a,31)+257,A=ve(r,a+10,15)+4,M=v+ve(r,a+5,31)+1;a+=14;for(var O=new ye(M),B=new ye(19),x=0;x<A;++x)B[Vp[x]]=ve(r,a+x*3,7);a+=A*3;var V=qi(B),W=(1<<V)-1;if(!o&&a+M*(V+7)>g)break;for(var ce=vt(B,V,1),x=0;x<M;){var ue=ce[ve(r,a,W)];a+=ue&15;var p=ue>>>4;if(p<16)O[x++]=p;else{var ee=0,U=0;for(p==16?(U=3+ve(r,a,3),a+=2,ee=O[x-1]):p==17?(U=3+ve(r,a,7),a+=3):p==18&&(U=11+ve(r,a,127),a+=7);U--;)O[x++]=ee}}var ae=O.subarray(0,v),_=O.subarray(v);f=qi(ae),m=qi(_),c=vt(ae,f,1),h=vt(_,m,1)}else throw"invalid block type";else{var p=Hp(a)+4,d=r[p-4]|r[p-3]<<8,w=p+d;if(w>i){if(o)throw"unexpected EOF";break}s&&n(u+d),e.set(r.subarray(p,w),u),t.b=u+=d,t.p=a=w*8;continue}if(a>g)throw"unexpected EOF"}s&&n(u+131072);for(var z=(1<<f)-1,he=(1<<m)-1,le=f+m+18;o||a+le<g;){var ee=c[er(r,a)&z],te=ee>>>4;if(a+=ee&15,a>g)throw"unexpected EOF";if(!ee)throw"invalid length/literal";if(te<256)e[u++]=te;else if(te==256){c=null;break}else{var Q=te-254;if(te>264){var x=te-257,we=Bl[x];Q=ve(r,a,(1<<we)-1)+Wl[x],a+=we}var Ee=h[er(r,a)&he],S=Ee>>>4;if(!Ee)throw"invalid distance";a+=Ee&15;var _=jp[S];if(S>3){var we=Ul[S];_+=er(r,a)&(1<<we)-1,a+=we}if(a>g)throw"unexpected EOF";s&&n(u+131072);for(var J=u+Q;u<J;u+=4)e[u]=e[u-_],e[u+1]=e[u+1-_],e[u+2]=e[u+2-_],e[u+3]=e[u+3-_];u=J}}t.l=c,t.p=a,t.b=u,c&&(l=1,t.m=f,t.d=h,t.n=m)}while(!l);return u==e.length?e:jl(e,0,u)},Jp=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 Kp(r,e){return Xp((Jp(r),r.subarray(2,-4)),e)}function Qp(r,e){for(var t=r.length,i=new ye(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 ye(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 jl(i,0,s)}function qp(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 Nn="v1",ed=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(qp(Kp(Qp(r,!0))));if(e.v===Nn)return e;throw new Error(`These events were packed with packer ${e.v} which is incompatible with current packer ${Nn}.`)}catch(e){throw console.error(e),new Error("Unknown data format.")}};var ot=(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))(ot||{}),Br=(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[r.VisibilityMutation=17]="VisibilityMutation",r))(Br||{});function Mn(r){let e="";return Object.keys(r).forEach(t=>{e+=`${t}: ${r[t]};`}),e}function dt(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 Yl=1e3,Ur=60*Yl,In=60*Ur;function si(r){if(r<=0)return"00:00";const e=Math.floor(r/In);r=r%In;const t=Math.floor(r/Ur);r=r%Ur;const i=Math.floor(r/Yl);return e?`${dt(e)}:${dt(t)}:${dt(i)}`:`${dt(t)}:${dt(i)}`}function td(r){return r.requestFullscreen?r.requestFullscreen():r.mozRequestFullScreen?r.mozRequestFullScreen():r.webkitRequestFullscreen?r.webkitRequestFullscreen():r.msRequestFullscreen?r.msRequestFullscreen():Promise.resolve()}function id(){return document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():Promise.resolve()}function On(){let r=!1;return["fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement"].forEach(e=>{e in document&&(r=r||!!document[e])}),r}function rd(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 Dn(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 sd(r){return r.type!==ot.IncrementalSnapshot?!1:r.data.source>Br.Mutation&&r.data.source<=Br.Input}function nd(r,e){const t=[];let i=r[0].timestamp;for(const s of r)sd(s)&&(s.timestamp-i>e&&t.push([i,s.timestamp]),i=s.timestamp);return t}const _n=.001,od=1;function gs(){return{normalizationApplied:!1,toReplayerTime:r=>r,toPlayerTime:r=>r,toReplayerAbsolute:r=>r,toPlayerAbsolute:r=>r,normalizeEvent:r=>r}}function ld(r,e=!0){if(!r.length){const l=gs();return{events:r,mapper:l}}const t=e?ad(r):null,i=r.map(l=>Zl(l,t)),s=Tn(r),o=Tn(i),n=fd(t,s,o);return{events:i,mapper:n}}function Tn(r){return r.reduce((e,t)=>Math.min(e,t.timestamp),1/0)}function ad(r){const e=r.find(l=>l.type===ot.FullSnapshot);if(!e)return null;const t=r.filter(l=>l.type===ot.IncrementalSnapshot&&l.timestamp<e.timestamp);if(!t.length)return null;const i=t.reduce((l,a)=>Math.min(l,a.timestamp),1/0),s=t.reduce((l,a)=>Math.max(l,a.timestamp),-1/0),o=Math.max(0,s-i),n=Math.max(o,od);return{earliestProblem:i,span:o,blockSpan:n,blockStart:e.timestamp+_n,tailShift:_n+n,firstFullTimestamp:e.timestamp}}function Zl(r,e){if(!e)return r;const t=r.type===ot.IncrementalSnapshot&&r.timestamp<e.firstFullTimestamp,i=ud(r.timestamp,t,e);return i===r.timestamp?r:oe(T({},r),{timestamp:i})}function ud(r,e,t){if(!t)return r;if(r>t.firstFullTimestamp)return r+t.tailShift;if(e&&r<t.firstFullTimestamp){if(t.span===0)return t.blockStart;const i=t.blockSpan/t.span;return t.blockStart+(r-t.earliestProblem)*i}return r}function cd(r,e){if(!e)return r;if(r>e.firstFullTimestamp)return r+e.tailShift;if(r>=e.earliestProblem&&r<e.firstFullTimestamp){if(e.span===0)return e.blockStart;const t=e.blockSpan/e.span;return e.blockStart+(r-e.earliestProblem)*t}return r}function hd(r,e){if(!e)return r;const t=e.blockStart+e.blockSpan,i=e.firstFullTimestamp+e.tailShift;if(r>=i)return r-e.tailShift;if(r>=e.blockStart&&r<=t){if(e.span===0)return e.earliestProblem;const s=e.blockSpan/e.span;return e.earliestProblem+(r-e.blockStart)/s}return r}function fd(r,e,t){const i=Number.isFinite(e)?e:0,s=Number.isFinite(t)?t:0,o=l=>cd(l,r),n=l=>hd(l,r);return{normalizationApplied:!!r,normalizeEvent:l=>Zl(l,r),toReplayerAbsolute:o,toPlayerAbsolute:n,toReplayerTime:l=>{const a=i+l;return o(a)-s},toPlayerTime:l=>{const a=s+l;return n(a)-i}}}function pd(r){let e,t,i,s,o,n,l,a,u;return{c(){e=ne("div"),t=ne("input"),i=ge(),s=ne("label"),o=ge(),n=ne("span"),l=Ue(r[3]),N(t,"type","checkbox"),N(t,"id",r[2]),t.disabled=r[1],N(t,"class","svelte-a6h7w7"),N(s,"for",r[2]),N(s,"class","svelte-a6h7w7"),N(n,"class","label svelte-a6h7w7"),N(e,"class","switch svelte-a6h7w7"),Qe(e,"disabled",r[1])},m(c,h){De(c,e,h),P(e,t),t.checked=r[0],P(e,i),P(e,s),P(e,o),P(e,n),P(n,l),a||(u=Xe(t,"change",r[4]),a=!0)},p(c,[h]){h&4&&N(t,"id",c[2]),h&2&&(t.disabled=c[1]),h&1&&(t.checked=c[0]),h&4&&N(s,"for",c[2]),h&8&&hi(l,c[3]),h&2&&Qe(e,"disabled",c[1])},i:bt,o:bt,d(c){c&&Ne(e),a=!1,u()}}}function dd(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 md extends jr{constructor(e){super(),Gr(this,e,dd,pd,zr,{disabled:1,checked:0,id:2,label:3})}}function kn(r,e,t){const i=r.slice();return i[40]=e[t],i}function Pn(r,e,t){const i=r.slice();return i[43]=e[t],i}function Ln(r,e,t){const i=r.slice();return i[46]=e[t],i}function $n(r){let e,t,i,s=si(r[6])+"",o,n,l,a,u,c,h,f,m,g,E=si(r[8].totalTime)+"",p,d,w,v,A,M,O,B,x,V,W,ce,ue,ee=Ge(r[13]),U=[];for(let S=0;S<ee.length;S+=1)U[S]=Fn(Ln(r,ee,S));let ae=Ge(r[9]),_=[];for(let S=0;S<ae.length;S+=1)_[S]=Bn(Pn(r,ae,S));function z(S,J){return S[7]==="playing"?yd:gd}let he=z(r),le=he(r),te=Ge(r[3]),Q=[];for(let S=0;S<te.length;S+=1)Q[S]=Un(kn(r,te,S));function we(S){r[30](S)}let Ee={id:"skip",disabled:r[10]==="skipping",label:"skip inactive"};return r[0]!==void 0&&(Ee.checked=r[0]),O=new md({props:Ee}),Be.push(()=>ma(O,"checked",we)),{c(){e=ne("div"),t=ne("div"),i=ne("span"),o=Ue(s),n=ge(),l=ne("div"),a=ne("div"),u=ge();for(let S=0;S<U.length;S+=1)U[S].c();c=ge();for(let S=0;S<_.length;S+=1)_[S].c();h=ge(),f=ne("div"),m=ge(),g=ne("span"),p=Ue(E),d=ge(),w=ne("div"),v=ne("button"),le.c(),A=ge();for(let S=0;S<Q.length;S+=1)Q[S].c();M=ge(),Kn(O.$$.fragment),x=ge(),V=ne("button"),V.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
|
|
74
|
+
***************************************************************************** */function Sn(s,e){var t=typeof Symbol=="function"&&s[Symbol.iterator];if(!t)return s;var i,r,n=t.call(s),o=[];try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){r={error:l}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(r)throw r.error}}return o}var Qe;(function(s){s[s.NotStarted=0]="NotStarted",s[s.Running=1]="Running",s[s.Stopped=2]="Stopped"})(Qe||(Qe={}));var Fl={type:"xstate.init"};function ts(s){return s===void 0?[]:[].concat(s)}function Je(s){return{type:"xstate.assign",assignment:s}}function En(s,e){return typeof(s=typeof s=="string"&&e&&e[s]?e[s]:s)=="string"?{type:s}:typeof s=="function"?{type:s.name,exec:s}:s}function Ai(s){return function(e){return s===e}}function Bl(s){return typeof s=="string"?{type:s}:s}function xn(s,e){return{value:s,context:e,actions:[],changed:!1,matches:Ai(s)}}function An(s,e,t){var i=e,r=!1;return[s.filter(function(n){if(n.type==="xstate.assign"){r=!0;var o=Object.assign({},i);return typeof n.assignment=="function"?o=n.assignment(i,t):Object.keys(n.assignment).forEach(function(l){o[l]=typeof n.assignment[l]=="function"?n.assignment[l](i,t):n.assignment[l]}),i=o,!1}return!0}),i,r]}function Ul(s,e){e===void 0&&(e={});var t=Sn(An(ts(s.states[s.initial].entry).map(function(o){return En(o,e.actions)}),s.context,Fl),2),i=t[0],r=t[1],n={config:s,_options:e,initialState:{value:s.initial,actions:i,context:r,matches:Ai(s.initial)},transition:function(o,l){var a,u,c=typeof o=="string"?{value:o,context:s.context}:o,h=c.value,f=c.context,p=Bl(l),y=s.states[h];if(y.on){var b=ts(y.on[p.type]);try{for(var d=function(W){var he=typeof Symbol=="function"&&Symbol.iterator,le=he&&W[he],te=0;if(le)return le.call(W);if(W&&typeof W.length=="number")return{next:function(){return W&&te>=W.length&&(W=void 0),{value:W&&W[te++],done:!W}}};throw new TypeError(he?"Object is not iterable.":"Symbol.iterator is not defined.")}(b),m=d.next();!m.done;m=d.next()){var w=m.value;if(w===void 0)return xn(h,f);var v=typeof w=="string"?{target:w}:w,x=v.target,R=v.actions,_=R===void 0?[]:R,z=v.cond,A=z===void 0?function(){return!0}:z,G=x===void 0,Y=x!=null?x:h,ce=s.states[Y];if(A(f,p)){var ue=Sn(An((G?ts(_):[].concat(y.exit,_,ce.entry).filter(function(W){return W})).map(function(W){return En(W,n._options.actions)}),f,p),3),ee=ue[0],V=ue[1],ae=ue[2],k=x!=null?x:h;return{value:k,context:V,actions:ee,changed:x!==h||ee.length>0||ae,matches:Ai(k)}}}}catch(W){a={error:W}}finally{try{m&&!m.done&&(u=d.return)&&u.call(d)}finally{if(a)throw a.error}}}return xn(h,f)}};return n}var Nn=function(s,e){return s.actions.forEach(function(t){var i=t.exec;return i&&i(s.context,e)})};function zl(s){var e=s.initialState,t=Qe.NotStarted,i=new Set,r={_machine:s,send:function(n){t===Qe.Running&&(e=s.transition(e,n),Nn(e,Bl(n)),i.forEach(function(o){return o(e)}))},subscribe:function(n){return i.add(n),n(e),{unsubscribe:function(){return i.delete(n)}}},start:function(n){if(n){var o=typeof n=="object"?n:{context:s.config.context,value:n};e={value:o.value,actions:[],context:o.context,matches:Ai(o.value)}}return t=Qe.Running,Nn(e,Fl),r},stop:function(){return t=Qe.Stopped,i.clear(),r},get state(){return e},get status(){return t}};return r}function Od(s,e){for(let t=s.length-1;t>=0;t--){const i=s[t];if(i.type===K.Meta&&i.timestamp<=e)return s.slice(t)}return s}function Dd(s,{getCastFn:e,applyEventsSynchronously:t,emitter:i}){const r=Ul({id:"player",context:s,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:Je({lastPlayedEvent:(n,o)=>o.type==="CAST_EVENT"?o.payload.event:n.lastPlayedEvent}),recordTimeOffset:Je((n,o)=>{let l=n.timeOffset;return"payload"in o&&"timeOffset"in o.payload&&(l=o.payload.timeOffset),oe(P({},n),{timeOffset:l,baselineTime:n.events[0].timestamp+l})}),play(n){var o;const{timer:l,events:a,baselineTime:u,lastPlayedEvent:c}=n;l.clear();for(const y of a)Cn(y,u);const h=Od(a,u);let f=c==null?void 0:c.timestamp;(c==null?void 0:c.type)===K.IncrementalSnapshot&&c.data.source===F.MouseMove&&(f=c.timestamp+((o=c.data.positions[0])==null?void 0:o.timeOffset)),u<(f||0)&&i.emit(L.PlayBack);const p=new Array;for(const y of h)if(!(f&&f<u&&(y.timestamp<=f||y===c)))if(y.timestamp<=u)p.push(y);else{const b=e(y,!1);l.addAction({doAction:()=>{b()},delay:y.delay})}t(p),i.emit(L.Flush),l.start()},pause(n){n.timer.clear()},resetLastPlayedEvent:Je(n=>oe(P({},n),{lastPlayedEvent:null})),startLive:Je({baselineTime:(n,o)=>(n.timer.start(),o.type==="TO_LIVE"&&o.payload.baselineTime?o.payload.baselineTime:Date.now())}),addEvent:Je((n,o)=>{const{baselineTime:l,timer:a,events:u}=n;if(o.type==="ADD_EVENT"){const{event:c}=o.payload;Cn(c,l);let h=u.length-1;if(!u[h]||u[h].timestamp<=c.timestamp)u.push(c);else{let y=-1,b=0;for(;b<=h;){const d=Math.floor((b+h)/2);u[d].timestamp<=c.timestamp?b=d+1:h=d-1}y===-1&&(y=b),u.splice(y,0,c)}const f=c.timestamp<l,p=e(c,f);f?p():a.isActive()&&a.addAction({doAction:()=>{p()},delay:c.delay})}return oe(P({},n),{events:u})})}});return zl(r)}function _d(s){const e=Ul({id:"speed",context:s,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:Je({normalSpeed:t=>t.timer.speed}),restoreSpeed:t=>{t.timer.setSpeed(t.normalSpeed)}}});return zl(e)}const Td=s=>[`.${s} { background: currentColor }`,"noscript { display: none !important; }"],Mn=new Map;function Vl(s,e){let t=Mn.get(s);return t||(t=new Map,Mn.set(s,t)),t.has(e)||t.set(e,[]),t.get(e)}function Le(s,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 r=await Le(s,e,t)(i.args);return await createImageBitmap.apply(null,r)}else if("index"in i){if(t||e===null)return i;const{rr_type:r,index:n}=i;return Vl(e,r)[n]}else if("args"in i){const{rr_type:r,args:n}=i,o=window[r];return new o(...await Promise.all(n.map(Le(s,e,t))))}else{if("base64"in i)return xd(i.base64);if("src"in i){const r=s.get(i.src);if(r)return r;{const n=new Image;return n.src=i.src,s.set(i.src,n),n}}else if("data"in i&&i.rr_type==="Blob"){const r=await Promise.all(i.data.map(Le(s,e,t)));return new Blob(r,{type:i.type})}}else if(Array.isArray(i))return await Promise.all(i.map(Le(s,e,t)));return i}}function kd(s,e){try{return e===xi.WebGL?s.getContext("webgl")||s.getContext("experimental-webgl"):s.getContext("webgl2")}catch(t){return null}}const Pd=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function Ld(s,e){if(!(e!=null&&e.constructor))return;const{name:t}=e.constructor;if(!Pd.includes(t))return;const i=Vl(s,t);i.includes(e)||i.push(e)}async function $d({mutation:s,target:e,type:t,imageMap:i,errorHandler:r}){try{const n=kd(e,t);if(!n)return;if(s.setter){n[s.property]=s.args[0];return}const o=n[s.property],l=await Promise.all(s.args.map(Le(i,n))),a=o.apply(n,l);Ld(n,a);const u=!1}catch(n){r(s,n)}}async function Fd({event:s,mutations:e,target:t,imageMap:i,errorHandler:r}){const n=t.getContext("2d");if(!n){r(e[0],new Error("Canvas context is null"));return}const o=e.map(async a=>Promise.all(a.args.map(Le(i,n))));(await Promise.all(o)).forEach((a,u)=>{const c=e[u];try{if(c.setter){n[c.property]=c.args[0];return}const h=n[c.property];c.property==="drawImage"&&typeof c.args[0]=="string"?(i.get(s),h.apply(n,c.args)):h.apply(n,a)}catch(h){r(c,h)}})}async function Rn({event:s,mutation:e,target:t,imageMap:i,canvasEventMap:r,errorHandler:n}){try{const o=r.get(s)||e,l="commands"in o?o.commands:[o];if([xi.WebGL,xi.WebGL2].includes(e.type)){for(let a=0;a<l.length;a++){const u=l[a];await $d({mutation:u,type:e.type,target:t,imageMap:i,errorHandler:n})}return}await Fd({event:s,mutations:l,target:t,imageMap:i,errorHandler:n})}catch(o){n(e,o)}}class Bd{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(L.Start,this.start.bind(this)),this.emitter.on(L.SkipStart,this.start.bind(this)),this.emitter.on(L.Pause,this.pause.bind(this)),this.emitter.on(L.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 n=(e-i.lastInteractionTimeOffset)/1e3*i.playbackRate,o="duration"in t&&t.duration;if(Number.isNaN(o)){this.waitForMetadata(t);return}let l=i.currentTimeAtLastInteraction+n;t.loop&&o!==!1&&(l=l%o),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 p,y,b,d,m;const r=this.mediaMap.get(e),{type:n,playbackRate:o,currentTime:l,muted:a,volume:u,loop:c}=i;return{isPlaying:n===Us.Play||n!==Us.Pause&&((r==null?void 0:r.isPlaying)||e.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:(p=l!=null?l:r==null?void 0:r.currentTimeAtLastInteraction)!=null?p:0,lastInteractionTimeOffset:t,playbackRate:(y=o!=null?o:r==null?void 0:r.playbackRate)!=null?y:1,volume:(b=u!=null?u:r==null?void 0:r.volume)!=null?b:1,muted:(d=a!=null?a:r==null?void 0:r.muted)!=null?d:e.getAttribute("muted")===null,loop:(m=c!=null?c:r==null?void 0:r.loop)!=null?m:e.getAttribute("loop")===null}}syncTargetWithState(e){const t=this.mediaMap.get(e);if(!t)return;const{muted:i,loop:r,volume:n,isPlaying:o}=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!==n&&(e.volume=n),e.muted=i,e.loop=r,e.playbackRate!==a&&(e.playbackRate=a),o&&!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 r=e,n=i.getMeta(r);if(!n||!("attributes"in n))return;const o=this.service.state.matches("paused"),l=n.attributes;let a=!1;l.rr_mediaState?a=l.rr_mediaState==="played":a=r.getAttribute("autoplay")!==null,a&&o&&r.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=r.getAttribute("muted")!==null;let h=!1;typeof l.rr_mediaLoop=="boolean"?h=l.rr_mediaLoop:h=r.getAttribute("loop")!==null;let f=1;typeof l.rr_mediaVolume=="number"&&(f=l.rr_mediaVolume);let p=0;typeof l.rr_mediaCurrentTime=="number"&&(p=l.rr_mediaCurrentTime),this.mediaMap.set(r,{isPlaying:a,currentTimeAtLastInteraction:p,lastInteractionTimeOffset:t,playbackRate:u,volume:f,muted:c,loop:h}),this.syncTargetWithState(r)}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 ni(s,e){if(s.nodeName!=="DIALOG"||s instanceof Se)return;const t=s,i=t.open,r=i&&t.matches("dialog:modal"),n=t.getAttribute("rr_open_mode"),o=typeof(e==null?void 0:e.attributes.open)=="string"||typeof t.getAttribute("open")=="string",l=n==="modal";if(!(i&&!(r&&n==="non-modal"||!r&&l))){if(!t.isConnected){console.warn("dialog is not attached to the dom",t);return}i&&t.close(),o&&(l?t.showModal():t.show())}}function Ud(s,e){if(s.nodeName!=="DIALOG"||s instanceof Se)return;const t=s;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 zd=5*1e3,Vd=$l||Md,In="[replayer]",is={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function On(s){return s.type==K.IncrementalSnapshot&&(s.data.source==F.TouchMove||s.data.source==F.MouseInteraction&&s.data.type==re.TouchStart)}class Wd{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 ct),N(this,"mouse"),N(this,"mouseTail",null),N(this,"tailPositions",[]),N(this,"emitter",Vd()),N(this,"nextUserInteractionEvent"),N(this,"legacy_missingNodeRetryMap",{}),N(this,"cache",Xr()),N(this,"imageMap",new Map),N(this,"canvasEventMap",new Map),N(this,"mirror",so()),N(this,"styleMirror",new Ed),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 K.DomContentLoaded:case K.Load:case K.Custom:continue;case K.FullSnapshot:case K.Meta:case K.Plugin:case K.IncrementalSnapshot:break}this.getCastFn(a,!0)()}}),N(this,"getCastFn",(l,a=!1)=>{let u;switch(l.type){case K.DomContentLoaded:case K.Load:break;case K.Custom:u=()=>{this.emitter.emit(L.CustomEvent,l)};break;case K.Meta:u=()=>this.emitter.emit(L.Resize,{width:l.data.width,height:l.data.height});break;case K.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 K.IncrementalSnapshot:u=()=>{if(this.applyIncremental(l,a),!a&&(l===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),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,f={speed:Math.min(Math.round(h/zd),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:f}),this.emitter.emit(L.SkipStart,f)}}};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(L.Finish))};let p=50;l.type===K.IncrementalSnapshot&&l.data.source===F.MouseMove&&l.data.positions.length&&(p+=Math.max(0,-l.data.positions[0].timeOffset)),setTimeout(f,p)}this.emitter.emit(L.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:is,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(L.Resize,this.handleResize),this.setupDom();for(const l of this.config.plugins||[])l.getMirror&&l.getMirror({nodeMirror:this.mirror});this.emitter.on(L.Flush,()=>{if(this.usingVirtualDom){const l={mirror:this.mirror,applyCanvas:(a,u,c)=>{Rn({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===F.StyleSheetRule?this.applyStyleSheetRule(a,u):a.source===F.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{Si(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=Ei(u.node,this.mirror,this.virtualDom.mirror);Si(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(L.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});const r=new Id([],{speed:this.config.speed});this.service=Dd({events:e.map(l=>t&&t.unpackFn?t.unpackFn(l):l).sort((l,a)=>l.timestamp-a.timestamp),timer:r,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(L.StateChange,{player:l})}),this.speedService=_d({normalSpeed:-1,timer:r}),this.speedService.start(),this.speedService.subscribe(l=>{this.emitter.emit(L.StateChange,{speed:l})}),this.mediaManager=new Bd({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});const n=this.service.state.context.events.find(l=>l.type===K.Meta),o=this.service.state.context.events.find(l=>l.type===K.FullSnapshot);if(n){const{width:l,height:a}=n.data;setTimeout(()=>{this.emitter.emit(L.Resize,{width:l,height:a})},0)}o&&setTimeout(()=>{var l;this.firstFullSnapshot||(this.firstFullSnapshot=o,this.rebuildFullSnapshot(o),(l=this.iframe.contentWindow)==null||l.scrollTo(o.data.initialOffset))},1),this.service.state.context.events.find(On)&&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(L.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(L.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(L.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(L.Destroy)}startLive(e){this.service.send({type:"TO_LIVE",payload:{baselineTime:e}})}addEvent(e){const t=this.config.unpackFn?this.config.unpackFn(e):e;On(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=Xr()}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","allow-scripts"];this.config.UNSAFE_replayCanvas,this.iframe.style.display="none",this.iframe.setAttribute("sandbox",e.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(Rd(this.iframe.contentWindow,this.iframe.contentDocument),bd(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=[],r=new Set,n=(a,u)=>{if(a.nodeName==="DIALOG"&&r.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(),_c(e.data.node,{doc:this.iframe.contentDocument,afterAppend:n,cache:this.cache,mirror:this.mirror}),n(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:o,head:l}=this.iframe.contentDocument;this.insertStyleRules(o,l),r.forEach(a=>ni(a)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(L.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(e,t){var i;const r=Td(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&r.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),!!r.length)if(this.usingVirtualDom){const n=this.virtualDom.createElement("style");this.virtualDom.mirror.add(n,Tl(n,this.virtualDom.unserializedId)),e.insertBefore(n,t),n.rules.push({source:F.StyleSheetRule,adds:r.map((o,l)=>({rule:o,index:l}))})}else{const n=document.createElement("style");e.insertBefore(n,t);for(let o=0;o<r.length;o++)(i=n.sheet)==null||i.insertRule(r[o],o)}}attachDocumentToIframe(e,t){const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,r=[],n=new Set,o=(l,a)=>{l.nodeName==="DIALOG"&&n.add(l),this.collectIframeAndAttachDocument(r,l);const u=i.getMeta(l);if((u==null?void 0:u.type)===Pe.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})};St(e.node,{doc:t.contentDocument,mirror:i,hackCss:!0,skipChild:!1,afterAppend:o,cache:this.cache}),o(t.contentDocument,e.node.id);for(const{mutationInQueue:l,builtNode:a}of r)this.attachDocumentToIframe(l,a),this.newDocumentQueue=this.newDocumentQueue.filter(u=>u!==l);n.forEach(l=>ni(l))}collectIframeAndAttachDocument(e,t){if(es(t,this.mirror)){const i=this.newDocumentQueue.find(r=>r.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 r,n=this.service.state;const o=()=>{n=this.service.state};this.emitter.on(L.Start,o),this.emitter.on(L.Pause,o);const l=()=>{this.emitter.off(L.Start,o),this.emitter.off(L.Pause,o)};t.querySelectorAll('link[rel="stylesheet"]').forEach(a=>{a.sheet||(i.add(a),a.addEventListener("load",()=>{i.delete(a),i.size===0&&r!==-1&&(n.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(L.LoadStylesheetEnd),r&&clearTimeout(r),l())}))}),i.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(L.LoadStylesheetStart),r=setTimeout(()=>{n.matches("playing")&&this.play(this.getCurrentTime()),r=-1,l()},this.config.loadTimeout))}}async preloadAllImages(){const e=[];for(const t of this.service.state.context.events)t.type===K.IncrementalSnapshot&&t.data.source===F.CanvasMutation&&(e.push(this.deserializeAndPreloadCanvasEvents(t.data,t)),("commands"in t.data?t.data.commands:[t.data]).forEach(r=>{this.preloadImages(r,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"),r=i.getContext("2d"),n=r==null?void 0:r.createImageData(i.width,i.height);r==null||r.putImageData(n,0,0)}}async deserializeAndPreloadCanvasEvents(e,t){if(!this.canvasEventMap.has(t)){const i={isUnchanged:!0};if("commands"in e){const r=await Promise.all(e.commands.map(async n=>{const o=await Promise.all(n.args.map(Le(this.imageMap,null,i)));return oe(P({},n),{args:o})}));i.isUnchanged===!1&&this.canvasEventMap.set(t,oe(P({},e),{commands:r}))}else{const r=await Promise.all(e.args.map(Le(this.imageMap,null,i)));i.isUnchanged===!1&&this.canvasEventMap.set(t,oe(P({},e),{args:r}))}}}applyIncremental(e,t){var i,r,n;const{data:o}=e;switch(o.source){case F.Mutation:{try{this.applyMutation(o,t)}catch(l){this.warn(`Exception in mutation ${l.message||l}`,o)}break}case F.Drag:case F.TouchMove:case F.MouseMove:if(t){const l=o.positions[o.positions.length-1];this.mousePos={x:l.x,y:l.y,id:l.id,debugData:o}}else o.positions.forEach(l=>{const a={doAction:()=>{this.moveAndHover(l.x,l.y,l.id,t,o)},delay:l.timeOffset+e.timestamp-this.service.state.context.baselineTime};this.timer.addAction(a)}),this.timer.addAction({doAction(){},delay:e.delay-((i=o.positions[0])==null?void 0:i.timeOffset)});break;case F.MouseInteraction:{if(o.id===-1)break;const l=new Event(Ma(re[o.type])),a=this.mirror.getNode(o.id);if(!a)return this.debugNodeNotFound(o,o.id);this.emitter.emit(L.MouseInteraction,{type:o.type,target:a});const{triggerFocus:u}=this.config;switch(o.type){case re.Blur:"blur"in a&&a.blur();break;case re.Focus:u&&a.focus&&a.focus({preventScroll:!0});break;case re.Click:case re.TouchStart:case re.TouchEnd:case re.MouseDown:case re.MouseUp:t?(o.type===re.TouchStart?this.touchActive=!0:o.type===re.TouchEnd&&(this.touchActive=!1),o.type===re.MouseDown?this.lastMouseDownEvent=[a,l]:o.type===re.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:o.x||0,y:o.y||0,id:o.id,debugData:o}):(o.type===re.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x||0,o.y||0,o.id,t,o),o.type===re.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===re.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===re.TouchEnd?this.mouse.classList.remove("touch-active"):a.dispatchEvent(l));break;case re.TouchCancel:t?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:a.dispatchEvent(l)}break}case F.Scroll:{if(o.id===-1)break;if(this.usingVirtualDom){const l=this.virtualDom.mirror.getNode(o.id);if(!l)return this.debugNodeNotFound(o,o.id);l.scrollData=o;break}this.applyScroll(o,t);break}case F.ViewportResize:this.emitter.emit(L.Resize,{width:o.width,height:o.height});break;case F.Input:{if(o.id===-1)break;if(this.usingVirtualDom){const l=this.virtualDom.mirror.getNode(o.id);if(!l)return this.debugNodeNotFound(o,o.id);l.inputData=o;break}this.applyInput(o);break}case F.MediaInteraction:{const l=this.usingVirtualDom?this.virtualDom.mirror.getNode(o.id):this.mirror.getNode(o.id);if(!l)return this.debugNodeNotFound(o,o.id);const a=l,{events:u}=this.service.state.context;this.mediaManager.mediaMutation({target:a,timeOffset:e.timestamp-u[0].timestamp,mutation:o});break}case F.StyleSheetRule:case F.StyleDeclaration:{this.usingVirtualDom?o.styleId?this.constructedStyleMutations.push(o):o.id&&((r=this.virtualDom.mirror.getNode(o.id))==null||r.rules.push(o)):this.applyStyleSheetMutation(o);break}case F.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){const l=this.virtualDom.mirror.getNode(o.id);if(!l)return this.debugNodeNotFound(o,o.id);l.canvasMutations.push({event:e,mutation:o})}else{const l=this.mirror.getNode(o.id);if(!l)return this.debugNodeNotFound(o,o.id);Rn({event:e,mutation:o,target:l,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case F.Font:{try{const l=new FontFace(o.family,o.buffer?new Uint8Array(JSON.parse(o.fontSource)):o.fontSource,o.descriptors);(n=this.iframe.contentDocument)==null||n.fonts.add(l)}catch(l){this.warn(l)}break}case F.Selection:{if(t){this.lastSelectionData=o;break}this.applySelection(o);break}case F.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(o):this.applyAdoptedStyleSheet(o);break}case F.Visibility:{const{mutations:l}=o;for(const a of l){const u=this.usingVirtualDom?this.virtualDom.mirror.getNode(a.id):this.mirror.getNode(a.id);u&&u instanceof Element&&(u.style.visibility=a.isVisible?"visible":"hidden")}break}}}applyMutation(e,t){if(this.config.useVirtualDom&&!this.usingVirtualDom&&t&&(this.usingVirtualDom=!0,ed(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=_l(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&&si(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(p){if(p instanceof DOMException)this.warn("parent could not remove child in mutation",f,h,e);else throw p}});const r=P({},this.legacy_missingNodeRetryMap),n=[],o=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===Pe.Document?this.newDocumentQueue.push(u):n.push(u);u.node.isShadow&&(si(f)||f.attachShadow({mode:"open"}),f=f.shadowRoot);let p=null,y=null;if(u.previousId&&(p=i.getNode(u.previousId)),u.nextId&&(y=i.getNode(u.nextId)),o(u))return n.push(u);if(u.node.rootId&&!i.getNode(u.node.rootId))return;const b=u.node.rootId?i.getNode(u.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(es(f,i)){this.attachDocumentToIframe(u,f);return}const d=(v,x)=>{if(!this.usingVirtualDom){ni(v);for(const R of this.config.plugins||[])R.onBuild&&R.onBuild(v,{id:x,replayer:this})}},m=St(u.node,{doc:b,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:d});if(u.previousId===-1||u.nextId===-1){r[u.node.id]={node:m,mutation:u};return}const w=i.getMeta(f);if(w&&w.type===Pe.Element&&u.node.type===Pe.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)===Pe.Document){const v=f;u.node.type===Pe.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(p&&p.nextSibling&&p.nextSibling.parentNode?f.insertBefore(m,p.nextSibling):y&&y.parentNode?f.contains(y)?f.insertBefore(m,y):f.insertBefore(m,null):f.appendChild(m),d(m,u.node.id),this.usingVirtualDom&&m.nodeName==="#text"&&f.nodeName==="STYLE"&&((h=f.rules)==null?void 0:h.length)>0&&(f.rules=[]),es(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(r,f,m,u)};e.adds.forEach(u=>{l(u)});const a=Date.now();for(;n.length;){const u=Cd(n);if(n.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)?Pl(c,f=>{l(f)}):this.debug("Drop resolve tree since there is no parent for the root node.",c)}Object.keys(r).length&&Object.assign(this.legacy_missingNodeRetryMap,r),Sd(e.texts).forEach(u=>{var c;const h=i.getNode(u.id);if(!h)return e.removes.find(p=>p.id===u.id)?void 0:this.warnNodeNotFound(e,u.id);const f=h.parentElement;if(u.value&&f&&f.tagName==="STYLE"?h.textContent=_i(u.value,this.cache):h.textContent=u.value,this.usingVirtualDom){const p=h.parentNode;((c=p==null?void 0:p.rules)==null?void 0:c.length)>0&&(p.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 p=u.attributes[f];if(p===null)h.removeAttribute(f),f==="open"&&Ud(h,u);else if(typeof p=="string")try{if(f==="_cssText"&&(h.nodeName==="LINK"||h.nodeName==="STYLE"))try{const y=i.getMeta(h),b=St(oe(P({},y),{attributes:P(P({},y.attributes),u.attributes)}),{doc:h.ownerDocument,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(y.attributes,u.attributes);const d=h.nextSibling,m=h.parentNode;if(b&&m){m.removeChild(h),m.insertBefore(b,d),i.replace(u.id,b);break}}catch(y){}if(f==="value"&&h.nodeName==="TEXTAREA"){const y=h;y.childNodes.forEach(d=>y.removeChild(d));const b=(c=h.ownerDocument)==null?void 0:c.createTextNode(p);b&&y.appendChild(b)}else h.setAttribute(f,p);f==="rr_open_mode"&&h.nodeName==="DIALOG"&&ni(h,u)}catch(y){this.warn("An error occurred may due to the checkout feature.",y)}else if(f==="style"){const y=p,b=h;for(const d in y)if(y[d]===!1)b.style.removeProperty(d);else if(y[d]instanceof Array){const m=y[d];b.style.setProperty(d,m[0],m[1])}else{const m=y[d];b.style.setProperty(d,m)}}}})}applyScroll(e,t){var i,r;const n=this.mirror.getNode(e.id);if(!n)return this.debugNodeNotFound(e,e.id);const o=this.mirror.getMeta(n);if(n===this.iframe.contentDocument)(i=this.iframe.contentWindow)==null||i.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else if((o==null?void 0:o.type)===Pe.Document)(r=n.defaultView)==null||r.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else try{n.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:r,startOffset:n,end:o,endOffset:l})=>{const a=this.mirror.getNode(r),u=this.mirror.getNode(o);if(!a||!u)return;const c=new Range;c.setStart(a,n),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(r=>r.removeAllRanges()),i.forEach(r=>{var n;return r&&((n=r.selection)==null?void 0:n.addRange(r.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===F.StyleSheetRule?this.applyStyleSheetRule(e,i):e.source===F.StyleDeclaration&&this.applyStyleDeclaration(e,i))}applyStyleSheetRule(e,t){var i,r,n,o;if((i=e.adds)==null||i.forEach(({rule:l,index:a})=>{try{if(Array.isArray(a)){const{positions:u,index:c}=vn(a);vt(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){}}),(r=e.removes)==null||r.forEach(({index:l})=>{try{if(Array.isArray(l)){const{positions:a,index:u}=vn(l);vt(t.cssRules,a).deleteRule(u||0)}else t==null||t.deleteRule(l)}catch(a){}}),e.replace)try{(n=t.replace)==null||n.call(t,e.replace)}catch(l){}if(e.replaceSync)try{(o=t.replaceSync)==null||o.call(t,e.replaceSync)}catch(l){}}applyStyleDeclaration(e,t){e.set&&vt(t.rules,e.index).style.setProperty(e.set.property,e.set.value,e.set.priority),e.remove&&vt(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(si(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:F.StyleSheetRule,adds:l.rules},u)}catch(h){}});const r=10;let n=0;const o=(l,a)=>{const u=a.map(c=>this.styleMirror.getStyle(c)).filter(c=>c!==null);si(l)?l.shadowRoot.adoptedStyleSheets=u:l.nodeName==="#document"&&(l.adoptedStyleSheets=u),u.length!==a.length&&n<r&&(setTimeout(()=>o(l,a),0+100*n),n++)};o(i,e.styleIds)}legacy_resolveMissingNode(e,t,i,r){const{previousId:n,nextId:o}=r,l=n&&e[n],a=o&&e[o];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,r,n){const o=this.mirror.getNode(i);if(!o)return this.debugNodeNotFound(n,i);const l=Ll(o,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`,r||this.drawMouseTail({x:a,y:u}),this.hoverElements(o)}drawMouseTail(e){if(!this.mouseTail)return;const{lineCap:t,lineWidth:i,strokeStyle:r,duration:n}=this.config.mouseTail===!0?is:Object.assign({},is,this.config.mouseTail),o=()=>{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=r,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),o(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(l=>l!==e),o()},n/this.speedService.state.context.timer.speed)}hoverElements(e){var t;(t=this.lastHoveredRootNode||this.iframe.contentDocument)==null||t.querySelectorAll(".\\:hover").forEach(r=>{r.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!==K.IncrementalSnapshot?!1:e.data.source>F.Mutation&&e.data.source<=F.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(L.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(In,...e)}debug(...e){this.config.showDebug&&this.config.logger.log(In,...e)}}var ye=Uint8Array,$e=Uint16Array,zs=Uint32Array,Wl=new ye([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]),Gl=new ye([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]),Gd=new ye([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Yl=function(s,e){for(var t=new $e(31),i=0;i<31;++i)t[i]=e+=1<<s[i-1];for(var r=new zs(t[30]),i=1;i<30;++i)for(var n=t[i];n<t[i+1];++n)r[n]=n-t[i]<<5|i;return[t,r]},jl=Yl(Wl,2),Zl=jl[0],Yd=jl[1];Zl[28]=258,Yd[258]=28;var jd=Yl(Gl,0),Zd=jd[0],Vs=new $e(32768);for(var Z=0;Z<32768;++Z){var ke=(Z&43690)>>>1|(Z&21845)<<1;ke=(ke&52428)>>>2|(ke&13107)<<2,ke=(ke&61680)>>>4|(ke&3855)<<4,Vs[Z]=((ke&65280)>>>8|(ke&255)<<8)>>>1}var Et=function(s,e,t){for(var i=s.length,r=0,n=new $e(e);r<i;++r)++n[s[r]-1];var o=new $e(e);for(r=0;r<e;++r)o[r]=o[r-1]+n[r-1]<<1;var l;if(t){l=new $e(1<<e);var a=15-e;for(r=0;r<i;++r)if(s[r])for(var u=r<<4|s[r],c=e-s[r],h=o[s[r]-1]++<<c,f=h|(1<<c)-1;h<=f;++h)l[Vs[h]>>>a]=u}else for(l=new $e(i),r=0;r<i;++r)l[r]=Vs[o[s[r]-1]++]>>>15-s[r];return l},Ft=new ye(288);for(var Z=0;Z<144;++Z)Ft[Z]=8;for(var Z=144;Z<256;++Z)Ft[Z]=9;for(var Z=256;Z<280;++Z)Ft[Z]=7;for(var Z=280;Z<288;++Z)Ft[Z]=8;var Hl=new ye(32);for(var Z=0;Z<32;++Z)Hl[Z]=5;var Hd=Et(Ft,9,1),Xd=Et(Hl,5,1),ss=function(s){for(var e=s[0],t=1;t<s.length;++t)s[t]>e&&(e=s[t]);return e},ve=function(s,e,t){var i=e/8>>0;return(s[i]|s[i+1]<<8)>>>(e&7)&t},rs=function(s,e){var t=e/8>>0;return(s[t]|s[t+1]<<8|s[t+2]<<16)>>>(e&7)},Jd=function(s){return(s/8>>0)+(s&7&&1)},Xl=function(s,e,t){(t==null||t>s.length)&&(t=s.length);var i=new(s instanceof $e?$e:s instanceof zs?zs:ye)(t-e);return i.set(s.subarray(e,t)),i},Kd=function(s,e,t){var i=s.length,r=!e||t,n=!t||t.i;t||(t={}),e||(e=new ye(i*3));var o=function(j){var g=e.length;if(j>g){var D=new ye(Math.max(g*2,j));D.set(e),e=D}},l=t.f||0,a=t.p||0,u=t.b||0,c=t.l,h=t.d,f=t.m,p=t.n,y=i*8;do{if(!c){t.f=l=ve(s,a,1);var b=ve(s,a+1,3);if(a+=3,b)if(b==1)c=Hd,h=Xd,f=9,p=5;else if(b==2){var v=ve(s,a,31)+257,x=ve(s,a+10,15)+4,R=v+ve(s,a+5,31)+1;a+=14;for(var _=new ye(R),z=new ye(19),A=0;A<x;++A)z[Gd[A]]=ve(s,a+A*3,7);a+=x*3;var G=ss(z),Y=(1<<G)-1;if(!n&&a+R*(G+7)>y)break;for(var ce=Et(z,G,1),A=0;A<R;){var ue=ce[ve(s,a,Y)];a+=ue&15;var d=ue>>>4;if(d<16)_[A++]=d;else{var ee=0,V=0;for(d==16?(V=3+ve(s,a,3),a+=2,ee=_[A-1]):d==17?(V=3+ve(s,a,7),a+=3):d==18&&(V=11+ve(s,a,127),a+=7);V--;)_[A++]=ee}}var ae=_.subarray(0,v),k=_.subarray(v);f=ss(ae),p=ss(k),c=Et(ae,f,1),h=Et(k,p,1)}else throw"invalid block type";else{var d=Jd(a)+4,m=s[d-4]|s[d-3]<<8,w=d+m;if(w>i){if(n)throw"unexpected EOF";break}r&&o(u+m),e.set(s.subarray(d,w),u),t.b=u+=m,t.p=a=w*8;continue}if(a>y)throw"unexpected EOF"}r&&o(u+131072);for(var W=(1<<f)-1,he=(1<<p)-1,le=f+p+18;n||a+le<y;){var ee=c[rs(s,a)&W],te=ee>>>4;if(a+=ee&15,a>y)throw"unexpected EOF";if(!ee)throw"invalid length/literal";if(te<256)e[u++]=te;else if(te==256){c=null;break}else{var Q=te-254;if(te>264){var A=te-257,we=Wl[A];Q=ve(s,a,(1<<we)-1)+Zl[A],a+=we}var Ee=h[rs(s,a)&he],E=Ee>>>4;if(!Ee)throw"invalid distance";a+=Ee&15;var k=Zd[E];if(E>3){var we=Gl[E];k+=rs(s,a)&(1<<we)-1,a+=we}if(a>y)throw"unexpected EOF";r&&o(u+131072);for(var J=u+Q;u<J;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=J}}t.l=c,t.p=a,t.b=u,c&&(l=1,t.m=f,t.d=h,t.n=p)}while(!l);return u==e.length?e:Xl(e,0,u)},Qd=function(s){if((s[0]&15)!=8||s[0]>>>4>7||(s[0]<<8|s[1])%31)throw"invalid zlib data";if(s[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function qd(s,e){return Kd((Qd(s),s.subarray(2,-4)),e)}function ep(s,e){for(var t=s.length,i=new ye(s.length+(s.length>>>1)),r=0,n=function(u){i[r++]=u},o=0;o<t;++o){if(r+5>i.length){var l=new ye(r+8+(t-o<<1));l.set(i),i=l}var a=s.charCodeAt(o);n(a)}return Xl(i,0,r)}function tp(s,e){var t="";if(typeof TextDecoder!="undefined")return new TextDecoder().decode(s);for(var i=0;i<s.length;){var r=s[i++];r<128||e?t+=String.fromCharCode(r):r<224?t+=String.fromCharCode((r&31)<<6|s[i++]&63):r<240?t+=String.fromCharCode((r&15)<<12|(s[i++]&63)<<6|s[i++]&63):(r=((r&15)<<18|(s[i++]&63)<<12|(s[i++]&63)<<6|s[i++]&63)-65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023))}return t}const Dn="v1",ip=s=>{if(typeof s!="string")return s;try{const e=JSON.parse(s);if(e.timestamp)return e}catch(e){}try{const e=JSON.parse(tp(qd(ep(s,!0))));if(e.v===Dn)return e;throw new Error(`These events were packed with packer ${e.v} which is incompatible with current packer ${Dn}.`)}catch(e){throw console.error(e),new Error("Unknown data format.")}};var at=(s=>(s[s.DomContentLoaded=0]="DomContentLoaded",s[s.Load=1]="Load",s[s.FullSnapshot=2]="FullSnapshot",s[s.IncrementalSnapshot=3]="IncrementalSnapshot",s[s.Meta=4]="Meta",s[s.Custom=5]="Custom",s[s.Plugin=6]="Plugin",s))(at||{}),Ws=(s=>(s[s.Mutation=0]="Mutation",s[s.MouseMove=1]="MouseMove",s[s.MouseInteraction=2]="MouseInteraction",s[s.Scroll=3]="Scroll",s[s.ViewportResize=4]="ViewportResize",s[s.Input=5]="Input",s[s.TouchMove=6]="TouchMove",s[s.MediaInteraction=7]="MediaInteraction",s[s.StyleSheetRule=8]="StyleSheetRule",s[s.CanvasMutation=9]="CanvasMutation",s[s.Font=10]="Font",s[s.Log=11]="Log",s[s.Drag=12]="Drag",s[s.StyleDeclaration=13]="StyleDeclaration",s[s.Selection=14]="Selection",s[s.AdoptedStyleSheet=15]="AdoptedStyleSheet",s[s.CustomElement=16]="CustomElement",s[s.Visibility=17]="Visibility",s))(Ws||{});function _n(s){let e="";return Object.keys(s).forEach(t=>{e+=`${t}: ${s[t]};`}),e}function wt(s,e=2){let t=String(s);const i=Math.pow(10,e-1);if(s<i)for(;String(i).length>t.length;)t=`0${s}`;return t}const Jl=1e3,Gs=60*Jl,Tn=60*Gs;function oi(s){if(s<=0)return"00:00";const e=Math.floor(s/Tn);s=s%Tn;const t=Math.floor(s/Gs);s=s%Gs;const i=Math.floor(s/Jl);return e?`${wt(e)}:${wt(t)}:${wt(i)}`:`${wt(t)}:${wt(i)}`}function sp(s){return s.requestFullscreen?s.requestFullscreen():s.mozRequestFullScreen?s.mozRequestFullScreen():s.webkitRequestFullscreen?s.webkitRequestFullscreen():s.msRequestFullscreen?s.msRequestFullscreen():Promise.resolve()}function rp(){return document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():Promise.resolve()}function kn(){let s=!1;return["fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement"].forEach(e=>{e in document&&(s=s||!!document[e])}),s}function np(s){return document.addEventListener("fullscreenchange",s),document.addEventListener("webkitfullscreenchange",s),document.addEventListener("mozfullscreenchange",s),document.addEventListener("MSFullscreenChange",s),()=>{document.removeEventListener("fullscreenchange",s),document.removeEventListener("webkitfullscreenchange",s),document.removeEventListener("mozfullscreenchange",s),document.removeEventListener("MSFullscreenChange",s)}}function Pn(s){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(s)]}function op(s){return s.type!==at.IncrementalSnapshot?!1:s.data.source>Ws.Mutation&&s.data.source<=Ws.Input}function lp(s,e){const t=[];let i=s[0].timestamp;for(const r of s)op(r)&&(r.timestamp-i>e&&t.push([i,r.timestamp]),i=r.timestamp);return t}const Ln=.001,ap=1;function br(){return{normalizationApplied:!1,toReplayerTime:s=>s,toPlayerTime:s=>s,toReplayerAbsolute:s=>s,toPlayerAbsolute:s=>s,normalizeEvent:s=>s}}function up(s,e=!0){if(!s.length){const l=br();return{events:s,mapper:l}}const t=e?cp(s):null,i=s.map(l=>Kl(l,t)),r=$n(s),n=$n(i),o=pp(t,r,n);return{events:i,mapper:o}}function $n(s){return s.reduce((e,t)=>Math.min(e,t.timestamp),1/0)}function cp(s){const e=s.find(l=>l.type===at.FullSnapshot);if(!e)return null;const t=s.filter(l=>l.type===at.IncrementalSnapshot&&l.timestamp<e.timestamp);if(!t.length)return null;const i=t.reduce((l,a)=>Math.min(l,a.timestamp),1/0),r=t.reduce((l,a)=>Math.max(l,a.timestamp),-1/0),n=Math.max(0,r-i),o=Math.max(n,ap);return{earliestProblem:i,span:n,blockSpan:o,blockStart:e.timestamp+Ln,tailShift:Ln+o,firstFullTimestamp:e.timestamp}}function Kl(s,e){if(!e)return s;const t=s.type===at.IncrementalSnapshot&&s.timestamp<e.firstFullTimestamp,i=hp(s.timestamp,t,e);return i===s.timestamp?s:oe(P({},s),{timestamp:i})}function hp(s,e,t){if(!t)return s;if(s>t.firstFullTimestamp)return s+t.tailShift;if(e&&s<t.firstFullTimestamp){if(t.span===0)return t.blockStart;const i=t.blockSpan/t.span;return t.blockStart+(s-t.earliestProblem)*i}return s}function fp(s,e){if(!e)return s;if(s>e.firstFullTimestamp)return s+e.tailShift;if(s>=e.earliestProblem&&s<e.firstFullTimestamp){if(e.span===0)return e.blockStart;const t=e.blockSpan/e.span;return e.blockStart+(s-e.earliestProblem)*t}return s}function dp(s,e){if(!e)return s;const t=e.blockStart+e.blockSpan,i=e.firstFullTimestamp+e.tailShift;if(s>=i)return s-e.tailShift;if(s>=e.blockStart&&s<=t){if(e.span===0)return e.earliestProblem;const r=e.blockSpan/e.span;return e.earliestProblem+(s-e.blockStart)/r}return s}function pp(s,e,t){const i=Number.isFinite(e)?e:0,r=Number.isFinite(t)?t:0,n=l=>fp(l,s),o=l=>dp(l,s);return{normalizationApplied:!!s,normalizeEvent:l=>Kl(l,s),toReplayerAbsolute:n,toPlayerAbsolute:o,toReplayerTime:l=>{const a=i+l;return n(a)-r},toPlayerTime:l=>{const a=r+l;return o(a)-i}}}function mp(s){let e,t,i,r,n,o,l,a,u;return{c(){e=ne("div"),t=ne("input"),i=ge(),r=ne("label"),n=ge(),o=ne("span"),l=Ve(s[3]),M(t,"type","checkbox"),M(t,"id",s[2]),t.disabled=s[1],M(t,"class","svelte-a6h7w7"),M(r,"for",s[2]),M(r,"class","svelte-a6h7w7"),M(o,"class","label svelte-a6h7w7"),M(e,"class","switch svelte-a6h7w7"),et(e,"disabled",s[1])},m(c,h){Te(c,e,h),$(e,t),t.checked=s[0],$(e,i),$(e,r),$(e,n),$(e,o),$(o,l),a||(u=Ke(t,"change",s[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(r,"for",c[2]),h&8&&di(l,c[3]),h&2&&et(e,"disabled",c[1])},i:xt,o:xt,d(c){c&&Me(e),a=!1,u()}}}function gp(s,e,t){let{disabled:i}=e,{checked:r}=e,{id:n}=e,{label:o}=e;function l(){r=this.checked,t(0,r)}return s.$$set=a=>{"disabled"in a&&t(1,i=a.disabled),"checked"in a&&t(0,r=a.checked),"id"in a&&t(2,n=a.id),"label"in a&&t(3,o=a.label)},[r,i,n,o,l]}class yp extends Xs{constructor(e){super(),Hs(this,e,gp,mp,Ys,{disabled:1,checked:0,id:2,label:3})}}function Fn(s,e,t){const i=s.slice();return i[40]=e[t],i}function Bn(s,e,t){const i=s.slice();return i[43]=e[t],i}function Un(s,e,t){const i=s.slice();return i[46]=e[t],i}function zn(s){let e,t,i,r=oi(s[6])+"",n,o,l,a,u,c,h,f,p,y,b=oi(s[8].totalTime)+"",d,m,w,v,x,R,_,z,A,G,Y,ce,ue,ee=je(s[13]),V=[];for(let E=0;E<ee.length;E+=1)V[E]=Vn(Un(s,ee,E));let ae=je(s[9]),k=[];for(let E=0;E<ae.length;E+=1)k[E]=Wn(Bn(s,ae,E));function W(E,J){return E[7]==="playing"?vp:wp}let he=W(s),le=he(s),te=je(s[3]),Q=[];for(let E=0;E<te.length;E+=1)Q[E]=Gn(Fn(s,te,E));function we(E){s[30](E)}let Ee={id:"skip",disabled:s[10]==="skipping",label:"skip inactive"};return s[0]!==void 0&&(Ee.checked=s[0]),_=new yp({props:Ee}),ze.push(()=>va(_,"checked",we)),{c(){e=ne("div"),t=ne("div"),i=ne("span"),n=Ve(r),o=ge(),l=ne("div"),a=ne("div"),u=ge();for(let E=0;E<V.length;E+=1)V[E].c();c=ge();for(let E=0;E<k.length;E+=1)k[E].c();h=ge(),f=ne("div"),p=ge(),y=ne("span"),d=Ve(b),m=ge(),w=ne("div"),v=ne("button"),le.c(),x=ge();for(let E=0;E<Q.length;E+=1)Q[E].c();R=ge(),to(_.$$.fragment),A=ge(),G=ne("button"),G.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
|
|
83
75
|
18.4-48.8 18.4-68 0-18.4-18.4-18.4-48.8 0-68L800 156 692 156c-26.4
|
|
84
76
|
0-48-21.6-48-48 0-26.4 21.6-48 48-48l224 0c26.4 0 48 21.6 48 48l0
|
|
85
77
|
224C964 358.4 942.4 380 916 380zM231.2 860l108.8 0c26.4 0 48 21.6 48
|
|
86
78
|
48s-21.6 48-48 48l-224 0c-26.4 0-48-21.6-48-48l0-224c0-26.4 21.6-48
|
|
87
79
|
48-48 26.4 0 48 21.6 48 48L164 792l253.6-253.6c18.4-18.4 48.8-18.4
|
|
88
|
-
68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg>`,
|
|
89
|
-
512l-388.66944-233.32864 0 466.65728z`),
|
|
80
|
+
68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg>`,M(i,"class","rr-timeline__time svelte-189zk2r"),M(a,"class","rr-progress__step svelte-189zk2r"),ie(a,"width",s[12]),M(f,"class","rr-progress__handler svelte-189zk2r"),ie(f,"left",s[12]),M(l,"class","rr-progress svelte-189zk2r"),et(l,"disabled",s[10]==="skipping"),M(y,"class","rr-timeline__time svelte-189zk2r"),M(t,"class","rr-timeline svelte-189zk2r"),M(v,"class","svelte-189zk2r"),M(G,"class","svelte-189zk2r"),M(w,"class","rr-controller__btns svelte-189zk2r"),M(e,"class","rr-controller svelte-189zk2r")},m(E,J){Te(E,e,J),$(e,t),$(t,i),$(i,n),$(t,o),$(t,l),$(l,a),$(l,u);for(let j=0;j<V.length;j+=1)V[j]&&V[j].m(l,null);$(l,c);for(let j=0;j<k.length;j+=1)k[j]&&k[j].m(l,null);$(l,h),$(l,f),s[28](l),$(t,p),$(t,y),$(y,d),$(e,m),$(e,w),$(w,v),le.m(v,null),$(w,x);for(let j=0;j<Q.length;j+=1)Q[j]&&Q[j].m(w,null);$(w,R),js(_,w,null),$(w,A),$(w,G),Y=!0,ce||(ue=[Ke(l,"click",s[15]),Ke(l,"keydown",s[16]),Ke(v,"click",s[4]),Ke(G,"click",s[31])],ce=!0)},p(E,J){if((!Y||J[0]&64)&&r!==(r=oi(E[6])+"")&&di(n,r),(!Y||J[0]&4096)&&ie(a,"width",E[12]),J[0]&8192){ee=je(E[13]);let g;for(g=0;g<ee.length;g+=1){const D=Un(E,ee,g);V[g]?V[g].p(D,J):(V[g]=Vn(D),V[g].c(),V[g].m(l,c))}for(;g<V.length;g+=1)V[g].d(1);V.length=ee.length}if(J[0]&512){ae=je(E[9]);let g;for(g=0;g<ae.length;g+=1){const D=Bn(E,ae,g);k[g]?k[g].p(D,J):(k[g]=Wn(D),k[g].c(),k[g].m(l,h))}for(;g<k.length;g+=1)k[g].d(1);k.length=ae.length}if((!Y||J[0]&4096)&&ie(f,"left",E[12]),(!Y||J[0]&1024)&&et(l,"disabled",E[10]==="skipping"),(!Y||J[0]&256)&&b!==(b=oi(E[8].totalTime)+"")&&di(d,b),he!==(he=W(E))&&(le.d(1),le=he(E),le&&(le.c(),le.m(v,null))),J[0]&1066){te=je(E[3]);let g;for(g=0;g<te.length;g+=1){const D=Fn(E,te,g);Q[g]?Q[g].p(D,J):(Q[g]=Gn(D),Q[g].c(),Q[g].m(w,R))}for(;g<Q.length;g+=1)Q[g].d(1);Q.length=te.length}const j={};J[0]&1024&&(j.disabled=E[10]==="skipping"),!z&&J[0]&1&&(z=!0,j.checked=E[0],ga(()=>z=!1)),_.$set(j)},i(E){Y||(Oe(_.$$.fragment,E),Y=!0)},o(E){tt(_.$$.fragment,E),Y=!1},d(E){E&&Me(e),Ui(V,E),Ui(k,E),s[28](null),le.d(),Ui(Q,E),Zs(_),ce=!1,ut(ue)}}}function Vn(s){let e,t;return{c(){e=ne("div"),M(e,"title",t=s[46].name),ie(e,"width",s[46].width),ie(e,"height","4px"),ie(e,"position","absolute"),ie(e,"background",s[46].background),ie(e,"left",s[46].position)},m(i,r){Te(i,e,r)},p(i,r){r[0]&8192&&t!==(t=i[46].name)&&M(e,"title",t),r[0]&8192&&ie(e,"width",i[46].width),r[0]&8192&&ie(e,"background",i[46].background),r[0]&8192&&ie(e,"left",i[46].position)},d(i){i&&Me(e)}}}function Wn(s){let e,t;return{c(){e=ne("div"),M(e,"title",t=s[43].name),ie(e,"width","10px"),ie(e,"height","5px"),ie(e,"position","absolute"),ie(e,"top","2px"),ie(e,"transform","translate(-50%, -50%)"),ie(e,"background",s[43].background),ie(e,"left",s[43].position)},m(i,r){Te(i,e,r)},p(i,r){r[0]&512&&t!==(t=i[43].name)&&M(e,"title",t),r[0]&512&&ie(e,"background",i[43].background),r[0]&512&&ie(e,"left",i[43].position)},d(i){i&&Me(e)}}}function wp(s){let e,t;return{c(){e=fi("svg"),t=fi("path"),M(t,"d",`M170.65984 896l0-768 640 384zM644.66944
|
|
81
|
+
512l-388.66944-233.32864 0 466.65728z`),M(e,"class","icon"),M(e,"viewBox","0 0 1024 1024"),M(e,"version","1.1"),M(e,"xmlns","http://www.w3.org/2000/svg"),M(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),M(e,"width","16"),M(e,"height","16")},m(i,r){Te(i,e,r),$(e,t)},d(i){i&&Me(e)}}}function vp(s){let e,t;return{c(){e=fi("svg"),t=fi("path"),M(t,"d",`M682.65984 128q53.00224 0 90.50112 37.49888t37.49888 90.50112l0
|
|
90
82
|
512q0 53.00224-37.49888 90.50112t-90.50112
|
|
91
83
|
37.49888-90.50112-37.49888-37.49888-90.50112l0-512q0-53.00224
|
|
92
84
|
37.49888-90.50112t90.50112-37.49888zM341.34016 128q53.00224 0
|
|
@@ -99,7 +91,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
99
91
|
12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928zM682.65984
|
|
100
92
|
213.34016q-17.67424 0-30.16704 12.4928t-12.4928 30.16704l0 512q0
|
|
101
93
|
17.67424 12.4928 30.16704t30.16704 12.4928 30.16704-12.4928
|
|
102
|
-
12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z`),
|
|
94
|
+
12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z`),M(e,"class","icon"),M(e,"viewBox","0 0 1024 1024"),M(e,"version","1.1"),M(e,"xmlns","http://www.w3.org/2000/svg"),M(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),M(e,"width","16"),M(e,"height","16")},m(i,r){Te(i,e,r),$(e,t)},d(i){i&&Me(e)}}}function Gn(s){let e,t=s[40]+"",i,r,n,o,l;function a(){return s[29](s[40])}return{c(){e=ne("button"),i=Ve(t),r=Ve("x"),e.disabled=n=s[10]==="skipping",M(e,"class","svelte-189zk2r"),et(e,"active",s[40]===s[1]&&s[10]!=="skipping")},m(u,c){Te(u,e,c),$(e,i),$(e,r),o||(l=Ke(e,"click",a),o=!0)},p(u,c){s=u,c[0]&8&&t!==(t=s[40]+"")&&di(i,t),c[0]&1024&&n!==(n=s[10]==="skipping")&&(e.disabled=n),c[0]&1034&&et(e,"active",s[40]===s[1]&&s[10]!=="skipping")},d(u){u&&Me(e),o=!1,l()}}}function bp(s){let e,t,i=s[2]&&zn(s);return{c(){i&&i.c(),e=ua()},m(r,n){i&&i.m(r,n),Te(r,e,n),t=!0},p(r,n){r[2]?i?(i.p(r,n),n[0]&4&&Oe(i,1)):(i=zn(r),i.c(),Oe(i,1),i.m(e.parentNode,e)):i&&(qn(),tt(i,1,1,()=>{i=null}),eo())},i(r){t||(Oe(i),t=!0)},o(r){tt(i),t=!1},d(r){r&&Me(e),i&&i.d(r)}}}function Yn(s,e,t){const i=e-s;return(100-(e-t)/i*100).toFixed(2)}function Cp(s,e,t){const i=da();let{replayer:r}=e,{showController:n}=e,{autoPlay:o}=e,{skipInactive:l}=e,{speedOption:a}=e,{speed:u=a.length?a[0]:1}=e,{tags:c={}}=e,{inactiveColor:h}=e,{timeMapper:f=br()}=e,p=0,y=null,b,d,m,w,v=!1,x=null,R=null;const _=()=>{const g=r.getMetaData();return{startTime:f.toPlayerAbsolute(g.startTime),endTime:f.toPlayerAbsolute(g.endTime),totalTime:f.toPlayerTime(g.totalTime)}};let z,A,G,Y;const ce=()=>{ue();function g(){t(6,p=f.toPlayerTime(r.getCurrentTime())),v&&p>=v&&(R?W(R.start,R.end,!0,void 0):(r.pause(),x&&(x(),x=null))),p<z.totalTime&&(y=requestAnimationFrame(g))}y=requestAnimationFrame(g)},ue=()=>{y&&(cancelAnimationFrame(y),y=null)},ee=()=>{switch(b){case"playing":ae();break;case"paused":V();break}},V=()=>{b==="paused"&&(w?(r.play(),w=!1):r.play(f.toReplayerTime(p)))},ae=()=>{b==="playing"&&(r.pause(),v=!1)},k=(g,D)=>{t(6,p=g),v=!1,w=!1,(typeof D=="boolean"?D:b==="playing")?r.play(f.toReplayerTime(g)):r.pause(f.toReplayerTime(g))},W=(g,D,fe=!1,C=void 0)=>{fe?R={start:g,end:D}:R=null,t(6,p=g),v=D,x=C||null,r.play(f.toReplayerTime(g))},he=g=>{if(d==="skipping")return;const D=m.getBoundingClientRect();let C=(g.clientX-D.left)/D.width;C<0?C=0:C>1&&(C=1);const se=z.totalTime*C;k(se)},le=g=>{d!=="skipping"&&(g.key==="ArrowLeft"?k(p-5):g.key==="ArrowRight"&&k(p+5))},te=g=>{let D=b==="playing";t(1,u=g),D&&r.pause(),r.setConfig({speed:u}),D&&r.play(f.toReplayerTime(p))},Q=()=>{t(0,l=!l)},we=()=>Promise.resolve().then(()=>{t(8,z=_())});Jn(()=>{t(7,b=r.service.state.value),t(10,d=r.speedService.state.value),r.on("state-change",g=>{const{player:D,speed:fe}=g;if(D!=null&&D.value&&b!==D.value)switch(t(7,b=D.value),b){case"playing":ce();break;case"paused":ue();break}fe!=null&&fe.value&&d!==fe.value&&t(10,d=fe.value)}),r.on("finish",()=>{w=!0,x&&(x(),x=null)}),o&&r.play()}),fa(()=>{l!==r.config.skipInactive&&r.setConfig({skipInactive:l})}),Kn(()=>{r.pause(),ue()});function Ee(g){ze[g?"unshift":"push"](()=>{m=g,t(11,m)})}const E=g=>te(g);function J(g){l=g,t(0,l)}const j=()=>i("fullscreen");return s.$$set=g=>{"replayer"in g&&t(17,r=g.replayer),"showController"in g&&t(2,n=g.showController),"autoPlay"in g&&t(18,o=g.autoPlay),"skipInactive"in g&&t(0,l=g.skipInactive),"speedOption"in g&&t(3,a=g.speedOption),"speed"in g&&t(1,u=g.speed),"tags"in g&&t(19,c=g.tags),"inactiveColor"in g&&t(20,h=g.inactiveColor),"timeMapper"in g&&t(21,f=g.timeMapper)},s.$$.update=()=>{if(s.$$.dirty[0]&64&&i("ui-update-current-time",{payload:p}),s.$$.dirty[0]&128&&i("ui-update-player-state",{payload:b}),s.$$.dirty[0]&320){const g=Math.min(1,p/z.totalTime);t(12,A=`${100*g}%`),i("ui-update-progress",{payload:g})}s.$$.dirty[0]&2752512&&t(9,G=(()=>{const{context:g}=r.service.state,D=g.events.length,fe=f.toPlayerAbsolute(g.events[0].timestamp),C=f.toPlayerAbsolute(g.events[D-1].timestamp),se=[];return g.events.forEach(me=>{if(me.type===at.Custom){const Be=f.toPlayerAbsolute(me.timestamp),de={name:me.data.tag,background:c[me.data.tag]||"rgb(73, 80, 246)",position:`${Yn(fe,C,Be)}%`};se.push(de)}}),se})()),s.$$.dirty[0]&3276800&&t(13,Y=(()=>{try{const{context:g}=r.service.state,D=g.events.map(de=>oe(P({},de),{timestamp:f.toPlayerAbsolute(de.timestamp)})),fe=D.length,C=D[0].timestamp,se=D[fe-1].timestamp,me=lp(D,r.config.inactivePeriodThreshold),Be=(de,ql,ea,ta)=>{const ia=ql-de;return((ta-ea)/ia*100).toFixed(2)};return me.map(de=>({name:"inactive period",background:h,position:`${Yn(C,se,de[0])}%`,width:`${Be(C,se,de[0],de[1])}%`}))}catch(g){return[]}})())},t(8,z=_()),[l,u,n,a,ee,te,p,b,z,G,d,m,A,Y,i,he,le,r,o,c,h,f,V,ae,k,W,Q,we,Ee,E,J,j]}class Sp extends Xs{constructor(e){super(),Hs(this,e,Cp,bp,Ys,{replayer:17,showController:2,autoPlay:18,skipInactive:0,speedOption:3,speed:1,tags:19,inactiveColor:20,timeMapper:21,toggle:4,play:22,pause:23,goto:24,playRange:25,setSpeed:5,toggleSkipInactive:26,triggerUpdateMeta:27},null,[-1,-1])}get toggle(){return this.$$.ctx[4]}get play(){return this.$$.ctx[22]}get pause(){return this.$$.ctx[23]}get goto(){return this.$$.ctx[24]}get playRange(){return this.$$.ctx[25]}get setSpeed(){return this.$$.ctx[5]}get toggleSkipInactive(){return this.$$.ctx[26]}get triggerUpdateMeta(){return this.$$.ctx[27]}}function jn(s){let e,t,i={replayer:s[8],showController:s[3],autoPlay:s[1],speedOption:s[2],skipInactive:s[0],tags:s[4],inactiveColor:s[5],timeMapper:s[7]};return e=new Sp({props:i}),s[34](e),e.$on("fullscreen",s[35]),{c(){to(e.$$.fragment)},m(r,n){js(e,r,n),t=!0},p(r,n){const o={};n[0]&256&&(o.replayer=r[8]),n[0]&8&&(o.showController=r[3]),n[0]&2&&(o.autoPlay=r[1]),n[0]&4&&(o.speedOption=r[2]),n[0]&1&&(o.skipInactive=r[0]),n[0]&16&&(o.tags=r[4]),n[0]&32&&(o.inactiveColor=r[5]),n[0]&128&&(o.timeMapper=r[7]),e.$set(o)},i(r){t||(Oe(e.$$.fragment,r),t=!0)},o(r){tt(e.$$.fragment,r),t=!1},d(r){s[34](null),Zs(e,r)}}}function Ep(s){let e,t,i,r,n=s[8]&&jn(s);return{c(){e=ne("div"),t=ne("div"),i=ge(),n&&n.c(),M(t,"class","rr-player__frame"),M(t,"style",s[12]),M(e,"class","rr-player"),M(e,"style",s[13])},m(o,l){Te(o,e,l),$(e,t),s[33](t),$(e,i),n&&n.m(e,null),s[36](e),r=!0},p(o,l){(!r||l[0]&4096)&&M(t,"style",o[12]),o[8]?n?(n.p(o,l),l[0]&256&&Oe(n,1)):(n=jn(o),n.c(),Oe(n,1),n.m(e,null)):n&&(qn(),tt(n,1,1,()=>{n=null}),eo()),(!r||l[0]&8192)&&M(e,"style",o[13])},i(o){r||(Oe(n),r=!0)},o(o){tt(n),r=!1},d(o){o&&Me(e),s[33](null),n&&n.d(),s[36](null)}}}const Zn=80;function xp(s,e,t){let{width:i=1024}=e,{height:r=576}=e,{maxScale:n=1}=e,{events:o}=e,{skipInactive:l=!0}=e,{autoPlay:a=!0}=e,{speedOption:u=[1,2,4,8]}=e,{speed:c=1}=e,{showController:h=!0}=e,{tags:f={}}=e,{inactiveColor:p="#D4D4D4"}=e,{allowTimelineNormalization:y=!0}=e,b=o,d=br(),m;const w=()=>m.getMirror();let v,x,R,_=i,z=r,A,G,Y;const ce=(C,se)=>{const me=i/se.width,Be=r/se.height,de=[me,Be];n&&de.push(n),C.style.transform=`scale(${Math.min(...de)})translate(-50%, -50%)`},ue=()=>{ce(m.wrapper,{width:m.iframe.offsetWidth,height:m.iframe.offsetHeight})},ee=()=>{v&&(kn()?rp():sp(v))},V=(C,se)=>{switch(m.on(C,se),C){case"ui-update-current-time":case"ui-update-progress":case"ui-update-player-state":A.$on(C,({detail:me})=>se(me))}},ae=C=>{const se=d.normalizeEvent(C);m.addEvent(se),A.triggerUpdateMeta()},k=C=>({startTime:d.toPlayerAbsolute(C.startTime),endTime:d.toPlayerAbsolute(C.endTime),totalTime:d.toPlayerTime(C.totalTime)}),W=()=>k(m.getMetaData()),he=()=>m,le=()=>{A.toggle()},te=C=>{A.setSpeed(C)},Q=()=>{A.toggleSkipInactive()},we=()=>{A.play()},Ee=()=>{A.pause()},E=(C,se)=>{A.goto(C,se)},J=(C,se,me=!1,Be=void 0)=>{A.playRange(C,se,me,Be)};Jn(()=>{if(u!==void 0&&Pn(u)!=="array")throw new Error("speedOption must be array");if(u.forEach(C=>{if(Pn(C)!=="number")throw new Error("item of speedOption must be number")}),u.indexOf(c)<0)throw new Error(`speed must be one of speedOption,
|
|
103
95
|
current config:
|
|
104
96
|
{
|
|
105
97
|
...
|
|
@@ -107,8 +99,8 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
107
99
|
speedOption: [${u.toString()}]
|
|
108
100
|
...
|
|
109
101
|
}
|
|
110
|
-
`);t(8,
|
|
111
|
-
if (typeof module.exports == "object" && typeof exports == "object") {
|
|
102
|
+
`);t(8,m=new Wd(b,P({speed:c,root:x,unpackFn:ip},e))),m.on("resize",C=>{ce(m.wrapper,C)}),R=np(()=>{kn()?setTimeout(()=>{_=i,z=r,t(14,i=v.offsetWidth),t(15,r=v.offsetHeight-(h?Zn:0)),ce(m.wrapper,{width:m.iframe.offsetWidth,height:m.iframe.offsetHeight})},0):(t(14,i=_),t(15,r=z),ce(m.wrapper,{width:m.iframe.offsetWidth,height:m.iframe.offsetHeight}))})}),Kn(()=>{R&&R()});function j(C){ze[C?"unshift":"push"](()=>{x=C,t(10,x)})}function g(C){ze[C?"unshift":"push"](()=>{A=C,t(11,A)})}const D=()=>ee();function fe(C){ze[C?"unshift":"push"](()=>{v=C,t(9,v)})}return s.$$set=C=>{t(43,e=Ar(Ar({},e),Mr(C))),"width"in C&&t(14,i=C.width),"height"in C&&t(15,r=C.height),"maxScale"in C&&t(16,n=C.maxScale),"events"in C&&t(17,o=C.events),"skipInactive"in C&&t(0,l=C.skipInactive),"autoPlay"in C&&t(1,a=C.autoPlay),"speedOption"in C&&t(2,u=C.speedOption),"speed"in C&&t(18,c=C.speed),"showController"in C&&t(3,h=C.showController),"tags"in C&&t(4,f=C.tags),"inactiveColor"in C&&t(5,p=C.inactiveColor),"allowTimelineNormalization"in C&&t(19,y=C.allowTimelineNormalization)},s.$$.update=()=>{if(s.$$.dirty[0]&655360){const C=up(o,y);b=C.events,t(7,d=C.mapper)}s.$$.dirty[0]&49152&&t(12,G=_n({width:`${i}px`,height:`${r}px`})),s.$$.dirty[0]&49160&&t(13,Y=_n({width:`${i}px`,height:`${r+(h?Zn:0)}px`}))},e=Mr(e),[l,a,u,h,f,p,ee,d,m,v,x,A,G,Y,i,r,n,o,c,y,w,ue,V,ae,W,he,le,te,Q,we,Ee,E,J,j,g,D,fe]}let Ap=class extends Xs{constructor(e){super(),Hs(this,e,xp,Ep,Ys,{width:14,height:15,maxScale:16,events:17,skipInactive:0,autoPlay:1,speedOption:2,speed:18,showController:3,tags:4,inactiveColor:5,allowTimelineNormalization:19,getMirror:20,triggerResize:21,toggleFullscreen:6,addEventListener:22,addEvent:23,getMetaData:24,getReplayer:25,toggle:26,setSpeed:27,toggleSkipInactive:28,play:29,pause:30,goto:31,playRange:32},null,[-1,-1])}get getMirror(){return this.$$.ctx[20]}get triggerResize(){return this.$$.ctx[21]}get toggleFullscreen(){return this.$$.ctx[6]}get addEventListener(){return this.$$.ctx[22]}get addEvent(){return this.$$.ctx[23]}get getMetaData(){return this.$$.ctx[24]}get getReplayer(){return this.$$.ctx[25]}get toggle(){return this.$$.ctx[26]}get setSpeed(){return this.$$.ctx[27]}get toggleSkipInactive(){return this.$$.ctx[28]}get play(){return this.$$.ctx[29]}get pause(){return this.$$.ctx[30]}get goto(){return this.$$.ctx[31]}get playRange(){return this.$$.ctx[32]}};class Ql extends Ap{constructor(e){super({target:e.target,props:e.data||e.props})}}exports.Player=Ql;exports.default=Ql;
|
|
103
|
+
;if (typeof module.exports == "object" && typeof exports == "object") {
|
|
112
104
|
var __cp = (to, from, except, desc) => {
|
|
113
105
|
if ((from && typeof from === "object") || typeof from === "function") {
|
|
114
106
|
for (let key of Object.getOwnPropertyNames(from)) {
|