@posthog/rrweb-player 0.0.49 → 0.0.50
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 +26 -17
- package/dist/rrweb-player.cjs.map +1 -1
- package/dist/rrweb-player.js +26 -17
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +22 -17
- package/dist/rrweb-player.umd.cjs.map +2 -2
- package/dist/rrweb-player.umd.min.cjs +16 -16
- package/dist/rrweb-player.umd.min.cjs.map +3 -3
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
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 Zo=Object.defineProperty,ea=Object.defineProperties;var ta=Object.getOwnPropertyDescriptors;var ut=Object.getOwnPropertySymbols;var Ui=Object.prototype.hasOwnProperty,zi=Object.prototype.propertyIsEnumerable;var Bi=(e,t,r)=>t in e?Zo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Q=(e,t)=>{for(var r in t||(t={}))Ui.call(t,r)&&Bi(e,r,t[r]);if(ut)for(var r of ut(t))zi.call(t,r)&&Bi(e,r,t[r]);return e},le=(e,t)=>ea(e,ta(t));var Je=(e,t)=>{var r={};for(var s in e)Ui.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&ut)for(var s of ut(e))t.indexOf(s)<0&&zi.call(e,s)&&(r[s]=e[s]);return r};var ra=Object.defineProperty,ia=(e,t,r)=>t in e?ra(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qi=(e,t,r)=>ia(e,typeof t!="symbol"?t+"":t,r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function rt(){}function Wi(e,t){for(const r in t)e[r]=t[r];return e}function Wn(e){return e()}function $i(){return Object.create(null)}function He(e){e.forEach(Wn)}function $n(e){return typeof e=="function"}function fi(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function sa(e){return Object.keys(e).length===0}function ji(e){const t={};for(const r in e)r[0]!=="$"&&(t[r]=e[r]);return t}function G(e,t){e.appendChild(t)}function Ce(e,t,r){e.insertBefore(t,r||null)}function ve(e){e.parentNode&&e.parentNode.removeChild(e)}function Ut(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function oe(e){return document.createElement(e)}function Ct(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Te(e){return document.createTextNode(e)}function fe(){return Te(" ")}function na(){return Te("")}function We(e,t,r,s){return e.addEventListener(t,r,s),()=>e.removeEventListener(t,r,s)}function B(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function oa(e){return Array.from(e.childNodes)}function Et(e,t){t=""+t,e.data!==t&&(e.data=t)}function se(e,t,r,s){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,"")}function Ve(e,t,r){e.classList.toggle(t,!!r)}function aa(e,t,{bubbles:r=!1,cancelable:s=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:s})}let it;function Ze(e){it=e}function _t(){if(!it)throw new Error("Function called outside component initialization");return it}function jn(e){_t().$$.on_mount.push(e)}function la(e){_t().$$.after_update.push(e)}function Vn(e){_t().$$.on_destroy.push(e)}function ua(){const e=_t();return(t,r,{cancelable:s=!1}={})=>{const i=e.$$.callbacks[t];if(i){const a=aa(t,r,{cancelable:s});return i.slice().forEach(o=>{o.call(e,a)}),!a.defaultPrevented}return!0}}const Be=[],Pe=[];let je=[];const ri=[],ca=Promise.resolve();let ii=!1;function ha(){ii||(ii=!0,ca.then(Gn))}function si(e){je.push(e)}function fa(e){ri.push(e)}const zt=new Set;let Le=0;function Gn(){if(Le!==0)return;const e=it;do{try{for(;Le<Be.length;){const t=Be[Le];Le++,Ze(t),da(t.$$)}}catch(t){throw Be.length=0,Le=0,t}for(Ze(null),Be.length=0,Le=0;Pe.length;)Pe.pop()();for(let t=0;t<je.length;t+=1){const r=je[t];zt.has(r)||(zt.add(r),r())}je.length=0}while(Be.length);for(;ri.length;)ri.pop()();ii=!1,zt.clear(),Ze(e)}function da(e){if(e.fragment!==null){e.update(),He(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(si)}}function pa(e){const t=[],r=[];je.forEach(s=>e.indexOf(s)===-1?t.push(s):r.push(s)),r.forEach(s=>s()),je=t}const St=new Set;let De;function Hn(){De={r:0,c:[],p:De}}function Yn(){De.r||He(De.c),De=De.p}function Se(e,t){e&&e.i&&(St.delete(e),e.i(t))}function Ge(e,t,r,s){if(e&&e.o){if(St.has(e))return;St.add(e),De.c.push(()=>{St.delete(e),s&&(r&&e.d(1),s())}),e.o(t)}else s&&s()}function Fe(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function ma(e,t,r){const s=e.$$.props[t];s!==void 0&&(e.$$.bound[s]=r,r(e.$$.ctx[s]))}function Jn(e){e&&e.c()}function di(e,t,r){const{fragment:s,after_update:i}=e.$$;s&&s.m(t,r),si(()=>{const a=e.$$.on_mount.map(Wn).filter($n);e.$$.on_destroy?e.$$.on_destroy.push(...a):He(a),e.$$.on_mount=[]}),i.forEach(si)}function pi(e,t){const r=e.$$;r.fragment!==null&&(pa(r.after_update),He(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function ga(e,t){e.$$.dirty[0]===-1&&(Be.push(e),ha(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function mi(e,t,r,s,i,a,o=null,u=[-1]){const d=it;Ze(e);const l=e.$$={fragment:null,ctx:[],props:a,update:rt,not_equal:i,bound:$i(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(d?d.$$.context:[])),callbacks:$i(),dirty:u,skip_bound:!1,root:t.target||d.$$.root};o&&o(l.root);let n=!1;if(l.ctx=r?r(e,t.props||{},(c,f,...h)=>{const p=h.length?h[0]:f;return l.ctx&&i(l.ctx[c],l.ctx[c]=p)&&(!l.skip_bound&&l.bound[c]&&l.bound[c](p),n&&ga(e,c)),f}):[],l.update(),n=!0,He(l.before_update),l.fragment=s?s(l.ctx):!1,t.target){if(t.hydrate){const c=oa(t.target);l.fragment&&l.fragment.l(c),c.forEach(ve)}else l.fragment&&l.fragment.c();t.intro&&Se(e.$$.fragment),di(e,t.target,t.anchor),Gn()}Ze(d)}class gi{constructor(){qi(this,"$$"),qi(this,"$$set")}$destroy(){pi(this,1),this.$destroy=rt}$on(t,r){if(!$n(r))return rt;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(r),()=>{const i=s.indexOf(r);i!==-1&&s.splice(i,1)}}$set(t){this.$$set&&!sa(t)&&(this.$$.skip_bound=!0,this.$$set(t),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=(e,t,r)=>t in e?wa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F=(e,t,r)=>va(e,typeof t!="symbol"?t+"":t,r),Vi,ba=Object.defineProperty,Sa=(e,t,r)=>t in e?ba(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gi=(e,t,r)=>Sa(e,typeof t!="symbol"?t+"":t,r),re=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(re||{});const Hi={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Yi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ct={};function Ca(e){var t,r;const s=(r=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(s&&globalThis[s])return globalThis[s]}function yi(e){if(ct[e])return ct[e];const t=Ca(e)||globalThis[e],r=t.prototype,s=e in Hi?Hi[e]:void 0,i=!!(s&&s.every(u=>{var d,l;return!!((l=(d=Object.getOwnPropertyDescriptor(r,u))==null?void 0:d.get)!=null&&l.toString().includes("[native code]"))})),a=e in Yi?Yi[e]:void 0,o=!!(a&&a.every(u=>{var d;return typeof r[u]=="function"&&((d=r[u])==null?void 0:d.toString().includes("[native code]"))}));if(i&&o)return ct[e]=t.prototype,t.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const d=u.contentWindow;if(!d)return t.prototype;const l=d[e].prototype;return document.body.removeChild(u),l?ct[e]=l:r}catch(u){return r}}const qt={};function Ne(e,t,r){var s;const i=`${e}.${String(r)}`;if(qt[i])return qt[i].call(t);const a=yi(e),o=(s=Object.getOwnPropertyDescriptor(a,r))==null?void 0:s.get;return o?(qt[i]=o,o.call(t)):t[r]}const Wt={};function Xn(e,t,r){const s=`${e}.${String(r)}`;if(Wt[s])return Wt[s].bind(t);const a=yi(e)[r];return typeof a!="function"?t[r]:(Wt[s]=a,a.bind(t))}function Ea(e){return Ne("Node",e,"childNodes")}function Ra(e){return Ne("Node",e,"parentNode")}function xa(e){return Ne("Node",e,"parentElement")}function Ma(e){return Ne("Node",e,"textContent")}function Na(e,t){return Xn("Node",e,"contains")(t)}function _a(e){return Xn("Node",e,"getRootNode")()}function Oa(e){return!e||!("host"in e)?null:Ne("ShadowRoot",e,"host")}function Aa(e){return e.styleSheets}function Da(e){return!e||!("shadowRoot"in e)?null:Ne("Element",e,"shadowRoot")}function Pa(e,t){return Ne("Element",e,"querySelector")(t)}function Ta(e,t){return Ne("Element",e,"querySelectorAll")(t)}function ka(){return yi("MutationObserver").constructor}function Ia(e,t,r){try{if(!(t in e))return()=>{};const s=e[t],i=r(s);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=i,()=>{e[t]=s}}catch(s){return()=>{}}}const La={childNodes:Ea,parentNode:Ra,parentElement:xa,textContent:Ma,contains:Na,getRootNode:_a,host:Oa,styleSheets:Aa,shadowRoot:Da,querySelector:Pa,querySelectorAll:Ta,mutationObserver:ka,patch:Ia};function Qn(e){return e.nodeType===e.ELEMENT_NODE}class Kn{constructor(){Gi(this,"idNodeMap",new Map),Gi(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const s=(r=this.getMeta(t))==null?void 0:r.id;return s!=null?s:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);if(this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(s=>this.removeNodeFromMap(s)),Qn(t)){const s=La.shadowRoot(t);s&&this.removeNodeFromMap(s),t.nodeName==="IFRAME"&&t.contentDocument&&this.removeNodeFromMap(t.contentDocument)}}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const s=r.id;this.idNodeMap.set(s,t),this.nodeMetaMap.set(t,r)}replace(t,r){const s=this.getNode(t);if(s){const i=this.nodeMetaMap.get(s);i&&this.nodeMetaMap.set(r,i)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Zn(){return new Kn}function Fa(e){return e.toLowerCase()}function Ba(e,t){return!e||!t||e.type!==t.type?!1:e.type===re.Document?e.compatMode===t.compatMode:e.type===re.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===re.Comment||e.type===re.Text||e.type===re.CDATA?e.textContent===t.textContent:e.type===re.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function Ua(e,t){var a;let r;try{r=new URL(e,t!=null?t:window.location.href)}catch(o){return null}const s=/\.([0-9a-z]+)(?:$)/i,i=r.pathname.match(s);return(a=i==null?void 0:i[1])!=null?a:null}const za=/(max|min)-device-(width|height)/,Ji=new RegExp(za.source,"g"),qa={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(Ji)&&(e.params=e.params.replace(Ji,"$1-$2"))}}}},Wa={postcssPlugin:"postcss-hover-classes",prepare:function(){const e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(r){if(r.includes(":hover")){const s=r.replace(new RegExp("(?<!\\\\):hover","g"),".\\:hover");s!==r&&(t.selector+=`,
|
|
2
|
+
"use strict";var Zo=Object.defineProperty,ea=Object.defineProperties;var ta=Object.getOwnPropertyDescriptors;var ut=Object.getOwnPropertySymbols;var Ui=Object.prototype.hasOwnProperty,zi=Object.prototype.propertyIsEnumerable;var Bi=(e,t,r)=>t in e?Zo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y=(e,t)=>{for(var r in t||(t={}))Ui.call(t,r)&&Bi(e,r,t[r]);if(ut)for(var r of ut(t))zi.call(t,r)&&Bi(e,r,t[r]);return e},le=(e,t)=>ea(e,ta(t));var Je=(e,t)=>{var r={};for(var s in e)Ui.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&ut)for(var s of ut(e))t.indexOf(s)<0&&zi.call(e,s)&&(r[s]=e[s]);return r};var ra=Object.defineProperty,ia=(e,t,r)=>t in e?ra(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qi=(e,t,r)=>ia(e,typeof t!="symbol"?t+"":t,r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function rt(){}function Wi(e,t){for(const r in t)e[r]=t[r];return e}function Wn(e){return e()}function $i(){return Object.create(null)}function He(e){e.forEach(Wn)}function $n(e){return typeof e=="function"}function fi(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function sa(e){return Object.keys(e).length===0}function ji(e){const t={};for(const r in e)r[0]!=="$"&&(t[r]=e[r]);return t}function G(e,t){e.appendChild(t)}function Ce(e,t,r){e.insertBefore(t,r||null)}function ve(e){e.parentNode&&e.parentNode.removeChild(e)}function Ut(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function oe(e){return document.createElement(e)}function Ct(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Te(e){return document.createTextNode(e)}function fe(){return Te(" ")}function na(){return Te("")}function We(e,t,r,s){return e.addEventListener(t,r,s),()=>e.removeEventListener(t,r,s)}function B(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function oa(e){return Array.from(e.childNodes)}function Et(e,t){t=""+t,e.data!==t&&(e.data=t)}function se(e,t,r,s){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,"")}function Ve(e,t,r){e.classList.toggle(t,!!r)}function aa(e,t,{bubbles:r=!1,cancelable:s=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:s})}let it;function Ze(e){it=e}function _t(){if(!it)throw new Error("Function called outside component initialization");return it}function jn(e){_t().$$.on_mount.push(e)}function la(e){_t().$$.after_update.push(e)}function Vn(e){_t().$$.on_destroy.push(e)}function ua(){const e=_t();return(t,r,{cancelable:s=!1}={})=>{const i=e.$$.callbacks[t];if(i){const a=aa(t,r,{cancelable:s});return i.slice().forEach(o=>{o.call(e,a)}),!a.defaultPrevented}return!0}}const Be=[],Pe=[];let je=[];const ri=[],ca=Promise.resolve();let ii=!1;function ha(){ii||(ii=!0,ca.then(Gn))}function si(e){je.push(e)}function fa(e){ri.push(e)}const zt=new Set;let Le=0;function Gn(){if(Le!==0)return;const e=it;do{try{for(;Le<Be.length;){const t=Be[Le];Le++,Ze(t),da(t.$$)}}catch(t){throw Be.length=0,Le=0,t}for(Ze(null),Be.length=0,Le=0;Pe.length;)Pe.pop()();for(let t=0;t<je.length;t+=1){const r=je[t];zt.has(r)||(zt.add(r),r())}je.length=0}while(Be.length);for(;ri.length;)ri.pop()();ii=!1,zt.clear(),Ze(e)}function da(e){if(e.fragment!==null){e.update(),He(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(si)}}function pa(e){const t=[],r=[];je.forEach(s=>e.indexOf(s)===-1?t.push(s):r.push(s)),r.forEach(s=>s()),je=t}const St=new Set;let De;function Hn(){De={r:0,c:[],p:De}}function Yn(){De.r||He(De.c),De=De.p}function Se(e,t){e&&e.i&&(St.delete(e),e.i(t))}function Ge(e,t,r,s){if(e&&e.o){if(St.has(e))return;St.add(e),De.c.push(()=>{St.delete(e),s&&(r&&e.d(1),s())}),e.o(t)}else s&&s()}function Fe(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function ma(e,t,r){const s=e.$$.props[t];s!==void 0&&(e.$$.bound[s]=r,r(e.$$.ctx[s]))}function Jn(e){e&&e.c()}function di(e,t,r){const{fragment:s,after_update:i}=e.$$;s&&s.m(t,r),si(()=>{const a=e.$$.on_mount.map(Wn).filter($n);e.$$.on_destroy?e.$$.on_destroy.push(...a):He(a),e.$$.on_mount=[]}),i.forEach(si)}function pi(e,t){const r=e.$$;r.fragment!==null&&(pa(r.after_update),He(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function ga(e,t){e.$$.dirty[0]===-1&&(Be.push(e),ha(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function mi(e,t,r,s,i,a,o=null,u=[-1]){const d=it;Ze(e);const l=e.$$={fragment:null,ctx:[],props:a,update:rt,not_equal:i,bound:$i(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(d?d.$$.context:[])),callbacks:$i(),dirty:u,skip_bound:!1,root:t.target||d.$$.root};o&&o(l.root);let n=!1;if(l.ctx=r?r(e,t.props||{},(c,f,...h)=>{const p=h.length?h[0]:f;return l.ctx&&i(l.ctx[c],l.ctx[c]=p)&&(!l.skip_bound&&l.bound[c]&&l.bound[c](p),n&&ga(e,c)),f}):[],l.update(),n=!0,He(l.before_update),l.fragment=s?s(l.ctx):!1,t.target){if(t.hydrate){const c=oa(t.target);l.fragment&&l.fragment.l(c),c.forEach(ve)}else l.fragment&&l.fragment.c();t.intro&&Se(e.$$.fragment),di(e,t.target,t.anchor),Gn()}Ze(d)}class gi{constructor(){qi(this,"$$"),qi(this,"$$set")}$destroy(){pi(this,1),this.$destroy=rt}$on(t,r){if(!$n(r))return rt;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(r),()=>{const i=s.indexOf(r);i!==-1&&s.splice(i,1)}}$set(t){this.$$set&&!sa(t)&&(this.$$.skip_bound=!0,this.$$set(t),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=(e,t,r)=>t in e?wa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F=(e,t,r)=>va(e,typeof t!="symbol"?t+"":t,r),Vi,ba=Object.defineProperty,Sa=(e,t,r)=>t in e?ba(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gi=(e,t,r)=>Sa(e,typeof t!="symbol"?t+"":t,r),re=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(re||{});const Hi={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Yi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ct={};function Ca(e){var t,r;const s=(r=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(s&&globalThis[s])return globalThis[s]}function yi(e){if(ct[e])return ct[e];const t=Ca(e)||globalThis[e],r=t.prototype,s=e in Hi?Hi[e]:void 0,i=!!(s&&s.every(u=>{var d,l;return!!((l=(d=Object.getOwnPropertyDescriptor(r,u))==null?void 0:d.get)!=null&&l.toString().includes("[native code]"))})),a=e in Yi?Yi[e]:void 0,o=!!(a&&a.every(u=>{var d;return typeof r[u]=="function"&&((d=r[u])==null?void 0:d.toString().includes("[native code]"))}));if(i&&o)return ct[e]=t.prototype,t.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const d=u.contentWindow;if(!d)return t.prototype;const l=d[e].prototype;return document.body.removeChild(u),l?ct[e]=l:r}catch(u){return r}}const qt={};function Ne(e,t,r){var s;const i=`${e}.${String(r)}`;if(qt[i])return qt[i].call(t);const a=yi(e),o=(s=Object.getOwnPropertyDescriptor(a,r))==null?void 0:s.get;return o?(qt[i]=o,o.call(t)):t[r]}const Wt={};function Xn(e,t,r){const s=`${e}.${String(r)}`;if(Wt[s])return Wt[s].bind(t);const a=yi(e)[r];return typeof a!="function"?t[r]:(Wt[s]=a,a.bind(t))}function Ea(e){return Ne("Node",e,"childNodes")}function Ra(e){return Ne("Node",e,"parentNode")}function xa(e){return Ne("Node",e,"parentElement")}function Ma(e){return Ne("Node",e,"textContent")}function Na(e,t){return Xn("Node",e,"contains")(t)}function _a(e){return Xn("Node",e,"getRootNode")()}function Oa(e){return!e||!("host"in e)?null:Ne("ShadowRoot",e,"host")}function Aa(e){return e.styleSheets}function Da(e){return!e||!("shadowRoot"in e)?null:Ne("Element",e,"shadowRoot")}function Pa(e,t){return Ne("Element",e,"querySelector")(t)}function Ta(e,t){return Ne("Element",e,"querySelectorAll")(t)}function ka(){return yi("MutationObserver").constructor}function Ia(e,t,r){try{if(!(t in e))return()=>{};const s=e[t],i=r(s);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=i,()=>{e[t]=s}}catch(s){return()=>{}}}const La={childNodes:Ea,parentNode:Ra,parentElement:xa,textContent:Ma,contains:Na,getRootNode:_a,host:Oa,styleSheets:Aa,shadowRoot:Da,querySelector:Pa,querySelectorAll:Ta,mutationObserver:ka,patch:Ia};function Qn(e){return e.nodeType===e.ELEMENT_NODE}class Kn{constructor(){Gi(this,"idNodeMap",new Map),Gi(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const s=(r=this.getMeta(t))==null?void 0:r.id;return s!=null?s:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);if(this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(s=>this.removeNodeFromMap(s)),Qn(t)){const s=La.shadowRoot(t);s&&this.removeNodeFromMap(s),t.nodeName==="IFRAME"&&t.contentDocument&&this.removeNodeFromMap(t.contentDocument)}}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const s=r.id;this.idNodeMap.set(s,t),this.nodeMetaMap.set(t,r)}replace(t,r){const s=this.getNode(t);if(s){const i=this.nodeMetaMap.get(s);i&&this.nodeMetaMap.set(r,i)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Zn(){return new Kn}function Fa(e){return e.toLowerCase()}function Ba(e,t){return!e||!t||e.type!==t.type?!1:e.type===re.Document?e.compatMode===t.compatMode:e.type===re.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===re.Comment||e.type===re.Text||e.type===re.CDATA?e.textContent===t.textContent:e.type===re.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function Ua(e,t){var a;let r;try{r=new URL(e,t!=null?t:window.location.href)}catch(o){return null}const s=/\.([0-9a-z]+)(?:$)/i,i=r.pathname.match(s);return(a=i==null?void 0:i[1])!=null?a:null}const za=/(max|min)-device-(width|height)/,Ji=new RegExp(za.source,"g"),qa={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(Ji)&&(e.params=e.params.replace(Ji,"$1-$2"))}}}},Wa={postcssPlugin:"postcss-hover-classes",prepare:function(){const e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(r){if(r.includes(":hover")){const s=r.replace(new RegExp("(?<!\\\\):hover","g"),".\\:hover");s!==r&&(t.selector+=`,
|
|
3
3
|
`+s)}}))}}}};function eo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $a(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,i.get?i:{enumerable:!0,get:function(){return e[s]}})}),r}var ht={exports:{}},Xi;function ja(){if(Xi)return ht.exports;Xi=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return ht.exports=t(),ht.exports.createColors=t,ht.exports}const Va={},Ga=Object.freeze(Object.defineProperty({__proto__:null,default:Va},Symbol.toStringTag,{value:"Module"})),me=$a(Ga);var $t,Qi;function wi(){if(Qi)return $t;Qi=1;let e=ja(),t=me;class r extends Error{constructor(i,a,o,u,d,l){super(i),this.name="CssSyntaxError",this.reason=i,d&&(this.file=d),u&&(this.source=u),l&&(this.plugin=l),typeof a!="undefined"&&typeof o!="undefined"&&(typeof a=="number"?(this.line=a,this.column=o):(this.line=a.line,this.column=a.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(i){if(!this.source)return"";let a=this.source;i==null&&(i=e.isColorSupported);let o=h=>h,u=h=>h,d=h=>h;if(i){let{bold:h,gray:p,red:m}=e.createColors(!0);u=g=>h(m(g)),o=g=>p(g),t&&(d=g=>t(g))}let l=a.split(/\r?\n/),n=Math.max(this.line-3,0),c=Math.min(this.line+2,l.length),f=String(c).length;return l.slice(n,c).map((h,p)=>{let m=n+1+p,g=" "+(" "+m).slice(-f)+" | ";if(m===this.line){if(h.length>160){let y=20,S=Math.max(0,this.column-y),E=Math.max(this.column+y,this.endColumn+y),w=h.slice(S,E),b=o(g.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,y-1)).replace(/[^\t]/g," ");return u(">")+o(g)+d(w)+`
|
|
4
4
|
`+b+u("^")}let v=o(g.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+o(g)+d(h)+`
|
|
5
5
|
`+v+u("^")}return" "+o(g)+d(h)}).join(`
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(i){let a;return i.walkDecls(o=>{if(typeof o.raws.between!="undefined")return a=o.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length===0&&(a=o.raws.after,typeof a!="undefined"))return!1}),a}rawIndent(i){if(i.raws.indent)return i.raws.indent;let a;return i.walk(o=>{let u=o.parent;if(u&&u!==i&&u.parent&&u.parent===i&&typeof o.raws.before!="undefined"){let d=o.raws.before.split(`
|
|
20
20
|
`);return a=d[d.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(a=o.raws.semicolon,typeof a!="undefined"))return!1}),a}rawValue(i,a){let o=i[a],u=i.raws[a];return u&&u.value===o?u.raw:o}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,a){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,a)}}return jt=r,r.default=r,jt}var Vt,Zi;function Ot(){if(Zi)return Vt;Zi=1;let e=to();function t(r,s){new e(s).stringify(r)}return Vt=t,t.default=t,Vt}var ft={},es;function vi(){return es||(es=1,ft.isClean=Symbol("isClean"),ft.my=Symbol("my")),ft}var Gt,ts;function At(){if(ts)return Gt;ts=1;let e=wi(),t=to(),r=Ot(),{isClean:s,my:i}=vi();function a(d,l){let n=new d.constructor;for(let c in d){if(!Object.prototype.hasOwnProperty.call(d,c)||c==="proxyCache")continue;let f=d[c],h=typeof f;c==="parent"&&h==="object"?l&&(n[c]=l):c==="source"?n[c]=f:Array.isArray(f)?n[c]=f.map(p=>a(p,n)):(h==="object"&&f!==null&&(f=a(f)),n[c]=f)}return n}function o(d,l){if(l&&typeof l.offset!="undefined")return l.offset;let n=1,c=1,f=0;for(let h=0;h<d.length;h++){if(c===l.line&&n===l.column){f=h;break}d[h]===`
|
|
21
21
|
`?(n=1,c+=1):n+=1}return f}class u{get proxyOf(){return this}constructor(l={}){this.raws={},this[s]=!1,this[i]=!0;for(let n in l)if(n==="nodes"){this.nodes=[];for(let c of l[n])typeof c.clone=="function"?this.append(c.clone()):this.append(c)}else this[n]=l[n]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let n=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let n in l)this[n]=l[n];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let n=a(this);for(let c in l)n[c]=l[c];return n}cloneAfter(l={}){let n=this.clone(l);return this.parent.insertAfter(this,n),n}cloneBefore(l={}){let n=this.clone(l);return this.parent.insertBefore(this,n),n}error(l,n={}){if(this.source){let{end:c,start:f}=this.rangeBy(n);return this.source.input.error(l,{column:f.column,line:f.line},{column:c.column,line:c.line},n)}return new e(l)}getProxyProcessor(){return{get(l,n){return n==="proxyOf"?l:n==="root"?()=>l.root().toProxy():l[n]},set(l,n,c){return l[n]===c||(l[n]=c,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&l.markDirty()),!0}}}markClean(){this[s]=!0}markDirty(){if(this[s]){this[s]=!1;let l=this;for(;l=l.parent;)l[s]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l={}){let n=this.source.start;if(l.index)n=this.positionInside(l.index);else if(l.word){let c="document"in this.source.input?this.source.input.document:this.source.input.css,h=c.slice(o(c,this.source.start),o(c,this.source.end)).indexOf(l.word);h!==-1&&(n=this.positionInside(h))}return n}positionInside(l){let n=this.source.start.column,c=this.source.start.line,f="document"in this.source.input?this.source.input.document:this.source.input.css,h=o(f,this.source.start),p=h+l;for(let m=h;m<p;m++)f[m]===`
|
|
22
|
-
`?(n=1,c+=1):n+=1;return{column:n,line:c,offset:p}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l={}){let n="document"in this.source.input?this.source.input.document:this.source.input.css,c={column:this.source.start.column,line:this.source.start.line,offset:o(n,this.source.start)},f=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:o(n,this.source.end)+1}:{column:c.column+1,line:c.line,offset:c.offset+1};if(l.word){let p=n.slice(o(n,this.source.start),o(n,this.source.end)).indexOf(l.word);p!==-1&&(c=this.positionInside(p),f=this.positionInside(p+l.word.length))}else l.start?c={column:l.start.column,line:l.start.line,offset:o(n,l.start)}:l.index&&(c=this.positionInside(l.index)),l.end?f={column:l.end.column,line:l.end.line,offset:o(n,l.end)}:typeof l.endIndex=="number"?f=this.positionInside(l.endIndex):l.index&&(f=this.positionInside(l.index+1));return(f.line<c.line||f.line===c.line&&f.column<=c.column)&&(f={column:c.column+1,line:c.line,offset:c.offset+1}),{end:f,start:c}}raw(l,n){return new t().raw(this,l,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let n=this,c=!1;for(let f of l)f===this?c=!0:c?(this.parent.insertAfter(n,f),n=f):this.parent.insertBefore(n,f);c||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,n){let c={},f=n==null;n=n||new Map;let h=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let m=this[p];if(Array.isArray(m))c[p]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,n):g);else if(typeof m=="object"&&m.toJSON)c[p]=m.toJSON(null,n);else if(p==="source"){if(m==null)continue;let g=n.get(m.input);g==null&&(g=h,n.set(m.input,h),h++),c[p]={end:m.end,inputId:g,start:m.start}}else c[p]=m}return f&&(c.inputs=[...n.keys()].map(p=>p.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=r){l.stringify&&(l=l.stringify);let n="";return l(this,c=>{n+=c}),n}warn(l,n,c={}){let f={node:this};for(let h in c)f[h]=c[h];return l.warn(n,f)}}return Gt=u,u.default=u,Gt}var Ht,rs;function st(){if(rs)return Ht;rs=1;let e=At();class t extends e{constructor(s){super(s),this.type="comment"}}return Ht=t,t.default=t,Ht}var Yt,is;function Dt(){if(is)return Yt;is=1;let e=At();class t extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(s){s&&typeof s.value!="undefined"&&typeof s.value!="string"&&(s=le(Q({},s),{value:String(s.value)})),super(s),this.type="decl"}}return Yt=t,t.default=t,Yt}var Jt,ss;function ke(){if(ss)return Jt;ss=1;let e=st(),t=Dt(),r=At(),{isClean:s,my:i}=vi(),a,o,u,d;function l(f){return f.map(h=>(h.nodes&&(h.nodes=l(h.nodes)),delete h.source,h))}function n(f){if(f[s]=!1,f.proxyOf.nodes)for(let h of f.proxyOf.nodes)n(h)}class c extends r{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(...h){for(let p of h){let m=this.normalize(p,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let p of this.nodes)p.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let p=this.getIterator(),m,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(m=this.indexes[p],g=h(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(h){return this.nodes.every(h)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let h=this.lastEach;return this.indexes[h]=0,h}getProxyProcessor(){return{get(h,p){return p==="proxyOf"?h:h[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...m)=>h[p](...m.map(g=>typeof g=="function"?(v,y)=>g(v.toProxy(),y):g)):p==="every"||p==="some"?m=>h[p]((g,...v)=>m(g.toProxy(),...v)):p==="root"?()=>h.root().toProxy():p==="nodes"?h.nodes.map(m=>m.toProxy()):p==="first"||p==="last"?h[p].toProxy():h[p]:h[p]},set(h,p,m){return h[p]===m||(h[p]=m,(p==="name"||p==="params"||p==="selector")&&h.markDirty()),!0}}}index(h){return typeof h=="number"?h:(h.proxyOf&&(h=h.proxyOf),this.proxyOf.nodes.indexOf(h))}insertAfter(h,p){let m=this.index(h),g=this.normalize(p,this.proxyOf.nodes[m]).reverse();m=this.index(h);for(let y of g)this.proxyOf.nodes.splice(m+1,0,y);let v;for(let y in this.indexes)v=this.indexes[y],m<v&&(this.indexes[y]=v+g.length);return this.markDirty(),this}insertBefore(h,p){let m=this.index(h),g=m===0?"prepend":!1,v=this.normalize(p,this.proxyOf.nodes[m],g).reverse();m=this.index(h);for(let S of v)this.proxyOf.nodes.splice(m,0,S);let y;for(let S in this.indexes)y=this.indexes[S],m<=y&&(this.indexes[S]=y+v.length);return this.markDirty(),this}normalize(h,p){if(typeof h=="string")h=l(o(h).nodes);else if(typeof h=="undefined")h=[];else if(Array.isArray(h)){h=h.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type==="root"&&this.type!=="document"){h=h.nodes.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type)h=[h];else if(h.prop){if(typeof h.value=="undefined")throw new Error("Value field is missed in node creation");typeof h.value!="string"&&(h.value=String(h.value)),h=[new t(h)]}else if(h.selector||h.selectors)h=[new d(h)];else if(h.name)h=[new a(h)];else if(h.text)h=[new e(h)];else throw new Error("Unknown node type in node creation");return h.map(g=>(g[i]||c.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[s]&&n(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&p&&typeof p.raws.before!="undefined"&&(g.raws.before=p.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...h){h=h.reverse();for(let p of h){let m=this.normalize(p,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(h){return h.parent=this,this.proxyOf.nodes.push(h),this}removeAll(){for(let h of this.proxyOf.nodes)h.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(h){h=this.index(h),this.proxyOf.nodes[h].parent=void 0,this.proxyOf.nodes.splice(h,1);let p;for(let m in this.indexes)p=this.indexes[m],p>=h&&(this.indexes[m]=p-1);return this.markDirty(),this}replaceValues(h,p,m){return m||(m=p,p={}),this.walkDecls(g=>{p.props&&!p.props.includes(g.prop)||p.fast&&!g.value.includes(p.fast)||(g.value=g.value.replace(h,m))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((p,m)=>{let g;try{g=h(p,m)}catch(v){throw p.addToError(v)}return g!==!1&&p.walk&&(g=p.walk(h)),g})}walkAtRules(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&h.test(m.name))return p(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="atrule")return p(m,g)}))}walkComments(h){return this.walk((p,m)=>{if(p.type==="comment")return h(p,m)})}walkDecls(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="decl"&&h.test(m.prop))return p(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="decl")return p(m,g)}))}walkRules(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&h.test(m.selector))return p(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="rule")return p(m,g)}))}}return c.registerParse=f=>{o=f},c.registerRule=f=>{d=f},c.registerAtRule=f=>{a=f},c.registerRoot=f=>{u=f},Jt=c,c.default=c,c.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,a.prototype):f.type==="rule"?Object.setPrototypeOf(f,d.prototype):f.type==="decl"?Object.setPrototypeOf(f,t.prototype):f.type==="comment"?Object.setPrototypeOf(f,e.prototype):f.type==="root"&&Object.setPrototypeOf(f,u.prototype),f[i]=!0,f.nodes&&f.nodes.forEach(h=>{c.rebuild(h)})},Jt}var Xt,ns;function bi(){if(ns)return Xt;ns=1;let e=ke();class t extends e{constructor(s){super(s),this.type="atrule"}append(...s){return this.proxyOf.nodes||(this.nodes=[]),super.append(...s)}prepend(...s){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...s)}}return Xt=t,t.default=t,e.registerAtRule(t),Xt}var Qt,os;function Si(){if(os)return Qt;os=1;let e=ke(),t,r;class s extends e{constructor(a){super(Q({type:"document"},a)),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return s.registerLazyResult=i=>{t=i},s.registerProcessor=i=>{r=i},Qt=s,s.default=s,Qt}var Kt,as;function Ha(){if(as)return Kt;as=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Kt={nanoid:(s=21)=>{let i="",a=s|0;for(;a--;)i+=e[Math.random()*64|0];return i},customAlphabet:(s,i=21)=>(a=i)=>{let o="",u=a|0;for(;u--;)o+=s[Math.random()*s.length|0];return o}},Kt}var Zt,ls;function ro(){if(ls)return Zt;ls=1;let{existsSync:e,readFileSync:t}=me,{dirname:r,join:s}=me,{SourceMapConsumer:i,SourceMapGenerator:a}=me;function o(d){return Buffer?Buffer.from(d,"base64").toString():window.atob(d)}class u{constructor(l,n){if(n.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let c=n.map?n.map.prev:void 0,f=this.loadMap(n.from,c);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=r(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(l){let n=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/,p=l.match(f)||l.match(h);if(p)return decodeURIComponent(l.substr(p[0].length));let m=l.match(n)||l.match(c);if(m)return o(l.substr(m[0].length));let g=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let n=l.match(/\/\*\s*# sourceMappingURL=/g);if(!n)return;let c=l.lastIndexOf(n.pop()),f=l.indexOf("*/",c);c>-1&&f>-1&&(this.annotation=this.getAnnotationURL(l.substring(c,f)))}loadFile(l){if(this.root=r(l),e(l))return this.mapFile=l,t(l,"utf-8").toString().trim()}loadMap(l,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let c=n(l);if(c){let f=this.loadFile(c);if(!f)throw new Error("Unable to load previous source map: "+c.toString());return f}}else{if(n instanceof i)return a.fromSourceMap(n).toString();if(n instanceof a)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return l&&(c=s(r(l),c)),this.loadFile(c)}}}startWith(l,n){return l?l.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Zt=u,u.default=u,Zt}var er,us;function Pt(){if(us)return er;us=1;let{nanoid:e}=Ha(),{isAbsolute:t,resolve:r}=me,{SourceMapConsumer:s,SourceMapGenerator:i}=me,{fileURLToPath:a,pathToFileURL:o}=me,u=wi(),d=ro(),l=me,n=Symbol("lineToIndexCache"),c=!!(s&&i),f=!!(r&&t);function h(m){if(m[n])return m[n];let g=m.css.split(`
|
|
23
|
-
`),v=new Array(g.length),y=0;for(let S=0,E=g.length;S<E;S++)v[S]=y,y+=g[S].length+1;return m[n]=v,v}class p{get from(){return this.file||this.id}constructor(g,v={}){if(g===null||typeof g=="undefined"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.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,v.document&&(this.document=v.document.toString()),v.from&&(!f||/^\w+:\/\//.test(v.from)||t(v.from)?this.file=v.from:this.file=r(v.from)),f&&c){let y=new d(this.css,v);if(y.text){this.map=y;let S=y.consumer().file;!this.file&&S&&(this.file=this.mapResolve(S))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(g,v,y,S={}){let E,w,b,C,R;if(v&&typeof v=="object"){let x=v,I=y;if(typeof x.offset=="number"){C=x.offset;let T=this.fromOffset(C);v=T.line,y=T.col}else v=x.line,y=x.column,C=this.fromLineAndColumn(v,y);if(typeof I.offset=="number"){b=I.offset;let T=this.fromOffset(b);w=T.line,E=T.col}else w=I.line,E=I.column,b=this.fromLineAndColumn(I.line,I.column)}else if(y)C=this.fromLineAndColumn(v,y);else{C=v;let x=this.fromOffset(C);v=x.line,y=x.col}let N=this.origin(v,y,w,E);return N?R=new u(g,N.endLine===void 0?N.line:{column:N.column,line:N.line},N.endLine===void 0?N.column:{column:N.endColumn,line:N.endLine},N.source,N.file,S.plugin):R=new u(g,w===void 0?v:{column:y,line:v},w===void 0?y:{column:E,line:w},this.css,this.file,S.plugin),R.input={column:y,endColumn:E,endLine:w,endOffset:b,line:v,offset:C,source:this.css},this.file&&(o&&(R.input.url=o(this.file).toString()),R.input.file=this.file),R}fromLineAndColumn(g,v){return h(this)[g-1]+v-1}fromOffset(g){let v=h(this),y=v[v.length-1],S=0;if(g>=y)S=v.length-1;else{let E=v.length-2,w;for(;S<E;)if(w=S+(E-S>>1),g<v[w])E=w-1;else if(g>=v[w+1])S=w+1;else{S=w;break}}return{col:g-v[S]+1,line:S+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:r(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,v,y,S){if(!this.map)return!1;let E=this.map.consumer(),w=E.originalPositionFor({column:v,line:g});if(!w.source)return!1;let b;typeof y=="number"&&(b=E.originalPositionFor({column:S,line:y}));let C;t(w.source)?C=o(w.source):C=new URL(w.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let R={column:w.column,endColumn:b&&b.column,endLine:b&&b.line,line:w.line,url:C.toString()};if(C.protocol==="file:")if(a)R.file=a(C);else throw new Error("file: protocol is not available in this PostCSS build");let N=E.sourceContentFor(w.source);return N&&(R.source=N),R}toJSON(){let g={};for(let v of["hasBOM","css","file","id"])this[v]!=null&&(g[v]=this[v]);return this.map&&(g.map=
|
|
24
|
-
`," "];return e.split(t,r)},split(t,r,s){let i=[],a="",o=!1,u=0,d=!1,l="",n=!1;for(let c of t)n?n=!1:c==="\\"?n=!0:d?c===l&&(d=!1):c==='"'||c==="'"?(d=!0,l=c):c==="("?u+=1:c===")"?u>0&&(u-=1):u===0&&r.includes(c)&&(o=!0),o?(a!==""&&i.push(a.trim()),a="",o=!1):a+=c;return(s||a!=="")&&i.push(a.trim()),i}};return rr=e,e.default=e,rr}var ir,fs;function Ci(){if(fs)return ir;fs=1;let e=ke(),t=io();class r extends e{get selectors(){return t.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,o=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(o)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}}return ir=r,r.default=r,e.registerRule(r),ir}var sr,ds;function Ya(){if(ds)return sr;ds=1;let e=bi(),t=st(),r=Dt(),s=Pt(),i=ro(),a=nt(),o=Ci();function u(d,l){if(Array.isArray(d))return d.map(p=>u(p));let f=d,{inputs:n}=f,c=Je(f,["inputs"]);if(n){l=[];for(let p of n){let m=le(
|
|
22
|
+
`?(n=1,c+=1):n+=1;return{column:n,line:c,offset:p}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l={}){let n="document"in this.source.input?this.source.input.document:this.source.input.css,c={column:this.source.start.column,line:this.source.start.line,offset:o(n,this.source.start)},f=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:o(n,this.source.end)+1}:{column:c.column+1,line:c.line,offset:c.offset+1};if(l.word){let p=n.slice(o(n,this.source.start),o(n,this.source.end)).indexOf(l.word);p!==-1&&(c=this.positionInside(p),f=this.positionInside(p+l.word.length))}else l.start?c={column:l.start.column,line:l.start.line,offset:o(n,l.start)}:l.index&&(c=this.positionInside(l.index)),l.end?f={column:l.end.column,line:l.end.line,offset:o(n,l.end)}:typeof l.endIndex=="number"?f=this.positionInside(l.endIndex):l.index&&(f=this.positionInside(l.index+1));return(f.line<c.line||f.line===c.line&&f.column<=c.column)&&(f={column:c.column+1,line:c.line,offset:c.offset+1}),{end:f,start:c}}raw(l,n){return new t().raw(this,l,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let n=this,c=!1;for(let f of l)f===this?c=!0:c?(this.parent.insertAfter(n,f),n=f):this.parent.insertBefore(n,f);c||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,n){let c={},f=n==null;n=n||new Map;let h=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let m=this[p];if(Array.isArray(m))c[p]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,n):g);else if(typeof m=="object"&&m.toJSON)c[p]=m.toJSON(null,n);else if(p==="source"){if(m==null)continue;let g=n.get(m.input);g==null&&(g=h,n.set(m.input,h),h++),c[p]={end:m.end,inputId:g,start:m.start}}else c[p]=m}return f&&(c.inputs=[...n.keys()].map(p=>p.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=r){l.stringify&&(l=l.stringify);let n="";return l(this,c=>{n+=c}),n}warn(l,n,c={}){let f={node:this};for(let h in c)f[h]=c[h];return l.warn(n,f)}}return Gt=u,u.default=u,Gt}var Ht,rs;function st(){if(rs)return Ht;rs=1;let e=At();class t extends e{constructor(s){super(s),this.type="comment"}}return Ht=t,t.default=t,Ht}var Yt,is;function Dt(){if(is)return Yt;is=1;let e=At();class t extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(s){s&&typeof s.value!="undefined"&&typeof s.value!="string"&&(s=le(Y({},s),{value:String(s.value)})),super(s),this.type="decl"}}return Yt=t,t.default=t,Yt}var Jt,ss;function ke(){if(ss)return Jt;ss=1;let e=st(),t=Dt(),r=At(),{isClean:s,my:i}=vi(),a,o,u,d;function l(f){return f.map(h=>(h.nodes&&(h.nodes=l(h.nodes)),delete h.source,h))}function n(f){if(f[s]=!1,f.proxyOf.nodes)for(let h of f.proxyOf.nodes)n(h)}class c extends r{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(...h){for(let p of h){let m=this.normalize(p,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let p of this.nodes)p.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let p=this.getIterator(),m,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(m=this.indexes[p],g=h(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(h){return this.nodes.every(h)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let h=this.lastEach;return this.indexes[h]=0,h}getProxyProcessor(){return{get(h,p){return p==="proxyOf"?h:h[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...m)=>h[p](...m.map(g=>typeof g=="function"?(v,y)=>g(v.toProxy(),y):g)):p==="every"||p==="some"?m=>h[p]((g,...v)=>m(g.toProxy(),...v)):p==="root"?()=>h.root().toProxy():p==="nodes"?h.nodes.map(m=>m.toProxy()):p==="first"||p==="last"?h[p].toProxy():h[p]:h[p]},set(h,p,m){return h[p]===m||(h[p]=m,(p==="name"||p==="params"||p==="selector")&&h.markDirty()),!0}}}index(h){return typeof h=="number"?h:(h.proxyOf&&(h=h.proxyOf),this.proxyOf.nodes.indexOf(h))}insertAfter(h,p){let m=this.index(h),g=this.normalize(p,this.proxyOf.nodes[m]).reverse();m=this.index(h);for(let y of g)this.proxyOf.nodes.splice(m+1,0,y);let v;for(let y in this.indexes)v=this.indexes[y],m<v&&(this.indexes[y]=v+g.length);return this.markDirty(),this}insertBefore(h,p){let m=this.index(h),g=m===0?"prepend":!1,v=this.normalize(p,this.proxyOf.nodes[m],g).reverse();m=this.index(h);for(let S of v)this.proxyOf.nodes.splice(m,0,S);let y;for(let S in this.indexes)y=this.indexes[S],m<=y&&(this.indexes[S]=y+v.length);return this.markDirty(),this}normalize(h,p){if(typeof h=="string")h=l(o(h).nodes);else if(typeof h=="undefined")h=[];else if(Array.isArray(h)){h=h.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type==="root"&&this.type!=="document"){h=h.nodes.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type)h=[h];else if(h.prop){if(typeof h.value=="undefined")throw new Error("Value field is missed in node creation");typeof h.value!="string"&&(h.value=String(h.value)),h=[new t(h)]}else if(h.selector||h.selectors)h=[new d(h)];else if(h.name)h=[new a(h)];else if(h.text)h=[new e(h)];else throw new Error("Unknown node type in node creation");return h.map(g=>(g[i]||c.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[s]&&n(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&p&&typeof p.raws.before!="undefined"&&(g.raws.before=p.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...h){h=h.reverse();for(let p of h){let m=this.normalize(p,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(h){return h.parent=this,this.proxyOf.nodes.push(h),this}removeAll(){for(let h of this.proxyOf.nodes)h.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(h){h=this.index(h),this.proxyOf.nodes[h].parent=void 0,this.proxyOf.nodes.splice(h,1);let p;for(let m in this.indexes)p=this.indexes[m],p>=h&&(this.indexes[m]=p-1);return this.markDirty(),this}replaceValues(h,p,m){return m||(m=p,p={}),this.walkDecls(g=>{p.props&&!p.props.includes(g.prop)||p.fast&&!g.value.includes(p.fast)||(g.value=g.value.replace(h,m))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((p,m)=>{let g;try{g=h(p,m)}catch(v){throw p.addToError(v)}return g!==!1&&p.walk&&(g=p.walk(h)),g})}walkAtRules(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&h.test(m.name))return p(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="atrule")return p(m,g)}))}walkComments(h){return this.walk((p,m)=>{if(p.type==="comment")return h(p,m)})}walkDecls(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="decl"&&h.test(m.prop))return p(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="decl")return p(m,g)}))}walkRules(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&h.test(m.selector))return p(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="rule")return p(m,g)}))}}return c.registerParse=f=>{o=f},c.registerRule=f=>{d=f},c.registerAtRule=f=>{a=f},c.registerRoot=f=>{u=f},Jt=c,c.default=c,c.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,a.prototype):f.type==="rule"?Object.setPrototypeOf(f,d.prototype):f.type==="decl"?Object.setPrototypeOf(f,t.prototype):f.type==="comment"?Object.setPrototypeOf(f,e.prototype):f.type==="root"&&Object.setPrototypeOf(f,u.prototype),f[i]=!0,f.nodes&&f.nodes.forEach(h=>{c.rebuild(h)})},Jt}var Xt,ns;function bi(){if(ns)return Xt;ns=1;let e=ke();class t extends e{constructor(s){super(s),this.type="atrule"}append(...s){return this.proxyOf.nodes||(this.nodes=[]),super.append(...s)}prepend(...s){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...s)}}return Xt=t,t.default=t,e.registerAtRule(t),Xt}var Qt,os;function Si(){if(os)return Qt;os=1;let e=ke(),t,r;class s extends e{constructor(a){super(Y({type:"document"},a)),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return s.registerLazyResult=i=>{t=i},s.registerProcessor=i=>{r=i},Qt=s,s.default=s,Qt}var Kt,as;function Ha(){if(as)return Kt;as=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Kt={nanoid:(s=21)=>{let i="",a=s|0;for(;a--;)i+=e[Math.random()*64|0];return i},customAlphabet:(s,i=21)=>(a=i)=>{let o="",u=a|0;for(;u--;)o+=s[Math.random()*s.length|0];return o}},Kt}var Zt,ls;function ro(){if(ls)return Zt;ls=1;let{existsSync:e,readFileSync:t}=me,{dirname:r,join:s}=me,{SourceMapConsumer:i,SourceMapGenerator:a}=me;function o(d){return Buffer?Buffer.from(d,"base64").toString():window.atob(d)}class u{constructor(l,n){if(n.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let c=n.map?n.map.prev:void 0,f=this.loadMap(n.from,c);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=r(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(l){let n=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/,p=l.match(f)||l.match(h);if(p)return decodeURIComponent(l.substr(p[0].length));let m=l.match(n)||l.match(c);if(m)return o(l.substr(m[0].length));let g=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let n=l.match(/\/\*\s*# sourceMappingURL=/g);if(!n)return;let c=l.lastIndexOf(n.pop()),f=l.indexOf("*/",c);c>-1&&f>-1&&(this.annotation=this.getAnnotationURL(l.substring(c,f)))}loadFile(l){if(this.root=r(l),e(l))return this.mapFile=l,t(l,"utf-8").toString().trim()}loadMap(l,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let c=n(l);if(c){let f=this.loadFile(c);if(!f)throw new Error("Unable to load previous source map: "+c.toString());return f}}else{if(n instanceof i)return a.fromSourceMap(n).toString();if(n instanceof a)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return l&&(c=s(r(l),c)),this.loadFile(c)}}}startWith(l,n){return l?l.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Zt=u,u.default=u,Zt}var er,us;function Pt(){if(us)return er;us=1;let{nanoid:e}=Ha(),{isAbsolute:t,resolve:r}=me,{SourceMapConsumer:s,SourceMapGenerator:i}=me,{fileURLToPath:a,pathToFileURL:o}=me,u=wi(),d=ro(),l=me,n=Symbol("lineToIndexCache"),c=!!(s&&i),f=!!(r&&t);function h(m){if(m[n])return m[n];let g=m.css.split(`
|
|
23
|
+
`),v=new Array(g.length),y=0;for(let S=0,E=g.length;S<E;S++)v[S]=y,y+=g[S].length+1;return m[n]=v,v}class p{get from(){return this.file||this.id}constructor(g,v={}){if(g===null||typeof g=="undefined"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.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,v.document&&(this.document=v.document.toString()),v.from&&(!f||/^\w+:\/\//.test(v.from)||t(v.from)?this.file=v.from:this.file=r(v.from)),f&&c){let y=new d(this.css,v);if(y.text){this.map=y;let S=y.consumer().file;!this.file&&S&&(this.file=this.mapResolve(S))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(g,v,y,S={}){let E,w,b,C,R;if(v&&typeof v=="object"){let x=v,I=y;if(typeof x.offset=="number"){C=x.offset;let T=this.fromOffset(C);v=T.line,y=T.col}else v=x.line,y=x.column,C=this.fromLineAndColumn(v,y);if(typeof I.offset=="number"){b=I.offset;let T=this.fromOffset(b);w=T.line,E=T.col}else w=I.line,E=I.column,b=this.fromLineAndColumn(I.line,I.column)}else if(y)C=this.fromLineAndColumn(v,y);else{C=v;let x=this.fromOffset(C);v=x.line,y=x.col}let N=this.origin(v,y,w,E);return N?R=new u(g,N.endLine===void 0?N.line:{column:N.column,line:N.line},N.endLine===void 0?N.column:{column:N.endColumn,line:N.endLine},N.source,N.file,S.plugin):R=new u(g,w===void 0?v:{column:y,line:v},w===void 0?y:{column:E,line:w},this.css,this.file,S.plugin),R.input={column:y,endColumn:E,endLine:w,endOffset:b,line:v,offset:C,source:this.css},this.file&&(o&&(R.input.url=o(this.file).toString()),R.input.file=this.file),R}fromLineAndColumn(g,v){return h(this)[g-1]+v-1}fromOffset(g){let v=h(this),y=v[v.length-1],S=0;if(g>=y)S=v.length-1;else{let E=v.length-2,w;for(;S<E;)if(w=S+(E-S>>1),g<v[w])E=w-1;else if(g>=v[w+1])S=w+1;else{S=w;break}}return{col:g-v[S]+1,line:S+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:r(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,v,y,S){if(!this.map)return!1;let E=this.map.consumer(),w=E.originalPositionFor({column:v,line:g});if(!w.source)return!1;let b;typeof y=="number"&&(b=E.originalPositionFor({column:S,line:y}));let C;t(w.source)?C=o(w.source):C=new URL(w.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let R={column:w.column,endColumn:b&&b.column,endLine:b&&b.line,line:w.line,url:C.toString()};if(C.protocol==="file:")if(a)R.file=a(C);else throw new Error("file: protocol is not available in this PostCSS build");let N=E.sourceContentFor(w.source);return N&&(R.source=N),R}toJSON(){let g={};for(let v of["hasBOM","css","file","id"])this[v]!=null&&(g[v]=this[v]);return this.map&&(g.map=Y({},this.map),g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return er=p,p.default=p,l&&l.registerInput&&l.registerInput(p),er}var tr,cs;function nt(){if(cs)return tr;cs=1;let e=ke(),t,r;class s extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,o,u){let d=super.normalize(a);if(o){if(u==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let l of d)l.raws.before=o.raws.before}return d}removeChild(a,o){let u=this.index(a);return!o&&u===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[u].raws.before),super.removeChild(a)}toResult(a={}){return new t(new r,this,a).stringify()}}return s.registerLazyResult=i=>{t=i},s.registerProcessor=i=>{r=i},tr=s,s.default=s,e.registerRoot(s),tr}var rr,hs;function io(){if(hs)return rr;hs=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
24
|
+
`," "];return e.split(t,r)},split(t,r,s){let i=[],a="",o=!1,u=0,d=!1,l="",n=!1;for(let c of t)n?n=!1:c==="\\"?n=!0:d?c===l&&(d=!1):c==='"'||c==="'"?(d=!0,l=c):c==="("?u+=1:c===")"?u>0&&(u-=1):u===0&&r.includes(c)&&(o=!0),o?(a!==""&&i.push(a.trim()),a="",o=!1):a+=c;return(s||a!=="")&&i.push(a.trim()),i}};return rr=e,e.default=e,rr}var ir,fs;function Ci(){if(fs)return ir;fs=1;let e=ke(),t=io();class r extends e{get selectors(){return t.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,o=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(o)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}}return ir=r,r.default=r,e.registerRule(r),ir}var sr,ds;function Ya(){if(ds)return sr;ds=1;let e=bi(),t=st(),r=Dt(),s=Pt(),i=ro(),a=nt(),o=Ci();function u(d,l){if(Array.isArray(d))return d.map(p=>u(p));let f=d,{inputs:n}=f,c=Je(f,["inputs"]);if(n){l=[];for(let p of n){let m=le(Y({},p),{__proto__:s.prototype});m.map&&(m.map=le(Y({},m.map),{__proto__:i.prototype})),l.push(m)}}if(c.nodes&&(c.nodes=d.nodes.map(p=>u(p,l))),c.source){let h=c.source,{inputId:p}=h,m=Je(h,["inputId"]);c.source=m,p!=null&&(c.source.input=l[p])}if(c.type==="root")return new a(c);if(c.type==="decl")return new r(c);if(c.type==="rule")return new o(c);if(c.type==="comment")return new t(c);if(c.type==="atrule")return new e(c);throw new Error("Unknown node type: "+d.type)}return sr=u,u.default=u,sr}var nr,ps;function so(){if(ps)return nr;ps=1;let{dirname:e,relative:t,resolve:r,sep:s}=me,{SourceMapConsumer:i,SourceMapGenerator:a}=me,{pathToFileURL:o}=me,u=Pt(),d=!!(i&&a),l=!!(e&&r&&t&&s);class n{constructor(f,h,p,m){this.stringify=f,this.mapOpts=p.map||{},this.root=h,this.opts=p,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let h=`
|
|
25
25
|
`;this.css.includes(`\r
|
|
26
26
|
`)&&(h=`\r
|
|
27
27
|
`),this.css+=h+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let h=this.toUrl(this.path(f.file)),p=f.root||e(f.file),m;this.mapOpts.sourcesContent===!1?(m=new i(f.text),m.sourcesContent&&(m.sourcesContent=null)):m=f.consumer(),this.map.applySourceMap(m,h,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let h=this.root.nodes.length-1;h>=0;h--)f=this.root.nodes[h],f.type==="comment"&&f.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(h)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),l&&d&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,h=>{f+=h}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=a.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,h=1,p="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,v;this.stringify(this.root,(y,S,E)=>{if(this.css+=y,S&&E!=="end"&&(m.generated.line=f,m.generated.column=h-1,S.source&&S.source.start?(m.source=this.sourcePath(S),m.original.line=S.source.start.line,m.original.column=S.source.start.column-1,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,this.map.addMapping(m))),v=y.match(/\n/g),v?(f+=v.length,g=y.lastIndexOf(`
|
|
28
|
-
`),h=y.length-g):h+=y.length,S&&E!=="start"){let w=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==w.last||w.raws.semicolon)&&(S.source&&S.source.end?(m.source=this.sourcePath(S),m.original.line=S.source.end.line,m.original.column=S.source.end.column-1,m.generated.line=f,m.generated.column=h-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=f,m.generated.column=h-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f!="undefined"&&f!==!0?!1:this.previous().length?this.previous().some(h=>h.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let h=this.memoizedPaths.get(f);if(h)return h;let p=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=e(r(p,this.mapOpts.annotation)));let m=t(p,f);return this.memoizedPaths.set(f,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let h=f.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let f=new u(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(h=>{if(h.source){let p=h.source.input.from;if(p&&!f[p]){f[p]=!0;let m=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(m,h.source.input.css)}}});else if(this.css){let h=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(h,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let h=this.memoizedFileURLs.get(f);if(h)return h;if(o){let p=o(f).toString();return this.memoizedFileURLs.set(f,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let h=this.memoizedURLs.get(f);if(h)return h;s==="\\"&&(f=f.replace(/\\/g,"/"));let p=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,p),p}}return nr=n,nr}var or,ms;function no(){if(ms)return or;ms=1;const e=39,t=34,r=92,s=47,i=10,a=32,o=12,u=9,d=13,l=91,n=93,c=40,f=41,h=123,p=125,m=59,g=42,v=58,y=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return or=function(R,N={}){let x=R.css.valueOf(),I=N.ignoreErrors,T,J,U,M,q,L,j,H,z,X,ae=x.length,_=0,D=[],A=[];function O(){return _}function P(ie){throw R.error("Unclosed "+ie,_)}function $(){return A.length===0&&_>=ae}function ue(ie){if(A.length)return A.pop();if(_>=ae)return;let be=ie?ie.ignoreUnclosed:!1;switch(T=x.charCodeAt(_),T){case i:case a:case u:case d:case o:{M=_;do M+=1,T=x.charCodeAt(M);while(T===a||T===i||T===u||T===d||T===o);L=["space",x.slice(_,M)],_=M-1;break}case l:case n:case h:case p:case v:case m:case f:{let Ae=String.fromCharCode(T);L=[Ae,Ae,_];break}case c:{if(X=D.length?D.pop()[1]:"",z=x.charCodeAt(_+1),X==="url"&&z!==e&&z!==t&&z!==a&&z!==i&&z!==u&&z!==o&&z!==d){M=_;do{if(j=!1,M=x.indexOf(")",M+1),M===-1)if(I||be){M=_;break}else P("bracket");for(H=M;x.charCodeAt(H-1)===r;)H-=1,j=!j}while(j);L=["brackets",x.slice(_,M+1),_,M],_=M}else M=x.indexOf(")",_+1),J=x.slice(_,M+1),M===-1||w.test(J)?L=["(","(",_]:(L=["brackets",J,_,M],_=M);break}case e:case t:{q=T===e?"'":'"',M=_;do{if(j=!1,M=x.indexOf(q,M+1),M===-1)if(I||be){M=_+1;break}else P("string");for(H=M;x.charCodeAt(H-1)===r;)H-=1,j=!j}while(j);L=["string",x.slice(_,M+1),_,M],_=M;break}case y:{S.lastIndex=_+1,S.test(x),S.lastIndex===0?M=x.length-1:M=S.lastIndex-2,L=["at-word",x.slice(_,M+1),_,M],_=M;break}case r:{for(M=_,U=!0;x.charCodeAt(M+1)===r;)M+=1,U=!U;if(T=x.charCodeAt(M+1),U&&T!==s&&T!==a&&T!==i&&T!==u&&T!==d&&T!==o&&(M+=1,b.test(x.charAt(M)))){for(;b.test(x.charAt(M+1));)M+=1;x.charCodeAt(M+1)===a&&(M+=1)}L=["word",x.slice(_,M+1),_,M],_=M;break}default:{T===s&&x.charCodeAt(_+1)===g?(M=x.indexOf("*/",_+2)+1,M===0&&(I||be?M=x.length:P("comment")),L=["comment",x.slice(_,M+1),_,M],_=M):(E.lastIndex=_+1,E.test(x),E.lastIndex===0?M=x.length-1:M=E.lastIndex-2,L=["word",x.slice(_,M+1),_,M],D.push(L),_=M);break}}return _++,L}function ce(ie){A.push(ie)}return{back:ce,endOfFile:$,nextToken:ue,position:O}},or}var ar,gs;function oo(){if(gs)return ar;gs=1;let e=bi(),t=st(),r=Dt(),s=nt(),i=Ci(),a=no();const o={empty:!0,space:!0};function u(l){for(let n=l.length-1;n>=0;n--){let c=l[n],f=c[3]||c[2];if(f)return f}}class d{constructor(n){this.input=n,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:n,start:{column:1,line:1,offset:0}}}atrule(n){let c=new e;c.name=n[1].slice(1),c.name===""&&this.unnamedAtrule(c,n),this.init(c,n[2]);let f,h,p,m=!1,g=!1,v=[],y=[];for(;!this.tokenizer.endOfFile();){if(n=this.tokenizer.nextToken(),f=n[0],f==="("||f==="["?y.push(f==="("?")":"]"):f==="{"&&y.length>0?y.push("}"):f===y[y.length-1]&&y.pop(),y.length===0)if(f===";"){c.source.end=this.getPosition(n[2]),c.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(v.length>0){for(p=v.length-1,h=v[p];h&&h[0]==="space";)h=v[--p];h&&(c.source.end=this.getPosition(h[3]||h[2]),c.source.end.offset++)}this.end(n);break}else v.push(n);else v.push(n);if(this.tokenizer.endOfFile()){m=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(c.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(c,"params",v),m&&(n=v[v.length-1],c.source.end=this.getPosition(n[3]||n[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),g&&(c.nodes=[],this.current=c)}checkMissedSemicolon(n){let c=this.colon(n);if(c===!1)return;let f=0,h;for(let p=c-1;p>=0&&(h=n[p],!(h[0]!=="space"&&(f+=1,f===2)));p--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(n){let c=0,f,h,p;for(let[m,g]of n.entries()){if(h=g,p=h[0],p==="("&&(c+=1),p===")"&&(c-=1),c===0&&p===":")if(!f)this.doubleColon(h);else{if(f[0]==="word"&&f[1]==="progid")continue;return m}f=h}return!1}comment(n){let c=new t;this.init(c,n[2]),c.source.end=this.getPosition(n[3]||n[2]),c.source.end.offset++;let f=n[1].slice(2,-2);if(/^\s*$/.test(f))c.text="",c.raws.left=f,c.raws.right="";else{let h=f.match(/^(\s*)([^]*\S)(\s*)$/);c.text=h[2],c.raws.left=h[1],c.raws.right=h[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(n,c){let f=new r;this.init(f,n[0][2]);let h=n[n.length-1];for(h[0]===";"&&(this.semicolon=!0,n.pop()),f.source.end=this.getPosition(h[3]||h[2]||u(n)),f.source.end.offset++;n[0][0]!=="word";)n.length===1&&this.unknownWord(n),f.raws.before+=n.shift()[1];for(f.source.start=this.getPosition(n[0][2]),f.prop="";n.length;){let y=n[0][0];if(y===":"||y==="space"||y==="comment")break;f.prop+=n.shift()[1]}f.raws.between="";let p;for(;n.length;)if(p=n.shift(),p[0]===":"){f.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),f.raws.between+=p[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let m=[],g;for(;n.length&&(g=n[0][0],!(g!=="space"&&g!=="comment"));)m.push(n.shift());this.precheckMissedSemicolon(n);for(let y=n.length-1;y>=0;y--){if(p=n[y],p[1].toLowerCase()==="!important"){f.important=!0;let S=this.stringFrom(n,y);S=this.spacesFromEnd(n)+S,S!==" !important"&&(f.raws.important=S);break}else if(p[1].toLowerCase()==="important"){let S=n.slice(0),E="";for(let w=y;w>0;w--){let b=S[w][0];if(E.trim().startsWith("!")&&b!=="space")break;E=S.pop()[1]+E}E.trim().startsWith("!")&&(f.important=!0,f.raws.important=E,n=S)}if(p[0]!=="space"&&p[0]!=="comment")break}n.some(y=>y[0]!=="space"&&y[0]!=="comment")&&(f.raws.between+=m.map(y=>y[1]).join(""),m=[]),this.raw(f,"value",m.concat(n),c),f.value.includes(":")&&!c&&this.checkMissedSemicolon(n)}doubleColon(n){throw this.input.error("Double colon",{offset:n[2]},{offset:n[2]+n[1].length})}emptyRule(n){let c=new i;this.init(c,n[2]),c.selector="",c.raws.between="",this.current=c}end(n){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(n[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(n)}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(n){if(this.spaces+=n[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="",c.source.end=this.getPosition(n[2]),c.source.end.offset+=c.raws.ownSemicolon.length)}}getPosition(n){let c=this.input.fromOffset(n);return{column:c.col,line:c.line,offset:n}}init(n,c){this.current.push(n),n.source={input:this.input,start:this.getPosition(c)},n.raws.before=this.spaces,this.spaces="",n.type!=="comment"&&(this.semicolon=!1)}other(n){let c=!1,f=null,h=!1,p=null,m=[],g=n[1].startsWith("--"),v=[],y=n;for(;y;){if(f=y[0],v.push(y),f==="("||f==="[")p||(p=y),m.push(f==="("?")":"]");else if(g&&h&&f==="{")p||(p=y),m.push("}");else if(m.length===0)if(f===";")if(h){this.decl(v,g);return}else break;else if(f==="{"){this.rule(v);return}else if(f==="}"){this.tokenizer.back(v.pop()),c=!0;break}else f===":"&&(h=!0);else f===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));y=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),m.length>0&&this.unclosedBracket(p),c&&h){if(!g)for(;v.length&&(y=v[v.length-1][0],!(y!=="space"&&y!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,g)}else this.unknownWord(v)}parse(){let n;for(;!this.tokenizer.endOfFile();)switch(n=this.tokenizer.nextToken(),n[0]){case"space":this.spaces+=n[1];break;case";":this.freeSemicolon(n);break;case"}":this.end(n);break;case"comment":this.comment(n);break;case"at-word":this.atrule(n);break;case"{":this.emptyRule(n);break;default:this.other(n);break}this.endFile()}precheckMissedSemicolon(){}raw(n,c,f,h){let p,m,g=f.length,v="",y=!0,S,E;for(let w=0;w<g;w+=1)p=f[w],m=p[0],m==="space"&&w===g-1&&!h?y=!1:m==="comment"?(E=f[w-1]?f[w-1][0]:"empty",S=f[w+1]?f[w+1][0]:"empty",!o[E]&&!o[S]?v.slice(-1)===","?y=!1:v+=p[1]:y=!1):v+=p[1];if(!y){let w=f.reduce((b,C)=>b+C[1],"");n.raws[c]={raw:w,value:v}}n[c]=v}rule(n){n.pop();let c=new i;this.init(c,n[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(n),this.raw(c,"selector",n),this.current=c}spacesAndCommentsFromEnd(n){let c,f="";for(;n.length&&(c=n[n.length-1][0],!(c!=="space"&&c!=="comment"));)f=n.pop()[1]+f;return f}spacesAndCommentsFromStart(n){let c,f="";for(;n.length&&(c=n[0][0],!(c!=="space"&&c!=="comment"));)f+=n.shift()[1];return f}spacesFromEnd(n){let c,f="";for(;n.length&&(c=n[n.length-1][0],c==="space");)f=n.pop()[1]+f;return f}stringFrom(n,c){let f="";for(let h=c;h<n.length;h++)f+=n[h][1];return n.splice(c,n.length-c),f}unclosedBlock(){let n=this.current.source.start;throw this.input.error("Unclosed block",n.line,n.column)}unclosedBracket(n){throw this.input.error("Unclosed bracket",{offset:n[2]},{offset:n[2]+1})}unexpectedClose(n){throw this.input.error("Unexpected }",{offset:n[2]},{offset:n[2]+1})}unknownWord(n){throw this.input.error("Unknown word "+n[0][1],{offset:n[0][2]},{offset:n[0][2]+n[0][1].length})}unnamedAtrule(n,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return ar=d,ar}var lr,ys;function Ei(){if(ys)return lr;ys=1;let e=ke(),t=Pt(),r=oo();function s(i,a){let o=new t(i,a),u=new r(o);try{u.parse()}catch(d){throw d}return u.root}return lr=s,s.default=s,e.registerParse(s),lr}var ur,ws;function ao(){if(ws)return ur;ws=1;class e{constructor(r,s={}){if(this.type="warning",this.text=r,s.node&&s.node.source){let i=s.node.rangeBy(s);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in s)this[i]=s[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return ur=e,e.default=e,ur}var cr,vs;function Ri(){if(vs)return cr;vs=1;let e=ao();class t{get content(){return this.css}constructor(s,i,a){this.processor=s,this.messages=[],this.root=i,this.opts=a,this.css="",this.map=void 0}toString(){return this.css}warn(s,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(s,i);return this.messages.push(a),a}warnings(){return this.messages.filter(s=>s.type==="warning")}}return cr=t,t.default=t,cr}var hr,bs;function lo(){if(bs)return hr;bs=1;let e={};return hr=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},hr}var fr,Ss;function uo(){if(Ss)return fr;Ss=1;let e=ke(),t=Si(),r=so(),s=Ei(),i=Ri(),a=nt(),o=Ot(),{isClean:u,my:d}=vi(),l=lo();const n={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},c={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function p(E){return typeof E=="object"&&typeof E.then=="function"}function m(E){let w=!1,b=n[E.type];return E.type==="decl"?w=E.prop.toLowerCase():E.type==="atrule"&&(w=E.name.toLowerCase()),w&&E.append?[b,b+"-"+w,h,b+"Exit",b+"Exit-"+w]:w?[b,b+"-"+w,b+"Exit",b+"Exit-"+w]:E.append?[b,h,b+"Exit"]:[b,b+"Exit"]}function g(E){let w;return E.type==="document"?w=["Document",h,"DocumentExit"]:E.type==="root"?w=["Root",h,"RootExit"]:w=m(E),{eventIndex:0,events:w,iterator:0,node:E,visitorIndex:0,visitors:[]}}function v(E){return E[u]=!1,E.nodes&&E.nodes.forEach(w=>v(w)),E}let y={};class S{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(w,b,C){this.stringified=!1,this.processed=!1;let R;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))R=v(b);else if(b instanceof S||b instanceof i)R=v(b.root),b.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=b.map);else{let N=s;C.syntax&&(N=C.syntax.parse),C.parser&&(N=C.parser),N.parse&&(N=N.parse);try{R=N(b,C)}catch(x){this.processed=!0,this.error=x}R&&!R[d]&&e.rebuild(R)}this.result=new i(w,R,C),this.helpers=le(Q({},y),{postcss:y,result:this.result}),this.plugins=this.processor.plugins.map(N=>typeof N=="object"&&N.prepare?Q(Q({},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(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,b){let C=this.result.lastPlugin;try{b&&b.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=C.postcssPlugin,w.setMessage()):C.postcssVersion}catch(R){console&&console.error&&console.error(R)}return w}prepareVisitors(){this.listeners={};let w=(b,C,R)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([b,R])};for(let b of this.plugins)if(typeof b=="object")for(let C in b){if(!c[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[C])if(typeof b[C]=="object")for(let R in b[C])R==="*"?w(b,C,b[C][R]):w(b,C+"-"+R.toLowerCase(),b[C][R]);else typeof b[C]=="function"&&w(b,C,b[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let b=this.plugins[w],C=this.runOnRoot(b);if(p(C))try{await C}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[u];){w[u]=!0;let b=[g(w)];for(;b.length>0;){let C=this.visitTick(b);if(p(C))try{await C}catch(R){let N=b[b.length-1].node;throw this.handleError(R,N)}}}if(this.listeners.OnceExit)for(let[b,C]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(w.type==="document"){let R=w.nodes.map(N=>C(N,this.helpers));await Promise.all(R)}else await C(w,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(C=>w.Once(C,this.helpers));return p(b[0])?Promise.all(b):b}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,b=o;w.syntax&&(b=w.syntax.stringify),w.stringifier&&(b=w.stringifier),b.stringify&&(b=b.stringify);let R=new r(b,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let b=this.runOnRoot(w);if(p(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[u];)w[u]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let b of w.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,b){return this.async().then(w,b)}toString(){return this.css}visitSync(w,b){for(let[C,R]of w){this.result.lastPlugin=C;let N;try{N=R(b,this.helpers)}catch(x){throw this.handleError(x,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(p(N))throw this.getAsyncError()}}visitTick(w){let b=w[w.length-1],{node:C,visitors:R}=b;if(C.type!=="root"&&C.type!=="document"&&!C.parent){w.pop();return}if(R.length>0&&b.visitorIndex<R.length){let[x,I]=R[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===R.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=x;try{return I(C.toProxy(),this.helpers)}catch(T){throw this.handleError(T,C)}}if(b.iterator!==0){let x=b.iterator,I;for(;I=C.nodes[C.indexes[x]];)if(C.indexes[x]+=1,!I[u]){I[u]=!0,w.push(g(I));return}b.iterator=0,delete C.indexes[x]}let N=b.events;for(;b.eventIndex<N.length;){let x=N[b.eventIndex];if(b.eventIndex+=1,x===h){C.nodes&&C.nodes.length&&(C[u]=!0,b.iterator=C.getIterator());return}else if(this.listeners[x]){b.visitors=this.listeners[x];return}}w.pop()}walkSync(w){w[u]=!0;let b=m(w);for(let C of b)if(C===h)w.nodes&&w.each(R=>{R[u]||this.walkSync(R)});else{let R=this.listeners[C];if(R&&this.visitSync(R,w.toProxy()))return}}warnings(){return this.sync().warnings()}}return S.registerPostcss=E=>{y=E},fr=S,S.default=S,a.registerLazyResult(S),t.registerLazyResult(S),fr}var dr,Cs;function Ja(){if(Cs)return dr;Cs=1;let e=so(),t=Ei();const r=Ri();let s=Ot(),i=lo();class a{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let u,d=t;try{u=d(this._css,this._opts)}catch(l){this.error=l}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(u,d,l){d=d.toString(),this.stringified=!1,this._processor=u,this._css=d,this._opts=l,this._map=void 0;let n,c=s;this.result=new r(this._processor,n,this._opts),this.result.css=d;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let h=new e(c,n,this._opts,d);if(h.isMap()){let[p,m]=h.generate();p&&(this.result.css=p),m&&(this.result.map=m)}else h.clearAnnotation(),this.result.css=h.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,d){return this.async().then(u,d)}toString(){return this._css}warnings(){return[]}}return dr=a,a.default=a,dr}var pr,Es;function Xa(){if(Es)return pr;Es=1;let e=Si(),t=uo(),r=Ja(),s=nt();class i{constructor(o=[]){this.version="8.5.6",this.plugins=this.normalize(o)}normalize(o){let u=[];for(let d of o)if(d.postcss===!0?d=d():d.postcss&&(d=d.postcss),typeof d=="object"&&Array.isArray(d.plugins))u=u.concat(d.plugins);else if(typeof d=="object"&&d.postcssPlugin)u.push(d);else if(typeof d=="function")u.push(d);else if(!(typeof d=="object"&&(d.parse||d.stringify)))throw new Error(d+" is not a PostCSS plugin");return u}process(o,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new r(this,o,u):new t(this,o,u)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return pr=i,i.default=i,s.registerProcessor(i),e.registerProcessor(i),pr}var mr,Rs;function co(){if(Rs)return mr;Rs=1;let e=bi(),t=st(),r=ke(),s=wi(),i=Dt(),a=Si(),o=Ya(),u=Pt(),d=uo(),l=io(),n=At(),c=Ei(),f=Xa(),h=Ri(),p=nt(),m=Ci(),g=Ot(),v=ao();function y(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new f(S)}return y.plugin=function(E,w){let b=!1;function C(...N){console&&console.warn&&!b&&(b=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
|
|
28
|
+
`),h=y.length-g):h+=y.length,S&&E!=="start"){let w=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==w.last||w.raws.semicolon)&&(S.source&&S.source.end?(m.source=this.sourcePath(S),m.original.line=S.source.end.line,m.original.column=S.source.end.column-1,m.generated.line=f,m.generated.column=h-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=f,m.generated.column=h-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f!="undefined"&&f!==!0?!1:this.previous().length?this.previous().some(h=>h.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let h=this.memoizedPaths.get(f);if(h)return h;let p=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=e(r(p,this.mapOpts.annotation)));let m=t(p,f);return this.memoizedPaths.set(f,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let h=f.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let f=new u(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(h=>{if(h.source){let p=h.source.input.from;if(p&&!f[p]){f[p]=!0;let m=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(m,h.source.input.css)}}});else if(this.css){let h=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(h,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let h=this.memoizedFileURLs.get(f);if(h)return h;if(o){let p=o(f).toString();return this.memoizedFileURLs.set(f,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let h=this.memoizedURLs.get(f);if(h)return h;s==="\\"&&(f=f.replace(/\\/g,"/"));let p=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,p),p}}return nr=n,nr}var or,ms;function no(){if(ms)return or;ms=1;const e=39,t=34,r=92,s=47,i=10,a=32,o=12,u=9,d=13,l=91,n=93,c=40,f=41,h=123,p=125,m=59,g=42,v=58,y=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return or=function(R,N={}){let x=R.css.valueOf(),I=N.ignoreErrors,T,X,U,M,q,L,j,H,z,Q,ae=x.length,_=0,D=[],A=[];function O(){return _}function P(ie){throw R.error("Unclosed "+ie,_)}function $(){return A.length===0&&_>=ae}function ue(ie){if(A.length)return A.pop();if(_>=ae)return;let be=ie?ie.ignoreUnclosed:!1;switch(T=x.charCodeAt(_),T){case i:case a:case u:case d:case o:{M=_;do M+=1,T=x.charCodeAt(M);while(T===a||T===i||T===u||T===d||T===o);L=["space",x.slice(_,M)],_=M-1;break}case l:case n:case h:case p:case v:case m:case f:{let Ae=String.fromCharCode(T);L=[Ae,Ae,_];break}case c:{if(Q=D.length?D.pop()[1]:"",z=x.charCodeAt(_+1),Q==="url"&&z!==e&&z!==t&&z!==a&&z!==i&&z!==u&&z!==o&&z!==d){M=_;do{if(j=!1,M=x.indexOf(")",M+1),M===-1)if(I||be){M=_;break}else P("bracket");for(H=M;x.charCodeAt(H-1)===r;)H-=1,j=!j}while(j);L=["brackets",x.slice(_,M+1),_,M],_=M}else M=x.indexOf(")",_+1),X=x.slice(_,M+1),M===-1||w.test(X)?L=["(","(",_]:(L=["brackets",X,_,M],_=M);break}case e:case t:{q=T===e?"'":'"',M=_;do{if(j=!1,M=x.indexOf(q,M+1),M===-1)if(I||be){M=_+1;break}else P("string");for(H=M;x.charCodeAt(H-1)===r;)H-=1,j=!j}while(j);L=["string",x.slice(_,M+1),_,M],_=M;break}case y:{S.lastIndex=_+1,S.test(x),S.lastIndex===0?M=x.length-1:M=S.lastIndex-2,L=["at-word",x.slice(_,M+1),_,M],_=M;break}case r:{for(M=_,U=!0;x.charCodeAt(M+1)===r;)M+=1,U=!U;if(T=x.charCodeAt(M+1),U&&T!==s&&T!==a&&T!==i&&T!==u&&T!==d&&T!==o&&(M+=1,b.test(x.charAt(M)))){for(;b.test(x.charAt(M+1));)M+=1;x.charCodeAt(M+1)===a&&(M+=1)}L=["word",x.slice(_,M+1),_,M],_=M;break}default:{T===s&&x.charCodeAt(_+1)===g?(M=x.indexOf("*/",_+2)+1,M===0&&(I||be?M=x.length:P("comment")),L=["comment",x.slice(_,M+1),_,M],_=M):(E.lastIndex=_+1,E.test(x),E.lastIndex===0?M=x.length-1:M=E.lastIndex-2,L=["word",x.slice(_,M+1),_,M],D.push(L),_=M);break}}return _++,L}function ce(ie){A.push(ie)}return{back:ce,endOfFile:$,nextToken:ue,position:O}},or}var ar,gs;function oo(){if(gs)return ar;gs=1;let e=bi(),t=st(),r=Dt(),s=nt(),i=Ci(),a=no();const o={empty:!0,space:!0};function u(l){for(let n=l.length-1;n>=0;n--){let c=l[n],f=c[3]||c[2];if(f)return f}}class d{constructor(n){this.input=n,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:n,start:{column:1,line:1,offset:0}}}atrule(n){let c=new e;c.name=n[1].slice(1),c.name===""&&this.unnamedAtrule(c,n),this.init(c,n[2]);let f,h,p,m=!1,g=!1,v=[],y=[];for(;!this.tokenizer.endOfFile();){if(n=this.tokenizer.nextToken(),f=n[0],f==="("||f==="["?y.push(f==="("?")":"]"):f==="{"&&y.length>0?y.push("}"):f===y[y.length-1]&&y.pop(),y.length===0)if(f===";"){c.source.end=this.getPosition(n[2]),c.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(v.length>0){for(p=v.length-1,h=v[p];h&&h[0]==="space";)h=v[--p];h&&(c.source.end=this.getPosition(h[3]||h[2]),c.source.end.offset++)}this.end(n);break}else v.push(n);else v.push(n);if(this.tokenizer.endOfFile()){m=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(c.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(c,"params",v),m&&(n=v[v.length-1],c.source.end=this.getPosition(n[3]||n[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),g&&(c.nodes=[],this.current=c)}checkMissedSemicolon(n){let c=this.colon(n);if(c===!1)return;let f=0,h;for(let p=c-1;p>=0&&(h=n[p],!(h[0]!=="space"&&(f+=1,f===2)));p--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(n){let c=0,f,h,p;for(let[m,g]of n.entries()){if(h=g,p=h[0],p==="("&&(c+=1),p===")"&&(c-=1),c===0&&p===":")if(!f)this.doubleColon(h);else{if(f[0]==="word"&&f[1]==="progid")continue;return m}f=h}return!1}comment(n){let c=new t;this.init(c,n[2]),c.source.end=this.getPosition(n[3]||n[2]),c.source.end.offset++;let f=n[1].slice(2,-2);if(/^\s*$/.test(f))c.text="",c.raws.left=f,c.raws.right="";else{let h=f.match(/^(\s*)([^]*\S)(\s*)$/);c.text=h[2],c.raws.left=h[1],c.raws.right=h[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(n,c){let f=new r;this.init(f,n[0][2]);let h=n[n.length-1];for(h[0]===";"&&(this.semicolon=!0,n.pop()),f.source.end=this.getPosition(h[3]||h[2]||u(n)),f.source.end.offset++;n[0][0]!=="word";)n.length===1&&this.unknownWord(n),f.raws.before+=n.shift()[1];for(f.source.start=this.getPosition(n[0][2]),f.prop="";n.length;){let y=n[0][0];if(y===":"||y==="space"||y==="comment")break;f.prop+=n.shift()[1]}f.raws.between="";let p;for(;n.length;)if(p=n.shift(),p[0]===":"){f.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),f.raws.between+=p[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let m=[],g;for(;n.length&&(g=n[0][0],!(g!=="space"&&g!=="comment"));)m.push(n.shift());this.precheckMissedSemicolon(n);for(let y=n.length-1;y>=0;y--){if(p=n[y],p[1].toLowerCase()==="!important"){f.important=!0;let S=this.stringFrom(n,y);S=this.spacesFromEnd(n)+S,S!==" !important"&&(f.raws.important=S);break}else if(p[1].toLowerCase()==="important"){let S=n.slice(0),E="";for(let w=y;w>0;w--){let b=S[w][0];if(E.trim().startsWith("!")&&b!=="space")break;E=S.pop()[1]+E}E.trim().startsWith("!")&&(f.important=!0,f.raws.important=E,n=S)}if(p[0]!=="space"&&p[0]!=="comment")break}n.some(y=>y[0]!=="space"&&y[0]!=="comment")&&(f.raws.between+=m.map(y=>y[1]).join(""),m=[]),this.raw(f,"value",m.concat(n),c),f.value.includes(":")&&!c&&this.checkMissedSemicolon(n)}doubleColon(n){throw this.input.error("Double colon",{offset:n[2]},{offset:n[2]+n[1].length})}emptyRule(n){let c=new i;this.init(c,n[2]),c.selector="",c.raws.between="",this.current=c}end(n){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(n[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(n)}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(n){if(this.spaces+=n[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="",c.source.end=this.getPosition(n[2]),c.source.end.offset+=c.raws.ownSemicolon.length)}}getPosition(n){let c=this.input.fromOffset(n);return{column:c.col,line:c.line,offset:n}}init(n,c){this.current.push(n),n.source={input:this.input,start:this.getPosition(c)},n.raws.before=this.spaces,this.spaces="",n.type!=="comment"&&(this.semicolon=!1)}other(n){let c=!1,f=null,h=!1,p=null,m=[],g=n[1].startsWith("--"),v=[],y=n;for(;y;){if(f=y[0],v.push(y),f==="("||f==="[")p||(p=y),m.push(f==="("?")":"]");else if(g&&h&&f==="{")p||(p=y),m.push("}");else if(m.length===0)if(f===";")if(h){this.decl(v,g);return}else break;else if(f==="{"){this.rule(v);return}else if(f==="}"){this.tokenizer.back(v.pop()),c=!0;break}else f===":"&&(h=!0);else f===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));y=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),m.length>0&&this.unclosedBracket(p),c&&h){if(!g)for(;v.length&&(y=v[v.length-1][0],!(y!=="space"&&y!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,g)}else this.unknownWord(v)}parse(){let n;for(;!this.tokenizer.endOfFile();)switch(n=this.tokenizer.nextToken(),n[0]){case"space":this.spaces+=n[1];break;case";":this.freeSemicolon(n);break;case"}":this.end(n);break;case"comment":this.comment(n);break;case"at-word":this.atrule(n);break;case"{":this.emptyRule(n);break;default:this.other(n);break}this.endFile()}precheckMissedSemicolon(){}raw(n,c,f,h){let p,m,g=f.length,v="",y=!0,S,E;for(let w=0;w<g;w+=1)p=f[w],m=p[0],m==="space"&&w===g-1&&!h?y=!1:m==="comment"?(E=f[w-1]?f[w-1][0]:"empty",S=f[w+1]?f[w+1][0]:"empty",!o[E]&&!o[S]?v.slice(-1)===","?y=!1:v+=p[1]:y=!1):v+=p[1];if(!y){let w=f.reduce((b,C)=>b+C[1],"");n.raws[c]={raw:w,value:v}}n[c]=v}rule(n){n.pop();let c=new i;this.init(c,n[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(n),this.raw(c,"selector",n),this.current=c}spacesAndCommentsFromEnd(n){let c,f="";for(;n.length&&(c=n[n.length-1][0],!(c!=="space"&&c!=="comment"));)f=n.pop()[1]+f;return f}spacesAndCommentsFromStart(n){let c,f="";for(;n.length&&(c=n[0][0],!(c!=="space"&&c!=="comment"));)f+=n.shift()[1];return f}spacesFromEnd(n){let c,f="";for(;n.length&&(c=n[n.length-1][0],c==="space");)f=n.pop()[1]+f;return f}stringFrom(n,c){let f="";for(let h=c;h<n.length;h++)f+=n[h][1];return n.splice(c,n.length-c),f}unclosedBlock(){let n=this.current.source.start;throw this.input.error("Unclosed block",n.line,n.column)}unclosedBracket(n){throw this.input.error("Unclosed bracket",{offset:n[2]},{offset:n[2]+1})}unexpectedClose(n){throw this.input.error("Unexpected }",{offset:n[2]},{offset:n[2]+1})}unknownWord(n){throw this.input.error("Unknown word "+n[0][1],{offset:n[0][2]},{offset:n[0][2]+n[0][1].length})}unnamedAtrule(n,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return ar=d,ar}var lr,ys;function Ei(){if(ys)return lr;ys=1;let e=ke(),t=Pt(),r=oo();function s(i,a){let o=new t(i,a),u=new r(o);try{u.parse()}catch(d){throw d}return u.root}return lr=s,s.default=s,e.registerParse(s),lr}var ur,ws;function ao(){if(ws)return ur;ws=1;class e{constructor(r,s={}){if(this.type="warning",this.text=r,s.node&&s.node.source){let i=s.node.rangeBy(s);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in s)this[i]=s[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return ur=e,e.default=e,ur}var cr,vs;function Ri(){if(vs)return cr;vs=1;let e=ao();class t{get content(){return this.css}constructor(s,i,a){this.processor=s,this.messages=[],this.root=i,this.opts=a,this.css="",this.map=void 0}toString(){return this.css}warn(s,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(s,i);return this.messages.push(a),a}warnings(){return this.messages.filter(s=>s.type==="warning")}}return cr=t,t.default=t,cr}var hr,bs;function lo(){if(bs)return hr;bs=1;let e={};return hr=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},hr}var fr,Ss;function uo(){if(Ss)return fr;Ss=1;let e=ke(),t=Si(),r=so(),s=Ei(),i=Ri(),a=nt(),o=Ot(),{isClean:u,my:d}=vi(),l=lo();const n={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},c={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function p(E){return typeof E=="object"&&typeof E.then=="function"}function m(E){let w=!1,b=n[E.type];return E.type==="decl"?w=E.prop.toLowerCase():E.type==="atrule"&&(w=E.name.toLowerCase()),w&&E.append?[b,b+"-"+w,h,b+"Exit",b+"Exit-"+w]:w?[b,b+"-"+w,b+"Exit",b+"Exit-"+w]:E.append?[b,h,b+"Exit"]:[b,b+"Exit"]}function g(E){let w;return E.type==="document"?w=["Document",h,"DocumentExit"]:E.type==="root"?w=["Root",h,"RootExit"]:w=m(E),{eventIndex:0,events:w,iterator:0,node:E,visitorIndex:0,visitors:[]}}function v(E){return E[u]=!1,E.nodes&&E.nodes.forEach(w=>v(w)),E}let y={};class S{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(w,b,C){this.stringified=!1,this.processed=!1;let R;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))R=v(b);else if(b instanceof S||b instanceof i)R=v(b.root),b.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=b.map);else{let N=s;C.syntax&&(N=C.syntax.parse),C.parser&&(N=C.parser),N.parse&&(N=N.parse);try{R=N(b,C)}catch(x){this.processed=!0,this.error=x}R&&!R[d]&&e.rebuild(R)}this.result=new i(w,R,C),this.helpers=le(Y({},y),{postcss:y,result:this.result}),this.plugins=this.processor.plugins.map(N=>typeof N=="object"&&N.prepare?Y(Y({},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(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,b){let C=this.result.lastPlugin;try{b&&b.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=C.postcssPlugin,w.setMessage()):C.postcssVersion}catch(R){console&&console.error&&console.error(R)}return w}prepareVisitors(){this.listeners={};let w=(b,C,R)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([b,R])};for(let b of this.plugins)if(typeof b=="object")for(let C in b){if(!c[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[C])if(typeof b[C]=="object")for(let R in b[C])R==="*"?w(b,C,b[C][R]):w(b,C+"-"+R.toLowerCase(),b[C][R]);else typeof b[C]=="function"&&w(b,C,b[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let b=this.plugins[w],C=this.runOnRoot(b);if(p(C))try{await C}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[u];){w[u]=!0;let b=[g(w)];for(;b.length>0;){let C=this.visitTick(b);if(p(C))try{await C}catch(R){let N=b[b.length-1].node;throw this.handleError(R,N)}}}if(this.listeners.OnceExit)for(let[b,C]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(w.type==="document"){let R=w.nodes.map(N=>C(N,this.helpers));await Promise.all(R)}else await C(w,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(C=>w.Once(C,this.helpers));return p(b[0])?Promise.all(b):b}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,b=o;w.syntax&&(b=w.syntax.stringify),w.stringifier&&(b=w.stringifier),b.stringify&&(b=b.stringify);let R=new r(b,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let b=this.runOnRoot(w);if(p(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[u];)w[u]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let b of w.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,b){return this.async().then(w,b)}toString(){return this.css}visitSync(w,b){for(let[C,R]of w){this.result.lastPlugin=C;let N;try{N=R(b,this.helpers)}catch(x){throw this.handleError(x,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(p(N))throw this.getAsyncError()}}visitTick(w){let b=w[w.length-1],{node:C,visitors:R}=b;if(C.type!=="root"&&C.type!=="document"&&!C.parent){w.pop();return}if(R.length>0&&b.visitorIndex<R.length){let[x,I]=R[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===R.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=x;try{return I(C.toProxy(),this.helpers)}catch(T){throw this.handleError(T,C)}}if(b.iterator!==0){let x=b.iterator,I;for(;I=C.nodes[C.indexes[x]];)if(C.indexes[x]+=1,!I[u]){I[u]=!0,w.push(g(I));return}b.iterator=0,delete C.indexes[x]}let N=b.events;for(;b.eventIndex<N.length;){let x=N[b.eventIndex];if(b.eventIndex+=1,x===h){C.nodes&&C.nodes.length&&(C[u]=!0,b.iterator=C.getIterator());return}else if(this.listeners[x]){b.visitors=this.listeners[x];return}}w.pop()}walkSync(w){w[u]=!0;let b=m(w);for(let C of b)if(C===h)w.nodes&&w.each(R=>{R[u]||this.walkSync(R)});else{let R=this.listeners[C];if(R&&this.visitSync(R,w.toProxy()))return}}warnings(){return this.sync().warnings()}}return S.registerPostcss=E=>{y=E},fr=S,S.default=S,a.registerLazyResult(S),t.registerLazyResult(S),fr}var dr,Cs;function Ja(){if(Cs)return dr;Cs=1;let e=so(),t=Ei();const r=Ri();let s=Ot(),i=lo();class a{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let u,d=t;try{u=d(this._css,this._opts)}catch(l){this.error=l}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(u,d,l){d=d.toString(),this.stringified=!1,this._processor=u,this._css=d,this._opts=l,this._map=void 0;let n,c=s;this.result=new r(this._processor,n,this._opts),this.result.css=d;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let h=new e(c,n,this._opts,d);if(h.isMap()){let[p,m]=h.generate();p&&(this.result.css=p),m&&(this.result.map=m)}else h.clearAnnotation(),this.result.css=h.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,d){return this.async().then(u,d)}toString(){return this._css}warnings(){return[]}}return dr=a,a.default=a,dr}var pr,Es;function Xa(){if(Es)return pr;Es=1;let e=Si(),t=uo(),r=Ja(),s=nt();class i{constructor(o=[]){this.version="8.5.6",this.plugins=this.normalize(o)}normalize(o){let u=[];for(let d of o)if(d.postcss===!0?d=d():d.postcss&&(d=d.postcss),typeof d=="object"&&Array.isArray(d.plugins))u=u.concat(d.plugins);else if(typeof d=="object"&&d.postcssPlugin)u.push(d);else if(typeof d=="function")u.push(d);else if(!(typeof d=="object"&&(d.parse||d.stringify)))throw new Error(d+" is not a PostCSS plugin");return u}process(o,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new r(this,o,u):new t(this,o,u)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return pr=i,i.default=i,s.registerProcessor(i),e.registerProcessor(i),pr}var mr,Rs;function co(){if(Rs)return mr;Rs=1;let e=bi(),t=st(),r=ke(),s=wi(),i=Dt(),a=Si(),o=Ya(),u=Pt(),d=uo(),l=io(),n=At(),c=Ei(),f=Xa(),h=Ri(),p=nt(),m=Ci(),g=Ot(),v=ao();function y(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new f(S)}return y.plugin=function(E,w){let b=!1;function C(...N){console&&console.warn&&!b&&(b=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
|
|
29
29
|
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:
|
|
30
30
|
https://www.w3ctech.com/topic/2226`));let x=w(...N);return x.postcssPlugin=E,x.postcssVersion=new f().version,x}let R;return Object.defineProperty(C,"postcss",{get(){return R||(R=C()),R}}),C.process=function(N,x,I){return y([C(I)]).process(N,x)},C},y.stringify=g,y.parse=c,y.fromJSON=o,y.list=l,y.comment=S=>new t(S),y.atRule=S=>new e(S),y.decl=S=>new i(S),y.rule=S=>new m(S),y.root=S=>new p(S),y.document=S=>new a(S),y.CssSyntaxError=s,y.Declaration=i,y.Container=r,y.Processor=f,y.Document=a,y.Comment=t,y.Warning=v,y.AtRule=e,y.Result=h,y.Input=u,y.Rule=m,y.Root=p,y.Node=n,d.registerPostcss(y),mr=y,y.default=y,mr}var gr,xs;function Qa(){if(xs)return gr;xs=1;let e=st(),t=oo(),r=no();class s extends t{checkMissedSemicolon(){}comment(a){let o=new e;this.init(o,a[2]);let u=this.input.fromOffset(a[3])||this.input.fromOffset(this.input.css.length-1);o.source.end={column:u.col,line:u.line,offset:a[3]+1};let d=a[1].slice(2);if(d.slice(-2)==="*/"&&(d=d.slice(0,-2)),/^\s*$/.test(d))o.text="",o.raws.left=d,o.raws.right="";else{let l=d.match(/^(\s*)([^]*\S)(\s*)$/);o.text=l[2],o.raws.left=l[1],o.raws.right=l[3]}}createTokenizer(){this.tokenizer=r(this.input,{ignoreErrors:!0})}decl(a){a.length>1&&a.some(o=>o[0]==="word")&&super.decl(a)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(a){let o=this.colon(a);if(o===!1)return;let u,d;for(u=o-1;u>=0&&a[u][0]!=="word";u--);if(u===0||u<0)return;for(d=u-1;d>=0;d--)if(a[d][0]!=="space"){d+=1;break}let l=a.slice(u),n=a.slice(d,u);a.splice(d,a.length-d),this.spaces=n.map(c=>c[1]).join(""),this.decl(l)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(a){this.spaces+=a.map(o=>o[1]).join("")}unnamedAtrule(a){a.name=""}}return gr=s,gr}var yr,Ms;function Ka(){if(Ms)return yr;Ms=1;let{Input:e}=co(),t=Qa();return yr=function(s,i){let a=new e(s,i),o=new t(a);return o.parse(),o.root},yr}var Za=Ka();const el=eo(Za);var tl=co();const Z=eo(tl);Z.stringify;Z.fromJSON;Z.plugin;Z.parse;Z.list;Z.document;Z.comment;Z.atRule;Z.rule;Z.decl;Z.root;Z.CssSyntaxError;Z.Declaration;Z.Container;Z.Processor;Z.Document;Z.Comment;Z.Warning;Z.AtRule;Z.Result;Z.Input;Z.Rule;Z.Root;Z.Node;const Ns={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function rl(e){let t=Ns[e.tagName]?Ns[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function ho(e,t){const r=t==null?void 0:t.stylesWithHoverClass.get(e);if(r)return r;let s=e;try{s=Z([qa,Wa]).process(e,{parser:el}).css}catch(i){console.warn("Failed to adapt css for replay",i)}return t==null||t.stylesWithHoverClass.set(e,s),s}function _s(){return{stylesWithHoverClass:new Map}}function il(e,t){let r=e.textContent;if(e.isStyle&&t.hackCss)try{r=ho(e.textContent,t.cache)}catch(s){}return t.doc.createTextNode(r)}function sl(e,t){var r;const{doc:s,hackCss:i,cache:a}=t;switch(e.type){case re.Document:return s.implementation.createDocument(null,"",null);case re.DocumentType:return s.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case re.Element:{const o=rl(e);let u;e.isSVG?u=s.createElementNS("http://www.w3.org/2000/svg",o):(e.isCustom&&((r=s.defaultView)!=null&&r.customElements)&&!s.defaultView.customElements.get(e.tagName)&&s.defaultView.customElements.define(e.tagName,class extends s.defaultView.HTMLElement{}),u=s.createElement(o));const d={};for(const l in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,l))continue;let n=e.attributes[l];if(o==="option"&&l==="selected"&&n===!1||n===null)continue;if(n===!0&&(n=""),l.startsWith("rr_")){d[l]=n;continue}const c=o==="textarea"&&l==="value",f=o==="style"&&l==="_cssText";if(f&&i&&typeof n=="string"&&(n=ho(n,a)),(c||f)&&typeof n=="string"){u.appendChild(s.createTextNode(n)),e.childNodes=[];continue}try{if(e.isSVG&&l==="xlink:href")u.setAttributeNS("http://www.w3.org/1999/xlink",l,n.toString());else if(l==="onload"||l==="onclick"||l.substring(0,7)==="onmouse")u.setAttribute("_"+l,n.toString());else if(o==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&l==="content"){u.setAttribute("csp-content",n.toString());continue}else o==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||o==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Ua(e.attributes.href)==="js"||(o==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?u.setAttribute("rrweb-original-srcset",e.attributes.srcset):u.setAttribute(l,n.toString()))}catch(h){}}for(const l in d){const n=d[l];if(o==="canvas"&&l==="rr_dataURL"){const c=s.createElement("img");c.onload=()=>{const f=u.getContext("2d");f&&f.drawImage(c,0,0,c.width,c.height)},c.src=n.toString(),u.RRNodeType&&(u.rr_dataURL=n.toString())}else if(o==="img"&&l==="rr_dataURL"){const c=u;c.currentSrc.startsWith("data:")||(c.setAttribute("rrweb-original-src",e.attributes.src),c.src=n.toString())}if(l==="rr_width")u.style.setProperty("width",n.toString());else if(l==="rr_height")u.style.setProperty("height",n.toString());else if(l==="rr_left")u.style.setProperty("left",n.toString()),u.style.setProperty("position","absolute");else if(l==="rr_top")u.style.setProperty("top",n.toString()),u.style.setProperty("position","absolute");else if(l==="rr_mediaCurrentTime"&&typeof n=="number")u.currentTime=n;else if(l==="rr_mediaState")switch(n){case"played":u.play().catch(c=>console.warn("media playback error",c));break;case"paused":u.pause();break}else l==="rr_mediaPlaybackRate"&&typeof n=="number"?u.playbackRate=n:l==="rr_mediaMuted"&&typeof n=="boolean"?u.muted=n:l==="rr_mediaLoop"&&typeof n=="boolean"?u.loop=n:l==="rr_mediaVolume"&&typeof n=="number"?u.volume=n:l==="rr_open_mode"&&u.setAttribute("rr_open_mode",n)}if(e.isShadowHost)if(!u.shadowRoot)u.attachShadow({mode:"open"});else for(;u.shadowRoot.firstChild;)u.shadowRoot.removeChild(u.shadowRoot.firstChild);return u}case re.Text:return il(e,{cache:a,doc:s,hackCss:i});case re.CDATA:return e.textContent.trim()===""?null:s.createCDATASection(e.textContent);case re.Comment:return s.createComment(e.textContent);default:return null}}function et(e,t){const{doc:r,mirror:s,skipChild:i=!1,hackCss:a=!0,afterAppend:o,cache:u}=t;if(s.has(e.id)){const l=s.getNode(e.id),n=s.getMeta(l);if(Ba(n,e))return s.getNode(e.id)}let d=sl(e,{doc:r,hackCss:a,cache:u});if(!d)return null;if(e.rootId&&s.getNode(e.rootId)!==r&&s.replace(e.rootId,r),e.type===re.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==re.DocumentType&&(e.childNodes[0].type===re.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),d=r),s.add(d,e),(e.type===re.Document||e.type===re.Element)&&!i)for(const l of e.childNodes){const n=et(l,{doc:r,mirror:s,skipChild:!1,hackCss:a,afterAppend:o,cache:u});if(!n){console.warn("Failed to rebuild",l);continue}if(l.isShadow&&Qn(d)&&d.shadowRoot)d.shadowRoot.appendChild(n);else if(e.type===re.Document&&l.type==re.Element){const c=n;let f=null;c.childNodes.forEach(h=>{h.nodeName==="BODY"&&(f=h)}),f?(c.removeChild(f),d.appendChild(n),c.appendChild(f)):d.appendChild(n)}else e.type===re.Document&&l.type===re.DocumentType&&d.firstChild&&d.firstChild.nodeType===1?d.insertBefore(n,d.firstChild):d.appendChild(n);o&&o(n,l.id)}return d}function nl(e,t){function r(s){t(s)}for(const s of e.getIds())e.has(s)&&r(e.getNode(s))}function ol(e,t){const r=t.getMeta(e);if((r==null?void 0:r.type)!==re.Element)return;const s=e;for(const i in r.attributes){if(!(Object.prototype.hasOwnProperty.call(r.attributes,i)&&i.startsWith("rr_")))continue;const a=r.attributes[i];i==="rr_scrollLeft"&&(s.scrollLeft=a),i==="rr_scrollTop"&&(s.scrollTop=a)}}function al(e,t){const{doc:r,onVisit:s,hackCss:i=!0,afterAppend:a,cache:o,mirror:u=new Kn}=t,d=et(e,{doc:r,mirror:u,skipChild:!1,hackCss:i,afterAppend:a,cache:o});return nl(u,l=>{s&&s(l),ol(l,u)}),d}var ll=Object.defineProperty,ul=(e,t,r)=>t in e?ll(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k=(e,t,r)=>ul(e,typeof t!="symbol"?t+"":t,r),cl=Object.defineProperty,hl=(e,t,r)=>t in e?cl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Os=(e,t,r)=>hl(e,typeof t!="symbol"?t+"":t,r);const As={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ds={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},dt={};function fl(e){var t,r;const s=(r=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(s&&globalThis[s])return globalThis[s]}function xi(e){if(dt[e])return dt[e];const t=fl(e)||globalThis[e],r=t.prototype,s=e in As?As[e]:void 0,i=!!(s&&s.every(u=>{var d,l;return!!((l=(d=Object.getOwnPropertyDescriptor(r,u))==null?void 0:d.get)!=null&&l.toString().includes("[native code]"))})),a=e in Ds?Ds[e]:void 0,o=!!(a&&a.every(u=>{var d;return typeof r[u]=="function"&&((d=r[u])==null?void 0:d.toString().includes("[native code]"))}));if(i&&o)return dt[e]=t.prototype,t.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const d=u.contentWindow;if(!d)return t.prototype;const l=d[e].prototype;return document.body.removeChild(u),l?dt[e]=l:r}catch(u){return r}}const wr={};function _e(e,t,r){var s;const i=`${e}.${String(r)}`;if(wr[i])return wr[i].call(t);const a=xi(e),o=(s=Object.getOwnPropertyDescriptor(a,r))==null?void 0:s.get;return o?(wr[i]=o,o.call(t)):t[r]}const vr={};function fo(e,t,r){const s=`${e}.${String(r)}`;if(vr[s])return vr[s].bind(t);const a=xi(e)[r];return typeof a!="function"?t[r]:(vr[s]=a,a.bind(t))}function dl(e){return _e("Node",e,"childNodes")}function pl(e){return _e("Node",e,"parentNode")}function ml(e){return _e("Node",e,"parentElement")}function gl(e){return _e("Node",e,"textContent")}function yl(e,t){return fo("Node",e,"contains")(t)}function wl(e){return fo("Node",e,"getRootNode")()}function vl(e){return!e||!("host"in e)?null:_e("ShadowRoot",e,"host")}function bl(e){return e.styleSheets}function Sl(e){return!e||!("shadowRoot"in e)?null:_e("Element",e,"shadowRoot")}function Cl(e,t){return _e("Element",e,"querySelector")(t)}function El(e,t){return _e("Element",e,"querySelectorAll")(t)}function Rl(){return xi("MutationObserver").constructor}function xl(e,t,r){try{if(!(t in e))return()=>{};const s=e[t],i=r(s);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=i,()=>{e[t]=s}}catch(s){return()=>{}}}const Ml={childNodes:dl,parentNode:pl,parentElement:ml,textContent:gl,contains:yl,getRootNode:wl,host:vl,styleSheets:bl,shadowRoot:Sl,querySelector:Cl,querySelectorAll:El,mutationObserver:Rl,patch:xl};function Nl(e){return e.nodeType===e.ELEMENT_NODE}let _l=class{constructor(){Os(this,"idNodeMap",new Map),Os(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const s=(r=this.getMeta(t))==null?void 0:r.id;return s!=null?s:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);if(this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(s=>this.removeNodeFromMap(s)),Nl(t)){const s=Ml.shadowRoot(t);s&&this.removeNodeFromMap(s),t.nodeName==="IFRAME"&&t.contentDocument&&this.removeNodeFromMap(t.contentDocument)}}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const s=r.id;this.idNodeMap.set(s,t),this.nodeMetaMap.set(t,r)}replace(t,r){const s=this.getNode(t);if(s){const i=this.nodeMetaMap.get(s);i&&this.nodeMetaMap.set(r,i)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Ol(){return new _l}function Al(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Dl(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,i.get?i:{enumerable:!0,get:function(){return e[s]}})}),r}var pt={exports:{}},Ps;function Pl(){if(Ps)return pt.exports;Ps=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return pt.exports=t(),pt.exports.createColors=t,pt.exports}const Tl={},kl=Object.freeze(Object.defineProperty({__proto__:null,default:Tl},Symbol.toStringTag,{value:"Module"})),ge=Dl(kl);var br,Ts;function Mi(){if(Ts)return br;Ts=1;let e=Pl(),t=ge;class r extends Error{constructor(i,a,o,u,d,l){super(i),this.name="CssSyntaxError",this.reason=i,d&&(this.file=d),u&&(this.source=u),l&&(this.plugin=l),typeof a!="undefined"&&typeof o!="undefined"&&(typeof a=="number"?(this.line=a,this.column=o):(this.line=a.line,this.column=a.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(i){if(!this.source)return"";let a=this.source;i==null&&(i=e.isColorSupported);let o=h=>h,u=h=>h,d=h=>h;if(i){let{bold:h,gray:p,red:m}=e.createColors(!0);u=g=>h(m(g)),o=g=>p(g),t&&(d=g=>t(g))}let l=a.split(/\r?\n/),n=Math.max(this.line-3,0),c=Math.min(this.line+2,l.length),f=String(c).length;return l.slice(n,c).map((h,p)=>{let m=n+1+p,g=" "+(" "+m).slice(-f)+" | ";if(m===this.line){if(h.length>160){let y=20,S=Math.max(0,this.column-y),E=Math.max(this.column+y,this.endColumn+y),w=h.slice(S,E),b=o(g.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,y-1)).replace(/[^\t]/g," ");return u(">")+o(g)+d(w)+`
|
|
31
31
|
`+b+u("^")}let v=o(g.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+o(g)+d(h)+`
|
|
@@ -46,17 +46,17 @@ https://www.w3ctech.com/topic/2226`));let x=w(...N);return x.postcssPlugin=E,x.p
|
|
|
46
46
|
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(i){let a;return i.walkDecls(o=>{if(typeof o.raws.between!="undefined")return a=o.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length===0&&(a=o.raws.after,typeof a!="undefined"))return!1}),a}rawIndent(i){if(i.raws.indent)return i.raws.indent;let a;return i.walk(o=>{let u=o.parent;if(u&&u!==i&&u.parent&&u.parent===i&&typeof o.raws.before!="undefined"){let d=o.raws.before.split(`
|
|
47
47
|
`);return a=d[d.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(a=o.raws.semicolon,typeof a!="undefined"))return!1}),a}rawValue(i,a){let o=i[a],u=i.raws[a];return u&&u.value===o?u.raw:o}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,a){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,a)}}return Sr=r,r.default=r,Sr}var Cr,Is;function Tt(){if(Is)return Cr;Is=1;let e=po();function t(r,s){new e(s).stringify(r)}return Cr=t,t.default=t,Cr}var mt={},Ls;function Ni(){return Ls||(Ls=1,mt.isClean=Symbol("isClean"),mt.my=Symbol("my")),mt}var Er,Fs;function kt(){if(Fs)return Er;Fs=1;let e=Mi(),t=po(),r=Tt(),{isClean:s,my:i}=Ni();function a(d,l){let n=new d.constructor;for(let c in d){if(!Object.prototype.hasOwnProperty.call(d,c)||c==="proxyCache")continue;let f=d[c],h=typeof f;c==="parent"&&h==="object"?l&&(n[c]=l):c==="source"?n[c]=f:Array.isArray(f)?n[c]=f.map(p=>a(p,n)):(h==="object"&&f!==null&&(f=a(f)),n[c]=f)}return n}function o(d,l){if(l&&typeof l.offset!="undefined")return l.offset;let n=1,c=1,f=0;for(let h=0;h<d.length;h++){if(c===l.line&&n===l.column){f=h;break}d[h]===`
|
|
48
48
|
`?(n=1,c+=1):n+=1}return f}class u{get proxyOf(){return this}constructor(l={}){this.raws={},this[s]=!1,this[i]=!0;for(let n in l)if(n==="nodes"){this.nodes=[];for(let c of l[n])typeof c.clone=="function"?this.append(c.clone()):this.append(c)}else this[n]=l[n]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let n=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let n in l)this[n]=l[n];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let n=a(this);for(let c in l)n[c]=l[c];return n}cloneAfter(l={}){let n=this.clone(l);return this.parent.insertAfter(this,n),n}cloneBefore(l={}){let n=this.clone(l);return this.parent.insertBefore(this,n),n}error(l,n={}){if(this.source){let{end:c,start:f}=this.rangeBy(n);return this.source.input.error(l,{column:f.column,line:f.line},{column:c.column,line:c.line},n)}return new e(l)}getProxyProcessor(){return{get(l,n){return n==="proxyOf"?l:n==="root"?()=>l.root().toProxy():l[n]},set(l,n,c){return l[n]===c||(l[n]=c,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&l.markDirty()),!0}}}markClean(){this[s]=!0}markDirty(){if(this[s]){this[s]=!1;let l=this;for(;l=l.parent;)l[s]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l={}){let n=this.source.start;if(l.index)n=this.positionInside(l.index);else if(l.word){let c="document"in this.source.input?this.source.input.document:this.source.input.css,h=c.slice(o(c,this.source.start),o(c,this.source.end)).indexOf(l.word);h!==-1&&(n=this.positionInside(h))}return n}positionInside(l){let n=this.source.start.column,c=this.source.start.line,f="document"in this.source.input?this.source.input.document:this.source.input.css,h=o(f,this.source.start),p=h+l;for(let m=h;m<p;m++)f[m]===`
|
|
49
|
-
`?(n=1,c+=1):n+=1;return{column:n,line:c,offset:p}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l={}){let n="document"in this.source.input?this.source.input.document:this.source.input.css,c={column:this.source.start.column,line:this.source.start.line,offset:o(n,this.source.start)},f=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:o(n,this.source.end)+1}:{column:c.column+1,line:c.line,offset:c.offset+1};if(l.word){let p=n.slice(o(n,this.source.start),o(n,this.source.end)).indexOf(l.word);p!==-1&&(c=this.positionInside(p),f=this.positionInside(p+l.word.length))}else l.start?c={column:l.start.column,line:l.start.line,offset:o(n,l.start)}:l.index&&(c=this.positionInside(l.index)),l.end?f={column:l.end.column,line:l.end.line,offset:o(n,l.end)}:typeof l.endIndex=="number"?f=this.positionInside(l.endIndex):l.index&&(f=this.positionInside(l.index+1));return(f.line<c.line||f.line===c.line&&f.column<=c.column)&&(f={column:c.column+1,line:c.line,offset:c.offset+1}),{end:f,start:c}}raw(l,n){return new t().raw(this,l,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let n=this,c=!1;for(let f of l)f===this?c=!0:c?(this.parent.insertAfter(n,f),n=f):this.parent.insertBefore(n,f);c||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,n){let c={},f=n==null;n=n||new Map;let h=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let m=this[p];if(Array.isArray(m))c[p]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,n):g);else if(typeof m=="object"&&m.toJSON)c[p]=m.toJSON(null,n);else if(p==="source"){if(m==null)continue;let g=n.get(m.input);g==null&&(g=h,n.set(m.input,h),h++),c[p]={end:m.end,inputId:g,start:m.start}}else c[p]=m}return f&&(c.inputs=[...n.keys()].map(p=>p.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=r){l.stringify&&(l=l.stringify);let n="";return l(this,c=>{n+=c}),n}warn(l,n,c={}){let f={node:this};for(let h in c)f[h]=c[h];return l.warn(n,f)}}return Er=u,u.default=u,Er}var Rr,Bs;function ot(){if(Bs)return Rr;Bs=1;let e=kt();class t extends e{constructor(s){super(s),this.type="comment"}}return Rr=t,t.default=t,Rr}var xr,Us;function It(){if(Us)return xr;Us=1;let e=kt();class t extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(s){s&&typeof s.value!="undefined"&&typeof s.value!="string"&&(s=le(Q({},s),{value:String(s.value)})),super(s),this.type="decl"}}return xr=t,t.default=t,xr}var Mr,zs;function Ie(){if(zs)return Mr;zs=1;let e=ot(),t=It(),r=kt(),{isClean:s,my:i}=Ni(),a,o,u,d;function l(f){return f.map(h=>(h.nodes&&(h.nodes=l(h.nodes)),delete h.source,h))}function n(f){if(f[s]=!1,f.proxyOf.nodes)for(let h of f.proxyOf.nodes)n(h)}class c extends r{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(...h){for(let p of h){let m=this.normalize(p,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let p of this.nodes)p.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let p=this.getIterator(),m,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(m=this.indexes[p],g=h(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(h){return this.nodes.every(h)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let h=this.lastEach;return this.indexes[h]=0,h}getProxyProcessor(){return{get(h,p){return p==="proxyOf"?h:h[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...m)=>h[p](...m.map(g=>typeof g=="function"?(v,y)=>g(v.toProxy(),y):g)):p==="every"||p==="some"?m=>h[p]((g,...v)=>m(g.toProxy(),...v)):p==="root"?()=>h.root().toProxy():p==="nodes"?h.nodes.map(m=>m.toProxy()):p==="first"||p==="last"?h[p].toProxy():h[p]:h[p]},set(h,p,m){return h[p]===m||(h[p]=m,(p==="name"||p==="params"||p==="selector")&&h.markDirty()),!0}}}index(h){return typeof h=="number"?h:(h.proxyOf&&(h=h.proxyOf),this.proxyOf.nodes.indexOf(h))}insertAfter(h,p){let m=this.index(h),g=this.normalize(p,this.proxyOf.nodes[m]).reverse();m=this.index(h);for(let y of g)this.proxyOf.nodes.splice(m+1,0,y);let v;for(let y in this.indexes)v=this.indexes[y],m<v&&(this.indexes[y]=v+g.length);return this.markDirty(),this}insertBefore(h,p){let m=this.index(h),g=m===0?"prepend":!1,v=this.normalize(p,this.proxyOf.nodes[m],g).reverse();m=this.index(h);for(let S of v)this.proxyOf.nodes.splice(m,0,S);let y;for(let S in this.indexes)y=this.indexes[S],m<=y&&(this.indexes[S]=y+v.length);return this.markDirty(),this}normalize(h,p){if(typeof h=="string")h=l(o(h).nodes);else if(typeof h=="undefined")h=[];else if(Array.isArray(h)){h=h.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type==="root"&&this.type!=="document"){h=h.nodes.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type)h=[h];else if(h.prop){if(typeof h.value=="undefined")throw new Error("Value field is missed in node creation");typeof h.value!="string"&&(h.value=String(h.value)),h=[new t(h)]}else if(h.selector||h.selectors)h=[new d(h)];else if(h.name)h=[new a(h)];else if(h.text)h=[new e(h)];else throw new Error("Unknown node type in node creation");return h.map(g=>(g[i]||c.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[s]&&n(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&p&&typeof p.raws.before!="undefined"&&(g.raws.before=p.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...h){h=h.reverse();for(let p of h){let m=this.normalize(p,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(h){return h.parent=this,this.proxyOf.nodes.push(h),this}removeAll(){for(let h of this.proxyOf.nodes)h.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(h){h=this.index(h),this.proxyOf.nodes[h].parent=void 0,this.proxyOf.nodes.splice(h,1);let p;for(let m in this.indexes)p=this.indexes[m],p>=h&&(this.indexes[m]=p-1);return this.markDirty(),this}replaceValues(h,p,m){return m||(m=p,p={}),this.walkDecls(g=>{p.props&&!p.props.includes(g.prop)||p.fast&&!g.value.includes(p.fast)||(g.value=g.value.replace(h,m))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((p,m)=>{let g;try{g=h(p,m)}catch(v){throw p.addToError(v)}return g!==!1&&p.walk&&(g=p.walk(h)),g})}walkAtRules(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&h.test(m.name))return p(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="atrule")return p(m,g)}))}walkComments(h){return this.walk((p,m)=>{if(p.type==="comment")return h(p,m)})}walkDecls(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="decl"&&h.test(m.prop))return p(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="decl")return p(m,g)}))}walkRules(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&h.test(m.selector))return p(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="rule")return p(m,g)}))}}return c.registerParse=f=>{o=f},c.registerRule=f=>{d=f},c.registerAtRule=f=>{a=f},c.registerRoot=f=>{u=f},Mr=c,c.default=c,c.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,a.prototype):f.type==="rule"?Object.setPrototypeOf(f,d.prototype):f.type==="decl"?Object.setPrototypeOf(f,t.prototype):f.type==="comment"?Object.setPrototypeOf(f,e.prototype):f.type==="root"&&Object.setPrototypeOf(f,u.prototype),f[i]=!0,f.nodes&&f.nodes.forEach(h=>{c.rebuild(h)})},Mr}var Nr,qs;function _i(){if(qs)return Nr;qs=1;let e=Ie();class t extends e{constructor(s){super(s),this.type="atrule"}append(...s){return this.proxyOf.nodes||(this.nodes=[]),super.append(...s)}prepend(...s){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...s)}}return Nr=t,t.default=t,e.registerAtRule(t),Nr}var _r,Ws;function Oi(){if(Ws)return _r;Ws=1;let e=Ie(),t,r;class s extends e{constructor(a){super(Q({type:"document"},a)),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return s.registerLazyResult=i=>{t=i},s.registerProcessor=i=>{r=i},_r=s,s.default=s,_r}var Or,$s;function Il(){if($s)return Or;$s=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Or={nanoid:(s=21)=>{let i="",a=s|0;for(;a--;)i+=e[Math.random()*64|0];return i},customAlphabet:(s,i=21)=>(a=i)=>{let o="",u=a|0;for(;u--;)o+=s[Math.random()*s.length|0];return o}},Or}var Ar,js;function mo(){if(js)return Ar;js=1;let{existsSync:e,readFileSync:t}=ge,{dirname:r,join:s}=ge,{SourceMapConsumer:i,SourceMapGenerator:a}=ge;function o(d){return Buffer?Buffer.from(d,"base64").toString():window.atob(d)}class u{constructor(l,n){if(n.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let c=n.map?n.map.prev:void 0,f=this.loadMap(n.from,c);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=r(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(l){let n=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/,p=l.match(f)||l.match(h);if(p)return decodeURIComponent(l.substr(p[0].length));let m=l.match(n)||l.match(c);if(m)return o(l.substr(m[0].length));let g=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let n=l.match(/\/\*\s*# sourceMappingURL=/g);if(!n)return;let c=l.lastIndexOf(n.pop()),f=l.indexOf("*/",c);c>-1&&f>-1&&(this.annotation=this.getAnnotationURL(l.substring(c,f)))}loadFile(l){if(this.root=r(l),e(l))return this.mapFile=l,t(l,"utf-8").toString().trim()}loadMap(l,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let c=n(l);if(c){let f=this.loadFile(c);if(!f)throw new Error("Unable to load previous source map: "+c.toString());return f}}else{if(n instanceof i)return a.fromSourceMap(n).toString();if(n instanceof a)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return l&&(c=s(r(l),c)),this.loadFile(c)}}}startWith(l,n){return l?l.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Ar=u,u.default=u,Ar}var Dr,Vs;function Lt(){if(Vs)return Dr;Vs=1;let{nanoid:e}=Il(),{isAbsolute:t,resolve:r}=ge,{SourceMapConsumer:s,SourceMapGenerator:i}=ge,{fileURLToPath:a,pathToFileURL:o}=ge,u=Mi(),d=mo(),l=ge,n=Symbol("lineToIndexCache"),c=!!(s&&i),f=!!(r&&t);function h(m){if(m[n])return m[n];let g=m.css.split(`
|
|
50
|
-
`),v=new Array(g.length),y=0;for(let S=0,E=g.length;S<E;S++)v[S]=y,y+=g[S].length+1;return m[n]=v,v}class p{get from(){return this.file||this.id}constructor(g,v={}){if(g===null||typeof g=="undefined"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.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,v.document&&(this.document=v.document.toString()),v.from&&(!f||/^\w+:\/\//.test(v.from)||t(v.from)?this.file=v.from:this.file=r(v.from)),f&&c){let y=new d(this.css,v);if(y.text){this.map=y;let S=y.consumer().file;!this.file&&S&&(this.file=this.mapResolve(S))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(g,v,y,S={}){let E,w,b,C,R;if(v&&typeof v=="object"){let x=v,I=y;if(typeof x.offset=="number"){C=x.offset;let T=this.fromOffset(C);v=T.line,y=T.col}else v=x.line,y=x.column,C=this.fromLineAndColumn(v,y);if(typeof I.offset=="number"){b=I.offset;let T=this.fromOffset(b);w=T.line,E=T.col}else w=I.line,E=I.column,b=this.fromLineAndColumn(I.line,I.column)}else if(y)C=this.fromLineAndColumn(v,y);else{C=v;let x=this.fromOffset(C);v=x.line,y=x.col}let N=this.origin(v,y,w,E);return N?R=new u(g,N.endLine===void 0?N.line:{column:N.column,line:N.line},N.endLine===void 0?N.column:{column:N.endColumn,line:N.endLine},N.source,N.file,S.plugin):R=new u(g,w===void 0?v:{column:y,line:v},w===void 0?y:{column:E,line:w},this.css,this.file,S.plugin),R.input={column:y,endColumn:E,endLine:w,endOffset:b,line:v,offset:C,source:this.css},this.file&&(o&&(R.input.url=o(this.file).toString()),R.input.file=this.file),R}fromLineAndColumn(g,v){return h(this)[g-1]+v-1}fromOffset(g){let v=h(this),y=v[v.length-1],S=0;if(g>=y)S=v.length-1;else{let E=v.length-2,w;for(;S<E;)if(w=S+(E-S>>1),g<v[w])E=w-1;else if(g>=v[w+1])S=w+1;else{S=w;break}}return{col:g-v[S]+1,line:S+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:r(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,v,y,S){if(!this.map)return!1;let E=this.map.consumer(),w=E.originalPositionFor({column:v,line:g});if(!w.source)return!1;let b;typeof y=="number"&&(b=E.originalPositionFor({column:S,line:y}));let C;t(w.source)?C=o(w.source):C=new URL(w.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let R={column:w.column,endColumn:b&&b.column,endLine:b&&b.line,line:w.line,url:C.toString()};if(C.protocol==="file:")if(a)R.file=a(C);else throw new Error("file: protocol is not available in this PostCSS build");let N=E.sourceContentFor(w.source);return N&&(R.source=N),R}toJSON(){let g={};for(let v of["hasBOM","css","file","id"])this[v]!=null&&(g[v]=this[v]);return this.map&&(g.map=
|
|
51
|
-
`," "];return e.split(t,r)},split(t,r,s){let i=[],a="",o=!1,u=0,d=!1,l="",n=!1;for(let c of t)n?n=!1:c==="\\"?n=!0:d?c===l&&(d=!1):c==='"'||c==="'"?(d=!0,l=c):c==="("?u+=1:c===")"?u>0&&(u-=1):u===0&&r.includes(c)&&(o=!0),o?(a!==""&&i.push(a.trim()),a="",o=!1):a+=c;return(s||a!=="")&&i.push(a.trim()),i}};return Tr=e,e.default=e,Tr}var kr,Ys;function Ai(){if(Ys)return kr;Ys=1;let e=Ie(),t=go();class r extends e{get selectors(){return t.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,o=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(o)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}}return kr=r,r.default=r,e.registerRule(r),kr}var Ir,Js;function Ll(){if(Js)return Ir;Js=1;let e=_i(),t=ot(),r=It(),s=Lt(),i=mo(),a=at(),o=Ai();function u(d,l){if(Array.isArray(d))return d.map(p=>u(p));let f=d,{inputs:n}=f,c=Je(f,["inputs"]);if(n){l=[];for(let p of n){let m=le(
|
|
49
|
+
`?(n=1,c+=1):n+=1;return{column:n,line:c,offset:p}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l={}){let n="document"in this.source.input?this.source.input.document:this.source.input.css,c={column:this.source.start.column,line:this.source.start.line,offset:o(n,this.source.start)},f=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:o(n,this.source.end)+1}:{column:c.column+1,line:c.line,offset:c.offset+1};if(l.word){let p=n.slice(o(n,this.source.start),o(n,this.source.end)).indexOf(l.word);p!==-1&&(c=this.positionInside(p),f=this.positionInside(p+l.word.length))}else l.start?c={column:l.start.column,line:l.start.line,offset:o(n,l.start)}:l.index&&(c=this.positionInside(l.index)),l.end?f={column:l.end.column,line:l.end.line,offset:o(n,l.end)}:typeof l.endIndex=="number"?f=this.positionInside(l.endIndex):l.index&&(f=this.positionInside(l.index+1));return(f.line<c.line||f.line===c.line&&f.column<=c.column)&&(f={column:c.column+1,line:c.line,offset:c.offset+1}),{end:f,start:c}}raw(l,n){return new t().raw(this,l,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let n=this,c=!1;for(let f of l)f===this?c=!0:c?(this.parent.insertAfter(n,f),n=f):this.parent.insertBefore(n,f);c||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,n){let c={},f=n==null;n=n||new Map;let h=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let m=this[p];if(Array.isArray(m))c[p]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,n):g);else if(typeof m=="object"&&m.toJSON)c[p]=m.toJSON(null,n);else if(p==="source"){if(m==null)continue;let g=n.get(m.input);g==null&&(g=h,n.set(m.input,h),h++),c[p]={end:m.end,inputId:g,start:m.start}}else c[p]=m}return f&&(c.inputs=[...n.keys()].map(p=>p.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=r){l.stringify&&(l=l.stringify);let n="";return l(this,c=>{n+=c}),n}warn(l,n,c={}){let f={node:this};for(let h in c)f[h]=c[h];return l.warn(n,f)}}return Er=u,u.default=u,Er}var Rr,Bs;function ot(){if(Bs)return Rr;Bs=1;let e=kt();class t extends e{constructor(s){super(s),this.type="comment"}}return Rr=t,t.default=t,Rr}var xr,Us;function It(){if(Us)return xr;Us=1;let e=kt();class t extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(s){s&&typeof s.value!="undefined"&&typeof s.value!="string"&&(s=le(Y({},s),{value:String(s.value)})),super(s),this.type="decl"}}return xr=t,t.default=t,xr}var Mr,zs;function Ie(){if(zs)return Mr;zs=1;let e=ot(),t=It(),r=kt(),{isClean:s,my:i}=Ni(),a,o,u,d;function l(f){return f.map(h=>(h.nodes&&(h.nodes=l(h.nodes)),delete h.source,h))}function n(f){if(f[s]=!1,f.proxyOf.nodes)for(let h of f.proxyOf.nodes)n(h)}class c extends r{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(...h){for(let p of h){let m=this.normalize(p,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let p of this.nodes)p.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let p=this.getIterator(),m,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(m=this.indexes[p],g=h(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(h){return this.nodes.every(h)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let h=this.lastEach;return this.indexes[h]=0,h}getProxyProcessor(){return{get(h,p){return p==="proxyOf"?h:h[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...m)=>h[p](...m.map(g=>typeof g=="function"?(v,y)=>g(v.toProxy(),y):g)):p==="every"||p==="some"?m=>h[p]((g,...v)=>m(g.toProxy(),...v)):p==="root"?()=>h.root().toProxy():p==="nodes"?h.nodes.map(m=>m.toProxy()):p==="first"||p==="last"?h[p].toProxy():h[p]:h[p]},set(h,p,m){return h[p]===m||(h[p]=m,(p==="name"||p==="params"||p==="selector")&&h.markDirty()),!0}}}index(h){return typeof h=="number"?h:(h.proxyOf&&(h=h.proxyOf),this.proxyOf.nodes.indexOf(h))}insertAfter(h,p){let m=this.index(h),g=this.normalize(p,this.proxyOf.nodes[m]).reverse();m=this.index(h);for(let y of g)this.proxyOf.nodes.splice(m+1,0,y);let v;for(let y in this.indexes)v=this.indexes[y],m<v&&(this.indexes[y]=v+g.length);return this.markDirty(),this}insertBefore(h,p){let m=this.index(h),g=m===0?"prepend":!1,v=this.normalize(p,this.proxyOf.nodes[m],g).reverse();m=this.index(h);for(let S of v)this.proxyOf.nodes.splice(m,0,S);let y;for(let S in this.indexes)y=this.indexes[S],m<=y&&(this.indexes[S]=y+v.length);return this.markDirty(),this}normalize(h,p){if(typeof h=="string")h=l(o(h).nodes);else if(typeof h=="undefined")h=[];else if(Array.isArray(h)){h=h.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type==="root"&&this.type!=="document"){h=h.nodes.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type)h=[h];else if(h.prop){if(typeof h.value=="undefined")throw new Error("Value field is missed in node creation");typeof h.value!="string"&&(h.value=String(h.value)),h=[new t(h)]}else if(h.selector||h.selectors)h=[new d(h)];else if(h.name)h=[new a(h)];else if(h.text)h=[new e(h)];else throw new Error("Unknown node type in node creation");return h.map(g=>(g[i]||c.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[s]&&n(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&p&&typeof p.raws.before!="undefined"&&(g.raws.before=p.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...h){h=h.reverse();for(let p of h){let m=this.normalize(p,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(h){return h.parent=this,this.proxyOf.nodes.push(h),this}removeAll(){for(let h of this.proxyOf.nodes)h.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(h){h=this.index(h),this.proxyOf.nodes[h].parent=void 0,this.proxyOf.nodes.splice(h,1);let p;for(let m in this.indexes)p=this.indexes[m],p>=h&&(this.indexes[m]=p-1);return this.markDirty(),this}replaceValues(h,p,m){return m||(m=p,p={}),this.walkDecls(g=>{p.props&&!p.props.includes(g.prop)||p.fast&&!g.value.includes(p.fast)||(g.value=g.value.replace(h,m))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((p,m)=>{let g;try{g=h(p,m)}catch(v){throw p.addToError(v)}return g!==!1&&p.walk&&(g=p.walk(h)),g})}walkAtRules(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&h.test(m.name))return p(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="atrule")return p(m,g)}))}walkComments(h){return this.walk((p,m)=>{if(p.type==="comment")return h(p,m)})}walkDecls(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="decl"&&h.test(m.prop))return p(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="decl")return p(m,g)}))}walkRules(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&h.test(m.selector))return p(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="rule")return p(m,g)}))}}return c.registerParse=f=>{o=f},c.registerRule=f=>{d=f},c.registerAtRule=f=>{a=f},c.registerRoot=f=>{u=f},Mr=c,c.default=c,c.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,a.prototype):f.type==="rule"?Object.setPrototypeOf(f,d.prototype):f.type==="decl"?Object.setPrototypeOf(f,t.prototype):f.type==="comment"?Object.setPrototypeOf(f,e.prototype):f.type==="root"&&Object.setPrototypeOf(f,u.prototype),f[i]=!0,f.nodes&&f.nodes.forEach(h=>{c.rebuild(h)})},Mr}var Nr,qs;function _i(){if(qs)return Nr;qs=1;let e=Ie();class t extends e{constructor(s){super(s),this.type="atrule"}append(...s){return this.proxyOf.nodes||(this.nodes=[]),super.append(...s)}prepend(...s){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...s)}}return Nr=t,t.default=t,e.registerAtRule(t),Nr}var _r,Ws;function Oi(){if(Ws)return _r;Ws=1;let e=Ie(),t,r;class s extends e{constructor(a){super(Y({type:"document"},a)),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return s.registerLazyResult=i=>{t=i},s.registerProcessor=i=>{r=i},_r=s,s.default=s,_r}var Or,$s;function Il(){if($s)return Or;$s=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Or={nanoid:(s=21)=>{let i="",a=s|0;for(;a--;)i+=e[Math.random()*64|0];return i},customAlphabet:(s,i=21)=>(a=i)=>{let o="",u=a|0;for(;u--;)o+=s[Math.random()*s.length|0];return o}},Or}var Ar,js;function mo(){if(js)return Ar;js=1;let{existsSync:e,readFileSync:t}=ge,{dirname:r,join:s}=ge,{SourceMapConsumer:i,SourceMapGenerator:a}=ge;function o(d){return Buffer?Buffer.from(d,"base64").toString():window.atob(d)}class u{constructor(l,n){if(n.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let c=n.map?n.map.prev:void 0,f=this.loadMap(n.from,c);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=r(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(l){let n=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/,p=l.match(f)||l.match(h);if(p)return decodeURIComponent(l.substr(p[0].length));let m=l.match(n)||l.match(c);if(m)return o(l.substr(m[0].length));let g=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let n=l.match(/\/\*\s*# sourceMappingURL=/g);if(!n)return;let c=l.lastIndexOf(n.pop()),f=l.indexOf("*/",c);c>-1&&f>-1&&(this.annotation=this.getAnnotationURL(l.substring(c,f)))}loadFile(l){if(this.root=r(l),e(l))return this.mapFile=l,t(l,"utf-8").toString().trim()}loadMap(l,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let c=n(l);if(c){let f=this.loadFile(c);if(!f)throw new Error("Unable to load previous source map: "+c.toString());return f}}else{if(n instanceof i)return a.fromSourceMap(n).toString();if(n instanceof a)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return l&&(c=s(r(l),c)),this.loadFile(c)}}}startWith(l,n){return l?l.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Ar=u,u.default=u,Ar}var Dr,Vs;function Lt(){if(Vs)return Dr;Vs=1;let{nanoid:e}=Il(),{isAbsolute:t,resolve:r}=ge,{SourceMapConsumer:s,SourceMapGenerator:i}=ge,{fileURLToPath:a,pathToFileURL:o}=ge,u=Mi(),d=mo(),l=ge,n=Symbol("lineToIndexCache"),c=!!(s&&i),f=!!(r&&t);function h(m){if(m[n])return m[n];let g=m.css.split(`
|
|
50
|
+
`),v=new Array(g.length),y=0;for(let S=0,E=g.length;S<E;S++)v[S]=y,y+=g[S].length+1;return m[n]=v,v}class p{get from(){return this.file||this.id}constructor(g,v={}){if(g===null||typeof g=="undefined"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.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,v.document&&(this.document=v.document.toString()),v.from&&(!f||/^\w+:\/\//.test(v.from)||t(v.from)?this.file=v.from:this.file=r(v.from)),f&&c){let y=new d(this.css,v);if(y.text){this.map=y;let S=y.consumer().file;!this.file&&S&&(this.file=this.mapResolve(S))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(g,v,y,S={}){let E,w,b,C,R;if(v&&typeof v=="object"){let x=v,I=y;if(typeof x.offset=="number"){C=x.offset;let T=this.fromOffset(C);v=T.line,y=T.col}else v=x.line,y=x.column,C=this.fromLineAndColumn(v,y);if(typeof I.offset=="number"){b=I.offset;let T=this.fromOffset(b);w=T.line,E=T.col}else w=I.line,E=I.column,b=this.fromLineAndColumn(I.line,I.column)}else if(y)C=this.fromLineAndColumn(v,y);else{C=v;let x=this.fromOffset(C);v=x.line,y=x.col}let N=this.origin(v,y,w,E);return N?R=new u(g,N.endLine===void 0?N.line:{column:N.column,line:N.line},N.endLine===void 0?N.column:{column:N.endColumn,line:N.endLine},N.source,N.file,S.plugin):R=new u(g,w===void 0?v:{column:y,line:v},w===void 0?y:{column:E,line:w},this.css,this.file,S.plugin),R.input={column:y,endColumn:E,endLine:w,endOffset:b,line:v,offset:C,source:this.css},this.file&&(o&&(R.input.url=o(this.file).toString()),R.input.file=this.file),R}fromLineAndColumn(g,v){return h(this)[g-1]+v-1}fromOffset(g){let v=h(this),y=v[v.length-1],S=0;if(g>=y)S=v.length-1;else{let E=v.length-2,w;for(;S<E;)if(w=S+(E-S>>1),g<v[w])E=w-1;else if(g>=v[w+1])S=w+1;else{S=w;break}}return{col:g-v[S]+1,line:S+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:r(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,v,y,S){if(!this.map)return!1;let E=this.map.consumer(),w=E.originalPositionFor({column:v,line:g});if(!w.source)return!1;let b;typeof y=="number"&&(b=E.originalPositionFor({column:S,line:y}));let C;t(w.source)?C=o(w.source):C=new URL(w.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let R={column:w.column,endColumn:b&&b.column,endLine:b&&b.line,line:w.line,url:C.toString()};if(C.protocol==="file:")if(a)R.file=a(C);else throw new Error("file: protocol is not available in this PostCSS build");let N=E.sourceContentFor(w.source);return N&&(R.source=N),R}toJSON(){let g={};for(let v of["hasBOM","css","file","id"])this[v]!=null&&(g[v]=this[v]);return this.map&&(g.map=Y({},this.map),g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return Dr=p,p.default=p,l&&l.registerInput&&l.registerInput(p),Dr}var Pr,Gs;function at(){if(Gs)return Pr;Gs=1;let e=Ie(),t,r;class s extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,o,u){let d=super.normalize(a);if(o){if(u==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let l of d)l.raws.before=o.raws.before}return d}removeChild(a,o){let u=this.index(a);return!o&&u===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[u].raws.before),super.removeChild(a)}toResult(a={}){return new t(new r,this,a).stringify()}}return s.registerLazyResult=i=>{t=i},s.registerProcessor=i=>{r=i},Pr=s,s.default=s,e.registerRoot(s),Pr}var Tr,Hs;function go(){if(Hs)return Tr;Hs=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
51
|
+
`," "];return e.split(t,r)},split(t,r,s){let i=[],a="",o=!1,u=0,d=!1,l="",n=!1;for(let c of t)n?n=!1:c==="\\"?n=!0:d?c===l&&(d=!1):c==='"'||c==="'"?(d=!0,l=c):c==="("?u+=1:c===")"?u>0&&(u-=1):u===0&&r.includes(c)&&(o=!0),o?(a!==""&&i.push(a.trim()),a="",o=!1):a+=c;return(s||a!=="")&&i.push(a.trim()),i}};return Tr=e,e.default=e,Tr}var kr,Ys;function Ai(){if(Ys)return kr;Ys=1;let e=Ie(),t=go();class r extends e{get selectors(){return t.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,o=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(o)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}}return kr=r,r.default=r,e.registerRule(r),kr}var Ir,Js;function Ll(){if(Js)return Ir;Js=1;let e=_i(),t=ot(),r=It(),s=Lt(),i=mo(),a=at(),o=Ai();function u(d,l){if(Array.isArray(d))return d.map(p=>u(p));let f=d,{inputs:n}=f,c=Je(f,["inputs"]);if(n){l=[];for(let p of n){let m=le(Y({},p),{__proto__:s.prototype});m.map&&(m.map=le(Y({},m.map),{__proto__:i.prototype})),l.push(m)}}if(c.nodes&&(c.nodes=d.nodes.map(p=>u(p,l))),c.source){let h=c.source,{inputId:p}=h,m=Je(h,["inputId"]);c.source=m,p!=null&&(c.source.input=l[p])}if(c.type==="root")return new a(c);if(c.type==="decl")return new r(c);if(c.type==="rule")return new o(c);if(c.type==="comment")return new t(c);if(c.type==="atrule")return new e(c);throw new Error("Unknown node type: "+d.type)}return Ir=u,u.default=u,Ir}var Lr,Xs;function yo(){if(Xs)return Lr;Xs=1;let{dirname:e,relative:t,resolve:r,sep:s}=ge,{SourceMapConsumer:i,SourceMapGenerator:a}=ge,{pathToFileURL:o}=ge,u=Lt(),d=!!(i&&a),l=!!(e&&r&&t&&s);class n{constructor(f,h,p,m){this.stringify=f,this.mapOpts=p.map||{},this.root=h,this.opts=p,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let h=`
|
|
52
52
|
`;this.css.includes(`\r
|
|
53
53
|
`)&&(h=`\r
|
|
54
54
|
`),this.css+=h+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let h=this.toUrl(this.path(f.file)),p=f.root||e(f.file),m;this.mapOpts.sourcesContent===!1?(m=new i(f.text),m.sourcesContent&&(m.sourcesContent=null)):m=f.consumer(),this.map.applySourceMap(m,h,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let h=this.root.nodes.length-1;h>=0;h--)f=this.root.nodes[h],f.type==="comment"&&f.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(h)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),l&&d&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,h=>{f+=h}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=a.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,h=1,p="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,v;this.stringify(this.root,(y,S,E)=>{if(this.css+=y,S&&E!=="end"&&(m.generated.line=f,m.generated.column=h-1,S.source&&S.source.start?(m.source=this.sourcePath(S),m.original.line=S.source.start.line,m.original.column=S.source.start.column-1,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,this.map.addMapping(m))),v=y.match(/\n/g),v?(f+=v.length,g=y.lastIndexOf(`
|
|
55
|
-
`),h=y.length-g):h+=y.length,S&&E!=="start"){let w=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==w.last||w.raws.semicolon)&&(S.source&&S.source.end?(m.source=this.sourcePath(S),m.original.line=S.source.end.line,m.original.column=S.source.end.column-1,m.generated.line=f,m.generated.column=h-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=f,m.generated.column=h-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f!="undefined"&&f!==!0?!1:this.previous().length?this.previous().some(h=>h.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let h=this.memoizedPaths.get(f);if(h)return h;let p=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=e(r(p,this.mapOpts.annotation)));let m=t(p,f);return this.memoizedPaths.set(f,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let h=f.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let f=new u(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(h=>{if(h.source){let p=h.source.input.from;if(p&&!f[p]){f[p]=!0;let m=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(m,h.source.input.css)}}});else if(this.css){let h=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(h,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let h=this.memoizedFileURLs.get(f);if(h)return h;if(o){let p=o(f).toString();return this.memoizedFileURLs.set(f,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let h=this.memoizedURLs.get(f);if(h)return h;s==="\\"&&(f=f.replace(/\\/g,"/"));let p=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,p),p}}return Lr=n,Lr}var Fr,Qs;function wo(){if(Qs)return Fr;Qs=1;const e=39,t=34,r=92,s=47,i=10,a=32,o=12,u=9,d=13,l=91,n=93,c=40,f=41,h=123,p=125,m=59,g=42,v=58,y=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return Fr=function(R,N={}){let x=R.css.valueOf(),I=N.ignoreErrors,T,J,U,M,q,L,j,H,z,X,ae=x.length,_=0,D=[],A=[];function O(){return _}function P(ie){throw R.error("Unclosed "+ie,_)}function $(){return A.length===0&&_>=ae}function ue(ie){if(A.length)return A.pop();if(_>=ae)return;let be=ie?ie.ignoreUnclosed:!1;switch(T=x.charCodeAt(_),T){case i:case a:case u:case d:case o:{M=_;do M+=1,T=x.charCodeAt(M);while(T===a||T===i||T===u||T===d||T===o);L=["space",x.slice(_,M)],_=M-1;break}case l:case n:case h:case p:case v:case m:case f:{let Ae=String.fromCharCode(T);L=[Ae,Ae,_];break}case c:{if(X=D.length?D.pop()[1]:"",z=x.charCodeAt(_+1),X==="url"&&z!==e&&z!==t&&z!==a&&z!==i&&z!==u&&z!==o&&z!==d){M=_;do{if(j=!1,M=x.indexOf(")",M+1),M===-1)if(I||be){M=_;break}else P("bracket");for(H=M;x.charCodeAt(H-1)===r;)H-=1,j=!j}while(j);L=["brackets",x.slice(_,M+1),_,M],_=M}else M=x.indexOf(")",_+1),J=x.slice(_,M+1),M===-1||w.test(J)?L=["(","(",_]:(L=["brackets",J,_,M],_=M);break}case e:case t:{q=T===e?"'":'"',M=_;do{if(j=!1,M=x.indexOf(q,M+1),M===-1)if(I||be){M=_+1;break}else P("string");for(H=M;x.charCodeAt(H-1)===r;)H-=1,j=!j}while(j);L=["string",x.slice(_,M+1),_,M],_=M;break}case y:{S.lastIndex=_+1,S.test(x),S.lastIndex===0?M=x.length-1:M=S.lastIndex-2,L=["at-word",x.slice(_,M+1),_,M],_=M;break}case r:{for(M=_,U=!0;x.charCodeAt(M+1)===r;)M+=1,U=!U;if(T=x.charCodeAt(M+1),U&&T!==s&&T!==a&&T!==i&&T!==u&&T!==d&&T!==o&&(M+=1,b.test(x.charAt(M)))){for(;b.test(x.charAt(M+1));)M+=1;x.charCodeAt(M+1)===a&&(M+=1)}L=["word",x.slice(_,M+1),_,M],_=M;break}default:{T===s&&x.charCodeAt(_+1)===g?(M=x.indexOf("*/",_+2)+1,M===0&&(I||be?M=x.length:P("comment")),L=["comment",x.slice(_,M+1),_,M],_=M):(E.lastIndex=_+1,E.test(x),E.lastIndex===0?M=x.length-1:M=E.lastIndex-2,L=["word",x.slice(_,M+1),_,M],D.push(L),_=M);break}}return _++,L}function ce(ie){A.push(ie)}return{back:ce,endOfFile:$,nextToken:ue,position:O}},Fr}var Br,Ks;function vo(){if(Ks)return Br;Ks=1;let e=_i(),t=ot(),r=It(),s=at(),i=Ai(),a=wo();const o={empty:!0,space:!0};function u(l){for(let n=l.length-1;n>=0;n--){let c=l[n],f=c[3]||c[2];if(f)return f}}class d{constructor(n){this.input=n,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:n,start:{column:1,line:1,offset:0}}}atrule(n){let c=new e;c.name=n[1].slice(1),c.name===""&&this.unnamedAtrule(c,n),this.init(c,n[2]);let f,h,p,m=!1,g=!1,v=[],y=[];for(;!this.tokenizer.endOfFile();){if(n=this.tokenizer.nextToken(),f=n[0],f==="("||f==="["?y.push(f==="("?")":"]"):f==="{"&&y.length>0?y.push("}"):f===y[y.length-1]&&y.pop(),y.length===0)if(f===";"){c.source.end=this.getPosition(n[2]),c.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(v.length>0){for(p=v.length-1,h=v[p];h&&h[0]==="space";)h=v[--p];h&&(c.source.end=this.getPosition(h[3]||h[2]),c.source.end.offset++)}this.end(n);break}else v.push(n);else v.push(n);if(this.tokenizer.endOfFile()){m=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(c.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(c,"params",v),m&&(n=v[v.length-1],c.source.end=this.getPosition(n[3]||n[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),g&&(c.nodes=[],this.current=c)}checkMissedSemicolon(n){let c=this.colon(n);if(c===!1)return;let f=0,h;for(let p=c-1;p>=0&&(h=n[p],!(h[0]!=="space"&&(f+=1,f===2)));p--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(n){let c=0,f,h,p;for(let[m,g]of n.entries()){if(h=g,p=h[0],p==="("&&(c+=1),p===")"&&(c-=1),c===0&&p===":")if(!f)this.doubleColon(h);else{if(f[0]==="word"&&f[1]==="progid")continue;return m}f=h}return!1}comment(n){let c=new t;this.init(c,n[2]),c.source.end=this.getPosition(n[3]||n[2]),c.source.end.offset++;let f=n[1].slice(2,-2);if(/^\s*$/.test(f))c.text="",c.raws.left=f,c.raws.right="";else{let h=f.match(/^(\s*)([^]*\S)(\s*)$/);c.text=h[2],c.raws.left=h[1],c.raws.right=h[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(n,c){let f=new r;this.init(f,n[0][2]);let h=n[n.length-1];for(h[0]===";"&&(this.semicolon=!0,n.pop()),f.source.end=this.getPosition(h[3]||h[2]||u(n)),f.source.end.offset++;n[0][0]!=="word";)n.length===1&&this.unknownWord(n),f.raws.before+=n.shift()[1];for(f.source.start=this.getPosition(n[0][2]),f.prop="";n.length;){let y=n[0][0];if(y===":"||y==="space"||y==="comment")break;f.prop+=n.shift()[1]}f.raws.between="";let p;for(;n.length;)if(p=n.shift(),p[0]===":"){f.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),f.raws.between+=p[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let m=[],g;for(;n.length&&(g=n[0][0],!(g!=="space"&&g!=="comment"));)m.push(n.shift());this.precheckMissedSemicolon(n);for(let y=n.length-1;y>=0;y--){if(p=n[y],p[1].toLowerCase()==="!important"){f.important=!0;let S=this.stringFrom(n,y);S=this.spacesFromEnd(n)+S,S!==" !important"&&(f.raws.important=S);break}else if(p[1].toLowerCase()==="important"){let S=n.slice(0),E="";for(let w=y;w>0;w--){let b=S[w][0];if(E.trim().startsWith("!")&&b!=="space")break;E=S.pop()[1]+E}E.trim().startsWith("!")&&(f.important=!0,f.raws.important=E,n=S)}if(p[0]!=="space"&&p[0]!=="comment")break}n.some(y=>y[0]!=="space"&&y[0]!=="comment")&&(f.raws.between+=m.map(y=>y[1]).join(""),m=[]),this.raw(f,"value",m.concat(n),c),f.value.includes(":")&&!c&&this.checkMissedSemicolon(n)}doubleColon(n){throw this.input.error("Double colon",{offset:n[2]},{offset:n[2]+n[1].length})}emptyRule(n){let c=new i;this.init(c,n[2]),c.selector="",c.raws.between="",this.current=c}end(n){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(n[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(n)}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(n){if(this.spaces+=n[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="",c.source.end=this.getPosition(n[2]),c.source.end.offset+=c.raws.ownSemicolon.length)}}getPosition(n){let c=this.input.fromOffset(n);return{column:c.col,line:c.line,offset:n}}init(n,c){this.current.push(n),n.source={input:this.input,start:this.getPosition(c)},n.raws.before=this.spaces,this.spaces="",n.type!=="comment"&&(this.semicolon=!1)}other(n){let c=!1,f=null,h=!1,p=null,m=[],g=n[1].startsWith("--"),v=[],y=n;for(;y;){if(f=y[0],v.push(y),f==="("||f==="[")p||(p=y),m.push(f==="("?")":"]");else if(g&&h&&f==="{")p||(p=y),m.push("}");else if(m.length===0)if(f===";")if(h){this.decl(v,g);return}else break;else if(f==="{"){this.rule(v);return}else if(f==="}"){this.tokenizer.back(v.pop()),c=!0;break}else f===":"&&(h=!0);else f===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));y=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),m.length>0&&this.unclosedBracket(p),c&&h){if(!g)for(;v.length&&(y=v[v.length-1][0],!(y!=="space"&&y!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,g)}else this.unknownWord(v)}parse(){let n;for(;!this.tokenizer.endOfFile();)switch(n=this.tokenizer.nextToken(),n[0]){case"space":this.spaces+=n[1];break;case";":this.freeSemicolon(n);break;case"}":this.end(n);break;case"comment":this.comment(n);break;case"at-word":this.atrule(n);break;case"{":this.emptyRule(n);break;default:this.other(n);break}this.endFile()}precheckMissedSemicolon(){}raw(n,c,f,h){let p,m,g=f.length,v="",y=!0,S,E;for(let w=0;w<g;w+=1)p=f[w],m=p[0],m==="space"&&w===g-1&&!h?y=!1:m==="comment"?(E=f[w-1]?f[w-1][0]:"empty",S=f[w+1]?f[w+1][0]:"empty",!o[E]&&!o[S]?v.slice(-1)===","?y=!1:v+=p[1]:y=!1):v+=p[1];if(!y){let w=f.reduce((b,C)=>b+C[1],"");n.raws[c]={raw:w,value:v}}n[c]=v}rule(n){n.pop();let c=new i;this.init(c,n[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(n),this.raw(c,"selector",n),this.current=c}spacesAndCommentsFromEnd(n){let c,f="";for(;n.length&&(c=n[n.length-1][0],!(c!=="space"&&c!=="comment"));)f=n.pop()[1]+f;return f}spacesAndCommentsFromStart(n){let c,f="";for(;n.length&&(c=n[0][0],!(c!=="space"&&c!=="comment"));)f+=n.shift()[1];return f}spacesFromEnd(n){let c,f="";for(;n.length&&(c=n[n.length-1][0],c==="space");)f=n.pop()[1]+f;return f}stringFrom(n,c){let f="";for(let h=c;h<n.length;h++)f+=n[h][1];return n.splice(c,n.length-c),f}unclosedBlock(){let n=this.current.source.start;throw this.input.error("Unclosed block",n.line,n.column)}unclosedBracket(n){throw this.input.error("Unclosed bracket",{offset:n[2]},{offset:n[2]+1})}unexpectedClose(n){throw this.input.error("Unexpected }",{offset:n[2]},{offset:n[2]+1})}unknownWord(n){throw this.input.error("Unknown word "+n[0][1],{offset:n[0][2]},{offset:n[0][2]+n[0][1].length})}unnamedAtrule(n,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return Br=d,Br}var Ur,Zs;function Di(){if(Zs)return Ur;Zs=1;let e=Ie(),t=Lt(),r=vo();function s(i,a){let o=new t(i,a),u=new r(o);try{u.parse()}catch(d){throw d}return u.root}return Ur=s,s.default=s,e.registerParse(s),Ur}var zr,en;function bo(){if(en)return zr;en=1;class e{constructor(r,s={}){if(this.type="warning",this.text=r,s.node&&s.node.source){let i=s.node.rangeBy(s);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in s)this[i]=s[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return zr=e,e.default=e,zr}var qr,tn;function Pi(){if(tn)return qr;tn=1;let e=bo();class t{get content(){return this.css}constructor(s,i,a){this.processor=s,this.messages=[],this.root=i,this.opts=a,this.css="",this.map=void 0}toString(){return this.css}warn(s,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(s,i);return this.messages.push(a),a}warnings(){return this.messages.filter(s=>s.type==="warning")}}return qr=t,t.default=t,qr}var Wr,rn;function So(){if(rn)return Wr;rn=1;let e={};return Wr=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},Wr}var $r,sn;function Co(){if(sn)return $r;sn=1;let e=Ie(),t=Oi(),r=yo(),s=Di(),i=Pi(),a=at(),o=Tt(),{isClean:u,my:d}=Ni(),l=So();const n={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},c={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function p(E){return typeof E=="object"&&typeof E.then=="function"}function m(E){let w=!1,b=n[E.type];return E.type==="decl"?w=E.prop.toLowerCase():E.type==="atrule"&&(w=E.name.toLowerCase()),w&&E.append?[b,b+"-"+w,h,b+"Exit",b+"Exit-"+w]:w?[b,b+"-"+w,b+"Exit",b+"Exit-"+w]:E.append?[b,h,b+"Exit"]:[b,b+"Exit"]}function g(E){let w;return E.type==="document"?w=["Document",h,"DocumentExit"]:E.type==="root"?w=["Root",h,"RootExit"]:w=m(E),{eventIndex:0,events:w,iterator:0,node:E,visitorIndex:0,visitors:[]}}function v(E){return E[u]=!1,E.nodes&&E.nodes.forEach(w=>v(w)),E}let y={};class S{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(w,b,C){this.stringified=!1,this.processed=!1;let R;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))R=v(b);else if(b instanceof S||b instanceof i)R=v(b.root),b.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=b.map);else{let N=s;C.syntax&&(N=C.syntax.parse),C.parser&&(N=C.parser),N.parse&&(N=N.parse);try{R=N(b,C)}catch(x){this.processed=!0,this.error=x}R&&!R[d]&&e.rebuild(R)}this.result=new i(w,R,C),this.helpers=le(Q({},y),{postcss:y,result:this.result}),this.plugins=this.processor.plugins.map(N=>typeof N=="object"&&N.prepare?Q(Q({},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(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,b){let C=this.result.lastPlugin;try{b&&b.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=C.postcssPlugin,w.setMessage()):C.postcssVersion}catch(R){console&&console.error&&console.error(R)}return w}prepareVisitors(){this.listeners={};let w=(b,C,R)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([b,R])};for(let b of this.plugins)if(typeof b=="object")for(let C in b){if(!c[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[C])if(typeof b[C]=="object")for(let R in b[C])R==="*"?w(b,C,b[C][R]):w(b,C+"-"+R.toLowerCase(),b[C][R]);else typeof b[C]=="function"&&w(b,C,b[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let b=this.plugins[w],C=this.runOnRoot(b);if(p(C))try{await C}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[u];){w[u]=!0;let b=[g(w)];for(;b.length>0;){let C=this.visitTick(b);if(p(C))try{await C}catch(R){let N=b[b.length-1].node;throw this.handleError(R,N)}}}if(this.listeners.OnceExit)for(let[b,C]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(w.type==="document"){let R=w.nodes.map(N=>C(N,this.helpers));await Promise.all(R)}else await C(w,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(C=>w.Once(C,this.helpers));return p(b[0])?Promise.all(b):b}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,b=o;w.syntax&&(b=w.syntax.stringify),w.stringifier&&(b=w.stringifier),b.stringify&&(b=b.stringify);let R=new r(b,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let b=this.runOnRoot(w);if(p(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[u];)w[u]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let b of w.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,b){return this.async().then(w,b)}toString(){return this.css}visitSync(w,b){for(let[C,R]of w){this.result.lastPlugin=C;let N;try{N=R(b,this.helpers)}catch(x){throw this.handleError(x,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(p(N))throw this.getAsyncError()}}visitTick(w){let b=w[w.length-1],{node:C,visitors:R}=b;if(C.type!=="root"&&C.type!=="document"&&!C.parent){w.pop();return}if(R.length>0&&b.visitorIndex<R.length){let[x,I]=R[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===R.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=x;try{return I(C.toProxy(),this.helpers)}catch(T){throw this.handleError(T,C)}}if(b.iterator!==0){let x=b.iterator,I;for(;I=C.nodes[C.indexes[x]];)if(C.indexes[x]+=1,!I[u]){I[u]=!0,w.push(g(I));return}b.iterator=0,delete C.indexes[x]}let N=b.events;for(;b.eventIndex<N.length;){let x=N[b.eventIndex];if(b.eventIndex+=1,x===h){C.nodes&&C.nodes.length&&(C[u]=!0,b.iterator=C.getIterator());return}else if(this.listeners[x]){b.visitors=this.listeners[x];return}}w.pop()}walkSync(w){w[u]=!0;let b=m(w);for(let C of b)if(C===h)w.nodes&&w.each(R=>{R[u]||this.walkSync(R)});else{let R=this.listeners[C];if(R&&this.visitSync(R,w.toProxy()))return}}warnings(){return this.sync().warnings()}}return S.registerPostcss=E=>{y=E},$r=S,S.default=S,a.registerLazyResult(S),t.registerLazyResult(S),$r}var jr,nn;function Fl(){if(nn)return jr;nn=1;let e=yo(),t=Di();const r=Pi();let s=Tt(),i=So();class a{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let u,d=t;try{u=d(this._css,this._opts)}catch(l){this.error=l}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(u,d,l){d=d.toString(),this.stringified=!1,this._processor=u,this._css=d,this._opts=l,this._map=void 0;let n,c=s;this.result=new r(this._processor,n,this._opts),this.result.css=d;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let h=new e(c,n,this._opts,d);if(h.isMap()){let[p,m]=h.generate();p&&(this.result.css=p),m&&(this.result.map=m)}else h.clearAnnotation(),this.result.css=h.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,d){return this.async().then(u,d)}toString(){return this._css}warnings(){return[]}}return jr=a,a.default=a,jr}var Vr,on;function Bl(){if(on)return Vr;on=1;let e=Oi(),t=Co(),r=Fl(),s=at();class i{constructor(o=[]){this.version="8.5.6",this.plugins=this.normalize(o)}normalize(o){let u=[];for(let d of o)if(d.postcss===!0?d=d():d.postcss&&(d=d.postcss),typeof d=="object"&&Array.isArray(d.plugins))u=u.concat(d.plugins);else if(typeof d=="object"&&d.postcssPlugin)u.push(d);else if(typeof d=="function")u.push(d);else if(!(typeof d=="object"&&(d.parse||d.stringify)))throw new Error(d+" is not a PostCSS plugin");return u}process(o,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new r(this,o,u):new t(this,o,u)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return Vr=i,i.default=i,s.registerProcessor(i),e.registerProcessor(i),Vr}var Gr,an;function Eo(){if(an)return Gr;an=1;let e=_i(),t=ot(),r=Ie(),s=Mi(),i=It(),a=Oi(),o=Ll(),u=Lt(),d=Co(),l=go(),n=kt(),c=Di(),f=Bl(),h=Pi(),p=at(),m=Ai(),g=Tt(),v=bo();function y(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new f(S)}return y.plugin=function(E,w){let b=!1;function C(...N){console&&console.warn&&!b&&(b=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
|
|
55
|
+
`),h=y.length-g):h+=y.length,S&&E!=="start"){let w=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==w.last||w.raws.semicolon)&&(S.source&&S.source.end?(m.source=this.sourcePath(S),m.original.line=S.source.end.line,m.original.column=S.source.end.column-1,m.generated.line=f,m.generated.column=h-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=f,m.generated.column=h-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f!="undefined"&&f!==!0?!1:this.previous().length?this.previous().some(h=>h.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let h=this.memoizedPaths.get(f);if(h)return h;let p=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=e(r(p,this.mapOpts.annotation)));let m=t(p,f);return this.memoizedPaths.set(f,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let h=f.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let f=new u(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(h=>{if(h.source){let p=h.source.input.from;if(p&&!f[p]){f[p]=!0;let m=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(m,h.source.input.css)}}});else if(this.css){let h=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(h,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let h=this.memoizedFileURLs.get(f);if(h)return h;if(o){let p=o(f).toString();return this.memoizedFileURLs.set(f,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let h=this.memoizedURLs.get(f);if(h)return h;s==="\\"&&(f=f.replace(/\\/g,"/"));let p=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,p),p}}return Lr=n,Lr}var Fr,Qs;function wo(){if(Qs)return Fr;Qs=1;const e=39,t=34,r=92,s=47,i=10,a=32,o=12,u=9,d=13,l=91,n=93,c=40,f=41,h=123,p=125,m=59,g=42,v=58,y=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return Fr=function(R,N={}){let x=R.css.valueOf(),I=N.ignoreErrors,T,X,U,M,q,L,j,H,z,Q,ae=x.length,_=0,D=[],A=[];function O(){return _}function P(ie){throw R.error("Unclosed "+ie,_)}function $(){return A.length===0&&_>=ae}function ue(ie){if(A.length)return A.pop();if(_>=ae)return;let be=ie?ie.ignoreUnclosed:!1;switch(T=x.charCodeAt(_),T){case i:case a:case u:case d:case o:{M=_;do M+=1,T=x.charCodeAt(M);while(T===a||T===i||T===u||T===d||T===o);L=["space",x.slice(_,M)],_=M-1;break}case l:case n:case h:case p:case v:case m:case f:{let Ae=String.fromCharCode(T);L=[Ae,Ae,_];break}case c:{if(Q=D.length?D.pop()[1]:"",z=x.charCodeAt(_+1),Q==="url"&&z!==e&&z!==t&&z!==a&&z!==i&&z!==u&&z!==o&&z!==d){M=_;do{if(j=!1,M=x.indexOf(")",M+1),M===-1)if(I||be){M=_;break}else P("bracket");for(H=M;x.charCodeAt(H-1)===r;)H-=1,j=!j}while(j);L=["brackets",x.slice(_,M+1),_,M],_=M}else M=x.indexOf(")",_+1),X=x.slice(_,M+1),M===-1||w.test(X)?L=["(","(",_]:(L=["brackets",X,_,M],_=M);break}case e:case t:{q=T===e?"'":'"',M=_;do{if(j=!1,M=x.indexOf(q,M+1),M===-1)if(I||be){M=_+1;break}else P("string");for(H=M;x.charCodeAt(H-1)===r;)H-=1,j=!j}while(j);L=["string",x.slice(_,M+1),_,M],_=M;break}case y:{S.lastIndex=_+1,S.test(x),S.lastIndex===0?M=x.length-1:M=S.lastIndex-2,L=["at-word",x.slice(_,M+1),_,M],_=M;break}case r:{for(M=_,U=!0;x.charCodeAt(M+1)===r;)M+=1,U=!U;if(T=x.charCodeAt(M+1),U&&T!==s&&T!==a&&T!==i&&T!==u&&T!==d&&T!==o&&(M+=1,b.test(x.charAt(M)))){for(;b.test(x.charAt(M+1));)M+=1;x.charCodeAt(M+1)===a&&(M+=1)}L=["word",x.slice(_,M+1),_,M],_=M;break}default:{T===s&&x.charCodeAt(_+1)===g?(M=x.indexOf("*/",_+2)+1,M===0&&(I||be?M=x.length:P("comment")),L=["comment",x.slice(_,M+1),_,M],_=M):(E.lastIndex=_+1,E.test(x),E.lastIndex===0?M=x.length-1:M=E.lastIndex-2,L=["word",x.slice(_,M+1),_,M],D.push(L),_=M);break}}return _++,L}function ce(ie){A.push(ie)}return{back:ce,endOfFile:$,nextToken:ue,position:O}},Fr}var Br,Ks;function vo(){if(Ks)return Br;Ks=1;let e=_i(),t=ot(),r=It(),s=at(),i=Ai(),a=wo();const o={empty:!0,space:!0};function u(l){for(let n=l.length-1;n>=0;n--){let c=l[n],f=c[3]||c[2];if(f)return f}}class d{constructor(n){this.input=n,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:n,start:{column:1,line:1,offset:0}}}atrule(n){let c=new e;c.name=n[1].slice(1),c.name===""&&this.unnamedAtrule(c,n),this.init(c,n[2]);let f,h,p,m=!1,g=!1,v=[],y=[];for(;!this.tokenizer.endOfFile();){if(n=this.tokenizer.nextToken(),f=n[0],f==="("||f==="["?y.push(f==="("?")":"]"):f==="{"&&y.length>0?y.push("}"):f===y[y.length-1]&&y.pop(),y.length===0)if(f===";"){c.source.end=this.getPosition(n[2]),c.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(v.length>0){for(p=v.length-1,h=v[p];h&&h[0]==="space";)h=v[--p];h&&(c.source.end=this.getPosition(h[3]||h[2]),c.source.end.offset++)}this.end(n);break}else v.push(n);else v.push(n);if(this.tokenizer.endOfFile()){m=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(c.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(c,"params",v),m&&(n=v[v.length-1],c.source.end=this.getPosition(n[3]||n[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),g&&(c.nodes=[],this.current=c)}checkMissedSemicolon(n){let c=this.colon(n);if(c===!1)return;let f=0,h;for(let p=c-1;p>=0&&(h=n[p],!(h[0]!=="space"&&(f+=1,f===2)));p--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(n){let c=0,f,h,p;for(let[m,g]of n.entries()){if(h=g,p=h[0],p==="("&&(c+=1),p===")"&&(c-=1),c===0&&p===":")if(!f)this.doubleColon(h);else{if(f[0]==="word"&&f[1]==="progid")continue;return m}f=h}return!1}comment(n){let c=new t;this.init(c,n[2]),c.source.end=this.getPosition(n[3]||n[2]),c.source.end.offset++;let f=n[1].slice(2,-2);if(/^\s*$/.test(f))c.text="",c.raws.left=f,c.raws.right="";else{let h=f.match(/^(\s*)([^]*\S)(\s*)$/);c.text=h[2],c.raws.left=h[1],c.raws.right=h[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(n,c){let f=new r;this.init(f,n[0][2]);let h=n[n.length-1];for(h[0]===";"&&(this.semicolon=!0,n.pop()),f.source.end=this.getPosition(h[3]||h[2]||u(n)),f.source.end.offset++;n[0][0]!=="word";)n.length===1&&this.unknownWord(n),f.raws.before+=n.shift()[1];for(f.source.start=this.getPosition(n[0][2]),f.prop="";n.length;){let y=n[0][0];if(y===":"||y==="space"||y==="comment")break;f.prop+=n.shift()[1]}f.raws.between="";let p;for(;n.length;)if(p=n.shift(),p[0]===":"){f.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),f.raws.between+=p[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let m=[],g;for(;n.length&&(g=n[0][0],!(g!=="space"&&g!=="comment"));)m.push(n.shift());this.precheckMissedSemicolon(n);for(let y=n.length-1;y>=0;y--){if(p=n[y],p[1].toLowerCase()==="!important"){f.important=!0;let S=this.stringFrom(n,y);S=this.spacesFromEnd(n)+S,S!==" !important"&&(f.raws.important=S);break}else if(p[1].toLowerCase()==="important"){let S=n.slice(0),E="";for(let w=y;w>0;w--){let b=S[w][0];if(E.trim().startsWith("!")&&b!=="space")break;E=S.pop()[1]+E}E.trim().startsWith("!")&&(f.important=!0,f.raws.important=E,n=S)}if(p[0]!=="space"&&p[0]!=="comment")break}n.some(y=>y[0]!=="space"&&y[0]!=="comment")&&(f.raws.between+=m.map(y=>y[1]).join(""),m=[]),this.raw(f,"value",m.concat(n),c),f.value.includes(":")&&!c&&this.checkMissedSemicolon(n)}doubleColon(n){throw this.input.error("Double colon",{offset:n[2]},{offset:n[2]+n[1].length})}emptyRule(n){let c=new i;this.init(c,n[2]),c.selector="",c.raws.between="",this.current=c}end(n){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(n[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(n)}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(n){if(this.spaces+=n[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="",c.source.end=this.getPosition(n[2]),c.source.end.offset+=c.raws.ownSemicolon.length)}}getPosition(n){let c=this.input.fromOffset(n);return{column:c.col,line:c.line,offset:n}}init(n,c){this.current.push(n),n.source={input:this.input,start:this.getPosition(c)},n.raws.before=this.spaces,this.spaces="",n.type!=="comment"&&(this.semicolon=!1)}other(n){let c=!1,f=null,h=!1,p=null,m=[],g=n[1].startsWith("--"),v=[],y=n;for(;y;){if(f=y[0],v.push(y),f==="("||f==="[")p||(p=y),m.push(f==="("?")":"]");else if(g&&h&&f==="{")p||(p=y),m.push("}");else if(m.length===0)if(f===";")if(h){this.decl(v,g);return}else break;else if(f==="{"){this.rule(v);return}else if(f==="}"){this.tokenizer.back(v.pop()),c=!0;break}else f===":"&&(h=!0);else f===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));y=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),m.length>0&&this.unclosedBracket(p),c&&h){if(!g)for(;v.length&&(y=v[v.length-1][0],!(y!=="space"&&y!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,g)}else this.unknownWord(v)}parse(){let n;for(;!this.tokenizer.endOfFile();)switch(n=this.tokenizer.nextToken(),n[0]){case"space":this.spaces+=n[1];break;case";":this.freeSemicolon(n);break;case"}":this.end(n);break;case"comment":this.comment(n);break;case"at-word":this.atrule(n);break;case"{":this.emptyRule(n);break;default:this.other(n);break}this.endFile()}precheckMissedSemicolon(){}raw(n,c,f,h){let p,m,g=f.length,v="",y=!0,S,E;for(let w=0;w<g;w+=1)p=f[w],m=p[0],m==="space"&&w===g-1&&!h?y=!1:m==="comment"?(E=f[w-1]?f[w-1][0]:"empty",S=f[w+1]?f[w+1][0]:"empty",!o[E]&&!o[S]?v.slice(-1)===","?y=!1:v+=p[1]:y=!1):v+=p[1];if(!y){let w=f.reduce((b,C)=>b+C[1],"");n.raws[c]={raw:w,value:v}}n[c]=v}rule(n){n.pop();let c=new i;this.init(c,n[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(n),this.raw(c,"selector",n),this.current=c}spacesAndCommentsFromEnd(n){let c,f="";for(;n.length&&(c=n[n.length-1][0],!(c!=="space"&&c!=="comment"));)f=n.pop()[1]+f;return f}spacesAndCommentsFromStart(n){let c,f="";for(;n.length&&(c=n[0][0],!(c!=="space"&&c!=="comment"));)f+=n.shift()[1];return f}spacesFromEnd(n){let c,f="";for(;n.length&&(c=n[n.length-1][0],c==="space");)f=n.pop()[1]+f;return f}stringFrom(n,c){let f="";for(let h=c;h<n.length;h++)f+=n[h][1];return n.splice(c,n.length-c),f}unclosedBlock(){let n=this.current.source.start;throw this.input.error("Unclosed block",n.line,n.column)}unclosedBracket(n){throw this.input.error("Unclosed bracket",{offset:n[2]},{offset:n[2]+1})}unexpectedClose(n){throw this.input.error("Unexpected }",{offset:n[2]},{offset:n[2]+1})}unknownWord(n){throw this.input.error("Unknown word "+n[0][1],{offset:n[0][2]},{offset:n[0][2]+n[0][1].length})}unnamedAtrule(n,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return Br=d,Br}var Ur,Zs;function Di(){if(Zs)return Ur;Zs=1;let e=Ie(),t=Lt(),r=vo();function s(i,a){let o=new t(i,a),u=new r(o);try{u.parse()}catch(d){throw d}return u.root}return Ur=s,s.default=s,e.registerParse(s),Ur}var zr,en;function bo(){if(en)return zr;en=1;class e{constructor(r,s={}){if(this.type="warning",this.text=r,s.node&&s.node.source){let i=s.node.rangeBy(s);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in s)this[i]=s[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return zr=e,e.default=e,zr}var qr,tn;function Pi(){if(tn)return qr;tn=1;let e=bo();class t{get content(){return this.css}constructor(s,i,a){this.processor=s,this.messages=[],this.root=i,this.opts=a,this.css="",this.map=void 0}toString(){return this.css}warn(s,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(s,i);return this.messages.push(a),a}warnings(){return this.messages.filter(s=>s.type==="warning")}}return qr=t,t.default=t,qr}var Wr,rn;function So(){if(rn)return Wr;rn=1;let e={};return Wr=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},Wr}var $r,sn;function Co(){if(sn)return $r;sn=1;let e=Ie(),t=Oi(),r=yo(),s=Di(),i=Pi(),a=at(),o=Tt(),{isClean:u,my:d}=Ni(),l=So();const n={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},c={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function p(E){return typeof E=="object"&&typeof E.then=="function"}function m(E){let w=!1,b=n[E.type];return E.type==="decl"?w=E.prop.toLowerCase():E.type==="atrule"&&(w=E.name.toLowerCase()),w&&E.append?[b,b+"-"+w,h,b+"Exit",b+"Exit-"+w]:w?[b,b+"-"+w,b+"Exit",b+"Exit-"+w]:E.append?[b,h,b+"Exit"]:[b,b+"Exit"]}function g(E){let w;return E.type==="document"?w=["Document",h,"DocumentExit"]:E.type==="root"?w=["Root",h,"RootExit"]:w=m(E),{eventIndex:0,events:w,iterator:0,node:E,visitorIndex:0,visitors:[]}}function v(E){return E[u]=!1,E.nodes&&E.nodes.forEach(w=>v(w)),E}let y={};class S{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(w,b,C){this.stringified=!1,this.processed=!1;let R;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))R=v(b);else if(b instanceof S||b instanceof i)R=v(b.root),b.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=b.map);else{let N=s;C.syntax&&(N=C.syntax.parse),C.parser&&(N=C.parser),N.parse&&(N=N.parse);try{R=N(b,C)}catch(x){this.processed=!0,this.error=x}R&&!R[d]&&e.rebuild(R)}this.result=new i(w,R,C),this.helpers=le(Y({},y),{postcss:y,result:this.result}),this.plugins=this.processor.plugins.map(N=>typeof N=="object"&&N.prepare?Y(Y({},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(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,b){let C=this.result.lastPlugin;try{b&&b.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=C.postcssPlugin,w.setMessage()):C.postcssVersion}catch(R){console&&console.error&&console.error(R)}return w}prepareVisitors(){this.listeners={};let w=(b,C,R)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([b,R])};for(let b of this.plugins)if(typeof b=="object")for(let C in b){if(!c[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[C])if(typeof b[C]=="object")for(let R in b[C])R==="*"?w(b,C,b[C][R]):w(b,C+"-"+R.toLowerCase(),b[C][R]);else typeof b[C]=="function"&&w(b,C,b[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let b=this.plugins[w],C=this.runOnRoot(b);if(p(C))try{await C}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[u];){w[u]=!0;let b=[g(w)];for(;b.length>0;){let C=this.visitTick(b);if(p(C))try{await C}catch(R){let N=b[b.length-1].node;throw this.handleError(R,N)}}}if(this.listeners.OnceExit)for(let[b,C]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(w.type==="document"){let R=w.nodes.map(N=>C(N,this.helpers));await Promise.all(R)}else await C(w,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(C=>w.Once(C,this.helpers));return p(b[0])?Promise.all(b):b}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,b=o;w.syntax&&(b=w.syntax.stringify),w.stringifier&&(b=w.stringifier),b.stringify&&(b=b.stringify);let R=new r(b,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let b=this.runOnRoot(w);if(p(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[u];)w[u]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let b of w.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,b){return this.async().then(w,b)}toString(){return this.css}visitSync(w,b){for(let[C,R]of w){this.result.lastPlugin=C;let N;try{N=R(b,this.helpers)}catch(x){throw this.handleError(x,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(p(N))throw this.getAsyncError()}}visitTick(w){let b=w[w.length-1],{node:C,visitors:R}=b;if(C.type!=="root"&&C.type!=="document"&&!C.parent){w.pop();return}if(R.length>0&&b.visitorIndex<R.length){let[x,I]=R[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===R.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=x;try{return I(C.toProxy(),this.helpers)}catch(T){throw this.handleError(T,C)}}if(b.iterator!==0){let x=b.iterator,I;for(;I=C.nodes[C.indexes[x]];)if(C.indexes[x]+=1,!I[u]){I[u]=!0,w.push(g(I));return}b.iterator=0,delete C.indexes[x]}let N=b.events;for(;b.eventIndex<N.length;){let x=N[b.eventIndex];if(b.eventIndex+=1,x===h){C.nodes&&C.nodes.length&&(C[u]=!0,b.iterator=C.getIterator());return}else if(this.listeners[x]){b.visitors=this.listeners[x];return}}w.pop()}walkSync(w){w[u]=!0;let b=m(w);for(let C of b)if(C===h)w.nodes&&w.each(R=>{R[u]||this.walkSync(R)});else{let R=this.listeners[C];if(R&&this.visitSync(R,w.toProxy()))return}}warnings(){return this.sync().warnings()}}return S.registerPostcss=E=>{y=E},$r=S,S.default=S,a.registerLazyResult(S),t.registerLazyResult(S),$r}var jr,nn;function Fl(){if(nn)return jr;nn=1;let e=yo(),t=Di();const r=Pi();let s=Tt(),i=So();class a{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let u,d=t;try{u=d(this._css,this._opts)}catch(l){this.error=l}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(u,d,l){d=d.toString(),this.stringified=!1,this._processor=u,this._css=d,this._opts=l,this._map=void 0;let n,c=s;this.result=new r(this._processor,n,this._opts),this.result.css=d;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let h=new e(c,n,this._opts,d);if(h.isMap()){let[p,m]=h.generate();p&&(this.result.css=p),m&&(this.result.map=m)}else h.clearAnnotation(),this.result.css=h.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,d){return this.async().then(u,d)}toString(){return this._css}warnings(){return[]}}return jr=a,a.default=a,jr}var Vr,on;function Bl(){if(on)return Vr;on=1;let e=Oi(),t=Co(),r=Fl(),s=at();class i{constructor(o=[]){this.version="8.5.6",this.plugins=this.normalize(o)}normalize(o){let u=[];for(let d of o)if(d.postcss===!0?d=d():d.postcss&&(d=d.postcss),typeof d=="object"&&Array.isArray(d.plugins))u=u.concat(d.plugins);else if(typeof d=="object"&&d.postcssPlugin)u.push(d);else if(typeof d=="function")u.push(d);else if(!(typeof d=="object"&&(d.parse||d.stringify)))throw new Error(d+" is not a PostCSS plugin");return u}process(o,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new r(this,o,u):new t(this,o,u)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return Vr=i,i.default=i,s.registerProcessor(i),e.registerProcessor(i),Vr}var Gr,an;function Eo(){if(an)return Gr;an=1;let e=_i(),t=ot(),r=Ie(),s=Mi(),i=It(),a=Oi(),o=Ll(),u=Lt(),d=Co(),l=go(),n=kt(),c=Di(),f=Bl(),h=Pi(),p=at(),m=Ai(),g=Tt(),v=bo();function y(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new f(S)}return y.plugin=function(E,w){let b=!1;function C(...N){console&&console.warn&&!b&&(b=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
|
|
56
56
|
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:
|
|
57
|
-
https://www.w3ctech.com/topic/2226`));let x=w(...N);return x.postcssPlugin=E,x.postcssVersion=new f().version,x}let R;return Object.defineProperty(C,"postcss",{get(){return R||(R=C()),R}}),C.process=function(N,x,I){return y([C(I)]).process(N,x)},C},y.stringify=g,y.parse=c,y.fromJSON=o,y.list=l,y.comment=S=>new t(S),y.atRule=S=>new e(S),y.decl=S=>new i(S),y.rule=S=>new m(S),y.root=S=>new p(S),y.document=S=>new a(S),y.CssSyntaxError=s,y.Declaration=i,y.Container=r,y.Processor=f,y.Document=a,y.Comment=t,y.Warning=v,y.AtRule=e,y.Result=h,y.Input=u,y.Rule=m,y.Root=p,y.Node=n,d.registerPostcss(y),Gr=y,y.default=y,Gr}var Hr,ln;function Ul(){if(ln)return Hr;ln=1;let e=ot(),t=vo(),r=wo();class s extends t{checkMissedSemicolon(){}comment(a){let o=new e;this.init(o,a[2]);let u=this.input.fromOffset(a[3])||this.input.fromOffset(this.input.css.length-1);o.source.end={column:u.col,line:u.line,offset:a[3]+1};let d=a[1].slice(2);if(d.slice(-2)==="*/"&&(d=d.slice(0,-2)),/^\s*$/.test(d))o.text="",o.raws.left=d,o.raws.right="";else{let l=d.match(/^(\s*)([^]*\S)(\s*)$/);o.text=l[2],o.raws.left=l[1],o.raws.right=l[3]}}createTokenizer(){this.tokenizer=r(this.input,{ignoreErrors:!0})}decl(a){a.length>1&&a.some(o=>o[0]==="word")&&super.decl(a)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(a){let o=this.colon(a);if(o===!1)return;let u,d;for(u=o-1;u>=0&&a[u][0]!=="word";u--);if(u===0||u<0)return;for(d=u-1;d>=0;d--)if(a[d][0]!=="space"){d+=1;break}let l=a.slice(u),n=a.slice(d,u);a.splice(d,a.length-d),this.spaces=n.map(c=>c[1]).join(""),this.decl(l)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(a){this.spaces+=a.map(o=>o[1]).join("")}unnamedAtrule(a){a.name=""}}return Hr=s,Hr}var Yr,un;function zl(){if(un)return Yr;un=1;let{Input:e}=Eo(),t=Ul();return Yr=function(s,i){let a=new e(s,i),o=new t(a);return o.parse(),o.root},Yr}zl();var ql=Eo();const ee=Al(ql);ee.stringify;ee.fromJSON;ee.plugin;ee.parse;ee.list;ee.document;ee.comment;ee.atRule;ee.rule;ee.decl;ee.root;ee.CssSyntaxError;ee.Declaration;ee.Container;ee.Processor;ee.Document;ee.Comment;ee.Warning;ee.AtRule;ee.Result;ee.Input;ee.Rule;ee.Root;ee.Node;var W=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(W||{});function Wl(e){const t={},r=/;(?![^(]*\))/g,s=/:(.+)/,i=/\/\*.*?\*\//g;return e.replace(i,"").split(r).forEach(function(a){if(a){const o=a.split(s);o.length>1&&(t[ni(o[0].trim())]=o[1].trim())}}),t}function cn(e){const t=[];for(const r in e){const s=e[r];if(typeof s!="string")continue;const i=Gl(r);t.push(`${i}: ${s};`)}return t.join(" ")}const $l=/-([a-z])/g,jl=/^--[a-zA-Z0-9-]+$/,ni=e=>jl.test(e)?e:e.replace($l,(t,r)=>r?r.toUpperCase():""),Vl=/\B([A-Z])/g,Gl=e=>e.replace(Vl,"-$1").toLowerCase();class ye{constructor(...t){k(this,"parentElement",null),k(this,"parentNode",null),k(this,"ownerDocument"),k(this,"firstChild",null),k(this,"lastChild",null),k(this,"previousSibling",null),k(this,"nextSibling",null),k(this,"ELEMENT_NODE",1),k(this,"TEXT_NODE",3),k(this,"nodeType"),k(this,"nodeName"),k(this,"RRNodeType")}get childNodes(){const t=[];let r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof ye){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}class Ti extends ye{constructor(...t){super(t),k(this,"nodeType",9),k(this,"nodeName","#document"),k(this,"compatMode","CSS1Compat"),k(this,"RRNodeType",W.Document),k(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(t=>t.RRNodeType===W.Element&&t.tagName==="HTML")||null}get body(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===W.Element&&r.tagName==="BODY"))||null}get head(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===W.Element&&r.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(t){const r=t.RRNodeType;if((r===W.Element||r===W.DocumentType)&&this.childNodes.some(i=>i.RRNodeType===r))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${r===W.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=ki(this,t);return s.parentElement=null,s}insertBefore(t,r){const s=t.RRNodeType;if((s===W.Element||s===W.DocumentType)&&this.childNodes.some(a=>a.RRNodeType===s))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${s===W.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const i=_o(this,t,r);return i.parentElement=null,i}removeChild(t){return Oo(this,t)}open(){this.firstChild=null,this.lastChild=null}close(){}write(t){let r;if(t==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?r="-//W3C//DTD XHTML 1.0 Transitional//EN":t==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(r="-//W3C//DTD HTML 4.0 Transitional//EN"),r){const s=this.createDocumentType("html",r,"");this.open(),this.appendChild(s)}}createDocument(t,r,s){return new Ti}createDocumentType(t,r,s){const i=new Ro(t,r,s);return i.ownerDocument=this,i}createElement(t){const r=new Ft(t);return r.ownerDocument=this,r}createElementNS(t,r){return this.createElement(r)}createTextNode(t){const r=new xo(t);return r.ownerDocument=this,r}createComment(t){const r=new Mo(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new No(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}}class Ro extends ye{constructor(t,r,s){super(),k(this,"nodeType",10),k(this,"RRNodeType",W.DocumentType),k(this,"name"),k(this,"publicId"),k(this,"systemId"),k(this,"textContent",null),this.name=t,this.publicId=r,this.systemId=s,this.nodeName=t}toString(){return"RRDocumentType"}}class Ft extends ye{constructor(t){super(),k(this,"nodeType",1),k(this,"RRNodeType",W.Element),k(this,"tagName"),k(this,"attributes",{}),k(this,"shadowRoot",null),k(this,"scrollLeft"),k(this,"scrollTop"),this.tagName=t.toUpperCase(),this.nodeName=t.toUpperCase()}get textContent(){let t="";return this.childNodes.forEach(r=>t+=r.textContent),t}set textContent(t){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(t))}get classList(){return new Jl(this.attributes.class,t=>{this.attributes.class=t})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const t=this.attributes.style?Wl(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(s,i,a)=>{if(r.test(s))return;const o=ni(s);i?t[o]=i:delete t[o],a==="important"&&(t[o]+=" !important"),this.attributes.style=cn(t)},t.removeProperty=s=>{if(r.test(s))return"";const i=ni(s),a=t[i]||"";return delete t[i],this.attributes.style=cn(t),a},t}getAttribute(t){return this.attributes[t]===void 0?null:this.attributes[t]}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,s){this.setAttribute(r,s)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return ki(this,t)}insertBefore(t,r){return _o(this,t,r)}removeChild(t){return Oo(this,t)}attachShadow(t){const r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(t){return!0}toString(){let t="";for(const r in this.attributes)t+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${t}`}}class Hl extends Ft{constructor(){super(...arguments),k(this,"currentTime"),k(this,"volume"),k(this,"paused"),k(this,"muted"),k(this,"playbackRate"),k(this,"loop")}attachShadow(t){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 Yl extends Ft{constructor(){super(...arguments),k(this,"tagName","DIALOG"),k(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 xo extends ye{constructor(t){super(),k(this,"nodeType",3),k(this,"nodeName","#text"),k(this,"RRNodeType",W.Text),k(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class Mo extends ye{constructor(t){super(),k(this,"nodeType",8),k(this,"nodeName","#comment"),k(this,"RRNodeType",W.Comment),k(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class No extends ye{constructor(t){super(),k(this,"nodeName","#cdata-section"),k(this,"nodeType",4),k(this,"RRNodeType",W.CDATA),k(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class Jl{constructor(t,r){if(k(this,"onChange"),k(this,"classes",[]),k(this,"add",(...s)=>{for(const i of s){const a=String(i);this.classes.indexOf(a)>=0||this.classes.push(a)}this.onChange&&this.onChange(this.classes.join(" "))}),k(this,"remove",(...s)=>{this.classes=this.classes.filter(i=>s.indexOf(i)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),t){const s=t.trim().split(/\s+/);this.classes.push(...s)}this.onChange=r}}function ki(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function _o(e,t,r){if(!r)return ki(e,t);if(r.parentNode!==e)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 t===r||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=r.previousSibling,r.previousSibling=t,t.nextSibling=r,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function Oo(e,t){if(t.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}var he=(e=>(e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e))(he||{});const oi={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},Xl={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 we=null;function Rt(e,t,r,s=t.mirror||t.ownerDocument.mirror){e=Ql(e,t,r,s),Ao(e,t,r,s),Kl(e,t,r)}function Ql(e,t,r,s){var i;if(r.afterAppend&&!we&&(we=new WeakSet,setTimeout(()=>{we=null},0)),!Ii(e,t)){const a=xt(t,r.mirror,s);(i=e.parentNode)==null||i.replaceChild(a,e),e=a}switch(t.RRNodeType){case W.Document:{if(!Ue(e,t,r.mirror,s)){const a=s.getMeta(t);a&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,a),we==null||we.add(e))}break}case W.Element:{const a=e,o=t;switch(o.tagName){case"IFRAME":{const u=e.contentDocument;if(!u)break;Rt(u,t.contentDocument,r,s);break}}o.shadowRoot&&(a.shadowRoot||a.attachShadow({mode:"open"}),Ao(a.shadowRoot,o.shadowRoot,r,s)),Zl(a,o,s);break}}return e}function Kl(e,t,r){var s;switch(t.RRNodeType){case W.Document:{const i=t.scrollData;i&&r.applyScroll(i,!0);break}case W.Element:{const i=e,a=t;switch(a.scrollData&&r.applyScroll(a.scrollData,!0),a.inputData&&r.applyInput(a.inputData),a.tagName){case"AUDIO":case"VIDEO":{const o=e,u=a;u.paused!==void 0&&(u.paused?o.pause():o.play()),u.muted!==void 0&&(o.muted=u.muted),u.volume!==void 0&&(o.volume=u.volume),u.currentTime!==void 0&&(o.currentTime=u.currentTime),u.playbackRate!==void 0&&(o.playbackRate=u.playbackRate),u.loop!==void 0&&(o.loop=u.loop);break}case"CANVAS":{const o=t;if(o.rr_dataURL!==null){const u=document.createElement("img");u.onload=()=>{const d=i.getContext("2d");d&&d.drawImage(u,0,0,u.width,u.height)},u.src=o.rr_dataURL}o.canvasMutations.forEach(u=>r.applyCanvas(u.event,u.mutation,e));break}case"STYLE":{const o=i.sheet;o&&t.rules.forEach(u=>r.applyStyleSheetMutation(u,o));break}case"DIALOG":{const o=i,u=a,d=o.open,l=o.matches("dialog:modal"),n=u.open,c=u.isModal,f=l!==c,h=d!==n;if((f||d&&h)&&o.close(),n&&(h||f))try{c?o.showModal():o.show()}catch(p){console.warn(p)}break}}break}case W.Text:case W.Comment:case W.CDATA:{e.textContent!==t.data&&(e.textContent=t.data);break}}we!=null&&we.has(e)&&(we.delete(e),(s=r.afterAppend)==null||s.call(r,e,r.mirror.getId(e)))}function Zl(e,t,r){const s=e.attributes,i=t.attributes;for(const a in i){const o=i[a],u=r.getMeta(t);if(u!=null&&u.isSVG&&oi[a])e.setAttributeNS(oi[a],a,o);else if(t.tagName==="CANVAS"&&a==="rr_dataURL"){const d=document.createElement("img");d.src=o,d.onload=()=>{const l=e.getContext("2d");l&&l.drawImage(d,0,0,d.width,d.height)}}else{if(t.tagName==="IFRAME"&&a==="srcdoc")continue;try{e.setAttribute(a,o)}catch(d){console.warn(d)}}}for(const{name:a}of Array.from(s))a in i||e.removeAttribute(a);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function Ao(e,t,r,s){const i=Array.from(e.childNodes),a=t.childNodes;if(i.length===0&&a.length===0)return;let o=0,u=i.length-1,d=0,l=a.length-1,n=i[o],c=i[u],f=a[d],h=a[l],p,m;for(;o<=u&&d<=l;)if(n===void 0)n=i[++o];else if(c===void 0)c=i[--u];else if(Ue(n,f,r.mirror,s))n=i[++o],f=a[++d];else if(Ue(c,h,r.mirror,s))c=i[--u],h=a[--l];else if(Ue(n,h,r.mirror,s)){try{e.insertBefore(n,c.nextSibling)}catch(y){console.warn(y)}n=i[++o],h=a[--l]}else if(Ue(c,f,r.mirror,s)){try{e.insertBefore(c,n)}catch(y){console.warn(y)}c=i[--u],f=a[++d]}else{if(!p){p={};for(let S=o;S<=u;S++){const E=i[S];E&&r.mirror.hasNode(E)&&(p[r.mirror.getId(E)]=S)}}m=p[s.getId(f)];const y=i[m];if(m!==void 0&&y&&Ue(y,f,r.mirror,s)){try{e.insertBefore(y,n)}catch(S){console.warn(S)}i[m]=void 0}else{const S=xt(f,r.mirror,s);e.nodeName==="#document"&&n&&(S.nodeType===S.DOCUMENT_TYPE_NODE&&n.nodeType===n.DOCUMENT_TYPE_NODE||S.nodeType===S.ELEMENT_NODE&&n.nodeType===n.ELEMENT_NODE)&&(e.removeChild(n),r.mirror.removeNodeFromMap(n),n=i[++o]);try{e.insertBefore(S,n||null)}catch(E){console.warn(E)}}f=a[++d]}if(o>u){const y=a[l+1];let S=null;for(y&&(S=r.mirror.getNode(s.getId(y)));d<=l;++d){const E=xt(a[d],r.mirror,s);try{e.insertBefore(E,S)}catch(w){console.warn(w)}}}else if(d>l)for(;o<=u;o++){const y=i[o];if(!(!y||y.parentNode!==e))try{e.removeChild(y),r.mirror.removeNodeFromMap(y)}catch(S){console.warn(S)}}let g=e.firstChild,v=t.firstChild;for(;g!==null&&v!==null;)Rt(g,v,r,s),g=g.nextSibling,v=v.nextSibling}function xt(e,t,r){const s=r.getId(e),i=r.getMeta(e);let a=null;if(s>-1&&(a=t.getNode(s)),a!==null&&Ii(a,e))return a;switch(e.RRNodeType){case W.Document:a=new Document;break;case W.DocumentType:a=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case W.Element:{let o=e.tagName.toLowerCase();o=Xl[o]||o,i&&"isSVG"in i&&(i!=null&&i.isSVG)?a=document.createElementNS(oi.svg,o):a=document.createElement(e.tagName);break}case W.Text:a=document.createTextNode(e.data);break;case W.Comment:a=document.createComment(e.data);break;case W.CDATA:a=document.createCDATASection(e.data);break}i&&t.add(a,Q({},i));try{we==null||we.add(a)}catch(o){}return a}function Ii(e,t){return e.nodeType!==t.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName}function Ue(e,t,r,s){const i=r.getId(e),a=s.getId(t);return i===-1||i!==a?!1:Ii(e,t)}class Ye extends Ti{constructor(t){super(),k(this,"UNSERIALIZED_STARTING_ID",-2),k(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),k(this,"mirror",hu()),k(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,s){return new Ye}createDocumentType(t,r,s){const i=new eu(t,r,s);return i.ownerDocument=this,i}createElement(t){const r=t.toUpperCase();let s;switch(r){case"AUDIO":case"VIDEO":s=new tu(r);break;case"IFRAME":s=new nu(r,this.mirror);break;case"CANVAS":s=new iu(r);break;case"STYLE":s=new su(r);break;case"DIALOG":s=new ru(r);break;default:s=new Bt(r);break}return s.ownerDocument=this,s}createComment(t){const r=new au(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new lu(t);return r.ownerDocument=this,r}createTextNode(t){const r=new ou(t);return r.ownerDocument=this,r}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}const eu=Ro;class Bt extends Ft{constructor(){super(...arguments),k(this,"inputData",null),k(this,"scrollData",null)}}class tu extends Hl{}class ru extends Yl{}class iu extends Bt{constructor(){super(...arguments),k(this,"rr_dataURL",null),k(this,"canvasMutations",[])}getContext(){return null}}class su extends Bt{constructor(){super(...arguments),k(this,"rules",[])}}class nu extends Bt{constructor(t,r){super(t),k(this,"contentDocument",new Ye),this.contentDocument.mirror=r}}const ou=xo,au=Mo,lu=No;function uu(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function Do(e,t,r,s){let i;switch(e.nodeType){case he.DOCUMENT_NODE:s&&s.nodeName==="IFRAME"?i=s.contentDocument:(i=t,i.compatMode=e.compatMode);break;case he.DOCUMENT_TYPE_NODE:{const o=e;i=t.createDocumentType(o.name,o.publicId,o.systemId);break}case he.ELEMENT_NODE:{const o=e,u=uu(o);i=t.createElement(u);const d=i;for(const{name:l,value:n}of Array.from(o.attributes))d.attributes[l]=n;o.scrollLeft&&(d.scrollLeft=o.scrollLeft),o.scrollTop&&(d.scrollTop=o.scrollTop);break}case he.TEXT_NODE:i=t.createTextNode(e.textContent||"");break;case he.CDATA_SECTION_NODE:i=t.createCDATASection(e.data);break;case he.COMMENT_NODE:i=t.createComment(e.textContent||"");break;case he.DOCUMENT_FRAGMENT_NODE:i=s.attachShadow({mode:"open"});break;default:return null}let a=r.getMeta(e);return t instanceof Ye&&(a||(a=Po(i,t.unserializedId),r.add(e,a)),t.mirror.add(i,Q({},a))),i}function cu(e,t=Ol(),r=new Ye){function s(i,a){const o=Do(i,r,t,a);if(o!==null)if((a==null?void 0:a.nodeName)!=="IFRAME"&&i.nodeType!==he.DOCUMENT_FRAGMENT_NODE&&(a==null||a.appendChild(o),o.parentNode=a,o.parentElement=a),i.nodeName==="IFRAME"){const u=i.contentDocument;u&&s(u,o)}else(i.nodeType===he.DOCUMENT_NODE||i.nodeType===he.ELEMENT_NODE||i.nodeType===he.DOCUMENT_FRAGMENT_NODE)&&(i.nodeType===he.ELEMENT_NODE&&i.shadowRoot&&s(i.shadowRoot,o),i.childNodes.forEach(u=>s(u,o)))}return s(e,null),r}function hu(){return new fu}class fu{constructor(){k(this,"idNodeMap",new Map),k(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const s=(r=this.getMeta(t))==null?void 0:r.id;return s!=null?s:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const s=r.id;this.idNodeMap.set(s,t),this.nodeMetaMap.set(t,r)}replace(t,r){const s=this.getNode(t);if(s){const i=this.nodeMetaMap.get(s);i&&this.nodeMetaMap.set(r,i)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Po(e,t){switch(e.RRNodeType){case W.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case W.DocumentType:{const r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId}}case W.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case W.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case W.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case W.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}const hn={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},fn={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},gt={};function du(e){var t,r;const s=(r=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(s&&globalThis[s])return globalThis[s]}function Li(e){if(gt[e])return gt[e];const t=du(e)||globalThis[e],r=t.prototype,s=e in hn?hn[e]:void 0,i=!!(s&&s.every(u=>{var d,l;return!!((l=(d=Object.getOwnPropertyDescriptor(r,u))==null?void 0:d.get)!=null&&l.toString().includes("[native code]"))})),a=e in fn?fn[e]:void 0,o=!!(a&&a.every(u=>{var d;return typeof r[u]=="function"&&((d=r[u])==null?void 0:d.toString().includes("[native code]"))}));if(i&&o)return gt[e]=t.prototype,t.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const d=u.contentWindow;if(!d)return t.prototype;const l=d[e].prototype;return document.body.removeChild(u),l?gt[e]=l:r}catch(u){return r}}const Jr={};function Oe(e,t,r){var s;const i=`${e}.${String(r)}`;if(Jr[i])return Jr[i].call(t);const a=Li(e),o=(s=Object.getOwnPropertyDescriptor(a,r))==null?void 0:s.get;return o?(Jr[i]=o,o.call(t)):t[r]}const Xr={};function To(e,t,r){const s=`${e}.${String(r)}`;if(Xr[s])return Xr[s].bind(t);const a=Li(e)[r];return typeof a!="function"?t[r]:(Xr[s]=a,a.bind(t))}function pu(e){return Oe("Node",e,"childNodes")}function mu(e){return Oe("Node",e,"parentNode")}function gu(e){return Oe("Node",e,"parentElement")}function yu(e){return Oe("Node",e,"textContent")}function wu(e,t){return To("Node",e,"contains")(t)}function vu(e){return To("Node",e,"getRootNode")()}function bu(e){return!e||!("host"in e)?null:Oe("ShadowRoot",e,"host")}function Su(e){return e.styleSheets}function Cu(e){return!e||!("shadowRoot"in e)?null:Oe("Element",e,"shadowRoot")}function Eu(e,t){return Oe("Element",e,"querySelector")(t)}function Ru(e,t){return Oe("Element",e,"querySelectorAll")(t)}function xu(){return Li("MutationObserver").constructor}function Mu(e,t,r){try{if(!(t in e))return()=>{};const s=e[t],i=r(s);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=i,()=>{e[t]=s}}catch(s){return()=>{}}}const Nu={childNodes:pu,parentNode:mu,parentElement:gu,textContent:yu,contains:wu,getRootNode:vu,host:bu,styleSheets:Su,shadowRoot:Cu,querySelector:Eu,querySelectorAll:Ru,mutationObserver:xu,patch:Mu},ze=`Please stop import mirror directly. Instead of that,\r
|
|
57
|
+
https://www.w3ctech.com/topic/2226`));let x=w(...N);return x.postcssPlugin=E,x.postcssVersion=new f().version,x}let R;return Object.defineProperty(C,"postcss",{get(){return R||(R=C()),R}}),C.process=function(N,x,I){return y([C(I)]).process(N,x)},C},y.stringify=g,y.parse=c,y.fromJSON=o,y.list=l,y.comment=S=>new t(S),y.atRule=S=>new e(S),y.decl=S=>new i(S),y.rule=S=>new m(S),y.root=S=>new p(S),y.document=S=>new a(S),y.CssSyntaxError=s,y.Declaration=i,y.Container=r,y.Processor=f,y.Document=a,y.Comment=t,y.Warning=v,y.AtRule=e,y.Result=h,y.Input=u,y.Rule=m,y.Root=p,y.Node=n,d.registerPostcss(y),Gr=y,y.default=y,Gr}var Hr,ln;function Ul(){if(ln)return Hr;ln=1;let e=ot(),t=vo(),r=wo();class s extends t{checkMissedSemicolon(){}comment(a){let o=new e;this.init(o,a[2]);let u=this.input.fromOffset(a[3])||this.input.fromOffset(this.input.css.length-1);o.source.end={column:u.col,line:u.line,offset:a[3]+1};let d=a[1].slice(2);if(d.slice(-2)==="*/"&&(d=d.slice(0,-2)),/^\s*$/.test(d))o.text="",o.raws.left=d,o.raws.right="";else{let l=d.match(/^(\s*)([^]*\S)(\s*)$/);o.text=l[2],o.raws.left=l[1],o.raws.right=l[3]}}createTokenizer(){this.tokenizer=r(this.input,{ignoreErrors:!0})}decl(a){a.length>1&&a.some(o=>o[0]==="word")&&super.decl(a)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(a){let o=this.colon(a);if(o===!1)return;let u,d;for(u=o-1;u>=0&&a[u][0]!=="word";u--);if(u===0||u<0)return;for(d=u-1;d>=0;d--)if(a[d][0]!=="space"){d+=1;break}let l=a.slice(u),n=a.slice(d,u);a.splice(d,a.length-d),this.spaces=n.map(c=>c[1]).join(""),this.decl(l)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(a){this.spaces+=a.map(o=>o[1]).join("")}unnamedAtrule(a){a.name=""}}return Hr=s,Hr}var Yr,un;function zl(){if(un)return Yr;un=1;let{Input:e}=Eo(),t=Ul();return Yr=function(s,i){let a=new e(s,i),o=new t(a);return o.parse(),o.root},Yr}zl();var ql=Eo();const ee=Al(ql);ee.stringify;ee.fromJSON;ee.plugin;ee.parse;ee.list;ee.document;ee.comment;ee.atRule;ee.rule;ee.decl;ee.root;ee.CssSyntaxError;ee.Declaration;ee.Container;ee.Processor;ee.Document;ee.Comment;ee.Warning;ee.AtRule;ee.Result;ee.Input;ee.Rule;ee.Root;ee.Node;var W=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(W||{});function Wl(e){const t={},r=/;(?![^(]*\))/g,s=/:(.+)/,i=/\/\*.*?\*\//g;return e.replace(i,"").split(r).forEach(function(a){if(a){const o=a.split(s);o.length>1&&(t[ni(o[0].trim())]=o[1].trim())}}),t}function cn(e){const t=[];for(const r in e){const s=e[r];if(typeof s!="string")continue;const i=Gl(r);t.push(`${i}: ${s};`)}return t.join(" ")}const $l=/-([a-z])/g,jl=/^--[a-zA-Z0-9-]+$/,ni=e=>jl.test(e)?e:e.replace($l,(t,r)=>r?r.toUpperCase():""),Vl=/\B([A-Z])/g,Gl=e=>e.replace(Vl,"-$1").toLowerCase();class ye{constructor(...t){k(this,"parentElement",null),k(this,"parentNode",null),k(this,"ownerDocument"),k(this,"firstChild",null),k(this,"lastChild",null),k(this,"previousSibling",null),k(this,"nextSibling",null),k(this,"ELEMENT_NODE",1),k(this,"TEXT_NODE",3),k(this,"nodeType"),k(this,"nodeName"),k(this,"RRNodeType")}get childNodes(){const t=[];let r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof ye){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}class Ti extends ye{constructor(...t){super(t),k(this,"nodeType",9),k(this,"nodeName","#document"),k(this,"compatMode","CSS1Compat"),k(this,"RRNodeType",W.Document),k(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(t=>t.RRNodeType===W.Element&&t.tagName==="HTML")||null}get body(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===W.Element&&r.tagName==="BODY"))||null}get head(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===W.Element&&r.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(t){const r=t.RRNodeType;if((r===W.Element||r===W.DocumentType)&&this.childNodes.some(i=>i.RRNodeType===r))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${r===W.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=ki(this,t);return s.parentElement=null,s}insertBefore(t,r){const s=t.RRNodeType;if((s===W.Element||s===W.DocumentType)&&this.childNodes.some(a=>a.RRNodeType===s))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${s===W.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const i=_o(this,t,r);return i.parentElement=null,i}removeChild(t){return Oo(this,t)}open(){this.firstChild=null,this.lastChild=null}close(){}write(t){let r;if(t==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?r="-//W3C//DTD XHTML 1.0 Transitional//EN":t==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(r="-//W3C//DTD HTML 4.0 Transitional//EN"),r){const s=this.createDocumentType("html",r,"");this.open(),this.appendChild(s)}}createDocument(t,r,s){return new Ti}createDocumentType(t,r,s){const i=new Ro(t,r,s);return i.ownerDocument=this,i}createElement(t){const r=new Ft(t);return r.ownerDocument=this,r}createElementNS(t,r){return this.createElement(r)}createTextNode(t){const r=new xo(t);return r.ownerDocument=this,r}createComment(t){const r=new Mo(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new No(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}}class Ro extends ye{constructor(t,r,s){super(),k(this,"nodeType",10),k(this,"RRNodeType",W.DocumentType),k(this,"name"),k(this,"publicId"),k(this,"systemId"),k(this,"textContent",null),this.name=t,this.publicId=r,this.systemId=s,this.nodeName=t}toString(){return"RRDocumentType"}}class Ft extends ye{constructor(t){super(),k(this,"nodeType",1),k(this,"RRNodeType",W.Element),k(this,"tagName"),k(this,"attributes",{}),k(this,"shadowRoot",null),k(this,"scrollLeft"),k(this,"scrollTop"),this.tagName=t.toUpperCase(),this.nodeName=t.toUpperCase()}get textContent(){let t="";return this.childNodes.forEach(r=>t+=r.textContent),t}set textContent(t){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(t))}get classList(){return new Jl(this.attributes.class,t=>{this.attributes.class=t})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const t=this.attributes.style?Wl(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(s,i,a)=>{if(r.test(s))return;const o=ni(s);i?t[o]=i:delete t[o],a==="important"&&(t[o]+=" !important"),this.attributes.style=cn(t)},t.removeProperty=s=>{if(r.test(s))return"";const i=ni(s),a=t[i]||"";return delete t[i],this.attributes.style=cn(t),a},t}getAttribute(t){return this.attributes[t]===void 0?null:this.attributes[t]}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,s){this.setAttribute(r,s)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return ki(this,t)}insertBefore(t,r){return _o(this,t,r)}removeChild(t){return Oo(this,t)}attachShadow(t){const r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(t){return!0}toString(){let t="";for(const r in this.attributes)t+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${t}`}}class Hl extends Ft{constructor(){super(...arguments),k(this,"currentTime"),k(this,"volume"),k(this,"paused"),k(this,"muted"),k(this,"playbackRate"),k(this,"loop")}attachShadow(t){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 Yl extends Ft{constructor(){super(...arguments),k(this,"tagName","DIALOG"),k(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 xo extends ye{constructor(t){super(),k(this,"nodeType",3),k(this,"nodeName","#text"),k(this,"RRNodeType",W.Text),k(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class Mo extends ye{constructor(t){super(),k(this,"nodeType",8),k(this,"nodeName","#comment"),k(this,"RRNodeType",W.Comment),k(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class No extends ye{constructor(t){super(),k(this,"nodeName","#cdata-section"),k(this,"nodeType",4),k(this,"RRNodeType",W.CDATA),k(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class Jl{constructor(t,r){if(k(this,"onChange"),k(this,"classes",[]),k(this,"add",(...s)=>{for(const i of s){const a=String(i);this.classes.indexOf(a)>=0||this.classes.push(a)}this.onChange&&this.onChange(this.classes.join(" "))}),k(this,"remove",(...s)=>{this.classes=this.classes.filter(i=>s.indexOf(i)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),t){const s=t.trim().split(/\s+/);this.classes.push(...s)}this.onChange=r}}function ki(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function _o(e,t,r){if(!r)return ki(e,t);if(r.parentNode!==e)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 t===r||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=r.previousSibling,r.previousSibling=t,t.nextSibling=r,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function Oo(e,t){if(t.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}var he=(e=>(e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e))(he||{});const oi={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},Xl={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 we=null;function Rt(e,t,r,s=t.mirror||t.ownerDocument.mirror){e=Ql(e,t,r,s),Ao(e,t,r,s),Kl(e,t,r)}function Ql(e,t,r,s){var i;if(r.afterAppend&&!we&&(we=new WeakSet,setTimeout(()=>{we=null},0)),!Ii(e,t)){const a=xt(t,r.mirror,s);(i=e.parentNode)==null||i.replaceChild(a,e),e=a}switch(t.RRNodeType){case W.Document:{if(!Ue(e,t,r.mirror,s)){const a=s.getMeta(t);a&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,a),we==null||we.add(e))}break}case W.Element:{const a=e,o=t;switch(o.tagName){case"IFRAME":{const u=e.contentDocument;if(!u)break;Rt(u,t.contentDocument,r,s);break}}o.shadowRoot&&(a.shadowRoot||a.attachShadow({mode:"open"}),Ao(a.shadowRoot,o.shadowRoot,r,s)),Zl(a,o,s);break}}return e}function Kl(e,t,r){var s;switch(t.RRNodeType){case W.Document:{const i=t.scrollData;i&&r.applyScroll(i,!0);break}case W.Element:{const i=e,a=t;switch(a.scrollData&&r.applyScroll(a.scrollData,!0),a.inputData&&r.applyInput(a.inputData),a.tagName){case"AUDIO":case"VIDEO":{const o=e,u=a;u.paused!==void 0&&(u.paused?o.pause():o.play()),u.muted!==void 0&&(o.muted=u.muted),u.volume!==void 0&&(o.volume=u.volume),u.currentTime!==void 0&&(o.currentTime=u.currentTime),u.playbackRate!==void 0&&(o.playbackRate=u.playbackRate),u.loop!==void 0&&(o.loop=u.loop);break}case"CANVAS":{const o=t;if(o.rr_dataURL!==null){const u=document.createElement("img");u.onload=()=>{const d=i.getContext("2d");d&&d.drawImage(u,0,0,u.width,u.height)},u.src=o.rr_dataURL}o.canvasMutations.forEach(u=>r.applyCanvas(u.event,u.mutation,e));break}case"STYLE":{const o=i.sheet;o&&t.rules.forEach(u=>r.applyStyleSheetMutation(u,o));break}case"DIALOG":{const o=i,u=a,d=o.open,l=o.matches("dialog:modal"),n=u.open,c=u.isModal,f=l!==c,h=d!==n;if((f||d&&h)&&o.close(),n&&(h||f))try{c?o.showModal():o.show()}catch(p){console.warn(p)}break}}break}case W.Text:case W.Comment:case W.CDATA:{e.textContent!==t.data&&(e.textContent=t.data);break}}we!=null&&we.has(e)&&(we.delete(e),(s=r.afterAppend)==null||s.call(r,e,r.mirror.getId(e)))}function Zl(e,t,r){const s=e.attributes,i=t.attributes;for(const a in i){const o=i[a],u=r.getMeta(t);if(u!=null&&u.isSVG&&oi[a])e.setAttributeNS(oi[a],a,o);else if(t.tagName==="CANVAS"&&a==="rr_dataURL"){const d=document.createElement("img");d.src=o,d.onload=()=>{const l=e.getContext("2d");l&&l.drawImage(d,0,0,d.width,d.height)}}else{if(t.tagName==="IFRAME"&&a==="srcdoc")continue;try{e.setAttribute(a,o)}catch(d){console.warn(d)}}}for(const{name:a}of Array.from(s))a in i||e.removeAttribute(a);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function Ao(e,t,r,s){const i=Array.from(e.childNodes),a=t.childNodes;if(i.length===0&&a.length===0)return;let o=0,u=i.length-1,d=0,l=a.length-1,n=i[o],c=i[u],f=a[d],h=a[l],p,m;for(;o<=u&&d<=l;)if(n===void 0)n=i[++o];else if(c===void 0)c=i[--u];else if(Ue(n,f,r.mirror,s))n=i[++o],f=a[++d];else if(Ue(c,h,r.mirror,s))c=i[--u],h=a[--l];else if(Ue(n,h,r.mirror,s)){try{e.insertBefore(n,c.nextSibling)}catch(y){console.warn(y)}n=i[++o],h=a[--l]}else if(Ue(c,f,r.mirror,s)){try{e.insertBefore(c,n)}catch(y){console.warn(y)}c=i[--u],f=a[++d]}else{if(!p){p={};for(let S=o;S<=u;S++){const E=i[S];E&&r.mirror.hasNode(E)&&(p[r.mirror.getId(E)]=S)}}m=p[s.getId(f)];const y=i[m];if(m!==void 0&&y&&Ue(y,f,r.mirror,s)){try{e.insertBefore(y,n)}catch(S){console.warn(S)}i[m]=void 0}else{const S=xt(f,r.mirror,s);e.nodeName==="#document"&&n&&(S.nodeType===S.DOCUMENT_TYPE_NODE&&n.nodeType===n.DOCUMENT_TYPE_NODE||S.nodeType===S.ELEMENT_NODE&&n.nodeType===n.ELEMENT_NODE)&&(e.removeChild(n),r.mirror.removeNodeFromMap(n),n=i[++o]);try{e.insertBefore(S,n||null)}catch(E){console.warn(E)}}f=a[++d]}if(o>u){const y=a[l+1];let S=null;for(y&&(S=r.mirror.getNode(s.getId(y)));d<=l;++d){const E=xt(a[d],r.mirror,s);try{e.insertBefore(E,S)}catch(w){console.warn(w)}}}else if(d>l)for(;o<=u;o++){const y=i[o];if(!(!y||y.parentNode!==e))try{e.removeChild(y),r.mirror.removeNodeFromMap(y)}catch(S){console.warn(S)}}let g=e.firstChild,v=t.firstChild;for(;g!==null&&v!==null;)Rt(g,v,r,s),g=g.nextSibling,v=v.nextSibling}function xt(e,t,r){const s=r.getId(e),i=r.getMeta(e);let a=null;if(s>-1&&(a=t.getNode(s)),a!==null&&Ii(a,e))return a;switch(e.RRNodeType){case W.Document:a=new Document;break;case W.DocumentType:a=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case W.Element:{let o=e.tagName.toLowerCase();o=Xl[o]||o,i&&"isSVG"in i&&(i!=null&&i.isSVG)?a=document.createElementNS(oi.svg,o):a=document.createElement(e.tagName);break}case W.Text:a=document.createTextNode(e.data);break;case W.Comment:a=document.createComment(e.data);break;case W.CDATA:a=document.createCDATASection(e.data);break}i&&t.add(a,Y({},i));try{we==null||we.add(a)}catch(o){}return a}function Ii(e,t){return e.nodeType!==t.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName}function Ue(e,t,r,s){const i=r.getId(e),a=s.getId(t);return i===-1||i!==a?!1:Ii(e,t)}class Ye extends Ti{constructor(t){super(),k(this,"UNSERIALIZED_STARTING_ID",-2),k(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),k(this,"mirror",hu()),k(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,s){return new Ye}createDocumentType(t,r,s){const i=new eu(t,r,s);return i.ownerDocument=this,i}createElement(t){const r=t.toUpperCase();let s;switch(r){case"AUDIO":case"VIDEO":s=new tu(r);break;case"IFRAME":s=new nu(r,this.mirror);break;case"CANVAS":s=new iu(r);break;case"STYLE":s=new su(r);break;case"DIALOG":s=new ru(r);break;default:s=new Bt(r);break}return s.ownerDocument=this,s}createComment(t){const r=new au(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new lu(t);return r.ownerDocument=this,r}createTextNode(t){const r=new ou(t);return r.ownerDocument=this,r}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}const eu=Ro;class Bt extends Ft{constructor(){super(...arguments),k(this,"inputData",null),k(this,"scrollData",null)}}class tu extends Hl{}class ru extends Yl{}class iu extends Bt{constructor(){super(...arguments),k(this,"rr_dataURL",null),k(this,"canvasMutations",[])}getContext(){return null}}class su extends Bt{constructor(){super(...arguments),k(this,"rules",[])}}class nu extends Bt{constructor(t,r){super(t),k(this,"contentDocument",new Ye),this.contentDocument.mirror=r}}const ou=xo,au=Mo,lu=No;function uu(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function Do(e,t,r,s){let i;switch(e.nodeType){case he.DOCUMENT_NODE:s&&s.nodeName==="IFRAME"?i=s.contentDocument:(i=t,i.compatMode=e.compatMode);break;case he.DOCUMENT_TYPE_NODE:{const o=e;i=t.createDocumentType(o.name,o.publicId,o.systemId);break}case he.ELEMENT_NODE:{const o=e,u=uu(o);i=t.createElement(u);const d=i;for(const{name:l,value:n}of Array.from(o.attributes))d.attributes[l]=n;o.scrollLeft&&(d.scrollLeft=o.scrollLeft),o.scrollTop&&(d.scrollTop=o.scrollTop);break}case he.TEXT_NODE:i=t.createTextNode(e.textContent||"");break;case he.CDATA_SECTION_NODE:i=t.createCDATASection(e.data);break;case he.COMMENT_NODE:i=t.createComment(e.textContent||"");break;case he.DOCUMENT_FRAGMENT_NODE:i=s.attachShadow({mode:"open"});break;default:return null}let a=r.getMeta(e);return t instanceof Ye&&(a||(a=Po(i,t.unserializedId),r.add(e,a)),t.mirror.add(i,Y({},a))),i}function cu(e,t=Ol(),r=new Ye){function s(i,a){const o=Do(i,r,t,a);if(o!==null)if((a==null?void 0:a.nodeName)!=="IFRAME"&&i.nodeType!==he.DOCUMENT_FRAGMENT_NODE&&(a==null||a.appendChild(o),o.parentNode=a,o.parentElement=a),i.nodeName==="IFRAME"){const u=i.contentDocument;u&&s(u,o)}else(i.nodeType===he.DOCUMENT_NODE||i.nodeType===he.ELEMENT_NODE||i.nodeType===he.DOCUMENT_FRAGMENT_NODE)&&(i.nodeType===he.ELEMENT_NODE&&i.shadowRoot&&s(i.shadowRoot,o),i.childNodes.forEach(u=>s(u,o)))}return s(e,null),r}function hu(){return new fu}class fu{constructor(){k(this,"idNodeMap",new Map),k(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const s=(r=this.getMeta(t))==null?void 0:r.id;return s!=null?s:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const s=r.id;this.idNodeMap.set(s,t),this.nodeMetaMap.set(t,r)}replace(t,r){const s=this.getNode(t);if(s){const i=this.nodeMetaMap.get(s);i&&this.nodeMetaMap.set(r,i)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Po(e,t){switch(e.RRNodeType){case W.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case W.DocumentType:{const r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId}}case W.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case W.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case W.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case W.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}const hn={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},fn={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},gt={};function du(e){var t,r;const s=(r=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(s&&globalThis[s])return globalThis[s]}function Li(e){if(gt[e])return gt[e];const t=du(e)||globalThis[e],r=t.prototype,s=e in hn?hn[e]:void 0,i=!!(s&&s.every(u=>{var d,l;return!!((l=(d=Object.getOwnPropertyDescriptor(r,u))==null?void 0:d.get)!=null&&l.toString().includes("[native code]"))})),a=e in fn?fn[e]:void 0,o=!!(a&&a.every(u=>{var d;return typeof r[u]=="function"&&((d=r[u])==null?void 0:d.toString().includes("[native code]"))}));if(i&&o)return gt[e]=t.prototype,t.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const d=u.contentWindow;if(!d)return t.prototype;const l=d[e].prototype;return document.body.removeChild(u),l?gt[e]=l:r}catch(u){return r}}const Jr={};function Oe(e,t,r){var s;const i=`${e}.${String(r)}`;if(Jr[i])return Jr[i].call(t);const a=Li(e),o=(s=Object.getOwnPropertyDescriptor(a,r))==null?void 0:s.get;return o?(Jr[i]=o,o.call(t)):t[r]}const Xr={};function To(e,t,r){const s=`${e}.${String(r)}`;if(Xr[s])return Xr[s].bind(t);const a=Li(e)[r];return typeof a!="function"?t[r]:(Xr[s]=a,a.bind(t))}function pu(e){return Oe("Node",e,"childNodes")}function mu(e){return Oe("Node",e,"parentNode")}function gu(e){return Oe("Node",e,"parentElement")}function yu(e){return Oe("Node",e,"textContent")}function wu(e,t){return To("Node",e,"contains")(t)}function vu(e){return To("Node",e,"getRootNode")()}function bu(e){return!e||!("host"in e)?null:Oe("ShadowRoot",e,"host")}function Su(e){return e.styleSheets}function Cu(e){return!e||!("shadowRoot"in e)?null:Oe("Element",e,"shadowRoot")}function Eu(e,t){return Oe("Element",e,"querySelector")(t)}function Ru(e,t){return Oe("Element",e,"querySelectorAll")(t)}function xu(){return Li("MutationObserver").constructor}function Mu(e,t,r){try{if(!(t in e))return()=>{};const s=e[t],i=r(s);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=i,()=>{e[t]=s}}catch(s){return()=>{}}}const Nu={childNodes:pu,parentNode:mu,parentElement:gu,textContent:yu,contains:wu,getRootNode:vu,host:bu,styleSheets:Su,shadowRoot:Cu,querySelector:Eu,querySelectorAll:Ru,mutationObserver:xu,patch:Mu},ze=`Please stop import mirror directly. Instead of that,\r
|
|
58
58
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
59
|
-
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(e,t,r){return t==="map"&&console.error(ze),Reflect.get(e,t,r)}}));Date.now().toString();function _u(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Ou(e){const t={},r=(i,a)=>{const o={value:i,parent:a,children:[]};return t[i.node.id]=o,o},s=[];for(const i of e){const{nextId:a,parentId:o}=i;if(a&&a in t){const u=t[a];if(u.parent){const d=u.parent.children.indexOf(u);u.parent.children.splice(d,0,r(i,u.parent))}else{const d=s.indexOf(u);s.splice(d,0,r(i,null))}continue}if(o in t){const u=t[o];u.children.push(r(i,u));continue}s.push(r(i,null))}return s}function ko(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)ko(e.children[r],t)}function Qr(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Io(e,t){var r,s;const i=(s=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:s.frameElement;if(!i||i===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const a=i.getBoundingClientRect(),o=Io(i,t),u=a.height/i.clientHeight;return{x:a.x*o.relativeScale+o.x,y:a.y*o.relativeScale+o.y,relativeScale:u,absoluteScale:o.absoluteScale*u}}function yt(e){return e?e instanceof ye&&"shadowRoot"in e?!!e.shadowRoot:!!Nu.shadowRoot(e):!1}function Qe(e,t){const r=e[t[0]];return t.length===1?r:Qe(r.cssRules
|
|
59
|
+
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(e,t,r){return t==="map"&&console.error(ze),Reflect.get(e,t,r)}}));Date.now().toString();function _u(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Ou(e){const t={},r=(i,a)=>{const o={value:i,parent:a,children:[]};return t[i.node.id]=o,o},s=[];for(const i of e){const{nextId:a,parentId:o}=i;if(a&&a in t){const u=t[a];if(u.parent){const d=u.parent.children.indexOf(u);u.parent.children.splice(d,0,r(i,u.parent))}else{const d=s.indexOf(u);s.splice(d,0,r(i,null))}continue}if(o in t){const u=t[o];u.children.push(r(i,u));continue}s.push(r(i,null))}return s}function ko(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)ko(e.children[r],t)}function Qr(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Io(e,t){var r,s;const i=(s=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:s.frameElement;if(!i||i===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const a=i.getBoundingClientRect(),o=Io(i,t),u=a.height/i.clientHeight;return{x:a.x*o.relativeScale+o.x,y:a.y*o.relativeScale+o.y,relativeScale:u,absoluteScale:o.absoluteScale*u}}function yt(e){return e?e instanceof ye&&"shadowRoot"in e?!!e.shadowRoot:!!Nu.shadowRoot(e):!1}function Qe(e,t){const r=e==null?void 0:e[t[0]];return r?t.length===1?r:Qe(r.cssRules,t.slice(1)):null}function pn(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function Au(e){const t=new Set,r=[];for(let s=e.length;s--;){const i=e[s];t.has(i.id)||(r.push(i),t.add(i.id))}return r}class Du{constructor(){F(this,"id",1),F(this,"styleIDMap",new WeakMap),F(this,"idStyleMap",new Map)}getId(t){var r;return(r=this.styleIDMap.get(t))!=null?r:-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let s;return r===void 0?s=this.id++:s=r,this.styleIDMap.set(t,s),this.idStyleMap.set(s,t),s}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}var te=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(te||{}),J=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(J||{}),ne=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ne||{}),Mt=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Mt||{}),ai=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(ai||{}),V=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(V||{}),Re=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Re||{}),mn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ke=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var wt=0;wt<mn.length;wt++)Ke[mn.charCodeAt(wt)]=wt;var Pu=function(e){var t=e.length*.75,r=e.length,s,i=0,a,o,u,d;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var l=new ArrayBuffer(t),n=new Uint8Array(l);for(s=0;s<r;s+=4)a=Ke[e.charCodeAt(s)],o=Ke[e.charCodeAt(s+1)],u=Ke[e.charCodeAt(s+2)],d=Ke[e.charCodeAt(s+3)],n[i++]=a<<2|o>>4,n[i++]=(o&15)<<4|u>>2,n[i++]=(u&3)<<6|d&63;return l};const Tu=`(function() {
|
|
60
60
|
"use strict";
|
|
61
61
|
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
62
62
|
var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
|
|
@@ -148,7 +148,7 @@ or you can use record.mirror to access the mirror instance during recording.`;le
|
|
|
148
148
|
};
|
|
149
149
|
})();
|
|
150
150
|
//# sourceMappingURL=image-bitmap-data-url-worker-B8-18rdG.js.map
|
|
151
|
-
`;typeof self!="undefined"&&self.Blob&&new Blob([Tu],{type:"text/javascript;charset=utf-8"});try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Vi=e.contentWindow)==null?void 0:Vi.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}Zn();function Lo(e){return{all:e=e||new Map,on:function(t,r){var s=e.get(t);s?s.push(r):e.set(t,[r])},off:function(t,r){var s=e.get(t);s&&(r?s.splice(s.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var s=e.get(t);s&&s.slice().map(function(i){i(r)}),(s=e.get("*"))&&s.slice().map(function(i){i(t,r)})}}}const ku=Object.freeze(Object.defineProperty({__proto__:null,default:Lo},Symbol.toStringTag,{value:"Module"}));function Iu(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;const r=e.HTMLElement||e.Element,s=468,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||d,scrollIntoView:r.prototype.scrollIntoView},a=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function o(v){const y=["MSIE ","Trident/","Edge/"];return new RegExp(y.join("|")).test(v)}const u=o(e.navigator.userAgent)?1:0;function d(v,y){this.scrollLeft=v,this.scrollTop=y}function l(v){return .5*(1-Math.cos(Math.PI*v))}function n(v){if(v===null||typeof v!="object"||v.behavior===void 0||v.behavior==="auto"||v.behavior==="instant")return!0;if(typeof v=="object"&&v.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+v.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(v,y){if(y==="Y")return v.clientHeight+u<v.scrollHeight;if(y==="X")return v.clientWidth+u<v.scrollWidth}function f(v,y){const S=e.getComputedStyle(v,null)["overflow"+y];return S==="auto"||S==="scroll"}function h(v){const y=c(v,"Y")&&f(v,"Y"),S=c(v,"X")&&f(v,"X");return y||S}function p(v){for(;v!==t.body&&h(v)===!1;)v=v.parentNode||v.host;return v}function m(v){const y=a();let S,E,w,b=(y-v.startTime)/s;b=b>1?1:b,S=l(b),E=v.startX+(v.x-v.startX)*S,w=v.startY+(v.y-v.startY)*S,v.method.call(v.scrollable,E,w),(E!==v.x||w!==v.y)&&e.requestAnimationFrame(m.bind(e,v))}function g(v,y,S){let E,w,b,C;const R=a();v===t.body?(E=e,w=e.scrollX||e.pageXOffset,b=e.scrollY||e.pageYOffset,C=i.scroll):(E=v,w=v.scrollLeft,b=v.scrollTop,C=d),m({scrollable:E,method:C,startTime:R,startX:w,startY:b,x:y,y:S})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(n(arguments[0])===!0){i.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}g.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(n(arguments[0])){i.scrollBy.call(e,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}g.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(n(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");i.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 v=arguments[0].left,y=arguments[0].top;g.call(this,this,typeof v=="undefined"?this.scrollLeft:~~v,typeof y=="undefined"?this.scrollTop:~~y)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(n(arguments[0])===!0){i.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})}},r.prototype.scrollIntoView=function(){if(n(arguments[0])===!0){i.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const v=p(this),y=v.getBoundingClientRect(),S=this.getBoundingClientRect();v!==t.body?(g.call(this,v,v.scrollLeft+S.left-y.left,v.scrollTop+S.top-y.top),e.getComputedStyle(v).position!=="fixed"&&e.scrollBy({left:y.left,top:y.top,behavior:"smooth"})):e.scrollBy({left:S.left,top:S.top,behavior:"smooth"})}}class Lu{constructor(t=[],r){F(this,"timeOffset",0),F(this,"speed"),F(this,"actions"),F(this,"raf",null),F(this,"lastTimestamp"),this.actions=t,this.speed=r.speed}addAction(t){const r=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=t.delay)this.actions.push(t);else{const s=this.findActionIndex(t);this.actions.splice(s,0,t)}r&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){const t=performance.now();for(this.timeOffset+=(t-this.lastTimestamp)*this.speed,this.lastTimestamp=t;this.actions.length;){const r=this.actions[0];if(this.timeOffset>=r.delay)this.actions.shift(),r.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(t){this.speed=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,s=this.actions.length-1;for(;r<=s;){const i=Math.floor((r+s)/2);if(this.actions[i].delay<t.delay)r=i+1;else if(this.actions[i].delay>t.delay)s=i-1;else return i+1}return r}}function gn(e,t){if(e.type===te.IncrementalSnapshot&&e.data.source===
|
|
151
|
+
`;typeof self!="undefined"&&self.Blob&&new Blob([Tu],{type:"text/javascript;charset=utf-8"});try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Vi=e.contentWindow)==null?void 0:Vi.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}Zn();function Lo(e){return{all:e=e||new Map,on:function(t,r){var s=e.get(t);s?s.push(r):e.set(t,[r])},off:function(t,r){var s=e.get(t);s&&(r?s.splice(s.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var s=e.get(t);s&&s.slice().map(function(i){i(r)}),(s=e.get("*"))&&s.slice().map(function(i){i(t,r)})}}}const ku=Object.freeze(Object.defineProperty({__proto__:null,default:Lo},Symbol.toStringTag,{value:"Module"}));function Iu(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;const r=e.HTMLElement||e.Element,s=468,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||d,scrollIntoView:r.prototype.scrollIntoView},a=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function o(v){const y=["MSIE ","Trident/","Edge/"];return new RegExp(y.join("|")).test(v)}const u=o(e.navigator.userAgent)?1:0;function d(v,y){this.scrollLeft=v,this.scrollTop=y}function l(v){return .5*(1-Math.cos(Math.PI*v))}function n(v){if(v===null||typeof v!="object"||v.behavior===void 0||v.behavior==="auto"||v.behavior==="instant")return!0;if(typeof v=="object"&&v.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+v.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(v,y){if(y==="Y")return v.clientHeight+u<v.scrollHeight;if(y==="X")return v.clientWidth+u<v.scrollWidth}function f(v,y){const S=e.getComputedStyle(v,null)["overflow"+y];return S==="auto"||S==="scroll"}function h(v){const y=c(v,"Y")&&f(v,"Y"),S=c(v,"X")&&f(v,"X");return y||S}function p(v){for(;v!==t.body&&h(v)===!1;)v=v.parentNode||v.host;return v}function m(v){const y=a();let S,E,w,b=(y-v.startTime)/s;b=b>1?1:b,S=l(b),E=v.startX+(v.x-v.startX)*S,w=v.startY+(v.y-v.startY)*S,v.method.call(v.scrollable,E,w),(E!==v.x||w!==v.y)&&e.requestAnimationFrame(m.bind(e,v))}function g(v,y,S){let E,w,b,C;const R=a();v===t.body?(E=e,w=e.scrollX||e.pageXOffset,b=e.scrollY||e.pageYOffset,C=i.scroll):(E=v,w=v.scrollLeft,b=v.scrollTop,C=d),m({scrollable:E,method:C,startTime:R,startX:w,startY:b,x:y,y:S})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(n(arguments[0])===!0){i.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}g.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(n(arguments[0])){i.scrollBy.call(e,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}g.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(n(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");i.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 v=arguments[0].left,y=arguments[0].top;g.call(this,this,typeof v=="undefined"?this.scrollLeft:~~v,typeof y=="undefined"?this.scrollTop:~~y)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(n(arguments[0])===!0){i.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})}},r.prototype.scrollIntoView=function(){if(n(arguments[0])===!0){i.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const v=p(this),y=v.getBoundingClientRect(),S=this.getBoundingClientRect();v!==t.body?(g.call(this,v,v.scrollLeft+S.left-y.left,v.scrollTop+S.top-y.top),e.getComputedStyle(v).position!=="fixed"&&e.scrollBy({left:y.left,top:y.top,behavior:"smooth"})):e.scrollBy({left:S.left,top:S.top,behavior:"smooth"})}}class Lu{constructor(t=[],r){F(this,"timeOffset",0),F(this,"speed"),F(this,"actions"),F(this,"raf",null),F(this,"lastTimestamp"),this.actions=t,this.speed=r.speed}addAction(t){const r=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=t.delay)this.actions.push(t);else{const s=this.findActionIndex(t);this.actions.splice(s,0,t)}r&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){const t=performance.now();for(this.timeOffset+=(t-this.lastTimestamp)*this.speed,this.lastTimestamp=t;this.actions.length;){const r=this.actions[0];if(this.timeOffset>=r.delay)this.actions.shift(),r.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(t){this.speed=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,s=this.actions.length-1;for(;r<=s;){const i=Math.floor((r+s)/2);if(this.actions[i].delay<t.delay)r=i+1;else if(this.actions[i].delay>t.delay)s=i-1;else return i+1}return r}}function gn(e,t){if(e.type===te.IncrementalSnapshot&&e.data.source===J.MouseMove&&e.data.positions&&e.data.positions.length){const r=e.data.positions[0].timeOffset,s=e.timestamp+r;return e.delay=s-t,s-t}return e.delay=e.timestamp-t,e.delay}/*! *****************************************************************************
|
|
152
152
|
Copyright (c) Microsoft Corporation.
|
|
153
153
|
|
|
154
154
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -161,13 +161,13 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
161
161
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
162
162
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
163
163
|
PERFORMANCE OF THIS SOFTWARE.
|
|
164
|
-
***************************************************************************** */function yn(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var s,i,a=r.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(s=a.next()).done;)o.push(s.value)}catch(u){i={error:u}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}var $e;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})($e||($e={}));var Fo={type:"xstate.init"};function Kr(e){return e===void 0?[]:[].concat(e)}function qe(e){return{type:"xstate.assign",assignment:e}}function wn(e,t){return typeof(e=typeof e=="string"&&t&&t[e]?t[e]:e)=="string"?{type:e}:typeof e=="function"?{type:e.name,exec:e}:e}function Nt(e){return function(t){return e===t}}function Bo(e){return typeof e=="string"?{type:e}:e}function vn(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Nt(e)}}function bn(e,t,r){var s=t,i=!1;return[e.filter(function(a){if(a.type==="xstate.assign"){i=!0;var o=Object.assign({},s);return typeof a.assignment=="function"?o=a.assignment(s,r):Object.keys(a.assignment).forEach(function(u){o[u]=typeof a.assignment[u]=="function"?a.assignment[u](s,r):a.assignment[u]}),s=o,!1}return!0}),s,i]}function Uo(e,t){t===void 0&&(t={});var r=yn(bn(Kr(e.states[e.initial].entry).map(function(o){return wn(o,t.actions)}),e.context,Fo),2),s=r[0],i=r[1],a={config:e,_options:t,initialState:{value:e.initial,actions:s,context:i,matches:Nt(e.initial)},transition:function(o,u){var d,l,n=typeof o=="string"?{value:o,context:e.context}:o,c=n.value,f=n.context,h=Bo(u),p=e.states[c];if(p.on){var m=Kr(p.on[h.type]);try{for(var g=function(L){var j=typeof Symbol=="function"&&Symbol.iterator,H=j&&L[j],z=0;if(H)return H.call(L);if(L&&typeof L.length=="number")return{next:function(){return L&&z>=L.length&&(L=void 0),{value:L&&L[z++],done:!L}}};throw new TypeError(j?"Object is not iterable.":"Symbol.iterator is not defined.")}(m),v=g.next();!v.done;v=g.next()){var y=v.value;if(y===void 0)return vn(c,f);var S=typeof y=="string"?{target:y}:y,E=S.target,w=S.actions,b=w===void 0?[]:w,C=S.cond,R=C===void 0?function(){return!0}:C,N=E===void 0,x=E!=null?E:c,I=e.states[x];if(R(f,h)){var T=yn(bn((N?Kr(b):[].concat(p.exit,b,I.entry).filter(function(L){return L})).map(function(L){return wn(L,a._options.actions)}),f,h),3),J=T[0],U=T[1],M=T[2],q=E!=null?E:c;return{value:q,context:U,actions:J,changed:E!==c||J.length>0||M,matches:Nt(q)}}}}catch(L){d={error:L}}finally{try{v&&!v.done&&(l=g.return)&&l.call(g)}finally{if(d)throw d.error}}}return vn(c,f)}};return a}var Sn=function(e,t){return e.actions.forEach(function(r){var s=r.exec;return s&&s(e.context,t)})};function zo(e){var t=e.initialState,r=$e.NotStarted,s=new Set,i={_machine:e,send:function(a){r===$e.Running&&(t=e.transition(t,a),Sn(t,Bo(a)),s.forEach(function(o){return o(t)}))},subscribe:function(a){return s.add(a),a(t),{unsubscribe:function(){return s.delete(a)}}},start:function(a){if(a){var o=typeof a=="object"?a:{context:e.config.context,value:a};t={value:o.value,actions:[],context:o.context,matches:Nt(o.value)}}return r=$e.Running,Sn(t,Fo),i},stop:function(){return r=$e.Stopped,s.clear(),i},get state(){return t},get status(){return r}};return i}function Fu(e,t){for(let r=e.length-1;r>=0;r--){const s=e[r];if(s.type===te.Meta&&s.timestamp<=t)return e.slice(r)}return e}function Bu(e,{getCastFn:t,applyEventsSynchronously:r,emitter:s}){const i=Uo({id:"player",context:e,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:qe({lastPlayedEvent:(a,o)=>o.type==="CAST_EVENT"?o.payload.event:a.lastPlayedEvent}),recordTimeOffset:qe((a,o)=>{let u=a.timeOffset;return"payload"in o&&"timeOffset"in o.payload&&(u=o.payload.timeOffset),le(Q({},a),{timeOffset:u,baselineTime:a.events[0].timestamp+u})}),play(a){var o;const{timer:u,events:d,baselineTime:l,lastPlayedEvent:n}=a;u.clear();for(const p of d)gn(p,l);const c=Fu(d,l);let f=n==null?void 0:n.timestamp;(n==null?void 0:n.type)===te.IncrementalSnapshot&&n.data.source===Y.MouseMove&&(f=n.timestamp+((o=n.data.positions[0])==null?void 0:o.timeOffset)),l<(f||0)&&s.emit(V.PlayBack);const h=new Array;for(const p of c)if(!(f&&f<l&&(p.timestamp<=f||p===n)))if(p.timestamp<l)h.push(p);else{const m=t(p,!1);u.addAction({doAction:()=>{m()},delay:p.delay})}r(h),s.emit(V.Flush),u.start()},pause(a){a.timer.clear()},resetLastPlayedEvent:qe(a=>le(Q({},a),{lastPlayedEvent:null})),startLive:qe({baselineTime:(a,o)=>(a.timer.start(),o.type==="TO_LIVE"&&o.payload.baselineTime?o.payload.baselineTime:Date.now())}),addEvent:qe((a,o)=>{const{baselineTime:u,timer:d,events:l}=a;if(o.type==="ADD_EVENT"){const{event:n}=o.payload;gn(n,u);let c=l.length-1;if(!l[c]||l[c].timestamp<=n.timestamp)l.push(n);else{let p=-1,m=0;for(;m<=c;){const g=Math.floor((m+c)/2);l[g].timestamp<=n.timestamp?m=g+1:c=g-1}p===-1&&(p=m),l.splice(p,0,n)}const f=n.timestamp<u,h=t(n,f);f?h():d.isActive()&&d.addAction({doAction:()=>{h()},delay:n.delay})}return le(Q({},a),{events:l})})}});return zo(i)}function Uu(e){const t=Uo({id:"speed",context:e,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:(r,s)=>{"payload"in s&&r.timer.setSpeed(s.payload.speed)},recordSpeed:qe({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return zo(t)}const zu=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Cn=new Map;function qo(e,t){let r=Cn.get(e);return r||(r=new Map,Cn.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function xe(e,t,r){return async s=>{if(s&&typeof s=="object"&&"rr_type"in s)if(r&&(r.isUnchanged=!1),s.rr_type==="ImageBitmap"&&"args"in s){const i=await xe(e,t,r)(s.args);return await createImageBitmap.apply(null,i)}else if("index"in s){if(r||t===null)return s;const{rr_type:i,index:a}=s;return qo(t,i)[a]}else if("args"in s){const{rr_type:i,args:a}=s,o=window[i];return new o(...await Promise.all(a.map(xe(e,t,r))))}else{if("base64"in s)return Pu(s.base64);if("src"in s){const i=e.get(s.src);if(i)return i;{const a=new Image;return a.src=s.src,e.set(s.src,a),a}}else if("data"in s&&s.rr_type==="Blob"){const i=await Promise.all(s.data.map(xe(e,t,r)));return new Blob(i,{type:s.type})}}else if(Array.isArray(s))return await Promise.all(s.map(xe(e,t,r)));return s}}function qu(e,t){try{return t===Mt.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch(r){return null}}const Wu=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function $u(e,t){if(!(t!=null&&t.constructor))return;const{name:r}=t.constructor;if(!Wu.includes(r))return;const s=qo(e,r);s.includes(t)||s.push(t)}async function ju({mutation:e,target:t,type:r,imageMap:s,errorHandler:i}){try{const a=qu(t,r);if(!a)return;if(e.setter){a[e.property]=e.args[0];return}const o=a[e.property],u=await Promise.all(e.args.map(xe(s,a))),d=o.apply(a,u);$u(a,d);const l=!1}catch(a){i(e,a)}}async function Vu({event:e,mutations:t,target:r,imageMap:s,errorHandler:i}){const a=r.getContext("2d");if(!a){i(t[0],new Error("Canvas context is null"));return}const o=t.map(async d=>Promise.all(d.args.map(xe(s,a))));(await Promise.all(o)).forEach((d,l)=>{const n=t[l];try{if(n.setter){a[n.property]=n.args[0];return}const c=a[n.property];n.property==="drawImage"&&typeof n.args[0]=="string"?(s.get(e),c.apply(a,n.args)):c.apply(a,d)}catch(c){i(n,c)}})}async function En({event:e,mutation:t,target:r,imageMap:s,canvasEventMap:i,errorHandler:a}){try{const o=i.get(e)||t,u="commands"in o?o.commands:[o];if([Mt.WebGL,Mt.WebGL2].includes(t.type)){for(let d=0;d<u.length;d++){const l=u[d];await ju({mutation:l,type:t.type,target:r,imageMap:s,errorHandler:a})}return}await Vu({event:e,mutations:u,target:r,imageMap:s,errorHandler:a})}catch(o){a(t,o)}}const Rn=["AUDIO","VIDEO"];class Gu{constructor(t){F(this,"mediaMap",new Map),F(this,"warn"),F(this,"service"),F(this,"speedService"),F(this,"emitter"),F(this,"getCurrentTime"),F(this,"metadataCallbackMap",new Map),this.warn=t.warn,this.service=t.service,this.speedService=t.speedService,this.emitter=t.emitter,this.getCurrentTime=t.getCurrentTime,this.emitter.on(V.Start,this.start.bind(this)),this.emitter.on(V.SkipStart,this.start.bind(this)),this.emitter.on(V.Pause,this.pause.bind(this)),this.emitter.on(V.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(t={pause:!1}){this.mediaMap.forEach((r,s)=>{this.syncTargetWithState(s),t.pause&&s.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:t,target:r,mediaState:s}){if(s.isPlaying){const a=(t-s.lastInteractionTimeOffset)/1e3*s.playbackRate,o="duration"in r&&r.duration;if(Number.isNaN(o)){this.waitForMetadata(r);return}let u=s.currentTimeAtLastInteraction+a;r.loop&&o!==!1&&(u=u%o),r.currentTime=u}else r.pause(),r.currentTime=s.currentTimeAtLastInteraction}waitForMetadata(t){if(this.metadataCallbackMap.has(t)||!("addEventListener"in t))return;const r=()=>{this.metadataCallbackMap.delete(t);const s=this.mediaMap.get(t);s&&this.seekTo({time:this.getCurrentTime(),target:t,mediaState:s})};this.metadataCallbackMap.set(t,r),t.addEventListener("loadedmetadata",r,{once:!0})}getMediaStateFromMutation({target:t,timeOffset:r,mutation:s}){var h,p,m,g,v;const i=this.mediaMap.get(t),{type:a,playbackRate:o,currentTime:u,muted:d,volume:l,loop:n}=s;return{isPlaying:a===ai.Play||a!==ai.Pause&&((i==null?void 0:i.isPlaying)||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:(h=u!=null?u:i==null?void 0:i.currentTimeAtLastInteraction)!=null?h:0,lastInteractionTimeOffset:r,playbackRate:(p=o!=null?o:i==null?void 0:i.playbackRate)!=null?p:1,volume:(m=l!=null?l:i==null?void 0:i.volume)!=null?m:1,muted:(g=d!=null?d:i==null?void 0:i.muted)!=null?g:t.getAttribute("muted")===null,loop:(v=n!=null?n:i==null?void 0:i.loop)!=null?v:t.getAttribute("loop")===null}}syncTargetWithState(t){const r=this.mediaMap.get(t);if(!r)return;const{muted:s,loop:i,volume:a,isPlaying:o}=r,u=this.service.state.matches("paused"),d=r.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:t,mediaState:r}),t.volume!==a&&(t.volume=a),t.muted=s,t.loop=i,t.playbackRate!==d&&(t.playbackRate=d),o&&!u?t.play():t.pause()}catch(l){this.warn(`Failed to replay media interactions: ${l.message||l}`)}}addMediaElements(t,r,s){if(!this.isSupportedMediaElement(t))return;const i=t,a=s.getMeta(i);if(!a||!("attributes"in a))return;const o=this.service.state.matches("paused"),u=a.attributes;let d=!1;u.rr_mediaState?d=u.rr_mediaState==="played":d=i.getAttribute("autoplay")!==null,d&&o&&i.pause();let l=1;typeof u.rr_mediaPlaybackRate=="number"&&(l=u.rr_mediaPlaybackRate);let n=!1;typeof u.rr_mediaMuted=="boolean"?n=u.rr_mediaMuted:n=i.getAttribute("muted")!==null;let c=!1;typeof u.rr_mediaLoop=="boolean"?c=u.rr_mediaLoop:c=i.getAttribute("loop")!==null;let f=1;typeof u.rr_mediaVolume=="number"&&(f=u.rr_mediaVolume);let h=0;typeof u.rr_mediaCurrentTime=="number"&&(h=u.rr_mediaCurrentTime),this.mediaMap.set(i,{isPlaying:d,currentTimeAtLastInteraction:h,lastInteractionTimeOffset:r,playbackRate:l,volume:f,muted:n,loop:c}),this.syncTargetWithState(i)}mediaMutation({target:t,timeOffset:r,mutation:s}){Rn.includes(t.nodeName)&&(this.mediaMap.set(t,this.getMediaStateFromMutation({target:t,timeOffset:r,mutation:s})),this.syncTargetWithState(t))}isSupportedMediaElement(t){return Rn.includes(t.nodeName)}reset(){this.mediaMap.clear()}}function vt(e,t){if(e.nodeName!=="DIALOG"||e instanceof ye)return;const r=e,s=r.open,i=s&&r.matches("dialog:modal"),a=r.getAttribute("rr_open_mode"),o=typeof(t==null?void 0:t.attributes.open)=="string"||typeof r.getAttribute("open")=="string",u=a==="modal";if(!(s&&!(i&&a==="non-modal"||!i&&u))){if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}s&&r.close(),o&&(u?r.showModal():r.show())}}function Hu(e,t){if(e.nodeName!=="DIALOG"||e instanceof ye)return;const r=e;if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}t.attributes.open===null&&(r.removeAttribute("open"),r.removeAttribute("rr_open_mode"))}const Yu=5*1e3,Ju=Lo||ku,xn="[replayer]",Zr={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Mn(e){return e.type==te.IncrementalSnapshot&&(e.data.source==Y.TouchMove||e.data.source==Y.MouseInteraction&&e.data.type==ne.TouchStart)}class Xu{constructor(t,r){if(F(this,"wrapper"),F(this,"iframe"),F(this,"service"),F(this,"speedService"),F(this,"config"),F(this,"usingVirtualDom",!1),F(this,"virtualDom",new Ye),F(this,"mouse"),F(this,"mouseTail",null),F(this,"tailPositions",[]),F(this,"emitter",Ju()),F(this,"nextUserInteractionEvent"),F(this,"legacy_missingNodeRetryMap",{}),F(this,"cache",_s()),F(this,"imageMap",new Map),F(this,"canvasEventMap",new Map),F(this,"mirror",Zn()),F(this,"styleMirror",new Du),F(this,"mediaManager"),F(this,"firstFullSnapshot",null),F(this,"newDocumentQueue",[]),F(this,"mousePos",null),F(this,"touchActive",null),F(this,"lastMouseDownEvent",null),F(this,"lastHoveredRootNode"),F(this,"lastSelectionData",null),F(this,"constructedStyleMutations",[]),F(this,"adoptedStyleSheets",[]),F(this,"emitterHandlers",[]),F(this,"serviceSubscription"),F(this,"speedServiceSubscription"),F(this,"timeouts",new Set),F(this,"styleSheetLoadListeners",new Map),F(this,"handleResize",l=>{this.iframe.style.display="inherit";for(const n of[this.mouseTail,this.iframe])n&&(n.setAttribute("width",String(l.width)),n.setAttribute("height",String(l.height)))}),F(this,"applyEventsSynchronously",l=>{for(const n of l){switch(n.type){case te.DomContentLoaded:case te.Load:case te.Custom:continue;case te.FullSnapshot:case te.Meta:case te.Plugin:case te.IncrementalSnapshot:break}this.getCastFn(n,!0)()}}),F(this,"getCastFn",(l,n=!1)=>{let c;switch(l.type){case te.DomContentLoaded:case te.Load:break;case te.Custom:c=()=>{this.emitter.emit(V.CustomEvent,l)};break;case te.Meta:c=()=>this.emitter.emit(V.Resize,{width:l.data.width,height:l.data.height});break;case te.FullSnapshot:c=()=>{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,n),(h=this.iframe.contentWindow)==null||h.scrollTo(l.data.initialOffset)};break;case te.IncrementalSnapshot:c=()=>{if(this.applyIncremental(l,n),!n&&(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,p={speed:Math.min(Math.round(h/Yu),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:p}),this.emitter.emit(V.SkipStart,p)}}};break}return()=>{c&&c();for(const p of this.config.plugins||[])p.handler&&p.handler(l,n,{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 p=()=>{h<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(V.Finish))};let m=50;l.type===te.IncrementalSnapshot&&l.data.source===Y.MouseMove&&l.data.positions.length&&(m+=Math.max(0,-l.data.positions[0].timeOffset)),setTimeout(p,m)}this.emitter.emit(V.EventCast,l)}}),!(r!=null&&r.liveMode)&&t.length<2)throw new Error("Replayer need at least 2 events.");const s={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:Zr,useVirtualDom:!0,logger:console};this.config=Object.assign({},s,r),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.addEmitterHandler(V.Resize,this.handleResize),this.setupDom();for(const l of this.config.plugins||[])l.getMirror&&l.getMirror({nodeMirror:this.mirror});const i=()=>{if(this.usingVirtualDom){const l={mirror:this.mirror,applyCanvas:(n,c,f)=>{En({event:n,mutation:c,target:f,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(n,c)=>{n.source===Y.StyleSheetRule?this.applyStyleSheetRule(n,c):n.source===Y.StyleDeclaration&&this.applyStyleDeclaration(n,c)},afterAppend:(n,c)=>{for(const f of this.config.plugins||[])f.onBuild&&f.onBuild(n,{id:c,replayer:this})}};if(this.iframe.contentDocument)try{Rt(this.iframe.contentDocument,this.virtualDom,l,this.virtualDom.mirror)}catch(n){this.warn(n)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(const n in this.legacy_missingNodeRetryMap)try{const c=this.legacy_missingNodeRetryMap[n],f=xt(c.node,this.mirror,this.virtualDom.mirror);Rt(f,c.node,l,this.virtualDom.mirror),c.node=f}catch(c){this.warn(c)}this.constructedStyleMutations.forEach(n=>{this.applyStyleSheetMutation(n)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(n=>{this.applyAdoptedStyleSheet(n)}),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,n]=this.lastMouseDownEvent;l.dispatchEvent(n)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)};this.addEmitterHandler(V.Flush,i);const a=()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()};this.addEmitterHandler(V.PlayBack,a);const o=new Lu([],{speed:this.config.speed});this.service=Bu({events:t.map(l=>r&&r.unpackFn?r.unpackFn(l):l).sort((l,n)=>l.timestamp-n.timestamp),timer:o,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.serviceSubscription=this.service.subscribe(l=>{this.emitter.emit(V.StateChange,{player:l})}),this.speedService=Uu({normalSpeed:-1,timer:o}),this.speedService.start(),this.speedServiceSubscription=this.speedService.subscribe(l=>{this.emitter.emit(V.StateChange,{speed:l})}),this.mediaManager=new Gu({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});const u=this.service.state.context.events.find(l=>l.type===te.Meta),d=this.service.state.context.events.find(l=>l.type===te.FullSnapshot);if(u){const{width:l,height:n}=u.data;this.addTimeout(()=>{this.emitter.emit(V.Resize,{width:l,height:n})},0)}d&&this.addTimeout(()=>{var l;this.firstFullSnapshot||(this.firstFullSnapshot=d,this.rebuildFullSnapshot(d),(l=this.iframe.contentWindow)==null||l.scrollTo(d.data.initialOffset))},1),this.service.state.context.events.find(Mn)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(t,r){return this.emitter.on(t,r),this}off(t,r){return this.emitter.off(t,r),this}addEmitterHandler(t,r){this.emitter.on(t,r),this.emitterHandlers.push({event:t,handler:r})}addTimeout(t,r){const s=setTimeout(()=>{this.timeouts.delete(s),t()},r);return this.timeouts.add(s),s}setConfig(t){Object.keys(t).forEach(r=>{t[r],this.config[r]=t[r]}),this.config.skipInactive||this.backToNormal(),typeof t.speed!="undefined"&&this.speedService.send({type:"SET_SPEED",payload:{speed:t.speed}}),typeof t.mouseTail!="undefined"&&(t.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 t=this.service.state.context.events[0],r=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:t.timestamp,endTime:r.timestamp,totalTime:r.timestamp-t.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){const{baselineTime:t,events:r}=this.service.state.context;return t-r[0].timestamp}getMirror(){return this.mirror}play(t=0){var r,s;this.service.state.matches("paused")?this.service.send({type:"PLAY",payload:{timeOffset:t}}):(this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:t}})),(s=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||s.classList.remove("rrweb-paused"),this.emitter.emit(V.Start)}pause(t){var r,s;t===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof t=="number"&&(this.play(t),this.service.send({type:"PAUSE"})),(s=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||s.classList.add("rrweb-paused"),this.emitter.emit(V.Pause)}resume(t=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(t),this.emitter.emit(V.Resume)}destroy(){var t,r;!this.wrapper||!this.wrapper.parentNode||(this.pause(),this.emitterHandlers.forEach(({event:s,handler:i})=>{this.emitter.off(s,i)}),this.emitterHandlers=[],(t=this.serviceSubscription)==null||t.unsubscribe(),(r=this.speedServiceSubscription)==null||r.unsubscribe(),this.serviceSubscription=void 0,this.speedServiceSubscription=void 0,this.service.stop(),this.speedService.stop(),this.timeouts.forEach(s=>clearTimeout(s)),this.timeouts.clear(),this.styleSheetLoadListeners.forEach((s,i)=>{i.removeEventListener("load",s)}),this.styleSheetLoadListeners.clear(),this.imageMap.clear(),this.canvasEventMap.clear(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.resetCache(),this.config.root.removeChild(this.wrapper),this.emitter.emit(V.Destroy))}startLive(t){this.service.send({type:"TO_LIVE",payload:{baselineTime:t}})}addEvent(t){const r=this.config.unpackFn?this.config.unpackFn(t):t;Mn(r)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:r}}))}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=_s()}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 t=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&t.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",t.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(Iu(this.iframe.contentWindow,this.iframe.contentDocument),_u(this.iframe.contentWindow))}rebuildFullSnapshot(t,r=!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 s=[],i=new Set,a=(d,l)=>{if(d.nodeName==="DIALOG"&&i.add(d),this.collectIframeAndAttachDocument(s,d),this.mediaManager.isSupportedMediaElement(d)){const{events:n}=this.service.state.context;this.mediaManager.addMediaElements(d,t.timestamp-n[0].timestamp,this.mirror)}for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(d,{id:l,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),al(t.data.node,{doc:this.iframe.contentDocument,afterAppend:a,cache:this.cache,mirror:this.mirror}),a(this.iframe.contentDocument,t.data.node.id);for(const{mutationInQueue:d,builtNode:l}of s)this.attachDocumentToIframe(d,l),this.newDocumentQueue=this.newDocumentQueue.filter(n=>n!==d);const{documentElement:o,head:u}=this.iframe.contentDocument;this.insertStyleRules(o,u),i.forEach(d=>vt(d)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(V.FullsnapshotRebuilded,t),r||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(t,r){var s;const i=zu(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&i.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),this.usingVirtualDom){const a=this.virtualDom.createElement("style");this.virtualDom.mirror.add(a,Po(a,this.virtualDom.unserializedId)),t.insertBefore(a,r),a.rules.push({source:Y.StyleSheetRule,adds:i.map((o,u)=>({rule:o,index:u}))})}else{const a=document.createElement("style");t.insertBefore(a,r);for(let o=0;o<i.length;o++)(s=a.sheet)==null||s.insertRule(i[o],o)}}attachDocumentToIframe(t,r){const s=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,i=[],a=new Set,o=(u,d)=>{u.nodeName==="DIALOG"&&a.add(u),this.collectIframeAndAttachDocument(i,u);const l=s.getMeta(u);if((l==null?void 0:l.type)===Re.Element&&(l==null?void 0:l.tagName.toUpperCase())==="HTML"){const{documentElement:n,head:c}=r.contentDocument;this.insertStyleRules(n,c)}if(!this.usingVirtualDom)for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(u,{id:d,replayer:this})};et(t.node,{doc:r.contentDocument,mirror:s,hackCss:!0,skipChild:!1,afterAppend:o,cache:this.cache}),o(r.contentDocument,t.node.id);for(const{mutationInQueue:u,builtNode:d}of i)this.attachDocumentToIframe(u,d),this.newDocumentQueue=this.newDocumentQueue.filter(l=>l!==u);a.forEach(u=>vt(u))}collectIframeAndAttachDocument(t,r){if(Qr(r,this.mirror)){const s=this.newDocumentQueue.find(i=>i.parentId===this.mirror.getId(r));s&&t.push({mutationInQueue:s,builtNode:r})}}waitForStylesheetLoad(){var t;const r=(t=this.iframe.contentDocument)==null?void 0:t.head;if(r){const s=new Set;let i,a=this.service.state;const o=()=>{a=this.service.state};this.emitter.on(V.Start,o),this.emitter.on(V.Pause,o);const u=()=>{this.emitter.off(V.Start,o),this.emitter.off(V.Pause,o)};r.querySelectorAll('link[rel="stylesheet"]').forEach(d=>{d.sheet||(s.add(d),d.addEventListener("load",()=>{s.delete(d),s.size===0&&i!==-1&&(a.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(V.LoadStylesheetEnd),i&&clearTimeout(i),u())}))}),s.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(V.LoadStylesheetStart),i=setTimeout(()=>{a.matches("playing")&&this.play(this.getCurrentTime()),i=-1,u()},this.config.loadTimeout))}}async preloadAllImages(){const t=[];for(const r of this.service.state.context.events)r.type===te.IncrementalSnapshot&&r.data.source===Y.CanvasMutation&&(t.push(this.deserializeAndPreloadCanvasEvents(r.data,r)),("commands"in r.data?r.data.commands:[r.data]).forEach(i=>{this.preloadImages(i,r)}));return Promise.all(t)}preloadImages(t,r){if(t.property==="drawImage"&&typeof t.args[0]=="string"&&!this.imageMap.has(r)){const s=document.createElement("canvas"),i=s.getContext("2d"),a=i==null?void 0:i.createImageData(s.width,s.height);i==null||i.putImageData(a,0,0)}}async deserializeAndPreloadCanvasEvents(t,r){if(!this.canvasEventMap.has(r)){const s={isUnchanged:!0};if("commands"in t){const i=await Promise.all(t.commands.map(async a=>{const o=await Promise.all(a.args.map(xe(this.imageMap,null,s)));return le(Q({},a),{args:o})}));s.isUnchanged===!1&&this.canvasEventMap.set(r,le(Q({},t),{commands:i}))}else{const i=await Promise.all(t.args.map(xe(this.imageMap,null,s)));s.isUnchanged===!1&&this.canvasEventMap.set(r,le(Q({},t),{args:i}))}}}applyIncremental(t,r){var s,i,a;const{data:o}=t;switch(o.source){case Y.Mutation:{try{this.applyMutation(o,r)}catch(u){this.warn(`Exception in mutation ${u.message||u}`,o)}break}case Y.Drag:case Y.TouchMove:case Y.MouseMove:if(r){const u=o.positions[o.positions.length-1];this.mousePos={x:u.x,y:u.y,id:u.id,debugData:o}}else o.positions.forEach(u=>{const d={doAction:()=>{this.moveAndHover(u.x,u.y,u.id,r,o)},delay:u.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(d)}),this.timer.addAction({doAction(){},delay:t.delay-((s=o.positions[0])==null?void 0:s.timeOffset)});break;case Y.MouseInteraction:{if(o.id===-1)break;const u=new Event(Fa(ne[o.type])),d=this.mirror.getNode(o.id);if(!d)return this.debugNodeNotFound(o,o.id);this.emitter.emit(V.MouseInteraction,{type:o.type,target:d});const{triggerFocus:l}=this.config;switch(o.type){case ne.Blur:"blur"in d&&d.blur();break;case ne.Focus:l&&d.focus&&d.focus({preventScroll:!0});break;case ne.Click:case ne.TouchStart:case ne.TouchEnd:case ne.MouseDown:case ne.MouseUp:r?(o.type===ne.TouchStart?this.touchActive=!0:o.type===ne.TouchEnd&&(this.touchActive=!1),o.type===ne.MouseDown?this.lastMouseDownEvent=[d,u]:o.type===ne.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:o.x||0,y:o.y||0,id:o.id,debugData:o}):(o.type===ne.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x||0,o.y||0,o.id,r,o),o.type===ne.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===ne.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===ne.TouchEnd?this.mouse.classList.remove("touch-active"):d.dispatchEvent(u));break;case ne.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:d.dispatchEvent(u)}break}case Y.Scroll:{if(o.id===-1)break;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);u.scrollData=o;break}this.applyScroll(o,r);break}case Y.ViewportResize:this.emitter.emit(V.Resize,{width:o.width,height:o.height});break;case Y.Input:{if(o.id===-1)break;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);u.inputData=o;break}this.applyInput(o);break}case Y.MediaInteraction:{const u=this.usingVirtualDom?this.virtualDom.mirror.getNode(o.id):this.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);const d=u,{events:l}=this.service.state.context;this.mediaManager.mediaMutation({target:d,timeOffset:t.timestamp-l[0].timestamp,mutation:o});break}case Y.StyleSheetRule:case Y.StyleDeclaration:{this.usingVirtualDom?o.styleId?this.constructedStyleMutations.push(o):o.id&&((i=this.virtualDom.mirror.getNode(o.id))==null||i.rules.push(o)):this.applyStyleSheetMutation(o);break}case Y.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);u.canvasMutations.push({event:t,mutation:o})}else{const u=this.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);En({event:t,mutation:o,target:u,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case Y.Font:{try{const u=new FontFace(o.family,o.buffer?new Uint8Array(JSON.parse(o.fontSource)):o.fontSource,o.descriptors);(a=this.iframe.contentDocument)==null||a.fonts.add(u)}catch(u){this.warn(u)}break}case Y.Selection:{if(r){this.lastSelectionData=o;break}this.applySelection(o);break}case Y.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(o):this.applyAdoptedStyleSheet(o);break}}}applyMutation(t,r){if(this.config.useVirtualDom&&!this.usingVirtualDom&&r&&(this.usingVirtualDom=!0,cu(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(const d in this.legacy_missingNodeRetryMap)try{const l=this.legacy_missingNodeRetryMap[d],n=Do(l.node,this.virtualDom,this.mirror);n&&(l.node=n)}catch(l){this.warn(l)}const s=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(d=>s.getNode(d.id)?!0:(this.warnNodeNotFound(t,d.id),!1)),t.removes.forEach(d=>{var l;const n=s.getNode(d.id);if(!n)return;let c=s.getNode(d.parentId);if(!c)return this.warnNodeNotFound(t,d.parentId);if(d.isShadow&&yt(c)&&(c=c.shadowRoot),s.removeNodeFromMap(n),c)try{c.removeChild(n),this.usingVirtualDom&&n.nodeName==="#text"&&c.nodeName==="STYLE"&&((l=c.rules)==null?void 0:l.length)>0&&(c.rules=[])}catch(f){if(f instanceof DOMException)this.warn("parent could not remove child in mutation",c,n,t);else throw f}});const i=Q({},this.legacy_missingNodeRetryMap),a=[],o=d=>{var l,n;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let c=s.getNode(d.parentId);if(!c)return d.node.type===Re.Document?this.newDocumentQueue.push(d):t.adds.some(S=>S.node.id===d.parentId)?a.push(d):void 0;d.node.isShadow&&(yt(c)||c.attachShadow({mode:"open"}),c=c.shadowRoot);let f=null,h=null;if(d.previousId&&(f=s.getNode(d.previousId)),d.nextId&&(h=s.getNode(d.nextId)),d.node.rootId&&!s.getNode(d.node.rootId))return;const p=d.node.rootId?s.getNode(d.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(Qr(c,s)){this.attachDocumentToIframe(d,c);return}const m=(y,S)=>{if(!this.usingVirtualDom){vt(y);for(const E of this.config.plugins||[])E.onBuild&&E.onBuild(y,{id:S,replayer:this})}},g=et(d.node,{doc:p,mirror:s,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:m});if(d.previousId===-1||d.nextId===-1){i[d.node.id]={node:g,mutation:d};return}const v=s.getMeta(c);if(v&&v.type===Re.Element&&d.node.type===Re.Text){const y=Array.isArray(c.childNodes)?c.childNodes:Array.from(c.childNodes);if(v.tagName==="textarea")for(const S of y)S.nodeType===c.TEXT_NODE&&c.removeChild(S);else if(v.tagName==="style"&&y.length===1)for(const S of y)S.nodeType===c.TEXT_NODE&&!s.hasNode(S)&&(g.textContent=S.textContent,c.removeChild(S))}else if((v==null?void 0:v.type)===Re.Document){const y=c;d.node.type===Re.DocumentType&&((l=y.childNodes[0])==null?void 0:l.nodeType)===Node.DOCUMENT_TYPE_NODE&&y.removeChild(y.childNodes[0]),g.nodeName==="HTML"&&y.documentElement&&y.removeChild(y.documentElement)}if(f&&f.nextSibling&&f.nextSibling.parentNode?c.insertBefore(g,f.nextSibling):h&&h.parentNode?c.contains(h)?c.insertBefore(g,h):c.insertBefore(g,null):c.appendChild(g),m(g,d.node.id),this.usingVirtualDom&&g.nodeName==="#text"&&c.nodeName==="STYLE"&&((n=c.rules)==null?void 0:n.length)>0&&(c.rules=[]),Qr(g,this.mirror)){const y=this.mirror.getId(g),S=this.newDocumentQueue.find(E=>E.parentId===y);S&&(this.attachDocumentToIframe(S,g),this.newDocumentQueue=this.newDocumentQueue.filter(E=>E!==S))}(d.previousId||d.nextId)&&this.legacy_resolveMissingNode(i,c,g,d)};t.adds.forEach(d=>{o(d)});const u=performance.now();for(;a.length;){const d=Ou(a);if(a.length=0,performance.now()-u>150){this.warn("Timeout in the loop, please check the resolve tree data:",d);break}for(const l of d)s.getNode(l.value.parentId)?ko(l,c=>{o(c)}):this.debug("Drop resolve tree since there is no parent for the root node.",l)}Object.keys(i).length&&Object.assign(this.legacy_missingNodeRetryMap,i),Au(t.texts).forEach(d=>{var l;const n=s.getNode(d.id);if(!n)return t.removes.find(c=>c.id===d.id)?void 0:this.warnNodeNotFound(t,d.id);if(n.textContent=d.value,this.usingVirtualDom){const c=n.parentNode;((l=c==null?void 0:c.rules)==null?void 0:l.length)>0&&(c.rules=[])}}),t.attributes.forEach(d=>{var l;const n=s.getNode(d.id);if(!n)return t.removes.find(c=>c.id===d.id)?void 0:this.warnNodeNotFound(t,d.id);for(const c in d.attributes)if(typeof c=="string"){const f=d.attributes[c];if(f===null)n.removeAttribute(c),c==="open"&&Hu(n,d);else if(typeof f=="string")try{if(c==="_cssText"&&(n.nodeName==="LINK"||n.nodeName==="STYLE"))try{const h=s.getMeta(n);Object.assign(h.attributes,d.attributes);const p=et(h,{doc:n.ownerDocument,mirror:s,skipChild:!0,hackCss:!0,cache:this.cache}),m=n.nextSibling,g=n.parentNode;if(p&&g){g.removeChild(n),g.insertBefore(p,m),s.replace(d.id,p);break}}catch(h){}if(c==="value"&&n.nodeName==="TEXTAREA"){const h=n;h.childNodes.forEach(m=>h.removeChild(m));const p=(l=n.ownerDocument)==null?void 0:l.createTextNode(f);p&&h.appendChild(p)}else n.setAttribute(c,f);c==="rr_open_mode"&&n.nodeName==="DIALOG"&&vt(n,d)}catch(h){this.warn("An error occurred may due to the checkout feature.",h)}else if(c==="style"){const h=f,p=n;for(const m in h)if(h[m]===!1)p.style.removeProperty(m);else if(h[m]instanceof Array){const g=h[m];p.style.setProperty(m,g[0],g[1])}else{const g=h[m];p.style.setProperty(m,g)}}}})}applyScroll(t,r){var s,i;const a=this.mirror.getNode(t.id);if(!a)return this.debugNodeNotFound(t,t.id);const o=this.mirror.getMeta(a);if(a===this.iframe.contentDocument)(s=this.iframe.contentWindow)==null||s.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else if((o==null?void 0:o.type)===Re.Document)(i=a.defaultView)==null||i.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else try{a.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"})}catch(u){}}applyInput(t){const r=this.mirror.getNode(t.id);if(!r)return this.debugNodeNotFound(t,t.id);try{r.checked=t.isChecked,r.value=t.text}catch(s){}}applySelection(t){try{const r=new Set,s=t.ranges.map(({start:i,startOffset:a,end:o,endOffset:u})=>{const d=this.mirror.getNode(i),l=this.mirror.getNode(o);if(!d||!l)return;const n=new Range;n.setStart(d,a),n.setEnd(l,u);const c=d.ownerDocument,f=c==null?void 0:c.getSelection();return f&&r.add(f),{range:n,selection:f}});r.forEach(i=>i.removeAllRanges()),s.forEach(i=>{var a;return i&&((a=i.selection)==null?void 0:a.addRange(i.range))})}catch(r){}}applyStyleSheetMutation(t){var r;let s=null;t.styleId?s=this.styleMirror.getStyle(t.styleId):t.id&&(s=((r=this.mirror.getNode(t.id))==null?void 0:r.sheet)||null),s&&(t.source===Y.StyleSheetRule?this.applyStyleSheetRule(t,s):t.source===Y.StyleDeclaration&&this.applyStyleDeclaration(t,s))}applyStyleSheetRule(t,r){var s,i,a,o;if((s=t.adds)==null||s.forEach(({rule:u,index:d})=>{try{if(Array.isArray(d)){const{positions:l,index:n}=pn(d);Qe(r.cssRules,l).insertRule(u,n)}else{const l=d===void 0?void 0:Math.min(d,r.cssRules.length);r==null||r.insertRule(u,l)}}catch(l){}}),(i=t.removes)==null||i.forEach(({index:u})=>{try{if(Array.isArray(u)){const{positions:d,index:l}=pn(u);Qe(r.cssRules,d).deleteRule(l||0)}else r==null||r.deleteRule(u)}catch(d){}}),t.replace)try{(a=r.replace)==null||a.call(r,t.replace)}catch(u){}if(t.replaceSync)try{(o=r.replaceSync)==null||o.call(r,t.replaceSync)}catch(u){}}applyStyleDeclaration(t,r){var s,i;if(t.set){const a=Qe(r.rules,t.index);(s=a==null?void 0:a.style)==null||s.setProperty(t.set.property,t.set.value,t.set.priority)}if(t.remove){const a=Qe(r.rules,t.index);(i=a==null?void 0:a.style)==null||i.removeProperty(t.remove.property)}}applyAdoptedStyleSheet(t){var r;const s=this.mirror.getNode(t.id);if(!s)return;(r=t.styles)==null||r.forEach(u=>{var d;let l=null,n=null;if(yt(s)?n=((d=s.ownerDocument)==null?void 0:d.defaultView)||null:s.nodeName==="#document"&&(n=s.defaultView),!!n)try{l=new n.CSSStyleSheet,this.styleMirror.add(l,u.styleId),this.applyStyleSheetRule({source:Y.StyleSheetRule,adds:u.rules},l)}catch(c){}});const i=10;let a=0;const o=(u,d)=>{const l=d.map(n=>this.styleMirror.getStyle(n)).filter(n=>n!==null);yt(u)?u.shadowRoot.adoptedStyleSheets=l:u.nodeName==="#document"&&(u.adoptedStyleSheets=l),l.length!==d.length&&a<i&&(setTimeout(()=>o(u,d),0+100*a),a++)};o(s,t.styleIds)}legacy_resolveMissingNode(t,r,s,i){const{previousId:a,nextId:o}=i,u=a&&t[a],d=o&&t[o];if(u){const{node:l,mutation:n}=u;r.insertBefore(l,s),delete t[n.node.id],delete this.legacy_missingNodeRetryMap[n.node.id],(n.previousId||n.nextId)&&this.legacy_resolveMissingNode(t,r,l,n)}if(d){const{node:l,mutation:n}=d;r.insertBefore(l,s.nextSibling),delete t[n.node.id],delete this.legacy_missingNodeRetryMap[n.node.id],(n.previousId||n.nextId)&&this.legacy_resolveMissingNode(t,r,l,n)}}moveAndHover(t,r,s,i,a){const o=this.mirror.getNode(s);if(!o)return this.debugNodeNotFound(a,s);const u=Io(o,this.iframe),d=t*u.absoluteScale+u.x,l=r*u.absoluteScale+u.y;this.mouse.style.left=`${d}px`,this.mouse.style.top=`${l}px`,i||this.drawMouseTail({x:d,y:l}),this.hoverElements(o)}drawMouseTail(t){if(!this.mouseTail)return;const{lineCap:r,lineWidth:s,strokeStyle:i,duration:a}=this.config.mouseTail===!0?Zr:Object.assign({},Zr,this.config.mouseTail),o=()=>{if(!this.mouseTail)return;const u=this.mouseTail.getContext("2d");!u||!this.tailPositions.length||(u.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),u.beginPath(),u.lineWidth=s,u.lineCap=r,u.strokeStyle=i,u.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(d=>u.lineTo(d.x,d.y)),u.stroke())};this.tailPositions.push(t),o(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(u=>u!==t),o()},a/this.speedService.state.context.timer.speed)}hoverElements(t){var r;(r=this.lastHoveredRootNode||this.iframe.contentDocument)==null||r.querySelectorAll(".\\:hover").forEach(i=>{i.classList.remove(":hover")}),this.lastHoveredRootNode=t.getRootNode();let s=t;for(;s;)s.classList&&s.classList.add(":hover"),s=s.parentElement}isUserInteraction(t){return t.type!==te.IncrementalSnapshot?!1:t.data.source>Y.Mutation&&t.data.source<=Y.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(V.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(t,r){this.warn(`Node with id '${r}' not found. `,t)}warnCanvasMutationFailed(t,r){this.warn("Has error on canvas update",r,"canvas mutation:",t)}debugNodeNotFound(t,r){this.debug(`Node with id '${r}' not found. `,t)}warn(...t){this.config.showWarning&&this.config.logger.warn(xn,...t)}debug(...t){this.config.showDebug&&this.config.logger.log(xn,...t)}}var de=Uint8Array,Me=Uint16Array,li=Uint32Array,Wo=new de([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]),$o=new de([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]),Qu=new de([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),jo=function(e,t){for(var r=new Me(31),s=0;s<31;++s)r[s]=t+=1<<e[s-1];for(var i=new li(r[30]),s=1;s<30;++s)for(var a=r[s];a<r[s+1];++a)i[a]=a-r[s]<<5|s;return[r,i]},Vo=jo(Wo,2),Go=Vo[0],Ku=Vo[1];Go[28]=258,Ku[258]=28;var Zu=jo($o,0),ec=Zu[0],ui=new Me(32768);for(var K=0;K<32768;++K){var Ee=(K&43690)>>>1|(K&21845)<<1;Ee=(Ee&52428)>>>2|(Ee&13107)<<2,Ee=(Ee&61680)>>>4|(Ee&3855)<<4,ui[K]=((Ee&65280)>>>8|(Ee&255)<<8)>>>1}var tt=function(e,t,r){for(var s=e.length,i=0,a=new Me(t);i<s;++i)++a[e[i]-1];var o=new Me(t);for(i=0;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var u;if(r){u=new Me(1<<t);var d=15-t;for(i=0;i<s;++i)if(e[i])for(var l=i<<4|e[i],n=t-e[i],c=o[e[i]-1]++<<n,f=c|(1<<n)-1;c<=f;++c)u[ui[c]>>>d]=l}else for(u=new Me(s),i=0;i<s;++i)u[i]=ui[o[e[i]-1]++]>>>15-e[i];return u},lt=new de(288);for(var K=0;K<144;++K)lt[K]=8;for(var K=144;K<256;++K)lt[K]=9;for(var K=256;K<280;++K)lt[K]=7;for(var K=280;K<288;++K)lt[K]=8;var Ho=new de(32);for(var K=0;K<32;++K)Ho[K]=5;var tc=tt(lt,9,1),rc=tt(Ho,5,1),ei=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},pe=function(e,t,r){var s=t/8>>0;return(e[s]|e[s+1]<<8)>>>(t&7)&r},ti=function(e,t){var r=t/8>>0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>>(t&7)},ic=function(e){return(e/8>>0)+(e&7&&1)},Yo=function(e,t,r){(r==null||r>e.length)&&(r=e.length);var s=new(e instanceof Me?Me:e instanceof li?li:de)(r-t);return s.set(e.subarray(t,r)),s},sc=function(e,t,r){var s=e.length,i=!t||r,a=!r||r.i;r||(r={}),t||(t=new de(s*3));var o=function(O){var P=t.length;if(O>P){var $=new de(Math.max(P*2,O));$.set(t),t=$}},u=r.f||0,d=r.p||0,l=r.b||0,n=r.l,c=r.d,f=r.m,h=r.n,p=s*8;do{if(!n){r.f=u=pe(e,d,1);var m=pe(e,d+1,3);if(d+=3,m)if(m==1)n=tc,c=rc,f=9,h=5;else if(m==2){var S=pe(e,d,31)+257,E=pe(e,d+10,15)+4,w=S+pe(e,d+5,31)+1;d+=14;for(var b=new de(w),C=new de(19),R=0;R<E;++R)C[Qu[R]]=pe(e,d+R*3,7);d+=E*3;var N=ei(C),x=(1<<N)-1;if(!a&&d+w*(N+7)>p)break;for(var I=tt(C,N,1),R=0;R<w;){var T=I[pe(e,d,x)];d+=T&15;var g=T>>>4;if(g<16)b[R++]=g;else{var J=0,U=0;for(g==16?(U=3+pe(e,d,3),d+=2,J=b[R-1]):g==17?(U=3+pe(e,d,7),d+=3):g==18&&(U=11+pe(e,d,127),d+=7);U--;)b[R++]=J}}var M=b.subarray(0,S),q=b.subarray(S);f=ei(M),h=ei(q),n=tt(M,f,1),c=tt(q,h,1)}else throw"invalid block type";else{var g=ic(d)+4,v=e[g-4]|e[g-3]<<8,y=g+v;if(y>s){if(a)throw"unexpected EOF";break}i&&o(l+v),t.set(e.subarray(g,y),l),r.b=l+=v,r.p=d=y*8;continue}if(d>p)throw"unexpected EOF"}i&&o(l+131072);for(var L=(1<<f)-1,j=(1<<h)-1,H=f+h+18;a||d+H<p;){var J=n[ti(e,d)&L],z=J>>>4;if(d+=J&15,d>p)throw"unexpected EOF";if(!J)throw"invalid length/literal";if(z<256)t[l++]=z;else if(z==256){n=null;break}else{var X=z-254;if(z>264){var R=z-257,ae=Wo[R];X=pe(e,d,(1<<ae)-1)+Go[R],d+=ae}var _=c[ti(e,d)&j],D=_>>>4;if(!_)throw"invalid distance";d+=_&15;var q=ec[D];if(D>3){var ae=$o[D];q+=ti(e,d)&(1<<ae)-1,d+=ae}if(d>p)throw"unexpected EOF";i&&o(l+131072);for(var A=l+X;l<A;l+=4)t[l]=t[l-q],t[l+1]=t[l+1-q],t[l+2]=t[l+2-q],t[l+3]=t[l+3-q];l=A}}r.l=n,r.p=d,r.b=l,n&&(u=1,r.m=f,r.d=c,r.n=h)}while(!u);return l==t.length?t:Yo(t,0,l)},nc=function(e){if((e[0]&15)!=8||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(e[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function oc(e,t){return sc((nc(e),e.subarray(2,-4)),t)}function ac(e,t){for(var r=e.length,s=new de(e.length+(e.length>>>1)),i=0,a=function(l){s[i++]=l},o=0;o<r;++o){if(i+5>s.length){var u=new de(i+8+(r-o<<1));u.set(s),s=u}var d=e.charCodeAt(o);a(d)}return Yo(s,0,i)}function lc(e,t){var r="";if(typeof TextDecoder!="undefined")return new TextDecoder().decode(e);for(var s=0;s<e.length;){var i=e[s++];i<128||t?r+=String.fromCharCode(i):i<224?r+=String.fromCharCode((i&31)<<6|e[s++]&63):i<240?r+=String.fromCharCode((i&15)<<12|(e[s++]&63)<<6|e[s++]&63):(i=((i&15)<<18|(e[s++]&63)<<12|(e[s++]&63)<<6|e[s++]&63)-65536,r+=String.fromCharCode(55296|i>>10,56320|i&1023))}return r}const Nn="v1",uc=e=>{if(typeof e!="string")return e;try{const t=JSON.parse(e);if(t.timestamp)return t}catch(t){}try{const t=JSON.parse(lc(oc(ac(e,!0))));if(t.v===Nn)return t;throw new Error(`These events were packed with packer ${t.v} which is incompatible with current packer ${Nn}.`)}catch(t){throw console.error(t),new Error("Unknown data format.")}};var Fi=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Fi||{}),ci=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ci||{});function _n(e){let t="";return Object.keys(e).forEach(r=>{t+=`${r}: ${e[r]};`}),t}function Xe(e,t=2){let r=String(e);const s=Math.pow(10,t-1);if(e<s)for(;String(s).length>r.length;)r=`0${e}`;return r}const Jo=1e3,hi=60*Jo,On=60*hi;function bt(e){if(e<=0)return"00:00";const t=Math.floor(e/On);e=e%On;const r=Math.floor(e/hi);e=e%hi;const s=Math.floor(e/Jo);return t?`${Xe(t)}:${Xe(r)}:${Xe(s)}`:`${Xe(r)}:${Xe(s)}`}function cc(e){return e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():Promise.resolve()}function hc(){return document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():Promise.resolve()}function An(){let e=!1;return["fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement"].forEach(t=>{t in document&&(e=e||!!document[t])}),e}function fc(e){return document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e),()=>{document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e)}}function Dn(e){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(e)]}function dc(e){return e.type!==Fi.IncrementalSnapshot?!1:e.data.source>ci.Mutation&&e.data.source<=ci.Input}function pc(e,t){const r=[];let s=e[0].timestamp;for(const i of e)dc(i)&&(i.timestamp-s>t&&r.push([s,i.timestamp]),s=i.timestamp);return r}function mc(e){let t,r,s,i,a,o,u,d,l;return{c(){t=oe("div"),r=oe("input"),s=fe(),i=oe("label"),a=fe(),o=oe("span"),u=Te(e[3]),B(r,"type","checkbox"),B(r,"id",e[2]),r.disabled=e[1],B(r,"class","svelte-a6h7w7"),B(i,"for",e[2]),B(i,"class","svelte-a6h7w7"),B(o,"class","label svelte-a6h7w7"),B(t,"class","switch svelte-a6h7w7"),Ve(t,"disabled",e[1])},m(n,c){Ce(n,t,c),G(t,r),r.checked=e[0],G(t,s),G(t,i),G(t,a),G(t,o),G(o,u),d||(l=We(r,"change",e[4]),d=!0)},p(n,[c]){c&4&&B(r,"id",n[2]),c&2&&(r.disabled=n[1]),c&1&&(r.checked=n[0]),c&4&&B(i,"for",n[2]),c&8&&Et(u,n[3]),c&2&&Ve(t,"disabled",n[1])},i:rt,o:rt,d(n){n&&ve(t),d=!1,l()}}}function gc(e,t,r){let{disabled:s}=t,{checked:i}=t,{id:a}=t,{label:o}=t;function u(){i=this.checked,r(0,i)}return e.$$set=d=>{"disabled"in d&&r(1,s=d.disabled),"checked"in d&&r(0,i=d.checked),"id"in d&&r(2,a=d.id),"label"in d&&r(3,o=d.label)},[i,s,a,o,u]}class yc extends gi{constructor(t){super(),mi(this,t,gc,mc,fi,{disabled:1,checked:0,id:2,label:3})}}function Pn(e,t,r){const s=e.slice();return s[38]=t[r],s}function Tn(e,t,r){const s=e.slice();return s[41]=t[r],s}function kn(e,t,r){const s=e.slice();return s[44]=t[r],s}function In(e){let t,r,s,i=bt(e[6])+"",a,o,u,d,l,n,c,f,h,p,m=bt(e[8].totalTime)+"",g,v,y,S,E,w,b,C,R,N,x,I,T,J=Fe(e[13]),U=[];for(let D=0;D<J.length;D+=1)U[D]=Ln(kn(e,J,D));let M=Fe(e[9]),q=[];for(let D=0;D<M.length;D+=1)q[D]=Fn(Tn(e,M,D));function L(D,A){return D[7]==="playing"?vc:wc}let j=L(e),H=j(e),z=Fe(e[3]),X=[];for(let D=0;D<z.length;D+=1)X[D]=Bn(Pn(e,z,D));function ae(D){e[29](D)}let _={id:"skip",disabled:e[10]==="skipping",label:"skip inactive"};return e[0]!==void 0&&(_.checked=e[0]),b=new yc({props:_}),Pe.push(()=>ma(b,"checked",ae)),{c(){t=oe("div"),r=oe("div"),s=oe("span"),a=Te(i),o=fe(),u=oe("div"),d=oe("div"),l=fe();for(let D=0;D<U.length;D+=1)U[D].c();n=fe();for(let D=0;D<q.length;D+=1)q[D].c();c=fe(),f=oe("div"),h=fe(),p=oe("span"),g=Te(m),v=fe(),y=oe("div"),S=oe("button"),H.c(),E=fe();for(let D=0;D<X.length;D+=1)X[D].c();w=fe(),Jn(b.$$.fragment),R=fe(),N=oe("button"),N.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
|
|
164
|
+
***************************************************************************** */function yn(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var s,i,a=r.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(s=a.next()).done;)o.push(s.value)}catch(u){i={error:u}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}var $e;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})($e||($e={}));var Fo={type:"xstate.init"};function Kr(e){return e===void 0?[]:[].concat(e)}function qe(e){return{type:"xstate.assign",assignment:e}}function wn(e,t){return typeof(e=typeof e=="string"&&t&&t[e]?t[e]:e)=="string"?{type:e}:typeof e=="function"?{type:e.name,exec:e}:e}function Nt(e){return function(t){return e===t}}function Bo(e){return typeof e=="string"?{type:e}:e}function vn(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Nt(e)}}function bn(e,t,r){var s=t,i=!1;return[e.filter(function(a){if(a.type==="xstate.assign"){i=!0;var o=Object.assign({},s);return typeof a.assignment=="function"?o=a.assignment(s,r):Object.keys(a.assignment).forEach(function(u){o[u]=typeof a.assignment[u]=="function"?a.assignment[u](s,r):a.assignment[u]}),s=o,!1}return!0}),s,i]}function Uo(e,t){t===void 0&&(t={});var r=yn(bn(Kr(e.states[e.initial].entry).map(function(o){return wn(o,t.actions)}),e.context,Fo),2),s=r[0],i=r[1],a={config:e,_options:t,initialState:{value:e.initial,actions:s,context:i,matches:Nt(e.initial)},transition:function(o,u){var d,l,n=typeof o=="string"?{value:o,context:e.context}:o,c=n.value,f=n.context,h=Bo(u),p=e.states[c];if(p.on){var m=Kr(p.on[h.type]);try{for(var g=function(L){var j=typeof Symbol=="function"&&Symbol.iterator,H=j&&L[j],z=0;if(H)return H.call(L);if(L&&typeof L.length=="number")return{next:function(){return L&&z>=L.length&&(L=void 0),{value:L&&L[z++],done:!L}}};throw new TypeError(j?"Object is not iterable.":"Symbol.iterator is not defined.")}(m),v=g.next();!v.done;v=g.next()){var y=v.value;if(y===void 0)return vn(c,f);var S=typeof y=="string"?{target:y}:y,E=S.target,w=S.actions,b=w===void 0?[]:w,C=S.cond,R=C===void 0?function(){return!0}:C,N=E===void 0,x=E!=null?E:c,I=e.states[x];if(R(f,h)){var T=yn(bn((N?Kr(b):[].concat(p.exit,b,I.entry).filter(function(L){return L})).map(function(L){return wn(L,a._options.actions)}),f,h),3),X=T[0],U=T[1],M=T[2],q=E!=null?E:c;return{value:q,context:U,actions:X,changed:E!==c||X.length>0||M,matches:Nt(q)}}}}catch(L){d={error:L}}finally{try{v&&!v.done&&(l=g.return)&&l.call(g)}finally{if(d)throw d.error}}}return vn(c,f)}};return a}var Sn=function(e,t){return e.actions.forEach(function(r){var s=r.exec;return s&&s(e.context,t)})};function zo(e){var t=e.initialState,r=$e.NotStarted,s=new Set,i={_machine:e,send:function(a){r===$e.Running&&(t=e.transition(t,a),Sn(t,Bo(a)),s.forEach(function(o){return o(t)}))},subscribe:function(a){return s.add(a),a(t),{unsubscribe:function(){return s.delete(a)}}},start:function(a){if(a){var o=typeof a=="object"?a:{context:e.config.context,value:a};t={value:o.value,actions:[],context:o.context,matches:Nt(o.value)}}return r=$e.Running,Sn(t,Fo),i},stop:function(){return r=$e.Stopped,s.clear(),i},get state(){return t},get status(){return r}};return i}function Fu(e,t){for(let r=e.length-1;r>=0;r--){const s=e[r];if(s.type===te.Meta&&s.timestamp<=t)return e.slice(r)}return e}function Bu(e,{getCastFn:t,applyEventsSynchronously:r,emitter:s}){const i=Uo({id:"player",context:e,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:qe({lastPlayedEvent:(a,o)=>o.type==="CAST_EVENT"?o.payload.event:a.lastPlayedEvent}),recordTimeOffset:qe((a,o)=>{let u=a.timeOffset;return"payload"in o&&"timeOffset"in o.payload&&(u=o.payload.timeOffset),le(Y({},a),{timeOffset:u,baselineTime:a.events[0].timestamp+u})}),play(a){var o;const{timer:u,events:d,baselineTime:l,lastPlayedEvent:n}=a;u.clear();for(const p of d)gn(p,l);const c=Fu(d,l);let f=n==null?void 0:n.timestamp;(n==null?void 0:n.type)===te.IncrementalSnapshot&&n.data.source===J.MouseMove&&(f=n.timestamp+((o=n.data.positions[0])==null?void 0:o.timeOffset)),l<(f||0)&&s.emit(V.PlayBack);const h=new Array;for(const p of c)if(!(f&&f<l&&(p.timestamp<=f||p===n)))if(p.timestamp<l)h.push(p);else{const m=t(p,!1);u.addAction({doAction:()=>{m()},delay:p.delay})}r(h),s.emit(V.Flush),u.start()},pause(a){a.timer.clear()},resetLastPlayedEvent:qe(a=>le(Y({},a),{lastPlayedEvent:null})),startLive:qe({baselineTime:(a,o)=>(a.timer.start(),o.type==="TO_LIVE"&&o.payload.baselineTime?o.payload.baselineTime:Date.now())}),addEvent:qe((a,o)=>{const{baselineTime:u,timer:d,events:l}=a;if(o.type==="ADD_EVENT"){const{event:n}=o.payload;gn(n,u);let c=l.length-1;if(!l[c]||l[c].timestamp<=n.timestamp)l.push(n);else{let p=-1,m=0;for(;m<=c;){const g=Math.floor((m+c)/2);l[g].timestamp<=n.timestamp?m=g+1:c=g-1}p===-1&&(p=m),l.splice(p,0,n)}const f=n.timestamp<u,h=t(n,f);f?h():d.isActive()&&d.addAction({doAction:()=>{h()},delay:n.delay})}return le(Y({},a),{events:l})})}});return zo(i)}function Uu(e){const t=Uo({id:"speed",context:e,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:(r,s)=>{"payload"in s&&r.timer.setSpeed(s.payload.speed)},recordSpeed:qe({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return zo(t)}const zu=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Cn=new Map;function qo(e,t){let r=Cn.get(e);return r||(r=new Map,Cn.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function xe(e,t,r){return async s=>{if(s&&typeof s=="object"&&"rr_type"in s)if(r&&(r.isUnchanged=!1),s.rr_type==="ImageBitmap"&&"args"in s){const i=await xe(e,t,r)(s.args);return await createImageBitmap.apply(null,i)}else if("index"in s){if(r||t===null)return s;const{rr_type:i,index:a}=s;return qo(t,i)[a]}else if("args"in s){const{rr_type:i,args:a}=s,o=window[i];return new o(...await Promise.all(a.map(xe(e,t,r))))}else{if("base64"in s)return Pu(s.base64);if("src"in s){const i=e.get(s.src);if(i)return i;{const a=new Image;return a.src=s.src,e.set(s.src,a),a}}else if("data"in s&&s.rr_type==="Blob"){const i=await Promise.all(s.data.map(xe(e,t,r)));return new Blob(i,{type:s.type})}}else if(Array.isArray(s))return await Promise.all(s.map(xe(e,t,r)));return s}}function qu(e,t){try{return t===Mt.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch(r){return null}}const Wu=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function $u(e,t){if(!(t!=null&&t.constructor))return;const{name:r}=t.constructor;if(!Wu.includes(r))return;const s=qo(e,r);s.includes(t)||s.push(t)}async function ju({mutation:e,target:t,type:r,imageMap:s,errorHandler:i}){try{const a=qu(t,r);if(!a)return;if(e.setter){a[e.property]=e.args[0];return}const o=a[e.property],u=await Promise.all(e.args.map(xe(s,a))),d=o.apply(a,u);$u(a,d);const l=!1}catch(a){i(e,a)}}async function Vu({event:e,mutations:t,target:r,imageMap:s,errorHandler:i}){const a=r.getContext("2d");if(!a){i(t[0],new Error("Canvas context is null"));return}const o=t.map(async d=>Promise.all(d.args.map(xe(s,a))));(await Promise.all(o)).forEach((d,l)=>{const n=t[l];try{if(n.setter){a[n.property]=n.args[0];return}const c=a[n.property];n.property==="drawImage"&&typeof n.args[0]=="string"?(s.get(e),c.apply(a,n.args)):c.apply(a,d)}catch(c){i(n,c)}})}async function En({event:e,mutation:t,target:r,imageMap:s,canvasEventMap:i,errorHandler:a}){try{const o=i.get(e)||t,u="commands"in o?o.commands:[o];if([Mt.WebGL,Mt.WebGL2].includes(t.type)){for(let d=0;d<u.length;d++){const l=u[d];await ju({mutation:l,type:t.type,target:r,imageMap:s,errorHandler:a})}return}await Vu({event:e,mutations:u,target:r,imageMap:s,errorHandler:a})}catch(o){a(t,o)}}const Rn=["AUDIO","VIDEO"];class Gu{constructor(t){F(this,"mediaMap",new Map),F(this,"warn"),F(this,"service"),F(this,"speedService"),F(this,"emitter"),F(this,"getCurrentTime"),F(this,"metadataCallbackMap",new Map),this.warn=t.warn,this.service=t.service,this.speedService=t.speedService,this.emitter=t.emitter,this.getCurrentTime=t.getCurrentTime,this.emitter.on(V.Start,this.start.bind(this)),this.emitter.on(V.SkipStart,this.start.bind(this)),this.emitter.on(V.Pause,this.pause.bind(this)),this.emitter.on(V.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(t={pause:!1}){this.mediaMap.forEach((r,s)=>{this.syncTargetWithState(s),t.pause&&s.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:t,target:r,mediaState:s}){if(s.isPlaying){const a=(t-s.lastInteractionTimeOffset)/1e3*s.playbackRate,o="duration"in r&&r.duration;if(Number.isNaN(o)){this.waitForMetadata(r);return}let u=s.currentTimeAtLastInteraction+a;r.loop&&o!==!1&&(u=u%o),r.currentTime=u}else r.pause(),r.currentTime=s.currentTimeAtLastInteraction}waitForMetadata(t){if(this.metadataCallbackMap.has(t)||!("addEventListener"in t))return;const r=()=>{this.metadataCallbackMap.delete(t);const s=this.mediaMap.get(t);s&&this.seekTo({time:this.getCurrentTime(),target:t,mediaState:s})};this.metadataCallbackMap.set(t,r),t.addEventListener("loadedmetadata",r,{once:!0})}getMediaStateFromMutation({target:t,timeOffset:r,mutation:s}){var h,p,m,g,v;const i=this.mediaMap.get(t),{type:a,playbackRate:o,currentTime:u,muted:d,volume:l,loop:n}=s;return{isPlaying:a===ai.Play||a!==ai.Pause&&((i==null?void 0:i.isPlaying)||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:(h=u!=null?u:i==null?void 0:i.currentTimeAtLastInteraction)!=null?h:0,lastInteractionTimeOffset:r,playbackRate:(p=o!=null?o:i==null?void 0:i.playbackRate)!=null?p:1,volume:(m=l!=null?l:i==null?void 0:i.volume)!=null?m:1,muted:(g=d!=null?d:i==null?void 0:i.muted)!=null?g:t.getAttribute("muted")===null,loop:(v=n!=null?n:i==null?void 0:i.loop)!=null?v:t.getAttribute("loop")===null}}syncTargetWithState(t){const r=this.mediaMap.get(t);if(!r)return;const{muted:s,loop:i,volume:a,isPlaying:o}=r,u=this.service.state.matches("paused"),d=r.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:t,mediaState:r}),t.volume!==a&&(t.volume=a),t.muted=s,t.loop=i,t.playbackRate!==d&&(t.playbackRate=d),o&&!u?t.play():t.pause()}catch(l){this.warn(`Failed to replay media interactions: ${l.message||l}`)}}addMediaElements(t,r,s){if(!this.isSupportedMediaElement(t))return;const i=t,a=s.getMeta(i);if(!a||!("attributes"in a))return;const o=this.service.state.matches("paused"),u=a.attributes;let d=!1;u.rr_mediaState?d=u.rr_mediaState==="played":d=i.getAttribute("autoplay")!==null,d&&o&&i.pause();let l=1;typeof u.rr_mediaPlaybackRate=="number"&&(l=u.rr_mediaPlaybackRate);let n=!1;typeof u.rr_mediaMuted=="boolean"?n=u.rr_mediaMuted:n=i.getAttribute("muted")!==null;let c=!1;typeof u.rr_mediaLoop=="boolean"?c=u.rr_mediaLoop:c=i.getAttribute("loop")!==null;let f=1;typeof u.rr_mediaVolume=="number"&&(f=u.rr_mediaVolume);let h=0;typeof u.rr_mediaCurrentTime=="number"&&(h=u.rr_mediaCurrentTime),this.mediaMap.set(i,{isPlaying:d,currentTimeAtLastInteraction:h,lastInteractionTimeOffset:r,playbackRate:l,volume:f,muted:n,loop:c}),this.syncTargetWithState(i)}mediaMutation({target:t,timeOffset:r,mutation:s}){Rn.includes(t.nodeName)&&(this.mediaMap.set(t,this.getMediaStateFromMutation({target:t,timeOffset:r,mutation:s})),this.syncTargetWithState(t))}isSupportedMediaElement(t){return Rn.includes(t.nodeName)}reset(){this.mediaMap.clear()}}function vt(e,t){if(e.nodeName!=="DIALOG"||e instanceof ye)return;const r=e,s=r.open,i=s&&r.matches("dialog:modal"),a=r.getAttribute("rr_open_mode"),o=typeof(t==null?void 0:t.attributes.open)=="string"||typeof r.getAttribute("open")=="string",u=a==="modal";if(!(s&&!(i&&a==="non-modal"||!i&&u))){if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}s&&r.close(),o&&(u?r.showModal():r.show())}}function Hu(e,t){if(e.nodeName!=="DIALOG"||e instanceof ye)return;const r=e;if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}t.attributes.open===null&&(r.removeAttribute("open"),r.removeAttribute("rr_open_mode"))}const Yu=5*1e3,Ju=Lo||ku,xn="[replayer]",Zr={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Mn(e){return e.type==te.IncrementalSnapshot&&(e.data.source==J.TouchMove||e.data.source==J.MouseInteraction&&e.data.type==ne.TouchStart)}class Xu{constructor(t,r){if(F(this,"wrapper"),F(this,"iframe"),F(this,"service"),F(this,"speedService"),F(this,"config"),F(this,"usingVirtualDom",!1),F(this,"virtualDom",new Ye),F(this,"mouse"),F(this,"mouseTail",null),F(this,"tailPositions",[]),F(this,"emitter",Ju()),F(this,"nextUserInteractionEvent"),F(this,"legacy_missingNodeRetryMap",{}),F(this,"cache",_s()),F(this,"imageMap",new Map),F(this,"canvasEventMap",new Map),F(this,"mirror",Zn()),F(this,"styleMirror",new Du),F(this,"mediaManager"),F(this,"firstFullSnapshot",null),F(this,"newDocumentQueue",[]),F(this,"mousePos",null),F(this,"touchActive",null),F(this,"lastMouseDownEvent",null),F(this,"lastHoveredRootNode"),F(this,"lastSelectionData",null),F(this,"constructedStyleMutations",[]),F(this,"adoptedStyleSheets",[]),F(this,"emitterHandlers",[]),F(this,"serviceSubscription"),F(this,"speedServiceSubscription"),F(this,"timeouts",new Set),F(this,"styleSheetLoadListeners",new Map),F(this,"handleResize",l=>{this.iframe.style.display="inherit";for(const n of[this.mouseTail,this.iframe])n&&(n.setAttribute("width",String(l.width)),n.setAttribute("height",String(l.height)))}),F(this,"applyEventsSynchronously",l=>{for(const n of l){switch(n.type){case te.DomContentLoaded:case te.Load:case te.Custom:continue;case te.FullSnapshot:case te.Meta:case te.Plugin:case te.IncrementalSnapshot:break}this.getCastFn(n,!0)()}}),F(this,"getCastFn",(l,n=!1)=>{let c;switch(l.type){case te.DomContentLoaded:case te.Load:break;case te.Custom:c=()=>{this.emitter.emit(V.CustomEvent,l)};break;case te.Meta:c=()=>this.emitter.emit(V.Resize,{width:l.data.width,height:l.data.height});break;case te.FullSnapshot:c=()=>{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,n),(h=this.iframe.contentWindow)==null||h.scrollTo(l.data.initialOffset)};break;case te.IncrementalSnapshot:c=()=>{if(this.applyIncremental(l,n),!n&&(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,p={speed:Math.min(Math.round(h/Yu),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:p}),this.emitter.emit(V.SkipStart,p)}}};break}return()=>{c&&c();for(const p of this.config.plugins||[])p.handler&&p.handler(l,n,{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 p=()=>{h<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(V.Finish))};let m=50;l.type===te.IncrementalSnapshot&&l.data.source===J.MouseMove&&l.data.positions.length&&(m+=Math.max(0,-l.data.positions[0].timeOffset)),setTimeout(p,m)}this.emitter.emit(V.EventCast,l)}}),!(r!=null&&r.liveMode)&&t.length<2)throw new Error("Replayer need at least 2 events.");const s={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:Zr,useVirtualDom:!0,logger:console};this.config=Object.assign({},s,r),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.addEmitterHandler(V.Resize,this.handleResize),this.setupDom();for(const l of this.config.plugins||[])l.getMirror&&l.getMirror({nodeMirror:this.mirror});const i=()=>{if(this.usingVirtualDom){const l={mirror:this.mirror,applyCanvas:(n,c,f)=>{En({event:n,mutation:c,target:f,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(n,c)=>{n.source===J.StyleSheetRule?this.applyStyleSheetRule(n,c):n.source===J.StyleDeclaration&&this.applyStyleDeclaration(n,c)},afterAppend:(n,c)=>{for(const f of this.config.plugins||[])f.onBuild&&f.onBuild(n,{id:c,replayer:this})}};if(this.iframe.contentDocument)try{Rt(this.iframe.contentDocument,this.virtualDom,l,this.virtualDom.mirror)}catch(n){this.warn(n)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(const n in this.legacy_missingNodeRetryMap)try{const c=this.legacy_missingNodeRetryMap[n],f=xt(c.node,this.mirror,this.virtualDom.mirror);Rt(f,c.node,l,this.virtualDom.mirror),c.node=f}catch(c){this.warn(c)}this.constructedStyleMutations.forEach(n=>{this.applyStyleSheetMutation(n)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(n=>{this.applyAdoptedStyleSheet(n)}),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,n]=this.lastMouseDownEvent;l.dispatchEvent(n)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)};this.addEmitterHandler(V.Flush,i);const a=()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()};this.addEmitterHandler(V.PlayBack,a);const o=new Lu([],{speed:this.config.speed});this.service=Bu({events:t.map(l=>r&&r.unpackFn?r.unpackFn(l):l).sort((l,n)=>l.timestamp-n.timestamp),timer:o,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.serviceSubscription=this.service.subscribe(l=>{this.emitter.emit(V.StateChange,{player:l})}),this.speedService=Uu({normalSpeed:-1,timer:o}),this.speedService.start(),this.speedServiceSubscription=this.speedService.subscribe(l=>{this.emitter.emit(V.StateChange,{speed:l})}),this.mediaManager=new Gu({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});const u=this.service.state.context.events.find(l=>l.type===te.Meta),d=this.service.state.context.events.find(l=>l.type===te.FullSnapshot);if(u){const{width:l,height:n}=u.data;this.addTimeout(()=>{this.emitter.emit(V.Resize,{width:l,height:n})},0)}d&&this.addTimeout(()=>{var l;this.firstFullSnapshot||(this.firstFullSnapshot=d,this.rebuildFullSnapshot(d),(l=this.iframe.contentWindow)==null||l.scrollTo(d.data.initialOffset))},1),this.service.state.context.events.find(Mn)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(t,r){return this.emitter.on(t,r),this}off(t,r){return this.emitter.off(t,r),this}addEmitterHandler(t,r){this.emitter.on(t,r),this.emitterHandlers.push({event:t,handler:r})}addTimeout(t,r){const s=setTimeout(()=>{this.timeouts.delete(s),t()},r);return this.timeouts.add(s),s}setConfig(t){Object.keys(t).forEach(r=>{t[r],this.config[r]=t[r]}),this.config.skipInactive||this.backToNormal(),typeof t.speed!="undefined"&&this.speedService.send({type:"SET_SPEED",payload:{speed:t.speed}}),typeof t.mouseTail!="undefined"&&(t.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 t=this.service.state.context.events[0],r=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:t.timestamp,endTime:r.timestamp,totalTime:r.timestamp-t.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){const{baselineTime:t,events:r}=this.service.state.context;return t-r[0].timestamp}getMirror(){return this.mirror}play(t=0){var r,s;this.service.state.matches("paused")?this.service.send({type:"PLAY",payload:{timeOffset:t}}):(this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:t}})),(s=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||s.classList.remove("rrweb-paused"),this.emitter.emit(V.Start)}pause(t){var r,s;t===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof t=="number"&&(this.play(t),this.service.send({type:"PAUSE"})),(s=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||s.classList.add("rrweb-paused"),this.emitter.emit(V.Pause)}resume(t=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(t),this.emitter.emit(V.Resume)}destroy(){var t,r;!this.wrapper||!this.wrapper.parentNode||(this.pause(),this.emitterHandlers.forEach(({event:s,handler:i})=>{this.emitter.off(s,i)}),this.emitterHandlers=[],(t=this.serviceSubscription)==null||t.unsubscribe(),(r=this.speedServiceSubscription)==null||r.unsubscribe(),this.serviceSubscription=void 0,this.speedServiceSubscription=void 0,this.service.stop(),this.speedService.stop(),this.timeouts.forEach(s=>clearTimeout(s)),this.timeouts.clear(),this.styleSheetLoadListeners.forEach((s,i)=>{i.removeEventListener("load",s)}),this.styleSheetLoadListeners.clear(),this.imageMap.clear(),this.canvasEventMap.clear(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.resetCache(),this.config.root.removeChild(this.wrapper),this.emitter.emit(V.Destroy))}startLive(t){this.service.send({type:"TO_LIVE",payload:{baselineTime:t}})}addEvent(t){const r=this.config.unpackFn?this.config.unpackFn(t):t;Mn(r)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:r}}))}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=_s()}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 t=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&t.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",t.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(Iu(this.iframe.contentWindow,this.iframe.contentDocument),_u(this.iframe.contentWindow))}rebuildFullSnapshot(t,r=!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 s=[],i=new Set,a=(d,l)=>{if(d.nodeName==="DIALOG"&&i.add(d),this.collectIframeAndAttachDocument(s,d),this.mediaManager.isSupportedMediaElement(d)){const{events:n}=this.service.state.context;this.mediaManager.addMediaElements(d,t.timestamp-n[0].timestamp,this.mirror)}for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(d,{id:l,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),al(t.data.node,{doc:this.iframe.contentDocument,afterAppend:a,cache:this.cache,mirror:this.mirror}),a(this.iframe.contentDocument,t.data.node.id);for(const{mutationInQueue:d,builtNode:l}of s)this.attachDocumentToIframe(d,l),this.newDocumentQueue=this.newDocumentQueue.filter(n=>n!==d);const{documentElement:o,head:u}=this.iframe.contentDocument;this.insertStyleRules(o,u),i.forEach(d=>vt(d)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(V.FullsnapshotRebuilded,t),r||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(t,r){var s;const i=zu(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&i.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),this.usingVirtualDom){const a=this.virtualDom.createElement("style");this.virtualDom.mirror.add(a,Po(a,this.virtualDom.unserializedId)),t.insertBefore(a,r),a.rules.push({source:J.StyleSheetRule,adds:i.map((o,u)=>({rule:o,index:u}))})}else{const a=document.createElement("style");t.insertBefore(a,r);for(let o=0;o<i.length;o++)(s=a.sheet)==null||s.insertRule(i[o],o)}}attachDocumentToIframe(t,r){const s=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,i=[],a=new Set,o=(u,d)=>{u.nodeName==="DIALOG"&&a.add(u),this.collectIframeAndAttachDocument(i,u);const l=s.getMeta(u);if((l==null?void 0:l.type)===Re.Element&&(l==null?void 0:l.tagName.toUpperCase())==="HTML"){const{documentElement:n,head:c}=r.contentDocument;this.insertStyleRules(n,c)}if(!this.usingVirtualDom)for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(u,{id:d,replayer:this})};et(t.node,{doc:r.contentDocument,mirror:s,hackCss:!0,skipChild:!1,afterAppend:o,cache:this.cache}),o(r.contentDocument,t.node.id);for(const{mutationInQueue:u,builtNode:d}of i)this.attachDocumentToIframe(u,d),this.newDocumentQueue=this.newDocumentQueue.filter(l=>l!==u);a.forEach(u=>vt(u))}collectIframeAndAttachDocument(t,r){if(Qr(r,this.mirror)){const s=this.newDocumentQueue.find(i=>i.parentId===this.mirror.getId(r));s&&t.push({mutationInQueue:s,builtNode:r})}}waitForStylesheetLoad(){var t;const r=(t=this.iframe.contentDocument)==null?void 0:t.head;if(r){const s=new Set;let i,a=this.service.state;const o=()=>{a=this.service.state};this.emitter.on(V.Start,o),this.emitter.on(V.Pause,o);const u=()=>{this.emitter.off(V.Start,o),this.emitter.off(V.Pause,o)};r.querySelectorAll('link[rel="stylesheet"]').forEach(d=>{d.sheet||(s.add(d),d.addEventListener("load",()=>{s.delete(d),s.size===0&&i!==-1&&(a.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(V.LoadStylesheetEnd),i&&clearTimeout(i),u())}))}),s.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(V.LoadStylesheetStart),i=setTimeout(()=>{a.matches("playing")&&this.play(this.getCurrentTime()),i=-1,u()},this.config.loadTimeout))}}async preloadAllImages(){const t=[];for(const r of this.service.state.context.events)r.type===te.IncrementalSnapshot&&r.data.source===J.CanvasMutation&&(t.push(this.deserializeAndPreloadCanvasEvents(r.data,r)),("commands"in r.data?r.data.commands:[r.data]).forEach(i=>{this.preloadImages(i,r)}));return Promise.all(t)}preloadImages(t,r){if(t.property==="drawImage"&&typeof t.args[0]=="string"&&!this.imageMap.has(r)){const s=document.createElement("canvas"),i=s.getContext("2d"),a=i==null?void 0:i.createImageData(s.width,s.height);i==null||i.putImageData(a,0,0)}}async deserializeAndPreloadCanvasEvents(t,r){if(!this.canvasEventMap.has(r)){const s={isUnchanged:!0};if("commands"in t){const i=await Promise.all(t.commands.map(async a=>{const o=await Promise.all(a.args.map(xe(this.imageMap,null,s)));return le(Y({},a),{args:o})}));s.isUnchanged===!1&&this.canvasEventMap.set(r,le(Y({},t),{commands:i}))}else{const i=await Promise.all(t.args.map(xe(this.imageMap,null,s)));s.isUnchanged===!1&&this.canvasEventMap.set(r,le(Y({},t),{args:i}))}}}applyIncremental(t,r){var s,i,a;const{data:o}=t;switch(o.source){case J.Mutation:{try{this.applyMutation(o,r)}catch(u){this.warn(`Exception in mutation ${u.message||u}`,o)}break}case J.Drag:case J.TouchMove:case J.MouseMove:if(r){const u=o.positions[o.positions.length-1];this.mousePos={x:u.x,y:u.y,id:u.id,debugData:o}}else o.positions.forEach(u=>{const d={doAction:()=>{this.moveAndHover(u.x,u.y,u.id,r,o)},delay:u.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(d)}),this.timer.addAction({doAction(){},delay:t.delay-((s=o.positions[0])==null?void 0:s.timeOffset)});break;case J.MouseInteraction:{if(o.id===-1)break;const u=new Event(Fa(ne[o.type])),d=this.mirror.getNode(o.id);if(!d)return this.debugNodeNotFound(o,o.id);this.emitter.emit(V.MouseInteraction,{type:o.type,target:d});const{triggerFocus:l}=this.config;switch(o.type){case ne.Blur:"blur"in d&&d.blur();break;case ne.Focus:l&&d.focus&&d.focus({preventScroll:!0});break;case ne.Click:case ne.TouchStart:case ne.TouchEnd:case ne.MouseDown:case ne.MouseUp:r?(o.type===ne.TouchStart?this.touchActive=!0:o.type===ne.TouchEnd&&(this.touchActive=!1),o.type===ne.MouseDown?this.lastMouseDownEvent=[d,u]:o.type===ne.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:o.x||0,y:o.y||0,id:o.id,debugData:o}):(o.type===ne.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x||0,o.y||0,o.id,r,o),o.type===ne.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===ne.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===ne.TouchEnd?this.mouse.classList.remove("touch-active"):d.dispatchEvent(u));break;case ne.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:d.dispatchEvent(u)}break}case J.Scroll:{if(o.id===-1)break;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);u.scrollData=o;break}this.applyScroll(o,r);break}case J.ViewportResize:this.emitter.emit(V.Resize,{width:o.width,height:o.height});break;case J.Input:{if(o.id===-1)break;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);u.inputData=o;break}this.applyInput(o);break}case J.MediaInteraction:{const u=this.usingVirtualDom?this.virtualDom.mirror.getNode(o.id):this.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);const d=u,{events:l}=this.service.state.context;this.mediaManager.mediaMutation({target:d,timeOffset:t.timestamp-l[0].timestamp,mutation:o});break}case J.StyleSheetRule:case J.StyleDeclaration:{this.usingVirtualDom?o.styleId?this.constructedStyleMutations.push(o):o.id&&((i=this.virtualDom.mirror.getNode(o.id))==null||i.rules.push(o)):this.applyStyleSheetMutation(o);break}case J.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);u.canvasMutations.push({event:t,mutation:o})}else{const u=this.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);En({event:t,mutation:o,target:u,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case J.Font:{try{const u=new FontFace(o.family,o.buffer?new Uint8Array(JSON.parse(o.fontSource)):o.fontSource,o.descriptors);(a=this.iframe.contentDocument)==null||a.fonts.add(u)}catch(u){this.warn(u)}break}case J.Selection:{if(r){this.lastSelectionData=o;break}this.applySelection(o);break}case J.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(o):this.applyAdoptedStyleSheet(o);break}}}applyMutation(t,r){if(this.config.useVirtualDom&&!this.usingVirtualDom&&r&&(this.usingVirtualDom=!0,cu(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(const d in this.legacy_missingNodeRetryMap)try{const l=this.legacy_missingNodeRetryMap[d],n=Do(l.node,this.virtualDom,this.mirror);n&&(l.node=n)}catch(l){this.warn(l)}const s=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(d=>s.getNode(d.id)?!0:(this.warnNodeNotFound(t,d.id),!1)),t.removes.forEach(d=>{var l;const n=s.getNode(d.id);if(!n)return;let c=s.getNode(d.parentId);if(!c)return this.warnNodeNotFound(t,d.parentId);if(d.isShadow&&yt(c)&&(c=c.shadowRoot),s.removeNodeFromMap(n),c)try{c.removeChild(n),this.usingVirtualDom&&n.nodeName==="#text"&&c.nodeName==="STYLE"&&((l=c.rules)==null?void 0:l.length)>0&&(c.rules=[])}catch(f){if(f instanceof DOMException)this.warn("parent could not remove child in mutation",c,n,t);else throw f}});const i=Y({},this.legacy_missingNodeRetryMap),a=[],o=d=>{var l,n;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let c=s.getNode(d.parentId);if(!c)return d.node.type===Re.Document?this.newDocumentQueue.push(d):t.adds.some(S=>S.node.id===d.parentId)?a.push(d):void 0;d.node.isShadow&&(yt(c)||c.attachShadow({mode:"open"}),c=c.shadowRoot);let f=null,h=null;if(d.previousId&&(f=s.getNode(d.previousId)),d.nextId&&(h=s.getNode(d.nextId)),d.node.rootId&&!s.getNode(d.node.rootId))return;const p=d.node.rootId?s.getNode(d.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(Qr(c,s)){this.attachDocumentToIframe(d,c);return}const m=(y,S)=>{if(!this.usingVirtualDom){vt(y);for(const E of this.config.plugins||[])E.onBuild&&E.onBuild(y,{id:S,replayer:this})}},g=et(d.node,{doc:p,mirror:s,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:m});if(d.previousId===-1||d.nextId===-1){i[d.node.id]={node:g,mutation:d};return}const v=s.getMeta(c);if(v&&v.type===Re.Element&&d.node.type===Re.Text){const y=Array.isArray(c.childNodes)?c.childNodes:Array.from(c.childNodes);if(v.tagName==="textarea")for(const S of y)S.nodeType===c.TEXT_NODE&&c.removeChild(S);else if(v.tagName==="style"&&y.length===1)for(const S of y)S.nodeType===c.TEXT_NODE&&!s.hasNode(S)&&(g.textContent=S.textContent,c.removeChild(S))}else if((v==null?void 0:v.type)===Re.Document){const y=c;d.node.type===Re.DocumentType&&((l=y.childNodes[0])==null?void 0:l.nodeType)===Node.DOCUMENT_TYPE_NODE&&y.removeChild(y.childNodes[0]),g.nodeName==="HTML"&&y.documentElement&&y.removeChild(y.documentElement)}if(f&&f.nextSibling&&f.nextSibling.parentNode?c.insertBefore(g,f.nextSibling):h&&h.parentNode?c.contains(h)?c.insertBefore(g,h):c.insertBefore(g,null):c.appendChild(g),m(g,d.node.id),this.usingVirtualDom&&g.nodeName==="#text"&&c.nodeName==="STYLE"&&((n=c.rules)==null?void 0:n.length)>0&&(c.rules=[]),Qr(g,this.mirror)){const y=this.mirror.getId(g),S=this.newDocumentQueue.find(E=>E.parentId===y);S&&(this.attachDocumentToIframe(S,g),this.newDocumentQueue=this.newDocumentQueue.filter(E=>E!==S))}(d.previousId||d.nextId)&&this.legacy_resolveMissingNode(i,c,g,d)};t.adds.forEach(d=>{o(d)});const u=performance.now();for(;a.length;){const d=Ou(a);if(a.length=0,performance.now()-u>150){this.warn("Timeout in the loop, please check the resolve tree data:",d);break}for(const l of d)s.getNode(l.value.parentId)?ko(l,c=>{o(c)}):this.debug("Drop resolve tree since there is no parent for the root node.",l)}Object.keys(i).length&&Object.assign(this.legacy_missingNodeRetryMap,i),Au(t.texts).forEach(d=>{var l;const n=s.getNode(d.id);if(!n)return t.removes.find(c=>c.id===d.id)?void 0:this.warnNodeNotFound(t,d.id);if(n.textContent=d.value,this.usingVirtualDom){const c=n.parentNode;((l=c==null?void 0:c.rules)==null?void 0:l.length)>0&&(c.rules=[])}}),t.attributes.forEach(d=>{var l;const n=s.getNode(d.id);if(!n)return t.removes.find(c=>c.id===d.id)?void 0:this.warnNodeNotFound(t,d.id);for(const c in d.attributes)if(typeof c=="string"){const f=d.attributes[c];if(f===null)n.removeAttribute(c),c==="open"&&Hu(n,d);else if(typeof f=="string")try{if(c==="_cssText"&&(n.nodeName==="LINK"||n.nodeName==="STYLE"))try{const h=s.getMeta(n),p=et(le(Y({},h),{attributes:Y(Y({},h.attributes),d.attributes)}),{doc:n.ownerDocument,mirror:s,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(h.attributes,d.attributes);const m=n.nextSibling,g=n.parentNode;if(p&&g){g.removeChild(n),g.insertBefore(p,m),s.replace(d.id,p);break}}catch(h){}if(c==="value"&&n.nodeName==="TEXTAREA"){const h=n;h.childNodes.forEach(m=>h.removeChild(m));const p=(l=n.ownerDocument)==null?void 0:l.createTextNode(f);p&&h.appendChild(p)}else n.setAttribute(c,f);c==="rr_open_mode"&&n.nodeName==="DIALOG"&&vt(n,d)}catch(h){this.warn("An error occurred may due to the checkout feature.",h)}else if(c==="style"){const h=f,p=n;for(const m in h)if(h[m]===!1)p.style.removeProperty(m);else if(h[m]instanceof Array){const g=h[m];p.style.setProperty(m,g[0],g[1])}else{const g=h[m];p.style.setProperty(m,g)}}}})}applyScroll(t,r){var s,i;const a=this.mirror.getNode(t.id);if(!a)return this.debugNodeNotFound(t,t.id);const o=this.mirror.getMeta(a);if(a===this.iframe.contentDocument)(s=this.iframe.contentWindow)==null||s.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else if((o==null?void 0:o.type)===Re.Document)(i=a.defaultView)==null||i.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else try{a.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"})}catch(u){}}applyInput(t){const r=this.mirror.getNode(t.id);if(!r)return this.debugNodeNotFound(t,t.id);try{r.checked=t.isChecked,r.value=t.text}catch(s){}}applySelection(t){try{const r=new Set,s=t.ranges.map(({start:i,startOffset:a,end:o,endOffset:u})=>{const d=this.mirror.getNode(i),l=this.mirror.getNode(o);if(!d||!l)return;const n=new Range;n.setStart(d,a),n.setEnd(l,u);const c=d.ownerDocument,f=c==null?void 0:c.getSelection();return f&&r.add(f),{range:n,selection:f}});r.forEach(i=>i.removeAllRanges()),s.forEach(i=>{var a;return i&&((a=i.selection)==null?void 0:a.addRange(i.range))})}catch(r){}}applyStyleSheetMutation(t){var r;let s=null;t.styleId?s=this.styleMirror.getStyle(t.styleId):t.id&&(s=((r=this.mirror.getNode(t.id))==null?void 0:r.sheet)||null),s&&(t.source===J.StyleSheetRule?this.applyStyleSheetRule(t,s):t.source===J.StyleDeclaration&&this.applyStyleDeclaration(t,s))}applyStyleSheetRule(t,r){var s,i,a,o;if((s=t.adds)==null||s.forEach(({rule:u,index:d})=>{try{if(Array.isArray(d)){const{positions:l,index:n}=pn(d),c=Qe(r.cssRules,l);c==null||c.insertRule(u,n)}else{const l=d===void 0?void 0:Math.min(d,r.cssRules.length);r==null||r.insertRule(u,l)}}catch(l){}}),(i=t.removes)==null||i.forEach(({index:u})=>{try{if(Array.isArray(u)){const{positions:d,index:l}=pn(u),n=Qe(r.cssRules,d);n==null||n.deleteRule(l||0)}else r==null||r.deleteRule(u)}catch(d){}}),typeof t.replace=="string")try{(a=r.replace)==null||a.call(r,t.replace)}catch(u){}if(typeof t.replaceSync=="string")try{(o=r.replaceSync)==null||o.call(r,t.replaceSync)}catch(u){}}applyStyleDeclaration(t,r){var s,i;if(t.set){const a=Qe(r.rules,t.index);(s=a==null?void 0:a.style)==null||s.setProperty(t.set.property,t.set.value,t.set.priority)}if(t.remove){const a=Qe(r.rules,t.index);(i=a==null?void 0:a.style)==null||i.removeProperty(t.remove.property)}}applyAdoptedStyleSheet(t){var r;const s=this.mirror.getNode(t.id);if(!s)return;(r=t.styles)==null||r.forEach(u=>{var d;let l=null,n=null;if(yt(s)?n=((d=s.ownerDocument)==null?void 0:d.defaultView)||null:s.nodeName==="#document"&&(n=s.defaultView),!!n)try{l=new n.CSSStyleSheet,this.styleMirror.add(l,u.styleId),this.applyStyleSheetRule({source:J.StyleSheetRule,adds:u.rules},l)}catch(c){}});const i=10;let a=0;const o=(u,d)=>{const l=d.map(n=>this.styleMirror.getStyle(n)).filter(n=>n!==null);yt(u)?u.shadowRoot.adoptedStyleSheets=l:u.nodeName==="#document"&&(u.adoptedStyleSheets=l),l.length!==d.length&&a<i&&(setTimeout(()=>o(u,d),0+100*a),a++)};o(s,t.styleIds)}legacy_resolveMissingNode(t,r,s,i){const{previousId:a,nextId:o}=i,u=a&&t[a],d=o&&t[o];if(u){const{node:l,mutation:n}=u;r.insertBefore(l,s),delete t[n.node.id],delete this.legacy_missingNodeRetryMap[n.node.id],(n.previousId||n.nextId)&&this.legacy_resolveMissingNode(t,r,l,n)}if(d){const{node:l,mutation:n}=d;r.insertBefore(l,s.nextSibling),delete t[n.node.id],delete this.legacy_missingNodeRetryMap[n.node.id],(n.previousId||n.nextId)&&this.legacy_resolveMissingNode(t,r,l,n)}}moveAndHover(t,r,s,i,a){const o=this.mirror.getNode(s);if(!o)return this.debugNodeNotFound(a,s);const u=Io(o,this.iframe),d=t*u.absoluteScale+u.x,l=r*u.absoluteScale+u.y;this.mouse.style.left=`${d}px`,this.mouse.style.top=`${l}px`,i||this.drawMouseTail({x:d,y:l}),this.hoverElements(o)}drawMouseTail(t){if(!this.mouseTail)return;const{lineCap:r,lineWidth:s,strokeStyle:i,duration:a}=this.config.mouseTail===!0?Zr:Object.assign({},Zr,this.config.mouseTail),o=()=>{if(!this.mouseTail)return;const u=this.mouseTail.getContext("2d");!u||!this.tailPositions.length||(u.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),u.beginPath(),u.lineWidth=s,u.lineCap=r,u.strokeStyle=i,u.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(d=>u.lineTo(d.x,d.y)),u.stroke())};this.tailPositions.push(t),o(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(u=>u!==t),o()},a/this.speedService.state.context.timer.speed)}hoverElements(t){var r;(r=this.lastHoveredRootNode||this.iframe.contentDocument)==null||r.querySelectorAll(".\\:hover").forEach(i=>{i.classList.remove(":hover")}),this.lastHoveredRootNode=t.getRootNode();let s=t;for(;s;)s.classList&&s.classList.add(":hover"),s=s.parentElement}isUserInteraction(t){return t.type!==te.IncrementalSnapshot?!1:t.data.source>J.Mutation&&t.data.source<=J.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(V.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(t,r){this.warn(`Node with id '${r}' not found. `,t)}warnCanvasMutationFailed(t,r){this.warn("Has error on canvas update",r,"canvas mutation:",t)}debugNodeNotFound(t,r){this.debug(`Node with id '${r}' not found. `,t)}warn(...t){this.config.showWarning&&this.config.logger.warn(xn,...t)}debug(...t){this.config.showDebug&&this.config.logger.log(xn,...t)}}var de=Uint8Array,Me=Uint16Array,li=Uint32Array,Wo=new de([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]),$o=new de([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]),Qu=new de([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),jo=function(e,t){for(var r=new Me(31),s=0;s<31;++s)r[s]=t+=1<<e[s-1];for(var i=new li(r[30]),s=1;s<30;++s)for(var a=r[s];a<r[s+1];++a)i[a]=a-r[s]<<5|s;return[r,i]},Vo=jo(Wo,2),Go=Vo[0],Ku=Vo[1];Go[28]=258,Ku[258]=28;var Zu=jo($o,0),ec=Zu[0],ui=new Me(32768);for(var K=0;K<32768;++K){var Ee=(K&43690)>>>1|(K&21845)<<1;Ee=(Ee&52428)>>>2|(Ee&13107)<<2,Ee=(Ee&61680)>>>4|(Ee&3855)<<4,ui[K]=((Ee&65280)>>>8|(Ee&255)<<8)>>>1}var tt=function(e,t,r){for(var s=e.length,i=0,a=new Me(t);i<s;++i)++a[e[i]-1];var o=new Me(t);for(i=0;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var u;if(r){u=new Me(1<<t);var d=15-t;for(i=0;i<s;++i)if(e[i])for(var l=i<<4|e[i],n=t-e[i],c=o[e[i]-1]++<<n,f=c|(1<<n)-1;c<=f;++c)u[ui[c]>>>d]=l}else for(u=new Me(s),i=0;i<s;++i)u[i]=ui[o[e[i]-1]++]>>>15-e[i];return u},lt=new de(288);for(var K=0;K<144;++K)lt[K]=8;for(var K=144;K<256;++K)lt[K]=9;for(var K=256;K<280;++K)lt[K]=7;for(var K=280;K<288;++K)lt[K]=8;var Ho=new de(32);for(var K=0;K<32;++K)Ho[K]=5;var tc=tt(lt,9,1),rc=tt(Ho,5,1),ei=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},pe=function(e,t,r){var s=t/8>>0;return(e[s]|e[s+1]<<8)>>>(t&7)&r},ti=function(e,t){var r=t/8>>0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>>(t&7)},ic=function(e){return(e/8>>0)+(e&7&&1)},Yo=function(e,t,r){(r==null||r>e.length)&&(r=e.length);var s=new(e instanceof Me?Me:e instanceof li?li:de)(r-t);return s.set(e.subarray(t,r)),s},sc=function(e,t,r){var s=e.length,i=!t||r,a=!r||r.i;r||(r={}),t||(t=new de(s*3));var o=function(O){var P=t.length;if(O>P){var $=new de(Math.max(P*2,O));$.set(t),t=$}},u=r.f||0,d=r.p||0,l=r.b||0,n=r.l,c=r.d,f=r.m,h=r.n,p=s*8;do{if(!n){r.f=u=pe(e,d,1);var m=pe(e,d+1,3);if(d+=3,m)if(m==1)n=tc,c=rc,f=9,h=5;else if(m==2){var S=pe(e,d,31)+257,E=pe(e,d+10,15)+4,w=S+pe(e,d+5,31)+1;d+=14;for(var b=new de(w),C=new de(19),R=0;R<E;++R)C[Qu[R]]=pe(e,d+R*3,7);d+=E*3;var N=ei(C),x=(1<<N)-1;if(!a&&d+w*(N+7)>p)break;for(var I=tt(C,N,1),R=0;R<w;){var T=I[pe(e,d,x)];d+=T&15;var g=T>>>4;if(g<16)b[R++]=g;else{var X=0,U=0;for(g==16?(U=3+pe(e,d,3),d+=2,X=b[R-1]):g==17?(U=3+pe(e,d,7),d+=3):g==18&&(U=11+pe(e,d,127),d+=7);U--;)b[R++]=X}}var M=b.subarray(0,S),q=b.subarray(S);f=ei(M),h=ei(q),n=tt(M,f,1),c=tt(q,h,1)}else throw"invalid block type";else{var g=ic(d)+4,v=e[g-4]|e[g-3]<<8,y=g+v;if(y>s){if(a)throw"unexpected EOF";break}i&&o(l+v),t.set(e.subarray(g,y),l),r.b=l+=v,r.p=d=y*8;continue}if(d>p)throw"unexpected EOF"}i&&o(l+131072);for(var L=(1<<f)-1,j=(1<<h)-1,H=f+h+18;a||d+H<p;){var X=n[ti(e,d)&L],z=X>>>4;if(d+=X&15,d>p)throw"unexpected EOF";if(!X)throw"invalid length/literal";if(z<256)t[l++]=z;else if(z==256){n=null;break}else{var Q=z-254;if(z>264){var R=z-257,ae=Wo[R];Q=pe(e,d,(1<<ae)-1)+Go[R],d+=ae}var _=c[ti(e,d)&j],D=_>>>4;if(!_)throw"invalid distance";d+=_&15;var q=ec[D];if(D>3){var ae=$o[D];q+=ti(e,d)&(1<<ae)-1,d+=ae}if(d>p)throw"unexpected EOF";i&&o(l+131072);for(var A=l+Q;l<A;l+=4)t[l]=t[l-q],t[l+1]=t[l+1-q],t[l+2]=t[l+2-q],t[l+3]=t[l+3-q];l=A}}r.l=n,r.p=d,r.b=l,n&&(u=1,r.m=f,r.d=c,r.n=h)}while(!u);return l==t.length?t:Yo(t,0,l)},nc=function(e){if((e[0]&15)!=8||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(e[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function oc(e,t){return sc((nc(e),e.subarray(2,-4)),t)}function ac(e,t){for(var r=e.length,s=new de(e.length+(e.length>>>1)),i=0,a=function(l){s[i++]=l},o=0;o<r;++o){if(i+5>s.length){var u=new de(i+8+(r-o<<1));u.set(s),s=u}var d=e.charCodeAt(o);a(d)}return Yo(s,0,i)}function lc(e,t){var r="";if(typeof TextDecoder!="undefined")return new TextDecoder().decode(e);for(var s=0;s<e.length;){var i=e[s++];i<128||t?r+=String.fromCharCode(i):i<224?r+=String.fromCharCode((i&31)<<6|e[s++]&63):i<240?r+=String.fromCharCode((i&15)<<12|(e[s++]&63)<<6|e[s++]&63):(i=((i&15)<<18|(e[s++]&63)<<12|(e[s++]&63)<<6|e[s++]&63)-65536,r+=String.fromCharCode(55296|i>>10,56320|i&1023))}return r}const Nn="v1",uc=e=>{if(typeof e!="string")return e;try{const t=JSON.parse(e);if(t.timestamp)return t}catch(t){}try{const t=JSON.parse(lc(oc(ac(e,!0))));if(t.v===Nn)return t;throw new Error(`These events were packed with packer ${t.v} which is incompatible with current packer ${Nn}.`)}catch(t){throw console.error(t),new Error("Unknown data format.")}};var Fi=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Fi||{}),ci=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ci||{});function _n(e){let t="";return Object.keys(e).forEach(r=>{t+=`${r}: ${e[r]};`}),t}function Xe(e,t=2){let r=String(e);const s=Math.pow(10,t-1);if(e<s)for(;String(s).length>r.length;)r=`0${e}`;return r}const Jo=1e3,hi=60*Jo,On=60*hi;function bt(e){if(e<=0)return"00:00";const t=Math.floor(e/On);e=e%On;const r=Math.floor(e/hi);e=e%hi;const s=Math.floor(e/Jo);return t?`${Xe(t)}:${Xe(r)}:${Xe(s)}`:`${Xe(r)}:${Xe(s)}`}function cc(e){return e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():Promise.resolve()}function hc(){return document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():Promise.resolve()}function An(){let e=!1;return["fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement"].forEach(t=>{t in document&&(e=e||!!document[t])}),e}function fc(e){return document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e),()=>{document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e)}}function Dn(e){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(e)]}function dc(e){return e.type!==Fi.IncrementalSnapshot?!1:e.data.source>ci.Mutation&&e.data.source<=ci.Input}function pc(e,t){const r=[];let s=e[0].timestamp;for(const i of e)dc(i)&&(i.timestamp-s>t&&r.push([s,i.timestamp]),s=i.timestamp);return r}function mc(e){let t,r,s,i,a,o,u,d,l;return{c(){t=oe("div"),r=oe("input"),s=fe(),i=oe("label"),a=fe(),o=oe("span"),u=Te(e[3]),B(r,"type","checkbox"),B(r,"id",e[2]),r.disabled=e[1],B(r,"class","svelte-a6h7w7"),B(i,"for",e[2]),B(i,"class","svelte-a6h7w7"),B(o,"class","label svelte-a6h7w7"),B(t,"class","switch svelte-a6h7w7"),Ve(t,"disabled",e[1])},m(n,c){Ce(n,t,c),G(t,r),r.checked=e[0],G(t,s),G(t,i),G(t,a),G(t,o),G(o,u),d||(l=We(r,"change",e[4]),d=!0)},p(n,[c]){c&4&&B(r,"id",n[2]),c&2&&(r.disabled=n[1]),c&1&&(r.checked=n[0]),c&4&&B(i,"for",n[2]),c&8&&Et(u,n[3]),c&2&&Ve(t,"disabled",n[1])},i:rt,o:rt,d(n){n&&ve(t),d=!1,l()}}}function gc(e,t,r){let{disabled:s}=t,{checked:i}=t,{id:a}=t,{label:o}=t;function u(){i=this.checked,r(0,i)}return e.$$set=d=>{"disabled"in d&&r(1,s=d.disabled),"checked"in d&&r(0,i=d.checked),"id"in d&&r(2,a=d.id),"label"in d&&r(3,o=d.label)},[i,s,a,o,u]}class yc extends gi{constructor(t){super(),mi(this,t,gc,mc,fi,{disabled:1,checked:0,id:2,label:3})}}function Pn(e,t,r){const s=e.slice();return s[38]=t[r],s}function Tn(e,t,r){const s=e.slice();return s[41]=t[r],s}function kn(e,t,r){const s=e.slice();return s[44]=t[r],s}function In(e){let t,r,s,i=bt(e[6])+"",a,o,u,d,l,n,c,f,h,p,m=bt(e[8].totalTime)+"",g,v,y,S,E,w,b,C,R,N,x,I,T,X=Fe(e[13]),U=[];for(let D=0;D<X.length;D+=1)U[D]=Ln(kn(e,X,D));let M=Fe(e[9]),q=[];for(let D=0;D<M.length;D+=1)q[D]=Fn(Tn(e,M,D));function L(D,A){return D[7]==="playing"?vc:wc}let j=L(e),H=j(e),z=Fe(e[3]),Q=[];for(let D=0;D<z.length;D+=1)Q[D]=Bn(Pn(e,z,D));function ae(D){e[29](D)}let _={id:"skip",disabled:e[10]==="skipping",label:"skip inactive"};return e[0]!==void 0&&(_.checked=e[0]),b=new yc({props:_}),Pe.push(()=>ma(b,"checked",ae)),{c(){t=oe("div"),r=oe("div"),s=oe("span"),a=Te(i),o=fe(),u=oe("div"),d=oe("div"),l=fe();for(let D=0;D<U.length;D+=1)U[D].c();n=fe();for(let D=0;D<q.length;D+=1)q[D].c();c=fe(),f=oe("div"),h=fe(),p=oe("span"),g=Te(m),v=fe(),y=oe("div"),S=oe("button"),H.c(),E=fe();for(let D=0;D<Q.length;D+=1)Q[D].c();w=fe(),Jn(b.$$.fragment),R=fe(),N=oe("button"),N.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
|
|
165
165
|
18.4-48.8 18.4-68 0-18.4-18.4-18.4-48.8 0-68L800 156 692 156c-26.4
|
|
166
166
|
0-48-21.6-48-48 0-26.4 21.6-48 48-48l224 0c26.4 0 48 21.6 48 48l0
|
|
167
167
|
224C964 358.4 942.4 380 916 380zM231.2 860l108.8 0c26.4 0 48 21.6 48
|
|
168
168
|
48s-21.6 48-48 48l-224 0c-26.4 0-48-21.6-48-48l0-224c0-26.4 21.6-48
|
|
169
169
|
48-48 26.4 0 48 21.6 48 48L164 792l253.6-253.6c18.4-18.4 48.8-18.4
|
|
170
|
-
68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg>`,B(s,"class","rr-timeline__time svelte-189zk2r"),B(d,"class","rr-progress__step svelte-189zk2r"),se(d,"width",e[12]),B(f,"class","rr-progress__handler svelte-189zk2r"),se(f,"left",e[12]),B(u,"class","rr-progress svelte-189zk2r"),Ve(u,"disabled",e[10]==="skipping"),B(p,"class","rr-timeline__time svelte-189zk2r"),B(r,"class","rr-timeline svelte-189zk2r"),B(S,"class","svelte-189zk2r"),B(N,"class","svelte-189zk2r"),B(y,"class","rr-controller__btns svelte-189zk2r"),B(t,"class","rr-controller svelte-189zk2r")},m(D,A){Ce(D,t,A),G(t,r),G(r,s),G(s,a),G(r,o),G(r,u),G(u,d),G(u,l);for(let O=0;O<U.length;O+=1)U[O]&&U[O].m(u,null);G(u,n);for(let O=0;O<q.length;O+=1)q[O]&&q[O].m(u,null);G(u,c),G(u,f),e[27](u),G(r,h),G(r,p),G(p,g),G(t,v),G(t,y),G(y,S),H.m(S,null),G(y,E);for(let O=0;O<
|
|
170
|
+
68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg>`,B(s,"class","rr-timeline__time svelte-189zk2r"),B(d,"class","rr-progress__step svelte-189zk2r"),se(d,"width",e[12]),B(f,"class","rr-progress__handler svelte-189zk2r"),se(f,"left",e[12]),B(u,"class","rr-progress svelte-189zk2r"),Ve(u,"disabled",e[10]==="skipping"),B(p,"class","rr-timeline__time svelte-189zk2r"),B(r,"class","rr-timeline svelte-189zk2r"),B(S,"class","svelte-189zk2r"),B(N,"class","svelte-189zk2r"),B(y,"class","rr-controller__btns svelte-189zk2r"),B(t,"class","rr-controller svelte-189zk2r")},m(D,A){Ce(D,t,A),G(t,r),G(r,s),G(s,a),G(r,o),G(r,u),G(u,d),G(u,l);for(let O=0;O<U.length;O+=1)U[O]&&U[O].m(u,null);G(u,n);for(let O=0;O<q.length;O+=1)q[O]&&q[O].m(u,null);G(u,c),G(u,f),e[27](u),G(r,h),G(r,p),G(p,g),G(t,v),G(t,y),G(y,S),H.m(S,null),G(y,E);for(let O=0;O<Q.length;O+=1)Q[O]&&Q[O].m(y,null);G(y,w),di(b,y,null),G(y,R),G(y,N),x=!0,I||(T=[We(u,"click",e[15]),We(u,"keydown",e[16]),We(S,"click",e[4]),We(N,"click",e[30])],I=!0)},p(D,A){if((!x||A[0]&64)&&i!==(i=bt(D[6])+"")&&Et(a,i),(!x||A[0]&4096)&&se(d,"width",D[12]),A[0]&8192){X=Fe(D[13]);let P;for(P=0;P<X.length;P+=1){const $=kn(D,X,P);U[P]?U[P].p($,A):(U[P]=Ln($),U[P].c(),U[P].m(u,n))}for(;P<U.length;P+=1)U[P].d(1);U.length=X.length}if(A[0]&512){M=Fe(D[9]);let P;for(P=0;P<M.length;P+=1){const $=Tn(D,M,P);q[P]?q[P].p($,A):(q[P]=Fn($),q[P].c(),q[P].m(u,c))}for(;P<q.length;P+=1)q[P].d(1);q.length=M.length}if((!x||A[0]&4096)&&se(f,"left",D[12]),(!x||A[0]&1024)&&Ve(u,"disabled",D[10]==="skipping"),(!x||A[0]&256)&&m!==(m=bt(D[8].totalTime)+"")&&Et(g,m),j!==(j=L(D))&&(H.d(1),H=j(D),H&&(H.c(),H.m(S,null))),A[0]&1066){z=Fe(D[3]);let P;for(P=0;P<z.length;P+=1){const $=Pn(D,z,P);Q[P]?Q[P].p($,A):(Q[P]=Bn($),Q[P].c(),Q[P].m(y,w))}for(;P<Q.length;P+=1)Q[P].d(1);Q.length=z.length}const O={};A[0]&1024&&(O.disabled=D[10]==="skipping"),!C&&A[0]&1&&(C=!0,O.checked=D[0],fa(()=>C=!1)),b.$set(O)},i(D){x||(Se(b.$$.fragment,D),x=!0)},o(D){Ge(b.$$.fragment,D),x=!1},d(D){D&&ve(t),Ut(U,D),Ut(q,D),e[27](null),H.d(),Ut(Q,D),pi(b),I=!1,He(T)}}}function Ln(e){let t,r;return{c(){t=oe("div"),B(t,"title",r=e[44].name),se(t,"width",e[44].width),se(t,"height","4px"),se(t,"position","absolute"),se(t,"background",e[44].background),se(t,"left",e[44].position)},m(s,i){Ce(s,t,i)},p(s,i){i[0]&8192&&r!==(r=s[44].name)&&B(t,"title",r),i[0]&8192&&se(t,"width",s[44].width),i[0]&8192&&se(t,"background",s[44].background),i[0]&8192&&se(t,"left",s[44].position)},d(s){s&&ve(t)}}}function Fn(e){let t,r;return{c(){t=oe("div"),B(t,"title",r=e[41].name),se(t,"width","10px"),se(t,"height","5px"),se(t,"position","absolute"),se(t,"top","2px"),se(t,"transform","translate(-50%, -50%)"),se(t,"background",e[41].background),se(t,"left",e[41].position)},m(s,i){Ce(s,t,i)},p(s,i){i[0]&512&&r!==(r=s[41].name)&&B(t,"title",r),i[0]&512&&se(t,"background",s[41].background),i[0]&512&&se(t,"left",s[41].position)},d(s){s&&ve(t)}}}function wc(e){let t,r;return{c(){t=Ct("svg"),r=Ct("path"),B(r,"d",`M170.65984 896l0-768 640 384zM644.66944
|
|
171
171
|
512l-388.66944-233.32864 0 466.65728z`),B(t,"class","icon"),B(t,"viewBox","0 0 1024 1024"),B(t,"version","1.1"),B(t,"xmlns","http://www.w3.org/2000/svg"),B(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),B(t,"width","16"),B(t,"height","16")},m(s,i){Ce(s,t,i),G(t,r)},d(s){s&&ve(t)}}}function vc(e){let t,r;return{c(){t=Ct("svg"),r=Ct("path"),B(r,"d",`M682.65984 128q53.00224 0 90.50112 37.49888t37.49888 90.50112l0
|
|
172
172
|
512q0 53.00224-37.49888 90.50112t-90.50112
|
|
173
173
|
37.49888-90.50112-37.49888-37.49888-90.50112l0-512q0-53.00224
|
|
@@ -181,7 +181,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
181
181
|
12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928zM682.65984
|
|
182
182
|
213.34016q-17.67424 0-30.16704 12.4928t-12.4928 30.16704l0 512q0
|
|
183
183
|
17.67424 12.4928 30.16704t30.16704 12.4928 30.16704-12.4928
|
|
184
|
-
12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z`),B(t,"class","icon"),B(t,"viewBox","0 0 1024 1024"),B(t,"version","1.1"),B(t,"xmlns","http://www.w3.org/2000/svg"),B(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),B(t,"width","16"),B(t,"height","16")},m(s,i){Ce(s,t,i),G(t,r)},d(s){s&&ve(t)}}}function Bn(e){let t,r=e[38]+"",s,i,a,o,u;function d(){return e[28](e[38])}return{c(){t=oe("button"),s=Te(r),i=Te("x"),t.disabled=a=e[10]==="skipping",B(t,"class","svelte-189zk2r"),Ve(t,"active",e[38]===e[1]&&e[10]!=="skipping")},m(l,n){Ce(l,t,n),G(t,s),G(t,i),o||(u=We(t,"click",d),o=!0)},p(l,n){e=l,n[0]&8&&r!==(r=e[38]+"")&&Et(s,r),n[0]&1024&&a!==(a=e[10]==="skipping")&&(t.disabled=a),n[0]&1034&&Ve(t,"active",e[38]===e[1]&&e[10]!=="skipping")},d(l){l&&ve(t),o=!1,u()}}}function bc(e){let t,r,s=e[2]&&In(e);return{c(){s&&s.c(),t=na()},m(i,a){s&&s.m(i,a),Ce(i,t,a),r=!0},p(i,a){i[2]?s?(s.p(i,a),a[0]&4&&Se(s,1)):(s=In(i),s.c(),Se(s,1),s.m(t.parentNode,t)):s&&(Hn(),Ge(s,1,1,()=>{s=null}),Yn())},i(i){r||(Se(s),r=!0)},o(i){Ge(s),r=!1},d(i){i&&ve(t),s&&s.d(i)}}}function Un(e,t,r){const s=t-e;return(100-(t-r)/s*100).toFixed(2)}function Sc(e,t,r){const s=ua();let{replayer:i}=t,{showController:a}=t,{autoPlay:o}=t,{skipInactive:u}=t,{speedOption:d}=t,{speed:l=d.length?d[0]:1}=t,{tags:n={}}=t,{inactiveColor:c}=t,f=0,h=null,p,m,g,v,y=!1,S=null,E=null,w,b,C,R;const N=()=>{x();function A(){r(6,f=i.getCurrentTime()),y&&f>=y&&(E?M(E.start,E.end,!0,void 0):(i.pause(),S&&(S(),S=null))),f<w.totalTime&&(h=requestAnimationFrame(A))}h=requestAnimationFrame(A)},x=()=>{h&&(cancelAnimationFrame(h),h=null)},I=()=>{switch(p){case"playing":
|
|
184
|
+
12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z`),B(t,"class","icon"),B(t,"viewBox","0 0 1024 1024"),B(t,"version","1.1"),B(t,"xmlns","http://www.w3.org/2000/svg"),B(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),B(t,"width","16"),B(t,"height","16")},m(s,i){Ce(s,t,i),G(t,r)},d(s){s&&ve(t)}}}function Bn(e){let t,r=e[38]+"",s,i,a,o,u;function d(){return e[28](e[38])}return{c(){t=oe("button"),s=Te(r),i=Te("x"),t.disabled=a=e[10]==="skipping",B(t,"class","svelte-189zk2r"),Ve(t,"active",e[38]===e[1]&&e[10]!=="skipping")},m(l,n){Ce(l,t,n),G(t,s),G(t,i),o||(u=We(t,"click",d),o=!0)},p(l,n){e=l,n[0]&8&&r!==(r=e[38]+"")&&Et(s,r),n[0]&1024&&a!==(a=e[10]==="skipping")&&(t.disabled=a),n[0]&1034&&Ve(t,"active",e[38]===e[1]&&e[10]!=="skipping")},d(l){l&&ve(t),o=!1,u()}}}function bc(e){let t,r,s=e[2]&&In(e);return{c(){s&&s.c(),t=na()},m(i,a){s&&s.m(i,a),Ce(i,t,a),r=!0},p(i,a){i[2]?s?(s.p(i,a),a[0]&4&&Se(s,1)):(s=In(i),s.c(),Se(s,1),s.m(t.parentNode,t)):s&&(Hn(),Ge(s,1,1,()=>{s=null}),Yn())},i(i){r||(Se(s),r=!0)},o(i){Ge(s),r=!1},d(i){i&&ve(t),s&&s.d(i)}}}function Un(e,t,r){const s=t-e;return(100-(t-r)/s*100).toFixed(2)}function Sc(e,t,r){const s=ua();let{replayer:i}=t,{showController:a}=t,{autoPlay:o}=t,{skipInactive:u}=t,{speedOption:d}=t,{speed:l=d.length?d[0]:1}=t,{tags:n={}}=t,{inactiveColor:c}=t,f=0,h=null,p,m,g,v,y=!1,S=null,E=null,w,b,C,R;const N=()=>{x();function A(){r(6,f=i.getCurrentTime()),y&&f>=y&&(E?M(E.start,E.end,!0,void 0):(i.pause(),S&&(S(),S=null))),f<w.totalTime&&(h=requestAnimationFrame(A))}h=requestAnimationFrame(A)},x=()=>{h&&(cancelAnimationFrame(h),h=null)},I=()=>{switch(p){case"playing":X();break;case"paused":T();break}},T=()=>{p==="paused"&&(v?(i.play(),v=!1):i.play(f))},X=()=>{p==="playing"&&(i.pause(),y=!1)},U=(A,O)=>{r(6,f=A),y=!1,v=!1,(typeof O=="boolean"?O:p==="playing")?i.play(A):i.pause(A)},M=(A,O,P=!1,$=void 0)=>{P?E={start:A,end:O}:E=null,r(6,f=A),y=O,S=$||null,i.play(A)},q=A=>{if(m==="skipping")return;const O=g.getBoundingClientRect();let $=(A.clientX-O.left)/O.width;$<0?$=0:$>1&&($=1);const ue=w.totalTime*$;U(ue)},L=A=>{m!=="skipping"&&(A.key==="ArrowLeft"?U(f-5):A.key==="ArrowRight"&&U(f+5))},j=A=>{let O=p==="playing";r(1,l=A),O&&i.pause(),i.setConfig({speed:l}),O&&i.play(f)},H=()=>{r(0,u=!u)},z=()=>Promise.resolve().then(()=>{r(8,w=i.getMetaData())});jn(()=>{r(7,p=i.service.state.value),r(10,m=i.speedService.state.value),i.on("state-change",A=>{const{player:O,speed:P}=A;if(O!=null&&O.value&&p!==O.value)switch(r(7,p=O.value),p){case"playing":N();break;case"paused":x();break}P!=null&&P.value&&m!==P.value&&r(10,m=P.value)}),i.on("finish",()=>{v=!0,S&&(S(),S=null)}),o&&i.play()}),la(()=>{u!==i.config.skipInactive&&i.setConfig({skipInactive:u})}),Vn(()=>{i.pause(),x()});function Q(A){Pe[A?"unshift":"push"](()=>{g=A,r(11,g)})}const ae=A=>j(A);function _(A){u=A,r(0,u)}const D=()=>s("fullscreen");return e.$$set=A=>{"replayer"in A&&r(17,i=A.replayer),"showController"in A&&r(2,a=A.showController),"autoPlay"in A&&r(18,o=A.autoPlay),"skipInactive"in A&&r(0,u=A.skipInactive),"speedOption"in A&&r(3,d=A.speedOption),"speed"in A&&r(1,l=A.speed),"tags"in A&&r(19,n=A.tags),"inactiveColor"in A&&r(20,c=A.inactiveColor)},e.$$.update=()=>{if(e.$$.dirty[0]&64&&s("ui-update-current-time",{payload:f}),e.$$.dirty[0]&128&&s("ui-update-player-state",{payload:p}),e.$$.dirty[0]&131072&&r(8,w=i.getMetaData()),e.$$.dirty[0]&320){const A=Math.min(1,f/w.totalTime);r(12,b=`${100*A}%`),s("ui-update-progress",{payload:A})}e.$$.dirty[0]&655360&&r(9,C=(()=>{const{context:A}=i.service.state,O=A.events.length,P=A.events[0].timestamp,$=A.events[O-1].timestamp,ue=[];return A.events.forEach(ce=>{if(ce.type===Fi.Custom){const ie={name:ce.data.tag,background:n[ce.data.tag]||"rgb(73, 80, 246)",position:`${Un(P,$,ce.timestamp)}%`};ue.push(ie)}}),ue})()),e.$$.dirty[0]&1179648&&r(13,R=(()=>{try{const{context:A}=i.service.state,O=A.events.length,P=A.events[0].timestamp,$=A.events[O-1].timestamp,ue=pc(A.events,i.config.inactivePeriodThreshold),ce=(ie,be,Ae,Qo)=>{const Ko=be-ie;return((Qo-Ae)/Ko*100).toFixed(2)};return ue.map(ie=>({name:"inactive period",background:c,position:`${Un(P,$,ie[0])}%`,width:`${ce(P,$,ie[0],ie[1])}%`}))}catch(A){return[]}})())},[u,l,a,d,I,j,f,p,w,C,m,g,b,R,s,q,L,i,o,n,c,T,X,U,M,H,z,Q,ae,_,D]}class Cc extends gi{constructor(t){super(),mi(this,t,Sc,bc,fi,{replayer:17,showController:2,autoPlay:18,skipInactive:0,speedOption:3,speed:1,tags:19,inactiveColor:20,toggle:4,play:21,pause:22,goto:23,playRange:24,setSpeed:5,toggleSkipInactive:25,triggerUpdateMeta:26},null,[-1,-1])}get toggle(){return this.$$.ctx[4]}get play(){return this.$$.ctx[21]}get pause(){return this.$$.ctx[22]}get goto(){return this.$$.ctx[23]}get playRange(){return this.$$.ctx[24]}get setSpeed(){return this.$$.ctx[5]}get toggleSkipInactive(){return this.$$.ctx[25]}get triggerUpdateMeta(){return this.$$.ctx[26]}}function zn(e){let t,r,s={replayer:e[7],showController:e[3],autoPlay:e[1],speedOption:e[2],skipInactive:e[0],tags:e[4],inactiveColor:e[5]};return t=new Cc({props:s}),e[32](t),t.$on("fullscreen",e[33]),{c(){Jn(t.$$.fragment)},m(i,a){di(t,i,a),r=!0},p(i,a){const o={};a[0]&128&&(o.replayer=i[7]),a[0]&8&&(o.showController=i[3]),a[0]&2&&(o.autoPlay=i[1]),a[0]&4&&(o.speedOption=i[2]),a[0]&1&&(o.skipInactive=i[0]),a[0]&16&&(o.tags=i[4]),a[0]&32&&(o.inactiveColor=i[5]),t.$set(o)},i(i){r||(Se(t.$$.fragment,i),r=!0)},o(i){Ge(t.$$.fragment,i),r=!1},d(i){e[32](null),pi(t,i)}}}function Ec(e){let t,r,s,i,a=e[7]&&zn(e);return{c(){t=oe("div"),r=oe("div"),s=fe(),a&&a.c(),B(r,"class","rr-player__frame"),B(r,"style",e[11]),B(t,"class","rr-player"),B(t,"style",e[12])},m(o,u){Ce(o,t,u),G(t,r),e[31](r),G(t,s),a&&a.m(t,null),e[34](t),i=!0},p(o,u){(!i||u[0]&2048)&&B(r,"style",o[11]),o[7]?a?(a.p(o,u),u[0]&128&&Se(a,1)):(a=zn(o),a.c(),Se(a,1),a.m(t,null)):a&&(Hn(),Ge(a,1,1,()=>{a=null}),Yn()),(!i||u[0]&4096)&&B(t,"style",o[12])},i(o){i||(Se(a),i=!0)},o(o){Ge(a),i=!1},d(o){o&&ve(t),e[31](null),a&&a.d(),e[34](null)}}}const qn=80;function Rc(e,t,r){let{width:s=1024}=t,{height:i=576}=t,{maxScale:a=1}=t,{events:o}=t,{skipInactive:u=!0}=t,{autoPlay:d=!0}=t,{speedOption:l=[1,2,4,8]}=t,{speed:n=1}=t,{showController:c=!0}=t,{tags:f={}}=t,{inactiveColor:h="#D4D4D4"}=t,p;const m=()=>p.getMirror();let g,v,y,S=s,E=i,w,b,C;const R=(O,P)=>{const $=s/P.width,ue=i/P.height,ce=[$,ue];a&&ce.push(a),O.style.transform=`scale(${Math.min(...ce)})translate(-50%, -50%)`},N=()=>{R(p.wrapper,{width:p.iframe.offsetWidth,height:p.iframe.offsetHeight})},x=()=>{g&&(An()?hc():cc(g))},I=(O,P)=>{switch(p.on(O,P),O){case"ui-update-current-time":case"ui-update-progress":case"ui-update-player-state":w.$on(O,({detail:$})=>P($))}},T=O=>{p.addEvent(O),w.triggerUpdateMeta()},X=()=>p.getMetaData(),U=()=>p,M=()=>{w.toggle()},q=O=>{w.setSpeed(O)},L=()=>{w.toggleSkipInactive()},j=()=>{w.play()},H=()=>{w.pause()},z=(O,P)=>{w.goto(O,P)},Q=(O,P,$=!1,ue=void 0)=>{w.playRange(O,P,$,ue)};jn(()=>{if(l!==void 0&&Dn(l)!=="array")throw new Error("speedOption must be array");if(l.forEach(O=>{if(Dn(O)!=="number")throw new Error("item of speedOption must be number")}),l.indexOf(n)<0)throw new Error(`speed must be one of speedOption,
|
|
185
185
|
current config:
|
|
186
186
|
{
|
|
187
187
|
...
|
|
@@ -189,7 +189,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
189
189
|
speedOption: [${l.toString()}]
|
|
190
190
|
...
|
|
191
191
|
}
|
|
192
|
-
`);r(7,p=new Xu(o,
|
|
192
|
+
`);r(7,p=new Xu(o,Y({speed:n,root:v,unpackFn:uc},t))),p.on("resize",O=>{R(p.wrapper,O)}),y=fc(()=>{An()?setTimeout(()=>{S=s,E=i,r(13,s=g.offsetWidth),r(14,i=g.offsetHeight-(c?qn:0)),R(p.wrapper,{width:p.iframe.offsetWidth,height:p.iframe.offsetHeight})},0):(r(13,s=S),r(14,i=E),R(p.wrapper,{width:p.iframe.offsetWidth,height:p.iframe.offsetHeight}))})}),Vn(()=>{y&&y()});function ae(O){Pe[O?"unshift":"push"](()=>{v=O,r(9,v)})}function _(O){Pe[O?"unshift":"push"](()=>{w=O,r(10,w)})}const D=()=>x();function A(O){Pe[O?"unshift":"push"](()=>{g=O,r(8,g)})}return e.$$set=O=>{r(39,t=Wi(Wi({},t),ji(O))),"width"in O&&r(13,s=O.width),"height"in O&&r(14,i=O.height),"maxScale"in O&&r(15,a=O.maxScale),"events"in O&&r(16,o=O.events),"skipInactive"in O&&r(0,u=O.skipInactive),"autoPlay"in O&&r(1,d=O.autoPlay),"speedOption"in O&&r(2,l=O.speedOption),"speed"in O&&r(17,n=O.speed),"showController"in O&&r(3,c=O.showController),"tags"in O&&r(4,f=O.tags),"inactiveColor"in O&&r(5,h=O.inactiveColor)},e.$$.update=()=>{e.$$.dirty[0]&24576&&r(11,b=_n({width:`${s}px`,height:`${i}px`})),e.$$.dirty[0]&24584&&r(12,C=_n({width:`${s}px`,height:`${i+(c?qn:0)}px`}))},t=ji(t),[u,d,l,c,f,h,x,p,g,v,w,b,C,s,i,a,o,n,m,N,I,T,X,U,M,q,L,j,H,z,Q,ae,_,D,A]}let xc=class extends gi{constructor(t){super(),mi(this,t,Rc,Ec,fi,{width:13,height:14,maxScale:15,events:16,skipInactive:0,autoPlay:1,speedOption:2,speed:17,showController:3,tags:4,inactiveColor:5,getMirror:18,triggerResize:19,toggleFullscreen:6,addEventListener:20,addEvent:21,getMetaData:22,getReplayer:23,toggle:24,setSpeed:25,toggleSkipInactive:26,play:27,pause:28,goto:29,playRange:30},null,[-1,-1])}get getMirror(){return this.$$.ctx[18]}get triggerResize(){return this.$$.ctx[19]}get toggleFullscreen(){return this.$$.ctx[6]}get addEventListener(){return this.$$.ctx[20]}get addEvent(){return this.$$.ctx[21]}get getMetaData(){return this.$$.ctx[22]}get getReplayer(){return this.$$.ctx[23]}get toggle(){return this.$$.ctx[24]}get setSpeed(){return this.$$.ctx[25]}get toggleSkipInactive(){return this.$$.ctx[26]}get play(){return this.$$.ctx[27]}get pause(){return this.$$.ctx[28]}get goto(){return this.$$.ctx[29]}get playRange(){return this.$$.ctx[30]}};class Xo extends xc{constructor(t){super({target:t.target,props:t.data||t.props})}}exports.Player=Xo;exports.default=Xo;
|
|
193
193
|
;if (typeof module.exports == "object" && typeof exports == "object") {
|
|
194
194
|
var __cp = (to, from, except, desc) => {
|
|
195
195
|
if ((from && typeof from === "object") || typeof from === "function") {
|