@amplitude/rrweb-player 2.1.5 → 2.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,66 +11,66 @@
11
11
  }(this, () => {
12
12
  var exports = {};
13
13
  var module = { exports };
14
- "use strict";var Xc=Object.defineProperty,Qc=Object.defineProperties;var Kc=Object.getOwnPropertyDescriptors;var wi=Object.getOwnPropertySymbols;var Zo=Object.prototype.hasOwnProperty,ea=Object.prototype.propertyIsEnumerable;var Ko=(e,t,r)=>t in e?Xc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,G=(e,t)=>{for(var r in t||(t={}))Zo.call(t,r)&&Ko(e,r,t[r]);if(wi)for(var r of wi(t))ea.call(t,r)&&Ko(e,r,t[r]);return e},be=(e,t)=>Qc(e,Kc(t));var Vr=(e,t)=>{var r={};for(var i in e)Zo.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&wi)for(var i of wi(e))t.indexOf(i)<0&&ea.call(e,i)&&(r[i]=e[i]);return r};var Zc=Object.defineProperty,iu=e=>{throw TypeError(e)},ef=(e,t,r)=>t in e?Zc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Nt=(e,t,r)=>ef(e,typeof t!="symbol"?t+"":t,r),uo=(e,t,r)=>t.has(e)||iu("Cannot "+r),M=(e,t,r)=>(uo(e,t,"read from private field"),r?r.call(e):t.get(e)),Y=(e,t,r)=>t.has(e)?iu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),U=(e,t,r,i)=>(uo(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),ye=(e,t,r)=>(uo(e,t,"access private method"),r),ta,oi,Yr,Ut,$t,Jr,ai,ti,Je,co,li,Ln,su,nu,at,Xe,Ti,Mt,Or,At,lt,ze,Ct,Vt,tr,Kt,Gt,wr,Zt,Fn,Pe,ou,au,fo,Bi,Ui,Bn,vt,xt,Ve,br,ki,Ii,Un,Bt,st;Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const tf="5";var tu,ru;typeof window!="undefined"&&((ru=(ta=(tu=window.__svelte)!=null?tu:window.__svelte={}).v)!=null?ru:ta.v=new Set).add(tf);let Fr=!1,rf=!1;function sf(){Fr=!0}sf();const nf=1,of=2,af=16,lf=1,uf=2,lu=4,cf=8,ff=16,hf=2,uu="[",Ji="[!",ho="]",Dr={},Ae=Symbol(),df="http://www.w3.org/1999/xhtml",$n=!1;var po=Array.isArray,pf=Array.prototype.indexOf,Xi=Array.from,cu=Object.defineProperty,rr=Object.getOwnPropertyDescriptor,fu=Object.getOwnPropertyDescriptors,mf=Object.prototype,gf=Array.prototype,mo=Object.getPrototypeOf,ra=Object.isExtensible;function vf(e){return e()}function Wn(e){for(var t=0;t<e.length;t++)e[t]()}function hu(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}const Re=2,go=4,Qi=8,yf=1<<24,Tt=16,kt=32,hr=64,Ki=128,ft=512,xe=1024,Fe=2048,dt=4096,qe=8192,Dt=16384,Zi=32768,Tr=65536,ia=1<<17,du=1<<18,Br=1<<19,pu=1<<20,zt=1<<25,ar=32768,zn=1<<21,vo=1<<22,Ht=1<<23,ir=Symbol("$state"),mu=Symbol("legacy props"),wf=Symbol(""),Cr=new class extends Error{constructor(){super(...arguments),Nt(this,"name","StaleReactionError"),Nt(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},yo=3,Ur=8;function es(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function bf(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Sf(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function _f(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ef(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Cf(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function xf(){throw new Error("https://svelte.dev/e/hydration_failed")}function Rf(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function Mf(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Nf(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Af(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Of(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Df(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ts(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Tf(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let K=!1;function Ot(e){K=e}let X;function je(e){if(e===null)throw ts(),Dr;return X=e}function rs(){return je(St(X))}function nt(e){if(K){if(St(X)!==null)throw ts(),Dr;X=e}}function kf(e=1){if(K){for(var t=e,r=X;t--;)r=St(r);X=r}}function $i(e=!0){for(var t=0,r=X;;){if(r.nodeType===Ur){var i=r.data;if(i===ho){if(t===0)return r;t-=1}else(i===uu||i===Ji)&&(t+=1)}var s=St(r);e&&r.remove(),r=s}}function gu(e){if(!e||e.nodeType!==Ur)throw ts(),Dr;return e.data}function vu(e){return e===this.v}function If(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function yu(e){return!If(e,this.v)}let oe=null;function kr(e){oe=e}function wo(e,t=!1,r){oe={p:oe,i:!1,c:null,e:null,s:e,x:null,l:Fr&&!t?{s:null,u:null,$:[]}:null}}function bo(e){var t=oe,r=t.e;if(r!==null){t.e=null;for(var i of r)Pu(i)}return e!==void 0&&(t.x=e),t.i=!0,oe=t.p,e!=null?e:{}}function fi(){return!Fr||oe!==null&&oe.l===null}let er=[];function wu(){var e=er;er=[],Wn(e)}function $r(e){if(er.length===0&&!ri){var t=er;queueMicrotask(()=>{t===er&&wu()})}er.push(e)}function Pf(){for(;er.length>0;)wu()}function bu(e){var t=Q;if(t===null)return J.f|=Ht,e;if((t.f&Zi)===0){if((t.f&Ki)===0)throw e;t.b.error(e)}else Ir(e,t)}function Ir(e,t){for(;t!==null;){if((t.f&Ki)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Pi=new Set;let ne=null,De=null,Qe=[],is=null,qn=!1,ri=!1;const Lf=class jn{constructor(){Y(this,Je),Nt(this,"committed",!1),Nt(this,"current",new Map),Nt(this,"previous",new Map),Y(this,oi,new Set),Y(this,Yr,new Set),Y(this,Ut,0),Y(this,$t,0),Y(this,Jr,null),Y(this,ai,new Set),Y(this,ti,new Set),Nt(this,"skipped_effects",new Set),Nt(this,"is_fork",!1)}is_deferred(){return this.is_fork||M(this,$t)>0}process(t){var r;Qe=[],this.apply();var i={parent:null,effect:null,effects:[],render_effects:[]};for(const s of t)ye(this,Je,co).call(this,s,i);this.is_fork||ye(this,Je,su).call(this),this.is_deferred()?(ye(this,Je,li).call(this,i.effects),ye(this,Je,li).call(this,i.render_effects)):(ne=null,sa(i.render_effects),sa(i.effects),(r=M(this,Jr))==null||r.resolve()),De=null}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&Ht)===0&&(this.current.set(t,t.v),De==null||De.set(t,t.v))}activate(){ne=this,this.apply()}deactivate(){ne===this&&(ne=null,De=null)}flush(){if(this.activate(),Qe.length>0){if(Su(),ne!==null&&ne!==this)return}else M(this,Ut)===0&&this.process([]);this.deactivate()}discard(){for(const t of M(this,Yr))t(this);M(this,Yr).clear()}increment(t){U(this,Ut,M(this,Ut)+1),t&&U(this,$t,M(this,$t)+1)}decrement(t){U(this,Ut,M(this,Ut)-1),t&&U(this,$t,M(this,$t)-1),this.revive()}revive(){for(const t of M(this,ai))M(this,ti).delete(t),Me(t,Fe),ur(t);for(const t of M(this,ti))Me(t,dt),ur(t);this.flush()}oncommit(t){M(this,oi).add(t)}ondiscard(t){M(this,Yr).add(t)}settled(){var t;return((t=M(this,Jr))!=null?t:U(this,Jr,hu())).promise}static ensure(){if(ne===null){const t=ne=new jn;Pi.add(ne),ri||jn.enqueue(()=>{ne===t&&t.flush()})}return ne}static enqueue(t){$r(t)}apply(){}};oi=new WeakMap;Yr=new WeakMap;Ut=new WeakMap;$t=new WeakMap;Jr=new WeakMap;ai=new WeakMap;ti=new WeakMap;Je=new WeakSet;co=function(e,t){var r;e.f^=xe;for(var i=e.first;i!==null;){var s=i.f,o=(s&(kt|hr))!==0,n=o&&(s&xe)!==0,u=n||(s&qe)!==0||this.skipped_effects.has(i);if((i.f&Ki)!==0&&((r=i.b)!=null&&r.is_pending())&&(t={parent:t,effect:i,effects:[],render_effects:[]}),!u&&i.fn!==null){o?i.f^=xe:(s&go)!==0?t.effects.push(i):Wr(i)&&((i.f&Tt)!==0&&M(this,ai).add(i),Lr(i));var d=i.first;if(d!==null){i=d;continue}}var l=i.parent;for(i=i.next;i===null&&l!==null;)l===t.effect&&(ye(this,Je,li).call(this,t.effects),ye(this,Je,li).call(this,t.render_effects),t=t.parent),i=l.next,l=l.parent}};li=function(e){for(const t of e)(t.f&Fe)!==0?M(this,ai).add(t):(t.f&dt)!==0&&M(this,ti).add(t),ye(this,Je,Ln).call(this,t.deps),Me(t,xe)};Ln=function(e){if(e!==null)for(const t of e)(t.f&Re)===0||(t.f&ar)===0||(t.f^=ar,ye(this,Je,Ln).call(this,t.deps))};su=function(){if(M(this,$t)===0){for(const e of M(this,oi))e();M(this,oi).clear()}M(this,Ut)===0&&ye(this,Je,nu).call(this)};nu=function(){var e;if(Pi.size>1){this.previous.clear();var t=De,r=!0,i={parent:null,effect:null,effects:[],render_effects:[]};for(const o of Pi){if(o===this){r=!1;continue}const n=[];for(const[d,l]of this.current){if(o.current.has(d))if(r&&l!==o.current.get(d))o.current.set(d,l);else continue;n.push(d)}if(n.length===0)continue;const u=[...o.current.keys()].filter(d=>!this.current.has(d));if(u.length>0){var s=Qe;Qe=[];const d=new Set,l=new Map;for(const a of n)_u(a,u,d,l);if(Qe.length>0){ne=o,o.apply();for(const a of Qe)ye(e=o,Je,co).call(e,a,i);o.deactivate()}Qe=s}}ne=null,De=t}this.committed=!0,Pi.delete(this)};let lr=Lf;function Ff(e){var t=ri;ri=!0;try{for(var r;;){if(Pf(),Qe.length===0&&(ne==null||ne.flush(),Qe.length===0))return is=null,r;Su()}}finally{ri=t}}function Su(){var e=sr;qn=!0;var t=null;try{var r=0;for(zi(!0);Qe.length>0;){var i=lr.ensure();if(r++>1e3){var s,o;Bf()}i.process(Qe),Yt.clear()}}finally{qn=!1,zi(e),is=null}}function Bf(){try{Cf()}catch(e){Ir(e,is)}}let yt=null;function sa(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(Dt|qe))===0&&Wr(i)&&(yt=new Set,Lr(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?Uu(i):i.fn=null),(yt==null?void 0:yt.size)>0)){Yt.clear();for(const s of yt){if((s.f&(Dt|qe))!==0)continue;const o=[s];let n=s.parent;for(;n!==null;)yt.has(n)&&(yt.delete(n),o.push(n)),n=n.parent;for(let u=o.length-1;u>=0;u--){const d=o[u];(d.f&(Dt|qe))===0&&Lr(d)}}yt.clear()}}yt=null}}function _u(e,t,r,i){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const o=s.f;(o&Re)!==0?_u(s,t,r,i):(o&(vo|Tt))!==0&&(o&Fe)===0&&Eu(s,t,i)&&(Me(s,Fe),ur(s))}}function Eu(e,t,r){const i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&Re)!==0&&Eu(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function ur(e){for(var t=is=e;t.parent!==null;){t=t.parent;var r=t.f;if(qn&&t===Q&&(r&Tt)!==0&&(r&du)===0)return;if((r&(hr|kt))!==0){if((r&xe)===0)return;t.f^=xe}}Qe.push(t)}function Uf(e){let t=0,r=Jt(0),i;return()=>{ui()&&(A(r),hi(()=>(t===0&&(i=Ee(()=>e(()=>ii(r)))),t+=1,()=>{$r(()=>{t-=1,t===0&&(i==null||i(),i=void 0,ii(r))})})))}}var $f=Tr|Br|Ki;function Wf(e,t,r){new zf(e,t,r)}class zf{constructor(t,r,i){Y(this,Pe),Nt(this,"parent"),Y(this,at,!1),Y(this,Xe),Y(this,Ti,K?X:null),Y(this,Mt),Y(this,Or),Y(this,At),Y(this,lt,null),Y(this,ze,null),Y(this,Ct,null),Y(this,Vt,null),Y(this,tr,null),Y(this,Kt,0),Y(this,Gt,0),Y(this,wr,!1),Y(this,Zt,null),Y(this,Fn,Uf(()=>(U(this,Zt,Jt(M(this,Kt))),()=>{U(this,Zt,null)}))),U(this,Xe,t),U(this,Mt,r),U(this,Or,i),this.parent=Q.b,U(this,at,!!M(this,Mt).pending),U(this,At,Eo(()=>{if(Q.b=this,K){const o=M(this,Ti);rs(),o.nodeType===Ur&&o.data===Ji?ye(this,Pe,au).call(this):ye(this,Pe,ou).call(this)}else{var s=ye(this,Pe,fo).call(this);try{U(this,lt,Ze(()=>i(s)))}catch(o){this.error(o)}M(this,Gt)>0?ye(this,Pe,Ui).call(this):U(this,at,!1)}return()=>{var o;(o=M(this,tr))==null||o.remove()}},$f)),K&&U(this,Xe,X)}is_pending(){return M(this,at)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!M(this,Mt).pending}update_pending_count(t){ye(this,Pe,Bn).call(this,t),U(this,Kt,M(this,Kt)+t),M(this,Zt)&&Pr(M(this,Zt),M(this,Kt))}get_effect_pending(){return M(this,Fn).call(this),A(M(this,Zt))}error(t){var r=M(this,Mt).onerror;let i=M(this,Mt).failed;if(M(this,wr)||!r&&!i)throw t;M(this,lt)&&(Le(M(this,lt)),U(this,lt,null)),M(this,ze)&&(Le(M(this,ze)),U(this,ze,null)),M(this,Ct)&&(Le(M(this,Ct)),U(this,Ct,null)),K&&(je(M(this,Ti)),kf(),je($i()));var s=!1,o=!1;const n=()=>{if(s){Tf();return}s=!0,o&&Df(),lr.ensure(),U(this,Kt,0),M(this,Ct)!==null&&dr(M(this,Ct),()=>{U(this,Ct,null)}),U(this,at,this.has_pending_snippet()),U(this,lt,ye(this,Pe,Bi).call(this,()=>(U(this,wr,!1),Ze(()=>M(this,Or).call(this,M(this,Xe)))))),M(this,Gt)>0?ye(this,Pe,Ui).call(this):U(this,at,!1)};var u=J;try{Be(null),o=!0,r==null||r(t,n),o=!1}catch(d){Ir(d,M(this,At)&&M(this,At).parent)}finally{Be(u)}i&&$r(()=>{U(this,Ct,ye(this,Pe,Bi).call(this,()=>{lr.ensure(),U(this,wr,!0);try{return Ze(()=>{i(M(this,Xe),()=>t,()=>n)})}catch(d){return Ir(d,M(this,At).parent),null}finally{U(this,wr,!1)}}))})}}at=new WeakMap;Xe=new WeakMap;Ti=new WeakMap;Mt=new WeakMap;Or=new WeakMap;At=new WeakMap;lt=new WeakMap;ze=new WeakMap;Ct=new WeakMap;Vt=new WeakMap;tr=new WeakMap;Kt=new WeakMap;Gt=new WeakMap;wr=new WeakMap;Zt=new WeakMap;Fn=new WeakMap;Pe=new WeakSet;ou=function(){try{U(this,lt,Ze(()=>M(this,Or).call(this,M(this,Xe))))}catch(e){this.error(e)}U(this,at,!1)};au=function(){const e=M(this,Mt).pending;e&&(U(this,ze,Ze(()=>e(M(this,Xe)))),lr.enqueue(()=>{var t=ye(this,Pe,fo).call(this);U(this,lt,ye(this,Pe,Bi).call(this,()=>(lr.ensure(),Ze(()=>M(this,Or).call(this,t))))),M(this,Gt)>0?ye(this,Pe,Ui).call(this):(dr(M(this,ze),()=>{U(this,ze,null)}),U(this,at,!1))}))};fo=function(){var e=M(this,Xe);return M(this,at)&&(U(this,tr,ht()),M(this,Xe).before(M(this,tr)),e=M(this,tr)),e};Bi=function(e){var t=Q,r=J,i=oe;tt(M(this,At)),Be(M(this,At)),kr(M(this,At).ctx);try{return e()}catch(s){return bu(s),null}finally{tt(t),Be(r),kr(i)}};Ui=function(){const e=M(this,Mt).pending;M(this,lt)!==null&&(U(this,Vt,document.createDocumentFragment()),M(this,Vt).append(M(this,tr)),zu(M(this,lt),M(this,Vt))),M(this,ze)===null&&U(this,ze,Ze(()=>e(M(this,Xe))))};Bn=function(e){var t;if(!this.has_pending_snippet()){this.parent&&ye(t=this.parent,Pe,Bn).call(t,e);return}U(this,Gt,M(this,Gt)+e),M(this,Gt)===0&&(U(this,at,!1),M(this,ze)&&dr(M(this,ze),()=>{U(this,ze,null)}),M(this,Vt)&&(M(this,Xe).before(M(this,Vt)),U(this,Vt,null)))};function qf(e,t,r,i){const s=fi()?ss:ns;if(r.length===0&&e.length===0){i(t.map(s));return}var o=ne,n=Q,u=jf();function d(){Promise.all(r.map(l=>Vf(l))).then(l=>{u();try{i([...t.map(s),...l])}catch(a){(n.f&Dt)===0&&Ir(a,n)}o==null||o.deactivate(),Wi()}).catch(l=>{Ir(l,n)})}e.length>0?Promise.all(e).then(()=>{u();try{return d()}finally{o==null||o.deactivate(),Wi()}}):d()}function jf(){var e=Q,t=J,r=oe,i=ne;return function(o=!0){tt(e),Be(t),kr(r),o&&(i==null||i.activate())}}function Wi(){tt(null),Be(null),kr(null)}function ss(e){var t=Re|Fe,r=J!==null&&(J.f&Re)!==0?J:null;return Q!==null&&(Q.f|=Br),{ctx:oe,deps:null,effects:null,equals:vu,f:t,fn:e,reactions:null,rv:0,v:Ae,wv:0,parent:r!=null?r:Q,ac:null}}function Vf(e,t){let r=Q;r===null&&bf();var i=r.b,s=void 0,o=Jt(Ae),n=!J,u=new Map;return eh(()=>{var d,l=hu();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{a===ne&&a.committed&&a.deactivate(),Wi()})}catch(h){l.reject(h),Wi()}var a=ne;if(n){var f=!i.is_pending();i.update_pending_count(1),a.increment(f),(d=u.get(a))==null||d.reject(Cr),u.delete(a),u.set(a,l)}const c=(h,p=void 0)=>{if(a.activate(),p)p!==Cr&&(o.f|=Ht,Pr(o,p));else{(o.f&Ht)!==0&&(o.f^=Ht),Pr(o,h);for(const[m,g]of u){if(u.delete(m),m===a)break;g.reject(Cr)}}n&&(i.update_pending_count(-1),a.decrement(f))};l.promise.then(c,h=>c(null,h||"unknown"))}),_o(()=>{for(const d of u.values())d.reject(Cr)}),new Promise(d=>{function l(a){function f(){a===s?d(o):l(s)}a.then(f,f)}l(s)})}function ns(e){const t=ss(e);return t.equals=yu,t}function Cu(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Le(t[r])}}function Gf(e){for(var t=e.parent;t!==null;){if((t.f&Re)===0)return(t.f&Dt)===0?t:null;t=t.parent}return null}function So(e){var t,r=Q;tt(Gf(e));try{e.f&=~ar,Cu(e),t=Gu(e)}finally{tt(r)}return t}function xu(e){var t=So(e);if(e.equals(t)||(ne!=null&&ne.is_fork||(e.v=t),e.wv=ju()),!pr)if(De!==null)(ui()||ne!=null&&ne.is_fork)&&De.set(e,t);else{var r=(e.f&ft)===0?dt:xe;Me(e,r)}}let Vn=new Set;const Yt=new Map;let Ru=!1;function Jt(e,t){var r={f:0,v:e,reactions:null,equals:vu,rv:0,wv:0};return r}function It(e,t){const r=Jt(e);return ih(r),r}function Oe(e,t=!1,r=!0){var o;var i;const s=Jt(e);return t||(s.equals=yu),Fr&&r&&oe!==null&&oe.l!==null&&((o=(i=oe.l).s)!=null?o:i.s=[]).push(s),s}function re(e,t,r=!1){J!==null&&(!bt||(J.f&ia)!==0)&&fi()&&(J.f&(Re|Tt|vo|ia))!==0&&!(et!=null&&et.includes(e))&&Of();let i=r?xr(t):t;return Pr(e,i)}function Pr(e,t){if(!e.equals(t)){var r=e.v;pr?Yt.set(e,t):Yt.set(e,r),e.v=t;var i=lr.ensure();i.capture(e,r),(e.f&Re)!==0&&((e.f&Fe)!==0&&So(e),Me(e,(e.f&ft)!==0?xe:dt)),e.wv=ju(),Mu(e,Fe),fi()&&Q!==null&&(Q.f&xe)!==0&&(Q.f&(kt|hr))===0&&(Ye===null?sh([e]):Ye.push(e)),!i.is_fork&&Vn.size>0&&!Ru&&Hf()}return t}function Hf(){Ru=!1;var e=sr;zi(!0);const t=Array.from(Vn);try{for(const r of t)(r.f&xe)!==0&&Me(r,dt),Wr(r)&&Lr(r)}finally{zi(e)}Vn.clear()}function na(e,t=1){var r=A(e),i=t===1?r++:r--;return re(e,r),i}function ii(e){re(e,e.v+1)}function Mu(e,t){var r=e.reactions;if(r!==null)for(var i=fi(),s=r.length,o=0;o<s;o++){var n=r[o],u=n.f;if(!(!i&&n===Q)){var d=(u&Fe)===0;if(d&&Me(n,t),(u&Re)!==0){var l=n;De==null||De.delete(l),(u&ar)===0&&(u&ft&&(n.f|=ar),Mu(l,dt))}else d&&((u&Tt)!==0&&yt!==null&&yt.add(n),ur(n))}}}function xr(e){if(typeof e!="object"||e===null||ir in e)return e;const t=mo(e);if(t!==mf&&t!==gf)return e;var r=new Map,i=po(e),s=It(0),o=nr,n=u=>{if(nr===o)return u();var d=J,l=nr;Be(null),ua(o);var a=u();return Be(d),ua(l),a};return i&&r.set("length",It(e.length)),new Proxy(e,{defineProperty(u,d,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&Nf();var a=r.get(d);return a===void 0?a=n(()=>{var f=It(l.value);return r.set(d,f),f}):re(a,l.value,!0),!0},deleteProperty(u,d){var l=r.get(d);if(l===void 0){if(d in u){const a=n(()=>It(Ae));r.set(d,a),ii(s)}}else re(l,Ae),ii(s);return!0},get(u,d,l){var a;if(d===ir)return e;var f=r.get(d),c=d in u;if(f===void 0&&(!c||(a=rr(u,d))!=null&&a.writable)&&(f=n(()=>{var p=xr(c?u[d]:Ae),m=It(p);return m}),r.set(d,f)),f!==void 0){var h=A(f);return h===Ae?void 0:h}return Reflect.get(u,d,l)},getOwnPropertyDescriptor(u,d){var l=Reflect.getOwnPropertyDescriptor(u,d);if(l&&"value"in l){var a=r.get(d);a&&(l.value=A(a))}else if(l===void 0){var f=r.get(d),c=f==null?void 0:f.v;if(f!==void 0&&c!==Ae)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return l},has(u,d){var l;if(d===ir)return!0;var a=r.get(d),f=a!==void 0&&a.v!==Ae||Reflect.has(u,d);if(a!==void 0||Q!==null&&(!f||(l=rr(u,d))!=null&&l.writable)){a===void 0&&(a=n(()=>{var h=f?xr(u[d]):Ae,p=It(h);return p}),r.set(d,a));var c=A(a);if(c===Ae)return!1}return f},set(u,d,l,a){var f,c=r.get(d),h=d in u;if(i&&d==="length")for(var p=l;p<c.v;p+=1){var m=r.get(p+"");m!==void 0?re(m,Ae):p in u&&(m=n(()=>It(Ae)),r.set(p+"",m))}if(c===void 0)(!h||(f=rr(u,d))!=null&&f.writable)&&(c=n(()=>It(void 0)),re(c,xr(l)),r.set(d,c));else{h=c.v!==Ae;var g=n(()=>xr(l));re(c,g)}var w=Reflect.getOwnPropertyDescriptor(u,d);if(w!=null&&w.set&&w.set.call(a,l),!h){if(i&&typeof d=="string"){var v=r.get("length"),S=Number(d);Number.isInteger(S)&&S>=v.v&&re(v,S+1)}ii(s)}return!0},ownKeys(u){A(s);var d=Reflect.ownKeys(u).filter(f=>{var c=r.get(f);return c===void 0||c.v!==Ae});for(var[l,a]of r)a.v!==Ae&&!(l in u)&&d.push(l);return d},setPrototypeOf(){Af()}})}var oa,Nu,Au,Ou;function Gn(){if(oa===void 0){oa=window,Nu=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Au=rr(t,"firstChild").get,Ou=rr(t,"nextSibling").get,ra(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ra(r)&&(r.__t=void 0)}}function ht(e=""){return document.createTextNode(e)}function cr(e){return Au.call(e)}function St(e){return Ou.call(e)}function ot(e,t){if(!K)return cr(e);var r=cr(X);if(r===null)r=X.appendChild(ht());else if(t&&r.nodeType!==yo){var i=ht();return r==null||r.before(i),je(i),i}return je(r),r}function Yf(e,t=!1){if(!K){var r=cr(e);return r instanceof Comment&&r.data===""?St(r):r}if(t&&(X==null?void 0:X.nodeType)!==yo){var i=ht();return X==null||X.before(i),je(i),i}return X}function He(e,t=1,r=!1){let i=K?X:e;for(var s;t--;)s=i,i=St(i);if(!K)return i;if(r&&(i==null?void 0:i.nodeType)!==yo){var o=ht();return i===null?s==null||s.after(o):i.before(o),je(o),o}return je(i),i}function Du(e){e.textContent=""}function Tu(){return!1}let aa=!1;function ku(){aa||(aa=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const r of e.target.elements)(t=r.__on_r)==null||t.call(r)})},{capture:!0}))}function os(e){var t=J,r=Q;Be(null),tt(null);try{return e()}finally{Be(t),tt(r)}}function Jf(e,t,r,i=r){e.addEventListener(t,()=>os(r));const s=e.__on_r;s?e.__on_r=()=>{s(),i(!0)}:e.__on_r=()=>i(!0),ku()}function Iu(e){Q===null&&(J===null&&Ef(),_f()),pr&&Sf()}function Xf(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function _t(e,t,r){var u;var i=Q;i!==null&&(i.f&qe)!==0&&(e|=qe);var s={ctx:oe,deps:null,nodes:null,f:e|Fe|ft,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{Lr(s),s.f|=Zi}catch(d){throw Le(s),d}else t!==null&&ur(s);var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&Br)===0&&(o=o.first,(e&Tt)!==0&&(e&Tr)!==0&&o!==null&&(o.f|=Tr)),o!==null&&(o.parent=i,i!==null&&Xf(o,i),J!==null&&(J.f&Re)!==0&&(e&hr)===0)){var n=J;((u=n.effects)!=null?u:n.effects=[]).push(o)}return s}function ui(){return J!==null&&!bt}function _o(e){const t=_t(Qi,null,!1);return Me(t,xe),t.teardown=e,t}function Hn(e){var s;Iu();var t=Q.f,r=!J&&(t&kt)!==0&&(t&Zi)===0;if(r){var i=oe;((s=i.e)!=null?s:i.e=[]).push(e)}else return Pu(e)}function Pu(e){return _t(go|pu,e,!1)}function Qf(e){return Iu(),_t(Qi|pu,e,!0)}function Kf(e){lr.ensure();const t=_t(hr|Br,e,!0);return(r={})=>new Promise(i=>{r.outro?dr(t,()=>{Le(t),i(void 0)}):(Le(t),i(void 0))})}function Zf(e){return _t(go,e,!1)}function Wt(e,t){var r=oe,i={effect:null,ran:!1,deps:e};r.l.$.push(i),i.effect=hi(()=>{e(),!i.ran&&(i.ran=!0,Ee(t))})}function Lu(){var e=oe;hi(()=>{for(var t of e.l.$){t.deps();var r=t.effect;(r.f&xe)!==0&&Me(r,dt),Wr(r)&&Lr(r),t.ran=!1}})}function eh(e){return _t(vo|Br,e,!0)}function hi(e,t=0){return _t(Qi|t,e,!0)}function Rr(e,t=[],r=[],i=[]){qf(i,t,r,s=>{_t(Qi,()=>e(...s.map(A)),!0)})}function Eo(e,t=0){var r=_t(Tt|t,e,!0);return r}function Ze(e){return _t(kt|Br,e,!0)}function Fu(e){var t=e.teardown;if(t!==null){const r=pr,i=J;la(!0),Be(null);try{t.call(null)}finally{la(r),Be(i)}}}function Bu(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&os(()=>{s.abort(Cr)});var i=r.next;(r.f&hr)!==0?r.parent=null:Le(r,t),r=i}}function th(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&kt)===0&&Le(t),t=r}}function Le(e,t=!0){var r=!1;(t||(e.f&du)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(rh(e.nodes.start,e.nodes.end),r=!0),Bu(e,t&&!r),qi(e,0),Me(e,Dt);var i=e.nodes&&e.nodes.t;if(i!==null)for(const o of i)o.stop();Fu(e);var s=e.parent;s!==null&&s.first!==null&&Uu(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function rh(e,t){for(;e!==null;){var r=e===t?null:St(e);e.remove(),e=r}}function Uu(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function dr(e,t,r=!0){var i=[];$u(e,i,!0);var s=()=>{r&&Le(e),t&&t()},o=i.length;if(o>0){var n=()=>--o||s();for(var u of i)u.out(n)}else s()}function $u(e,t,r){if((e.f&qe)===0){e.f^=qe;var i=e.nodes&&e.nodes.t;if(i!==null)for(const u of i)(u.is_global||r)&&t.push(u);for(var s=e.first;s!==null;){var o=s.next,n=(s.f&Tr)!==0||(s.f&kt)!==0&&(e.f&Tt)!==0;$u(s,t,n?r:!1),s=o}}}function Co(e){Wu(e,!0)}function Wu(e,t){if((e.f&qe)!==0){e.f^=qe,(e.f&xe)===0&&(Me(e,Fe),ur(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Tr)!==0||(r.f&kt)!==0;Wu(r,s?t:!1),r=i}var o=e.nodes&&e.nodes.t;if(o!==null)for(const n of o)(n.is_global||t)&&n.in()}}function zu(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:St(r);t.append(r),r=s}}let sr=!1;function zi(e){sr=e}let pr=!1;function la(e){pr=e}let J=null,bt=!1;function Be(e){J=e}let Q=null;function tt(e){Q=e}let et=null;function ih(e){J!==null&&(et===null?et=[e]:et.push(e))}let Ie=null,Ue=0,Ye=null;function sh(e){Ye=e}let qu=1,ci=0,nr=ci;function ua(e){nr=e}function ju(){return++qu}function Wr(e){var t=e.f;if((t&Fe)!==0)return!0;if(t&Re&&(e.f&=~ar),(t&dt)!==0){var r=e.deps;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s];if(Wr(o)&&xu(o),o.wv>e.wv)return!0}(t&ft)!==0&&De===null&&Me(e,xe)}return!1}function Vu(e,t,r=!0){var i=e.reactions;if(i!==null&&!(et!=null&&et.includes(e)))for(var s=0;s<i.length;s++){var o=i[s];(o.f&Re)!==0?Vu(o,t,!1):t===o&&(r?Me(o,Fe):(o.f&xe)!==0&&Me(o,dt),ur(o))}}function Gu(e){var m;var t,r=Ie,i=Ue,s=Ye,o=J,n=et,u=oe,d=bt,l=nr,a=e.f;Ie=null,Ue=0,Ye=null,J=(a&(kt|hr))===0?e:null,et=null,kr(e.ctx),bt=!1,nr=++ci,e.ac!==null&&(os(()=>{e.ac.abort(Cr)}),e.ac=null);try{e.f|=zn;var f=e.fn,c=f(),h=e.deps;if(Ie!==null){var p;if(qi(e,Ue),h!==null&&Ue>0)for(h.length=Ue+Ie.length,p=0;p<Ie.length;p++)h[Ue+p]=Ie[p];else e.deps=h=Ie;if(ui()&&(e.f&ft)!==0)for(p=Ue;p<h.length;p++)((m=(t=h[p]).reactions)!=null?m:t.reactions=[]).push(e)}else h!==null&&Ue<h.length&&(qi(e,Ue),h.length=Ue);if(fi()&&Ye!==null&&!bt&&h!==null&&(e.f&(Re|dt|Fe))===0)for(p=0;p<Ye.length;p++)Vu(Ye[p],e);return o!==null&&o!==e&&(ci++,Ye!==null&&(s===null?s=Ye:s.push(...Ye))),(e.f&Ht)!==0&&(e.f^=Ht),c}catch(g){return bu(g)}finally{e.f^=zn,Ie=r,Ue=i,Ye=s,J=o,et=n,kr(u),bt=d,nr=l}}function nh(e,t){let r=t.reactions;if(r!==null){var i=pf.call(r,e);if(i!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[i]=r[s],r.pop())}}r===null&&(t.f&Re)!==0&&(Ie===null||!Ie.includes(t))&&(Me(t,dt),(t.f&ft)!==0&&(t.f^=ft,t.f&=~ar),Cu(t),qi(t,0))}function qi(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)nh(e,r[i])}function Lr(e){var t=e.f;if((t&Dt)===0){Me(e,xe);var r=Q,i=sr;Q=e,sr=!0;try{(t&(Tt|yf))!==0?th(e):Bu(e),Fu(e);var s=Gu(e);e.teardown=typeof s=="function"?s:null,e.wv=qu;var o;$n&&rf&&(e.f&Fe)!==0&&e.deps}finally{sr=i,Q=r}}}function A(e){var d;var t=e.f,r=(t&Re)!==0;if(J!==null&&!bt){var i=Q!==null&&(Q.f&Dt)!==0;if(!i&&!(et!=null&&et.includes(e))){var s=J.deps;if((J.f&zn)!==0)e.rv<ci&&(e.rv=ci,Ie===null&&s!==null&&s[Ue]===e?Ue++:Ie===null?Ie=[e]:Ie.includes(e)||Ie.push(e));else{((d=J.deps)!=null?d:J.deps=[]).push(e);var o=e.reactions;o===null?e.reactions=[J]:o.includes(J)||o.push(J)}}}if(pr){if(Yt.has(e))return Yt.get(e);if(r){var n=e,u=n.v;return((n.f&xe)===0&&n.reactions!==null||Yu(n))&&(u=So(n)),Yt.set(n,u),u}}else r&&(!(De!=null&&De.has(e))||ne!=null&&ne.is_fork&&!ui())&&(n=e,Wr(n)&&xu(n),sr&&ui()&&(n.f&ft)===0&&Hu(n));if(De!=null&&De.has(e))return De.get(e);if((e.f&Ht)!==0)throw e.v;return e.v}function Hu(e){var t;if(e.deps!==null){e.f^=ft;for(const r of e.deps)((t=r.reactions)!=null?t:r.reactions=[]).push(e),(r.f&Re)!==0&&(r.f&ft)===0&&Hu(r)}}function Yu(e){if(e.v===Ae)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Yt.has(t)||(t.f&Re)!==0&&Yu(t))return!0;return!1}function Ee(e){var t=bt;try{return bt=!0,e()}finally{bt=t}}const oh=-7169;function Me(e,t){e.f=e.f&oh|t}function $e(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(ir in e)Yn(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&ir in r&&Yn(r)}}}function Yn(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let i in e)try{Yn(e[i],t)}catch(s){}const r=mo(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const i=fu(r);for(let s in i){const o=i[s].get;if(o)try{o.call(e)}catch(n){}}}}}const ah=new Set,ca=new Set;function lh(e,t,r,i={}){function s(o){if(i.capture||Xr.call(t,o),!o.cancelBubble)return os(()=>r==null?void 0:r.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?$r(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function Gr(e,t,r,i,s){var o={capture:i,passive:s},n=lh(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&_o(()=>{t.removeEventListener(e,n,o)})}let fa=null;function Xr(e){var t,r=this,i=r.ownerDocument,s=e.type,o=((t=e.composedPath)==null?void 0:t.call(e))||[],n=o[0]||e.target;fa=e;var u=0,d=fa===e&&e.__root;if(d){var l=o.indexOf(d);if(l!==-1&&(r===document||r===window)){e.__root=r;return}var a=o.indexOf(r);if(a===-1)return;l<=a&&(u=l)}if(n=o[u]||e.target,n!==r){cu(e,"currentTarget",{configurable:!0,get(){return n||i}});var f=J,c=Q;Be(null),tt(null);try{for(var h,p=[];n!==null;){var m=n.assignedSlot||n.parentNode||n.host||null;try{var g=n["__"+s];g!=null&&(!n.disabled||e.target===n)&&g.call(n,e)}catch(w){h?p.push(w):h=w}if(e.cancelBubble||m===r||m===null)break;n=m}if(h){for(let w of p)queueMicrotask(()=>{throw w});throw h}}finally{e.__root=r,delete e.currentTarget,Be(f),tt(c)}}}function Ju(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function fr(e,t){var r=Q;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function zr(e,t){var r=(t&hf)!==0,i,s=!e.startsWith("<!>");return()=>{if(K)return fr(X,null),X;i===void 0&&(i=Ju(s?e:"<!>"+e),i=cr(i));var o=r||Nu?document.importNode(i,!0):i.cloneNode(!0);return fr(o,o),o}}function uh(e,t,r="svg"){var i=!e.startsWith("<!>"),s=`<${r}>${i?e:"<!>"+e}</${r}>`,o;return()=>{if(K)return fr(X,null),X;if(!o){var n=Ju(s),u=cr(n);o=cr(u)}var d=o.cloneNode(!0);return fr(d,d),d}}function Xu(e,t){return uh(e,t,"svg")}function ch(){if(K)return fr(X,null),X;var e=document.createDocumentFragment(),t=document.createComment(""),r=ht();return e.append(t,r),fr(t,r),e}function Rt(e,t){if(K){var r=Q;((r.f&Zi)===0||r.nodes.end===null)&&(r.nodes.end=X),rs();return}e!==null&&e.before(t)}const fh=["touchstart","touchmove"];function hh(e){return fh.includes(e)}function Li(e,t){var i;var r=t==null?"":typeof t=="object"?t+"":t;r!==((i=e.__t)!=null?i:e.__t=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Qu(e,t){return Ku(e,t)}function dh(e,t){var n;Gn(),t.intro=(n=t.intro)!=null?n:!1;const r=t.target,i=K,s=X;try{for(var o=cr(r);o&&(o.nodeType!==Ur||o.data!==uu);)o=St(o);if(!o)throw Dr;Ot(!0),je(o);const u=Ku(e,be(G({},t),{anchor:o}));return Ot(!1),u}catch(u){if(u instanceof Error&&u.message.split(`
15
- `).some(d=>d.startsWith("https://svelte.dev/e/")))throw u;return u!==Dr&&console.warn("Failed to hydrate: ",u),t.recover===!1&&xf(),Gn(),Du(r),Ot(!1),Qu(e,t)}finally{Ot(i),je(s)}}const vr=new Map;function Ku(e,{target:t,anchor:r,props:i={},events:s,context:o,intro:n=!0}){Gn();var u=new Set,d=f=>{for(var c=0;c<f.length;c++){var h=f[c];if(!u.has(h)){u.add(h);var p=hh(h);t.addEventListener(h,Xr,{passive:p});var m=vr.get(h);m===void 0?(document.addEventListener(h,Xr,{passive:p}),vr.set(h,1)):vr.set(h,m+1)}}};d(Xi(ah)),ca.add(d);var l=void 0,a=Kf(()=>{var f=r!=null?r:t.appendChild(ht());return Wf(f,{pending:()=>{}},c=>{if(o){wo({});var h=oe;h.c=o}if(s&&(i.$$events=s),K&&fr(c,null),l=e(c,i)||{},K&&(Q.nodes.end=X,X===null||X.nodeType!==Ur||X.data!==ho))throw ts(),Dr;o&&bo()}),()=>{var c;for(var h of u){t.removeEventListener(h,Xr);var p=vr.get(h);--p===0?(document.removeEventListener(h,Xr),vr.delete(h)):vr.set(h,p)}ca.delete(d),f!==r&&((c=f.parentNode)==null||c.removeChild(f))}});return Jn.set(l,a),l}let Jn=new WeakMap;function ph(e,t){const r=Jn.get(e);return r?(Jn.delete(e),r(t)):Promise.resolve()}class mh{constructor(t,r=!0){Nt(this,"anchor"),Y(this,vt,new Map),Y(this,xt,new Map),Y(this,Ve,new Map),Y(this,br,new Set),Y(this,ki,!0),Y(this,Ii,()=>{var i=ne;if(M(this,vt).has(i)){var s=M(this,vt).get(i),o=M(this,xt).get(s);if(o)Co(o),M(this,br).delete(s);else{var n=M(this,Ve).get(s);n&&(M(this,xt).set(s,n.effect),M(this,Ve).delete(s),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),o=n.effect)}for(const[u,d]of M(this,vt)){if(M(this,vt).delete(u),u===i)break;const l=M(this,Ve).get(d);l&&(Le(l.effect),M(this,Ve).delete(d))}for(const[u,d]of M(this,xt)){if(u===s||M(this,br).has(u))continue;const l=()=>{if(Array.from(M(this,vt).values()).includes(u)){var f=document.createDocumentFragment();zu(d,f),f.append(ht()),M(this,Ve).set(u,{effect:d,fragment:f})}else Le(d);M(this,br).delete(u),M(this,xt).delete(u)};M(this,ki)||!o?(M(this,br).add(u),dr(d,l,!1)):l()}}}),Y(this,Un,i=>{M(this,vt).delete(i);const s=Array.from(M(this,vt).values());for(const[o,n]of M(this,Ve))s.includes(o)||(Le(n.effect),M(this,Ve).delete(o))}),this.anchor=t,U(this,ki,r)}ensure(t,r){var i=ne,s=Tu();if(r&&!M(this,xt).has(t)&&!M(this,Ve).has(t))if(s){var o=document.createDocumentFragment(),n=ht();o.append(n),M(this,Ve).set(t,{effect:Ze(()=>r(n)),fragment:o})}else M(this,xt).set(t,Ze(()=>r(this.anchor)));if(M(this,vt).set(i,t),s){for(const[u,d]of M(this,xt))u===t?i.skipped_effects.delete(d):i.skipped_effects.add(d);for(const[u,d]of M(this,Ve))u===t?i.skipped_effects.delete(d.effect):i.skipped_effects.add(d.effect);i.oncommit(M(this,Ii)),i.ondiscard(M(this,Un))}else K&&(this.anchor=X),M(this,Ii).call(this)}}vt=new WeakMap;xt=new WeakMap;Ve=new WeakMap;br=new WeakMap;ki=new WeakMap;Ii=new WeakMap;Un=new WeakMap;function xo(e){oe===null&&es(),Fr&&oe.l!==null?ec(oe).m.push(e):Hn(()=>{const t=Ee(e);if(typeof t=="function")return t})}function Zu(e){oe===null&&es(),xo(()=>()=>Ee(e))}function gh(e,t,{bubbles:r=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:i})}function vh(){const e=oe;return e===null&&es(),(t,r,i)=>{var s;const o=(s=e.s.$$events)==null?void 0:s[t];if(o){const n=po(o)?o.slice():[o],u=gh(t,r,i);for(const d of n)d.call(e.x,u);return!u.defaultPrevented}return!0}}function yh(e){oe===null&&es(),oe.l===null&&Rf(),ec(oe).a.push(e)}function ec(e){var r;var t=e.l;return(r=t.u)!=null?r:t.u={a:[],b:[],m:[]}}function Xn(e,t,r=!1){K&&rs();var i=new mh(e),s=r?Tr:0;function o(n,u){if(K){const l=gu(e)===Ji;if(n===l){var d=$i();je(d),i.anchor=d,Ot(!1),i.ensure(n,u),Ot(!0);return}}i.ensure(n,u)}Eo(()=>{var n=!1;t((u,d=!0)=>{n=!0,o(d,u)}),n||o(!1,null)},s)}function _s(e,t){return t}function wh(e,t,r){var f;for(var i=[],s=t.length,o,n=t.length,u=0;u<s;u++){let c=t[u];dr(c,()=>{if(o){if(o.pending.delete(c),o.done.add(c),o.pending.size===0){var h=e.outrogroups;Qn(Xi(o.done)),h.delete(o),h.size===0&&(e.outrogroups=null)}}else n-=1},!1)}if(n===0){var d=i.length===0&&r!==null;if(d){var l=r,a=l.parentNode;Du(a),a.append(l),e.items.clear()}Qn(t,!d)}else o={pending:new Set(t),done:new Set},((f=e.outrogroups)!=null?f:e.outrogroups=new Set).add(o)}function Qn(e,t=!0){for(var r=0;r<e.length;r++)Le(e[r],t)}var Pt;function Es(e,t,r,i,s,o=null){var n=e,u=new Map;K&&rs();var d=null,l=ns(()=>{var m=r();return po(m)?m:m==null?[]:Xi(m)}),a,f=!0;function c(){p.fallback=d,bh(p,a,n,t,i),d!==null&&(a.length===0?(d.f&zt)===0?Co(d):(d.f^=zt,Qr(d,null,n)):dr(d,()=>{d=null}))}var h=Eo(()=>{a=A(l);var m=a.length;let g=!1;if(K){var w=gu(n)===Ji;w!==(m===0)&&(n=$i(),je(n),Ot(!1),g=!0)}for(var v=new Set,S=ne,E=Tu(),y=0;y<m;y+=1){K&&X.nodeType===Ur&&X.data===ho&&(n=X,g=!0,Ot(!1));var b=a[y],_=i(b,y),C=f?null:u.get(_);C?(C.v&&Pr(C.v,b),C.i&&Pr(C.i,y),E&&S.skipped_effects.delete(C.e)):(C=Sh(u,f?n:Pt!=null?Pt:Pt=ht(),b,_,y,s,t,r),f||(C.e.f|=zt),u.set(_,C)),v.add(_)}if(m===0&&o&&!d&&(f?d=Ze(()=>o(n)):(d=Ze(()=>o(Pt!=null?Pt:Pt=ht())),d.f|=zt)),K&&m>0&&je($i()),!f)if(E){for(const[N,x]of u)v.has(N)||S.skipped_effects.add(x.e);S.oncommit(c),S.ondiscard(()=>{})}else c();g&&Ot(!0),A(l)}),p={effect:h,items:u,outrogroups:null,fallback:d};f=!1,K&&(n=X)}function bh(e,t,r,i,s){var o,n=t.length,u=e.items,d=e.effect.first,l,a=null,f=[],c=[],h,p,m,g;for(g=0;g<n;g+=1){if(h=t[g],p=s(h,g),m=u.get(p).e,e.outrogroups!==null)for(const N of e.outrogroups)N.pending.delete(m),N.done.delete(m);if((m.f&zt)!==0)if(m.f^=zt,m===d)Qr(m,null,r);else{var w=a?a.next:d;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),Lt(e,a,m),Lt(e,m,w),Qr(m,w,r),a=m,f=[],c=[],d=a.next;continue}if((m.f&qe)!==0&&Co(m),m!==d){if(l!==void 0&&l.has(m)){if(f.length<c.length){var v=c[0],S;a=v.prev;var E=f[0],y=f[f.length-1];for(S=0;S<f.length;S+=1)Qr(f[S],v,r);for(S=0;S<c.length;S+=1)l.delete(c[S]);Lt(e,E.prev,y.next),Lt(e,a,E),Lt(e,y,v),d=v,a=y,g-=1,f=[],c=[]}else l.delete(m),Qr(m,d,r),Lt(e,m.prev,m.next),Lt(e,m,a===null?e.effect.first:a.next),Lt(e,a,m),a=m;continue}for(f=[],c=[];d!==null&&d!==m;)(l!=null?l:l=new Set).add(d),c.push(d),d=d.next;if(d===null)continue}(m.f&zt)===0&&f.push(m),a=m,d=m.next}if(e.outrogroups!==null){for(const N of e.outrogroups)N.pending.size===0&&(Qn(Xi(N.done)),(o=e.outrogroups)==null||o.delete(N));e.outrogroups.size===0&&(e.outrogroups=null)}if(d!==null||l!==void 0){var b=[];if(l!==void 0)for(m of l)(m.f&qe)===0&&b.push(m);for(;d!==null;)(d.f&qe)===0&&d!==e.fallback&&b.push(d),d=d.next;var _=b.length;if(_>0){var C=null;wh(e,b,C)}}}function Sh(e,t,r,i,s,o,n,u){var d=(n&nf)!==0?(n&af)===0?Oe(r,!1,!1):Jt(r):null,l=(n&of)!==0?Jt(s):null;return{v:d,i:l,e:Ze(()=>(o(t,d!=null?d:r,l!=null?l:s,u),()=>{e.delete(i)}))}}function Qr(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,o=t&&(t.f&zt)===0?t.nodes.start:r;i!==null;){var n=St(i);if(o.before(i),i===s)return;i=n}}function Lt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}const ha=[...`
16
- \r\f\xA0\v\uFEFF`];function _h(e,t,r){var i=e==null?"":""+e;if(r){for(var s in r)if(r[s])i=i?i+" "+s:s;else if(i.length)for(var o=s.length,n=0;(n=i.indexOf(s,n))>=0;){var u=n+o;(n===0||ha.includes(i[n-1]))&&(u===i.length||ha.includes(i[u]))?i=(n===0?"":i.substring(0,n))+i.substring(u+1):n=u}}return i===""?null:i}function Eh(e,t){return e==null?null:String(e)}function Kn(e,t,r,i,s,o){var n=e.__className;if(K||n!==r||n===void 0){var u=_h(r,i,o);(!K||u!==e.getAttribute("class"))&&(u==null?e.removeAttribute("class"):e.className=u),e.__className=r}else if(o&&s!==o)for(var d in o){var l=!!o[d];(s==null||l!==!!s[d])&&e.classList.toggle(d,l)}return o}function Mr(e,t,r,i){var s=e.__style;if(K||s!==t){var o=Eh(t);(!K||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}return i}const Ch=Symbol("is custom element"),xh=Symbol("is html");function Rh(e){if(K){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var i=e.value;or(e,"value",null),e.value=i}if(e.hasAttribute("checked")){var s=e.checked;or(e,"checked",null),e.checked=s}}};e.__on_r=r,$r(r),ku()}}function or(e,t,r,i){var s=Mh(e);K&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[wf]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Nh(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Mh(e){var t;return(t=e.__attributes)!=null?t:e.__attributes={[Ch]:e.nodeName.includes("-"),[xh]:e.namespaceURI===df}}var da=new Map;function Nh(e){var t=e.getAttribute("is")||e.nodeName,r=da.get(t);if(r)return r;da.set(t,r=[]);for(var i,s=e,o=Element.prototype;o!==s;){i=fu(s);for(var n in i)i[n].set&&r.push(n);s=mo(s)}return r}function Ah(e,t,r=t){Jf(e,"change",i=>{var s=i?e.defaultChecked:e.checked;r(s)}),(K&&e.defaultChecked!==e.checked||Ee(t)==null)&&r(e.checked),hi(()=>{var i=t();e.checked=!!i})}function ve(e,t,r){var i=rr(e,t);i&&i.set&&(e[t]=r,_o(()=>{e[t]=null}))}function pa(e,t){return e===t||(e==null?void 0:e[ir])===t}function Fi(e={},t,r,i){return Zf(()=>{var s,o;return hi(()=>{s=o,o=[],Ee(()=>{e!==r(...o)&&(t(e,...o),s&&pa(r(...s),e)&&t(null,...s))})}),()=>{$r(()=>{o&&pa(r(...o),e)&&t(null,...o)})}}),e}function tc(e=!1){const t=oe,r=t.l.u;if(!r)return;let i=()=>$e(t.s);if(e){let s=0,o={};const n=ss(()=>{let u=!1;const d=t.s;for(const l in d)d[l]!==o[l]&&(o[l]=d[l],u=!0);return u&&s++,s});i=()=>A(n)}r.b.length&&Qf(()=>{ma(t,i),Wn(r.b)}),Hn(()=>{const s=Ee(()=>r.m.map(vf));return()=>{for(const o of s)typeof o=="function"&&o()}}),r.a.length&&Hn(()=>{ma(t,i),Wn(r.a)})}function ma(e,t){if(e.l.s)for(const r of e.l.s)A(r);t()}let bi=!1;function Oh(e){var t=bi;try{return bi=!1,[e(),bi]}finally{bi=t}}const Dh={get(e,t){if(!e.exclude.includes(t))return A(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,r){if(!(t in e.special)){var i=Q;try{tt(e.parent_effect),e.special[t]=me({get[t](){return e.props[t]}},t,lu)}finally{tt(i)}}return e.special[t](r),na(e.version),!0},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},deleteProperty(e,t){return e.exclude.includes(t)||(e.exclude.push(t),na(e.version)),!0},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function Th(e,t){return new Proxy({props:e,exclude:t,special:{},version:Jt(0),parent_effect:Q},Dh)}function me(e,t,r,i){var E;var s,o=!Fr||(r&uf)!==0,n=(r&cf)!==0,u=(r&ff)!==0,d=i,l=!0,a=()=>(l&&(l=!1,d=u?Ee(i):i),d),f;if(n){var c=ir in e||mu in e;f=(E=(s=rr(e,t))==null?void 0:s.set)!=null?E:c&&t in e?y=>e[t]=y:void 0}var h,p=!1;n?[h,p]=Oh(()=>e[t]):h=e[t],h===void 0&&i!==void 0&&(h=a(),f&&(o&&Mf(),f(h)));var m;if(o?m=()=>{var y=e[t];return y===void 0?a():(l=!0,y)}:m=()=>{var y=e[t];return y!==void 0&&(d=void 0),y===void 0?d:y},o&&(r&lu)===0)return m;if(f){var g=e.$$legacy;return(function(y,b){return arguments.length>0?((!o||!b||g||p)&&f(b?m():y),y):m()})}var w=!1,v=((r&lf)!==0?ss:ns)(()=>(w=!1,m()));n&&A(v);var S=Q;return(function(y,b){if(arguments.length>0){const _=b?A(v):o&&n?xr(y):y;return re(v,_),w=!0,d!==void 0&&(d=_),y}return pr&&w||(S.f&Dt)!==0?v.v:A(v)})}function kh(e){return class extends Ih{constructor(t){super(G({component:e},t))}}}class Ih{constructor(t){var n;Y(this,Bt),Y(this,st);var r,i=new Map,s=(u,d)=>{var l=Oe(d,!1,!1);return i.set(u,l),l};const o=new Proxy(be(G({},t.props||{}),{$$events:{}}),{get(u,d){var l;return A((l=i.get(d))!=null?l:s(d,Reflect.get(u,d)))},has(u,d){var l;return d===mu?!0:(A((l=i.get(d))!=null?l:s(d,Reflect.get(u,d))),Reflect.has(u,d))},set(u,d,l){var a;return re((a=i.get(d))!=null?a:s(d,l),l),Reflect.set(u,d,l)}});U(this,st,(t.hydrate?dh:Qu)(t.component,{target:t.target,anchor:t.anchor,props:o,context:t.context,intro:(n=t.intro)!=null?n:!1,recover:t.recover})),(!((r=t==null?void 0:t.props)!=null&&r.$$host)||t.sync===!1)&&Ff(),U(this,Bt,o.$$events);for(const u of Object.keys(M(this,st)))u==="$set"||u==="$destroy"||u==="$on"||cu(this,u,{get(){return M(this,st)[u]},set(d){M(this,st)[u]=d},enumerable:!0});M(this,st).$set=u=>{Object.assign(o,u)},M(this,st).$destroy=()=>{ph(M(this,st))}}$set(t){M(this,st).$set(t)}$on(t,r){M(this,Bt)[t]=M(this,Bt)[t]||[];const i=(...s)=>r.call(this,...s);return M(this,Bt)[t].push(i),()=>{M(this,Bt)[t]=M(this,Bt)[t].filter(s=>s!==i)}}$destroy(){M(this,st).$destroy()}}Bt=new WeakMap;st=new WeakMap;var Ph=Object.defineProperty,Lh=(e,t,r)=>t in e?Ph(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F=(e,t,r)=>Lh(e,typeof t!="symbol"?t+"":t,r),ga,Fh=Object.defineProperty,Bh=(e,t,r)=>t in e?Fh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,va=(e,t,r)=>Bh(e,typeof t!="symbol"?t+"":t,r),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||{});const ya={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},wa={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Si={};function Uh(e){var t,r;const i=(r=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(i&&globalThis[i])return globalThis[i]}function Ro(e){if(Si[e])return Si[e];const t=Uh(e)||globalThis[e],r=t.prototype,i=e in ya?ya[e]:void 0,s=!!(i&&i.every(u=>{var d,l;return!!((l=(d=Object.getOwnPropertyDescriptor(r,u))==null?void 0:d.get)!=null&&l.toString().includes("[native code]"))})),o=e in wa?wa[e]:void 0,n=!!(o&&o.every(u=>{var d;return typeof r[u]=="function"&&((d=r[u])==null?void 0:d.toString().includes("[native code]"))}));if(s&&n)return Si[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?Si[e]=l:r}catch(u){return r}}const Cs={};function Xt(e,t,r){var i;const s=`${e}.${String(r)}`;if(Cs[s])return Cs[s].call(t);const o=Ro(e),n=(i=Object.getOwnPropertyDescriptor(o,r))==null?void 0:i.get;return n?(Cs[s]=n,n.call(t)):t[r]}const xs={};function rc(e,t,r){const i=`${e}.${String(r)}`;if(xs[i])return xs[i].bind(t);const o=Ro(e)[r];return typeof o!="function"?t[r]:(xs[i]=o,o.bind(t))}function $h(e){return Xt("Node",e,"childNodes")}function Wh(e){return Xt("Node",e,"parentNode")}function zh(e){return Xt("Node",e,"parentElement")}function qh(e){return Xt("Node",e,"textContent")}function jh(e,t){return rc("Node",e,"contains")(t)}function Vh(e){return rc("Node",e,"getRootNode")()}function Gh(e){return!e||!("host"in e)?null:Xt("ShadowRoot",e,"host")}function Hh(e){return e.styleSheets}function Yh(e){return!e||!("shadowRoot"in e)?null:Xt("Element",e,"shadowRoot")}function Jh(e,t){return Xt("Element",e,"querySelector")(t)}function Xh(e,t){return Xt("Element",e,"querySelectorAll")(t)}function Qh(){return Ro("MutationObserver").constructor}const Te={childNodes:$h,parentNode:Wh,parentElement:zh,textContent:qh,contains:jh,getRootNode:Vh,host:Gh,styleSheets:Hh,shadowRoot:Yh,querySelector:Jh,querySelectorAll:Xh,mutationObserver:Qh};function Mo(e){return e.nodeType===e.ELEMENT_NODE}function Kh(e){const t=e&&"host"in e&&"mode"in e&&Te.host(e)||null;return!!(t&&"shadowRoot"in t&&Te.shadowRoot(t)===e)}function Rs(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Zh(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function ed(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function Zn(e){try{const t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);const i=Array.from(t,s=>ic(s,r)).join("");return Zh(i)}catch(t){return null}}function ic(e,t){if(rd(e)){let r;try{r=Zn(e.styleSheet)||ed(e)}catch(i){r=e.cssText}return e.styleSheet.href?ji(r,e.styleSheet.href):r}else{let r=e.cssText;return id(e)&&e.selectorText.includes(":")&&(r=td(r)),t?ji(r,t):r}}function td(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function rd(e){return"styleSheet"in e}function id(e){return"selectorText"in e}class No{constructor(){va(this,"idNodeMap",new Map),va(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const i=(r=this.getMeta(t))==null?void 0:r.id;return i!=null?i:-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(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){const i=this.getNode(t);if(i){const s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function eo(){return new No}function sd({element:e,maskInputOptions:t,tagName:r,type:i,value:s,maskInputFn:o}){let n=s||"";const u=i&&di(i);return(t[r.toLowerCase()]||u&&t[u])&&(o?n=o(n,e):n="*".repeat(n.length)),n}function di(e){return e.toLowerCase()}const ba="__rrweb_original__";function nd(e){const t=e.getContext("2d");if(!t)return!0;const r=50;for(let i=0;i<e.width;i+=r)for(let s=0;s<e.height;s+=r){const o=t.getImageData,n=ba in o?o[ba]:o;if(new Uint32Array(n.call(t,i,s,Math.min(r,e.width-i),Math.min(r,e.height-s)).data.buffer).some(d=>d!==0))return!1}return!0}function od(e,t){return!e||!t||e.type!==t.type?!1:e.type===W.Document?e.compatMode===t.compatMode:e.type===W.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===W.Comment||e.type===W.Text||e.type===W.CDATA?e.textContent===t.textContent:e.type===W.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function ad(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?di(t):null}function sc(e,t){var o;let r;try{r=new URL(e,t!=null?t:window.location.href)}catch(n){return null}const i=/\.([0-9a-z]+)(?:$)/i,s=r.pathname.match(i);return(o=s==null?void 0:s[1])!=null?o:null}function ld(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}const ud=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,cd=/^(?:[a-z+]+:)?\/\//i,fd=/^www\..*/i,hd=/^(data:)([^,]*),(.*)/i;function ji(e,t){return(e||"").replace(ud,(r,i,s,o,n,u)=>{const d=s||n||u,l=i||o||"";if(!d)return r;if(cd.test(d)||fd.test(d))return`url(${l}${d}${l})`;if(hd.test(d))return`url(${l}${d}${l})`;if(d[0]==="/")return`url(${l}${ld(t)+d}${l})`;const a=t.split("/"),f=d.split("/");a.pop();for(const c of f)c!=="."&&(c===".."?a.pop():a.push(c));return`url(${l}${a.join("/")}${l})`})}function _i(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function dd(e,t,r=!1){const i=Array.from(t.childNodes),s=[];let o=0;if(i.length>1&&e&&typeof e=="string"){let n=_i(e,r);const u=n.length/e.length;for(let d=1;d<i.length;d++)if(i[d].textContent&&typeof i[d].textContent=="string"){const l=_i(i[d].textContent,r),a=100;let f=3;for(;f<l.length&&(l[f].match(/[a-zA-Z0-9]/)||l.indexOf(l.substring(0,f),1)!==-1);f++);for(;f<l.length;f++){let c=l.substring(0,f),h=n.split(c),p=-1;if(h.length===2)p=h[0].length;else if(h.length>2&&h[0]===""&&i[d-1].textContent!=="")p=n.indexOf(c,1);else if(h.length===1){if(c=c.substring(0,c.length-1),h=n.split(c),h.length<=1)return s.push(e),s;f=a+1}else f===l.length-1&&(p=n.indexOf(c));if(h.length>=2&&f>a){const m=i[d-1].textContent;if(m&&typeof m=="string"){const g=_i(m).length;p=n.indexOf(c,g)}p===-1&&(p=h[0].length)}if(p!==-1){let m=Math.floor(p/u);for(;m>0&&m<e.length;){if(o+=1,o>50*i.length)return s.push(e),s;const g=_i(e.substring(0,m),r);if(g.length===p){s.push(e.substring(0,m)),e=e.substring(m),n=n.substring(p);break}else g.length<p?m+=Math.max(1,Math.floor((p-g.length)/u)):m-=Math.max(1,Math.floor((g.length-p)*u))}break}}}}return s.push(e),s}function pd(e,t){return dd(e,t).join("/* rr_split */")}const md="lightgrey";let gd=1;const vd=new RegExp("[^a-z0-9-_:]"),Sa=-2;function yd(){return gd++}function wd(e){if(e instanceof HTMLFormElement)return"form";const t=di(e.tagName);return vd.test(t)?"div":t}let yr,_a;const bd=/^[^ \t\n\r\u000c]+/,Sd=/^[, \t\n\r\u000c]+/;function _d(e,t){if(t.trim()==="")return t;let r=0;function i(o){let n;const u=o.exec(t.substring(r));return u?(n=u[0],r+=n.length,n):""}const s=[];for(;i(Sd),!(r>=t.length);){let o=i(bd);if(o.slice(-1)===",")o=Nr(e,o.substring(0,o.length-1)),s.push(o);else{let n="";o=Nr(e,o);let u=!1;for(;;){const d=t.charAt(r);if(d===""){s.push((o+n).trim());break}else if(u)d===")"&&(u=!1);else if(d===","){r+=1,s.push((o+n).trim());break}else d==="("&&(u=!0);n+=d,r+=1}}}return s.join(", ")}const Ea=new WeakMap;function Nr(e,t){return!t||t.trim()===""?t:Ao(e,t)}function Ed(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Ao(e,t){let r=Ea.get(e);if(r||(r=e.createElement("a"),Ea.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function Cd(e,t,r,i){return i&&(r==="src"||r==="href"&&!(t==="use"&&i[0]==="#")||r==="xlink:href"&&i[0]!=="#"||r==="background"&&(t==="table"||t==="td"||t==="th")?Nr(e,i):r==="srcset"?_d(e,i):r==="style"?ji(i,Ao(e)):t==="object"&&r==="data"?Nr(e,i):i)}function xd(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function Rd(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){const s=e.classList[i];if(t.test(s))return!0}if(r)return e.matches(r)}catch(i){}return!1}function to(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?to(Te.parentNode(e),t,r):!1;for(let i=e.classList.length;i--;){const s=e.classList[i];if(t.test(s))return!0}return r?to(Te.parentNode(e),t,r):!1}function Md(e,t,r,i){let s;if(Mo(e)){if(s=e,!Te.childNodes(s).length)return!1}else{if(Te.parentElement(e)===null)return!1;s=Te.parentElement(e)}try{if(typeof t=="string"){if(i){if(s.closest(`.${t}`))return!0}else if(s.classList.contains(t))return!0}else if(to(s,t,i))return!0;if(r){if(i){if(s.closest(r))return!0}else if(s.matches(r))return!0}}catch(o){}return!1}function Nd(e,t,r){const i=e.contentWindow;if(!i)return;let s=!1,o;try{o=i.document.readyState}catch(u){return}if(o!=="complete"){const u=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(u),s=!0,t()});return}const n="about:blank";if(i.location.href!==n||e.src===n||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Ad(e,t,r){let i=!1,s;try{s=e.sheet}catch(n){return}if(s)return;const o=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(o),i=!0,t()})}function Od(e,t){const{doc:r,mirror:i,blockClass:s,blockSelector:o,needsMask:n,inlineStylesheet:u,maskInputOptions:d={},maskTextFn:l,maskInputFn:a,maskAttributeFn:f,dataURLOptions:c={},inlineImages:h,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:g=!1,cssCaptured:w=!1,applyBackgroundColorToBlockedElements:v=!1}=t,S=Dd(r,i);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:W.Document,childNodes:[],compatMode:e.compatMode}:{type:W.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:W.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return kd(e,{doc:r,blockClass:s,blockSelector:o,inlineStylesheet:u,maskInputOptions:d,maskInputFn:a,maskAttributeFn:f,dataURLOptions:c,inlineImages:h,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:g,rootId:S,applyBackgroundColorToBlockedElements:v});case e.TEXT_NODE:return Td(e,{doc:r,needsMask:n,maskTextFn:l,rootId:S,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:W.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:W.Comment,textContent:Te.textContent(e)||"",rootId:S};default:return!1}}function Dd(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return r===1?void 0:r}function Td(e,t){const{needsMask:r,maskTextFn:i,rootId:s,cssCaptured:o}=t,n=Te.parentNode(e),u=n&&n.tagName;let d="";const l=u==="STYLE"?!0:void 0,a=u==="SCRIPT"?!0:void 0;return a?d="SCRIPT_PLACEHOLDER":o||(d=Te.textContent(e),l&&d&&(d=ji(d,Ao(t.doc)))),!l&&!a&&d&&r&&(d=i?i(d,Te.parentElement(e)):d.replace(/[\S]/g,"*")),{type:W.Text,textContent:d||"",rootId:s}}function kd(e,t){const{doc:r,blockClass:i,blockSelector:s,inlineStylesheet:o,maskInputOptions:n={},maskInputFn:u,maskAttributeFn:d,dataURLOptions:l={},inlineImages:a,recordCanvas:f,keepIframeSrcFn:c,newlyAddedElement:h=!1,rootId:p,applyBackgroundColorToBlockedElements:m=!1}=t,g=Rd(e,i,s),w=wd(e);let v={};const S=e.attributes.length;for(let y=0;y<S;y++){const b=e.attributes[y];if(!xd(w,b.name,b.value)){const _=Cd(r,w,di(b.name),b.value);if(d&&_!==null){const C=d(b.name,_,e);C!==null&&(v[b.name]=C)}else v[b.name]=_}}if(w==="link"&&o){const y=Array.from(r.styleSheets).find(_=>_.href===e.href);let b=null;y&&(b=Zn(y)),b&&(delete v.rel,delete v.href,v._cssText=b)}if(w==="style"&&e.sheet){let y=Zn(e.sheet);y&&(e.childNodes.length>1&&(y=pd(y,e)),v._cssText=y)}if(w==="input"||w==="textarea"||w==="select"){const y=e.value,b=e.checked;v.type!=="radio"&&v.type!=="checkbox"&&v.type!=="submit"&&v.type!=="button"&&y?v.value=sd({element:e,type:ad(e),tagName:w,value:y,maskInputOptions:n,maskInputFn:u}):b&&(v.checked=b)}if(w==="option"&&(e.selected&&!n.select?v.selected=!0:delete v.selected),w==="dialog"&&e.open&&(v.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),w==="canvas"&&f){if(e.__context==="2d")nd(e)||(v.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const y=e.toDataURL(l.type,l.quality),b=r.createElement("canvas");b.width=e.width,b.height=e.height;const _=b.toDataURL(l.type,l.quality);y!==_&&(v.rr_dataURL=y)}}if(w==="img"&&a){yr||(yr=r.createElement("canvas"),_a=yr.getContext("2d"));const y=e,b=y.currentSrc||y.getAttribute("src")||"<unknown-src>",_=y.crossOrigin,C=()=>{y.removeEventListener("load",C);try{yr.width=y.naturalWidth,yr.height=y.naturalHeight,_a.drawImage(y,0,0),v.rr_dataURL=yr.toDataURL(l.type,l.quality)}catch(N){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?C():y.addEventListener("load",C);return}else console.warn(`Cannot inline img src=${b}! Error: ${N}`)}y.crossOrigin==="anonymous"&&(_?v.crossOrigin=_:y.removeAttribute("crossorigin"))};y.complete&&y.naturalWidth!==0?C():y.addEventListener("load",C)}if(w==="audio"||w==="video"){const y=v;y.rr_mediaState=e.paused?"paused":"played",y.rr_mediaCurrentTime=e.currentTime,y.rr_mediaPlaybackRate=e.playbackRate,y.rr_mediaMuted=e.muted,y.rr_mediaLoop=e.loop,y.rr_mediaVolume=e.volume}if(h||(e.scrollLeft&&(v.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(v.rr_scrollTop=e.scrollTop)),g){const{width:y,height:b}=e.getBoundingClientRect();v=G({class:v.class,rr_width:`${y}px`,rr_height:`${b}px`},m?{rr_background_color:md}:{})}w==="iframe"&&!c(v.src)&&(e.contentDocument||(v.rr_src=v.src),delete v.src);let E;try{customElements.get(w)&&(E=!0)}catch(y){}return{type:W.Element,tagName:w,attributes:v,childNodes:[],isSVG:Ed(e)||void 0,needBlock:g,rootId:p,isCustom:E}}function fe(e){return e==null?"":e.toLowerCase()}function Id(e,t){if(t.comment&&e.type===W.Comment)return!0;if(e.type===W.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&sc(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(fe(e.attributes.name).match(/^msapplication-tile(image|color)$/)||fe(e.attributes.name)==="application-name"||fe(e.attributes.rel)==="icon"||fe(e.attributes.rel)==="apple-touch-icon"||fe(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&fe(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(fe(e.attributes.property).match(/^(og|twitter|fb):/)||fe(e.attributes.name).match(/^(og|twitter):/)||fe(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(fe(e.attributes.name)==="robots"||fe(e.attributes.name)==="googlebot"||fe(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(fe(e.attributes.name)==="author"||fe(e.attributes.name)==="generator"||fe(e.attributes.name)==="framework"||fe(e.attributes.name)==="publisher"||fe(e.attributes.name)==="progid"||fe(e.attributes.property).match(/^article:/)||fe(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(fe(e.attributes.name)==="google-site-verification"||fe(e.attributes.name)==="yandex-verification"||fe(e.attributes.name)==="csrf-token"||fe(e.attributes.name)==="p:domain_verify"||fe(e.attributes.name)==="verify-v1"||fe(e.attributes.name)==="verification"||fe(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ca(e,t,r){return Array.from(e).map(i=>{const s=t(i);let o=[];if(!r.has(s)){r.add(s);try{o=Array.from(i.cssRules,(n,u)=>({rule:ic(n,i.href),index:u}))}catch(n){if(!(n instanceof DOMException&&n.name==="SecurityError"))throw n}}return{styleId:s,rules:o}})}function Kr(e,t){var we;var r,i;const{doc:s,mirror:o,blockClass:n,blockSelector:u,maskTextClass:d,maskTextSelector:l,skipChild:a=!1,inlineStylesheet:f=!0,maskInputOptions:c={},maskTextFn:h,maskInputFn:p,maskAttributeFn:m,slimDOMOptions:g,dataURLOptions:w={},inlineImages:v=!1,recordCanvas:S=!1,onSerialize:E,onAdoptedStyleSheet:y,onIframeLoad:b,iframeLoadTimeout:_=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:N=5e3,keepIframeSrcFn:x=()=>!1,newlyAddedElement:I=!1,cssCaptured:D=!1,applyBackgroundColorToBlockedElements:ae=!1}=t,ee=(we=t._emittedStyleIds)!=null?we:new Set;let{needsMask:R}=t,{preserveWhiteSpace:ie=!0}=t;R||(R=Md(e,d,l,R===void 0));const L=Od(e,{doc:s,mirror:o,blockClass:n,blockSelector:u,needsMask:R,inlineStylesheet:f,maskInputOptions:c,maskTextFn:h,maskInputFn:p,maskAttributeFn:m,dataURLOptions:w,inlineImages:v,recordCanvas:S,keepIframeSrcFn:x,newlyAddedElement:I,cssCaptured:D,applyBackgroundColorToBlockedElements:ae});if(!L)return console.warn(e,"not serialized"),null;let q;o.hasNode(e)?q=o.getId(e):Id(L,g)||!ie&&L.type===W.Text&&!L.textContent.replace(/^\s+|\s+$/gm,"").length?q=Sa:q=yd();const P=Object.assign(L,{id:q});if(o.add(e,P),q===Sa)return null;E&&E(e);let z=!a;if(P.type===W.Element){z=z&&!P.needBlock,delete P.needBlock;const O=Te.shadowRoot(e);O&&Rs(O)&&(P.isShadowHost=!0,y&&((r=O.adoptedStyleSheets)!=null&&r.length)&&(P.adoptedStyleSheets=Ca(O.adoptedStyleSheets,y,ee)))}if(P.type===W.Document&&y){const O=e;(i=O.adoptedStyleSheets)!=null&&i.length&&(P.adoptedStyleSheets=Ca(O.adoptedStyleSheets,y,ee))}if((P.type===W.Document||P.type===W.Element)&&z){g.headWhitespace&&P.type===W.Element&&P.tagName==="head"&&(ie=!1);const O={doc:s,mirror:o,blockClass:n,blockSelector:u,needsMask:R,maskTextClass:d,maskTextSelector:l,skipChild:a,inlineStylesheet:f,maskInputOptions:c,maskTextFn:h,maskInputFn:p,maskAttributeFn:m,slimDOMOptions:g,dataURLOptions:w,inlineImages:v,recordCanvas:S,preserveWhiteSpace:ie,onSerialize:E,onAdoptedStyleSheet:y,_emittedStyleIds:ee,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:C,stylesheetLoadTimeout:N,keepIframeSrcFn:x,cssCaptured:!1,applyBackgroundColorToBlockedElements:ae};if(!(P.type===W.Element&&P.tagName==="textarea"&&P.attributes.value!==void 0)){P.type===W.Element&&P.attributes._cssText!==void 0&&typeof P.attributes._cssText=="string"&&(O.cssCaptured=!0);for(const k of Array.from(Te.childNodes(e))){const $=Kr(k,O);$&&P.childNodes.push($)}}let ue=null;if(Mo(e)&&(ue=Te.shadowRoot(e)))for(const k of Array.from(Te.childNodes(ue))){const $=Kr(k,O);$&&(Rs(ue)&&($.isShadow=!0),P.childNodes.push($))}}const Ce=Te.parentNode(e);return Ce&&Kh(Ce)&&Rs(Ce)&&(P.isShadow=!0),P.type===W.Element&&P.tagName==="iframe"&&Nd(e,()=>{const O=e.contentDocument;if(O&&b){const ue=Kr(O,{doc:O,mirror:o,blockClass:n,blockSelector:u,needsMask:R,maskTextClass:d,maskTextSelector:l,skipChild:!1,inlineStylesheet:f,maskInputOptions:c,maskTextFn:h,maskInputFn:p,maskAttributeFn:m,slimDOMOptions:g,dataURLOptions:w,inlineImages:v,recordCanvas:S,preserveWhiteSpace:ie,onSerialize:E,onAdoptedStyleSheet:y,_emittedStyleIds:ee,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:C,stylesheetLoadTimeout:N,keepIframeSrcFn:x});ue&&b(e,ue)}},_),P.type===W.Element&&P.tagName==="link"&&typeof P.attributes.rel=="string"&&(P.attributes.rel==="stylesheet"||P.attributes.rel==="preload"&&typeof P.attributes.href=="string"&&sc(P.attributes.href)==="css")&&Ad(e,()=>{if(C){const O=Kr(e,{doc:s,mirror:o,blockClass:n,blockSelector:u,needsMask:R,maskTextClass:d,maskTextSelector:l,skipChild:!1,inlineStylesheet:f,maskInputOptions:c,maskTextFn:h,maskInputFn:p,maskAttributeFn:m,slimDOMOptions:g,dataURLOptions:w,inlineImages:v,recordCanvas:S,preserveWhiteSpace:ie,onSerialize:E,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:C,stylesheetLoadTimeout:N,keepIframeSrcFn:x});O&&C(e,O)}},N),P}function Pd(e,t){const{mirror:r=new No,blockClass:i="rr-block",blockSelector:s=null,maskTextClass:o="rr-mask",maskTextSelector:n=null,inlineStylesheet:u=!0,inlineImages:d=!1,recordCanvas:l=!1,maskAllInputs:a=!1,maskTextFn:f,maskInputFn:c,maskAttributeFn:h,slimDOM:p=!1,dataURLOptions:m,preserveWhiteSpace:g,onSerialize:w,onAdoptedStyleSheet:v,_emittedStyleIds:S,onIframeLoad:E,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:_,keepIframeSrcFn:C=()=>!1,applyBackgroundColorToBlockedElements:N=!1}=t||{};return Kr(e,{doc:e,mirror:r,blockClass:i,blockSelector:s,maskTextClass:o,maskTextSelector:n,skipChild:!1,inlineStylesheet:u,maskInputOptions:a===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:a===!1?{password:!0}:a,maskTextFn:f,maskInputFn:c,maskAttributeFn:h,slimDOMOptions:p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:p==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:p===!1?{}:p,dataURLOptions:m,inlineImages:d,recordCanvas:l,preserveWhiteSpace:g,onSerialize:w,onAdoptedStyleSheet:v,_emittedStyleIds:S,onIframeLoad:E,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:_,keepIframeSrcFn:C,newlyAddedElement:!1,applyBackgroundColorToBlockedElements:N})}const Ld=/(max|min)-device-(width|height)/,xa=new RegExp(Ld.source,"g"),Fd={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(xa)&&(e.params=e.params.replace(xa,"$1-$2"))}}}},Bd={postcssPlugin:"postcss-hover-classes",prepare:function(){const e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(r){r.includes(":hover")&&(t.selector+=`,
17
- `+r.replace(/:hover/g,".\\:hover"))}))}}}};function Ud(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $d(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?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(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),r}var Ei={exports:{}},Ra;function Wd(){if(Ra)return Ei.exports;Ra=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 Ei.exports=t(),Ei.exports.createColors=t,Ei.exports}const zd={},qd=Object.freeze(Object.defineProperty({__proto__:null,default:zd},Symbol.toStringTag,{value:"Module"})),ut=$d(qd);var Ms,Ma;function Oo(){if(Ma)return Ms;Ma=1;let e=Wd(),t=ut;class r extends Error{constructor(s,o,n,u,d,l){super(s),this.name="CssSyntaxError",this.reason=s,d&&(this.file=d),u&&(this.source=u),l&&(this.plugin=l),typeof o!="undefined"&&typeof n!="undefined"&&(typeof o=="number"?(this.line=o,this.column=n):(this.line=o.line,this.column=o.column,this.endLine=n.line,this.endColumn=n.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(s){if(!this.source)return"";let o=this.source;s==null&&(s=e.isColorSupported);let n=h=>h,u=h=>h,d=h=>h;if(s){let{bold:h,gray:p,red:m}=e.createColors(!0);u=g=>h(m(g)),n=g=>p(g),t&&(d=g=>t(g))}let l=o.split(/\r?\n/),a=Math.max(this.line-3,0),f=Math.min(this.line+2,l.length),c=String(f).length;return l.slice(a,f).map((h,p)=>{let m=a+1+p,g=" "+(" "+m).slice(-c)+" | ";if(m===this.line){if(h.length>160){let v=20,S=Math.max(0,this.column-v),E=Math.max(this.column+v,this.endColumn+v),y=h.slice(S,E),b=n(g.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,v-1)).replace(/[^\t]/g," ");return u(">")+n(g)+d(y)+`
18
- `+b+u("^")}let w=n(g.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+n(g)+d(h)+`
19
- `+w+u("^")}return" "+n(g)+d(h)}).join(`
14
+ "use strict";var Kc=Object.defineProperty,Zc=Object.defineProperties;var ef=Object.getOwnPropertyDescriptors;var wi=Object.getOwnPropertySymbols;var ea=Object.prototype.hasOwnProperty,ta=Object.prototype.propertyIsEnumerable;var Zo=(e,t,r)=>t in e?Kc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,G=(e,t)=>{for(var r in t||(t={}))ea.call(t,r)&&Zo(e,r,t[r]);if(wi)for(var r of wi(t))ta.call(t,r)&&Zo(e,r,t[r]);return e},be=(e,t)=>Zc(e,ef(t));var Vr=(e,t)=>{var r={};for(var i in e)ea.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&wi)for(var i of wi(e))t.indexOf(i)<0&&ta.call(e,i)&&(r[i]=e[i]);return r};var tf=Object.defineProperty,su=e=>{throw TypeError(e)},rf=(e,t,r)=>t in e?tf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Mt=(e,t,r)=>rf(e,typeof t!="symbol"?t+"":t,r),co=(e,t,r)=>t.has(e)||su("Cannot "+r),N=(e,t,r)=>(co(e,t,"read from private field"),r?r.call(e):t.get(e)),X=(e,t,r)=>t.has(e)?su("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),U=(e,t,r,i)=>(co(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),ye=(e,t,r)=>(co(e,t,"access private method"),r),ra,oi,Jr,Ut,$t,Xr,ai,ti,Je,fo,li,Fn,nu,ou,at,Xe,Ti,Nt,Or,At,lt,ze,Ct,Vt,tr,Kt,Gt,wr,Zt,Bn,Pe,au,lu,ho,Bi,Ui,Un,vt,xt,Ve,br,ki,Ii,$n,Bt,st;Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const sf="5";var ru,iu;typeof window!="undefined"&&((iu=(ra=(ru=window.__svelte)!=null?ru:window.__svelte={}).v)!=null?iu:ra.v=new Set).add(sf);let Fr=!1,nf=!1;function of(){Fr=!0}of();const af=1,lf=2,uf=16,cf=1,ff=2,uu=4,hf=8,df=16,pf=2,cu="[",Ji="[!",po="]",Dr={},Ae=Symbol(),mf="http://www.w3.org/1999/xhtml",Wn=!1;var mo=Array.isArray,gf=Array.prototype.indexOf,Xi=Array.from,fu=Object.defineProperty,rr=Object.getOwnPropertyDescriptor,hu=Object.getOwnPropertyDescriptors,vf=Object.prototype,yf=Array.prototype,go=Object.getPrototypeOf,ia=Object.isExtensible;function wf(e){return e()}function zn(e){for(var t=0;t<e.length;t++)e[t]()}function du(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}const Re=2,vo=4,Qi=8,bf=1<<24,Tt=16,kt=32,hr=64,Ki=128,ft=512,xe=1024,Fe=2048,dt=4096,qe=8192,Dt=16384,Zi=32768,Tr=65536,sa=1<<17,pu=1<<18,Br=1<<19,mu=1<<20,zt=1<<25,ar=32768,qn=1<<21,yo=1<<22,Ht=1<<23,ir=Symbol("$state"),gu=Symbol("legacy props"),Sf=Symbol(""),Cr=new class extends Error{constructor(){super(...arguments),Mt(this,"name","StaleReactionError"),Mt(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},wo=3,Ur=8;function es(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function _f(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ef(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Cf(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function xf(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Rf(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nf(){throw new Error("https://svelte.dev/e/hydration_failed")}function Mf(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function Af(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Of(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Df(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Tf(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function kf(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ts(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function If(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let ee=!1;function Ot(e){ee=e}let K;function je(e){if(e===null)throw ts(),Dr;return K=e}function rs(){return je(St(K))}function nt(e){if(ee){if(St(K)!==null)throw ts(),Dr;K=e}}function Pf(e=1){if(ee){for(var t=e,r=K;t--;)r=St(r);K=r}}function $i(e=!0){for(var t=0,r=K;;){if(r.nodeType===Ur){var i=r.data;if(i===po){if(t===0)return r;t-=1}else(i===cu||i===Ji)&&(t+=1)}var s=St(r);e&&r.remove(),r=s}}function vu(e){if(!e||e.nodeType!==Ur)throw ts(),Dr;return e.data}function yu(e){return e===this.v}function Lf(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function wu(e){return!Lf(e,this.v)}let ae=null;function kr(e){ae=e}function bo(e,t=!1,r){ae={p:ae,i:!1,c:null,e:null,s:e,x:null,l:Fr&&!t?{s:null,u:null,$:[]}:null}}function So(e){var t=ae,r=t.e;if(r!==null){t.e=null;for(var i of r)Lu(i)}return e!==void 0&&(t.x=e),t.i=!0,ae=t.p,e!=null?e:{}}function fi(){return!Fr||ae!==null&&ae.l===null}let er=[];function bu(){var e=er;er=[],zn(e)}function $r(e){if(er.length===0&&!ri){var t=er;queueMicrotask(()=>{t===er&&bu()})}er.push(e)}function Ff(){for(;er.length>0;)bu()}function Su(e){var t=Z;if(t===null)return Q.f|=Ht,e;if((t.f&Zi)===0){if((t.f&Ki)===0)throw e;t.b.error(e)}else Ir(e,t)}function Ir(e,t){for(;t!==null;){if((t.f&Ki)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Pi=new Set;let oe=null,De=null,Qe=[],is=null,jn=!1,ri=!1;const Bf=class Vn{constructor(){X(this,Je),Mt(this,"committed",!1),Mt(this,"current",new Map),Mt(this,"previous",new Map),X(this,oi,new Set),X(this,Jr,new Set),X(this,Ut,0),X(this,$t,0),X(this,Xr,null),X(this,ai,new Set),X(this,ti,new Set),Mt(this,"skipped_effects",new Set),Mt(this,"is_fork",!1)}is_deferred(){return this.is_fork||N(this,$t)>0}process(t){var r;Qe=[],this.apply();var i={parent:null,effect:null,effects:[],render_effects:[]};for(const s of t)ye(this,Je,fo).call(this,s,i);this.is_fork||ye(this,Je,nu).call(this),this.is_deferred()?(ye(this,Je,li).call(this,i.effects),ye(this,Je,li).call(this,i.render_effects)):(oe=null,na(i.render_effects),na(i.effects),(r=N(this,Xr))==null||r.resolve()),De=null}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&Ht)===0&&(this.current.set(t,t.v),De==null||De.set(t,t.v))}activate(){oe=this,this.apply()}deactivate(){oe===this&&(oe=null,De=null)}flush(){if(this.activate(),Qe.length>0){if(_u(),oe!==null&&oe!==this)return}else N(this,Ut)===0&&this.process([]);this.deactivate()}discard(){for(const t of N(this,Jr))t(this);N(this,Jr).clear()}increment(t){U(this,Ut,N(this,Ut)+1),t&&U(this,$t,N(this,$t)+1)}decrement(t){U(this,Ut,N(this,Ut)-1),t&&U(this,$t,N(this,$t)-1),this.revive()}revive(){for(const t of N(this,ai))N(this,ti).delete(t),Ne(t,Fe),ur(t);for(const t of N(this,ti))Ne(t,dt),ur(t);this.flush()}oncommit(t){N(this,oi).add(t)}ondiscard(t){N(this,Jr).add(t)}settled(){var t;return((t=N(this,Xr))!=null?t:U(this,Xr,du())).promise}static ensure(){if(oe===null){const t=oe=new Vn;Pi.add(oe),ri||Vn.enqueue(()=>{oe===t&&t.flush()})}return oe}static enqueue(t){$r(t)}apply(){}};oi=new WeakMap;Jr=new WeakMap;Ut=new WeakMap;$t=new WeakMap;Xr=new WeakMap;ai=new WeakMap;ti=new WeakMap;Je=new WeakSet;fo=function(e,t){var r;e.f^=xe;for(var i=e.first;i!==null;){var s=i.f,n=(s&(kt|hr))!==0,o=n&&(s&xe)!==0,u=o||(s&qe)!==0||this.skipped_effects.has(i);if((i.f&Ki)!==0&&((r=i.b)!=null&&r.is_pending())&&(t={parent:t,effect:i,effects:[],render_effects:[]}),!u&&i.fn!==null){n?i.f^=xe:(s&vo)!==0?t.effects.push(i):Wr(i)&&((i.f&Tt)!==0&&N(this,ai).add(i),Lr(i));var d=i.first;if(d!==null){i=d;continue}}var l=i.parent;for(i=i.next;i===null&&l!==null;)l===t.effect&&(ye(this,Je,li).call(this,t.effects),ye(this,Je,li).call(this,t.render_effects),t=t.parent),i=l.next,l=l.parent}};li=function(e){for(const t of e)(t.f&Fe)!==0?N(this,ai).add(t):(t.f&dt)!==0&&N(this,ti).add(t),ye(this,Je,Fn).call(this,t.deps),Ne(t,xe)};Fn=function(e){if(e!==null)for(const t of e)(t.f&Re)===0||(t.f&ar)===0||(t.f^=ar,ye(this,Je,Fn).call(this,t.deps))};nu=function(){if(N(this,$t)===0){for(const e of N(this,oi))e();N(this,oi).clear()}N(this,Ut)===0&&ye(this,Je,ou).call(this)};ou=function(){var e;if(Pi.size>1){this.previous.clear();var t=De,r=!0,i={parent:null,effect:null,effects:[],render_effects:[]};for(const n of Pi){if(n===this){r=!1;continue}const o=[];for(const[d,l]of this.current){if(n.current.has(d))if(r&&l!==n.current.get(d))n.current.set(d,l);else continue;o.push(d)}if(o.length===0)continue;const u=[...n.current.keys()].filter(d=>!this.current.has(d));if(u.length>0){var s=Qe;Qe=[];const d=new Set,l=new Map;for(const a of o)Eu(a,u,d,l);if(Qe.length>0){oe=n,n.apply();for(const a of Qe)ye(e=n,Je,fo).call(e,a,i);n.deactivate()}Qe=s}}oe=null,De=t}this.committed=!0,Pi.delete(this)};let lr=Bf;function Uf(e){var t=ri;ri=!0;try{for(var r;;){if(Ff(),Qe.length===0&&(oe==null||oe.flush(),Qe.length===0))return is=null,r;_u()}}finally{ri=t}}function _u(){var e=sr;jn=!0;var t=null;try{var r=0;for(zi(!0);Qe.length>0;){var i=lr.ensure();if(r++>1e3){var s,n;$f()}i.process(Qe),Yt.clear()}}finally{jn=!1,zi(e),is=null}}function $f(){try{Rf()}catch(e){Ir(e,is)}}let yt=null;function na(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(Dt|qe))===0&&Wr(i)&&(yt=new Set,Lr(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?$u(i):i.fn=null),(yt==null?void 0:yt.size)>0)){Yt.clear();for(const s of yt){if((s.f&(Dt|qe))!==0)continue;const n=[s];let o=s.parent;for(;o!==null;)yt.has(o)&&(yt.delete(o),n.push(o)),o=o.parent;for(let u=n.length-1;u>=0;u--){const d=n[u];(d.f&(Dt|qe))===0&&Lr(d)}}yt.clear()}}yt=null}}function Eu(e,t,r,i){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const n=s.f;(n&Re)!==0?Eu(s,t,r,i):(n&(yo|Tt))!==0&&(n&Fe)===0&&Cu(s,t,i)&&(Ne(s,Fe),ur(s))}}function Cu(e,t,r){const i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&Re)!==0&&Cu(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function ur(e){for(var t=is=e;t.parent!==null;){t=t.parent;var r=t.f;if(jn&&t===Z&&(r&Tt)!==0&&(r&pu)===0)return;if((r&(hr|kt))!==0){if((r&xe)===0)return;t.f^=xe}}Qe.push(t)}function Wf(e){let t=0,r=Jt(0),i;return()=>{ui()&&(A(r),hi(()=>(t===0&&(i=Ee(()=>e(()=>ii(r)))),t+=1,()=>{$r(()=>{t-=1,t===0&&(i==null||i(),i=void 0,ii(r))})})))}}var zf=Tr|Br|Ki;function qf(e,t,r){new jf(e,t,r)}class jf{constructor(t,r,i){X(this,Pe),Mt(this,"parent"),X(this,at,!1),X(this,Xe),X(this,Ti,ee?K:null),X(this,Nt),X(this,Or),X(this,At),X(this,lt,null),X(this,ze,null),X(this,Ct,null),X(this,Vt,null),X(this,tr,null),X(this,Kt,0),X(this,Gt,0),X(this,wr,!1),X(this,Zt,null),X(this,Bn,Wf(()=>(U(this,Zt,Jt(N(this,Kt))),()=>{U(this,Zt,null)}))),U(this,Xe,t),U(this,Nt,r),U(this,Or,i),this.parent=Z.b,U(this,at,!!N(this,Nt).pending),U(this,At,Co(()=>{if(Z.b=this,ee){const n=N(this,Ti);rs(),n.nodeType===Ur&&n.data===Ji?ye(this,Pe,lu).call(this):ye(this,Pe,au).call(this)}else{var s=ye(this,Pe,ho).call(this);try{U(this,lt,Ze(()=>i(s)))}catch(n){this.error(n)}N(this,Gt)>0?ye(this,Pe,Ui).call(this):U(this,at,!1)}return()=>{var n;(n=N(this,tr))==null||n.remove()}},zf)),ee&&U(this,Xe,K)}is_pending(){return N(this,at)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!N(this,Nt).pending}update_pending_count(t){ye(this,Pe,Un).call(this,t),U(this,Kt,N(this,Kt)+t),N(this,Zt)&&Pr(N(this,Zt),N(this,Kt))}get_effect_pending(){return N(this,Bn).call(this),A(N(this,Zt))}error(t){var r=N(this,Nt).onerror;let i=N(this,Nt).failed;if(N(this,wr)||!r&&!i)throw t;N(this,lt)&&(Le(N(this,lt)),U(this,lt,null)),N(this,ze)&&(Le(N(this,ze)),U(this,ze,null)),N(this,Ct)&&(Le(N(this,Ct)),U(this,Ct,null)),ee&&(je(N(this,Ti)),Pf(),je($i()));var s=!1,n=!1;const o=()=>{if(s){If();return}s=!0,n&&kf(),lr.ensure(),U(this,Kt,0),N(this,Ct)!==null&&dr(N(this,Ct),()=>{U(this,Ct,null)}),U(this,at,this.has_pending_snippet()),U(this,lt,ye(this,Pe,Bi).call(this,()=>(U(this,wr,!1),Ze(()=>N(this,Or).call(this,N(this,Xe)))))),N(this,Gt)>0?ye(this,Pe,Ui).call(this):U(this,at,!1)};var u=Q;try{Be(null),n=!0,r==null||r(t,o),n=!1}catch(d){Ir(d,N(this,At)&&N(this,At).parent)}finally{Be(u)}i&&$r(()=>{U(this,Ct,ye(this,Pe,Bi).call(this,()=>{lr.ensure(),U(this,wr,!0);try{return Ze(()=>{i(N(this,Xe),()=>t,()=>o)})}catch(d){return Ir(d,N(this,At).parent),null}finally{U(this,wr,!1)}}))})}}at=new WeakMap;Xe=new WeakMap;Ti=new WeakMap;Nt=new WeakMap;Or=new WeakMap;At=new WeakMap;lt=new WeakMap;ze=new WeakMap;Ct=new WeakMap;Vt=new WeakMap;tr=new WeakMap;Kt=new WeakMap;Gt=new WeakMap;wr=new WeakMap;Zt=new WeakMap;Bn=new WeakMap;Pe=new WeakSet;au=function(){try{U(this,lt,Ze(()=>N(this,Or).call(this,N(this,Xe))))}catch(e){this.error(e)}U(this,at,!1)};lu=function(){const e=N(this,Nt).pending;e&&(U(this,ze,Ze(()=>e(N(this,Xe)))),lr.enqueue(()=>{var t=ye(this,Pe,ho).call(this);U(this,lt,ye(this,Pe,Bi).call(this,()=>(lr.ensure(),Ze(()=>N(this,Or).call(this,t))))),N(this,Gt)>0?ye(this,Pe,Ui).call(this):(dr(N(this,ze),()=>{U(this,ze,null)}),U(this,at,!1))}))};ho=function(){var e=N(this,Xe);return N(this,at)&&(U(this,tr,ht()),N(this,Xe).before(N(this,tr)),e=N(this,tr)),e};Bi=function(e){var t=Z,r=Q,i=ae;tt(N(this,At)),Be(N(this,At)),kr(N(this,At).ctx);try{return e()}catch(s){return Su(s),null}finally{tt(t),Be(r),kr(i)}};Ui=function(){const e=N(this,Nt).pending;N(this,lt)!==null&&(U(this,Vt,document.createDocumentFragment()),N(this,Vt).append(N(this,tr)),qu(N(this,lt),N(this,Vt))),N(this,ze)===null&&U(this,ze,Ze(()=>e(N(this,Xe))))};Un=function(e){var t;if(!this.has_pending_snippet()){this.parent&&ye(t=this.parent,Pe,Un).call(t,e);return}U(this,Gt,N(this,Gt)+e),N(this,Gt)===0&&(U(this,at,!1),N(this,ze)&&dr(N(this,ze),()=>{U(this,ze,null)}),N(this,Vt)&&(N(this,Xe).before(N(this,Vt)),U(this,Vt,null)))};function Vf(e,t,r,i){const s=fi()?ss:ns;if(r.length===0&&e.length===0){i(t.map(s));return}var n=oe,o=Z,u=Gf();function d(){Promise.all(r.map(l=>Hf(l))).then(l=>{u();try{i([...t.map(s),...l])}catch(a){(o.f&Dt)===0&&Ir(a,o)}n==null||n.deactivate(),Wi()}).catch(l=>{Ir(l,o)})}e.length>0?Promise.all(e).then(()=>{u();try{return d()}finally{n==null||n.deactivate(),Wi()}}):d()}function Gf(){var e=Z,t=Q,r=ae,i=oe;return function(n=!0){tt(e),Be(t),kr(r),n&&(i==null||i.activate())}}function Wi(){tt(null),Be(null),kr(null)}function ss(e){var t=Re|Fe,r=Q!==null&&(Q.f&Re)!==0?Q:null;return Z!==null&&(Z.f|=Br),{ctx:ae,deps:null,effects:null,equals:yu,f:t,fn:e,reactions:null,rv:0,v:Ae,wv:0,parent:r!=null?r:Z,ac:null}}function Hf(e,t){let r=Z;r===null&&_f();var i=r.b,s=void 0,n=Jt(Ae),o=!Q,u=new Map;return rh(()=>{var d,l=du();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{a===oe&&a.committed&&a.deactivate(),Wi()})}catch(f){l.reject(f),Wi()}var a=oe;if(o){var h=!i.is_pending();i.update_pending_count(1),a.increment(h),(d=u.get(a))==null||d.reject(Cr),u.delete(a),u.set(a,l)}const c=(f,p=void 0)=>{if(a.activate(),p)p!==Cr&&(n.f|=Ht,Pr(n,p));else{(n.f&Ht)!==0&&(n.f^=Ht),Pr(n,f);for(const[m,g]of u){if(u.delete(m),m===a)break;g.reject(Cr)}}o&&(i.update_pending_count(-1),a.decrement(h))};l.promise.then(c,f=>c(null,f||"unknown"))}),Eo(()=>{for(const d of u.values())d.reject(Cr)}),new Promise(d=>{function l(a){function h(){a===s?d(n):l(s)}a.then(h,h)}l(s)})}function ns(e){const t=ss(e);return t.equals=wu,t}function xu(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Le(t[r])}}function Yf(e){for(var t=e.parent;t!==null;){if((t.f&Re)===0)return(t.f&Dt)===0?t:null;t=t.parent}return null}function _o(e){var t,r=Z;tt(Yf(e));try{e.f&=~ar,xu(e),t=Hu(e)}finally{tt(r)}return t}function Ru(e){var t=_o(e);if(e.equals(t)||(oe!=null&&oe.is_fork||(e.v=t),e.wv=Vu()),!pr)if(De!==null)(ui()||oe!=null&&oe.is_fork)&&De.set(e,t);else{var r=(e.f&ft)===0?dt:xe;Ne(e,r)}}let Gn=new Set;const Yt=new Map;let Nu=!1;function Jt(e,t){var r={f:0,v:e,reactions:null,equals:yu,rv:0,wv:0};return r}function It(e,t){const r=Jt(e);return nh(r),r}function Oe(e,t=!1,r=!0){var n;var i;const s=Jt(e);return t||(s.equals=wu),Fr&&r&&ae!==null&&ae.l!==null&&((n=(i=ae.l).s)!=null?n:i.s=[]).push(s),s}function ie(e,t,r=!1){Q!==null&&(!bt||(Q.f&sa)!==0)&&fi()&&(Q.f&(Re|Tt|yo|sa))!==0&&!(et!=null&&et.includes(e))&&Tf();let i=r?xr(t):t;return Pr(e,i)}function Pr(e,t){if(!e.equals(t)){var r=e.v;pr?Yt.set(e,t):Yt.set(e,r),e.v=t;var i=lr.ensure();i.capture(e,r),(e.f&Re)!==0&&((e.f&Fe)!==0&&_o(e),Ne(e,(e.f&ft)!==0?xe:dt)),e.wv=Vu(),Mu(e,Fe),fi()&&Z!==null&&(Z.f&xe)!==0&&(Z.f&(kt|hr))===0&&(Ye===null?oh([e]):Ye.push(e)),!i.is_fork&&Gn.size>0&&!Nu&&Jf()}return t}function Jf(){Nu=!1;var e=sr;zi(!0);const t=Array.from(Gn);try{for(const r of t)(r.f&xe)!==0&&Ne(r,dt),Wr(r)&&Lr(r)}finally{zi(e)}Gn.clear()}function oa(e,t=1){var r=A(e),i=t===1?r++:r--;return ie(e,r),i}function ii(e){ie(e,e.v+1)}function Mu(e,t){var r=e.reactions;if(r!==null)for(var i=fi(),s=r.length,n=0;n<s;n++){var o=r[n],u=o.f;if(!(!i&&o===Z)){var d=(u&Fe)===0;if(d&&Ne(o,t),(u&Re)!==0){var l=o;De==null||De.delete(l),(u&ar)===0&&(u&ft&&(o.f|=ar),Mu(l,dt))}else d&&((u&Tt)!==0&&yt!==null&&yt.add(o),ur(o))}}}function xr(e){if(typeof e!="object"||e===null||ir in e)return e;const t=go(e);if(t!==vf&&t!==yf)return e;var r=new Map,i=mo(e),s=It(0),n=nr,o=u=>{if(nr===n)return u();var d=Q,l=nr;Be(null),ca(n);var a=u();return Be(d),ca(l),a};return i&&r.set("length",It(e.length)),new Proxy(e,{defineProperty(u,d,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&Of();var a=r.get(d);return a===void 0?a=o(()=>{var h=It(l.value);return r.set(d,h),h}):ie(a,l.value,!0),!0},deleteProperty(u,d){var l=r.get(d);if(l===void 0){if(d in u){const a=o(()=>It(Ae));r.set(d,a),ii(s)}}else ie(l,Ae),ii(s);return!0},get(u,d,l){var a;if(d===ir)return e;var h=r.get(d),c=d in u;if(h===void 0&&(!c||(a=rr(u,d))!=null&&a.writable)&&(h=o(()=>{var p=xr(c?u[d]:Ae),m=It(p);return m}),r.set(d,h)),h!==void 0){var f=A(h);return f===Ae?void 0:f}return Reflect.get(u,d,l)},getOwnPropertyDescriptor(u,d){var l=Reflect.getOwnPropertyDescriptor(u,d);if(l&&"value"in l){var a=r.get(d);a&&(l.value=A(a))}else if(l===void 0){var h=r.get(d),c=h==null?void 0:h.v;if(h!==void 0&&c!==Ae)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return l},has(u,d){var l;if(d===ir)return!0;var a=r.get(d),h=a!==void 0&&a.v!==Ae||Reflect.has(u,d);if(a!==void 0||Z!==null&&(!h||(l=rr(u,d))!=null&&l.writable)){a===void 0&&(a=o(()=>{var f=h?xr(u[d]):Ae,p=It(f);return p}),r.set(d,a));var c=A(a);if(c===Ae)return!1}return h},set(u,d,l,a){var h,c=r.get(d),f=d in u;if(i&&d==="length")for(var p=l;p<c.v;p+=1){var m=r.get(p+"");m!==void 0?ie(m,Ae):p in u&&(m=o(()=>It(Ae)),r.set(p+"",m))}if(c===void 0)(!f||(h=rr(u,d))!=null&&h.writable)&&(c=o(()=>It(void 0)),ie(c,xr(l)),r.set(d,c));else{f=c.v!==Ae;var g=o(()=>xr(l));ie(c,g)}var w=Reflect.getOwnPropertyDescriptor(u,d);if(w!=null&&w.set&&w.set.call(a,l),!f){if(i&&typeof d=="string"){var v=r.get("length"),S=Number(d);Number.isInteger(S)&&S>=v.v&&ie(v,S+1)}ii(s)}return!0},ownKeys(u){A(s);var d=Reflect.ownKeys(u).filter(h=>{var c=r.get(h);return c===void 0||c.v!==Ae});for(var[l,a]of r)a.v!==Ae&&!(l in u)&&d.push(l);return d},setPrototypeOf(){Df()}})}var aa,Au,Ou,Du;function Hn(){if(aa===void 0){aa=window,Au=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ou=rr(t,"firstChild").get,Du=rr(t,"nextSibling").get,ia(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ia(r)&&(r.__t=void 0)}}function ht(e=""){return document.createTextNode(e)}function cr(e){return Ou.call(e)}function St(e){return Du.call(e)}function ot(e,t){if(!ee)return cr(e);var r=cr(K);if(r===null)r=K.appendChild(ht());else if(t&&r.nodeType!==wo){var i=ht();return r==null||r.before(i),je(i),i}return je(r),r}function Xf(e,t=!1){if(!ee){var r=cr(e);return r instanceof Comment&&r.data===""?St(r):r}if(t&&(K==null?void 0:K.nodeType)!==wo){var i=ht();return K==null||K.before(i),je(i),i}return K}function He(e,t=1,r=!1){let i=ee?K:e;for(var s;t--;)s=i,i=St(i);if(!ee)return i;if(r&&(i==null?void 0:i.nodeType)!==wo){var n=ht();return i===null?s==null||s.after(n):i.before(n),je(n),n}return je(i),i}function Tu(e){e.textContent=""}function ku(){return!1}let la=!1;function Iu(){la||(la=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const r of e.target.elements)(t=r.__on_r)==null||t.call(r)})},{capture:!0}))}function os(e){var t=Q,r=Z;Be(null),tt(null);try{return e()}finally{Be(t),tt(r)}}function Qf(e,t,r,i=r){e.addEventListener(t,()=>os(r));const s=e.__on_r;s?e.__on_r=()=>{s(),i(!0)}:e.__on_r=()=>i(!0),Iu()}function Pu(e){Z===null&&(Q===null&&xf(),Cf()),pr&&Ef()}function Kf(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function _t(e,t,r){var u;var i=Z;i!==null&&(i.f&qe)!==0&&(e|=qe);var s={ctx:ae,deps:null,nodes:null,f:e|Fe|ft,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{Lr(s),s.f|=Zi}catch(d){throw Le(s),d}else t!==null&&ur(s);var n=s;if(r&&n.deps===null&&n.teardown===null&&n.nodes===null&&n.first===n.last&&(n.f&Br)===0&&(n=n.first,(e&Tt)!==0&&(e&Tr)!==0&&n!==null&&(n.f|=Tr)),n!==null&&(n.parent=i,i!==null&&Kf(n,i),Q!==null&&(Q.f&Re)!==0&&(e&hr)===0)){var o=Q;((u=o.effects)!=null?u:o.effects=[]).push(n)}return s}function ui(){return Q!==null&&!bt}function Eo(e){const t=_t(Qi,null,!1);return Ne(t,xe),t.teardown=e,t}function Yn(e){var s;Pu();var t=Z.f,r=!Q&&(t&kt)!==0&&(t&Zi)===0;if(r){var i=ae;((s=i.e)!=null?s:i.e=[]).push(e)}else return Lu(e)}function Lu(e){return _t(vo|mu,e,!1)}function Zf(e){return Pu(),_t(Qi|mu,e,!0)}function eh(e){lr.ensure();const t=_t(hr|Br,e,!0);return(r={})=>new Promise(i=>{r.outro?dr(t,()=>{Le(t),i(void 0)}):(Le(t),i(void 0))})}function th(e){return _t(vo,e,!1)}function Wt(e,t){var r=ae,i={effect:null,ran:!1,deps:e};r.l.$.push(i),i.effect=hi(()=>{e(),!i.ran&&(i.ran=!0,Ee(t))})}function Fu(){var e=ae;hi(()=>{for(var t of e.l.$){t.deps();var r=t.effect;(r.f&xe)!==0&&Ne(r,dt),Wr(r)&&Lr(r),t.ran=!1}})}function rh(e){return _t(yo|Br,e,!0)}function hi(e,t=0){return _t(Qi|t,e,!0)}function Rr(e,t=[],r=[],i=[]){Vf(i,t,r,s=>{_t(Qi,()=>e(...s.map(A)),!0)})}function Co(e,t=0){var r=_t(Tt|t,e,!0);return r}function Ze(e){return _t(kt|Br,e,!0)}function Bu(e){var t=e.teardown;if(t!==null){const r=pr,i=Q;ua(!0),Be(null);try{t.call(null)}finally{ua(r),Be(i)}}}function Uu(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&os(()=>{s.abort(Cr)});var i=r.next;(r.f&hr)!==0?r.parent=null:Le(r,t),r=i}}function ih(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&kt)===0&&Le(t),t=r}}function Le(e,t=!0){var r=!1;(t||(e.f&pu)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(sh(e.nodes.start,e.nodes.end),r=!0),Uu(e,t&&!r),qi(e,0),Ne(e,Dt);var i=e.nodes&&e.nodes.t;if(i!==null)for(const n of i)n.stop();Bu(e);var s=e.parent;s!==null&&s.first!==null&&$u(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function sh(e,t){for(;e!==null;){var r=e===t?null:St(e);e.remove(),e=r}}function $u(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function dr(e,t,r=!0){var i=[];Wu(e,i,!0);var s=()=>{r&&Le(e),t&&t()},n=i.length;if(n>0){var o=()=>--n||s();for(var u of i)u.out(o)}else s()}function Wu(e,t,r){if((e.f&qe)===0){e.f^=qe;var i=e.nodes&&e.nodes.t;if(i!==null)for(const u of i)(u.is_global||r)&&t.push(u);for(var s=e.first;s!==null;){var n=s.next,o=(s.f&Tr)!==0||(s.f&kt)!==0&&(e.f&Tt)!==0;Wu(s,t,o?r:!1),s=n}}}function xo(e){zu(e,!0)}function zu(e,t){if((e.f&qe)!==0){e.f^=qe,(e.f&xe)===0&&(Ne(e,Fe),ur(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Tr)!==0||(r.f&kt)!==0;zu(r,s?t:!1),r=i}var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)(o.is_global||t)&&o.in()}}function qu(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:St(r);t.append(r),r=s}}let sr=!1;function zi(e){sr=e}let pr=!1;function ua(e){pr=e}let Q=null,bt=!1;function Be(e){Q=e}let Z=null;function tt(e){Z=e}let et=null;function nh(e){Q!==null&&(et===null?et=[e]:et.push(e))}let Ie=null,Ue=0,Ye=null;function oh(e){Ye=e}let ju=1,ci=0,nr=ci;function ca(e){nr=e}function Vu(){return++ju}function Wr(e){var t=e.f;if((t&Fe)!==0)return!0;if(t&Re&&(e.f&=~ar),(t&dt)!==0){var r=e.deps;if(r!==null)for(var i=r.length,s=0;s<i;s++){var n=r[s];if(Wr(n)&&Ru(n),n.wv>e.wv)return!0}(t&ft)!==0&&De===null&&Ne(e,xe)}return!1}function Gu(e,t,r=!0){var i=e.reactions;if(i!==null&&!(et!=null&&et.includes(e)))for(var s=0;s<i.length;s++){var n=i[s];(n.f&Re)!==0?Gu(n,t,!1):t===n&&(r?Ne(n,Fe):(n.f&xe)!==0&&Ne(n,dt),ur(n))}}function Hu(e){var m;var t,r=Ie,i=Ue,s=Ye,n=Q,o=et,u=ae,d=bt,l=nr,a=e.f;Ie=null,Ue=0,Ye=null,Q=(a&(kt|hr))===0?e:null,et=null,kr(e.ctx),bt=!1,nr=++ci,e.ac!==null&&(os(()=>{e.ac.abort(Cr)}),e.ac=null);try{e.f|=qn;var h=e.fn,c=h(),f=e.deps;if(Ie!==null){var p;if(qi(e,Ue),f!==null&&Ue>0)for(f.length=Ue+Ie.length,p=0;p<Ie.length;p++)f[Ue+p]=Ie[p];else e.deps=f=Ie;if(ui()&&(e.f&ft)!==0)for(p=Ue;p<f.length;p++)((m=(t=f[p]).reactions)!=null?m:t.reactions=[]).push(e)}else f!==null&&Ue<f.length&&(qi(e,Ue),f.length=Ue);if(fi()&&Ye!==null&&!bt&&f!==null&&(e.f&(Re|dt|Fe))===0)for(p=0;p<Ye.length;p++)Gu(Ye[p],e);return n!==null&&n!==e&&(ci++,Ye!==null&&(s===null?s=Ye:s.push(...Ye))),(e.f&Ht)!==0&&(e.f^=Ht),c}catch(g){return Su(g)}finally{e.f^=qn,Ie=r,Ue=i,Ye=s,Q=n,et=o,kr(u),bt=d,nr=l}}function ah(e,t){let r=t.reactions;if(r!==null){var i=gf.call(r,e);if(i!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[i]=r[s],r.pop())}}r===null&&(t.f&Re)!==0&&(Ie===null||!Ie.includes(t))&&(Ne(t,dt),(t.f&ft)!==0&&(t.f^=ft,t.f&=~ar),xu(t),qi(t,0))}function qi(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)ah(e,r[i])}function Lr(e){var t=e.f;if((t&Dt)===0){Ne(e,xe);var r=Z,i=sr;Z=e,sr=!0;try{(t&(Tt|bf))!==0?ih(e):Uu(e),Bu(e);var s=Hu(e);e.teardown=typeof s=="function"?s:null,e.wv=ju;var n;Wn&&nf&&(e.f&Fe)!==0&&e.deps}finally{sr=i,Z=r}}}function A(e){var d;var t=e.f,r=(t&Re)!==0;if(Q!==null&&!bt){var i=Z!==null&&(Z.f&Dt)!==0;if(!i&&!(et!=null&&et.includes(e))){var s=Q.deps;if((Q.f&qn)!==0)e.rv<ci&&(e.rv=ci,Ie===null&&s!==null&&s[Ue]===e?Ue++:Ie===null?Ie=[e]:Ie.includes(e)||Ie.push(e));else{((d=Q.deps)!=null?d:Q.deps=[]).push(e);var n=e.reactions;n===null?e.reactions=[Q]:n.includes(Q)||n.push(Q)}}}if(pr){if(Yt.has(e))return Yt.get(e);if(r){var o=e,u=o.v;return((o.f&xe)===0&&o.reactions!==null||Ju(o))&&(u=_o(o)),Yt.set(o,u),u}}else r&&(!(De!=null&&De.has(e))||oe!=null&&oe.is_fork&&!ui())&&(o=e,Wr(o)&&Ru(o),sr&&ui()&&(o.f&ft)===0&&Yu(o));if(De!=null&&De.has(e))return De.get(e);if((e.f&Ht)!==0)throw e.v;return e.v}function Yu(e){var t;if(e.deps!==null){e.f^=ft;for(const r of e.deps)((t=r.reactions)!=null?t:r.reactions=[]).push(e),(r.f&Re)!==0&&(r.f&ft)===0&&Yu(r)}}function Ju(e){if(e.v===Ae)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Yt.has(t)||(t.f&Re)!==0&&Ju(t))return!0;return!1}function Ee(e){var t=bt;try{return bt=!0,e()}finally{bt=t}}const lh=-7169;function Ne(e,t){e.f=e.f&lh|t}function $e(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(ir in e)Jn(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&ir in r&&Jn(r)}}}function Jn(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let i in e)try{Jn(e[i],t)}catch(s){}const r=go(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const i=hu(r);for(let s in i){const n=i[s].get;if(n)try{n.call(e)}catch(o){}}}}}const uh=new Set,fa=new Set;function ch(e,t,r,i={}){function s(n){if(i.capture||Qr.call(t,n),!n.cancelBubble)return os(()=>r==null?void 0:r.call(this,n))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?$r(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function Gr(e,t,r,i,s){var n={capture:i,passive:s},o=ch(e,t,r,n);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Eo(()=>{t.removeEventListener(e,o,n)})}let ha=null;function Qr(e){var t,r=this,i=r.ownerDocument,s=e.type,n=((t=e.composedPath)==null?void 0:t.call(e))||[],o=n[0]||e.target;ha=e;var u=0,d=ha===e&&e.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(r===document||r===window)){e.__root=r;return}var a=n.indexOf(r);if(a===-1)return;l<=a&&(u=l)}if(o=n[u]||e.target,o!==r){fu(e,"currentTarget",{configurable:!0,get(){return o||i}});var h=Q,c=Z;Be(null),tt(null);try{for(var f,p=[];o!==null;){var m=o.assignedSlot||o.parentNode||o.host||null;try{var g=o["__"+s];g!=null&&(!o.disabled||e.target===o)&&g.call(o,e)}catch(w){f?p.push(w):f=w}if(e.cancelBubble||m===r||m===null)break;o=m}if(f){for(let w of p)queueMicrotask(()=>{throw w});throw f}}finally{e.__root=r,delete e.currentTarget,Be(h),tt(c)}}}function Xu(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function fr(e,t){var r=Z;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function zr(e,t){var r=(t&pf)!==0,i,s=!e.startsWith("<!>");return()=>{if(ee)return fr(K,null),K;i===void 0&&(i=Xu(s?e:"<!>"+e),i=cr(i));var n=r||Au?document.importNode(i,!0):i.cloneNode(!0);return fr(n,n),n}}function fh(e,t,r="svg"){var i=!e.startsWith("<!>"),s=`<${r}>${i?e:"<!>"+e}</${r}>`,n;return()=>{if(ee)return fr(K,null),K;if(!n){var o=Xu(s),u=cr(o);n=cr(u)}var d=n.cloneNode(!0);return fr(d,d),d}}function Qu(e,t){return fh(e,t,"svg")}function hh(){if(ee)return fr(K,null),K;var e=document.createDocumentFragment(),t=document.createComment(""),r=ht();return e.append(t,r),fr(t,r),e}function Rt(e,t){if(ee){var r=Z;((r.f&Zi)===0||r.nodes.end===null)&&(r.nodes.end=K),rs();return}e!==null&&e.before(t)}const dh=["touchstart","touchmove"];function ph(e){return dh.includes(e)}function Li(e,t){var i;var r=t==null?"":typeof t=="object"?t+"":t;r!==((i=e.__t)!=null?i:e.__t=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Ku(e,t){return Zu(e,t)}function mh(e,t){var o;Hn(),t.intro=(o=t.intro)!=null?o:!1;const r=t.target,i=ee,s=K;try{for(var n=cr(r);n&&(n.nodeType!==Ur||n.data!==cu);)n=St(n);if(!n)throw Dr;Ot(!0),je(n);const u=Zu(e,be(G({},t),{anchor:n}));return Ot(!1),u}catch(u){if(u instanceof Error&&u.message.split(`
15
+ `).some(d=>d.startsWith("https://svelte.dev/e/")))throw u;return u!==Dr&&console.warn("Failed to hydrate: ",u),t.recover===!1&&Nf(),Hn(),Tu(r),Ot(!1),Ku(e,t)}finally{Ot(i),je(s)}}const vr=new Map;function Zu(e,{target:t,anchor:r,props:i={},events:s,context:n,intro:o=!0}){Hn();var u=new Set,d=h=>{for(var c=0;c<h.length;c++){var f=h[c];if(!u.has(f)){u.add(f);var p=ph(f);t.addEventListener(f,Qr,{passive:p});var m=vr.get(f);m===void 0?(document.addEventListener(f,Qr,{passive:p}),vr.set(f,1)):vr.set(f,m+1)}}};d(Xi(uh)),fa.add(d);var l=void 0,a=eh(()=>{var h=r!=null?r:t.appendChild(ht());return qf(h,{pending:()=>{}},c=>{if(n){bo({});var f=ae;f.c=n}if(s&&(i.$$events=s),ee&&fr(c,null),l=e(c,i)||{},ee&&(Z.nodes.end=K,K===null||K.nodeType!==Ur||K.data!==po))throw ts(),Dr;n&&So()}),()=>{var c;for(var f of u){t.removeEventListener(f,Qr);var p=vr.get(f);--p===0?(document.removeEventListener(f,Qr),vr.delete(f)):vr.set(f,p)}fa.delete(d),h!==r&&((c=h.parentNode)==null||c.removeChild(h))}});return Xn.set(l,a),l}let Xn=new WeakMap;function gh(e,t){const r=Xn.get(e);return r?(Xn.delete(e),r(t)):Promise.resolve()}class vh{constructor(t,r=!0){Mt(this,"anchor"),X(this,vt,new Map),X(this,xt,new Map),X(this,Ve,new Map),X(this,br,new Set),X(this,ki,!0),X(this,Ii,()=>{var i=oe;if(N(this,vt).has(i)){var s=N(this,vt).get(i),n=N(this,xt).get(s);if(n)xo(n),N(this,br).delete(s);else{var o=N(this,Ve).get(s);o&&(N(this,xt).set(s,o.effect),N(this,Ve).delete(s),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),n=o.effect)}for(const[u,d]of N(this,vt)){if(N(this,vt).delete(u),u===i)break;const l=N(this,Ve).get(d);l&&(Le(l.effect),N(this,Ve).delete(d))}for(const[u,d]of N(this,xt)){if(u===s||N(this,br).has(u))continue;const l=()=>{if(Array.from(N(this,vt).values()).includes(u)){var h=document.createDocumentFragment();qu(d,h),h.append(ht()),N(this,Ve).set(u,{effect:d,fragment:h})}else Le(d);N(this,br).delete(u),N(this,xt).delete(u)};N(this,ki)||!n?(N(this,br).add(u),dr(d,l,!1)):l()}}}),X(this,$n,i=>{N(this,vt).delete(i);const s=Array.from(N(this,vt).values());for(const[n,o]of N(this,Ve))s.includes(n)||(Le(o.effect),N(this,Ve).delete(n))}),this.anchor=t,U(this,ki,r)}ensure(t,r){var i=oe,s=ku();if(r&&!N(this,xt).has(t)&&!N(this,Ve).has(t))if(s){var n=document.createDocumentFragment(),o=ht();n.append(o),N(this,Ve).set(t,{effect:Ze(()=>r(o)),fragment:n})}else N(this,xt).set(t,Ze(()=>r(this.anchor)));if(N(this,vt).set(i,t),s){for(const[u,d]of N(this,xt))u===t?i.skipped_effects.delete(d):i.skipped_effects.add(d);for(const[u,d]of N(this,Ve))u===t?i.skipped_effects.delete(d.effect):i.skipped_effects.add(d.effect);i.oncommit(N(this,Ii)),i.ondiscard(N(this,$n))}else ee&&(this.anchor=K),N(this,Ii).call(this)}}vt=new WeakMap;xt=new WeakMap;Ve=new WeakMap;br=new WeakMap;ki=new WeakMap;Ii=new WeakMap;$n=new WeakMap;function Ro(e){ae===null&&es(),Fr&&ae.l!==null?tc(ae).m.push(e):Yn(()=>{const t=Ee(e);if(typeof t=="function")return t})}function ec(e){ae===null&&es(),Ro(()=>()=>Ee(e))}function yh(e,t,{bubbles:r=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:i})}function wh(){const e=ae;return e===null&&es(),(t,r,i)=>{var s;const n=(s=e.s.$$events)==null?void 0:s[t];if(n){const o=mo(n)?n.slice():[n],u=yh(t,r,i);for(const d of o)d.call(e.x,u);return!u.defaultPrevented}return!0}}function bh(e){ae===null&&es(),ae.l===null&&Mf(),tc(ae).a.push(e)}function tc(e){var r;var t=e.l;return(r=t.u)!=null?r:t.u={a:[],b:[],m:[]}}function Qn(e,t,r=!1){ee&&rs();var i=new vh(e),s=r?Tr:0;function n(o,u){if(ee){const l=vu(e)===Ji;if(o===l){var d=$i();je(d),i.anchor=d,Ot(!1),i.ensure(o,u),Ot(!0);return}}i.ensure(o,u)}Co(()=>{var o=!1;t((u,d=!0)=>{o=!0,n(d,u)}),o||n(!1,null)},s)}function _s(e,t){return t}function Sh(e,t,r){var h;for(var i=[],s=t.length,n,o=t.length,u=0;u<s;u++){let c=t[u];dr(c,()=>{if(n){if(n.pending.delete(c),n.done.add(c),n.pending.size===0){var f=e.outrogroups;Kn(Xi(n.done)),f.delete(n),f.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var d=i.length===0&&r!==null;if(d){var l=r,a=l.parentNode;Tu(a),a.append(l),e.items.clear()}Kn(t,!d)}else n={pending:new Set(t),done:new Set},((h=e.outrogroups)!=null?h:e.outrogroups=new Set).add(n)}function Kn(e,t=!0){for(var r=0;r<e.length;r++)Le(e[r],t)}var Pt;function Es(e,t,r,i,s,n=null){var o=e,u=new Map;ee&&rs();var d=null,l=ns(()=>{var m=r();return mo(m)?m:m==null?[]:Xi(m)}),a,h=!0;function c(){p.fallback=d,_h(p,a,o,t,i),d!==null&&(a.length===0?(d.f&zt)===0?xo(d):(d.f^=zt,Kr(d,null,o)):dr(d,()=>{d=null}))}var f=Co(()=>{a=A(l);var m=a.length;let g=!1;if(ee){var w=vu(o)===Ji;w!==(m===0)&&(o=$i(),je(o),Ot(!1),g=!0)}for(var v=new Set,S=oe,E=ku(),y=0;y<m;y+=1){ee&&K.nodeType===Ur&&K.data===po&&(o=K,g=!0,Ot(!1));var b=a[y],_=i(b,y),C=h?null:u.get(_);C?(C.v&&Pr(C.v,b),C.i&&Pr(C.i,y),E&&S.skipped_effects.delete(C.e)):(C=Eh(u,h?o:Pt!=null?Pt:Pt=ht(),b,_,y,s,t,r),h||(C.e.f|=zt),u.set(_,C)),v.add(_)}if(m===0&&n&&!d&&(h?d=Ze(()=>n(o)):(d=Ze(()=>n(Pt!=null?Pt:Pt=ht())),d.f|=zt)),ee&&m>0&&je($i()),!h)if(E){for(const[M,x]of u)v.has(M)||S.skipped_effects.add(x.e);S.oncommit(c),S.ondiscard(()=>{})}else c();g&&Ot(!0),A(l)}),p={effect:f,items:u,outrogroups:null,fallback:d};h=!1,ee&&(o=K)}function _h(e,t,r,i,s){var n,o=t.length,u=e.items,d=e.effect.first,l,a=null,h=[],c=[],f,p,m,g;for(g=0;g<o;g+=1){if(f=t[g],p=s(f,g),m=u.get(p).e,e.outrogroups!==null)for(const M of e.outrogroups)M.pending.delete(m),M.done.delete(m);if((m.f&zt)!==0)if(m.f^=zt,m===d)Kr(m,null,r);else{var w=a?a.next:d;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),Lt(e,a,m),Lt(e,m,w),Kr(m,w,r),a=m,h=[],c=[],d=a.next;continue}if((m.f&qe)!==0&&xo(m),m!==d){if(l!==void 0&&l.has(m)){if(h.length<c.length){var v=c[0],S;a=v.prev;var E=h[0],y=h[h.length-1];for(S=0;S<h.length;S+=1)Kr(h[S],v,r);for(S=0;S<c.length;S+=1)l.delete(c[S]);Lt(e,E.prev,y.next),Lt(e,a,E),Lt(e,y,v),d=v,a=y,g-=1,h=[],c=[]}else l.delete(m),Kr(m,d,r),Lt(e,m.prev,m.next),Lt(e,m,a===null?e.effect.first:a.next),Lt(e,a,m),a=m;continue}for(h=[],c=[];d!==null&&d!==m;)(l!=null?l:l=new Set).add(d),c.push(d),d=d.next;if(d===null)continue}(m.f&zt)===0&&h.push(m),a=m,d=m.next}if(e.outrogroups!==null){for(const M of e.outrogroups)M.pending.size===0&&(Kn(Xi(M.done)),(n=e.outrogroups)==null||n.delete(M));e.outrogroups.size===0&&(e.outrogroups=null)}if(d!==null||l!==void 0){var b=[];if(l!==void 0)for(m of l)(m.f&qe)===0&&b.push(m);for(;d!==null;)(d.f&qe)===0&&d!==e.fallback&&b.push(d),d=d.next;var _=b.length;if(_>0){var C=null;Sh(e,b,C)}}}function Eh(e,t,r,i,s,n,o,u){var d=(o&af)!==0?(o&uf)===0?Oe(r,!1,!1):Jt(r):null,l=(o&lf)!==0?Jt(s):null;return{v:d,i:l,e:Ze(()=>(n(t,d!=null?d:r,l!=null?l:s,u),()=>{e.delete(i)}))}}function Kr(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,n=t&&(t.f&zt)===0?t.nodes.start:r;i!==null;){var o=St(i);if(n.before(i),i===s)return;i=o}}function Lt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}const da=[...`
16
+ \r\f\xA0\v\uFEFF`];function Ch(e,t,r){var i=e==null?"":""+e;if(r){for(var s in r)if(r[s])i=i?i+" "+s:s;else if(i.length)for(var n=s.length,o=0;(o=i.indexOf(s,o))>=0;){var u=o+n;(o===0||da.includes(i[o-1]))&&(u===i.length||da.includes(i[u]))?i=(o===0?"":i.substring(0,o))+i.substring(u+1):o=u}}return i===""?null:i}function xh(e,t){return e==null?null:String(e)}function Zn(e,t,r,i,s,n){var o=e.__className;if(ee||o!==r||o===void 0){var u=Ch(r,i,n);(!ee||u!==e.getAttribute("class"))&&(u==null?e.removeAttribute("class"):e.className=u),e.__className=r}else if(n&&s!==n)for(var d in n){var l=!!n[d];(s==null||l!==!!s[d])&&e.classList.toggle(d,l)}return n}function Nr(e,t,r,i){var s=e.__style;if(ee||s!==t){var n=xh(t);(!ee||n!==e.getAttribute("style"))&&(n==null?e.removeAttribute("style"):e.style.cssText=n),e.__style=t}return i}const Rh=Symbol("is custom element"),Nh=Symbol("is html");function Mh(e){if(ee){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var i=e.value;or(e,"value",null),e.value=i}if(e.hasAttribute("checked")){var s=e.checked;or(e,"checked",null),e.checked=s}}};e.__on_r=r,$r(r),Iu()}}function or(e,t,r,i){var s=Ah(e);ee&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[Sf]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Oh(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ah(e){var t;return(t=e.__attributes)!=null?t:e.__attributes={[Rh]:e.nodeName.includes("-"),[Nh]:e.namespaceURI===mf}}var pa=new Map;function Oh(e){var t=e.getAttribute("is")||e.nodeName,r=pa.get(t);if(r)return r;pa.set(t,r=[]);for(var i,s=e,n=Element.prototype;n!==s;){i=hu(s);for(var o in i)i[o].set&&r.push(o);s=go(s)}return r}function Dh(e,t,r=t){Qf(e,"change",i=>{var s=i?e.defaultChecked:e.checked;r(s)}),(ee&&e.defaultChecked!==e.checked||Ee(t)==null)&&r(e.checked),hi(()=>{var i=t();e.checked=!!i})}function ve(e,t,r){var i=rr(e,t);i&&i.set&&(e[t]=r,Eo(()=>{e[t]=null}))}function ma(e,t){return e===t||(e==null?void 0:e[ir])===t}function Fi(e={},t,r,i){return th(()=>{var s,n;return hi(()=>{s=n,n=[],Ee(()=>{e!==r(...n)&&(t(e,...n),s&&ma(r(...s),e)&&t(null,...s))})}),()=>{$r(()=>{n&&ma(r(...n),e)&&t(null,...n)})}}),e}function rc(e=!1){const t=ae,r=t.l.u;if(!r)return;let i=()=>$e(t.s);if(e){let s=0,n={};const o=ss(()=>{let u=!1;const d=t.s;for(const l in d)d[l]!==n[l]&&(n[l]=d[l],u=!0);return u&&s++,s});i=()=>A(o)}r.b.length&&Zf(()=>{ga(t,i),zn(r.b)}),Yn(()=>{const s=Ee(()=>r.m.map(wf));return()=>{for(const n of s)typeof n=="function"&&n()}}),r.a.length&&Yn(()=>{ga(t,i),zn(r.a)})}function ga(e,t){if(e.l.s)for(const r of e.l.s)A(r);t()}let bi=!1;function Th(e){var t=bi;try{return bi=!1,[e(),bi]}finally{bi=t}}const kh={get(e,t){if(!e.exclude.includes(t))return A(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,r){if(!(t in e.special)){var i=Z;try{tt(e.parent_effect),e.special[t]=me({get[t](){return e.props[t]}},t,uu)}finally{tt(i)}}return e.special[t](r),oa(e.version),!0},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},deleteProperty(e,t){return e.exclude.includes(t)||(e.exclude.push(t),oa(e.version)),!0},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function Ih(e,t){return new Proxy({props:e,exclude:t,special:{},version:Jt(0),parent_effect:Z},kh)}function me(e,t,r,i){var E;var s,n=!Fr||(r&ff)!==0,o=(r&hf)!==0,u=(r&df)!==0,d=i,l=!0,a=()=>(l&&(l=!1,d=u?Ee(i):i),d),h;if(o){var c=ir in e||gu in e;h=(E=(s=rr(e,t))==null?void 0:s.set)!=null?E:c&&t in e?y=>e[t]=y:void 0}var f,p=!1;o?[f,p]=Th(()=>e[t]):f=e[t],f===void 0&&i!==void 0&&(f=a(),h&&(n&&Af(),h(f)));var m;if(n?m=()=>{var y=e[t];return y===void 0?a():(l=!0,y)}:m=()=>{var y=e[t];return y!==void 0&&(d=void 0),y===void 0?d:y},n&&(r&uu)===0)return m;if(h){var g=e.$$legacy;return(function(y,b){return arguments.length>0?((!n||!b||g||p)&&h(b?m():y),y):m()})}var w=!1,v=((r&cf)!==0?ss:ns)(()=>(w=!1,m()));o&&A(v);var S=Z;return(function(y,b){if(arguments.length>0){const _=b?A(v):n&&o?xr(y):y;return ie(v,_),w=!0,d!==void 0&&(d=_),y}return pr&&w||(S.f&Dt)!==0?v.v:A(v)})}function Ph(e){return class extends Lh{constructor(t){super(G({component:e},t))}}}class Lh{constructor(t){var o;X(this,Bt),X(this,st);var r,i=new Map,s=(u,d)=>{var l=Oe(d,!1,!1);return i.set(u,l),l};const n=new Proxy(be(G({},t.props||{}),{$$events:{}}),{get(u,d){var l;return A((l=i.get(d))!=null?l:s(d,Reflect.get(u,d)))},has(u,d){var l;return d===gu?!0:(A((l=i.get(d))!=null?l:s(d,Reflect.get(u,d))),Reflect.has(u,d))},set(u,d,l){var a;return ie((a=i.get(d))!=null?a:s(d,l),l),Reflect.set(u,d,l)}});U(this,st,(t.hydrate?mh:Ku)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:(o=t.intro)!=null?o:!1,recover:t.recover})),(!((r=t==null?void 0:t.props)!=null&&r.$$host)||t.sync===!1)&&Uf(),U(this,Bt,n.$$events);for(const u of Object.keys(N(this,st)))u==="$set"||u==="$destroy"||u==="$on"||fu(this,u,{get(){return N(this,st)[u]},set(d){N(this,st)[u]=d},enumerable:!0});N(this,st).$set=u=>{Object.assign(n,u)},N(this,st).$destroy=()=>{gh(N(this,st))}}$set(t){N(this,st).$set(t)}$on(t,r){N(this,Bt)[t]=N(this,Bt)[t]||[];const i=(...s)=>r.call(this,...s);return N(this,Bt)[t].push(i),()=>{N(this,Bt)[t]=N(this,Bt)[t].filter(s=>s!==i)}}$destroy(){N(this,st).$destroy()}}Bt=new WeakMap;st=new WeakMap;var Fh=Object.defineProperty,Bh=(e,t,r)=>t in e?Fh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F=(e,t,r)=>Bh(e,typeof t!="symbol"?t+"":t,r),va,Uh=Object.defineProperty,$h=(e,t,r)=>t in e?Uh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ya=(e,t,r)=>$h(e,typeof t!="symbol"?t+"":t,r),$=(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))($||{});const wa={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ba={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Si={};function Wh(e){var t,r;const i=(r=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(i&&globalThis[i])return globalThis[i]}function No(e){if(Si[e])return Si[e];const t=Wh(e)||globalThis[e],r=t.prototype,i=e in wa?wa[e]:void 0,s=!!(i&&i.every(u=>{var d,l;return!!((l=(d=Object.getOwnPropertyDescriptor(r,u))==null?void 0:d.get)!=null&&l.toString().includes("[native code]"))})),n=e in ba?ba[e]:void 0,o=!!(n&&n.every(u=>{var d;return typeof r[u]=="function"&&((d=r[u])==null?void 0:d.toString().includes("[native code]"))}));if(s&&o)return Si[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?Si[e]=l:r}catch(u){return r}}const Cs={};function Xt(e,t,r){var i;const s=`${e}.${String(r)}`;if(Cs[s])return Cs[s].call(t);const n=No(e),o=(i=Object.getOwnPropertyDescriptor(n,r))==null?void 0:i.get;return o?(Cs[s]=o,o.call(t)):t[r]}const xs={};function ic(e,t,r){const i=`${e}.${String(r)}`;if(xs[i])return xs[i].bind(t);const n=No(e)[r];return typeof n!="function"?t[r]:(xs[i]=n,n.bind(t))}function zh(e){return Xt("Node",e,"childNodes")}function qh(e){return Xt("Node",e,"parentNode")}function jh(e){return Xt("Node",e,"parentElement")}function Vh(e){return Xt("Node",e,"textContent")}function Gh(e,t){return ic("Node",e,"contains")(t)}function Hh(e){return ic("Node",e,"getRootNode")()}function Yh(e){return!e||!("host"in e)?null:Xt("ShadowRoot",e,"host")}function Jh(e){return e.styleSheets}function Xh(e){return!e||!("shadowRoot"in e)?null:Xt("Element",e,"shadowRoot")}function Qh(e,t){return Xt("Element",e,"querySelector")(t)}function Kh(e,t){return Xt("Element",e,"querySelectorAll")(t)}function Zh(){return No("MutationObserver").constructor}const Te={childNodes:zh,parentNode:qh,parentElement:jh,textContent:Vh,contains:Gh,getRootNode:Hh,host:Yh,styleSheets:Jh,shadowRoot:Xh,querySelector:Qh,querySelectorAll:Kh,mutationObserver:Zh};function Mo(e){return e.nodeType===e.ELEMENT_NODE}function ed(e){const t=e&&"host"in e&&"mode"in e&&Te.host(e)||null;return!!(t&&"shadowRoot"in t&&Te.shadowRoot(t)===e)}function Rs(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function td(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function rd(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function eo(e){try{const t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);const i=Array.from(t,s=>sc(s,r)).join("");return td(i)}catch(t){return null}}function sc(e,t){if(sd(e)){let r;try{r=eo(e.styleSheet)||rd(e)}catch(i){r=e.cssText}return e.styleSheet.href?ji(r,e.styleSheet.href):r}else{let r=e.cssText;return nd(e)&&e.selectorText.includes(":")&&(r=id(r)),t?ji(r,t):r}}function id(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function sd(e){return"styleSheet"in e}function nd(e){return"selectorText"in e}class Ao{constructor(){ya(this,"idNodeMap",new Map),ya(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const i=(r=this.getMeta(t))==null?void 0:r.id;return i!=null?i:-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(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){const i=this.getNode(t);if(i){const s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function to(){return new Ao}function od({element:e,maskInputOptions:t,tagName:r,type:i,value:s,maskInputFn:n}){let o=s||"";const u=i&&di(i);return(t[r.toLowerCase()]||u&&t[u])&&(n?o=n(o,e):o="*".repeat(o.length)),o}function di(e){return e.toLowerCase()}const Sa="__rrweb_original__";function ad(e){const t=e.getContext("2d");if(!t)return!0;const r=50;for(let i=0;i<e.width;i+=r)for(let s=0;s<e.height;s+=r){const n=t.getImageData,o=Sa in n?n[Sa]:n;if(new Uint32Array(o.call(t,i,s,Math.min(r,e.width-i),Math.min(r,e.height-s)).data.buffer).some(d=>d!==0))return!1}return!0}function ld(e,t){return!e||!t||e.type!==t.type?!1:e.type===$.Document?e.compatMode===t.compatMode:e.type===$.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===$.Comment||e.type===$.Text||e.type===$.CDATA?e.textContent===t.textContent:e.type===$.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function ud(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?di(t):null}function nc(e,t){var n;let r;try{r=new URL(e,t!=null?t:window.location.href)}catch(o){return null}const i=/\.([0-9a-z]+)(?:$)/i,s=r.pathname.match(i);return(n=s==null?void 0:s[1])!=null?n:null}function cd(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}const fd=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,hd=/^(?:[a-z+]+:)?\/\//i,dd=/^www\..*/i,pd=/^(data:)([^,]*),(.*)/i;function ji(e,t){return(e||"").replace(fd,(r,i,s,n,o,u)=>{const d=s||o||u,l=i||n||"";if(!d)return r;if(hd.test(d)||dd.test(d))return`url(${l}${d}${l})`;if(pd.test(d))return`url(${l}${d}${l})`;if(d[0]==="/")return`url(${l}${cd(t)+d}${l})`;const a=t.split("/"),h=d.split("/");a.pop();for(const c of h)c!=="."&&(c===".."?a.pop():a.push(c));return`url(${l}${a.join("/")}${l})`})}function _i(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function md(e,t,r=!1){const i=Array.from(t.childNodes),s=[];let n=0;if(i.length>1&&e&&typeof e=="string"){let o=_i(e,r);const u=o.length/e.length;for(let d=1;d<i.length;d++)if(i[d].textContent&&typeof i[d].textContent=="string"){const l=_i(i[d].textContent,r),a=100;let h=3;for(;h<l.length&&(l[h].match(/[a-zA-Z0-9]/)||l.indexOf(l.substring(0,h),1)!==-1);h++);for(;h<l.length;h++){let c=l.substring(0,h),f=o.split(c),p=-1;if(f.length===2)p=f[0].length;else if(f.length>2&&f[0]===""&&i[d-1].textContent!=="")p=o.indexOf(c,1);else if(f.length===1){if(c=c.substring(0,c.length-1),f=o.split(c),f.length<=1)return s.push(e),s;h=a+1}else h===l.length-1&&(p=o.indexOf(c));if(f.length>=2&&h>a){const m=i[d-1].textContent;if(m&&typeof m=="string"){const g=_i(m).length;p=o.indexOf(c,g)}p===-1&&(p=f[0].length)}if(p!==-1){let m=Math.floor(p/u);for(;m>0&&m<e.length;){if(n+=1,n>50*i.length)return s.push(e),s;const g=_i(e.substring(0,m),r);if(g.length===p){s.push(e.substring(0,m)),e=e.substring(m),o=o.substring(p);break}else g.length<p?m+=Math.max(1,Math.floor((p-g.length)/u)):m-=Math.max(1,Math.floor((g.length-p)*u))}break}}}}return s.push(e),s}function gd(e,t){return md(e,t).join("/* rr_split */")}const vd="lightgrey";let yd=1;const wd=new RegExp("[^a-z0-9-_:]"),_a=-2;function bd(){return yd++}function Sd(e){if(e instanceof HTMLFormElement)return"form";const t=di(e.tagName);return wd.test(t)?"div":t}let yr,Ea;const _d=/^[^ \t\n\r\u000c]+/,Ed=/^[, \t\n\r\u000c]+/;function Cd(e,t){if(t.trim()==="")return t;let r=0;function i(n){let o;const u=n.exec(t.substring(r));return u?(o=u[0],r+=o.length,o):""}const s=[];for(;i(Ed),!(r>=t.length);){let n=i(_d);if(n.slice(-1)===",")n=Mr(e,n.substring(0,n.length-1)),s.push(n);else{let o="";n=Mr(e,n);let u=!1;for(;;){const d=t.charAt(r);if(d===""){s.push((n+o).trim());break}else if(u)d===")"&&(u=!1);else if(d===","){r+=1,s.push((n+o).trim());break}else d==="("&&(u=!0);o+=d,r+=1}}}return s.join(", ")}const Ca=new WeakMap;function Mr(e,t){return!t||t.trim()===""?t:Oo(e,t)}function xd(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Oo(e,t){let r=Ca.get(e);if(r||(r=e.createElement("a"),Ca.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function Rd(e,t,r,i){return i&&(r==="src"||r==="href"&&!(t==="use"&&i[0]==="#")||r==="xlink:href"&&i[0]!=="#"||r==="background"&&(t==="table"||t==="td"||t==="th")?Mr(e,i):r==="srcset"?Cd(e,i):r==="style"?ji(i,Oo(e)):t==="object"&&r==="data"?Mr(e,i):i)}function Nd(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function Md(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){const s=e.classList[i];if(t.test(s))return!0}if(r)return e.matches(r)}catch(i){}return!1}function ro(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?ro(Te.parentNode(e),t,r):!1;for(let i=e.classList.length;i--;){const s=e.classList[i];if(t.test(s))return!0}return r?ro(Te.parentNode(e),t,r):!1}function Ad(e,t,r,i){let s;if(Mo(e)){if(s=e,!Te.childNodes(s).length)return!1}else{if(Te.parentElement(e)===null)return!1;s=Te.parentElement(e)}try{if(typeof t=="string"){if(i){if(s.closest(`.${t}`))return!0}else if(s.classList.contains(t))return!0}else if(ro(s,t,i))return!0;if(r){if(i){if(s.closest(r))return!0}else if(s.matches(r))return!0}}catch(n){}return!1}function Od(e,t,r){const i=e.contentWindow;if(!i)return;let s=!1,n;try{n=i.document.readyState}catch(u){return}if(n!=="complete"){const u=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(u),s=!0,t()});return}const o="about:blank";if(i.location.href!==o||e.src===o||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Dd(e,t,r){let i=!1,s;try{s=e.sheet}catch(o){return}if(s)return;const n=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(n),i=!0,t()})}function Td(e,t){const{doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:o,inlineStylesheet:u,maskInputOptions:d={},maskTextFn:l,maskInputFn:a,maskAttributeFn:h,dataURLOptions:c={},inlineImages:f,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:g=!1,cssCaptured:w=!1,applyBackgroundColorToBlockedElements:v=!1}=t,S=kd(r,i);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:$.Document,childNodes:[],compatMode:e.compatMode}:{type:$.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:$.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return Pd(e,{doc:r,blockClass:s,blockSelector:n,inlineStylesheet:u,maskInputOptions:d,maskInputFn:a,maskAttributeFn:h,dataURLOptions:c,inlineImages:f,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:g,rootId:S,applyBackgroundColorToBlockedElements:v});case e.TEXT_NODE:return Id(e,{doc:r,needsMask:o,maskTextFn:l,rootId:S,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:$.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:$.Comment,textContent:Te.textContent(e)||"",rootId:S};default:return!1}}function kd(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return r===1?void 0:r}function Id(e,t){const{needsMask:r,maskTextFn:i,rootId:s,cssCaptured:n}=t,o=Te.parentNode(e),u=o&&o.tagName;let d="";const l=u==="STYLE"?!0:void 0,a=u==="SCRIPT"?!0:void 0;return a?d="SCRIPT_PLACEHOLDER":n||(d=Te.textContent(e),l&&d&&(d=ji(d,Oo(t.doc)))),!l&&!a&&d&&r&&(d=i?i(d,Te.parentElement(e)):d.replace(/[\S]/g,"*")),{type:$.Text,textContent:d||"",rootId:s}}function Pd(e,t){const{doc:r,blockClass:i,blockSelector:s,inlineStylesheet:n,maskInputOptions:o={},maskInputFn:u,maskAttributeFn:d,dataURLOptions:l={},inlineImages:a,recordCanvas:h,keepIframeSrcFn:c,newlyAddedElement:f=!1,rootId:p,applyBackgroundColorToBlockedElements:m=!1}=t,g=Md(e,i,s),w=Sd(e);let v={};const S=e.attributes.length;for(let y=0;y<S;y++){const b=e.attributes[y];if(!Nd(w,b.name,b.value)){const _=Rd(r,w,di(b.name),b.value);if(d&&_!==null){const C=d(b.name,_,e);C!==null&&(v[b.name]=C)}else v[b.name]=_}}if(w==="link"&&n){const y=Array.from(r.styleSheets).find(_=>_.href===e.href);let b=null;y&&(b=eo(y)),b&&(delete v.rel,delete v.href,v._cssText=b)}if(w==="style"&&e.sheet){let y=eo(e.sheet);y&&(e.childNodes.length>1&&(y=gd(y,e)),v._cssText=y)}if(w==="input"||w==="textarea"||w==="select"){const y=e.value,b=e.checked;v.type!=="radio"&&v.type!=="checkbox"&&v.type!=="submit"&&v.type!=="button"&&y?v.value=od({element:e,type:ud(e),tagName:w,value:y,maskInputOptions:o,maskInputFn:u}):b&&(v.checked=b)}if(w==="option"&&(e.selected&&!o.select?v.selected=!0:delete v.selected),w==="dialog"&&e.open&&(v.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),w==="canvas"&&h){if(e.__context==="2d")ad(e)||(v.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const y=e.toDataURL(l.type,l.quality),b=r.createElement("canvas");b.width=e.width,b.height=e.height;const _=b.toDataURL(l.type,l.quality);y!==_&&(v.rr_dataURL=y)}}if(w==="img"&&a){yr||(yr=r.createElement("canvas"),Ea=yr.getContext("2d"));const y=e,b=y.currentSrc||y.getAttribute("src")||"<unknown-src>",_=y.crossOrigin,C=()=>{y.removeEventListener("load",C);try{yr.width=y.naturalWidth,yr.height=y.naturalHeight,Ea.drawImage(y,0,0),v.rr_dataURL=yr.toDataURL(l.type,l.quality)}catch(M){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?C():y.addEventListener("load",C);return}else console.warn(`Cannot inline img src=${b}! Error: ${M}`)}y.crossOrigin==="anonymous"&&(_?v.crossOrigin=_:y.removeAttribute("crossorigin"))};y.complete&&y.naturalWidth!==0?C():y.addEventListener("load",C)}if(w==="audio"||w==="video"){const y=v;y.rr_mediaState=e.paused?"paused":"played",y.rr_mediaCurrentTime=e.currentTime,y.rr_mediaPlaybackRate=e.playbackRate,y.rr_mediaMuted=e.muted,y.rr_mediaLoop=e.loop,y.rr_mediaVolume=e.volume}if(f||(e.scrollLeft&&(v.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(v.rr_scrollTop=e.scrollTop)),g){const{width:y,height:b}=e.getBoundingClientRect();v=G({class:v.class,rr_width:`${y}px`,rr_height:`${b}px`},m?{rr_background_color:vd}:{})}w==="iframe"&&!c(v.src)&&(e.contentDocument||(v.rr_src=v.src),delete v.src);let E;try{customElements.get(w)&&(E=!0)}catch(y){}return{type:$.Element,tagName:w,attributes:v,childNodes:[],isSVG:xd(e)||void 0,needBlock:g,rootId:p,isCustom:E}}function fe(e){return e==null?"":e.toLowerCase()}function Ld(e,t){if(t.comment&&e.type===$.Comment)return!0;if(e.type===$.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&nc(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(fe(e.attributes.name).match(/^msapplication-tile(image|color)$/)||fe(e.attributes.name)==="application-name"||fe(e.attributes.rel)==="icon"||fe(e.attributes.rel)==="apple-touch-icon"||fe(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&fe(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(fe(e.attributes.property).match(/^(og|twitter|fb):/)||fe(e.attributes.name).match(/^(og|twitter):/)||fe(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(fe(e.attributes.name)==="robots"||fe(e.attributes.name)==="googlebot"||fe(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(fe(e.attributes.name)==="author"||fe(e.attributes.name)==="generator"||fe(e.attributes.name)==="framework"||fe(e.attributes.name)==="publisher"||fe(e.attributes.name)==="progid"||fe(e.attributes.property).match(/^article:/)||fe(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(fe(e.attributes.name)==="google-site-verification"||fe(e.attributes.name)==="yandex-verification"||fe(e.attributes.name)==="csrf-token"||fe(e.attributes.name)==="p:domain_verify"||fe(e.attributes.name)==="verify-v1"||fe(e.attributes.name)==="verification"||fe(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function xa(e,t,r){return Array.from(e).map(i=>{const s=t(i);let n=[];if(!r.has(s)){r.add(s);try{n=Array.from(i.cssRules,(o,u)=>({rule:sc(o,i.href),index:u}))}catch(o){if(!(o instanceof DOMException&&o.name==="SecurityError"))throw o}}return{styleId:s,rules:n}})}function Zr(e,t){var O;var r,i;const{doc:s,mirror:n,blockClass:o,blockSelector:u,maskTextClass:d,maskTextSelector:l,skipChild:a=!1,inlineStylesheet:h=!0,maskInputOptions:c={},maskTextFn:f,maskInputFn:p,maskAttributeFn:m,slimDOMOptions:g,dataURLOptions:w={},inlineImages:v=!1,recordCanvas:S=!1,onSerialize:E,onAdoptedStyleSheet:y,onIframeLoad:b,iframeLoadTimeout:_=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:M=5e3,keepIframeSrcFn:x=()=>!1,newlyAddedElement:I=!1,cssCaptured:D=!1,applyBackgroundColorToBlockedElements:le=!1}=t,te=(O=t._emittedStyleIds)!=null?O:new Set;let{needsMask:R}=t,{preserveWhiteSpace:se=!0}=t;R||(R=Ad(e,d,l,R===void 0));const L=Td(e,{doc:s,mirror:n,blockClass:o,blockSelector:u,needsMask:R,inlineStylesheet:h,maskInputOptions:c,maskTextFn:f,maskInputFn:p,maskAttributeFn:m,dataURLOptions:w,inlineImages:v,recordCanvas:S,keepIframeSrcFn:x,newlyAddedElement:I,cssCaptured:D,applyBackgroundColorToBlockedElements:le});if(!L)return console.warn(e,"not serialized"),null;let V;n.hasNode(e)?V=n.getId(e):Ld(L,g)||!se&&L.type===$.Text&&!L.textContent.replace(/^\s+|\s+$/gm,"").length?V=_a:V=bd();const P=Object.assign(L,{id:V});if(n.add(e,P),V===_a)return null;E&&E(e);let j=!a,Ce=!1;if(P.type===$.Element){Ce=!!P.needBlock,j=j&&!Ce,delete P.needBlock;const z=Te.shadowRoot(e);z&&Rs(z)&&(P.isShadowHost=!0,y&&((r=z.adoptedStyleSheets)!=null&&r.length)&&(P.adoptedStyleSheets=xa(z.adoptedStyleSheets,y,te)))}if(P.type===$.Document&&y){const z=e;(i=z.adoptedStyleSheets)!=null&&i.length&&(P.adoptedStyleSheets=xa(z.adoptedStyleSheets,y,te))}if((P.type===$.Document||P.type===$.Element)&&j){g.headWhitespace&&P.type===$.Element&&P.tagName==="head"&&(se=!1);const z={doc:s,mirror:n,blockClass:o,blockSelector:u,needsMask:R,maskTextClass:d,maskTextSelector:l,skipChild:a,inlineStylesheet:h,maskInputOptions:c,maskTextFn:f,maskInputFn:p,maskAttributeFn:m,slimDOMOptions:g,dataURLOptions:w,inlineImages:v,recordCanvas:S,preserveWhiteSpace:se,onSerialize:E,onAdoptedStyleSheet:y,_emittedStyleIds:te,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:C,stylesheetLoadTimeout:M,keepIframeSrcFn:x,cssCaptured:!1,applyBackgroundColorToBlockedElements:le};if(!(P.type===$.Element&&P.tagName==="textarea"&&P.attributes.value!==void 0)){P.type===$.Element&&P.attributes._cssText!==void 0&&typeof P.attributes._cssText=="string"&&(z.cssCaptured=!0);for(const W of Array.from(Te.childNodes(e))){const q=Zr(W,z);q&&P.childNodes.push(q)}}let k=null;if(Mo(e)&&(k=Te.shadowRoot(e)))for(const W of Array.from(Te.childNodes(k))){const q=Zr(W,z);q&&(Rs(k)&&(q.isShadow=!0),P.childNodes.push(q))}}const we=Te.parentNode(e);return we&&ed(we)&&Rs(we)&&(P.isShadow=!0),P.type===$.Element&&P.tagName==="iframe"&&!Ce&&Od(e,()=>{const z=e.contentDocument;if(z&&b){const k=Zr(z,{doc:z,mirror:n,blockClass:o,blockSelector:u,needsMask:R,maskTextClass:d,maskTextSelector:l,skipChild:!1,inlineStylesheet:h,maskInputOptions:c,maskTextFn:f,maskInputFn:p,maskAttributeFn:m,slimDOMOptions:g,dataURLOptions:w,inlineImages:v,recordCanvas:S,preserveWhiteSpace:se,onSerialize:E,onAdoptedStyleSheet:y,_emittedStyleIds:te,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:C,stylesheetLoadTimeout:M,keepIframeSrcFn:x});k&&b(e,k)}},_),P.type===$.Element&&P.tagName==="link"&&typeof P.attributes.rel=="string"&&(P.attributes.rel==="stylesheet"||P.attributes.rel==="preload"&&typeof P.attributes.href=="string"&&nc(P.attributes.href)==="css")&&Dd(e,()=>{if(C){const z=Zr(e,{doc:s,mirror:n,blockClass:o,blockSelector:u,needsMask:R,maskTextClass:d,maskTextSelector:l,skipChild:!1,inlineStylesheet:h,maskInputOptions:c,maskTextFn:f,maskInputFn:p,maskAttributeFn:m,slimDOMOptions:g,dataURLOptions:w,inlineImages:v,recordCanvas:S,preserveWhiteSpace:se,onSerialize:E,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:C,stylesheetLoadTimeout:M,keepIframeSrcFn:x});z&&C(e,z)}},M),P}function Fd(e,t){const{mirror:r=new Ao,blockClass:i="rr-block",blockSelector:s=null,maskTextClass:n="rr-mask",maskTextSelector:o=null,inlineStylesheet:u=!0,inlineImages:d=!1,recordCanvas:l=!1,maskAllInputs:a=!1,maskTextFn:h,maskInputFn:c,maskAttributeFn:f,slimDOM:p=!1,dataURLOptions:m,preserveWhiteSpace:g,onSerialize:w,onAdoptedStyleSheet:v,_emittedStyleIds:S,onIframeLoad:E,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:_,keepIframeSrcFn:C=()=>!1,applyBackgroundColorToBlockedElements:M=!1}=t||{};return Zr(e,{doc:e,mirror:r,blockClass:i,blockSelector:s,maskTextClass:n,maskTextSelector:o,skipChild:!1,inlineStylesheet:u,maskInputOptions:a===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:a===!1?{password:!0}:a,maskTextFn:h,maskInputFn:c,maskAttributeFn:f,slimDOMOptions:p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:p==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:p===!1?{}:p,dataURLOptions:m,inlineImages:d,recordCanvas:l,preserveWhiteSpace:g,onSerialize:w,onAdoptedStyleSheet:v,_emittedStyleIds:S,onIframeLoad:E,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:_,keepIframeSrcFn:C,newlyAddedElement:!1,applyBackgroundColorToBlockedElements:M})}const Bd=/(max|min)-device-(width|height)/,Ra=new RegExp(Bd.source,"g"),Ud={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(Ra)&&(e.params=e.params.replace(Ra,"$1-$2"))}}}},$d={postcssPlugin:"postcss-hover-classes",prepare:function(){const e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(r){r.includes(":hover")&&(t.selector+=`,
17
+ `+r.replace(/:hover/g,".\\:hover"))}))}}}};function Wd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zd(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?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(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),r}var Ei={exports:{}},Na;function qd(){if(Na)return Ei.exports;Na=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 Ei.exports=t(),Ei.exports.createColors=t,Ei.exports}const jd={},Vd=Object.freeze(Object.defineProperty({__proto__:null,default:jd},Symbol.toStringTag,{value:"Module"})),ut=zd(Vd);var Ns,Ma;function Do(){if(Ma)return Ns;Ma=1;let e=qd(),t=ut;class r extends Error{constructor(s,n,o,u,d,l){super(s),this.name="CssSyntaxError",this.reason=s,d&&(this.file=d),u&&(this.source=u),l&&(this.plugin=l),typeof n!="undefined"&&typeof o!="undefined"&&(typeof n=="number"?(this.line=n,this.column=o):(this.line=n.line,this.column=n.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(s){if(!this.source)return"";let n=this.source;s==null&&(s=e.isColorSupported);let o=f=>f,u=f=>f,d=f=>f;if(s){let{bold:f,gray:p,red:m}=e.createColors(!0);u=g=>f(m(g)),o=g=>p(g),t&&(d=g=>t(g))}let l=n.split(/\r?\n/),a=Math.max(this.line-3,0),h=Math.min(this.line+2,l.length),c=String(h).length;return l.slice(a,h).map((f,p)=>{let m=a+1+p,g=" "+(" "+m).slice(-c)+" | ";if(m===this.line){if(f.length>160){let v=20,S=Math.max(0,this.column-v),E=Math.max(this.column+v,this.endColumn+v),y=f.slice(S,E),b=o(g.replace(/\d/g," "))+f.slice(0,Math.min(this.column-1,v-1)).replace(/[^\t]/g," ");return u(">")+o(g)+d(y)+`
18
+ `+b+u("^")}let w=o(g.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+o(g)+d(f)+`
19
+ `+w+u("^")}return" "+o(g)+d(f)}).join(`
20
20
  `)}toString(){let s=this.showSourceCode();return s&&(s=`
21
21
 
22
22
  `+s+`
23
- `),this.name+": "+this.message+s}}return Ms=r,r.default=r,Ms}var Ns,Na;function nc(){if(Na)return Ns;Na=1;const e={after:`
23
+ `),this.name+": "+this.message+s}}return Ns=r,r.default=r,Ns}var Ms,Aa;function oc(){if(Aa)return Ms;Aa=1;const e={after:`
24
24
  `,beforeClose:`
25
25
  `,beforeComment:`
26
26
  `,beforeDecl:`
27
27
  `,beforeOpen:" ",beforeRule:`
28
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(s){this.builder=s}atrule(s,o){let n="@"+s.name,u=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName!="undefined"?n+=s.raws.afterName:u&&(n+=" "),s.nodes)this.block(s,n+u);else{let d=(s.raws.between||"")+(o?";":"");this.builder(n+u+d,s)}}beforeAfter(s,o){let n;s.type==="decl"?n=this.raw(s,null,"beforeDecl"):s.type==="comment"?n=this.raw(s,null,"beforeComment"):o==="before"?n=this.raw(s,null,"beforeRule"):n=this.raw(s,null,"beforeClose");let u=s.parent,d=0;for(;u&&u.type!=="root";)d+=1,u=u.parent;if(n.includes(`
29
- `)){let l=this.raw(s,null,"indent");if(l.length)for(let a=0;a<d;a++)n+=l}return n}block(s,o){let n=this.raw(s,"between","beforeOpen");this.builder(o+n+"{",s,"start");let u;s.nodes&&s.nodes.length?(this.body(s),u=this.raw(s,"after")):u=this.raw(s,"after","emptyBody"),u&&this.builder(u),this.builder("}",s,"end")}body(s){let o=s.nodes.length-1;for(;o>0&&s.nodes[o].type==="comment";)o-=1;let n=this.raw(s,"semicolon");for(let u=0;u<s.nodes.length;u++){let d=s.nodes[u],l=this.raw(d,"before");l&&this.builder(l),this.stringify(d,o!==u||n)}}comment(s){let o=this.raw(s,"left","commentLeft"),n=this.raw(s,"right","commentRight");this.builder("/*"+o+s.text+n+"*/",s)}decl(s,o){let n=this.raw(s,"between","colon"),u=s.prop+n+this.rawValue(s,"value");s.important&&(u+=s.raws.important||" !important"),o&&(u+=";"),this.builder(u,s)}document(s){this.body(s)}raw(s,o,n){let u;if(n||(n=o),o&&(u=s.raws[o],typeof u!="undefined"))return u;let d=s.parent;if(n==="before"&&(!d||d.type==="root"&&d.first===s||d&&d.type==="document"))return"";if(!d)return e[n];let l=s.root();if(l.rawCache||(l.rawCache={}),typeof l.rawCache[n]!="undefined")return l.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(s,n);{let a="raw"+t(n);this[a]?u=this[a](l,s):l.walk(f=>{if(u=f.raws[o],typeof u!="undefined")return!1})}return typeof u=="undefined"&&(u=e[n]),l.rawCache[n]=u,u}rawBeforeClose(s){let o;return s.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after!="undefined")return o=n.raws.after,o.includes(`
30
- `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(s,o){let n;return s.walkComments(u=>{if(typeof u.raws.before!="undefined")return n=u.raws.before,n.includes(`
31
- `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(o,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(s,o){let n;return s.walkDecls(u=>{if(typeof u.raws.before!="undefined")return n=u.raws.before,n.includes(`
32
- `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(o,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(s){let o;return s.walk(n=>{if(n.type!=="decl"&&(o=n.raws.between,typeof o!="undefined"))return!1}),o}rawBeforeRule(s){let o;return s.walk(n=>{if(n.nodes&&(n.parent!==s||s.first!==n)&&typeof n.raws.before!="undefined")return o=n.raws.before,o.includes(`
33
- `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(s){let o;return s.walkDecls(n=>{if(typeof n.raws.between!="undefined")return o=n.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(s){let o;return s.walk(n=>{if(n.nodes&&n.nodes.length===0&&(o=n.raws.after,typeof o!="undefined"))return!1}),o}rawIndent(s){if(s.raws.indent)return s.raws.indent;let o;return s.walk(n=>{let u=n.parent;if(u&&u!==s&&u.parent&&u.parent===s&&typeof n.raws.before!="undefined"){let d=n.raws.before.split(`
34
- `);return o=d[d.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(s){let o;return s.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(o=n.raws.semicolon,typeof o!="undefined"))return!1}),o}rawValue(s,o){let n=s[o],u=s.raws[o];return u&&u.value===n?u.raw:n}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,o){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,o)}}return Ns=r,r.default=r,Ns}var As,Aa;function as(){if(Aa)return As;Aa=1;let e=nc();function t(r,i){new e(i).stringify(r)}return As=t,t.default=t,As}var Ci={},Oa;function Do(){return Oa||(Oa=1,Ci.isClean=Symbol("isClean"),Ci.my=Symbol("my")),Ci}var Os,Da;function ls(){if(Da)return Os;Da=1;let e=Oo(),t=nc(),r=as(),{isClean:i,my:s}=Do();function o(d,l){let a=new d.constructor;for(let f in d){if(!Object.prototype.hasOwnProperty.call(d,f)||f==="proxyCache")continue;let c=d[f],h=typeof c;f==="parent"&&h==="object"?l&&(a[f]=l):f==="source"?a[f]=c:Array.isArray(c)?a[f]=c.map(p=>o(p,a)):(h==="object"&&c!==null&&(c=o(c)),a[f]=c)}return a}function n(d,l){if(l&&typeof l.offset!="undefined")return l.offset;let a=1,f=1,c=0;for(let h=0;h<d.length;h++){if(f===l.line&&a===l.column){c=h;break}d[h]===`
35
- `?(a=1,f+=1):a+=1}return c}class u{get proxyOf(){return this}constructor(l={}){this.raws={},this[i]=!1,this[s]=!0;for(let a in l)if(a==="nodes"){this.nodes=[];for(let f of l[a])typeof f.clone=="function"?this.append(f.clone()):this.append(f)}else this[a]=l[a]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let a=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${a.input.from}:${a.start.line}:${a.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let a in l)this[a]=l[a];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 a=o(this);for(let f in l)a[f]=l[f];return a}cloneAfter(l={}){let a=this.clone(l);return this.parent.insertAfter(this,a),a}cloneBefore(l={}){let a=this.clone(l);return this.parent.insertBefore(this,a),a}error(l,a={}){if(this.source){let{end:f,start:c}=this.rangeBy(a);return this.source.input.error(l,{column:c.column,line:c.line},{column:f.column,line:f.line},a)}return new e(l)}getProxyProcessor(){return{get(l,a){return a==="proxyOf"?l:a==="root"?()=>l.root().toProxy():l[a]},set(l,a,f){return l[a]===f||(l[a]=f,(a==="prop"||a==="value"||a==="name"||a==="params"||a==="important"||a==="text")&&l.markDirty()),!0}}}markClean(){this[i]=!0}markDirty(){if(this[i]){this[i]=!1;let l=this;for(;l=l.parent;)l[i]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l={}){let a=this.source.start;if(l.index)a=this.positionInside(l.index);else if(l.word){let f="document"in this.source.input?this.source.input.document:this.source.input.css,h=f.slice(n(f,this.source.start),n(f,this.source.end)).indexOf(l.word);h!==-1&&(a=this.positionInside(h))}return a}positionInside(l){let a=this.source.start.column,f=this.source.start.line,c="document"in this.source.input?this.source.input.document:this.source.input.css,h=n(c,this.source.start),p=h+l;for(let m=h;m<p;m++)c[m]===`
36
- `?(a=1,f+=1):a+=1;return{column:a,line:f,offset:p}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l={}){let a="document"in this.source.input?this.source.input.document:this.source.input.css,f={column:this.source.start.column,line:this.source.start.line,offset:n(a,this.source.start)},c=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:n(a,this.source.end)+1}:{column:f.column+1,line:f.line,offset:f.offset+1};if(l.word){let p=a.slice(n(a,this.source.start),n(a,this.source.end)).indexOf(l.word);p!==-1&&(f=this.positionInside(p),c=this.positionInside(p+l.word.length))}else l.start?f={column:l.start.column,line:l.start.line,offset:n(a,l.start)}:l.index&&(f=this.positionInside(l.index)),l.end?c={column:l.end.column,line:l.end.line,offset:n(a,l.end)}:typeof l.endIndex=="number"?c=this.positionInside(l.endIndex):l.index&&(c=this.positionInside(l.index+1));return(c.line<f.line||c.line===f.line&&c.column<=f.column)&&(c={column:f.column+1,line:f.line,offset:f.offset+1}),{end:c,start:f}}raw(l,a){return new t().raw(this,l,a)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let a=this,f=!1;for(let c of l)c===this?f=!0:f?(this.parent.insertAfter(a,c),a=c):this.parent.insertBefore(a,c);f||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,a){let f={},c=a==null;a=a||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))f[p]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,a):g);else if(typeof m=="object"&&m.toJSON)f[p]=m.toJSON(null,a);else if(p==="source"){if(m==null)continue;let g=a.get(m.input);g==null&&(g=h,a.set(m.input,h),h++),f[p]={end:m.end,inputId:g,start:m.start}}else f[p]=m}return c&&(f.inputs=[...a.keys()].map(p=>p.toJSON())),f}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=r){l.stringify&&(l=l.stringify);let a="";return l(this,f=>{a+=f}),a}warn(l,a,f={}){let c={node:this};for(let h in f)c[h]=f[h];return l.warn(a,c)}}return Os=u,u.default=u,Os}var Ds,Ta;function us(){if(Ta)return Ds;Ta=1;let e=ls();class t extends e{constructor(i){super(i),this.type="comment"}}return Ds=t,t.default=t,Ds}var Ts,ka;function cs(){if(ka)return Ts;ka=1;let e=ls();class t extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(i){i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=be(G({},i),{value:String(i.value)})),super(i),this.type="decl"}}return Ts=t,t.default=t,Ts}var ks,Ia;function mr(){if(Ia)return ks;Ia=1;let e=us(),t=cs(),r=ls(),{isClean:i,my:s}=Do(),o,n,u,d;function l(c){return c.map(h=>(h.nodes&&(h.nodes=l(h.nodes)),delete h.source,h))}function a(c){if(c[i]=!1,c.proxyOf.nodes)for(let h of c.proxyOf.nodes)a(h)}class f 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"?(w,v)=>g(w.toProxy(),v):g)):p==="every"||p==="some"?m=>h[p]((g,...w)=>m(g.toProxy(),...w)):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 v of g)this.proxyOf.nodes.splice(m+1,0,v);let w;for(let v in this.indexes)w=this.indexes[v],m<w&&(this.indexes[v]=w+g.length);return this.markDirty(),this}insertBefore(h,p){let m=this.index(h),g=m===0?"prepend":!1,w=this.normalize(p,this.proxyOf.nodes[m],g).reverse();m=this.index(h);for(let S of w)this.proxyOf.nodes.splice(m,0,S);let v;for(let S in this.indexes)v=this.indexes[S],m<=v&&(this.indexes[S]=v+w.length);return this.markDirty(),this}normalize(h,p){if(typeof h=="string")h=l(n(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 o(h)];else if(h.text)h=[new e(h)];else throw new Error("Unknown node type in node creation");return h.map(g=>(g[s]||f.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[i]&&a(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(w){throw p.addToError(w)}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 f.registerParse=c=>{n=c},f.registerRule=c=>{d=c},f.registerAtRule=c=>{o=c},f.registerRoot=c=>{u=c},ks=f,f.default=f,f.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,o.prototype):c.type==="rule"?Object.setPrototypeOf(c,d.prototype):c.type==="decl"?Object.setPrototypeOf(c,t.prototype):c.type==="comment"?Object.setPrototypeOf(c,e.prototype):c.type==="root"&&Object.setPrototypeOf(c,u.prototype),c[s]=!0,c.nodes&&c.nodes.forEach(h=>{f.rebuild(h)})},ks}var Is,Pa;function To(){if(Pa)return Is;Pa=1;let e=mr();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return Is=t,t.default=t,e.registerAtRule(t),Is}var Ps,La;function ko(){if(La)return Ps;La=1;let e=mr(),t,r;class i extends e{constructor(o){super(G({type:"document"},o)),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},Ps=i,i.default=i,Ps}var Ls,Fa;function jd(){if(Fa)return Ls;Fa=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Ls={nanoid:(i=21)=>{let s="",o=i|0;for(;o--;)s+=e[Math.random()*64|0];return s},customAlphabet:(i,s=21)=>(o=s)=>{let n="",u=o|0;for(;u--;)n+=i[Math.random()*i.length|0];return n}},Ls}var Fs,Ba;function oc(){if(Ba)return Fs;Ba=1;let{existsSync:e,readFileSync:t}=ut,{dirname:r,join:i}=ut,{SourceMapConsumer:s,SourceMapGenerator:o}=ut;function n(d){return Buffer?Buffer.from(d,"base64").toString():window.atob(d)}class u{constructor(l,a){if(a.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let f=a.map?a.map.prev:void 0,c=this.loadMap(a.from,f);!this.mapFile&&a.from&&(this.mapFile=a.from),this.mapFile&&(this.root=r(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(l){let a=/^data:application\/json;charset=utf-?8;base64,/,f=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/,p=l.match(c)||l.match(h);if(p)return decodeURIComponent(l.substr(p[0].length));let m=l.match(a)||l.match(f);if(m)return n(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 a=l.match(/\/\*\s*# sourceMappingURL=/g);if(!a)return;let f=l.lastIndexOf(a.pop()),c=l.indexOf("*/",f);f>-1&&c>-1&&(this.annotation=this.getAnnotationURL(l.substring(f,c)))}loadFile(l){if(this.root=r(l),e(l))return this.mapFile=l,t(l,"utf-8").toString().trim()}loadMap(l,a){if(a===!1)return!1;if(a){if(typeof a=="string")return a;if(typeof a=="function"){let f=a(l);if(f){let c=this.loadFile(f);if(!c)throw new Error("Unable to load previous source map: "+f.toString());return c}}else{if(a instanceof s)return o.fromSourceMap(a).toString();if(a instanceof o)return a.toString();if(this.isMap(a))return JSON.stringify(a);throw new Error("Unsupported previous source map format: "+a.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let f=this.annotation;return l&&(f=i(r(l),f)),this.loadFile(f)}}}startWith(l,a){return l?l.substr(0,a.length)===a:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Fs=u,u.default=u,Fs}var Bs,Ua;function fs(){if(Ua)return Bs;Ua=1;let{nanoid:e}=jd(),{isAbsolute:t,resolve:r}=ut,{SourceMapConsumer:i,SourceMapGenerator:s}=ut,{fileURLToPath:o,pathToFileURL:n}=ut,u=Oo(),d=oc(),l=ut,a=Symbol("lineToIndexCache"),f=!!(i&&s),c=!!(r&&t);function h(m){if(m[a])return m[a];let g=m.css.split(`
37
- `),w=new Array(g.length),v=0;for(let S=0,E=g.length;S<E;S++)w[S]=v,v+=g[S].length+1;return m[a]=w,w}class p{get from(){return this.file||this.id}constructor(g,w={}){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,w.document&&(this.document=w.document.toString()),w.from&&(!c||/^\w+:\/\//.test(w.from)||t(w.from)?this.file=w.from:this.file=r(w.from)),c&&f){let v=new d(this.css,w);if(v.text){this.map=v;let S=v.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,w,v,S={}){let E,y,b,_,C;if(w&&typeof w=="object"){let x=w,I=v;if(typeof x.offset=="number"){_=x.offset;let D=this.fromOffset(_);w=D.line,v=D.col}else w=x.line,v=x.column,_=this.fromLineAndColumn(w,v);if(typeof I.offset=="number"){b=I.offset;let D=this.fromOffset(b);y=D.line,E=D.col}else y=I.line,E=I.column,b=this.fromLineAndColumn(I.line,I.column)}else if(v)_=this.fromLineAndColumn(w,v);else{_=w;let x=this.fromOffset(_);w=x.line,v=x.col}let N=this.origin(w,v,y,E);return N?C=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):C=new u(g,y===void 0?w:{column:v,line:w},y===void 0?v:{column:E,line:y},this.css,this.file,S.plugin),C.input={column:v,endColumn:E,endLine:y,endOffset:b,line:w,offset:_,source:this.css},this.file&&(n&&(C.input.url=n(this.file).toString()),C.input.file=this.file),C}fromLineAndColumn(g,w){return h(this)[g-1]+w-1}fromOffset(g){let w=h(this),v=w[w.length-1],S=0;if(g>=v)S=w.length-1;else{let E=w.length-2,y;for(;S<E;)if(y=S+(E-S>>1),g<w[y])E=y-1;else if(g>=w[y+1])S=y+1;else{S=y;break}}return{col:g-w[S]+1,line:S+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:r(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,w,v,S){if(!this.map)return!1;let E=this.map.consumer(),y=E.originalPositionFor({column:w,line:g});if(!y.source)return!1;let b;typeof v=="number"&&(b=E.originalPositionFor({column:S,line:v}));let _;t(y.source)?_=n(y.source):_=new URL(y.source,this.map.consumer().sourceRoot||n(this.map.mapFile));let C={column:y.column,endColumn:b&&b.column,endLine:b&&b.line,line:y.line,url:_.toString()};if(_.protocol==="file:")if(o)C.file=o(_);else throw new Error("file: protocol is not available in this PostCSS build");let N=E.sourceContentFor(y.source);return N&&(C.source=N),C}toJSON(){let g={};for(let w of["hasBOM","css","file","id"])this[w]!=null&&(g[w]=this[w]);return this.map&&(g.map=G({},this.map),g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return Bs=p,p.default=p,l&&l.registerInput&&l.registerInput(p),Bs}var Us,$a;function pi(){if($a)return Us;$a=1;let e=mr(),t,r;class i extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,n,u){let d=super.normalize(o);if(n){if(u==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let l of d)l.raws.before=n.raws.before}return d}removeChild(o,n){let u=this.index(o);return!n&&u===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[u].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},Us=i,i.default=i,e.registerRoot(i),Us}var $s,Wa;function ac(){if(Wa)return $s;Wa=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
38
- `," "];return e.split(t,r)},split(t,r,i){let s=[],o="",n=!1,u=0,d=!1,l="",a=!1;for(let f of t)a?a=!1:f==="\\"?a=!0:d?f===l&&(d=!1):f==='"'||f==="'"?(d=!0,l=f):f==="("?u+=1:f===")"?u>0&&(u-=1):u===0&&r.includes(f)&&(n=!0),n?(o!==""&&s.push(o.trim()),o="",n=!1):o+=f;return(i||o!=="")&&s.push(o.trim()),s}};return $s=e,e.default=e,$s}var Ws,za;function Io(){if(za)return Ws;za=1;let e=mr(),t=ac();class r extends e{get selectors(){return t.comma(this.selector)}set selectors(s){let o=this.selector?this.selector.match(/,\s*/):null,n=o?o[0]:","+this.raw("between","beforeOpen");this.selector=s.join(n)}constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}}return Ws=r,r.default=r,e.registerRule(r),Ws}var zs,qa;function Vd(){if(qa)return zs;qa=1;let e=To(),t=us(),r=cs(),i=fs(),s=oc(),o=pi(),n=Io();function u(d,l){if(Array.isArray(d))return d.map(p=>u(p));let c=d,{inputs:a}=c,f=Vr(c,["inputs"]);if(a){l=[];for(let p of a){let m=be(G({},p),{__proto__:i.prototype});m.map&&(m.map=be(G({},m.map),{__proto__:s.prototype})),l.push(m)}}if(f.nodes&&(f.nodes=d.nodes.map(p=>u(p,l))),f.source){let h=f.source,{inputId:p}=h,m=Vr(h,["inputId"]);f.source=m,p!=null&&(f.source.input=l[p])}if(f.type==="root")return new o(f);if(f.type==="decl")return new r(f);if(f.type==="rule")return new n(f);if(f.type==="comment")return new t(f);if(f.type==="atrule")return new e(f);throw new Error("Unknown node type: "+d.type)}return zs=u,u.default=u,zs}var qs,ja;function lc(){if(ja)return qs;ja=1;let{dirname:e,relative:t,resolve:r,sep:i}=ut,{SourceMapConsumer:s,SourceMapGenerator:o}=ut,{pathToFileURL:n}=ut,u=fs(),d=!!(s&&o),l=!!(e&&r&&t&&i);class a{constructor(c,h,p,m){this.stringify=c,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 c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let h=`
28
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(s){this.builder=s}atrule(s,n){let o="@"+s.name,u=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName!="undefined"?o+=s.raws.afterName:u&&(o+=" "),s.nodes)this.block(s,o+u);else{let d=(s.raws.between||"")+(n?";":"");this.builder(o+u+d,s)}}beforeAfter(s,n){let o;s.type==="decl"?o=this.raw(s,null,"beforeDecl"):s.type==="comment"?o=this.raw(s,null,"beforeComment"):n==="before"?o=this.raw(s,null,"beforeRule"):o=this.raw(s,null,"beforeClose");let u=s.parent,d=0;for(;u&&u.type!=="root";)d+=1,u=u.parent;if(o.includes(`
29
+ `)){let l=this.raw(s,null,"indent");if(l.length)for(let a=0;a<d;a++)o+=l}return o}block(s,n){let o=this.raw(s,"between","beforeOpen");this.builder(n+o+"{",s,"start");let u;s.nodes&&s.nodes.length?(this.body(s),u=this.raw(s,"after")):u=this.raw(s,"after","emptyBody"),u&&this.builder(u),this.builder("}",s,"end")}body(s){let n=s.nodes.length-1;for(;n>0&&s.nodes[n].type==="comment";)n-=1;let o=this.raw(s,"semicolon");for(let u=0;u<s.nodes.length;u++){let d=s.nodes[u],l=this.raw(d,"before");l&&this.builder(l),this.stringify(d,n!==u||o)}}comment(s){let n=this.raw(s,"left","commentLeft"),o=this.raw(s,"right","commentRight");this.builder("/*"+n+s.text+o+"*/",s)}decl(s,n){let o=this.raw(s,"between","colon"),u=s.prop+o+this.rawValue(s,"value");s.important&&(u+=s.raws.important||" !important"),n&&(u+=";"),this.builder(u,s)}document(s){this.body(s)}raw(s,n,o){let u;if(o||(o=n),n&&(u=s.raws[n],typeof u!="undefined"))return u;let d=s.parent;if(o==="before"&&(!d||d.type==="root"&&d.first===s||d&&d.type==="document"))return"";if(!d)return e[o];let l=s.root();if(l.rawCache||(l.rawCache={}),typeof l.rawCache[o]!="undefined")return l.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(s,o);{let a="raw"+t(o);this[a]?u=this[a](l,s):l.walk(h=>{if(u=h.raws[n],typeof u!="undefined")return!1})}return typeof u=="undefined"&&(u=e[o]),l.rawCache[o]=u,u}rawBeforeClose(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return n=o.raws.after,n.includes(`
30
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(s,n){let o;return s.walkComments(u=>{if(typeof u.raws.before!="undefined")return o=u.raws.before,o.includes(`
31
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(n,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(s,n){let o;return s.walkDecls(u=>{if(typeof u.raws.before!="undefined")return o=u.raws.before,o.includes(`
32
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(n,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(s){let n;return s.walk(o=>{if(o.type!=="decl"&&(n=o.raws.between,typeof n!="undefined"))return!1}),n}rawBeforeRule(s){let n;return s.walk(o=>{if(o.nodes&&(o.parent!==s||s.first!==o)&&typeof o.raws.before!="undefined")return n=o.raws.before,n.includes(`
33
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(s){let n;return s.walkDecls(o=>{if(typeof o.raws.between!="undefined")return n=o.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length===0&&(n=o.raws.after,typeof n!="undefined"))return!1}),n}rawIndent(s){if(s.raws.indent)return s.raws.indent;let n;return s.walk(o=>{let u=o.parent;if(u&&u!==s&&u.parent&&u.parent===s&&typeof o.raws.before!="undefined"){let d=o.raws.before.split(`
34
+ `);return n=d[d.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(n=o.raws.semicolon,typeof n!="undefined"))return!1}),n}rawValue(s,n){let o=s[n],u=s.raws[n];return u&&u.value===o?u.raw:o}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,n){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,n)}}return Ms=r,r.default=r,Ms}var As,Oa;function as(){if(Oa)return As;Oa=1;let e=oc();function t(r,i){new e(i).stringify(r)}return As=t,t.default=t,As}var Ci={},Da;function To(){return Da||(Da=1,Ci.isClean=Symbol("isClean"),Ci.my=Symbol("my")),Ci}var Os,Ta;function ls(){if(Ta)return Os;Ta=1;let e=Do(),t=oc(),r=as(),{isClean:i,my:s}=To();function n(d,l){let a=new d.constructor;for(let h in d){if(!Object.prototype.hasOwnProperty.call(d,h)||h==="proxyCache")continue;let c=d[h],f=typeof c;h==="parent"&&f==="object"?l&&(a[h]=l):h==="source"?a[h]=c:Array.isArray(c)?a[h]=c.map(p=>n(p,a)):(f==="object"&&c!==null&&(c=n(c)),a[h]=c)}return a}function o(d,l){if(l&&typeof l.offset!="undefined")return l.offset;let a=1,h=1,c=0;for(let f=0;f<d.length;f++){if(h===l.line&&a===l.column){c=f;break}d[f]===`
35
+ `?(a=1,h+=1):a+=1}return c}class u{get proxyOf(){return this}constructor(l={}){this.raws={},this[i]=!1,this[s]=!0;for(let a in l)if(a==="nodes"){this.nodes=[];for(let h of l[a])typeof h.clone=="function"?this.append(h.clone()):this.append(h)}else this[a]=l[a]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let a=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${a.input.from}:${a.start.line}:${a.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let a in l)this[a]=l[a];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 a=n(this);for(let h in l)a[h]=l[h];return a}cloneAfter(l={}){let a=this.clone(l);return this.parent.insertAfter(this,a),a}cloneBefore(l={}){let a=this.clone(l);return this.parent.insertBefore(this,a),a}error(l,a={}){if(this.source){let{end:h,start:c}=this.rangeBy(a);return this.source.input.error(l,{column:c.column,line:c.line},{column:h.column,line:h.line},a)}return new e(l)}getProxyProcessor(){return{get(l,a){return a==="proxyOf"?l:a==="root"?()=>l.root().toProxy():l[a]},set(l,a,h){return l[a]===h||(l[a]=h,(a==="prop"||a==="value"||a==="name"||a==="params"||a==="important"||a==="text")&&l.markDirty()),!0}}}markClean(){this[i]=!0}markDirty(){if(this[i]){this[i]=!1;let l=this;for(;l=l.parent;)l[i]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l={}){let a=this.source.start;if(l.index)a=this.positionInside(l.index);else if(l.word){let h="document"in this.source.input?this.source.input.document:this.source.input.css,f=h.slice(o(h,this.source.start),o(h,this.source.end)).indexOf(l.word);f!==-1&&(a=this.positionInside(f))}return a}positionInside(l){let a=this.source.start.column,h=this.source.start.line,c="document"in this.source.input?this.source.input.document:this.source.input.css,f=o(c,this.source.start),p=f+l;for(let m=f;m<p;m++)c[m]===`
36
+ `?(a=1,h+=1):a+=1;return{column:a,line:h,offset:p}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l={}){let a="document"in this.source.input?this.source.input.document:this.source.input.css,h={column:this.source.start.column,line:this.source.start.line,offset:o(a,this.source.start)},c=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(a,this.source.end)+1}:{column:h.column+1,line:h.line,offset:h.offset+1};if(l.word){let p=a.slice(o(a,this.source.start),o(a,this.source.end)).indexOf(l.word);p!==-1&&(h=this.positionInside(p),c=this.positionInside(p+l.word.length))}else l.start?h={column:l.start.column,line:l.start.line,offset:o(a,l.start)}:l.index&&(h=this.positionInside(l.index)),l.end?c={column:l.end.column,line:l.end.line,offset:o(a,l.end)}:typeof l.endIndex=="number"?c=this.positionInside(l.endIndex):l.index&&(c=this.positionInside(l.index+1));return(c.line<h.line||c.line===h.line&&c.column<=h.column)&&(c={column:h.column+1,line:h.line,offset:h.offset+1}),{end:c,start:h}}raw(l,a){return new t().raw(this,l,a)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let a=this,h=!1;for(let c of l)c===this?h=!0:h?(this.parent.insertAfter(a,c),a=c):this.parent.insertBefore(a,c);h||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,a){let h={},c=a==null;a=a||new Map;let f=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))h[p]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,a):g);else if(typeof m=="object"&&m.toJSON)h[p]=m.toJSON(null,a);else if(p==="source"){if(m==null)continue;let g=a.get(m.input);g==null&&(g=f,a.set(m.input,f),f++),h[p]={end:m.end,inputId:g,start:m.start}}else h[p]=m}return c&&(h.inputs=[...a.keys()].map(p=>p.toJSON())),h}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=r){l.stringify&&(l=l.stringify);let a="";return l(this,h=>{a+=h}),a}warn(l,a,h={}){let c={node:this};for(let f in h)c[f]=h[f];return l.warn(a,c)}}return Os=u,u.default=u,Os}var Ds,ka;function us(){if(ka)return Ds;ka=1;let e=ls();class t extends e{constructor(i){super(i),this.type="comment"}}return Ds=t,t.default=t,Ds}var Ts,Ia;function cs(){if(Ia)return Ts;Ia=1;let e=ls();class t extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(i){i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=be(G({},i),{value:String(i.value)})),super(i),this.type="decl"}}return Ts=t,t.default=t,Ts}var ks,Pa;function mr(){if(Pa)return ks;Pa=1;let e=us(),t=cs(),r=ls(),{isClean:i,my:s}=To(),n,o,u,d;function l(c){return c.map(f=>(f.nodes&&(f.nodes=l(f.nodes)),delete f.source,f))}function a(c){if(c[i]=!1,c.proxyOf.nodes)for(let f of c.proxyOf.nodes)a(f)}class h 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(...f){for(let p of f){let m=this.normalize(p,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(f){if(super.cleanRaws(f),this.nodes)for(let p of this.nodes)p.cleanRaws(f)}each(f){if(!this.proxyOf.nodes)return;let p=this.getIterator(),m,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(m=this.indexes[p],g=f(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(f){return this.nodes.every(f)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let f=this.lastEach;return this.indexes[f]=0,f}getProxyProcessor(){return{get(f,p){return p==="proxyOf"?f:f[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...m)=>f[p](...m.map(g=>typeof g=="function"?(w,v)=>g(w.toProxy(),v):g)):p==="every"||p==="some"?m=>f[p]((g,...w)=>m(g.toProxy(),...w)):p==="root"?()=>f.root().toProxy():p==="nodes"?f.nodes.map(m=>m.toProxy()):p==="first"||p==="last"?f[p].toProxy():f[p]:f[p]},set(f,p,m){return f[p]===m||(f[p]=m,(p==="name"||p==="params"||p==="selector")&&f.markDirty()),!0}}}index(f){return typeof f=="number"?f:(f.proxyOf&&(f=f.proxyOf),this.proxyOf.nodes.indexOf(f))}insertAfter(f,p){let m=this.index(f),g=this.normalize(p,this.proxyOf.nodes[m]).reverse();m=this.index(f);for(let v of g)this.proxyOf.nodes.splice(m+1,0,v);let w;for(let v in this.indexes)w=this.indexes[v],m<w&&(this.indexes[v]=w+g.length);return this.markDirty(),this}insertBefore(f,p){let m=this.index(f),g=m===0?"prepend":!1,w=this.normalize(p,this.proxyOf.nodes[m],g).reverse();m=this.index(f);for(let S of w)this.proxyOf.nodes.splice(m,0,S);let v;for(let S in this.indexes)v=this.indexes[S],m<=v&&(this.indexes[S]=v+w.length);return this.markDirty(),this}normalize(f,p){if(typeof f=="string")f=l(o(f).nodes);else if(typeof f=="undefined")f=[];else if(Array.isArray(f)){f=f.slice(0);for(let g of f)g.parent&&g.parent.removeChild(g,"ignore")}else if(f.type==="root"&&this.type!=="document"){f=f.nodes.slice(0);for(let g of f)g.parent&&g.parent.removeChild(g,"ignore")}else if(f.type)f=[f];else if(f.prop){if(typeof f.value=="undefined")throw new Error("Value field is missed in node creation");typeof f.value!="string"&&(f.value=String(f.value)),f=[new t(f)]}else if(f.selector||f.selectors)f=[new d(f)];else if(f.name)f=[new n(f)];else if(f.text)f=[new e(f)];else throw new Error("Unknown node type in node creation");return f.map(g=>(g[s]||h.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[i]&&a(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(...f){f=f.reverse();for(let p of f){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(f){return f.parent=this,this.proxyOf.nodes.push(f),this}removeAll(){for(let f of this.proxyOf.nodes)f.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(f){f=this.index(f),this.proxyOf.nodes[f].parent=void 0,this.proxyOf.nodes.splice(f,1);let p;for(let m in this.indexes)p=this.indexes[m],p>=f&&(this.indexes[m]=p-1);return this.markDirty(),this}replaceValues(f,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(f,m))}),this.markDirty(),this}some(f){return this.nodes.some(f)}walk(f){return this.each((p,m)=>{let g;try{g=f(p,m)}catch(w){throw p.addToError(w)}return g!==!1&&p.walk&&(g=p.walk(f)),g})}walkAtRules(f,p){return p?f instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&f.test(m.name))return p(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===f)return p(m,g)}):(p=f,this.walk((m,g)=>{if(m.type==="atrule")return p(m,g)}))}walkComments(f){return this.walk((p,m)=>{if(p.type==="comment")return f(p,m)})}walkDecls(f,p){return p?f instanceof RegExp?this.walk((m,g)=>{if(m.type==="decl"&&f.test(m.prop))return p(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===f)return p(m,g)}):(p=f,this.walk((m,g)=>{if(m.type==="decl")return p(m,g)}))}walkRules(f,p){return p?f instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&f.test(m.selector))return p(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===f)return p(m,g)}):(p=f,this.walk((m,g)=>{if(m.type==="rule")return p(m,g)}))}}return h.registerParse=c=>{o=c},h.registerRule=c=>{d=c},h.registerAtRule=c=>{n=c},h.registerRoot=c=>{u=c},ks=h,h.default=h,h.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,n.prototype):c.type==="rule"?Object.setPrototypeOf(c,d.prototype):c.type==="decl"?Object.setPrototypeOf(c,t.prototype):c.type==="comment"?Object.setPrototypeOf(c,e.prototype):c.type==="root"&&Object.setPrototypeOf(c,u.prototype),c[s]=!0,c.nodes&&c.nodes.forEach(f=>{h.rebuild(f)})},ks}var Is,La;function ko(){if(La)return Is;La=1;let e=mr();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return Is=t,t.default=t,e.registerAtRule(t),Is}var Ps,Fa;function Io(){if(Fa)return Ps;Fa=1;let e=mr(),t,r;class i extends e{constructor(n){super(G({type:"document"},n)),this.nodes||(this.nodes=[])}toResult(n={}){return new t(new r,this,n).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},Ps=i,i.default=i,Ps}var Ls,Ba;function Gd(){if(Ba)return Ls;Ba=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Ls={nanoid:(i=21)=>{let s="",n=i|0;for(;n--;)s+=e[Math.random()*64|0];return s},customAlphabet:(i,s=21)=>(n=s)=>{let o="",u=n|0;for(;u--;)o+=i[Math.random()*i.length|0];return o}},Ls}var Fs,Ua;function ac(){if(Ua)return Fs;Ua=1;let{existsSync:e,readFileSync:t}=ut,{dirname:r,join:i}=ut,{SourceMapConsumer:s,SourceMapGenerator:n}=ut;function o(d){return Buffer?Buffer.from(d,"base64").toString():window.atob(d)}class u{constructor(l,a){if(a.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let h=a.map?a.map.prev:void 0,c=this.loadMap(a.from,h);!this.mapFile&&a.from&&(this.mapFile=a.from),this.mapFile&&(this.root=r(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(l){let a=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,f=/^data:application\/json,/,p=l.match(c)||l.match(f);if(p)return decodeURIComponent(l.substr(p[0].length));let m=l.match(a)||l.match(h);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 a=l.match(/\/\*\s*# sourceMappingURL=/g);if(!a)return;let h=l.lastIndexOf(a.pop()),c=l.indexOf("*/",h);h>-1&&c>-1&&(this.annotation=this.getAnnotationURL(l.substring(h,c)))}loadFile(l){if(this.root=r(l),e(l))return this.mapFile=l,t(l,"utf-8").toString().trim()}loadMap(l,a){if(a===!1)return!1;if(a){if(typeof a=="string")return a;if(typeof a=="function"){let h=a(l);if(h){let c=this.loadFile(h);if(!c)throw new Error("Unable to load previous source map: "+h.toString());return c}}else{if(a instanceof s)return n.fromSourceMap(a).toString();if(a instanceof n)return a.toString();if(this.isMap(a))return JSON.stringify(a);throw new Error("Unsupported previous source map format: "+a.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return l&&(h=i(r(l),h)),this.loadFile(h)}}}startWith(l,a){return l?l.substr(0,a.length)===a:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Fs=u,u.default=u,Fs}var Bs,$a;function fs(){if($a)return Bs;$a=1;let{nanoid:e}=Gd(),{isAbsolute:t,resolve:r}=ut,{SourceMapConsumer:i,SourceMapGenerator:s}=ut,{fileURLToPath:n,pathToFileURL:o}=ut,u=Do(),d=ac(),l=ut,a=Symbol("lineToIndexCache"),h=!!(i&&s),c=!!(r&&t);function f(m){if(m[a])return m[a];let g=m.css.split(`
37
+ `),w=new Array(g.length),v=0;for(let S=0,E=g.length;S<E;S++)w[S]=v,v+=g[S].length+1;return m[a]=w,w}class p{get from(){return this.file||this.id}constructor(g,w={}){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,w.document&&(this.document=w.document.toString()),w.from&&(!c||/^\w+:\/\//.test(w.from)||t(w.from)?this.file=w.from:this.file=r(w.from)),c&&h){let v=new d(this.css,w);if(v.text){this.map=v;let S=v.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,w,v,S={}){let E,y,b,_,C;if(w&&typeof w=="object"){let x=w,I=v;if(typeof x.offset=="number"){_=x.offset;let D=this.fromOffset(_);w=D.line,v=D.col}else w=x.line,v=x.column,_=this.fromLineAndColumn(w,v);if(typeof I.offset=="number"){b=I.offset;let D=this.fromOffset(b);y=D.line,E=D.col}else y=I.line,E=I.column,b=this.fromLineAndColumn(I.line,I.column)}else if(v)_=this.fromLineAndColumn(w,v);else{_=w;let x=this.fromOffset(_);w=x.line,v=x.col}let M=this.origin(w,v,y,E);return M?C=new u(g,M.endLine===void 0?M.line:{column:M.column,line:M.line},M.endLine===void 0?M.column:{column:M.endColumn,line:M.endLine},M.source,M.file,S.plugin):C=new u(g,y===void 0?w:{column:v,line:w},y===void 0?v:{column:E,line:y},this.css,this.file,S.plugin),C.input={column:v,endColumn:E,endLine:y,endOffset:b,line:w,offset:_,source:this.css},this.file&&(o&&(C.input.url=o(this.file).toString()),C.input.file=this.file),C}fromLineAndColumn(g,w){return f(this)[g-1]+w-1}fromOffset(g){let w=f(this),v=w[w.length-1],S=0;if(g>=v)S=w.length-1;else{let E=w.length-2,y;for(;S<E;)if(y=S+(E-S>>1),g<w[y])E=y-1;else if(g>=w[y+1])S=y+1;else{S=y;break}}return{col:g-w[S]+1,line:S+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:r(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,w,v,S){if(!this.map)return!1;let E=this.map.consumer(),y=E.originalPositionFor({column:w,line:g});if(!y.source)return!1;let b;typeof v=="number"&&(b=E.originalPositionFor({column:S,line:v}));let _;t(y.source)?_=o(y.source):_=new URL(y.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let C={column:y.column,endColumn:b&&b.column,endLine:b&&b.line,line:y.line,url:_.toString()};if(_.protocol==="file:")if(n)C.file=n(_);else throw new Error("file: protocol is not available in this PostCSS build");let M=E.sourceContentFor(y.source);return M&&(C.source=M),C}toJSON(){let g={};for(let w of["hasBOM","css","file","id"])this[w]!=null&&(g[w]=this[w]);return this.map&&(g.map=G({},this.map),g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return Bs=p,p.default=p,l&&l.registerInput&&l.registerInput(p),Bs}var Us,Wa;function pi(){if(Wa)return Us;Wa=1;let e=mr(),t,r;class i extends e{constructor(n){super(n),this.type="root",this.nodes||(this.nodes=[])}normalize(n,o,u){let d=super.normalize(n);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(n,o){let u=this.index(n);return!o&&u===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[u].raws.before),super.removeChild(n)}toResult(n={}){return new t(new r,this,n).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},Us=i,i.default=i,e.registerRoot(i),Us}var $s,za;function lc(){if(za)return $s;za=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
38
+ `," "];return e.split(t,r)},split(t,r,i){let s=[],n="",o=!1,u=0,d=!1,l="",a=!1;for(let h of t)a?a=!1:h==="\\"?a=!0:d?h===l&&(d=!1):h==='"'||h==="'"?(d=!0,l=h):h==="("?u+=1:h===")"?u>0&&(u-=1):u===0&&r.includes(h)&&(o=!0),o?(n!==""&&s.push(n.trim()),n="",o=!1):n+=h;return(i||n!=="")&&s.push(n.trim()),s}};return $s=e,e.default=e,$s}var Ws,qa;function Po(){if(qa)return Ws;qa=1;let e=mr(),t=lc();class r extends e{get selectors(){return t.comma(this.selector)}set selectors(s){let n=this.selector?this.selector.match(/,\s*/):null,o=n?n[0]:","+this.raw("between","beforeOpen");this.selector=s.join(o)}constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}}return Ws=r,r.default=r,e.registerRule(r),Ws}var zs,ja;function Hd(){if(ja)return zs;ja=1;let e=ko(),t=us(),r=cs(),i=fs(),s=ac(),n=pi(),o=Po();function u(d,l){if(Array.isArray(d))return d.map(p=>u(p));let c=d,{inputs:a}=c,h=Vr(c,["inputs"]);if(a){l=[];for(let p of a){let m=be(G({},p),{__proto__:i.prototype});m.map&&(m.map=be(G({},m.map),{__proto__:s.prototype})),l.push(m)}}if(h.nodes&&(h.nodes=d.nodes.map(p=>u(p,l))),h.source){let f=h.source,{inputId:p}=f,m=Vr(f,["inputId"]);h.source=m,p!=null&&(h.source.input=l[p])}if(h.type==="root")return new n(h);if(h.type==="decl")return new r(h);if(h.type==="rule")return new o(h);if(h.type==="comment")return new t(h);if(h.type==="atrule")return new e(h);throw new Error("Unknown node type: "+d.type)}return zs=u,u.default=u,zs}var qs,Va;function uc(){if(Va)return qs;Va=1;let{dirname:e,relative:t,resolve:r,sep:i}=ut,{SourceMapConsumer:s,SourceMapGenerator:n}=ut,{pathToFileURL:o}=ut,u=fs(),d=!!(s&&n),l=!!(e&&r&&t&&i);class a{constructor(c,f,p,m){this.stringify=c,this.mapOpts=p.map||{},this.root=f,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 c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let f=`
39
39
  `;this.css.includes(`\r
40
- `)&&(h=`\r
41
- `),this.css+=h+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let h=this.toUrl(this.path(c.file)),p=c.root||e(c.file),m;this.mapOpts.sourcesContent===!1?(m=new s(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,h,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let h=this.root.nodes.length-1;h>=0;h--)c=this.root.nodes[h],c.type==="comment"&&c.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 c="";return this.stringify(this.root,h=>{c+=h}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=o.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new o({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 o({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,h=1,p="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,w;this.stringify(this.root,(v,S,E)=>{if(this.css+=v,S&&E!=="end"&&(m.generated.line=c,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))),w=v.match(/\n/g),w?(c+=w.length,g=v.lastIndexOf(`
42
- `),h=v.length-g):h+=v.length,S&&E!=="start"){let y=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==y.last||y.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=c,m.generated.column=h-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=c,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(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c!="undefined"&&c!==!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(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let h=this.memoizedPaths.get(c);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,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let h=c.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let c=new u(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(h=>{if(h.source){let p=h.source.input.from;if(p&&!c[p]){c[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(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let h=this.memoizedFileURLs.get(c);if(h)return h;if(n){let p=n(c).toString();return this.memoizedFileURLs.set(c,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let h=this.memoizedURLs.get(c);if(h)return h;i==="\\"&&(c=c.replace(/\\/g,"/"));let p=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,p),p}}return qs=a,qs}var js,Va;function Gd(){if(Va)return js;Va=1;const e=39,t=34,r=92,i=47,s=10,o=32,n=12,u=9,d=13,l=91,a=93,f=40,c=41,h=123,p=125,m=59,g=42,w=58,v=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return js=function(C,N={}){let x=C.css.valueOf(),I=N.ignoreErrors,D,ae,ee,R,ie,L,q,P,z,Ce,we=x.length,O=0,ue=[],k=[];function $(){return O}function Z(se){throw C.error("Unclosed "+se,O)}function B(){return k.length===0&&O>=we}function he(se){if(k.length)return k.pop();if(O>=we)return;let ke=se?se.ignoreUnclosed:!1;switch(D=x.charCodeAt(O),D){case s:case o:case u:case d:case n:{R=O;do R+=1,D=x.charCodeAt(R);while(D===o||D===s||D===u||D===d||D===n);L=["space",x.slice(O,R)],O=R-1;break}case l:case a:case h:case p:case w:case m:case c:{let mt=String.fromCharCode(D);L=[mt,mt,O];break}case f:{if(Ce=ue.length?ue.pop()[1]:"",z=x.charCodeAt(O+1),Ce==="url"&&z!==e&&z!==t&&z!==o&&z!==s&&z!==u&&z!==n&&z!==d){R=O;do{if(q=!1,R=x.indexOf(")",R+1),R===-1)if(I||ke){R=O;break}else Z("bracket");for(P=R;x.charCodeAt(P-1)===r;)P-=1,q=!q}while(q);L=["brackets",x.slice(O,R+1),O,R],O=R}else R=x.indexOf(")",O+1),ae=x.slice(O,R+1),R===-1||y.test(ae)?L=["(","(",O]:(L=["brackets",ae,O,R],O=R);break}case e:case t:{ie=D===e?"'":'"',R=O;do{if(q=!1,R=x.indexOf(ie,R+1),R===-1)if(I||ke){R=O+1;break}else Z("string");for(P=R;x.charCodeAt(P-1)===r;)P-=1,q=!q}while(q);L=["string",x.slice(O,R+1),O,R],O=R;break}case v:{S.lastIndex=O+1,S.test(x),S.lastIndex===0?R=x.length-1:R=S.lastIndex-2,L=["at-word",x.slice(O,R+1),O,R],O=R;break}case r:{for(R=O,ee=!0;x.charCodeAt(R+1)===r;)R+=1,ee=!ee;if(D=x.charCodeAt(R+1),ee&&D!==i&&D!==o&&D!==s&&D!==u&&D!==d&&D!==n&&(R+=1,b.test(x.charAt(R)))){for(;b.test(x.charAt(R+1));)R+=1;x.charCodeAt(R+1)===o&&(R+=1)}L=["word",x.slice(O,R+1),O,R],O=R;break}default:{D===i&&x.charCodeAt(O+1)===g?(R=x.indexOf("*/",O+2)+1,R===0&&(I||ke?R=x.length:Z("comment")),L=["comment",x.slice(O,R+1),O,R],O=R):(E.lastIndex=O+1,E.test(x),E.lastIndex===0?R=x.length-1:R=E.lastIndex-2,L=["word",x.slice(O,R+1),O,R],ue.push(L),O=R);break}}return O++,L}function ce(se){k.push(se)}return{back:ce,endOfFile:B,nextToken:he,position:$}},js}var Vs,Ga;function Hd(){if(Ga)return Vs;Ga=1;let e=To(),t=us(),r=cs(),i=pi(),s=Io(),o=Gd();const n={empty:!0,space:!0};function u(l){for(let a=l.length-1;a>=0;a--){let f=l[a],c=f[3]||f[2];if(c)return c}}class d{constructor(a){this.input=a,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:a,start:{column:1,line:1,offset:0}}}atrule(a){let f=new e;f.name=a[1].slice(1),f.name===""&&this.unnamedAtrule(f,a),this.init(f,a[2]);let c,h,p,m=!1,g=!1,w=[],v=[];for(;!this.tokenizer.endOfFile();){if(a=this.tokenizer.nextToken(),c=a[0],c==="("||c==="["?v.push(c==="("?")":"]"):c==="{"&&v.length>0?v.push("}"):c===v[v.length-1]&&v.pop(),v.length===0)if(c===";"){f.source.end=this.getPosition(a[2]),f.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(w.length>0){for(p=w.length-1,h=w[p];h&&h[0]==="space";)h=w[--p];h&&(f.source.end=this.getPosition(h[3]||h[2]),f.source.end.offset++)}this.end(a);break}else w.push(a);else w.push(a);if(this.tokenizer.endOfFile()){m=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(w),w.length?(f.raws.afterName=this.spacesAndCommentsFromStart(w),this.raw(f,"params",w),m&&(a=w[w.length-1],f.source.end=this.getPosition(a[3]||a[2]),f.source.end.offset++,this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),g&&(f.nodes=[],this.current=f)}checkMissedSemicolon(a){let f=this.colon(a);if(f===!1)return;let c=0,h;for(let p=f-1;p>=0&&(h=a[p],!(h[0]!=="space"&&(c+=1,c===2)));p--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(a){let f=0,c,h,p;for(let[m,g]of a.entries()){if(h=g,p=h[0],p==="("&&(f+=1),p===")"&&(f-=1),f===0&&p===":")if(!c)this.doubleColon(h);else{if(c[0]==="word"&&c[1]==="progid")continue;return m}c=h}return!1}comment(a){let f=new t;this.init(f,a[2]),f.source.end=this.getPosition(a[3]||a[2]),f.source.end.offset++;let c=a[1].slice(2,-2);if(/^\s*$/.test(c))f.text="",f.raws.left=c,f.raws.right="";else{let h=c.match(/^(\s*)([^]*\S)(\s*)$/);f.text=h[2],f.raws.left=h[1],f.raws.right=h[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(a,f){let c=new r;this.init(c,a[0][2]);let h=a[a.length-1];for(h[0]===";"&&(this.semicolon=!0,a.pop()),c.source.end=this.getPosition(h[3]||h[2]||u(a)),c.source.end.offset++;a[0][0]!=="word";)a.length===1&&this.unknownWord(a),c.raws.before+=a.shift()[1];for(c.source.start=this.getPosition(a[0][2]),c.prop="";a.length;){let v=a[0][0];if(v===":"||v==="space"||v==="comment")break;c.prop+=a.shift()[1]}c.raws.between="";let p;for(;a.length;)if(p=a.shift(),p[0]===":"){c.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),c.raws.between+=p[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],g;for(;a.length&&(g=a[0][0],!(g!=="space"&&g!=="comment"));)m.push(a.shift());this.precheckMissedSemicolon(a);for(let v=a.length-1;v>=0;v--){if(p=a[v],p[1].toLowerCase()==="!important"){c.important=!0;let S=this.stringFrom(a,v);S=this.spacesFromEnd(a)+S,S!==" !important"&&(c.raws.important=S);break}else if(p[1].toLowerCase()==="important"){let S=a.slice(0),E="";for(let y=v;y>0;y--){let b=S[y][0];if(E.trim().startsWith("!")&&b!=="space")break;E=S.pop()[1]+E}E.trim().startsWith("!")&&(c.important=!0,c.raws.important=E,a=S)}if(p[0]!=="space"&&p[0]!=="comment")break}a.some(v=>v[0]!=="space"&&v[0]!=="comment")&&(c.raws.between+=m.map(v=>v[1]).join(""),m=[]),this.raw(c,"value",m.concat(a),f),c.value.includes(":")&&!f&&this.checkMissedSemicolon(a)}doubleColon(a){throw this.input.error("Double colon",{offset:a[2]},{offset:a[2]+a[1].length})}emptyRule(a){let f=new s;this.init(f,a[2]),f.selector="",f.raws.between="",this.current=f}end(a){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(a[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(a)}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(a){if(this.spaces+=a[1],this.current.nodes){let f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="",f.source.end=this.getPosition(a[2]),f.source.end.offset+=f.raws.ownSemicolon.length)}}getPosition(a){let f=this.input.fromOffset(a);return{column:f.col,line:f.line,offset:a}}init(a,f){this.current.push(a),a.source={input:this.input,start:this.getPosition(f)},a.raws.before=this.spaces,this.spaces="",a.type!=="comment"&&(this.semicolon=!1)}other(a){let f=!1,c=null,h=!1,p=null,m=[],g=a[1].startsWith("--"),w=[],v=a;for(;v;){if(c=v[0],w.push(v),c==="("||c==="[")p||(p=v),m.push(c==="("?")":"]");else if(g&&h&&c==="{")p||(p=v),m.push("}");else if(m.length===0)if(c===";")if(h){this.decl(w,g);return}else break;else if(c==="{"){this.rule(w);return}else if(c==="}"){this.tokenizer.back(w.pop()),f=!0;break}else c===":"&&(h=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));v=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(f=!0),m.length>0&&this.unclosedBracket(p),f&&h){if(!g)for(;w.length&&(v=w[w.length-1][0],!(v!=="space"&&v!=="comment"));)this.tokenizer.back(w.pop());this.decl(w,g)}else this.unknownWord(w)}parse(){let a;for(;!this.tokenizer.endOfFile();)switch(a=this.tokenizer.nextToken(),a[0]){case"space":this.spaces+=a[1];break;case";":this.freeSemicolon(a);break;case"}":this.end(a);break;case"comment":this.comment(a);break;case"at-word":this.atrule(a);break;case"{":this.emptyRule(a);break;default:this.other(a);break}this.endFile()}precheckMissedSemicolon(){}raw(a,f,c,h){let p,m,g=c.length,w="",v=!0,S,E;for(let y=0;y<g;y+=1)p=c[y],m=p[0],m==="space"&&y===g-1&&!h?v=!1:m==="comment"?(E=c[y-1]?c[y-1][0]:"empty",S=c[y+1]?c[y+1][0]:"empty",!n[E]&&!n[S]?w.slice(-1)===","?v=!1:w+=p[1]:v=!1):w+=p[1];if(!v){let y=c.reduce((b,_)=>b+_[1],"");a.raws[f]={raw:y,value:w}}a[f]=w}rule(a){a.pop();let f=new s;this.init(f,a[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(a),this.raw(f,"selector",a),this.current=f}spacesAndCommentsFromEnd(a){let f,c="";for(;a.length&&(f=a[a.length-1][0],!(f!=="space"&&f!=="comment"));)c=a.pop()[1]+c;return c}spacesAndCommentsFromStart(a){let f,c="";for(;a.length&&(f=a[0][0],!(f!=="space"&&f!=="comment"));)c+=a.shift()[1];return c}spacesFromEnd(a){let f,c="";for(;a.length&&(f=a[a.length-1][0],f==="space");)c=a.pop()[1]+c;return c}stringFrom(a,f){let c="";for(let h=f;h<a.length;h++)c+=a[h][1];return a.splice(f,a.length-f),c}unclosedBlock(){let a=this.current.source.start;throw this.input.error("Unclosed block",a.line,a.column)}unclosedBracket(a){throw this.input.error("Unclosed bracket",{offset:a[2]},{offset:a[2]+1})}unexpectedClose(a){throw this.input.error("Unexpected }",{offset:a[2]},{offset:a[2]+1})}unknownWord(a){throw this.input.error("Unknown word "+a[0][1],{offset:a[0][2]},{offset:a[0][2]+a[0][1].length})}unnamedAtrule(a,f){throw this.input.error("At-rule without name",{offset:f[2]},{offset:f[2]+f[1].length})}}return Vs=d,Vs}var Gs,Ha;function Po(){if(Ha)return Gs;Ha=1;let e=mr(),t=fs(),r=Hd();function i(s,o){let n=new t(s,o),u=new r(n);try{u.parse()}catch(d){throw d}return u.root}return Gs=i,i.default=i,e.registerParse(i),Gs}var Hs,Ya;function uc(){if(Ya)return Hs;Ya=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let s=i.node.rangeBy(i);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in i)this[s]=i[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Hs=e,e.default=e,Hs}var Ys,Ja;function Lo(){if(Ja)return Ys;Ja=1;let e=uc();class t{get content(){return this.css}constructor(i,s,o){this.processor=i,this.messages=[],this.root=s,this.opts=o,this.css="",this.map=void 0}toString(){return this.css}warn(i,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let o=new e(i,s);return this.messages.push(o),o}warnings(){return this.messages.filter(i=>i.type==="warning")}}return Ys=t,t.default=t,Ys}var Js,Xa;function cc(){if(Xa)return Js;Xa=1;let e={};return Js=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},Js}var Xs,Qa;function fc(){if(Qa)return Xs;Qa=1;let e=mr(),t=ko(),r=lc(),i=Po(),s=Lo(),o=pi(),n=as(),{isClean:u,my:d}=Do(),l=cc();const a={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={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},c={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function p(E){return typeof E=="object"&&typeof E.then=="function"}function m(E){let y=!1,b=a[E.type];return E.type==="decl"?y=E.prop.toLowerCase():E.type==="atrule"&&(y=E.name.toLowerCase()),y&&E.append?[b,b+"-"+y,h,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:E.append?[b,h,b+"Exit"]:[b,b+"Exit"]}function g(E){let y;return E.type==="document"?y=["Document",h,"DocumentExit"]:E.type==="root"?y=["Root",h,"RootExit"]:y=m(E),{eventIndex:0,events:y,iterator:0,node:E,visitorIndex:0,visitors:[]}}function w(E){return E[u]=!1,E.nodes&&E.nodes.forEach(y=>w(y)),E}let v={};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(y,b,_){this.stringified=!1,this.processed=!1;let C;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))C=w(b);else if(b instanceof S||b instanceof s)C=w(b.root),b.map&&(typeof _.map=="undefined"&&(_.map={}),_.map.inline||(_.map.inline=!1),_.map.prev=b.map);else{let N=i;_.syntax&&(N=_.syntax.parse),_.parser&&(N=_.parser),N.parse&&(N=N.parse);try{C=N(b,_)}catch(x){this.processed=!0,this.error=x}C&&!C[d]&&e.rebuild(C)}this.result=new s(y,C,_),this.helpers=be(G({},v),{postcss:v,result:this.result}),this.plugins=this.processor.plugins.map(N=>typeof N=="object"&&N.prepare?G(G({},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(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let _=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=_.postcssPlugin,y.setMessage()):_.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(b,_,C)=>{this.listeners[_]||(this.listeners[_]=[]),this.listeners[_].push([b,C])};for(let b of this.plugins)if(typeof b=="object")for(let _ in b){if(!f[_]&&/^[A-Z]/.test(_))throw new Error(`Unknown event ${_} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[_])if(typeof b[_]=="object")for(let C in b[_])C==="*"?y(b,_,b[_][C]):y(b,_+"-"+C.toLowerCase(),b[_][C]);else typeof b[_]=="function"&&y(b,_,b[_])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],_=this.runOnRoot(b);if(p(_))try{await _}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[u];){y[u]=!0;let b=[g(y)];for(;b.length>0;){let _=this.visitTick(b);if(p(_))try{await _}catch(C){let N=b[b.length-1].node;throw this.handleError(C,N)}}}if(this.listeners.OnceExit)for(let[b,_]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let C=y.nodes.map(N=>_(N,this.helpers));await Promise.all(C)}else await _(y,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(_=>y.Once(_,this.helpers));return p(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(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 y=this.result.opts,b=n;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let C=new r(b,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let b=this.runOnRoot(y);if(p(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[u];)y[u]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[_,C]of y){this.result.lastPlugin=_;let N;try{N=C(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(y){let b=y[y.length-1],{node:_,visitors:C}=b;if(_.type!=="root"&&_.type!=="document"&&!_.parent){y.pop();return}if(C.length>0&&b.visitorIndex<C.length){let[x,I]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=x;try{return I(_.toProxy(),this.helpers)}catch(D){throw this.handleError(D,_)}}if(b.iterator!==0){let x=b.iterator,I;for(;I=_.nodes[_.indexes[x]];)if(_.indexes[x]+=1,!I[u]){I[u]=!0,y.push(g(I));return}b.iterator=0,delete _.indexes[x]}let N=b.events;for(;b.eventIndex<N.length;){let x=N[b.eventIndex];if(b.eventIndex+=1,x===h){_.nodes&&_.nodes.length&&(_[u]=!0,b.iterator=_.getIterator());return}else if(this.listeners[x]){b.visitors=this.listeners[x];return}}y.pop()}walkSync(y){y[u]=!0;let b=m(y);for(let _ of b)if(_===h)y.nodes&&y.each(C=>{C[u]||this.walkSync(C)});else{let C=this.listeners[_];if(C&&this.visitSync(C,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return S.registerPostcss=E=>{v=E},Xs=S,S.default=S,o.registerLazyResult(S),t.registerLazyResult(S),Xs}var Qs,Ka;function Yd(){if(Ka)return Qs;Ka=1;let e=lc(),t=Po();const r=Lo();let i=as(),s=cc();class o{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 a,f=i;this.result=new r(this._processor,a,this._opts),this.result.css=d;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let h=new e(f,a,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 Qs=o,o.default=o,Qs}var Ks,Za;function Jd(){if(Za)return Ks;Za=1;let e=ko(),t=fc(),r=Yd(),i=pi();class s{constructor(n=[]){this.version="8.5.6",this.plugins=this.normalize(n)}normalize(n){let u=[];for(let d of n)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(n,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new r(this,n,u):new t(this,n,u)}use(n){return this.plugins=this.plugins.concat(this.normalize([n])),this}}return Ks=s,s.default=s,i.registerProcessor(s),e.registerProcessor(s),Ks}var Zs,el;function Xd(){if(el)return Zs;el=1;let e=To(),t=us(),r=mr(),i=Oo(),s=cs(),o=ko(),n=Vd(),u=fs(),d=fc(),l=ac(),a=ls(),f=Po(),c=Jd(),h=Lo(),p=pi(),m=Io(),g=as(),w=uc();function v(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new c(S)}return v.plugin=function(E,y){let b=!1;function _(...N){console&&console.warn&&!b&&(b=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
40
+ `)&&(f=`\r
41
+ `),this.css+=f+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let f=this.toUrl(this.path(c.file)),p=c.root||e(c.file),m;this.mapOpts.sourcesContent===!1?(m=new s(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,f,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let f=this.root.nodes.length-1;f>=0;f--)c=this.root.nodes[f],c.type==="comment"&&c.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(f)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),l&&d&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,f=>{c+=f}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=n.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new n({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 n({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,f=1,p="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,w;this.stringify(this.root,(v,S,E)=>{if(this.css+=v,S&&E!=="end"&&(m.generated.line=c,m.generated.column=f-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))),w=v.match(/\n/g),w?(c+=w.length,g=v.lastIndexOf(`
42
+ `),f=v.length-g):f+=v.length,S&&E!=="start"){let y=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==y.last||y.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=c,m.generated.column=f-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=c,m.generated.column=f-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c!="undefined"&&c!==!0?!1:this.previous().length?this.previous().some(f=>f.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(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let f=this.memoizedPaths.get(c);if(f)return f;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,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let f=c.source.input.map;this.previousMaps.includes(f)||this.previousMaps.push(f)}});else{let c=new u(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(f=>{if(f.source){let p=f.source.input.from;if(p&&!c[p]){c[p]=!0;let m=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(m,f.source.input.css)}}});else if(this.css){let f=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(f,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let f=this.memoizedFileURLs.get(c);if(f)return f;if(o){let p=o(c).toString();return this.memoizedFileURLs.set(c,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let f=this.memoizedURLs.get(c);if(f)return f;i==="\\"&&(c=c.replace(/\\/g,"/"));let p=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,p),p}}return qs=a,qs}var js,Ga;function Yd(){if(Ga)return js;Ga=1;const e=39,t=34,r=92,i=47,s=10,n=32,o=12,u=9,d=13,l=91,a=93,h=40,c=41,f=123,p=125,m=59,g=42,w=58,v=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return js=function(C,M={}){let x=C.css.valueOf(),I=M.ignoreErrors,D,le,te,R,se,L,V,P,j,Ce,we=x.length,O=0,z=[],k=[];function W(){return O}function q(ne){throw C.error("Unclosed "+ne,O)}function B(){return k.length===0&&O>=we}function he(ne){if(k.length)return k.pop();if(O>=we)return;let ke=ne?ne.ignoreUnclosed:!1;switch(D=x.charCodeAt(O),D){case s:case n:case u:case d:case o:{R=O;do R+=1,D=x.charCodeAt(R);while(D===n||D===s||D===u||D===d||D===o);L=["space",x.slice(O,R)],O=R-1;break}case l:case a:case f:case p:case w:case m:case c:{let mt=String.fromCharCode(D);L=[mt,mt,O];break}case h:{if(Ce=z.length?z.pop()[1]:"",j=x.charCodeAt(O+1),Ce==="url"&&j!==e&&j!==t&&j!==n&&j!==s&&j!==u&&j!==o&&j!==d){R=O;do{if(V=!1,R=x.indexOf(")",R+1),R===-1)if(I||ke){R=O;break}else q("bracket");for(P=R;x.charCodeAt(P-1)===r;)P-=1,V=!V}while(V);L=["brackets",x.slice(O,R+1),O,R],O=R}else R=x.indexOf(")",O+1),le=x.slice(O,R+1),R===-1||y.test(le)?L=["(","(",O]:(L=["brackets",le,O,R],O=R);break}case e:case t:{se=D===e?"'":'"',R=O;do{if(V=!1,R=x.indexOf(se,R+1),R===-1)if(I||ke){R=O+1;break}else q("string");for(P=R;x.charCodeAt(P-1)===r;)P-=1,V=!V}while(V);L=["string",x.slice(O,R+1),O,R],O=R;break}case v:{S.lastIndex=O+1,S.test(x),S.lastIndex===0?R=x.length-1:R=S.lastIndex-2,L=["at-word",x.slice(O,R+1),O,R],O=R;break}case r:{for(R=O,te=!0;x.charCodeAt(R+1)===r;)R+=1,te=!te;if(D=x.charCodeAt(R+1),te&&D!==i&&D!==n&&D!==s&&D!==u&&D!==d&&D!==o&&(R+=1,b.test(x.charAt(R)))){for(;b.test(x.charAt(R+1));)R+=1;x.charCodeAt(R+1)===n&&(R+=1)}L=["word",x.slice(O,R+1),O,R],O=R;break}default:{D===i&&x.charCodeAt(O+1)===g?(R=x.indexOf("*/",O+2)+1,R===0&&(I||ke?R=x.length:q("comment")),L=["comment",x.slice(O,R+1),O,R],O=R):(E.lastIndex=O+1,E.test(x),E.lastIndex===0?R=x.length-1:R=E.lastIndex-2,L=["word",x.slice(O,R+1),O,R],z.push(L),O=R);break}}return O++,L}function ce(ne){k.push(ne)}return{back:ce,endOfFile:B,nextToken:he,position:W}},js}var Vs,Ha;function Jd(){if(Ha)return Vs;Ha=1;let e=ko(),t=us(),r=cs(),i=pi(),s=Po(),n=Yd();const o={empty:!0,space:!0};function u(l){for(let a=l.length-1;a>=0;a--){let h=l[a],c=h[3]||h[2];if(c)return c}}class d{constructor(a){this.input=a,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:a,start:{column:1,line:1,offset:0}}}atrule(a){let h=new e;h.name=a[1].slice(1),h.name===""&&this.unnamedAtrule(h,a),this.init(h,a[2]);let c,f,p,m=!1,g=!1,w=[],v=[];for(;!this.tokenizer.endOfFile();){if(a=this.tokenizer.nextToken(),c=a[0],c==="("||c==="["?v.push(c==="("?")":"]"):c==="{"&&v.length>0?v.push("}"):c===v[v.length-1]&&v.pop(),v.length===0)if(c===";"){h.source.end=this.getPosition(a[2]),h.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(w.length>0){for(p=w.length-1,f=w[p];f&&f[0]==="space";)f=w[--p];f&&(h.source.end=this.getPosition(f[3]||f[2]),h.source.end.offset++)}this.end(a);break}else w.push(a);else w.push(a);if(this.tokenizer.endOfFile()){m=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(w),w.length?(h.raws.afterName=this.spacesAndCommentsFromStart(w),this.raw(h,"params",w),m&&(a=w[w.length-1],h.source.end=this.getPosition(a[3]||a[2]),h.source.end.offset++,this.spaces=h.raws.between,h.raws.between="")):(h.raws.afterName="",h.params=""),g&&(h.nodes=[],this.current=h)}checkMissedSemicolon(a){let h=this.colon(a);if(h===!1)return;let c=0,f;for(let p=h-1;p>=0&&(f=a[p],!(f[0]!=="space"&&(c+=1,c===2)));p--);throw this.input.error("Missed semicolon",f[0]==="word"?f[3]+1:f[2])}colon(a){let h=0,c,f,p;for(let[m,g]of a.entries()){if(f=g,p=f[0],p==="("&&(h+=1),p===")"&&(h-=1),h===0&&p===":")if(!c)this.doubleColon(f);else{if(c[0]==="word"&&c[1]==="progid")continue;return m}c=f}return!1}comment(a){let h=new t;this.init(h,a[2]),h.source.end=this.getPosition(a[3]||a[2]),h.source.end.offset++;let c=a[1].slice(2,-2);if(/^\s*$/.test(c))h.text="",h.raws.left=c,h.raws.right="";else{let f=c.match(/^(\s*)([^]*\S)(\s*)$/);h.text=f[2],h.raws.left=f[1],h.raws.right=f[3]}}createTokenizer(){this.tokenizer=n(this.input)}decl(a,h){let c=new r;this.init(c,a[0][2]);let f=a[a.length-1];for(f[0]===";"&&(this.semicolon=!0,a.pop()),c.source.end=this.getPosition(f[3]||f[2]||u(a)),c.source.end.offset++;a[0][0]!=="word";)a.length===1&&this.unknownWord(a),c.raws.before+=a.shift()[1];for(c.source.start=this.getPosition(a[0][2]),c.prop="";a.length;){let v=a[0][0];if(v===":"||v==="space"||v==="comment")break;c.prop+=a.shift()[1]}c.raws.between="";let p;for(;a.length;)if(p=a.shift(),p[0]===":"){c.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),c.raws.between+=p[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],g;for(;a.length&&(g=a[0][0],!(g!=="space"&&g!=="comment"));)m.push(a.shift());this.precheckMissedSemicolon(a);for(let v=a.length-1;v>=0;v--){if(p=a[v],p[1].toLowerCase()==="!important"){c.important=!0;let S=this.stringFrom(a,v);S=this.spacesFromEnd(a)+S,S!==" !important"&&(c.raws.important=S);break}else if(p[1].toLowerCase()==="important"){let S=a.slice(0),E="";for(let y=v;y>0;y--){let b=S[y][0];if(E.trim().startsWith("!")&&b!=="space")break;E=S.pop()[1]+E}E.trim().startsWith("!")&&(c.important=!0,c.raws.important=E,a=S)}if(p[0]!=="space"&&p[0]!=="comment")break}a.some(v=>v[0]!=="space"&&v[0]!=="comment")&&(c.raws.between+=m.map(v=>v[1]).join(""),m=[]),this.raw(c,"value",m.concat(a),h),c.value.includes(":")&&!h&&this.checkMissedSemicolon(a)}doubleColon(a){throw this.input.error("Double colon",{offset:a[2]},{offset:a[2]+a[1].length})}emptyRule(a){let h=new s;this.init(h,a[2]),h.selector="",h.raws.between="",this.current=h}end(a){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(a[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(a)}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(a){if(this.spaces+=a[1],this.current.nodes){let h=this.current.nodes[this.current.nodes.length-1];h&&h.type==="rule"&&!h.raws.ownSemicolon&&(h.raws.ownSemicolon=this.spaces,this.spaces="",h.source.end=this.getPosition(a[2]),h.source.end.offset+=h.raws.ownSemicolon.length)}}getPosition(a){let h=this.input.fromOffset(a);return{column:h.col,line:h.line,offset:a}}init(a,h){this.current.push(a),a.source={input:this.input,start:this.getPosition(h)},a.raws.before=this.spaces,this.spaces="",a.type!=="comment"&&(this.semicolon=!1)}other(a){let h=!1,c=null,f=!1,p=null,m=[],g=a[1].startsWith("--"),w=[],v=a;for(;v;){if(c=v[0],w.push(v),c==="("||c==="[")p||(p=v),m.push(c==="("?")":"]");else if(g&&f&&c==="{")p||(p=v),m.push("}");else if(m.length===0)if(c===";")if(f){this.decl(w,g);return}else break;else if(c==="{"){this.rule(w);return}else if(c==="}"){this.tokenizer.back(w.pop()),h=!0;break}else c===":"&&(f=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));v=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),m.length>0&&this.unclosedBracket(p),h&&f){if(!g)for(;w.length&&(v=w[w.length-1][0],!(v!=="space"&&v!=="comment"));)this.tokenizer.back(w.pop());this.decl(w,g)}else this.unknownWord(w)}parse(){let a;for(;!this.tokenizer.endOfFile();)switch(a=this.tokenizer.nextToken(),a[0]){case"space":this.spaces+=a[1];break;case";":this.freeSemicolon(a);break;case"}":this.end(a);break;case"comment":this.comment(a);break;case"at-word":this.atrule(a);break;case"{":this.emptyRule(a);break;default:this.other(a);break}this.endFile()}precheckMissedSemicolon(){}raw(a,h,c,f){let p,m,g=c.length,w="",v=!0,S,E;for(let y=0;y<g;y+=1)p=c[y],m=p[0],m==="space"&&y===g-1&&!f?v=!1:m==="comment"?(E=c[y-1]?c[y-1][0]:"empty",S=c[y+1]?c[y+1][0]:"empty",!o[E]&&!o[S]?w.slice(-1)===","?v=!1:w+=p[1]:v=!1):w+=p[1];if(!v){let y=c.reduce((b,_)=>b+_[1],"");a.raws[h]={raw:y,value:w}}a[h]=w}rule(a){a.pop();let h=new s;this.init(h,a[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(a),this.raw(h,"selector",a),this.current=h}spacesAndCommentsFromEnd(a){let h,c="";for(;a.length&&(h=a[a.length-1][0],!(h!=="space"&&h!=="comment"));)c=a.pop()[1]+c;return c}spacesAndCommentsFromStart(a){let h,c="";for(;a.length&&(h=a[0][0],!(h!=="space"&&h!=="comment"));)c+=a.shift()[1];return c}spacesFromEnd(a){let h,c="";for(;a.length&&(h=a[a.length-1][0],h==="space");)c=a.pop()[1]+c;return c}stringFrom(a,h){let c="";for(let f=h;f<a.length;f++)c+=a[f][1];return a.splice(h,a.length-h),c}unclosedBlock(){let a=this.current.source.start;throw this.input.error("Unclosed block",a.line,a.column)}unclosedBracket(a){throw this.input.error("Unclosed bracket",{offset:a[2]},{offset:a[2]+1})}unexpectedClose(a){throw this.input.error("Unexpected }",{offset:a[2]},{offset:a[2]+1})}unknownWord(a){throw this.input.error("Unknown word "+a[0][1],{offset:a[0][2]},{offset:a[0][2]+a[0][1].length})}unnamedAtrule(a,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return Vs=d,Vs}var Gs,Ya;function Lo(){if(Ya)return Gs;Ya=1;let e=mr(),t=fs(),r=Jd();function i(s,n){let o=new t(s,n),u=new r(o);try{u.parse()}catch(d){throw d}return u.root}return Gs=i,i.default=i,e.registerParse(i),Gs}var Hs,Ja;function cc(){if(Ja)return Hs;Ja=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let s=i.node.rangeBy(i);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in i)this[s]=i[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Hs=e,e.default=e,Hs}var Ys,Xa;function Fo(){if(Xa)return Ys;Xa=1;let e=cc();class t{get content(){return this.css}constructor(i,s,n){this.processor=i,this.messages=[],this.root=s,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(i,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let n=new e(i,s);return this.messages.push(n),n}warnings(){return this.messages.filter(i=>i.type==="warning")}}return Ys=t,t.default=t,Ys}var Js,Qa;function fc(){if(Qa)return Js;Qa=1;let e={};return Js=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},Js}var Xs,Ka;function hc(){if(Ka)return Xs;Ka=1;let e=mr(),t=Io(),r=uc(),i=Lo(),s=Fo(),n=pi(),o=as(),{isClean:u,my:d}=To(),l=fc();const a={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},f=0;function p(E){return typeof E=="object"&&typeof E.then=="function"}function m(E){let y=!1,b=a[E.type];return E.type==="decl"?y=E.prop.toLowerCase():E.type==="atrule"&&(y=E.name.toLowerCase()),y&&E.append?[b,b+"-"+y,f,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:E.append?[b,f,b+"Exit"]:[b,b+"Exit"]}function g(E){let y;return E.type==="document"?y=["Document",f,"DocumentExit"]:E.type==="root"?y=["Root",f,"RootExit"]:y=m(E),{eventIndex:0,events:y,iterator:0,node:E,visitorIndex:0,visitors:[]}}function w(E){return E[u]=!1,E.nodes&&E.nodes.forEach(y=>w(y)),E}let v={};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(y,b,_){this.stringified=!1,this.processed=!1;let C;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))C=w(b);else if(b instanceof S||b instanceof s)C=w(b.root),b.map&&(typeof _.map=="undefined"&&(_.map={}),_.map.inline||(_.map.inline=!1),_.map.prev=b.map);else{let M=i;_.syntax&&(M=_.syntax.parse),_.parser&&(M=_.parser),M.parse&&(M=M.parse);try{C=M(b,_)}catch(x){this.processed=!0,this.error=x}C&&!C[d]&&e.rebuild(C)}this.result=new s(y,C,_),this.helpers=be(G({},v),{postcss:v,result:this.result}),this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?G(G({},M),M.prepare(this.result)):M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let _=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=_.postcssPlugin,y.setMessage()):_.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(b,_,C)=>{this.listeners[_]||(this.listeners[_]=[]),this.listeners[_].push([b,C])};for(let b of this.plugins)if(typeof b=="object")for(let _ in b){if(!h[_]&&/^[A-Z]/.test(_))throw new Error(`Unknown event ${_} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[_])if(typeof b[_]=="object")for(let C in b[_])C==="*"?y(b,_,b[_][C]):y(b,_+"-"+C.toLowerCase(),b[_][C]);else typeof b[_]=="function"&&y(b,_,b[_])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],_=this.runOnRoot(b);if(p(_))try{await _}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[u];){y[u]=!0;let b=[g(y)];for(;b.length>0;){let _=this.visitTick(b);if(p(_))try{await _}catch(C){let M=b[b.length-1].node;throw this.handleError(C,M)}}}if(this.listeners.OnceExit)for(let[b,_]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let C=y.nodes.map(M=>_(M,this.helpers));await Promise.all(C)}else await _(y,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(_=>y.Once(_,this.helpers));return p(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(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 y=this.result.opts,b=o;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let C=new r(b,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let b=this.runOnRoot(y);if(p(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[u];)y[u]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[_,C]of y){this.result.lastPlugin=_;let M;try{M=C(b,this.helpers)}catch(x){throw this.handleError(x,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(p(M))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:_,visitors:C}=b;if(_.type!=="root"&&_.type!=="document"&&!_.parent){y.pop();return}if(C.length>0&&b.visitorIndex<C.length){let[x,I]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=x;try{return I(_.toProxy(),this.helpers)}catch(D){throw this.handleError(D,_)}}if(b.iterator!==0){let x=b.iterator,I;for(;I=_.nodes[_.indexes[x]];)if(_.indexes[x]+=1,!I[u]){I[u]=!0,y.push(g(I));return}b.iterator=0,delete _.indexes[x]}let M=b.events;for(;b.eventIndex<M.length;){let x=M[b.eventIndex];if(b.eventIndex+=1,x===f){_.nodes&&_.nodes.length&&(_[u]=!0,b.iterator=_.getIterator());return}else if(this.listeners[x]){b.visitors=this.listeners[x];return}}y.pop()}walkSync(y){y[u]=!0;let b=m(y);for(let _ of b)if(_===f)y.nodes&&y.each(C=>{C[u]||this.walkSync(C)});else{let C=this.listeners[_];if(C&&this.visitSync(C,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return S.registerPostcss=E=>{v=E},Xs=S,S.default=S,n.registerLazyResult(S),t.registerLazyResult(S),Xs}var Qs,Za;function Xd(){if(Za)return Qs;Za=1;let e=uc(),t=Lo();const r=Fo();let i=as(),s=fc();class n{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 a,h=i;this.result=new r(this._processor,a,this._opts),this.result.css=d;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let f=new e(h,a,this._opts,d);if(f.isMap()){let[p,m]=f.generate();p&&(this.result.css=p),m&&(this.result.map=m)}else f.clearAnnotation(),this.result.css=f.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 Qs=n,n.default=n,Qs}var Ks,el;function Qd(){if(el)return Ks;el=1;let e=Io(),t=hc(),r=Xd(),i=pi();class s{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 Ks=s,s.default=s,i.registerProcessor(s),e.registerProcessor(s),Ks}var Zs,tl;function Kd(){if(tl)return Zs;tl=1;let e=ko(),t=us(),r=mr(),i=Do(),s=cs(),n=Io(),o=Hd(),u=fs(),d=hc(),l=lc(),a=ls(),h=Lo(),c=Qd(),f=Fo(),p=pi(),m=Po(),g=as(),w=cc();function v(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new c(S)}return v.plugin=function(E,y){let b=!1;function _(...M){console&&console.warn&&!b&&(b=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
43
43
  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:
44
- https://www.w3ctech.com/topic/2226`));let x=y(...N);return x.postcssPlugin=E,x.postcssVersion=new c().version,x}let C;return Object.defineProperty(_,"postcss",{get(){return C||(C=_()),C}}),_.process=function(N,x,I){return v([_(I)]).process(N,x)},_},v.stringify=g,v.parse=f,v.fromJSON=n,v.list=l,v.comment=S=>new t(S),v.atRule=S=>new e(S),v.decl=S=>new s(S),v.rule=S=>new m(S),v.root=S=>new p(S),v.document=S=>new o(S),v.CssSyntaxError=i,v.Declaration=s,v.Container=r,v.Processor=c,v.Document=o,v.Comment=t,v.Warning=w,v.AtRule=e,v.Result=h,v.Input=u,v.Rule=m,v.Root=p,v.Node=a,d.registerPostcss(v),Zs=v,v.default=v,Zs}var Qd=Xd();const pe=Ud(Qd);pe.stringify;pe.fromJSON;pe.plugin;pe.parse;pe.list;pe.document;pe.comment;pe.atRule;pe.rule;pe.decl;pe.root;pe.CssSyntaxError;pe.Declaration;pe.Container;pe.Processor;pe.Document;pe.Comment;pe.Warning;pe.AtRule;pe.Result;pe.Input;pe.Rule;pe.Root;pe.Node;const Kd=["webview"],tl={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 Zd(e){let t=tl[e.tagName]?tl[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function hs(e,t){const r=t==null?void 0:t.stylesWithHoverClass.get(e);if(r)return r;let i=e;try{i=pe([Fd,Bd]).process(e).css}catch(s){console.warn("Failed to adapt css for replay",s)}return t==null||t.stylesWithHoverClass.set(e,i),i}function rl(){return{stylesWithHoverClass:new Map}}function ep(e,t,r,i){const s=[];for(const n of e.childNodes)n.type===W.Text&&s.push(n);const o=t.split("/* rr_split */");for(;o.length>1&&o.length>s.length;)o.splice(-2,2,o.slice(-2).join(""));for(let n=0;n<s.length;n++){const u=s[n],d=o[n];u&&d&&(u.textContent=r?hs(d,i):d)}}function tp(e,t,r,i){const{doc:s,hackCss:o,cache:n}=i;e.childNodes.length?ep(e,r,o,n):(o&&(r=hs(r,n)),t.appendChild(s.createTextNode(r)))}function rp(e,t){var r;const{doc:i,hackCss:s,cache:o}=t;switch(e.type){case W.Document:return i.implementation.createDocument(null,"",null);case W.DocumentType:return i.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case W.Element:{const n=Zd(e);let u;e.isSVG?u=i.createElementNS("http://www.w3.org/2000/svg",n):(e.isCustom&&((r=i.defaultView)!=null&&r.customElements)&&!i.defaultView.customElements.get(e.tagName)&&!Kd.includes(e.tagName)&&i.defaultView.customElements.define(e.tagName,class extends i.defaultView.HTMLElement{}),u=i.createElement(n));const d={};for(const l in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,l))continue;let a=e.attributes[l];if(!(n==="option"&&l==="selected"&&a===!1)&&a!==null){if(a===!0&&(a=""),l.startsWith("rr_")){d[l]=a;continue}if(typeof a=="string"){if(n==="style"&&l==="_cssText"){tp(e,u,a,t);continue}else if(n==="textarea"&&l==="value"){u.appendChild(i.createTextNode(a)),e.childNodes=[];continue}}try{if(e.isSVG&&l==="xlink:href")u.setAttributeNS("http://www.w3.org/1999/xlink",l,a.toString());else if(l==="onload"||l==="onclick"||l.substring(0,7)==="onmouse")u.setAttribute("_"+l,a.toString());else if(n==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&l==="content"){u.setAttribute("csp-content",a.toString());continue}else n==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||n==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")||(n==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?u.setAttribute("rrweb-original-srcset",e.attributes.srcset):u.setAttribute(l,a.toString()))}catch(f){}}}for(const l in d){const a=d[l];if(n==="canvas"&&l==="rr_dataURL"){const f=i.createElement("img");f.onload=()=>{const c=u.getContext("2d");c&&c.drawImage(f,0,0,f.width,f.height)},f.src=a.toString(),u.RRNodeType&&(u.rr_dataURL=a.toString())}else if(n==="img"&&l==="rr_dataURL"){const f=u;f.currentSrc.startsWith("data:")||(f.setAttribute("rrweb-original-src",e.attributes.src),f.src=a.toString())}if(l==="rr_width")u.style.setProperty("width",a.toString());else if(l==="rr_height")u.style.setProperty("height",a.toString());else if(l==="rr_background_color")u.style.setProperty("background-color",a.toString());else if(l==="rr_mediaCurrentTime"&&typeof a=="number")u.currentTime=a;else if(l==="rr_mediaState")switch(a){case"played":u.play().catch(f=>console.warn("media playback error",f));break;case"paused":u.pause();break}else l==="rr_mediaPlaybackRate"&&typeof a=="number"?u.playbackRate=a:l==="rr_mediaMuted"&&typeof a=="boolean"?u.muted=a:l==="rr_mediaLoop"&&typeof a=="boolean"?u.loop=a:l==="rr_mediaVolume"&&typeof a=="number"?u.volume=a:l==="rr_open_mode"&&u.setAttribute("rr_open_mode",a)}if(e.isShadowHost)if(!u.shadowRoot)u.attachShadow({mode:"open"});else for(;u.shadowRoot.firstChild;)u.shadowRoot.removeChild(u.shadowRoot.firstChild);return u}case W.Text:return e.isStyle&&s?i.createTextNode(hs(e.textContent,o)):i.createTextNode(e.textContent);case W.CDATA:return i.createCDATASection(e.textContent);case W.Comment:return i.createComment(e.textContent);default:return null}}function si(e,t){const{doc:r,mirror:i,skipChild:s=!1,hackCss:o=!0,afterAppend:n,cache:u,scrollNodes:d}=t;if(i.has(e.id)){const a=i.getNode(e.id),f=i.getMeta(a);if(od(f,e))return i.getNode(e.id)}let l=rp(e,{doc:r,hackCss:o,cache:u});if(!l)return null;if(e.rootId&&i.getNode(e.rootId)!==r&&i.replace(e.rootId,r),e.type===W.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==W.DocumentType&&(e.childNodes[0].type===W.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" "">')),l=r),i.add(l,e),d&&e.type===W.Element&&e.attributes&&("rr_scrollLeft"in e.attributes||"rr_scrollTop"in e.attributes)&&d.push(l),(e.type===W.Document||e.type===W.Element)&&!s)for(const a of e.childNodes){const f=si(a,{doc:r,mirror:i,skipChild:!1,hackCss:o,afterAppend:n,cache:u,scrollNodes:d});if(!f){console.warn("Failed to rebuild",a);continue}if(a.isShadow&&Mo(l)&&l.shadowRoot)l.shadowRoot.appendChild(f);else if(e.type===W.Document&&a.type==W.Element){const c=f;let h=null;c.childNodes.forEach(p=>{p.nodeName==="BODY"&&(h=p)}),h?(c.removeChild(h),l.appendChild(f),c.appendChild(h)):l.appendChild(f)}else l.appendChild(f);n&&n(f,a.id)}return l}function ip(e,t){function r(i){t(i)}for(const i of e.getIds())e.has(i)&&r(e.getNode(i))}function sp(e,t){const r=t.getMeta(e);if((r==null?void 0:r.type)!==W.Element)return;const i=e;for(const s in r.attributes){if(!(Object.prototype.hasOwnProperty.call(r.attributes,s)&&s.startsWith("rr_")))continue;const o=r.attributes[s];s==="rr_scrollLeft"&&(i.scrollLeft=o),s==="rr_scrollTop"&&(i.scrollTop=o)}}function np(e,t){const{doc:r,onVisit:i,hackCss:s=!0,afterAppend:o,cache:n,mirror:u=new No}=t,d=[],l=si(e,{doc:r,mirror:u,skipChild:!1,hackCss:s,afterAppend:o,cache:n,scrollNodes:d});i&&ip(u,i);for(const a of d)sp(a,u);return l}var op=Object.defineProperty,ap=(e,t,r)=>t in e?op(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t,r)=>ap(e,typeof t!="symbol"?t+"":t,r),lp=Object.defineProperty,up=(e,t,r)=>t in e?lp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,il=(e,t,r)=>up(e,typeof t!="symbol"?t+"":t,r);let cp=class{constructor(){il(this,"idNodeMap",new Map),il(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const i=(r=this.getMeta(t))==null?void 0:r.id;return i!=null?i:-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(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){const i=this.getNode(t);if(i){const s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function fp(){return new cp}function hp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dp(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?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(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),r}var xi={exports:{}},sl;function pp(){if(sl)return xi.exports;sl=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 xi.exports=t(),xi.exports.createColors=t,xi.exports}const mp={},gp=Object.freeze(Object.defineProperty({__proto__:null,default:mp},Symbol.toStringTag,{value:"Module"})),ct=dp(gp);var en,nl;function Fo(){if(nl)return en;nl=1;let e=pp(),t=ct;class r extends Error{constructor(s,o,n,u,d,l){super(s),this.name="CssSyntaxError",this.reason=s,d&&(this.file=d),u&&(this.source=u),l&&(this.plugin=l),typeof o!="undefined"&&typeof n!="undefined"&&(typeof o=="number"?(this.line=o,this.column=n):(this.line=o.line,this.column=o.column,this.endLine=n.line,this.endColumn=n.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(s){if(!this.source)return"";let o=this.source;s==null&&(s=e.isColorSupported);let n=h=>h,u=h=>h,d=h=>h;if(s){let{bold:h,gray:p,red:m}=e.createColors(!0);u=g=>h(m(g)),n=g=>p(g),t&&(d=g=>t(g))}let l=o.split(/\r?\n/),a=Math.max(this.line-3,0),f=Math.min(this.line+2,l.length),c=String(f).length;return l.slice(a,f).map((h,p)=>{let m=a+1+p,g=" "+(" "+m).slice(-c)+" | ";if(m===this.line){if(h.length>160){let v=20,S=Math.max(0,this.column-v),E=Math.max(this.column+v,this.endColumn+v),y=h.slice(S,E),b=n(g.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,v-1)).replace(/[^\t]/g," ");return u(">")+n(g)+d(y)+`
45
- `+b+u("^")}let w=n(g.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+n(g)+d(h)+`
46
- `+w+u("^")}return" "+n(g)+d(h)}).join(`
44
+ https://www.w3ctech.com/topic/2226`));let x=y(...M);return x.postcssPlugin=E,x.postcssVersion=new c().version,x}let C;return Object.defineProperty(_,"postcss",{get(){return C||(C=_()),C}}),_.process=function(M,x,I){return v([_(I)]).process(M,x)},_},v.stringify=g,v.parse=h,v.fromJSON=o,v.list=l,v.comment=S=>new t(S),v.atRule=S=>new e(S),v.decl=S=>new s(S),v.rule=S=>new m(S),v.root=S=>new p(S),v.document=S=>new n(S),v.CssSyntaxError=i,v.Declaration=s,v.Container=r,v.Processor=c,v.Document=n,v.Comment=t,v.Warning=w,v.AtRule=e,v.Result=f,v.Input=u,v.Rule=m,v.Root=p,v.Node=a,d.registerPostcss(v),Zs=v,v.default=v,Zs}var Zd=Kd();const pe=Wd(Zd);pe.stringify;pe.fromJSON;pe.plugin;pe.parse;pe.list;pe.document;pe.comment;pe.atRule;pe.rule;pe.decl;pe.root;pe.CssSyntaxError;pe.Declaration;pe.Container;pe.Processor;pe.Document;pe.Comment;pe.Warning;pe.AtRule;pe.Result;pe.Input;pe.Rule;pe.Root;pe.Node;const ep=["webview"],rl={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 tp(e){let t=rl[e.tagName]?rl[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function hs(e,t){const r=t==null?void 0:t.stylesWithHoverClass.get(e);if(r)return r;let i=e;try{i=pe([Ud,$d]).process(e).css}catch(s){console.warn("Failed to adapt css for replay",s)}return t==null||t.stylesWithHoverClass.set(e,i),i}function il(){return{stylesWithHoverClass:new Map}}function rp(e,t,r,i){const s=[];for(const o of e.childNodes)o.type===$.Text&&s.push(o);const n=t.split("/* rr_split */");for(;n.length>1&&n.length>s.length;)n.splice(-2,2,n.slice(-2).join(""));for(let o=0;o<s.length;o++){const u=s[o],d=n[o];u&&d&&(u.textContent=r?hs(d,i):d)}}function ip(e,t,r,i){const{doc:s,hackCss:n,cache:o}=i;e.childNodes.length?rp(e,r,n,o):(n&&(r=hs(r,o)),t.appendChild(s.createTextNode(r)))}function sp(e,t){var r;const{doc:i,hackCss:s,cache:n}=t;switch(e.type){case $.Document:return i.implementation.createDocument(null,"",null);case $.DocumentType:return i.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case $.Element:{const o=tp(e);let u;e.isSVG?u=i.createElementNS("http://www.w3.org/2000/svg",o):(e.isCustom&&((r=i.defaultView)!=null&&r.customElements)&&!i.defaultView.customElements.get(e.tagName)&&!ep.includes(e.tagName)&&i.defaultView.customElements.define(e.tagName,class extends i.defaultView.HTMLElement{}),u=i.createElement(o));const d={};for(const l in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,l))continue;let a=e.attributes[l];if(!(o==="option"&&l==="selected"&&a===!1)&&a!==null){if(a===!0&&(a=""),l.startsWith("rr_")){d[l]=a;continue}if(typeof a=="string"){if(o==="style"&&l==="_cssText"){ip(e,u,a,t);continue}else if(o==="textarea"&&l==="value"){u.appendChild(i.createTextNode(a)),e.childNodes=[];continue}}try{if(e.isSVG&&l==="xlink:href")u.setAttributeNS("http://www.w3.org/1999/xlink",l,a.toString());else if(l==="onload"||l==="onclick"||l.substring(0,7)==="onmouse")u.setAttribute("_"+l,a.toString());else if(o==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&l==="content"){u.setAttribute("csp-content",a.toString());continue}else o==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||o==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")||(o==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?u.setAttribute("rrweb-original-srcset",e.attributes.srcset):u.setAttribute(l,a.toString()))}catch(h){}}}for(const l in d){const a=d[l];if(o==="canvas"&&l==="rr_dataURL"){const h=i.createElement("img");h.onload=()=>{const c=u.getContext("2d");c&&c.drawImage(h,0,0,h.width,h.height)},h.src=a.toString(),u.RRNodeType&&(u.rr_dataURL=a.toString())}else if(o==="img"&&l==="rr_dataURL"){const h=u;h.currentSrc.startsWith("data:")||(h.setAttribute("rrweb-original-src",e.attributes.src),h.src=a.toString())}if(l==="rr_width")u.style.setProperty("width",a.toString());else if(l==="rr_height")u.style.setProperty("height",a.toString());else if(l==="rr_background_color")u.style.setProperty("background-color",a.toString());else if(l==="rr_mediaCurrentTime"&&typeof a=="number")u.currentTime=a;else if(l==="rr_mediaState")switch(a){case"played":u.play().catch(h=>console.warn("media playback error",h));break;case"paused":u.pause();break}else l==="rr_mediaPlaybackRate"&&typeof a=="number"?u.playbackRate=a:l==="rr_mediaMuted"&&typeof a=="boolean"?u.muted=a:l==="rr_mediaLoop"&&typeof a=="boolean"?u.loop=a:l==="rr_mediaVolume"&&typeof a=="number"?u.volume=a:l==="rr_open_mode"&&u.setAttribute("rr_open_mode",a)}if(e.isShadowHost)if(!u.shadowRoot)u.attachShadow({mode:"open"});else for(;u.shadowRoot.firstChild;)u.shadowRoot.removeChild(u.shadowRoot.firstChild);return u}case $.Text:return e.isStyle&&s?i.createTextNode(hs(e.textContent,n)):i.createTextNode(e.textContent);case $.CDATA:return i.createCDATASection(e.textContent);case $.Comment:return i.createComment(e.textContent);default:return null}}function si(e,t){const{doc:r,mirror:i,skipChild:s=!1,hackCss:n=!0,afterAppend:o,cache:u,scrollNodes:d}=t;if(i.has(e.id)){const a=i.getNode(e.id),h=i.getMeta(a);if(ld(h,e))return i.getNode(e.id)}let l=sp(e,{doc:r,hackCss:n,cache:u});if(!l)return null;if(e.rootId&&i.getNode(e.rootId)!==r&&i.replace(e.rootId,r),e.type===$.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==$.DocumentType&&(e.childNodes[0].type===$.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" "">')),l=r),i.add(l,e),d&&e.type===$.Element&&e.attributes&&("rr_scrollLeft"in e.attributes||"rr_scrollTop"in e.attributes)&&d.push(l),(e.type===$.Document||e.type===$.Element)&&!s)for(const a of e.childNodes){const h=si(a,{doc:r,mirror:i,skipChild:!1,hackCss:n,afterAppend:o,cache:u,scrollNodes:d});if(!h){console.warn("Failed to rebuild",a);continue}if(a.isShadow&&Mo(l)&&l.shadowRoot)l.shadowRoot.appendChild(h);else if(e.type===$.Document&&a.type==$.Element){const c=h;let f=null;c.childNodes.forEach(p=>{p.nodeName==="BODY"&&(f=p)}),f?(c.removeChild(f),l.appendChild(h),c.appendChild(f)):l.appendChild(h)}else l.appendChild(h);o&&o(h,a.id)}return l}function np(e,t){function r(i){t(i)}for(const i of e.getIds())e.has(i)&&r(e.getNode(i))}function op(e,t){const r=t.getMeta(e);if((r==null?void 0:r.type)!==$.Element)return;const i=e;for(const s in r.attributes){if(!(Object.prototype.hasOwnProperty.call(r.attributes,s)&&s.startsWith("rr_")))continue;const n=r.attributes[s];s==="rr_scrollLeft"&&(i.scrollLeft=n),s==="rr_scrollTop"&&(i.scrollTop=n)}}function ap(e,t){const{doc:r,onVisit:i,hackCss:s=!0,afterAppend:n,cache:o,mirror:u=new Ao}=t,d=[],l=si(e,{doc:r,mirror:u,skipChild:!1,hackCss:s,afterAppend:n,cache:o,scrollNodes:d});i&&np(u,i);for(const a of d)op(a,u);return l}var lp=Object.defineProperty,up=(e,t,r)=>t in e?lp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t,r)=>up(e,typeof t!="symbol"?t+"":t,r),cp=Object.defineProperty,fp=(e,t,r)=>t in e?cp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sl=(e,t,r)=>fp(e,typeof t!="symbol"?t+"":t,r);let hp=class{constructor(){sl(this,"idNodeMap",new Map),sl(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const i=(r=this.getMeta(t))==null?void 0:r.id;return i!=null?i:-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(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){const i=this.getNode(t);if(i){const s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function dp(){return new hp}function pp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function mp(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?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(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),r}var xi={exports:{}},nl;function gp(){if(nl)return xi.exports;nl=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 xi.exports=t(),xi.exports.createColors=t,xi.exports}const vp={},yp=Object.freeze(Object.defineProperty({__proto__:null,default:vp},Symbol.toStringTag,{value:"Module"})),ct=mp(yp);var en,ol;function Bo(){if(ol)return en;ol=1;let e=gp(),t=ct;class r extends Error{constructor(s,n,o,u,d,l){super(s),this.name="CssSyntaxError",this.reason=s,d&&(this.file=d),u&&(this.source=u),l&&(this.plugin=l),typeof n!="undefined"&&typeof o!="undefined"&&(typeof n=="number"?(this.line=n,this.column=o):(this.line=n.line,this.column=n.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(s){if(!this.source)return"";let n=this.source;s==null&&(s=e.isColorSupported);let o=f=>f,u=f=>f,d=f=>f;if(s){let{bold:f,gray:p,red:m}=e.createColors(!0);u=g=>f(m(g)),o=g=>p(g),t&&(d=g=>t(g))}let l=n.split(/\r?\n/),a=Math.max(this.line-3,0),h=Math.min(this.line+2,l.length),c=String(h).length;return l.slice(a,h).map((f,p)=>{let m=a+1+p,g=" "+(" "+m).slice(-c)+" | ";if(m===this.line){if(f.length>160){let v=20,S=Math.max(0,this.column-v),E=Math.max(this.column+v,this.endColumn+v),y=f.slice(S,E),b=o(g.replace(/\d/g," "))+f.slice(0,Math.min(this.column-1,v-1)).replace(/[^\t]/g," ");return u(">")+o(g)+d(y)+`
45
+ `+b+u("^")}let w=o(g.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+o(g)+d(f)+`
46
+ `+w+u("^")}return" "+o(g)+d(f)}).join(`
47
47
  `)}toString(){let s=this.showSourceCode();return s&&(s=`
48
48
 
49
49
  `+s+`
50
- `),this.name+": "+this.message+s}}return en=r,r.default=r,en}var tn,ol;function hc(){if(ol)return tn;ol=1;const e={after:`
50
+ `),this.name+": "+this.message+s}}return en=r,r.default=r,en}var tn,al;function dc(){if(al)return tn;al=1;const e={after:`
51
51
  `,beforeClose:`
52
52
  `,beforeComment:`
53
53
  `,beforeDecl:`
54
54
  `,beforeOpen:" ",beforeRule:`
55
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(s){this.builder=s}atrule(s,o){let n="@"+s.name,u=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName!="undefined"?n+=s.raws.afterName:u&&(n+=" "),s.nodes)this.block(s,n+u);else{let d=(s.raws.between||"")+(o?";":"");this.builder(n+u+d,s)}}beforeAfter(s,o){let n;s.type==="decl"?n=this.raw(s,null,"beforeDecl"):s.type==="comment"?n=this.raw(s,null,"beforeComment"):o==="before"?n=this.raw(s,null,"beforeRule"):n=this.raw(s,null,"beforeClose");let u=s.parent,d=0;for(;u&&u.type!=="root";)d+=1,u=u.parent;if(n.includes(`
56
- `)){let l=this.raw(s,null,"indent");if(l.length)for(let a=0;a<d;a++)n+=l}return n}block(s,o){let n=this.raw(s,"between","beforeOpen");this.builder(o+n+"{",s,"start");let u;s.nodes&&s.nodes.length?(this.body(s),u=this.raw(s,"after")):u=this.raw(s,"after","emptyBody"),u&&this.builder(u),this.builder("}",s,"end")}body(s){let o=s.nodes.length-1;for(;o>0&&s.nodes[o].type==="comment";)o-=1;let n=this.raw(s,"semicolon");for(let u=0;u<s.nodes.length;u++){let d=s.nodes[u],l=this.raw(d,"before");l&&this.builder(l),this.stringify(d,o!==u||n)}}comment(s){let o=this.raw(s,"left","commentLeft"),n=this.raw(s,"right","commentRight");this.builder("/*"+o+s.text+n+"*/",s)}decl(s,o){let n=this.raw(s,"between","colon"),u=s.prop+n+this.rawValue(s,"value");s.important&&(u+=s.raws.important||" !important"),o&&(u+=";"),this.builder(u,s)}document(s){this.body(s)}raw(s,o,n){let u;if(n||(n=o),o&&(u=s.raws[o],typeof u!="undefined"))return u;let d=s.parent;if(n==="before"&&(!d||d.type==="root"&&d.first===s||d&&d.type==="document"))return"";if(!d)return e[n];let l=s.root();if(l.rawCache||(l.rawCache={}),typeof l.rawCache[n]!="undefined")return l.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(s,n);{let a="raw"+t(n);this[a]?u=this[a](l,s):l.walk(f=>{if(u=f.raws[o],typeof u!="undefined")return!1})}return typeof u=="undefined"&&(u=e[n]),l.rawCache[n]=u,u}rawBeforeClose(s){let o;return s.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after!="undefined")return o=n.raws.after,o.includes(`
57
- `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(s,o){let n;return s.walkComments(u=>{if(typeof u.raws.before!="undefined")return n=u.raws.before,n.includes(`
58
- `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(o,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(s,o){let n;return s.walkDecls(u=>{if(typeof u.raws.before!="undefined")return n=u.raws.before,n.includes(`
59
- `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(o,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(s){let o;return s.walk(n=>{if(n.type!=="decl"&&(o=n.raws.between,typeof o!="undefined"))return!1}),o}rawBeforeRule(s){let o;return s.walk(n=>{if(n.nodes&&(n.parent!==s||s.first!==n)&&typeof n.raws.before!="undefined")return o=n.raws.before,o.includes(`
60
- `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(s){let o;return s.walkDecls(n=>{if(typeof n.raws.between!="undefined")return o=n.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(s){let o;return s.walk(n=>{if(n.nodes&&n.nodes.length===0&&(o=n.raws.after,typeof o!="undefined"))return!1}),o}rawIndent(s){if(s.raws.indent)return s.raws.indent;let o;return s.walk(n=>{let u=n.parent;if(u&&u!==s&&u.parent&&u.parent===s&&typeof n.raws.before!="undefined"){let d=n.raws.before.split(`
61
- `);return o=d[d.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(s){let o;return s.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(o=n.raws.semicolon,typeof o!="undefined"))return!1}),o}rawValue(s,o){let n=s[o],u=s.raws[o];return u&&u.value===n?u.raw:n}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,o){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,o)}}return tn=r,r.default=r,tn}var rn,al;function ds(){if(al)return rn;al=1;let e=hc();function t(r,i){new e(i).stringify(r)}return rn=t,t.default=t,rn}var Ri={},ll;function Bo(){return ll||(ll=1,Ri.isClean=Symbol("isClean"),Ri.my=Symbol("my")),Ri}var sn,ul;function ps(){if(ul)return sn;ul=1;let e=Fo(),t=hc(),r=ds(),{isClean:i,my:s}=Bo();function o(d,l){let a=new d.constructor;for(let f in d){if(!Object.prototype.hasOwnProperty.call(d,f)||f==="proxyCache")continue;let c=d[f],h=typeof c;f==="parent"&&h==="object"?l&&(a[f]=l):f==="source"?a[f]=c:Array.isArray(c)?a[f]=c.map(p=>o(p,a)):(h==="object"&&c!==null&&(c=o(c)),a[f]=c)}return a}function n(d,l){if(l&&typeof l.offset!="undefined")return l.offset;let a=1,f=1,c=0;for(let h=0;h<d.length;h++){if(f===l.line&&a===l.column){c=h;break}d[h]===`
62
- `?(a=1,f+=1):a+=1}return c}class u{get proxyOf(){return this}constructor(l={}){this.raws={},this[i]=!1,this[s]=!0;for(let a in l)if(a==="nodes"){this.nodes=[];for(let f of l[a])typeof f.clone=="function"?this.append(f.clone()):this.append(f)}else this[a]=l[a]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let a=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${a.input.from}:${a.start.line}:${a.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let a in l)this[a]=l[a];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 a=o(this);for(let f in l)a[f]=l[f];return a}cloneAfter(l={}){let a=this.clone(l);return this.parent.insertAfter(this,a),a}cloneBefore(l={}){let a=this.clone(l);return this.parent.insertBefore(this,a),a}error(l,a={}){if(this.source){let{end:f,start:c}=this.rangeBy(a);return this.source.input.error(l,{column:c.column,line:c.line},{column:f.column,line:f.line},a)}return new e(l)}getProxyProcessor(){return{get(l,a){return a==="proxyOf"?l:a==="root"?()=>l.root().toProxy():l[a]},set(l,a,f){return l[a]===f||(l[a]=f,(a==="prop"||a==="value"||a==="name"||a==="params"||a==="important"||a==="text")&&l.markDirty()),!0}}}markClean(){this[i]=!0}markDirty(){if(this[i]){this[i]=!1;let l=this;for(;l=l.parent;)l[i]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l={}){let a=this.source.start;if(l.index)a=this.positionInside(l.index);else if(l.word){let f="document"in this.source.input?this.source.input.document:this.source.input.css,h=f.slice(n(f,this.source.start),n(f,this.source.end)).indexOf(l.word);h!==-1&&(a=this.positionInside(h))}return a}positionInside(l){let a=this.source.start.column,f=this.source.start.line,c="document"in this.source.input?this.source.input.document:this.source.input.css,h=n(c,this.source.start),p=h+l;for(let m=h;m<p;m++)c[m]===`
63
- `?(a=1,f+=1):a+=1;return{column:a,line:f,offset:p}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l={}){let a="document"in this.source.input?this.source.input.document:this.source.input.css,f={column:this.source.start.column,line:this.source.start.line,offset:n(a,this.source.start)},c=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:n(a,this.source.end)+1}:{column:f.column+1,line:f.line,offset:f.offset+1};if(l.word){let p=a.slice(n(a,this.source.start),n(a,this.source.end)).indexOf(l.word);p!==-1&&(f=this.positionInside(p),c=this.positionInside(p+l.word.length))}else l.start?f={column:l.start.column,line:l.start.line,offset:n(a,l.start)}:l.index&&(f=this.positionInside(l.index)),l.end?c={column:l.end.column,line:l.end.line,offset:n(a,l.end)}:typeof l.endIndex=="number"?c=this.positionInside(l.endIndex):l.index&&(c=this.positionInside(l.index+1));return(c.line<f.line||c.line===f.line&&c.column<=f.column)&&(c={column:f.column+1,line:f.line,offset:f.offset+1}),{end:c,start:f}}raw(l,a){return new t().raw(this,l,a)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let a=this,f=!1;for(let c of l)c===this?f=!0:f?(this.parent.insertAfter(a,c),a=c):this.parent.insertBefore(a,c);f||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,a){let f={},c=a==null;a=a||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))f[p]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,a):g);else if(typeof m=="object"&&m.toJSON)f[p]=m.toJSON(null,a);else if(p==="source"){if(m==null)continue;let g=a.get(m.input);g==null&&(g=h,a.set(m.input,h),h++),f[p]={end:m.end,inputId:g,start:m.start}}else f[p]=m}return c&&(f.inputs=[...a.keys()].map(p=>p.toJSON())),f}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=r){l.stringify&&(l=l.stringify);let a="";return l(this,f=>{a+=f}),a}warn(l,a,f={}){let c={node:this};for(let h in f)c[h]=f[h];return l.warn(a,c)}}return sn=u,u.default=u,sn}var nn,cl;function ms(){if(cl)return nn;cl=1;let e=ps();class t extends e{constructor(i){super(i),this.type="comment"}}return nn=t,t.default=t,nn}var on,fl;function gs(){if(fl)return on;fl=1;let e=ps();class t extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(i){i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=be(G({},i),{value:String(i.value)})),super(i),this.type="decl"}}return on=t,t.default=t,on}var an,hl;function gr(){if(hl)return an;hl=1;let e=ms(),t=gs(),r=ps(),{isClean:i,my:s}=Bo(),o,n,u,d;function l(c){return c.map(h=>(h.nodes&&(h.nodes=l(h.nodes)),delete h.source,h))}function a(c){if(c[i]=!1,c.proxyOf.nodes)for(let h of c.proxyOf.nodes)a(h)}class f 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"?(w,v)=>g(w.toProxy(),v):g)):p==="every"||p==="some"?m=>h[p]((g,...w)=>m(g.toProxy(),...w)):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 v of g)this.proxyOf.nodes.splice(m+1,0,v);let w;for(let v in this.indexes)w=this.indexes[v],m<w&&(this.indexes[v]=w+g.length);return this.markDirty(),this}insertBefore(h,p){let m=this.index(h),g=m===0?"prepend":!1,w=this.normalize(p,this.proxyOf.nodes[m],g).reverse();m=this.index(h);for(let S of w)this.proxyOf.nodes.splice(m,0,S);let v;for(let S in this.indexes)v=this.indexes[S],m<=v&&(this.indexes[S]=v+w.length);return this.markDirty(),this}normalize(h,p){if(typeof h=="string")h=l(n(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 o(h)];else if(h.text)h=[new e(h)];else throw new Error("Unknown node type in node creation");return h.map(g=>(g[s]||f.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[i]&&a(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(w){throw p.addToError(w)}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 f.registerParse=c=>{n=c},f.registerRule=c=>{d=c},f.registerAtRule=c=>{o=c},f.registerRoot=c=>{u=c},an=f,f.default=f,f.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,o.prototype):c.type==="rule"?Object.setPrototypeOf(c,d.prototype):c.type==="decl"?Object.setPrototypeOf(c,t.prototype):c.type==="comment"?Object.setPrototypeOf(c,e.prototype):c.type==="root"&&Object.setPrototypeOf(c,u.prototype),c[s]=!0,c.nodes&&c.nodes.forEach(h=>{f.rebuild(h)})},an}var ln,dl;function Uo(){if(dl)return ln;dl=1;let e=gr();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return ln=t,t.default=t,e.registerAtRule(t),ln}var un,pl;function $o(){if(pl)return un;pl=1;let e=gr(),t,r;class i extends e{constructor(o){super(G({type:"document"},o)),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},un=i,i.default=i,un}var cn,ml;function vp(){if(ml)return cn;ml=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return cn={nanoid:(i=21)=>{let s="",o=i|0;for(;o--;)s+=e[Math.random()*64|0];return s},customAlphabet:(i,s=21)=>(o=s)=>{let n="",u=o|0;for(;u--;)n+=i[Math.random()*i.length|0];return n}},cn}var fn,gl;function dc(){if(gl)return fn;gl=1;let{existsSync:e,readFileSync:t}=ct,{dirname:r,join:i}=ct,{SourceMapConsumer:s,SourceMapGenerator:o}=ct;function n(d){return Buffer?Buffer.from(d,"base64").toString():window.atob(d)}class u{constructor(l,a){if(a.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let f=a.map?a.map.prev:void 0,c=this.loadMap(a.from,f);!this.mapFile&&a.from&&(this.mapFile=a.from),this.mapFile&&(this.root=r(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(l){let a=/^data:application\/json;charset=utf-?8;base64,/,f=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/,p=l.match(c)||l.match(h);if(p)return decodeURIComponent(l.substr(p[0].length));let m=l.match(a)||l.match(f);if(m)return n(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 a=l.match(/\/\*\s*# sourceMappingURL=/g);if(!a)return;let f=l.lastIndexOf(a.pop()),c=l.indexOf("*/",f);f>-1&&c>-1&&(this.annotation=this.getAnnotationURL(l.substring(f,c)))}loadFile(l){if(this.root=r(l),e(l))return this.mapFile=l,t(l,"utf-8").toString().trim()}loadMap(l,a){if(a===!1)return!1;if(a){if(typeof a=="string")return a;if(typeof a=="function"){let f=a(l);if(f){let c=this.loadFile(f);if(!c)throw new Error("Unable to load previous source map: "+f.toString());return c}}else{if(a instanceof s)return o.fromSourceMap(a).toString();if(a instanceof o)return a.toString();if(this.isMap(a))return JSON.stringify(a);throw new Error("Unsupported previous source map format: "+a.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let f=this.annotation;return l&&(f=i(r(l),f)),this.loadFile(f)}}}startWith(l,a){return l?l.substr(0,a.length)===a:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return fn=u,u.default=u,fn}var hn,vl;function vs(){if(vl)return hn;vl=1;let{nanoid:e}=vp(),{isAbsolute:t,resolve:r}=ct,{SourceMapConsumer:i,SourceMapGenerator:s}=ct,{fileURLToPath:o,pathToFileURL:n}=ct,u=Fo(),d=dc(),l=ct,a=Symbol("lineToIndexCache"),f=!!(i&&s),c=!!(r&&t);function h(m){if(m[a])return m[a];let g=m.css.split(`
64
- `),w=new Array(g.length),v=0;for(let S=0,E=g.length;S<E;S++)w[S]=v,v+=g[S].length+1;return m[a]=w,w}class p{get from(){return this.file||this.id}constructor(g,w={}){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,w.document&&(this.document=w.document.toString()),w.from&&(!c||/^\w+:\/\//.test(w.from)||t(w.from)?this.file=w.from:this.file=r(w.from)),c&&f){let v=new d(this.css,w);if(v.text){this.map=v;let S=v.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,w,v,S={}){let E,y,b,_,C;if(w&&typeof w=="object"){let x=w,I=v;if(typeof x.offset=="number"){_=x.offset;let D=this.fromOffset(_);w=D.line,v=D.col}else w=x.line,v=x.column,_=this.fromLineAndColumn(w,v);if(typeof I.offset=="number"){b=I.offset;let D=this.fromOffset(b);y=D.line,E=D.col}else y=I.line,E=I.column,b=this.fromLineAndColumn(I.line,I.column)}else if(v)_=this.fromLineAndColumn(w,v);else{_=w;let x=this.fromOffset(_);w=x.line,v=x.col}let N=this.origin(w,v,y,E);return N?C=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):C=new u(g,y===void 0?w:{column:v,line:w},y===void 0?v:{column:E,line:y},this.css,this.file,S.plugin),C.input={column:v,endColumn:E,endLine:y,endOffset:b,line:w,offset:_,source:this.css},this.file&&(n&&(C.input.url=n(this.file).toString()),C.input.file=this.file),C}fromLineAndColumn(g,w){return h(this)[g-1]+w-1}fromOffset(g){let w=h(this),v=w[w.length-1],S=0;if(g>=v)S=w.length-1;else{let E=w.length-2,y;for(;S<E;)if(y=S+(E-S>>1),g<w[y])E=y-1;else if(g>=w[y+1])S=y+1;else{S=y;break}}return{col:g-w[S]+1,line:S+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:r(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,w,v,S){if(!this.map)return!1;let E=this.map.consumer(),y=E.originalPositionFor({column:w,line:g});if(!y.source)return!1;let b;typeof v=="number"&&(b=E.originalPositionFor({column:S,line:v}));let _;t(y.source)?_=n(y.source):_=new URL(y.source,this.map.consumer().sourceRoot||n(this.map.mapFile));let C={column:y.column,endColumn:b&&b.column,endLine:b&&b.line,line:y.line,url:_.toString()};if(_.protocol==="file:")if(o)C.file=o(_);else throw new Error("file: protocol is not available in this PostCSS build");let N=E.sourceContentFor(y.source);return N&&(C.source=N),C}toJSON(){let g={};for(let w of["hasBOM","css","file","id"])this[w]!=null&&(g[w]=this[w]);return this.map&&(g.map=G({},this.map),g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return hn=p,p.default=p,l&&l.registerInput&&l.registerInput(p),hn}var dn,yl;function mi(){if(yl)return dn;yl=1;let e=gr(),t,r;class i extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,n,u){let d=super.normalize(o);if(n){if(u==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let l of d)l.raws.before=n.raws.before}return d}removeChild(o,n){let u=this.index(o);return!n&&u===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[u].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},dn=i,i.default=i,e.registerRoot(i),dn}var pn,wl;function pc(){if(wl)return pn;wl=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
65
- `," "];return e.split(t,r)},split(t,r,i){let s=[],o="",n=!1,u=0,d=!1,l="",a=!1;for(let f of t)a?a=!1:f==="\\"?a=!0:d?f===l&&(d=!1):f==='"'||f==="'"?(d=!0,l=f):f==="("?u+=1:f===")"?u>0&&(u-=1):u===0&&r.includes(f)&&(n=!0),n?(o!==""&&s.push(o.trim()),o="",n=!1):o+=f;return(i||o!=="")&&s.push(o.trim()),s}};return pn=e,e.default=e,pn}var mn,bl;function Wo(){if(bl)return mn;bl=1;let e=gr(),t=pc();class r extends e{get selectors(){return t.comma(this.selector)}set selectors(s){let o=this.selector?this.selector.match(/,\s*/):null,n=o?o[0]:","+this.raw("between","beforeOpen");this.selector=s.join(n)}constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}}return mn=r,r.default=r,e.registerRule(r),mn}var gn,Sl;function yp(){if(Sl)return gn;Sl=1;let e=Uo(),t=ms(),r=gs(),i=vs(),s=dc(),o=mi(),n=Wo();function u(d,l){if(Array.isArray(d))return d.map(p=>u(p));let c=d,{inputs:a}=c,f=Vr(c,["inputs"]);if(a){l=[];for(let p of a){let m=be(G({},p),{__proto__:i.prototype});m.map&&(m.map=be(G({},m.map),{__proto__:s.prototype})),l.push(m)}}if(f.nodes&&(f.nodes=d.nodes.map(p=>u(p,l))),f.source){let h=f.source,{inputId:p}=h,m=Vr(h,["inputId"]);f.source=m,p!=null&&(f.source.input=l[p])}if(f.type==="root")return new o(f);if(f.type==="decl")return new r(f);if(f.type==="rule")return new n(f);if(f.type==="comment")return new t(f);if(f.type==="atrule")return new e(f);throw new Error("Unknown node type: "+d.type)}return gn=u,u.default=u,gn}var vn,_l;function mc(){if(_l)return vn;_l=1;let{dirname:e,relative:t,resolve:r,sep:i}=ct,{SourceMapConsumer:s,SourceMapGenerator:o}=ct,{pathToFileURL:n}=ct,u=vs(),d=!!(s&&o),l=!!(e&&r&&t&&i);class a{constructor(c,h,p,m){this.stringify=c,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 c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let h=`
55
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(s){this.builder=s}atrule(s,n){let o="@"+s.name,u=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName!="undefined"?o+=s.raws.afterName:u&&(o+=" "),s.nodes)this.block(s,o+u);else{let d=(s.raws.between||"")+(n?";":"");this.builder(o+u+d,s)}}beforeAfter(s,n){let o;s.type==="decl"?o=this.raw(s,null,"beforeDecl"):s.type==="comment"?o=this.raw(s,null,"beforeComment"):n==="before"?o=this.raw(s,null,"beforeRule"):o=this.raw(s,null,"beforeClose");let u=s.parent,d=0;for(;u&&u.type!=="root";)d+=1,u=u.parent;if(o.includes(`
56
+ `)){let l=this.raw(s,null,"indent");if(l.length)for(let a=0;a<d;a++)o+=l}return o}block(s,n){let o=this.raw(s,"between","beforeOpen");this.builder(n+o+"{",s,"start");let u;s.nodes&&s.nodes.length?(this.body(s),u=this.raw(s,"after")):u=this.raw(s,"after","emptyBody"),u&&this.builder(u),this.builder("}",s,"end")}body(s){let n=s.nodes.length-1;for(;n>0&&s.nodes[n].type==="comment";)n-=1;let o=this.raw(s,"semicolon");for(let u=0;u<s.nodes.length;u++){let d=s.nodes[u],l=this.raw(d,"before");l&&this.builder(l),this.stringify(d,n!==u||o)}}comment(s){let n=this.raw(s,"left","commentLeft"),o=this.raw(s,"right","commentRight");this.builder("/*"+n+s.text+o+"*/",s)}decl(s,n){let o=this.raw(s,"between","colon"),u=s.prop+o+this.rawValue(s,"value");s.important&&(u+=s.raws.important||" !important"),n&&(u+=";"),this.builder(u,s)}document(s){this.body(s)}raw(s,n,o){let u;if(o||(o=n),n&&(u=s.raws[n],typeof u!="undefined"))return u;let d=s.parent;if(o==="before"&&(!d||d.type==="root"&&d.first===s||d&&d.type==="document"))return"";if(!d)return e[o];let l=s.root();if(l.rawCache||(l.rawCache={}),typeof l.rawCache[o]!="undefined")return l.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(s,o);{let a="raw"+t(o);this[a]?u=this[a](l,s):l.walk(h=>{if(u=h.raws[n],typeof u!="undefined")return!1})}return typeof u=="undefined"&&(u=e[o]),l.rawCache[o]=u,u}rawBeforeClose(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return n=o.raws.after,n.includes(`
57
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(s,n){let o;return s.walkComments(u=>{if(typeof u.raws.before!="undefined")return o=u.raws.before,o.includes(`
58
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(n,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(s,n){let o;return s.walkDecls(u=>{if(typeof u.raws.before!="undefined")return o=u.raws.before,o.includes(`
59
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(n,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(s){let n;return s.walk(o=>{if(o.type!=="decl"&&(n=o.raws.between,typeof n!="undefined"))return!1}),n}rawBeforeRule(s){let n;return s.walk(o=>{if(o.nodes&&(o.parent!==s||s.first!==o)&&typeof o.raws.before!="undefined")return n=o.raws.before,n.includes(`
60
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(s){let n;return s.walkDecls(o=>{if(typeof o.raws.between!="undefined")return n=o.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length===0&&(n=o.raws.after,typeof n!="undefined"))return!1}),n}rawIndent(s){if(s.raws.indent)return s.raws.indent;let n;return s.walk(o=>{let u=o.parent;if(u&&u!==s&&u.parent&&u.parent===s&&typeof o.raws.before!="undefined"){let d=o.raws.before.split(`
61
+ `);return n=d[d.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(n=o.raws.semicolon,typeof n!="undefined"))return!1}),n}rawValue(s,n){let o=s[n],u=s.raws[n];return u&&u.value===o?u.raw:o}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,n){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,n)}}return tn=r,r.default=r,tn}var rn,ll;function ds(){if(ll)return rn;ll=1;let e=dc();function t(r,i){new e(i).stringify(r)}return rn=t,t.default=t,rn}var Ri={},ul;function Uo(){return ul||(ul=1,Ri.isClean=Symbol("isClean"),Ri.my=Symbol("my")),Ri}var sn,cl;function ps(){if(cl)return sn;cl=1;let e=Bo(),t=dc(),r=ds(),{isClean:i,my:s}=Uo();function n(d,l){let a=new d.constructor;for(let h in d){if(!Object.prototype.hasOwnProperty.call(d,h)||h==="proxyCache")continue;let c=d[h],f=typeof c;h==="parent"&&f==="object"?l&&(a[h]=l):h==="source"?a[h]=c:Array.isArray(c)?a[h]=c.map(p=>n(p,a)):(f==="object"&&c!==null&&(c=n(c)),a[h]=c)}return a}function o(d,l){if(l&&typeof l.offset!="undefined")return l.offset;let a=1,h=1,c=0;for(let f=0;f<d.length;f++){if(h===l.line&&a===l.column){c=f;break}d[f]===`
62
+ `?(a=1,h+=1):a+=1}return c}class u{get proxyOf(){return this}constructor(l={}){this.raws={},this[i]=!1,this[s]=!0;for(let a in l)if(a==="nodes"){this.nodes=[];for(let h of l[a])typeof h.clone=="function"?this.append(h.clone()):this.append(h)}else this[a]=l[a]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let a=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${a.input.from}:${a.start.line}:${a.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let a in l)this[a]=l[a];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 a=n(this);for(let h in l)a[h]=l[h];return a}cloneAfter(l={}){let a=this.clone(l);return this.parent.insertAfter(this,a),a}cloneBefore(l={}){let a=this.clone(l);return this.parent.insertBefore(this,a),a}error(l,a={}){if(this.source){let{end:h,start:c}=this.rangeBy(a);return this.source.input.error(l,{column:c.column,line:c.line},{column:h.column,line:h.line},a)}return new e(l)}getProxyProcessor(){return{get(l,a){return a==="proxyOf"?l:a==="root"?()=>l.root().toProxy():l[a]},set(l,a,h){return l[a]===h||(l[a]=h,(a==="prop"||a==="value"||a==="name"||a==="params"||a==="important"||a==="text")&&l.markDirty()),!0}}}markClean(){this[i]=!0}markDirty(){if(this[i]){this[i]=!1;let l=this;for(;l=l.parent;)l[i]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l={}){let a=this.source.start;if(l.index)a=this.positionInside(l.index);else if(l.word){let h="document"in this.source.input?this.source.input.document:this.source.input.css,f=h.slice(o(h,this.source.start),o(h,this.source.end)).indexOf(l.word);f!==-1&&(a=this.positionInside(f))}return a}positionInside(l){let a=this.source.start.column,h=this.source.start.line,c="document"in this.source.input?this.source.input.document:this.source.input.css,f=o(c,this.source.start),p=f+l;for(let m=f;m<p;m++)c[m]===`
63
+ `?(a=1,h+=1):a+=1;return{column:a,line:h,offset:p}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l={}){let a="document"in this.source.input?this.source.input.document:this.source.input.css,h={column:this.source.start.column,line:this.source.start.line,offset:o(a,this.source.start)},c=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(a,this.source.end)+1}:{column:h.column+1,line:h.line,offset:h.offset+1};if(l.word){let p=a.slice(o(a,this.source.start),o(a,this.source.end)).indexOf(l.word);p!==-1&&(h=this.positionInside(p),c=this.positionInside(p+l.word.length))}else l.start?h={column:l.start.column,line:l.start.line,offset:o(a,l.start)}:l.index&&(h=this.positionInside(l.index)),l.end?c={column:l.end.column,line:l.end.line,offset:o(a,l.end)}:typeof l.endIndex=="number"?c=this.positionInside(l.endIndex):l.index&&(c=this.positionInside(l.index+1));return(c.line<h.line||c.line===h.line&&c.column<=h.column)&&(c={column:h.column+1,line:h.line,offset:h.offset+1}),{end:c,start:h}}raw(l,a){return new t().raw(this,l,a)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let a=this,h=!1;for(let c of l)c===this?h=!0:h?(this.parent.insertAfter(a,c),a=c):this.parent.insertBefore(a,c);h||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,a){let h={},c=a==null;a=a||new Map;let f=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))h[p]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,a):g);else if(typeof m=="object"&&m.toJSON)h[p]=m.toJSON(null,a);else if(p==="source"){if(m==null)continue;let g=a.get(m.input);g==null&&(g=f,a.set(m.input,f),f++),h[p]={end:m.end,inputId:g,start:m.start}}else h[p]=m}return c&&(h.inputs=[...a.keys()].map(p=>p.toJSON())),h}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=r){l.stringify&&(l=l.stringify);let a="";return l(this,h=>{a+=h}),a}warn(l,a,h={}){let c={node:this};for(let f in h)c[f]=h[f];return l.warn(a,c)}}return sn=u,u.default=u,sn}var nn,fl;function ms(){if(fl)return nn;fl=1;let e=ps();class t extends e{constructor(i){super(i),this.type="comment"}}return nn=t,t.default=t,nn}var on,hl;function gs(){if(hl)return on;hl=1;let e=ps();class t extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(i){i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=be(G({},i),{value:String(i.value)})),super(i),this.type="decl"}}return on=t,t.default=t,on}var an,dl;function gr(){if(dl)return an;dl=1;let e=ms(),t=gs(),r=ps(),{isClean:i,my:s}=Uo(),n,o,u,d;function l(c){return c.map(f=>(f.nodes&&(f.nodes=l(f.nodes)),delete f.source,f))}function a(c){if(c[i]=!1,c.proxyOf.nodes)for(let f of c.proxyOf.nodes)a(f)}class h 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(...f){for(let p of f){let m=this.normalize(p,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(f){if(super.cleanRaws(f),this.nodes)for(let p of this.nodes)p.cleanRaws(f)}each(f){if(!this.proxyOf.nodes)return;let p=this.getIterator(),m,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(m=this.indexes[p],g=f(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(f){return this.nodes.every(f)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let f=this.lastEach;return this.indexes[f]=0,f}getProxyProcessor(){return{get(f,p){return p==="proxyOf"?f:f[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...m)=>f[p](...m.map(g=>typeof g=="function"?(w,v)=>g(w.toProxy(),v):g)):p==="every"||p==="some"?m=>f[p]((g,...w)=>m(g.toProxy(),...w)):p==="root"?()=>f.root().toProxy():p==="nodes"?f.nodes.map(m=>m.toProxy()):p==="first"||p==="last"?f[p].toProxy():f[p]:f[p]},set(f,p,m){return f[p]===m||(f[p]=m,(p==="name"||p==="params"||p==="selector")&&f.markDirty()),!0}}}index(f){return typeof f=="number"?f:(f.proxyOf&&(f=f.proxyOf),this.proxyOf.nodes.indexOf(f))}insertAfter(f,p){let m=this.index(f),g=this.normalize(p,this.proxyOf.nodes[m]).reverse();m=this.index(f);for(let v of g)this.proxyOf.nodes.splice(m+1,0,v);let w;for(let v in this.indexes)w=this.indexes[v],m<w&&(this.indexes[v]=w+g.length);return this.markDirty(),this}insertBefore(f,p){let m=this.index(f),g=m===0?"prepend":!1,w=this.normalize(p,this.proxyOf.nodes[m],g).reverse();m=this.index(f);for(let S of w)this.proxyOf.nodes.splice(m,0,S);let v;for(let S in this.indexes)v=this.indexes[S],m<=v&&(this.indexes[S]=v+w.length);return this.markDirty(),this}normalize(f,p){if(typeof f=="string")f=l(o(f).nodes);else if(typeof f=="undefined")f=[];else if(Array.isArray(f)){f=f.slice(0);for(let g of f)g.parent&&g.parent.removeChild(g,"ignore")}else if(f.type==="root"&&this.type!=="document"){f=f.nodes.slice(0);for(let g of f)g.parent&&g.parent.removeChild(g,"ignore")}else if(f.type)f=[f];else if(f.prop){if(typeof f.value=="undefined")throw new Error("Value field is missed in node creation");typeof f.value!="string"&&(f.value=String(f.value)),f=[new t(f)]}else if(f.selector||f.selectors)f=[new d(f)];else if(f.name)f=[new n(f)];else if(f.text)f=[new e(f)];else throw new Error("Unknown node type in node creation");return f.map(g=>(g[s]||h.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[i]&&a(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(...f){f=f.reverse();for(let p of f){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(f){return f.parent=this,this.proxyOf.nodes.push(f),this}removeAll(){for(let f of this.proxyOf.nodes)f.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(f){f=this.index(f),this.proxyOf.nodes[f].parent=void 0,this.proxyOf.nodes.splice(f,1);let p;for(let m in this.indexes)p=this.indexes[m],p>=f&&(this.indexes[m]=p-1);return this.markDirty(),this}replaceValues(f,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(f,m))}),this.markDirty(),this}some(f){return this.nodes.some(f)}walk(f){return this.each((p,m)=>{let g;try{g=f(p,m)}catch(w){throw p.addToError(w)}return g!==!1&&p.walk&&(g=p.walk(f)),g})}walkAtRules(f,p){return p?f instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&f.test(m.name))return p(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===f)return p(m,g)}):(p=f,this.walk((m,g)=>{if(m.type==="atrule")return p(m,g)}))}walkComments(f){return this.walk((p,m)=>{if(p.type==="comment")return f(p,m)})}walkDecls(f,p){return p?f instanceof RegExp?this.walk((m,g)=>{if(m.type==="decl"&&f.test(m.prop))return p(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===f)return p(m,g)}):(p=f,this.walk((m,g)=>{if(m.type==="decl")return p(m,g)}))}walkRules(f,p){return p?f instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&f.test(m.selector))return p(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===f)return p(m,g)}):(p=f,this.walk((m,g)=>{if(m.type==="rule")return p(m,g)}))}}return h.registerParse=c=>{o=c},h.registerRule=c=>{d=c},h.registerAtRule=c=>{n=c},h.registerRoot=c=>{u=c},an=h,h.default=h,h.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,n.prototype):c.type==="rule"?Object.setPrototypeOf(c,d.prototype):c.type==="decl"?Object.setPrototypeOf(c,t.prototype):c.type==="comment"?Object.setPrototypeOf(c,e.prototype):c.type==="root"&&Object.setPrototypeOf(c,u.prototype),c[s]=!0,c.nodes&&c.nodes.forEach(f=>{h.rebuild(f)})},an}var ln,pl;function $o(){if(pl)return ln;pl=1;let e=gr();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return ln=t,t.default=t,e.registerAtRule(t),ln}var un,ml;function Wo(){if(ml)return un;ml=1;let e=gr(),t,r;class i extends e{constructor(n){super(G({type:"document"},n)),this.nodes||(this.nodes=[])}toResult(n={}){return new t(new r,this,n).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},un=i,i.default=i,un}var cn,gl;function wp(){if(gl)return cn;gl=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return cn={nanoid:(i=21)=>{let s="",n=i|0;for(;n--;)s+=e[Math.random()*64|0];return s},customAlphabet:(i,s=21)=>(n=s)=>{let o="",u=n|0;for(;u--;)o+=i[Math.random()*i.length|0];return o}},cn}var fn,vl;function pc(){if(vl)return fn;vl=1;let{existsSync:e,readFileSync:t}=ct,{dirname:r,join:i}=ct,{SourceMapConsumer:s,SourceMapGenerator:n}=ct;function o(d){return Buffer?Buffer.from(d,"base64").toString():window.atob(d)}class u{constructor(l,a){if(a.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let h=a.map?a.map.prev:void 0,c=this.loadMap(a.from,h);!this.mapFile&&a.from&&(this.mapFile=a.from),this.mapFile&&(this.root=r(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(l){let a=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,f=/^data:application\/json,/,p=l.match(c)||l.match(f);if(p)return decodeURIComponent(l.substr(p[0].length));let m=l.match(a)||l.match(h);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 a=l.match(/\/\*\s*# sourceMappingURL=/g);if(!a)return;let h=l.lastIndexOf(a.pop()),c=l.indexOf("*/",h);h>-1&&c>-1&&(this.annotation=this.getAnnotationURL(l.substring(h,c)))}loadFile(l){if(this.root=r(l),e(l))return this.mapFile=l,t(l,"utf-8").toString().trim()}loadMap(l,a){if(a===!1)return!1;if(a){if(typeof a=="string")return a;if(typeof a=="function"){let h=a(l);if(h){let c=this.loadFile(h);if(!c)throw new Error("Unable to load previous source map: "+h.toString());return c}}else{if(a instanceof s)return n.fromSourceMap(a).toString();if(a instanceof n)return a.toString();if(this.isMap(a))return JSON.stringify(a);throw new Error("Unsupported previous source map format: "+a.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return l&&(h=i(r(l),h)),this.loadFile(h)}}}startWith(l,a){return l?l.substr(0,a.length)===a:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return fn=u,u.default=u,fn}var hn,yl;function vs(){if(yl)return hn;yl=1;let{nanoid:e}=wp(),{isAbsolute:t,resolve:r}=ct,{SourceMapConsumer:i,SourceMapGenerator:s}=ct,{fileURLToPath:n,pathToFileURL:o}=ct,u=Bo(),d=pc(),l=ct,a=Symbol("lineToIndexCache"),h=!!(i&&s),c=!!(r&&t);function f(m){if(m[a])return m[a];let g=m.css.split(`
64
+ `),w=new Array(g.length),v=0;for(let S=0,E=g.length;S<E;S++)w[S]=v,v+=g[S].length+1;return m[a]=w,w}class p{get from(){return this.file||this.id}constructor(g,w={}){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,w.document&&(this.document=w.document.toString()),w.from&&(!c||/^\w+:\/\//.test(w.from)||t(w.from)?this.file=w.from:this.file=r(w.from)),c&&h){let v=new d(this.css,w);if(v.text){this.map=v;let S=v.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,w,v,S={}){let E,y,b,_,C;if(w&&typeof w=="object"){let x=w,I=v;if(typeof x.offset=="number"){_=x.offset;let D=this.fromOffset(_);w=D.line,v=D.col}else w=x.line,v=x.column,_=this.fromLineAndColumn(w,v);if(typeof I.offset=="number"){b=I.offset;let D=this.fromOffset(b);y=D.line,E=D.col}else y=I.line,E=I.column,b=this.fromLineAndColumn(I.line,I.column)}else if(v)_=this.fromLineAndColumn(w,v);else{_=w;let x=this.fromOffset(_);w=x.line,v=x.col}let M=this.origin(w,v,y,E);return M?C=new u(g,M.endLine===void 0?M.line:{column:M.column,line:M.line},M.endLine===void 0?M.column:{column:M.endColumn,line:M.endLine},M.source,M.file,S.plugin):C=new u(g,y===void 0?w:{column:v,line:w},y===void 0?v:{column:E,line:y},this.css,this.file,S.plugin),C.input={column:v,endColumn:E,endLine:y,endOffset:b,line:w,offset:_,source:this.css},this.file&&(o&&(C.input.url=o(this.file).toString()),C.input.file=this.file),C}fromLineAndColumn(g,w){return f(this)[g-1]+w-1}fromOffset(g){let w=f(this),v=w[w.length-1],S=0;if(g>=v)S=w.length-1;else{let E=w.length-2,y;for(;S<E;)if(y=S+(E-S>>1),g<w[y])E=y-1;else if(g>=w[y+1])S=y+1;else{S=y;break}}return{col:g-w[S]+1,line:S+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:r(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,w,v,S){if(!this.map)return!1;let E=this.map.consumer(),y=E.originalPositionFor({column:w,line:g});if(!y.source)return!1;let b;typeof v=="number"&&(b=E.originalPositionFor({column:S,line:v}));let _;t(y.source)?_=o(y.source):_=new URL(y.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let C={column:y.column,endColumn:b&&b.column,endLine:b&&b.line,line:y.line,url:_.toString()};if(_.protocol==="file:")if(n)C.file=n(_);else throw new Error("file: protocol is not available in this PostCSS build");let M=E.sourceContentFor(y.source);return M&&(C.source=M),C}toJSON(){let g={};for(let w of["hasBOM","css","file","id"])this[w]!=null&&(g[w]=this[w]);return this.map&&(g.map=G({},this.map),g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return hn=p,p.default=p,l&&l.registerInput&&l.registerInput(p),hn}var dn,wl;function mi(){if(wl)return dn;wl=1;let e=gr(),t,r;class i extends e{constructor(n){super(n),this.type="root",this.nodes||(this.nodes=[])}normalize(n,o,u){let d=super.normalize(n);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(n,o){let u=this.index(n);return!o&&u===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[u].raws.before),super.removeChild(n)}toResult(n={}){return new t(new r,this,n).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},dn=i,i.default=i,e.registerRoot(i),dn}var pn,bl;function mc(){if(bl)return pn;bl=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
65
+ `," "];return e.split(t,r)},split(t,r,i){let s=[],n="",o=!1,u=0,d=!1,l="",a=!1;for(let h of t)a?a=!1:h==="\\"?a=!0:d?h===l&&(d=!1):h==='"'||h==="'"?(d=!0,l=h):h==="("?u+=1:h===")"?u>0&&(u-=1):u===0&&r.includes(h)&&(o=!0),o?(n!==""&&s.push(n.trim()),n="",o=!1):n+=h;return(i||n!=="")&&s.push(n.trim()),s}};return pn=e,e.default=e,pn}var mn,Sl;function zo(){if(Sl)return mn;Sl=1;let e=gr(),t=mc();class r extends e{get selectors(){return t.comma(this.selector)}set selectors(s){let n=this.selector?this.selector.match(/,\s*/):null,o=n?n[0]:","+this.raw("between","beforeOpen");this.selector=s.join(o)}constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}}return mn=r,r.default=r,e.registerRule(r),mn}var gn,_l;function bp(){if(_l)return gn;_l=1;let e=$o(),t=ms(),r=gs(),i=vs(),s=pc(),n=mi(),o=zo();function u(d,l){if(Array.isArray(d))return d.map(p=>u(p));let c=d,{inputs:a}=c,h=Vr(c,["inputs"]);if(a){l=[];for(let p of a){let m=be(G({},p),{__proto__:i.prototype});m.map&&(m.map=be(G({},m.map),{__proto__:s.prototype})),l.push(m)}}if(h.nodes&&(h.nodes=d.nodes.map(p=>u(p,l))),h.source){let f=h.source,{inputId:p}=f,m=Vr(f,["inputId"]);h.source=m,p!=null&&(h.source.input=l[p])}if(h.type==="root")return new n(h);if(h.type==="decl")return new r(h);if(h.type==="rule")return new o(h);if(h.type==="comment")return new t(h);if(h.type==="atrule")return new e(h);throw new Error("Unknown node type: "+d.type)}return gn=u,u.default=u,gn}var vn,El;function gc(){if(El)return vn;El=1;let{dirname:e,relative:t,resolve:r,sep:i}=ct,{SourceMapConsumer:s,SourceMapGenerator:n}=ct,{pathToFileURL:o}=ct,u=vs(),d=!!(s&&n),l=!!(e&&r&&t&&i);class a{constructor(c,f,p,m){this.stringify=c,this.mapOpts=p.map||{},this.root=f,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 c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let f=`
66
66
  `;this.css.includes(`\r
67
- `)&&(h=`\r
68
- `),this.css+=h+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let h=this.toUrl(this.path(c.file)),p=c.root||e(c.file),m;this.mapOpts.sourcesContent===!1?(m=new s(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,h,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let h=this.root.nodes.length-1;h>=0;h--)c=this.root.nodes[h],c.type==="comment"&&c.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 c="";return this.stringify(this.root,h=>{c+=h}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=o.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new o({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 o({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,h=1,p="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,w;this.stringify(this.root,(v,S,E)=>{if(this.css+=v,S&&E!=="end"&&(m.generated.line=c,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))),w=v.match(/\n/g),w?(c+=w.length,g=v.lastIndexOf(`
69
- `),h=v.length-g):h+=v.length,S&&E!=="start"){let y=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==y.last||y.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=c,m.generated.column=h-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=c,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(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c!="undefined"&&c!==!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(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let h=this.memoizedPaths.get(c);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,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let h=c.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let c=new u(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(h=>{if(h.source){let p=h.source.input.from;if(p&&!c[p]){c[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(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let h=this.memoizedFileURLs.get(c);if(h)return h;if(n){let p=n(c).toString();return this.memoizedFileURLs.set(c,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let h=this.memoizedURLs.get(c);if(h)return h;i==="\\"&&(c=c.replace(/\\/g,"/"));let p=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,p),p}}return vn=a,vn}var yn,El;function wp(){if(El)return yn;El=1;const e=39,t=34,r=92,i=47,s=10,o=32,n=12,u=9,d=13,l=91,a=93,f=40,c=41,h=123,p=125,m=59,g=42,w=58,v=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return yn=function(C,N={}){let x=C.css.valueOf(),I=N.ignoreErrors,D,ae,ee,R,ie,L,q,P,z,Ce,we=x.length,O=0,ue=[],k=[];function $(){return O}function Z(se){throw C.error("Unclosed "+se,O)}function B(){return k.length===0&&O>=we}function he(se){if(k.length)return k.pop();if(O>=we)return;let ke=se?se.ignoreUnclosed:!1;switch(D=x.charCodeAt(O),D){case s:case o:case u:case d:case n:{R=O;do R+=1,D=x.charCodeAt(R);while(D===o||D===s||D===u||D===d||D===n);L=["space",x.slice(O,R)],O=R-1;break}case l:case a:case h:case p:case w:case m:case c:{let mt=String.fromCharCode(D);L=[mt,mt,O];break}case f:{if(Ce=ue.length?ue.pop()[1]:"",z=x.charCodeAt(O+1),Ce==="url"&&z!==e&&z!==t&&z!==o&&z!==s&&z!==u&&z!==n&&z!==d){R=O;do{if(q=!1,R=x.indexOf(")",R+1),R===-1)if(I||ke){R=O;break}else Z("bracket");for(P=R;x.charCodeAt(P-1)===r;)P-=1,q=!q}while(q);L=["brackets",x.slice(O,R+1),O,R],O=R}else R=x.indexOf(")",O+1),ae=x.slice(O,R+1),R===-1||y.test(ae)?L=["(","(",O]:(L=["brackets",ae,O,R],O=R);break}case e:case t:{ie=D===e?"'":'"',R=O;do{if(q=!1,R=x.indexOf(ie,R+1),R===-1)if(I||ke){R=O+1;break}else Z("string");for(P=R;x.charCodeAt(P-1)===r;)P-=1,q=!q}while(q);L=["string",x.slice(O,R+1),O,R],O=R;break}case v:{S.lastIndex=O+1,S.test(x),S.lastIndex===0?R=x.length-1:R=S.lastIndex-2,L=["at-word",x.slice(O,R+1),O,R],O=R;break}case r:{for(R=O,ee=!0;x.charCodeAt(R+1)===r;)R+=1,ee=!ee;if(D=x.charCodeAt(R+1),ee&&D!==i&&D!==o&&D!==s&&D!==u&&D!==d&&D!==n&&(R+=1,b.test(x.charAt(R)))){for(;b.test(x.charAt(R+1));)R+=1;x.charCodeAt(R+1)===o&&(R+=1)}L=["word",x.slice(O,R+1),O,R],O=R;break}default:{D===i&&x.charCodeAt(O+1)===g?(R=x.indexOf("*/",O+2)+1,R===0&&(I||ke?R=x.length:Z("comment")),L=["comment",x.slice(O,R+1),O,R],O=R):(E.lastIndex=O+1,E.test(x),E.lastIndex===0?R=x.length-1:R=E.lastIndex-2,L=["word",x.slice(O,R+1),O,R],ue.push(L),O=R);break}}return O++,L}function ce(se){k.push(se)}return{back:ce,endOfFile:B,nextToken:he,position:$}},yn}var wn,Cl;function bp(){if(Cl)return wn;Cl=1;let e=Uo(),t=ms(),r=gs(),i=mi(),s=Wo(),o=wp();const n={empty:!0,space:!0};function u(l){for(let a=l.length-1;a>=0;a--){let f=l[a],c=f[3]||f[2];if(c)return c}}class d{constructor(a){this.input=a,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:a,start:{column:1,line:1,offset:0}}}atrule(a){let f=new e;f.name=a[1].slice(1),f.name===""&&this.unnamedAtrule(f,a),this.init(f,a[2]);let c,h,p,m=!1,g=!1,w=[],v=[];for(;!this.tokenizer.endOfFile();){if(a=this.tokenizer.nextToken(),c=a[0],c==="("||c==="["?v.push(c==="("?")":"]"):c==="{"&&v.length>0?v.push("}"):c===v[v.length-1]&&v.pop(),v.length===0)if(c===";"){f.source.end=this.getPosition(a[2]),f.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(w.length>0){for(p=w.length-1,h=w[p];h&&h[0]==="space";)h=w[--p];h&&(f.source.end=this.getPosition(h[3]||h[2]),f.source.end.offset++)}this.end(a);break}else w.push(a);else w.push(a);if(this.tokenizer.endOfFile()){m=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(w),w.length?(f.raws.afterName=this.spacesAndCommentsFromStart(w),this.raw(f,"params",w),m&&(a=w[w.length-1],f.source.end=this.getPosition(a[3]||a[2]),f.source.end.offset++,this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),g&&(f.nodes=[],this.current=f)}checkMissedSemicolon(a){let f=this.colon(a);if(f===!1)return;let c=0,h;for(let p=f-1;p>=0&&(h=a[p],!(h[0]!=="space"&&(c+=1,c===2)));p--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(a){let f=0,c,h,p;for(let[m,g]of a.entries()){if(h=g,p=h[0],p==="("&&(f+=1),p===")"&&(f-=1),f===0&&p===":")if(!c)this.doubleColon(h);else{if(c[0]==="word"&&c[1]==="progid")continue;return m}c=h}return!1}comment(a){let f=new t;this.init(f,a[2]),f.source.end=this.getPosition(a[3]||a[2]),f.source.end.offset++;let c=a[1].slice(2,-2);if(/^\s*$/.test(c))f.text="",f.raws.left=c,f.raws.right="";else{let h=c.match(/^(\s*)([^]*\S)(\s*)$/);f.text=h[2],f.raws.left=h[1],f.raws.right=h[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(a,f){let c=new r;this.init(c,a[0][2]);let h=a[a.length-1];for(h[0]===";"&&(this.semicolon=!0,a.pop()),c.source.end=this.getPosition(h[3]||h[2]||u(a)),c.source.end.offset++;a[0][0]!=="word";)a.length===1&&this.unknownWord(a),c.raws.before+=a.shift()[1];for(c.source.start=this.getPosition(a[0][2]),c.prop="";a.length;){let v=a[0][0];if(v===":"||v==="space"||v==="comment")break;c.prop+=a.shift()[1]}c.raws.between="";let p;for(;a.length;)if(p=a.shift(),p[0]===":"){c.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),c.raws.between+=p[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],g;for(;a.length&&(g=a[0][0],!(g!=="space"&&g!=="comment"));)m.push(a.shift());this.precheckMissedSemicolon(a);for(let v=a.length-1;v>=0;v--){if(p=a[v],p[1].toLowerCase()==="!important"){c.important=!0;let S=this.stringFrom(a,v);S=this.spacesFromEnd(a)+S,S!==" !important"&&(c.raws.important=S);break}else if(p[1].toLowerCase()==="important"){let S=a.slice(0),E="";for(let y=v;y>0;y--){let b=S[y][0];if(E.trim().startsWith("!")&&b!=="space")break;E=S.pop()[1]+E}E.trim().startsWith("!")&&(c.important=!0,c.raws.important=E,a=S)}if(p[0]!=="space"&&p[0]!=="comment")break}a.some(v=>v[0]!=="space"&&v[0]!=="comment")&&(c.raws.between+=m.map(v=>v[1]).join(""),m=[]),this.raw(c,"value",m.concat(a),f),c.value.includes(":")&&!f&&this.checkMissedSemicolon(a)}doubleColon(a){throw this.input.error("Double colon",{offset:a[2]},{offset:a[2]+a[1].length})}emptyRule(a){let f=new s;this.init(f,a[2]),f.selector="",f.raws.between="",this.current=f}end(a){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(a[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(a)}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(a){if(this.spaces+=a[1],this.current.nodes){let f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="",f.source.end=this.getPosition(a[2]),f.source.end.offset+=f.raws.ownSemicolon.length)}}getPosition(a){let f=this.input.fromOffset(a);return{column:f.col,line:f.line,offset:a}}init(a,f){this.current.push(a),a.source={input:this.input,start:this.getPosition(f)},a.raws.before=this.spaces,this.spaces="",a.type!=="comment"&&(this.semicolon=!1)}other(a){let f=!1,c=null,h=!1,p=null,m=[],g=a[1].startsWith("--"),w=[],v=a;for(;v;){if(c=v[0],w.push(v),c==="("||c==="[")p||(p=v),m.push(c==="("?")":"]");else if(g&&h&&c==="{")p||(p=v),m.push("}");else if(m.length===0)if(c===";")if(h){this.decl(w,g);return}else break;else if(c==="{"){this.rule(w);return}else if(c==="}"){this.tokenizer.back(w.pop()),f=!0;break}else c===":"&&(h=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));v=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(f=!0),m.length>0&&this.unclosedBracket(p),f&&h){if(!g)for(;w.length&&(v=w[w.length-1][0],!(v!=="space"&&v!=="comment"));)this.tokenizer.back(w.pop());this.decl(w,g)}else this.unknownWord(w)}parse(){let a;for(;!this.tokenizer.endOfFile();)switch(a=this.tokenizer.nextToken(),a[0]){case"space":this.spaces+=a[1];break;case";":this.freeSemicolon(a);break;case"}":this.end(a);break;case"comment":this.comment(a);break;case"at-word":this.atrule(a);break;case"{":this.emptyRule(a);break;default:this.other(a);break}this.endFile()}precheckMissedSemicolon(){}raw(a,f,c,h){let p,m,g=c.length,w="",v=!0,S,E;for(let y=0;y<g;y+=1)p=c[y],m=p[0],m==="space"&&y===g-1&&!h?v=!1:m==="comment"?(E=c[y-1]?c[y-1][0]:"empty",S=c[y+1]?c[y+1][0]:"empty",!n[E]&&!n[S]?w.slice(-1)===","?v=!1:w+=p[1]:v=!1):w+=p[1];if(!v){let y=c.reduce((b,_)=>b+_[1],"");a.raws[f]={raw:y,value:w}}a[f]=w}rule(a){a.pop();let f=new s;this.init(f,a[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(a),this.raw(f,"selector",a),this.current=f}spacesAndCommentsFromEnd(a){let f,c="";for(;a.length&&(f=a[a.length-1][0],!(f!=="space"&&f!=="comment"));)c=a.pop()[1]+c;return c}spacesAndCommentsFromStart(a){let f,c="";for(;a.length&&(f=a[0][0],!(f!=="space"&&f!=="comment"));)c+=a.shift()[1];return c}spacesFromEnd(a){let f,c="";for(;a.length&&(f=a[a.length-1][0],f==="space");)c=a.pop()[1]+c;return c}stringFrom(a,f){let c="";for(let h=f;h<a.length;h++)c+=a[h][1];return a.splice(f,a.length-f),c}unclosedBlock(){let a=this.current.source.start;throw this.input.error("Unclosed block",a.line,a.column)}unclosedBracket(a){throw this.input.error("Unclosed bracket",{offset:a[2]},{offset:a[2]+1})}unexpectedClose(a){throw this.input.error("Unexpected }",{offset:a[2]},{offset:a[2]+1})}unknownWord(a){throw this.input.error("Unknown word "+a[0][1],{offset:a[0][2]},{offset:a[0][2]+a[0][1].length})}unnamedAtrule(a,f){throw this.input.error("At-rule without name",{offset:f[2]},{offset:f[2]+f[1].length})}}return wn=d,wn}var bn,xl;function zo(){if(xl)return bn;xl=1;let e=gr(),t=vs(),r=bp();function i(s,o){let n=new t(s,o),u=new r(n);try{u.parse()}catch(d){throw d}return u.root}return bn=i,i.default=i,e.registerParse(i),bn}var Sn,Rl;function gc(){if(Rl)return Sn;Rl=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let s=i.node.rangeBy(i);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in i)this[s]=i[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Sn=e,e.default=e,Sn}var _n,Ml;function qo(){if(Ml)return _n;Ml=1;let e=gc();class t{get content(){return this.css}constructor(i,s,o){this.processor=i,this.messages=[],this.root=s,this.opts=o,this.css="",this.map=void 0}toString(){return this.css}warn(i,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let o=new e(i,s);return this.messages.push(o),o}warnings(){return this.messages.filter(i=>i.type==="warning")}}return _n=t,t.default=t,_n}var En,Nl;function vc(){if(Nl)return En;Nl=1;let e={};return En=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},En}var Cn,Al;function yc(){if(Al)return Cn;Al=1;let e=gr(),t=$o(),r=mc(),i=zo(),s=qo(),o=mi(),n=ds(),{isClean:u,my:d}=Bo(),l=vc();const a={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={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},c={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function p(E){return typeof E=="object"&&typeof E.then=="function"}function m(E){let y=!1,b=a[E.type];return E.type==="decl"?y=E.prop.toLowerCase():E.type==="atrule"&&(y=E.name.toLowerCase()),y&&E.append?[b,b+"-"+y,h,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:E.append?[b,h,b+"Exit"]:[b,b+"Exit"]}function g(E){let y;return E.type==="document"?y=["Document",h,"DocumentExit"]:E.type==="root"?y=["Root",h,"RootExit"]:y=m(E),{eventIndex:0,events:y,iterator:0,node:E,visitorIndex:0,visitors:[]}}function w(E){return E[u]=!1,E.nodes&&E.nodes.forEach(y=>w(y)),E}let v={};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(y,b,_){this.stringified=!1,this.processed=!1;let C;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))C=w(b);else if(b instanceof S||b instanceof s)C=w(b.root),b.map&&(typeof _.map=="undefined"&&(_.map={}),_.map.inline||(_.map.inline=!1),_.map.prev=b.map);else{let N=i;_.syntax&&(N=_.syntax.parse),_.parser&&(N=_.parser),N.parse&&(N=N.parse);try{C=N(b,_)}catch(x){this.processed=!0,this.error=x}C&&!C[d]&&e.rebuild(C)}this.result=new s(y,C,_),this.helpers=be(G({},v),{postcss:v,result:this.result}),this.plugins=this.processor.plugins.map(N=>typeof N=="object"&&N.prepare?G(G({},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(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let _=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=_.postcssPlugin,y.setMessage()):_.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(b,_,C)=>{this.listeners[_]||(this.listeners[_]=[]),this.listeners[_].push([b,C])};for(let b of this.plugins)if(typeof b=="object")for(let _ in b){if(!f[_]&&/^[A-Z]/.test(_))throw new Error(`Unknown event ${_} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[_])if(typeof b[_]=="object")for(let C in b[_])C==="*"?y(b,_,b[_][C]):y(b,_+"-"+C.toLowerCase(),b[_][C]);else typeof b[_]=="function"&&y(b,_,b[_])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],_=this.runOnRoot(b);if(p(_))try{await _}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[u];){y[u]=!0;let b=[g(y)];for(;b.length>0;){let _=this.visitTick(b);if(p(_))try{await _}catch(C){let N=b[b.length-1].node;throw this.handleError(C,N)}}}if(this.listeners.OnceExit)for(let[b,_]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let C=y.nodes.map(N=>_(N,this.helpers));await Promise.all(C)}else await _(y,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(_=>y.Once(_,this.helpers));return p(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(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 y=this.result.opts,b=n;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let C=new r(b,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let b=this.runOnRoot(y);if(p(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[u];)y[u]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[_,C]of y){this.result.lastPlugin=_;let N;try{N=C(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(y){let b=y[y.length-1],{node:_,visitors:C}=b;if(_.type!=="root"&&_.type!=="document"&&!_.parent){y.pop();return}if(C.length>0&&b.visitorIndex<C.length){let[x,I]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=x;try{return I(_.toProxy(),this.helpers)}catch(D){throw this.handleError(D,_)}}if(b.iterator!==0){let x=b.iterator,I;for(;I=_.nodes[_.indexes[x]];)if(_.indexes[x]+=1,!I[u]){I[u]=!0,y.push(g(I));return}b.iterator=0,delete _.indexes[x]}let N=b.events;for(;b.eventIndex<N.length;){let x=N[b.eventIndex];if(b.eventIndex+=1,x===h){_.nodes&&_.nodes.length&&(_[u]=!0,b.iterator=_.getIterator());return}else if(this.listeners[x]){b.visitors=this.listeners[x];return}}y.pop()}walkSync(y){y[u]=!0;let b=m(y);for(let _ of b)if(_===h)y.nodes&&y.each(C=>{C[u]||this.walkSync(C)});else{let C=this.listeners[_];if(C&&this.visitSync(C,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return S.registerPostcss=E=>{v=E},Cn=S,S.default=S,o.registerLazyResult(S),t.registerLazyResult(S),Cn}var xn,Ol;function Sp(){if(Ol)return xn;Ol=1;let e=mc(),t=zo();const r=qo();let i=ds(),s=vc();class o{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 a,f=i;this.result=new r(this._processor,a,this._opts),this.result.css=d;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let h=new e(f,a,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 xn=o,o.default=o,xn}var Rn,Dl;function _p(){if(Dl)return Rn;Dl=1;let e=$o(),t=yc(),r=Sp(),i=mi();class s{constructor(n=[]){this.version="8.5.6",this.plugins=this.normalize(n)}normalize(n){let u=[];for(let d of n)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(n,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new r(this,n,u):new t(this,n,u)}use(n){return this.plugins=this.plugins.concat(this.normalize([n])),this}}return Rn=s,s.default=s,i.registerProcessor(s),e.registerProcessor(s),Rn}var Mn,Tl;function Ep(){if(Tl)return Mn;Tl=1;let e=Uo(),t=ms(),r=gr(),i=Fo(),s=gs(),o=$o(),n=yp(),u=vs(),d=yc(),l=pc(),a=ps(),f=zo(),c=_p(),h=qo(),p=mi(),m=Wo(),g=ds(),w=gc();function v(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new c(S)}return v.plugin=function(E,y){let b=!1;function _(...N){console&&console.warn&&!b&&(b=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
67
+ `)&&(f=`\r
68
+ `),this.css+=f+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let f=this.toUrl(this.path(c.file)),p=c.root||e(c.file),m;this.mapOpts.sourcesContent===!1?(m=new s(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,f,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let f=this.root.nodes.length-1;f>=0;f--)c=this.root.nodes[f],c.type==="comment"&&c.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(f)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),l&&d&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,f=>{c+=f}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=n.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new n({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 n({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,f=1,p="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,w;this.stringify(this.root,(v,S,E)=>{if(this.css+=v,S&&E!=="end"&&(m.generated.line=c,m.generated.column=f-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))),w=v.match(/\n/g),w?(c+=w.length,g=v.lastIndexOf(`
69
+ `),f=v.length-g):f+=v.length,S&&E!=="start"){let y=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==y.last||y.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=c,m.generated.column=f-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=c,m.generated.column=f-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c!="undefined"&&c!==!0?!1:this.previous().length?this.previous().some(f=>f.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(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let f=this.memoizedPaths.get(c);if(f)return f;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,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let f=c.source.input.map;this.previousMaps.includes(f)||this.previousMaps.push(f)}});else{let c=new u(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(f=>{if(f.source){let p=f.source.input.from;if(p&&!c[p]){c[p]=!0;let m=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(m,f.source.input.css)}}});else if(this.css){let f=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(f,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let f=this.memoizedFileURLs.get(c);if(f)return f;if(o){let p=o(c).toString();return this.memoizedFileURLs.set(c,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let f=this.memoizedURLs.get(c);if(f)return f;i==="\\"&&(c=c.replace(/\\/g,"/"));let p=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,p),p}}return vn=a,vn}var yn,Cl;function Sp(){if(Cl)return yn;Cl=1;const e=39,t=34,r=92,i=47,s=10,n=32,o=12,u=9,d=13,l=91,a=93,h=40,c=41,f=123,p=125,m=59,g=42,w=58,v=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return yn=function(C,M={}){let x=C.css.valueOf(),I=M.ignoreErrors,D,le,te,R,se,L,V,P,j,Ce,we=x.length,O=0,z=[],k=[];function W(){return O}function q(ne){throw C.error("Unclosed "+ne,O)}function B(){return k.length===0&&O>=we}function he(ne){if(k.length)return k.pop();if(O>=we)return;let ke=ne?ne.ignoreUnclosed:!1;switch(D=x.charCodeAt(O),D){case s:case n:case u:case d:case o:{R=O;do R+=1,D=x.charCodeAt(R);while(D===n||D===s||D===u||D===d||D===o);L=["space",x.slice(O,R)],O=R-1;break}case l:case a:case f:case p:case w:case m:case c:{let mt=String.fromCharCode(D);L=[mt,mt,O];break}case h:{if(Ce=z.length?z.pop()[1]:"",j=x.charCodeAt(O+1),Ce==="url"&&j!==e&&j!==t&&j!==n&&j!==s&&j!==u&&j!==o&&j!==d){R=O;do{if(V=!1,R=x.indexOf(")",R+1),R===-1)if(I||ke){R=O;break}else q("bracket");for(P=R;x.charCodeAt(P-1)===r;)P-=1,V=!V}while(V);L=["brackets",x.slice(O,R+1),O,R],O=R}else R=x.indexOf(")",O+1),le=x.slice(O,R+1),R===-1||y.test(le)?L=["(","(",O]:(L=["brackets",le,O,R],O=R);break}case e:case t:{se=D===e?"'":'"',R=O;do{if(V=!1,R=x.indexOf(se,R+1),R===-1)if(I||ke){R=O+1;break}else q("string");for(P=R;x.charCodeAt(P-1)===r;)P-=1,V=!V}while(V);L=["string",x.slice(O,R+1),O,R],O=R;break}case v:{S.lastIndex=O+1,S.test(x),S.lastIndex===0?R=x.length-1:R=S.lastIndex-2,L=["at-word",x.slice(O,R+1),O,R],O=R;break}case r:{for(R=O,te=!0;x.charCodeAt(R+1)===r;)R+=1,te=!te;if(D=x.charCodeAt(R+1),te&&D!==i&&D!==n&&D!==s&&D!==u&&D!==d&&D!==o&&(R+=1,b.test(x.charAt(R)))){for(;b.test(x.charAt(R+1));)R+=1;x.charCodeAt(R+1)===n&&(R+=1)}L=["word",x.slice(O,R+1),O,R],O=R;break}default:{D===i&&x.charCodeAt(O+1)===g?(R=x.indexOf("*/",O+2)+1,R===0&&(I||ke?R=x.length:q("comment")),L=["comment",x.slice(O,R+1),O,R],O=R):(E.lastIndex=O+1,E.test(x),E.lastIndex===0?R=x.length-1:R=E.lastIndex-2,L=["word",x.slice(O,R+1),O,R],z.push(L),O=R);break}}return O++,L}function ce(ne){k.push(ne)}return{back:ce,endOfFile:B,nextToken:he,position:W}},yn}var wn,xl;function _p(){if(xl)return wn;xl=1;let e=$o(),t=ms(),r=gs(),i=mi(),s=zo(),n=Sp();const o={empty:!0,space:!0};function u(l){for(let a=l.length-1;a>=0;a--){let h=l[a],c=h[3]||h[2];if(c)return c}}class d{constructor(a){this.input=a,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:a,start:{column:1,line:1,offset:0}}}atrule(a){let h=new e;h.name=a[1].slice(1),h.name===""&&this.unnamedAtrule(h,a),this.init(h,a[2]);let c,f,p,m=!1,g=!1,w=[],v=[];for(;!this.tokenizer.endOfFile();){if(a=this.tokenizer.nextToken(),c=a[0],c==="("||c==="["?v.push(c==="("?")":"]"):c==="{"&&v.length>0?v.push("}"):c===v[v.length-1]&&v.pop(),v.length===0)if(c===";"){h.source.end=this.getPosition(a[2]),h.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(w.length>0){for(p=w.length-1,f=w[p];f&&f[0]==="space";)f=w[--p];f&&(h.source.end=this.getPosition(f[3]||f[2]),h.source.end.offset++)}this.end(a);break}else w.push(a);else w.push(a);if(this.tokenizer.endOfFile()){m=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(w),w.length?(h.raws.afterName=this.spacesAndCommentsFromStart(w),this.raw(h,"params",w),m&&(a=w[w.length-1],h.source.end=this.getPosition(a[3]||a[2]),h.source.end.offset++,this.spaces=h.raws.between,h.raws.between="")):(h.raws.afterName="",h.params=""),g&&(h.nodes=[],this.current=h)}checkMissedSemicolon(a){let h=this.colon(a);if(h===!1)return;let c=0,f;for(let p=h-1;p>=0&&(f=a[p],!(f[0]!=="space"&&(c+=1,c===2)));p--);throw this.input.error("Missed semicolon",f[0]==="word"?f[3]+1:f[2])}colon(a){let h=0,c,f,p;for(let[m,g]of a.entries()){if(f=g,p=f[0],p==="("&&(h+=1),p===")"&&(h-=1),h===0&&p===":")if(!c)this.doubleColon(f);else{if(c[0]==="word"&&c[1]==="progid")continue;return m}c=f}return!1}comment(a){let h=new t;this.init(h,a[2]),h.source.end=this.getPosition(a[3]||a[2]),h.source.end.offset++;let c=a[1].slice(2,-2);if(/^\s*$/.test(c))h.text="",h.raws.left=c,h.raws.right="";else{let f=c.match(/^(\s*)([^]*\S)(\s*)$/);h.text=f[2],h.raws.left=f[1],h.raws.right=f[3]}}createTokenizer(){this.tokenizer=n(this.input)}decl(a,h){let c=new r;this.init(c,a[0][2]);let f=a[a.length-1];for(f[0]===";"&&(this.semicolon=!0,a.pop()),c.source.end=this.getPosition(f[3]||f[2]||u(a)),c.source.end.offset++;a[0][0]!=="word";)a.length===1&&this.unknownWord(a),c.raws.before+=a.shift()[1];for(c.source.start=this.getPosition(a[0][2]),c.prop="";a.length;){let v=a[0][0];if(v===":"||v==="space"||v==="comment")break;c.prop+=a.shift()[1]}c.raws.between="";let p;for(;a.length;)if(p=a.shift(),p[0]===":"){c.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),c.raws.between+=p[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],g;for(;a.length&&(g=a[0][0],!(g!=="space"&&g!=="comment"));)m.push(a.shift());this.precheckMissedSemicolon(a);for(let v=a.length-1;v>=0;v--){if(p=a[v],p[1].toLowerCase()==="!important"){c.important=!0;let S=this.stringFrom(a,v);S=this.spacesFromEnd(a)+S,S!==" !important"&&(c.raws.important=S);break}else if(p[1].toLowerCase()==="important"){let S=a.slice(0),E="";for(let y=v;y>0;y--){let b=S[y][0];if(E.trim().startsWith("!")&&b!=="space")break;E=S.pop()[1]+E}E.trim().startsWith("!")&&(c.important=!0,c.raws.important=E,a=S)}if(p[0]!=="space"&&p[0]!=="comment")break}a.some(v=>v[0]!=="space"&&v[0]!=="comment")&&(c.raws.between+=m.map(v=>v[1]).join(""),m=[]),this.raw(c,"value",m.concat(a),h),c.value.includes(":")&&!h&&this.checkMissedSemicolon(a)}doubleColon(a){throw this.input.error("Double colon",{offset:a[2]},{offset:a[2]+a[1].length})}emptyRule(a){let h=new s;this.init(h,a[2]),h.selector="",h.raws.between="",this.current=h}end(a){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(a[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(a)}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(a){if(this.spaces+=a[1],this.current.nodes){let h=this.current.nodes[this.current.nodes.length-1];h&&h.type==="rule"&&!h.raws.ownSemicolon&&(h.raws.ownSemicolon=this.spaces,this.spaces="",h.source.end=this.getPosition(a[2]),h.source.end.offset+=h.raws.ownSemicolon.length)}}getPosition(a){let h=this.input.fromOffset(a);return{column:h.col,line:h.line,offset:a}}init(a,h){this.current.push(a),a.source={input:this.input,start:this.getPosition(h)},a.raws.before=this.spaces,this.spaces="",a.type!=="comment"&&(this.semicolon=!1)}other(a){let h=!1,c=null,f=!1,p=null,m=[],g=a[1].startsWith("--"),w=[],v=a;for(;v;){if(c=v[0],w.push(v),c==="("||c==="[")p||(p=v),m.push(c==="("?")":"]");else if(g&&f&&c==="{")p||(p=v),m.push("}");else if(m.length===0)if(c===";")if(f){this.decl(w,g);return}else break;else if(c==="{"){this.rule(w);return}else if(c==="}"){this.tokenizer.back(w.pop()),h=!0;break}else c===":"&&(f=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));v=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),m.length>0&&this.unclosedBracket(p),h&&f){if(!g)for(;w.length&&(v=w[w.length-1][0],!(v!=="space"&&v!=="comment"));)this.tokenizer.back(w.pop());this.decl(w,g)}else this.unknownWord(w)}parse(){let a;for(;!this.tokenizer.endOfFile();)switch(a=this.tokenizer.nextToken(),a[0]){case"space":this.spaces+=a[1];break;case";":this.freeSemicolon(a);break;case"}":this.end(a);break;case"comment":this.comment(a);break;case"at-word":this.atrule(a);break;case"{":this.emptyRule(a);break;default:this.other(a);break}this.endFile()}precheckMissedSemicolon(){}raw(a,h,c,f){let p,m,g=c.length,w="",v=!0,S,E;for(let y=0;y<g;y+=1)p=c[y],m=p[0],m==="space"&&y===g-1&&!f?v=!1:m==="comment"?(E=c[y-1]?c[y-1][0]:"empty",S=c[y+1]?c[y+1][0]:"empty",!o[E]&&!o[S]?w.slice(-1)===","?v=!1:w+=p[1]:v=!1):w+=p[1];if(!v){let y=c.reduce((b,_)=>b+_[1],"");a.raws[h]={raw:y,value:w}}a[h]=w}rule(a){a.pop();let h=new s;this.init(h,a[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(a),this.raw(h,"selector",a),this.current=h}spacesAndCommentsFromEnd(a){let h,c="";for(;a.length&&(h=a[a.length-1][0],!(h!=="space"&&h!=="comment"));)c=a.pop()[1]+c;return c}spacesAndCommentsFromStart(a){let h,c="";for(;a.length&&(h=a[0][0],!(h!=="space"&&h!=="comment"));)c+=a.shift()[1];return c}spacesFromEnd(a){let h,c="";for(;a.length&&(h=a[a.length-1][0],h==="space");)c=a.pop()[1]+c;return c}stringFrom(a,h){let c="";for(let f=h;f<a.length;f++)c+=a[f][1];return a.splice(h,a.length-h),c}unclosedBlock(){let a=this.current.source.start;throw this.input.error("Unclosed block",a.line,a.column)}unclosedBracket(a){throw this.input.error("Unclosed bracket",{offset:a[2]},{offset:a[2]+1})}unexpectedClose(a){throw this.input.error("Unexpected }",{offset:a[2]},{offset:a[2]+1})}unknownWord(a){throw this.input.error("Unknown word "+a[0][1],{offset:a[0][2]},{offset:a[0][2]+a[0][1].length})}unnamedAtrule(a,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return wn=d,wn}var bn,Rl;function qo(){if(Rl)return bn;Rl=1;let e=gr(),t=vs(),r=_p();function i(s,n){let o=new t(s,n),u=new r(o);try{u.parse()}catch(d){throw d}return u.root}return bn=i,i.default=i,e.registerParse(i),bn}var Sn,Nl;function vc(){if(Nl)return Sn;Nl=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let s=i.node.rangeBy(i);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in i)this[s]=i[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Sn=e,e.default=e,Sn}var _n,Ml;function jo(){if(Ml)return _n;Ml=1;let e=vc();class t{get content(){return this.css}constructor(i,s,n){this.processor=i,this.messages=[],this.root=s,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(i,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let n=new e(i,s);return this.messages.push(n),n}warnings(){return this.messages.filter(i=>i.type==="warning")}}return _n=t,t.default=t,_n}var En,Al;function yc(){if(Al)return En;Al=1;let e={};return En=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},En}var Cn,Ol;function wc(){if(Ol)return Cn;Ol=1;let e=gr(),t=Wo(),r=gc(),i=qo(),s=jo(),n=mi(),o=ds(),{isClean:u,my:d}=Uo(),l=yc();const a={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},f=0;function p(E){return typeof E=="object"&&typeof E.then=="function"}function m(E){let y=!1,b=a[E.type];return E.type==="decl"?y=E.prop.toLowerCase():E.type==="atrule"&&(y=E.name.toLowerCase()),y&&E.append?[b,b+"-"+y,f,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:E.append?[b,f,b+"Exit"]:[b,b+"Exit"]}function g(E){let y;return E.type==="document"?y=["Document",f,"DocumentExit"]:E.type==="root"?y=["Root",f,"RootExit"]:y=m(E),{eventIndex:0,events:y,iterator:0,node:E,visitorIndex:0,visitors:[]}}function w(E){return E[u]=!1,E.nodes&&E.nodes.forEach(y=>w(y)),E}let v={};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(y,b,_){this.stringified=!1,this.processed=!1;let C;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))C=w(b);else if(b instanceof S||b instanceof s)C=w(b.root),b.map&&(typeof _.map=="undefined"&&(_.map={}),_.map.inline||(_.map.inline=!1),_.map.prev=b.map);else{let M=i;_.syntax&&(M=_.syntax.parse),_.parser&&(M=_.parser),M.parse&&(M=M.parse);try{C=M(b,_)}catch(x){this.processed=!0,this.error=x}C&&!C[d]&&e.rebuild(C)}this.result=new s(y,C,_),this.helpers=be(G({},v),{postcss:v,result:this.result}),this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?G(G({},M),M.prepare(this.result)):M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let _=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=_.postcssPlugin,y.setMessage()):_.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(b,_,C)=>{this.listeners[_]||(this.listeners[_]=[]),this.listeners[_].push([b,C])};for(let b of this.plugins)if(typeof b=="object")for(let _ in b){if(!h[_]&&/^[A-Z]/.test(_))throw new Error(`Unknown event ${_} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[_])if(typeof b[_]=="object")for(let C in b[_])C==="*"?y(b,_,b[_][C]):y(b,_+"-"+C.toLowerCase(),b[_][C]);else typeof b[_]=="function"&&y(b,_,b[_])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],_=this.runOnRoot(b);if(p(_))try{await _}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[u];){y[u]=!0;let b=[g(y)];for(;b.length>0;){let _=this.visitTick(b);if(p(_))try{await _}catch(C){let M=b[b.length-1].node;throw this.handleError(C,M)}}}if(this.listeners.OnceExit)for(let[b,_]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let C=y.nodes.map(M=>_(M,this.helpers));await Promise.all(C)}else await _(y,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(_=>y.Once(_,this.helpers));return p(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(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 y=this.result.opts,b=o;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let C=new r(b,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let b=this.runOnRoot(y);if(p(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[u];)y[u]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[_,C]of y){this.result.lastPlugin=_;let M;try{M=C(b,this.helpers)}catch(x){throw this.handleError(x,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(p(M))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:_,visitors:C}=b;if(_.type!=="root"&&_.type!=="document"&&!_.parent){y.pop();return}if(C.length>0&&b.visitorIndex<C.length){let[x,I]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=x;try{return I(_.toProxy(),this.helpers)}catch(D){throw this.handleError(D,_)}}if(b.iterator!==0){let x=b.iterator,I;for(;I=_.nodes[_.indexes[x]];)if(_.indexes[x]+=1,!I[u]){I[u]=!0,y.push(g(I));return}b.iterator=0,delete _.indexes[x]}let M=b.events;for(;b.eventIndex<M.length;){let x=M[b.eventIndex];if(b.eventIndex+=1,x===f){_.nodes&&_.nodes.length&&(_[u]=!0,b.iterator=_.getIterator());return}else if(this.listeners[x]){b.visitors=this.listeners[x];return}}y.pop()}walkSync(y){y[u]=!0;let b=m(y);for(let _ of b)if(_===f)y.nodes&&y.each(C=>{C[u]||this.walkSync(C)});else{let C=this.listeners[_];if(C&&this.visitSync(C,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return S.registerPostcss=E=>{v=E},Cn=S,S.default=S,n.registerLazyResult(S),t.registerLazyResult(S),Cn}var xn,Dl;function Ep(){if(Dl)return xn;Dl=1;let e=gc(),t=qo();const r=jo();let i=ds(),s=yc();class n{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 a,h=i;this.result=new r(this._processor,a,this._opts),this.result.css=d;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let f=new e(h,a,this._opts,d);if(f.isMap()){let[p,m]=f.generate();p&&(this.result.css=p),m&&(this.result.map=m)}else f.clearAnnotation(),this.result.css=f.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 xn=n,n.default=n,xn}var Rn,Tl;function Cp(){if(Tl)return Rn;Tl=1;let e=Wo(),t=wc(),r=Ep(),i=mi();class s{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 Rn=s,s.default=s,i.registerProcessor(s),e.registerProcessor(s),Rn}var Nn,kl;function xp(){if(kl)return Nn;kl=1;let e=$o(),t=ms(),r=gr(),i=Bo(),s=gs(),n=Wo(),o=bp(),u=vs(),d=wc(),l=mc(),a=ps(),h=qo(),c=Cp(),f=jo(),p=mi(),m=zo(),g=ds(),w=vc();function v(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new c(S)}return v.plugin=function(E,y){let b=!1;function _(...M){console&&console.warn&&!b&&(b=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
70
70
  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:
71
- https://www.w3ctech.com/topic/2226`));let x=y(...N);return x.postcssPlugin=E,x.postcssVersion=new c().version,x}let C;return Object.defineProperty(_,"postcss",{get(){return C||(C=_()),C}}),_.process=function(N,x,I){return v([_(I)]).process(N,x)},_},v.stringify=g,v.parse=f,v.fromJSON=n,v.list=l,v.comment=S=>new t(S),v.atRule=S=>new e(S),v.decl=S=>new s(S),v.rule=S=>new m(S),v.root=S=>new p(S),v.document=S=>new o(S),v.CssSyntaxError=i,v.Declaration=s,v.Container=r,v.Processor=c,v.Document=o,v.Comment=t,v.Warning=w,v.AtRule=e,v.Result=h,v.Input=u,v.Rule=m,v.Root=p,v.Node=a,d.registerPostcss(v),Mn=v,v.default=v,Mn}var Cp=Ep();const ge=hp(Cp);ge.stringify;ge.fromJSON;ge.plugin;ge.parse;ge.list;ge.document;ge.comment;ge.atRule;ge.rule;ge.decl;ge.root;ge.CssSyntaxError;ge.Declaration;ge.Container;ge.Processor;ge.Document;ge.Comment;ge.Warning;ge.AtRule;ge.Result;ge.Input;ge.Rule;ge.Root;ge.Node;var V=(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))(V||{});function xp(e){const t={},r=/;(?![^(]*\))/g,i=/:(.+)/,s=/\/\*.*?\*\//g;return e.replace(s,"").split(r).forEach(function(o){if(o){const n=o.split(i);n.length>1&&(t[ro(n[0].trim())]=n[1].trim())}}),t}function kl(e){const t=[];for(const r in e){const i=e[r];if(typeof i!="string")continue;const s=Ap(r);t.push(`${s}: ${i};`)}return t.join(" ")}const Rp=/-([a-z])/g,Mp=/^--[a-zA-Z0-9-]+$/,ro=e=>Mp.test(e)?e:e.replace(Rp,(t,r)=>r?r.toUpperCase():""),Np=/\B([A-Z])/g,Ap=e=>e.replace(Np,"-$1").toLowerCase();class pt{constructor(...t){T(this,"parentElement",null),T(this,"parentNode",null),T(this,"ownerDocument"),T(this,"firstChild",null),T(this,"lastChild",null),T(this,"previousSibling",null),T(this,"nextSibling",null),T(this,"ELEMENT_NODE",1),T(this,"TEXT_NODE",3),T(this,"nodeType"),T(this,"nodeName"),T(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 pt){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 jo extends pt{constructor(...t){super(t),T(this,"nodeType",9),T(this,"nodeName","#document"),T(this,"compatMode","CSS1Compat"),T(this,"RRNodeType",V.Document),T(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(t=>t.RRNodeType===V.Element&&t.tagName==="HTML")||null}get body(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===V.Element&&r.tagName==="BODY"))||null}get head(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===V.Element&&r.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(t){const r=t.RRNodeType;if((r===V.Element||r===V.DocumentType)&&this.childNodes.some(s=>s.RRNodeType===r))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${r===V.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const i=Vo(this,t);return i.parentElement=null,i}insertBefore(t,r){const i=t.RRNodeType;if((i===V.Element||i===V.DocumentType)&&this.childNodes.some(o=>o.RRNodeType===i))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${i===V.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=Ec(this,t,r);return s.parentElement=null,s}removeChild(t){return Cc(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 i=this.createDocumentType("html",r,"");this.open(),this.appendChild(i)}}createDocument(t,r,i){return new jo}createDocumentType(t,r,i){const s=new wc(t,r,i);return s.ownerDocument=this,s}createElement(t){const r=new ys(t);return r.ownerDocument=this,r}createElementNS(t,r){return this.createElement(r)}createTextNode(t){const r=new bc(t);return r.ownerDocument=this,r}createComment(t){const r=new Sc(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new _c(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}}class wc extends pt{constructor(t,r,i){super(),T(this,"nodeType",10),T(this,"RRNodeType",V.DocumentType),T(this,"name"),T(this,"publicId"),T(this,"systemId"),T(this,"textContent",null),this.name=t,this.publicId=r,this.systemId=i,this.nodeName=t}toString(){return"RRDocumentType"}}class ys extends pt{constructor(t){super(),T(this,"nodeType",1),T(this,"RRNodeType",V.Element),T(this,"tagName"),T(this,"attributes",{}),T(this,"shadowRoot",null),T(this,"scrollLeft"),T(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 Tp(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?xp(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(i,s,o)=>{if(r.test(i))return;const n=ro(i);s?t[n]=s:delete t[n],o==="important"&&(t[n]+=" !important"),this.attributes.style=kl(t)},t.removeProperty=i=>{if(r.test(i))return"";const s=ro(i),o=t[s]||"";return delete t[s],this.attributes.style=kl(t),o},t}getAttribute(t){return this.attributes[t]===void 0?null:this.attributes[t]}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,i){this.setAttribute(r,i)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return Vo(this,t)}insertBefore(t,r){return Ec(this,t,r)}removeChild(t){return Cc(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 Op extends ys{constructor(){super(...arguments),T(this,"currentTime"),T(this,"volume"),T(this,"paused"),T(this,"muted"),T(this,"playbackRate"),T(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 Dp extends ys{constructor(){super(...arguments),T(this,"tagName","DIALOG"),T(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 bc extends pt{constructor(t){super(),T(this,"nodeType",3),T(this,"nodeName","#text"),T(this,"RRNodeType",V.Text),T(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 Sc extends pt{constructor(t){super(),T(this,"nodeType",8),T(this,"nodeName","#comment"),T(this,"RRNodeType",V.Comment),T(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 _c extends pt{constructor(t){super(),T(this,"nodeName","#cdata-section"),T(this,"nodeType",4),T(this,"RRNodeType",V.CDATA),T(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 Tp{constructor(t,r){if(T(this,"onChange"),T(this,"classes",[]),T(this,"add",(...i)=>{for(const s of i){const o=String(s);this.classes.indexOf(o)>=0||this.classes.push(o)}this.onChange&&this.onChange(this.classes.join(" "))}),T(this,"remove",(...i)=>{this.classes=this.classes.filter(s=>i.indexOf(s)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),t){const i=t.trim().split(/\s+/);this.classes.push(...i)}this.onChange=r}}function Vo(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 Ec(e,t,r){if(!r)return Vo(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 Cc(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 We=(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))(We||{});const io={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},kp={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 wt=null;function Vi(e,t,r,i=t.mirror||t.ownerDocument.mirror){e=Ip(e,t,r,i),xc(e,t,r,i),Pp(e,t,r)}function Ip(e,t,r,i){var s;if(r.afterAppend&&!wt&&(wt=new WeakSet,setTimeout(()=>{wt=null},0)),!Go(e,t)){const o=Gi(t,r.mirror,i);(s=e.parentNode)==null||s.replaceChild(o,e),e=o}switch(t.RRNodeType){case V.Document:{if(!Sr(e,t,r.mirror,i)){const o=i.getMeta(t);o&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,o),wt==null||wt.add(e))}break}case V.Element:{const o=e,n=t;switch(n.tagName){case"IFRAME":{const u=e.contentDocument;if(!u)break;Vi(u,t.contentDocument,r,i);break}}n.shadowRoot&&(o.shadowRoot||o.attachShadow({mode:"open"}),xc(o.shadowRoot,n.shadowRoot,r,i)),Lp(o,n,i);break}}return e}function Pp(e,t,r){var i;switch(t.RRNodeType){case V.Document:{const s=t.scrollData;s&&r.applyScroll(s,!0);break}case V.Element:{const s=e,o=t;switch(o.scrollData&&r.applyScroll(o.scrollData,!0),o.inputData&&r.applyInput(o.inputData),o.tagName){case"AUDIO":case"VIDEO":{const n=e,u=o;u.paused!==void 0&&(u.paused?n.pause():n.play()),u.muted!==void 0&&(n.muted=u.muted),u.volume!==void 0&&(n.volume=u.volume),u.currentTime!==void 0&&(n.currentTime=u.currentTime),u.playbackRate!==void 0&&(n.playbackRate=u.playbackRate),u.loop!==void 0&&(n.loop=u.loop);break}case"CANVAS":{const n=t;if(n.rr_dataURL!==null){const u=document.createElement("img");u.onload=()=>{const d=s.getContext("2d");d&&d.drawImage(u,0,0,u.width,u.height)},u.src=n.rr_dataURL}n.canvasMutations.forEach(u=>r.applyCanvas(u.event,u.mutation,e));break}case"STYLE":{const n=s.sheet;n&&t.rules.forEach(u=>r.applyStyleSheetMutation(u,n));break}case"DIALOG":{const n=s,u=o,d=n.open,l=n.matches("dialog:modal"),a=u.open,f=u.isModal,c=l!==f,h=d!==a;if((c||d&&h)&&n.close(),a&&(h||c))try{f?n.showModal():n.show()}catch(p){console.warn(p)}break}}break}case V.Text:case V.Comment:case V.CDATA:{e.textContent!==t.data&&(e.textContent=t.data);break}}wt!=null&&wt.has(e)&&(wt.delete(e),(i=r.afterAppend)==null||i.call(r,e,r.mirror.getId(e)))}function Lp(e,t,r){const i=e.attributes,s=t.attributes;for(const o in s){const n=s[o],u=r.getMeta(t);if(u!=null&&u.isSVG&&io[o])e.setAttributeNS(io[o],o,n);else if(t.tagName==="CANVAS"&&o==="rr_dataURL"){const d=document.createElement("img");d.src=n,d.onload=()=>{const l=e.getContext("2d");l&&l.drawImage(d,0,0,d.width,d.height)}}else{if(t.tagName==="IFRAME"&&o==="srcdoc")continue;try{e.setAttribute(o,n)}catch(d){console.warn(d)}}}for(const{name:o}of Array.from(i))o in s||e.removeAttribute(o);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function xc(e,t,r,i){const s=Array.from(e.childNodes),o=t.childNodes;if(s.length===0&&o.length===0)return;let n=0,u=s.length-1,d=0,l=o.length-1,a=s[n],f=s[u],c=o[d],h=o[l],p,m;for(;n<=u&&d<=l;)if(a===void 0)a=s[++n];else if(f===void 0)f=s[--u];else if(Sr(a,c,r.mirror,i))a=s[++n],c=o[++d];else if(Sr(f,h,r.mirror,i))f=s[--u],h=o[--l];else if(Sr(a,h,r.mirror,i)){try{e.insertBefore(a,f.nextSibling)}catch(v){console.warn(v)}a=s[++n],h=o[--l]}else if(Sr(f,c,r.mirror,i)){try{e.insertBefore(f,a)}catch(v){console.warn(v)}f=s[--u],c=o[++d]}else{if(!p){p={};for(let S=n;S<=u;S++){const E=s[S];E&&r.mirror.hasNode(E)&&(p[r.mirror.getId(E)]=S)}}m=p[i.getId(c)];const v=s[m];if(m!==void 0&&v&&Sr(v,c,r.mirror,i)){try{e.insertBefore(v,a)}catch(S){console.warn(S)}s[m]=void 0}else{const S=Gi(c,r.mirror,i);e.nodeName==="#document"&&a&&(S.nodeType===S.DOCUMENT_TYPE_NODE&&a.nodeType===a.DOCUMENT_TYPE_NODE||S.nodeType===S.ELEMENT_NODE&&a.nodeType===a.ELEMENT_NODE)&&(e.removeChild(a),r.mirror.removeNodeFromMap(a),a=s[++n]);try{e.insertBefore(S,a||null)}catch(E){console.warn(E)}}c=o[++d]}if(n>u){const v=o[l+1];let S=null;for(v&&(S=r.mirror.getNode(i.getId(v)));d<=l;++d){const E=Gi(o[d],r.mirror,i);try{e.insertBefore(E,S)}catch(y){console.warn(y)}}}else if(d>l)for(;n<=u;n++){const v=s[n];if(!(!v||v.parentNode!==e))try{e.removeChild(v),r.mirror.removeNodeFromMap(v)}catch(S){console.warn(S)}}let g=e.firstChild,w=t.firstChild;for(;g!==null&&w!==null;)Vi(g,w,r,i),g=g.nextSibling,w=w.nextSibling}function Gi(e,t,r){const i=r.getId(e),s=r.getMeta(e);let o=null;if(i>-1&&(o=t.getNode(i)),o!==null&&Go(o,e))return o;switch(e.RRNodeType){case V.Document:o=new Document;break;case V.DocumentType:o=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case V.Element:{let n=e.tagName.toLowerCase();n=kp[n]||n,s&&"isSVG"in s&&(s!=null&&s.isSVG)?o=document.createElementNS(io.svg,n):o=document.createElement(e.tagName);break}case V.Text:o=document.createTextNode(e.data);break;case V.Comment:o=document.createComment(e.data);break;case V.CDATA:o=document.createCDATASection(e.data);break}s&&t.add(o,G({},s));try{wt==null||wt.add(o)}catch(n){}return o}function Go(e,t){return e.nodeType!==t.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName}function Sr(e,t,r,i){const s=r.getId(e),o=i.getId(t);return s===-1||s!==o?!1:Go(e,t)}class qr extends jo{constructor(t){super(),T(this,"UNSERIALIZED_STARTING_ID",-2),T(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),T(this,"mirror",Yp()),T(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,i){return new qr}createDocumentType(t,r,i){const s=new Fp(t,r,i);return s.ownerDocument=this,s}createElement(t){const r=t.toUpperCase();let i;switch(r){case"AUDIO":case"VIDEO":i=new Bp(r);break;case"IFRAME":i=new zp(r,this.mirror);break;case"CANVAS":i=new $p(r);break;case"STYLE":i=new Wp(r);break;case"DIALOG":i=new Up(r);break;default:i=new ws(r);break}return i.ownerDocument=this,i}createComment(t){const r=new jp(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new Vp(t);return r.ownerDocument=this,r}createTextNode(t){const r=new qp(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 Fp=wc;class ws extends ys{constructor(){super(...arguments),T(this,"inputData",null),T(this,"scrollData",null)}}class Bp extends Op{}class Up extends Dp{}class $p extends ws{constructor(){super(...arguments),T(this,"rr_dataURL",null),T(this,"canvasMutations",[])}getContext(){return null}}class Wp extends ws{constructor(){super(...arguments),T(this,"rules",[])}}class zp extends ws{constructor(t,r){super(t),T(this,"contentDocument",new qr),this.contentDocument.mirror=r}}const qp=bc,jp=Sc,Vp=_c;function Gp(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function Rc(e,t,r,i){let s;switch(e.nodeType){case We.DOCUMENT_NODE:i&&i.nodeName==="IFRAME"?s=i.contentDocument:(s=t,s.compatMode=e.compatMode);break;case We.DOCUMENT_TYPE_NODE:{const n=e;s=t.createDocumentType(n.name,n.publicId,n.systemId);break}case We.ELEMENT_NODE:{const n=e,u=Gp(n);s=t.createElement(u);const d=s;for(const{name:l,value:a}of Array.from(n.attributes))d.attributes[l]=a;n.scrollLeft&&(d.scrollLeft=n.scrollLeft),n.scrollTop&&(d.scrollTop=n.scrollTop);break}case We.TEXT_NODE:s=t.createTextNode(e.textContent||"");break;case We.CDATA_SECTION_NODE:s=t.createCDATASection(e.data);break;case We.COMMENT_NODE:s=t.createComment(e.textContent||"");break;case We.DOCUMENT_FRAGMENT_NODE:s=i.attachShadow({mode:"open"});break;default:return null}let o=r.getMeta(e);return t instanceof qr&&(o||(o=so(s,t.unserializedId),r.add(e,o)),t.mirror.add(s,G({},o))),s}function Hp(e,t=fp(),r=new qr){function i(s,o){const n=Rc(s,r,t,o);if(n!==null)if((o==null?void 0:o.nodeName)!=="IFRAME"&&s.nodeType!==We.DOCUMENT_FRAGMENT_NODE&&(o==null||o.appendChild(n),n.parentNode=o,n.parentElement=o),s.nodeName==="IFRAME"){const u=s.contentDocument;u&&i(u,n)}else(s.nodeType===We.DOCUMENT_NODE||s.nodeType===We.ELEMENT_NODE||s.nodeType===We.DOCUMENT_FRAGMENT_NODE)&&(s.nodeType===We.ELEMENT_NODE&&s.shadowRoot&&i(s.shadowRoot,n),s.childNodes.forEach(u=>i(u,n)))}return i(e,null),r}function Yp(){return new Jp}class Jp{constructor(){T(this,"idNodeMap",new Map),T(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const i=(r=this.getMeta(t))==null?void 0:r.id;return i!=null?i:-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(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){const i=this.getNode(t);if(i){const s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function so(e,t){switch(e.RRNodeType){case V.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case V.DocumentType:{const r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId}}case V.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case V.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case V.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case V.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}const Il={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Pl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Mi={};function Xp(e){var t,r;const i=(r=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(i&&globalThis[i])return globalThis[i]}function Ho(e){if(Mi[e])return Mi[e];const t=Xp(e)||globalThis[e],r=t.prototype,i=e in Il?Il[e]:void 0,s=!!(i&&i.every(u=>{var d,l;return!!((l=(d=Object.getOwnPropertyDescriptor(r,u))==null?void 0:d.get)!=null&&l.toString().includes("[native code]"))})),o=e in Pl?Pl[e]:void 0,n=!!(o&&o.every(u=>{var d;return typeof r[u]=="function"&&((d=r[u])==null?void 0:d.toString().includes("[native code]"))}));if(s&&n)return Mi[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?Mi[e]=l:r}catch(u){return r}}const Nn={};function Qt(e,t,r){var i;const s=`${e}.${String(r)}`;if(Nn[s])return Nn[s].call(t);const o=Ho(e),n=(i=Object.getOwnPropertyDescriptor(o,r))==null?void 0:i.get;return n?(Nn[s]=n,n.call(t)):t[r]}const An={};function Mc(e,t,r){const i=`${e}.${String(r)}`;if(An[i])return An[i].bind(t);const o=Ho(e)[r];return typeof o!="function"?t[r]:(An[i]=o,o.bind(t))}function Qp(e){return Qt("Node",e,"childNodes")}function Kp(e){return Qt("Node",e,"parentNode")}function Zp(e){return Qt("Node",e,"parentElement")}function em(e){return Qt("Node",e,"textContent")}function tm(e,t){return Mc("Node",e,"contains")(t)}function rm(e){return Mc("Node",e,"getRootNode")()}function im(e){return!e||!("host"in e)?null:Qt("ShadowRoot",e,"host")}function sm(e){return e.styleSheets}function nm(e){return!e||!("shadowRoot"in e)?null:Qt("Element",e,"shadowRoot")}function om(e,t){return Qt("Element",e,"querySelector")(t)}function am(e,t){return Qt("Element",e,"querySelectorAll")(t)}function lm(){return Ho("MutationObserver").constructor}const um={childNodes:Qp,parentNode:Kp,parentElement:Zp,textContent:em,contains:tm,getRootNode:rm,host:im,styleSheets:sm,shadowRoot:nm,querySelector:om,querySelectorAll:am,mutationObserver:lm},_r=`Please stop import mirror directly. Instead of that,\r
71
+ https://www.w3ctech.com/topic/2226`));let x=y(...M);return x.postcssPlugin=E,x.postcssVersion=new c().version,x}let C;return Object.defineProperty(_,"postcss",{get(){return C||(C=_()),C}}),_.process=function(M,x,I){return v([_(I)]).process(M,x)},_},v.stringify=g,v.parse=h,v.fromJSON=o,v.list=l,v.comment=S=>new t(S),v.atRule=S=>new e(S),v.decl=S=>new s(S),v.rule=S=>new m(S),v.root=S=>new p(S),v.document=S=>new n(S),v.CssSyntaxError=i,v.Declaration=s,v.Container=r,v.Processor=c,v.Document=n,v.Comment=t,v.Warning=w,v.AtRule=e,v.Result=f,v.Input=u,v.Rule=m,v.Root=p,v.Node=a,d.registerPostcss(v),Nn=v,v.default=v,Nn}var Rp=xp();const ge=pp(Rp);ge.stringify;ge.fromJSON;ge.plugin;ge.parse;ge.list;ge.document;ge.comment;ge.atRule;ge.rule;ge.decl;ge.root;ge.CssSyntaxError;ge.Declaration;ge.Container;ge.Processor;ge.Document;ge.Comment;ge.Warning;ge.AtRule;ge.Result;ge.Input;ge.Rule;ge.Root;ge.Node;var Y=(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))(Y||{});const io={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},Np={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 wt=null;function Vi(e,t,r,i=t.mirror||t.ownerDocument.mirror){e=Mp(e,t,r,i),bc(e,t,r,i),Ap(e,t,r)}function Mp(e,t,r,i){var s;if(r.afterAppend&&!wt&&(wt=new WeakSet,setTimeout(()=>{wt=null},0)),!Vo(e,t)){const n=Gi(t,r.mirror,i);(s=e.parentNode)==null||s.replaceChild(n,e),e=n}switch(t.RRNodeType){case Y.Document:{if(!Sr(e,t,r.mirror,i)){const n=i.getMeta(t);n&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,n),wt==null||wt.add(e))}break}case Y.Element:{const n=e,o=t;switch(o.tagName){case"IFRAME":{const u=e.contentDocument;if(!u)break;Vi(u,t.contentDocument,r,i);break}}o.shadowRoot&&(n.shadowRoot||n.attachShadow({mode:"open"}),bc(n.shadowRoot,o.shadowRoot,r,i)),Op(n,o,i);break}}return e}function Ap(e,t,r){var i;switch(t.RRNodeType){case Y.Document:{const s=t.scrollData;s&&r.applyScroll(s,!0);break}case Y.Element:{const s=e,n=t;switch(n.scrollData&&r.applyScroll(n.scrollData,!0),n.inputData&&r.applyInput(n.inputData),n.tagName){case"AUDIO":case"VIDEO":{const o=e,u=n;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=s.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=s.sheet;o&&t.rules.forEach(u=>r.applyStyleSheetMutation(u,o));break}case"DIALOG":{const o=s,u=n,d=o.open,l=o.matches("dialog:modal"),a=u.open,h=u.isModal,c=l!==h,f=d!==a;if((c||d&&f)&&o.close(),a&&(f||c))try{h?o.showModal():o.show()}catch(p){console.warn(p)}break}}break}case Y.Text:case Y.Comment:case Y.CDATA:{e.textContent!==t.data&&(e.textContent=t.data);break}}wt!=null&&wt.has(e)&&(wt.delete(e),(i=r.afterAppend)==null||i.call(r,e,r.mirror.getId(e)))}function Op(e,t,r){const i=e.attributes,s=t.attributes;for(const n in s){const o=s[n],u=r.getMeta(t);if(u!=null&&u.isSVG&&io[n])e.setAttributeNS(io[n],n,o);else if(t.tagName==="CANVAS"&&n==="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"&&n==="srcdoc")continue;try{e.setAttribute(n,o)}catch(d){console.warn(d)}}}for(const{name:n}of Array.from(i))n in s||e.removeAttribute(n);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function bc(e,t,r,i){const s=Array.from(e.childNodes),n=t.childNodes;if(s.length===0&&n.length===0)return;let o=0,u=s.length-1,d=0,l=n.length-1,a=s[o],h=s[u],c=n[d],f=n[l],p,m;for(;o<=u&&d<=l;)if(a===void 0)a=s[++o];else if(h===void 0)h=s[--u];else if(Sr(a,c,r.mirror,i))a=s[++o],c=n[++d];else if(Sr(h,f,r.mirror,i))h=s[--u],f=n[--l];else if(Sr(a,f,r.mirror,i)){try{Hr(e,a,h.nextSibling,r.mirror,i)}catch(v){console.warn(v)}a=s[++o],f=n[--l]}else if(Sr(h,c,r.mirror,i)){try{Hr(e,h,a,r.mirror,i)}catch(v){console.warn(v)}h=s[--u],c=n[++d]}else{if(!p){p={};for(let S=o;S<=u;S++){const E=s[S];E&&r.mirror.hasNode(E)&&(p[r.mirror.getId(E)]=S)}}m=p[i.getId(c)];const v=s[m];if(m!==void 0&&v&&Sr(v,c,r.mirror,i)){try{Hr(e,v,a,r.mirror,i)}catch(S){console.warn(S)}s[m]=void 0}else{const S=Gi(c,r.mirror,i);e.nodeName==="#document"&&a&&(S.nodeType===S.DOCUMENT_TYPE_NODE&&a.nodeType===a.DOCUMENT_TYPE_NODE||S.nodeType===S.ELEMENT_NODE&&a.nodeType===a.ELEMENT_NODE)&&(e.removeChild(a),r.mirror.removeNodeFromMap(a),a=s[++o]);try{Hr(e,S,a||null,r.mirror,i)}catch(E){console.warn(E)}}c=n[++d]}if(o>u){const v=n[l+1];let S=null;for(v&&(S=r.mirror.getNode(i.getId(v)));d<=l;++d){const E=Gi(n[d],r.mirror,i);try{Hr(e,E,S,r.mirror,i)}catch(y){console.warn(y)}}}else if(d>l)for(;o<=u;o++){const v=s[o];if(!(!v||v.parentNode!==e))try{e.removeChild(v),r.mirror.removeNodeFromMap(v)}catch(S){console.warn(S)}}let g=e.firstChild,w=t.firstChild;for(;g!==null&&w!==null;)Vi(g,w,r,i),g=g.nextSibling,w=w.nextSibling}const Sc=new WeakSet;function Hr(e,t,r,i,s){const n=t.isConnected?Dp(t).filter(([o])=>{const u=s.getNode(i.getId(o));return u!==null&&Sc.has(u)}):[];e.insertBefore(t,r);for(const[o,u]of n)Tp(o,u)}function Dp(e){if(e.nodeType!==e.ELEMENT_NODE)return[];const t=[],r=s=>{if(s.localName==="style"&&t.push(s),s.shadowRoot)for(const n of Array.from(s.shadowRoot.children))r(n);for(const n of Array.from(s.children))r(n)};r(e);const i=[];for(const s of t)try{const n=s.sheet;n&&i.push([s,Array.from(n.cssRules,o=>o.cssText)])}catch(n){}return i}function Tp(e,t){try{const r=e.sheet;if(!r)return;const i=r.cssRules;if(i.length===t.length&&t.every((s,n)=>i[n].cssText===s))return;for(;r.cssRules.length>0;)r.deleteRule(r.cssRules.length-1);for(const s of t)try{r.insertRule(s,r.cssRules.length)}catch(n){}}catch(r){}}function Gi(e,t,r){const i=r.getId(e),s=r.getMeta(e);let n=null;if(i>-1&&(n=t.getNode(i)),n!==null&&Vo(n,e))return n;switch(e.RRNodeType){case Y.Document:n=new Document;break;case Y.DocumentType:n=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case Y.Element:{let o=e.tagName.toLowerCase();o=Np[o]||o,s&&"isSVG"in s&&(s!=null&&s.isSVG)?n=document.createElementNS(io.svg,o):n=document.createElement(e.tagName);break}case Y.Text:n=document.createTextNode(e.data);break;case Y.Comment:n=document.createComment(e.data);break;case Y.CDATA:n=document.createCDATASection(e.data);break}s&&t.add(n,G({},s));try{wt==null||wt.add(n)}catch(o){}return n}function Vo(e,t){return e.nodeType!==t.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName}function Sr(e,t,r,i){const s=r.getId(e),n=i.getId(t);return s===-1||s!==n?!1:Vo(e,t)}function kp(e){const t={},r=/;(?![^(]*\))/g,i=/:(.+)/,s=/\/\*.*?\*\//g;return e.replace(s,"").split(r).forEach(function(n){if(n){const o=n.split(i);o.length>1&&(t[so(o[0].trim())]=o[1].trim())}}),t}function Il(e){const t=[];for(const r in e){const i=e[r];if(typeof i!="string")continue;const s=Fp(r);t.push(`${s}: ${i};`)}return t.join(" ")}const Ip=/-([a-z])/g,Pp=/^--[a-zA-Z0-9-]+$/,so=e=>Pp.test(e)?e:e.replace(Ip,(t,r)=>r?r.toUpperCase():""),Lp=/\B([A-Z])/g,Fp=e=>e.replace(Lp,"-$1").toLowerCase();class pt{constructor(...t){T(this,"parentElement",null),T(this,"parentNode",null),T(this,"ownerDocument"),T(this,"firstChild",null),T(this,"lastChild",null),T(this,"previousSibling",null),T(this,"nextSibling",null),T(this,"ELEMENT_NODE",1),T(this,"TEXT_NODE",3),T(this,"nodeType"),T(this,"nodeName"),T(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 pt){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 Go extends pt{constructor(...t){super(t),T(this,"nodeType",9),T(this,"nodeName","#document"),T(this,"compatMode","CSS1Compat"),T(this,"RRNodeType",Y.Document),T(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(t=>t.RRNodeType===Y.Element&&t.tagName==="HTML")||null}get body(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===Y.Element&&r.tagName==="BODY"))||null}get head(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===Y.Element&&r.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(t){const r=t.RRNodeType;if((r===Y.Element||r===Y.DocumentType)&&this.childNodes.some(s=>s.RRNodeType===r))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${r===Y.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const i=Ho(this,t);return i.parentElement=null,i}insertBefore(t,r){const i=t.RRNodeType;if((i===Y.Element||i===Y.DocumentType)&&this.childNodes.some(n=>n.RRNodeType===i))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${i===Y.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=Rc(this,t,r);return s.parentElement=null,s}removeChild(t){return Nc(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 i=this.createDocumentType("html",r,"");this.open(),this.appendChild(i)}}createDocument(t,r,i){return new Go}createDocumentType(t,r,i){const s=new _c(t,r,i);return s.ownerDocument=this,s}createElement(t){const r=new ys(t);return r.ownerDocument=this,r}createElementNS(t,r){return this.createElement(r)}createTextNode(t){const r=new Ec(t);return r.ownerDocument=this,r}createComment(t){const r=new Cc(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new xc(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}}class _c extends pt{constructor(t,r,i){super(),T(this,"nodeType",10),T(this,"RRNodeType",Y.DocumentType),T(this,"name"),T(this,"publicId"),T(this,"systemId"),T(this,"textContent",null),this.name=t,this.publicId=r,this.systemId=i,this.nodeName=t}toString(){return"RRDocumentType"}}class ys extends pt{constructor(t){super(),T(this,"nodeType",1),T(this,"RRNodeType",Y.Element),T(this,"tagName"),T(this,"attributes",{}),T(this,"shadowRoot",null),T(this,"scrollLeft"),T(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 $p(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?kp(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(i,s,n)=>{if(r.test(i))return;const o=so(i);s?t[o]=s:delete t[o],n==="important"&&(t[o]+=" !important"),this.attributes.style=Il(t)},t.removeProperty=i=>{if(r.test(i))return"";const s=so(i),n=t[s]||"";return delete t[s],this.attributes.style=Il(t),n},t}getAttribute(t){return this.attributes[t]===void 0?null:this.attributes[t]}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,i){this.setAttribute(r,i)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return Ho(this,t)}insertBefore(t,r){return Rc(this,t,r)}removeChild(t){return Nc(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 Bp extends ys{constructor(){super(...arguments),T(this,"currentTime"),T(this,"volume"),T(this,"paused"),T(this,"muted"),T(this,"playbackRate"),T(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 Up extends ys{constructor(){super(...arguments),T(this,"tagName","DIALOG"),T(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 Ec extends pt{constructor(t){super(),T(this,"nodeType",3),T(this,"nodeName","#text"),T(this,"RRNodeType",Y.Text),T(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 Cc extends pt{constructor(t){super(),T(this,"nodeType",8),T(this,"nodeName","#comment"),T(this,"RRNodeType",Y.Comment),T(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 xc extends pt{constructor(t){super(),T(this,"nodeName","#cdata-section"),T(this,"nodeType",4),T(this,"RRNodeType",Y.CDATA),T(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 $p{constructor(t,r){if(T(this,"onChange"),T(this,"classes",[]),T(this,"add",(...i)=>{for(const s of i){const n=String(s);this.classes.indexOf(n)>=0||this.classes.push(n)}this.onChange&&this.onChange(this.classes.join(" "))}),T(this,"remove",(...i)=>{this.classes=this.classes.filter(s=>i.indexOf(s)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),t){const i=t.trim().split(/\s+/);this.classes.push(...i)}this.onChange=r}}function Ho(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 Rc(e,t,r){if(!r)return Ho(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 Nc(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 We=(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))(We||{});class qr extends Go{constructor(t){super(),T(this,"UNSERIALIZED_STARTING_ID",-2),T(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),T(this,"mirror",Kp()),T(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,i){return new qr}createDocumentType(t,r,i){const s=new Wp(t,r,i);return s.ownerDocument=this,s}createElement(t){const r=t.toUpperCase();let i;switch(r){case"AUDIO":case"VIDEO":i=new zp(r);break;case"IFRAME":i=new Gp(r,this.mirror);break;case"CANVAS":i=new jp(r);break;case"STYLE":i=new Vp(r);break;case"DIALOG":i=new qp(r);break;default:i=new ws(r);break}return i.ownerDocument=this,i}createComment(t){const r=new Yp(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new Jp(t);return r.ownerDocument=this,r}createTextNode(t){const r=new Hp(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 Wp=_c;class ws extends ys{constructor(){super(...arguments),T(this,"inputData",null),T(this,"scrollData",null)}}class zp extends Bp{}class qp extends Up{}class jp extends ws{constructor(){super(...arguments),T(this,"rr_dataURL",null),T(this,"canvasMutations",[])}getContext(){return null}}class Vp extends ws{constructor(){super(...arguments),T(this,"rules",[])}}class Gp extends ws{constructor(t,r){super(t),T(this,"contentDocument",new qr),this.contentDocument.mirror=r}}const Hp=Ec,Yp=Cc,Jp=xc;function Xp(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function Mc(e,t,r,i){let s;switch(e.nodeType){case We.DOCUMENT_NODE:i&&i.nodeName==="IFRAME"?s=i.contentDocument:(s=t,s.compatMode=e.compatMode);break;case We.DOCUMENT_TYPE_NODE:{const o=e;s=t.createDocumentType(o.name,o.publicId,o.systemId);break}case We.ELEMENT_NODE:{const o=e,u=Xp(o);s=t.createElement(u);const d=s;for(const{name:l,value:a}of Array.from(o.attributes))d.attributes[l]=a;o.scrollLeft&&(d.scrollLeft=o.scrollLeft),o.scrollTop&&(d.scrollTop=o.scrollTop);break}case We.TEXT_NODE:s=t.createTextNode(e.textContent||"");break;case We.CDATA_SECTION_NODE:s=t.createCDATASection(e.data);break;case We.COMMENT_NODE:s=t.createComment(e.textContent||"");break;case We.DOCUMENT_FRAGMENT_NODE:s=i.attachShadow({mode:"open"});break;default:return null}let n=r.getMeta(e);return t instanceof qr&&(n||(n=no(s,t.unserializedId),r.add(e,n)),t.mirror.add(s,G({},n))),Sc.add(s),s}function Qp(e,t=dp(),r=new qr){function i(s,n){const o=Mc(s,r,t,n);if(o!==null)if((n==null?void 0:n.nodeName)!=="IFRAME"&&s.nodeType!==We.DOCUMENT_FRAGMENT_NODE&&(n==null||n.appendChild(o),o.parentNode=n,o.parentElement=n),s.nodeName==="IFRAME"){const u=s.contentDocument;u&&i(u,o)}else(s.nodeType===We.DOCUMENT_NODE||s.nodeType===We.ELEMENT_NODE||s.nodeType===We.DOCUMENT_FRAGMENT_NODE)&&(s.nodeType===We.ELEMENT_NODE&&s.shadowRoot&&i(s.shadowRoot,o),s.childNodes.forEach(u=>i(u,o)))}return i(e,null),r}function Kp(){return new Zp}class Zp{constructor(){T(this,"idNodeMap",new Map),T(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const i=(r=this.getMeta(t))==null?void 0:r.id;return i!=null?i:-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(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){const i=this.getNode(t);if(i){const s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function no(e,t){switch(e.RRNodeType){case Y.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case Y.DocumentType:{const r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId}}case Y.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case Y.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case Y.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case Y.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}const Pl={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ll={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ni={};function em(e){var t,r;const i=(r=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(i&&globalThis[i])return globalThis[i]}function Yo(e){if(Ni[e])return Ni[e];const t=em(e)||globalThis[e],r=t.prototype,i=e in Pl?Pl[e]:void 0,s=!!(i&&i.every(u=>{var d,l;return!!((l=(d=Object.getOwnPropertyDescriptor(r,u))==null?void 0:d.get)!=null&&l.toString().includes("[native code]"))})),n=e in Ll?Ll[e]:void 0,o=!!(n&&n.every(u=>{var d;return typeof r[u]=="function"&&((d=r[u])==null?void 0:d.toString().includes("[native code]"))}));if(s&&o)return Ni[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?Ni[e]=l:r}catch(u){return r}}const Mn={};function Qt(e,t,r){var i;const s=`${e}.${String(r)}`;if(Mn[s])return Mn[s].call(t);const n=Yo(e),o=(i=Object.getOwnPropertyDescriptor(n,r))==null?void 0:i.get;return o?(Mn[s]=o,o.call(t)):t[r]}const An={};function Ac(e,t,r){const i=`${e}.${String(r)}`;if(An[i])return An[i].bind(t);const n=Yo(e)[r];return typeof n!="function"?t[r]:(An[i]=n,n.bind(t))}function tm(e){return Qt("Node",e,"childNodes")}function rm(e){return Qt("Node",e,"parentNode")}function im(e){return Qt("Node",e,"parentElement")}function sm(e){return Qt("Node",e,"textContent")}function nm(e,t){return Ac("Node",e,"contains")(t)}function om(e){return Ac("Node",e,"getRootNode")()}function am(e){return!e||!("host"in e)?null:Qt("ShadowRoot",e,"host")}function lm(e){return e.styleSheets}function um(e){return!e||!("shadowRoot"in e)?null:Qt("Element",e,"shadowRoot")}function cm(e,t){return Qt("Element",e,"querySelector")(t)}function fm(e,t){return Qt("Element",e,"querySelectorAll")(t)}function hm(){return Yo("MutationObserver").constructor}const dm={childNodes:tm,parentNode:rm,parentElement:im,textContent:sm,contains:nm,getRootNode:om,host:am,styleSheets:lm,shadowRoot:um,querySelector:cm,querySelectorAll:fm,mutationObserver:hm},_r=`Please stop import mirror directly. Instead of that,\r
72
72
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
73
- or you can use record.mirror to access the mirror instance during recording.`;let Ll={map:{},getId(){return console.error(_r),-1},getNode(){return console.error(_r),null},removeNodeFromMap(){console.error(_r)},has(){return console.error(_r),!1},reset(){console.error(_r)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Ll=new Proxy(Ll,{get(e,t,r){return t==="map"&&console.error(_r),Reflect.get(e,t,r)}}));Date.now().toString();function cm(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 fm(e){const t={},r=(s,o)=>{const n={value:s,parent:o,children:[]};return t[s.node.id]=n,n},i=[];for(const s of e){const{nextId:o,parentId:n}=s;if(o&&o in t){const u=t[o];if(u.parent){const d=u.parent.children.indexOf(u);u.parent.children.splice(d,0,r(s,u.parent))}else{const d=i.indexOf(u);i.splice(d,0,r(s,null))}continue}if(n in t){const u=t[n];u.children.push(r(s,u));continue}i.push(r(s,null))}return i}function Nc(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)Nc(e.children[r],t)}function On(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Ac(e,t){var r,i;const s=(i=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:i.frameElement;if(!s||s===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const o=s.getBoundingClientRect(),n=Ac(s,t),u=o.height/s.clientHeight;return{x:o.x*n.relativeScale+n.x,y:o.y*n.relativeScale+n.y,relativeScale:u,absoluteScale:n.absoluteScale*u}}function Et(e){return e?e instanceof pt&&"shadowRoot"in e?!!e.shadowRoot:!!um.shadowRoot(e):!1}function Zr(e,t){const r=e[t[0]];return t.length===1?r:Zr(r.cssRules[t[1]].cssRules,t.slice(2))}function Fl(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function hm(e){const t=new Set,r=[];for(let i=e.length;i--;){const s=e[i];t.has(s.id)||(r.push(s),t.add(s.id))}return r}class dm{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 i;return r===void 0?i=this.id++:i=r,this.styleIDMap.set(t,i),this.idStyleMap.set(i,t),i}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||{}),Se=(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))(Se||{}),Hi=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Hi||{}),no=(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))(no||{}),H=(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.SeekStart="seek-start",e.SeekEnd="seek-end",e))(H||{}),Ge=(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))(Ge||{}),Bl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ei=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var Ni=0;Ni<Bl.length;Ni++)ei[Bl.charCodeAt(Ni)]=Ni;var pm=function(e){var t=e.length*.75,r=e.length,i,s=0,o,n,u,d;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var l=new ArrayBuffer(t),a=new Uint8Array(l);for(i=0;i<r;i+=4)o=ei[e.charCodeAt(i)],n=ei[e.charCodeAt(i+1)],u=ei[e.charCodeAt(i+2)],d=ei[e.charCodeAt(i+3)],a[s++]=o<<2|n>>4,a[s++]=(n&15)<<4|u>>2,a[s++]=(u&3)<<6|d&63;return l};const mm=`(function() {
73
+ or you can use record.mirror to access the mirror instance during recording.`;let Fl={map:{},getId(){return console.error(_r),-1},getNode(){return console.error(_r),null},removeNodeFromMap(){console.error(_r)},has(){return console.error(_r),!1},reset(){console.error(_r)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Fl=new Proxy(Fl,{get(e,t,r){return t==="map"&&console.error(_r),Reflect.get(e,t,r)}}));Date.now().toString();function pm(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 mm(e){const t={},r=(s,n)=>{const o={value:s,parent:n,children:[]};return t[s.node.id]=o,o},i=[];for(const s of e){const{nextId:n,parentId:o}=s;if(n&&n in t){const u=t[n];if(u.parent){const d=u.parent.children.indexOf(u);u.parent.children.splice(d,0,r(s,u.parent))}else{const d=i.indexOf(u);i.splice(d,0,r(s,null))}continue}if(o in t){const u=t[o];u.children.push(r(s,u));continue}i.push(r(s,null))}return i}function Oc(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)Oc(e.children[r],t)}function On(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Dc(e,t){var r,i;const s=(i=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:i.frameElement;if(!s||s===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const n=s.getBoundingClientRect(),o=Dc(s,t),u=n.height/s.clientHeight;return{x:n.x*o.relativeScale+o.x,y:n.y*o.relativeScale+o.y,relativeScale:u,absoluteScale:o.absoluteScale*u}}function Et(e){return e?e instanceof pt&&"shadowRoot"in e?!!e.shadowRoot:!!dm.shadowRoot(e):!1}function Dn(e,t){var r;let i=e[t[0]];for(let s=1;s<t.length&&i;s++)i=(r=i.cssRules)==null?void 0:r[t[s]];return i}function Bl(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function gm(e){const t=new Set,r=[];for(let i=e.length;i--;){const s=e[i];t.has(s.id)||(r.push(s),t.add(s.id))}return r}class vm{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 i;return r===void 0?i=this.id++:i=r,this.styleIDMap.set(t,i),this.idStyleMap.set(i,t),i}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 re=(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))(re||{}),H=(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))(H||{}),Se=(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))(Se||{}),Hi=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Hi||{}),oo=(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))(oo||{}),J=(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.SeekStart="seek-start",e.SeekEnd="seek-end",e))(J||{}),Ge=(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))(Ge||{}),Ul="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ei=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var Mi=0;Mi<Ul.length;Mi++)ei[Ul.charCodeAt(Mi)]=Mi;var ym=function(e){var t=e.length*.75,r=e.length,i,s=0,n,o,u,d;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var l=new ArrayBuffer(t),a=new Uint8Array(l);for(i=0;i<r;i+=4)n=ei[e.charCodeAt(i)],o=ei[e.charCodeAt(i+1)],u=ei[e.charCodeAt(i+2)],d=ei[e.charCodeAt(i+3)],a[s++]=n<<2|o>>4,a[s++]=(o&15)<<4|u>>2,a[s++]=(u&3)<<6|d&63;return l};const wm=`(function() {
74
74
  "use strict";
75
75
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
76
76
  var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
@@ -145,7 +145,7 @@ or you can use record.mirror to access the mirror instance during recording.`;le
145
145
  };
146
146
  })();
147
147
  //# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
148
- `;typeof self!="undefined"&&self.Blob&&new Blob([mm],{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=((ga=e.contentWindow)==null?void 0:ga.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}eo();class gm{constructor(t=10){F(this,"entries",[]),F(this,"maxEntries"),this.maxEntries=t}add(t,r,i){const s={type:te.FullSnapshot,data:{node:r,initialOffset:i},timestamp:t},o={timestamp:t,event:s};if(!this.entries.length||this.entries[this.entries.length-1].timestamp<t)this.entries.push(o);else{let n=0,u=this.entries.length-1;for(;n<=u;){const d=n+u>>>1;this.entries[d].timestamp<=t?n=d+1:u=d-1}n>0&&this.entries[n-1].timestamp===t?this.entries[n-1]=o:this.entries.splice(n,0,o)}this.entries.length>this.maxEntries&&this.entries.shift()}findBestFor(t,r){let i=0,s=this.entries.length-1,o=-1;for(;i<=s;){const n=i+s>>>1;this.entries[n].timestamp<=t?(o=n,i=n+1):s=n-1}if(o===-1)return null;for(let n=o;n>=0;n--)if(this.entries[n].timestamp>r)return this.entries[n];return null}clear(){this.entries=[]}get size(){return this.entries.length}getEntries(){return this.entries}}function Oc(e){return{all:e=e||new Map,on:function(t,r){var i=e.get(t);i?i.push(r):e.set(t,[r])},off:function(t,r){var i=e.get(t);i&&(r?i.splice(i.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var i=e.get(t);i&&i.slice().map(function(s){s(r)}),(i=e.get("*"))&&i.slice().map(function(s){s(t,r)})}}}const vm=Object.freeze(Object.defineProperty({__proto__:null,default:Oc},Symbol.toStringTag,{value:"Module"}));function ym(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;const r=e.HTMLElement||e.Element,i=468,s={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||d,scrollIntoView:r.prototype.scrollIntoView},o=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function n(w){const v=["MSIE ","Trident/","Edge/"];return new RegExp(v.join("|")).test(w)}const u=n(e.navigator.userAgent)?1:0;function d(w,v){this.scrollLeft=w,this.scrollTop=v}function l(w){return .5*(1-Math.cos(Math.PI*w))}function a(w){if(w===null||typeof w!="object"||w.behavior===void 0||w.behavior==="auto"||w.behavior==="instant")return!0;if(typeof w=="object"&&w.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+w.behavior+" is not a valid value for enumeration ScrollBehavior.")}function f(w,v){if(v==="Y")return w.clientHeight+u<w.scrollHeight;if(v==="X")return w.clientWidth+u<w.scrollWidth}function c(w,v){const S=e.getComputedStyle(w,null)["overflow"+v];return S==="auto"||S==="scroll"}function h(w){const v=f(w,"Y")&&c(w,"Y"),S=f(w,"X")&&c(w,"X");return v||S}function p(w){for(;w!==t.body&&h(w)===!1;)w=w.parentNode||w.host;return w}function m(w){const v=o();let S,E,y,b=(v-w.startTime)/i;b=b>1?1:b,S=l(b),E=w.startX+(w.x-w.startX)*S,y=w.startY+(w.y-w.startY)*S,w.method.call(w.scrollable,E,y),(E!==w.x||y!==w.y)&&e.requestAnimationFrame(m.bind(e,w))}function g(w,v,S){let E,y,b,_;const C=o();w===t.body?(E=e,y=e.scrollX||e.pageXOffset,b=e.scrollY||e.pageYOffset,_=s.scroll):(E=w,y=w.scrollLeft,b=w.scrollTop,_=d),m({scrollable:E,method:_,startTime:C,startX:y,startY:b,x:v,y:S})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(a(arguments[0])===!0){s.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(a(arguments[0])){s.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(a(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");s.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}const w=arguments[0].left,v=arguments[0].top;g.call(this,this,typeof w=="undefined"?this.scrollLeft:~~w,typeof v=="undefined"?this.scrollTop:~~v)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(a(arguments[0])===!0){s.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(a(arguments[0])===!0){s.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const w=p(this),v=w.getBoundingClientRect(),S=this.getBoundingClientRect();w!==t.body?(g.call(this,w,w.scrollLeft+S.left-v.left,w.scrollTop+S.top-v.top),e.getComputedStyle(w).position!=="fixed"&&e.scrollBy({left:v.left,top:v.top,behavior:"smooth"})):e.scrollBy({left:S.left,top:S.top,behavior:"smooth"})}}class wm{constructor(t=[],r){F(this,"timeOffset",0),F(this,"speed"),F(this,"actions"),F(this,"actionIndex",0),F(this,"raf",null),F(this,"lastTimestamp"),this.actions=t,this.speed=r.speed}addAction(t){const r=this.raf===!0;if(this.actionIndex>=this.actions.length||this.actions[this.actions.length-1].delay<=t.delay)this.actions.push(t);else{const i=this.findActionIndex(t);this.actions.splice(i,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.actionIndex<this.actions.length;){const r=this.actions[this.actionIndex];if(this.timeOffset>=r.delay)this.actionIndex++,r.doAction();else break}this.actionIndex<this.actions.length?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,this.actionIndex=0}setSpeed(t){this.speed=t}isActive(){return this.raf!==null}findActionIndex(t){let r=this.actionIndex,i=this.actions.length-1;for(;r<=i;){const s=Math.floor((r+i)/2);if(this.actions[s].delay<t.delay)r=s+1;else if(this.actions[s].delay>t.delay)i=s-1;else return s+1}return r}}function Ul(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,i=e.timestamp+r;return e.delay=i-t,i-t}return e.delay=e.timestamp-t,e.delay}/*! *****************************************************************************
148
+ `;typeof self!="undefined"&&self.Blob&&new Blob([wm],{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=((va=e.contentWindow)==null?void 0:va.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}to();class bm{constructor(t=10){F(this,"entries",[]),F(this,"maxEntries"),this.maxEntries=t}add(t,r,i){const s={type:re.FullSnapshot,data:{node:r,initialOffset:i},timestamp:t},n={timestamp:t,event:s};if(!this.entries.length||this.entries[this.entries.length-1].timestamp<t)this.entries.push(n);else{let o=0,u=this.entries.length-1;for(;o<=u;){const d=o+u>>>1;this.entries[d].timestamp<=t?o=d+1:u=d-1}o>0&&this.entries[o-1].timestamp===t?this.entries[o-1]=n:this.entries.splice(o,0,n)}this.entries.length>this.maxEntries&&this.entries.shift()}findBestFor(t,r){let i=0,s=this.entries.length-1,n=-1;for(;i<=s;){const o=i+s>>>1;this.entries[o].timestamp<=t?(n=o,i=o+1):s=o-1}if(n===-1)return null;for(let o=n;o>=0;o--)if(this.entries[o].timestamp>r)return this.entries[o];return null}clear(){this.entries=[]}get size(){return this.entries.length}getEntries(){return this.entries}}function Tc(e){return{all:e=e||new Map,on:function(t,r){var i=e.get(t);i?i.push(r):e.set(t,[r])},off:function(t,r){var i=e.get(t);i&&(r?i.splice(i.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var i=e.get(t);i&&i.slice().map(function(s){s(r)}),(i=e.get("*"))&&i.slice().map(function(s){s(t,r)})}}}const Sm=Object.freeze(Object.defineProperty({__proto__:null,default:Tc},Symbol.toStringTag,{value:"Module"}));function _m(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;const r=e.HTMLElement||e.Element,i=468,s={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||d,scrollIntoView:r.prototype.scrollIntoView},n=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function o(w){const v=["MSIE ","Trident/","Edge/"];return new RegExp(v.join("|")).test(w)}const u=o(e.navigator.userAgent)?1:0;function d(w,v){this.scrollLeft=w,this.scrollTop=v}function l(w){return .5*(1-Math.cos(Math.PI*w))}function a(w){if(w===null||typeof w!="object"||w.behavior===void 0||w.behavior==="auto"||w.behavior==="instant")return!0;if(typeof w=="object"&&w.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+w.behavior+" is not a valid value for enumeration ScrollBehavior.")}function h(w,v){if(v==="Y")return w.clientHeight+u<w.scrollHeight;if(v==="X")return w.clientWidth+u<w.scrollWidth}function c(w,v){const S=e.getComputedStyle(w,null)["overflow"+v];return S==="auto"||S==="scroll"}function f(w){const v=h(w,"Y")&&c(w,"Y"),S=h(w,"X")&&c(w,"X");return v||S}function p(w){for(;w!==t.body&&f(w)===!1;)w=w.parentNode||w.host;return w}function m(w){const v=n();let S,E,y,b=(v-w.startTime)/i;b=b>1?1:b,S=l(b),E=w.startX+(w.x-w.startX)*S,y=w.startY+(w.y-w.startY)*S,w.method.call(w.scrollable,E,y),(E!==w.x||y!==w.y)&&e.requestAnimationFrame(m.bind(e,w))}function g(w,v,S){let E,y,b,_;const C=n();w===t.body?(E=e,y=e.scrollX||e.pageXOffset,b=e.scrollY||e.pageYOffset,_=s.scroll):(E=w,y=w.scrollLeft,b=w.scrollTop,_=d),m({scrollable:E,method:_,startTime:C,startX:y,startY:b,x:v,y:S})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(a(arguments[0])===!0){s.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(a(arguments[0])){s.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(a(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");s.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}const w=arguments[0].left,v=arguments[0].top;g.call(this,this,typeof w=="undefined"?this.scrollLeft:~~w,typeof v=="undefined"?this.scrollTop:~~v)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(a(arguments[0])===!0){s.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(a(arguments[0])===!0){s.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const w=p(this),v=w.getBoundingClientRect(),S=this.getBoundingClientRect();w!==t.body?(g.call(this,w,w.scrollLeft+S.left-v.left,w.scrollTop+S.top-v.top),e.getComputedStyle(w).position!=="fixed"&&e.scrollBy({left:v.left,top:v.top,behavior:"smooth"})):e.scrollBy({left:S.left,top:S.top,behavior:"smooth"})}}class Em{constructor(t=[],r){F(this,"timeOffset",0),F(this,"speed"),F(this,"actions"),F(this,"actionIndex",0),F(this,"raf",null),F(this,"lastTimestamp"),this.actions=t,this.speed=r.speed}addAction(t){const r=this.raf===!0;if(this.actionIndex>=this.actions.length||this.actions[this.actions.length-1].delay<=t.delay)this.actions.push(t);else{const i=this.findActionIndex(t);this.actions.splice(i,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.actionIndex<this.actions.length;){const r=this.actions[this.actionIndex];if(this.timeOffset>=r.delay)this.actionIndex++,r.doAction();else break}this.actionIndex<this.actions.length?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,this.actionIndex=0}setSpeed(t){this.speed=t}isActive(){return this.raf!==null}findActionIndex(t){let r=this.actionIndex,i=this.actions.length-1;for(;r<=i;){const s=Math.floor((r+i)/2);if(this.actions[s].delay<t.delay)r=s+1;else if(this.actions[s].delay>t.delay)i=s-1;else return s+1}return r}}function $l(e,t){if(e.type===re.IncrementalSnapshot&&e.data.source===H.MouseMove&&e.data.positions&&e.data.positions.length){const r=e.data.positions[0].timeOffset,i=e.timestamp+r;return e.delay=i-t,i-t}return e.delay=e.timestamp-t,e.delay}/*! *****************************************************************************
149
149
  Copyright (c) Microsoft Corporation.
150
150
 
151
151
  Permission to use, copy, modify, and/or distribute this software for any
@@ -158,7 +158,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
158
158
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
159
159
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
160
160
  PERFORMANCE OF THIS SOFTWARE.
161
- ***************************************************************************** */function $l(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i,s,o=r.call(e),n=[];try{for(;(t===void 0||t-- >0)&&!(i=o.next()).done;)n.push(i.value)}catch(u){s={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}return n}var Ar;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Ar||(Ar={}));var Dc={type:"xstate.init"};function Dn(e){return e===void 0?[]:[].concat(e)}function Er(e){return{type:"xstate.assign",assignment:e}}function Wl(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 Yi(e){return function(t){return e===t}}function Tc(e){return typeof e=="string"?{type:e}:e}function zl(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Yi(e)}}function ql(e,t,r){var i=t,s=!1;return[e.filter((function(o){if(o.type==="xstate.assign"){s=!0;var n=Object.assign({},i);return typeof o.assignment=="function"?n=o.assignment(i,r):Object.keys(o.assignment).forEach((function(u){n[u]=typeof o.assignment[u]=="function"?o.assignment[u](i,r):o.assignment[u]})),i=n,!1}return!0})),i,s]}function kc(e,t){t===void 0&&(t={});var r=$l(ql(Dn(e.states[e.initial].entry).map((function(n){return Wl(n,t.actions)})),e.context,Dc),2),i=r[0],s=r[1],o={config:e,_options:t,initialState:{value:e.initial,actions:i,context:s,matches:Yi(e.initial)},transition:function(n,u){var d,l,a=typeof n=="string"?{value:n,context:e.context}:n,f=a.value,c=a.context,h=Tc(u),p=e.states[f];if(p.on){var m=Dn(p.on[h.type]);try{for(var g=(function(L){var q=typeof Symbol=="function"&&Symbol.iterator,P=q&&L[q],z=0;if(P)return P.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(q?"Object is not iterable.":"Symbol.iterator is not defined.")})(m),w=g.next();!w.done;w=g.next()){var v=w.value;if(v===void 0)return zl(f,c);var S=typeof v=="string"?{target:v}:v,E=S.target,y=S.actions,b=y===void 0?[]:y,_=S.cond,C=_===void 0?function(){return!0}:_,N=E===void 0,x=E!=null?E:f,I=e.states[x];if(C(c,h)){var D=$l(ql((N?Dn(b):[].concat(p.exit,b,I.entry).filter((function(L){return L}))).map((function(L){return Wl(L,o._options.actions)})),c,h),3),ae=D[0],ee=D[1],R=D[2],ie=E!=null?E:f;return{value:ie,context:ee,actions:ae,changed:E!==f||ae.length>0||R,matches:Yi(ie)}}}}catch(L){d={error:L}}finally{try{w&&!w.done&&(l=g.return)&&l.call(g)}finally{if(d)throw d.error}}}return zl(f,c)}};return o}var jl=function(e,t){return e.actions.forEach((function(r){var i=r.exec;return i&&i(e.context,t)}))};function Ic(e){var t=e.initialState,r=Ar.NotStarted,i=new Set,s={_machine:e,send:function(o){r===Ar.Running&&(t=e.transition(t,o),jl(t,Tc(o)),i.forEach((function(n){return n(t)})))},subscribe:function(o){return i.add(o),o(t),{unsubscribe:function(){return i.delete(o)}}},start:function(o){if(o){var n=typeof o=="object"?o:{context:e.config.context,value:o};t={value:n.value,actions:[],context:n.context,matches:Yi(n.value)}}return r=Ar.Running,jl(t,Dc),s},stop:function(){return r=Ar.Stopped,i.clear(),s},get state(){return t},get status(){return r}};return s}function bm(e){const t=[];for(let r=0;r<e.length;r++)e[r].type===te.Meta&&t.push({metaEventIndex:r,timestamp:e[r].timestamp});return t}function Sm(e,t){if(e.length===0)return null;let r=0,i=e.length-1,s=null;for(;r<=i;){const o=Math.floor((r+i)/2);e[o].timestamp<=t?(s=e[o],r=o+1):i=o-1}return s}function Tn(e,t){return e===t?!0:e.timestamp===t.timestamp&&e.type===t.type?JSON.stringify(e)===JSON.stringify(t):!1}function _m(e,{getCastFn:t,applyEventsSynchronously:r,emitter:i}){const s=kc({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:Er({lastPlayedEvent:(o,n)=>n.type==="CAST_EVENT"?n.payload.event:o.lastPlayedEvent}),recordTimeOffset:Er((o,n)=>{let u=o.timeOffset;return"payload"in n&&"timeOffset"in n.payload&&(u=n.payload.timeOffset),be(G({},o),{timeOffset:u,baselineTime:o.events[0].timestamp+u})}),play(o){var g;var n;const{timer:u,events:d,baselineTime:l,lastPlayedEvent:a,checkpointIndex:f}=o;u.clear();const c=Sm(f,l),h=c?c.metaEventIndex:0;let p=a==null?void 0:a.timestamp;(a==null?void 0:a.type)===te.IncrementalSnapshot&&a.data.source===j.MouseMove&&(p=a.timestamp+((n=a.data.positions[0])==null?void 0:n.timeOffset)),l<(p||0)&&i.emit(H.PlayBack);const m=new Array;for(let w=h;w<d.length;w++){const v=d[w];if(!(p&&p<l&&(v.timestamp<=p||v===a)))if(v.timestamp<l)m.push(v);else{Ul(v,l);const S=t(v,!1);u.addAction({doAction:()=>{S()},delay:(g=v.delay)!=null?g:0})}}r(m),i.emit(H.Flush),u.start()},pause(o){o.timer.clear()},resetLastPlayedEvent:Er(o=>be(G({},o),{lastPlayedEvent:null})),startLive:Er({baselineTime:(o,n)=>(o.timer.start(),n.type==="TO_LIVE"&&n.payload.baselineTime?n.payload.baselineTime:Date.now())}),addEvent:Er((o,n)=>{var f;const{baselineTime:u,timer:d,events:l,checkpointIndex:a}=o;if(n.type==="ADD_EVENT"){const{event:c}=n.payload;Ul(c,u);let h=l.length-1,p;if(!l[h]||l[h].timestamp<=c.timestamp){if(l[h]&&Tn(l[h],c))return be(G({},o),{events:l});l.push(c),p=l.length-1}else{let w=0;for(p=0;w<=h;){const v=Math.floor((w+h)/2);l[v].timestamp<=c.timestamp?w=v+1:h=v-1}p=w;for(let v=p-1;v>=0&&l[v].timestamp===c.timestamp;v--)if(Tn(l[v],c))return be(G({},o),{events:l});for(let v=p;v<l.length&&l[v].timestamp===c.timestamp;v++)if(Tn(l[v],c))return be(G({},o),{events:l});l.splice(p,0,c)}if(c.type===te.Meta){const w={metaEventIndex:p,timestamp:c.timestamp},v=a[a.length-1];if(!v||v.timestamp<=c.timestamp)a.push(w);else{for(const y of a)y.metaEventIndex>=p&&y.metaEventIndex++;let S=0,E=a.length-1;for(;S<=E;){const y=Math.floor((S+E)/2);a[y].timestamp<=c.timestamp?S=y+1:E=y-1}a.splice(S,0,w)}}else if(p<l.length-1)for(const w of a)w.metaEventIndex>=p&&w.metaEventIndex++;const m=c.timestamp<u,g=t(c,m);m?g():d.isActive()&&d.addAction({doAction:()=>{g()},delay:(f=c.delay)!=null?f:0})}return be(G({},o),{events:l,checkpointIndex:a})})}});return Ic(s)}function Em(e){const t=kc({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,i)=>{"payload"in i&&r.timer.setSpeed(i.payload.speed)},recordSpeed:Er({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return Ic(t)}const Vl=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Gl=new Map;function Pc(e,t){let r=Gl.get(e);return r||(r=new Map,Gl.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function qt(e,t,r){return async i=>{if(i&&typeof i=="object"&&"rr_type"in i)if(r&&(r.isUnchanged=!1),i.rr_type==="ImageBitmap"&&"args"in i){const s=await qt(e,t,r)(i.args);return await createImageBitmap.apply(null,s)}else if("index"in i){if(r||t===null)return i;const{rr_type:s,index:o}=i;return Pc(t,s)[o]}else if("args"in i){const{rr_type:s,args:o}=i,n=window[s];return new n(...await Promise.all(o.map(qt(e,t,r))))}else{if("base64"in i)return pm(i.base64);if("src"in i){const s=e.get(i.src);if(s)return s;{const o=new Image;return o.src=i.src,e.set(i.src,o),o}}else if("data"in i&&i.rr_type==="Blob"){const s=await Promise.all(i.data.map(qt(e,t,r)));return new Blob(s,{type:i.type})}}else if(Array.isArray(i))return await Promise.all(i.map(qt(e,t,r)));return i}}function Cm(e,t){try{return t===Hi.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch(r){return null}}const xm=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function Rm(e,t){if(!(t!=null&&t.constructor))return;const{name:r}=t.constructor;if(!xm.includes(r))return;const i=Pc(e,r);i.includes(t)||i.push(t)}async function Mm({mutation:e,target:t,type:r,imageMap:i,errorHandler:s}){try{const o=Cm(t,r);if(!o)return;if(e.setter){o[e.property]=e.args[0];return}const n=o[e.property],u=await Promise.all(e.args.map(qt(i,o))),d=n.apply(o,u);Rm(o,d);const l=!1}catch(o){s(e,o)}}async function Nm({event:e,mutations:t,target:r,imageMap:i,errorHandler:s}){const o=r.getContext("2d");if(!o){s(t[0],new Error("Canvas context is null"));return}const n=t.map(async d=>Promise.all(d.args.map(qt(i,o))));(await Promise.all(n)).forEach((d,l)=>{const a=t[l];try{if(a.setter){o[a.property]=a.args[0];return}const f=o[a.property];a.property==="drawImage"&&typeof a.args[0]=="string"?(i.get(e),f.apply(o,a.args)):f.apply(o,d)}catch(f){s(a,f)}})}async function Hl({event:e,mutation:t,target:r,imageMap:i,canvasEventMap:s,errorHandler:o}){try{const n=s.get(e)||t,u="commands"in n?n.commands:[n];if([Hi.WebGL,Hi.WebGL2].includes(t.type)){for(let d=0;d<u.length;d++){const l=u[d];await Mm({mutation:l,type:t.type,target:r,imageMap:i,errorHandler:o})}return}await Nm({event:e,mutations:u,target:r,imageMap:i,errorHandler:o})}catch(n){o(t,n)}}class Am{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(H.Start,this.start.bind(this)),this.emitter.on(H.SkipStart,this.start.bind(this)),this.emitter.on(H.Pause,this.pause.bind(this)),this.emitter.on(H.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(t={pause:!1}){this.mediaMap.forEach((r,i)=>{this.syncTargetWithState(i),t.pause&&i.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:t,target:r,mediaState:i}){if(i.isPlaying){const o=(t-i.lastInteractionTimeOffset)/1e3*i.playbackRate,n="duration"in r&&r.duration;if(Number.isNaN(n)){this.waitForMetadata(r);return}let u=i.currentTimeAtLastInteraction+o;r.loop&&n!==!1&&(u=u%n),r.currentTime=u}else r.pause(),r.currentTime=i.currentTimeAtLastInteraction}waitForMetadata(t){if(this.metadataCallbackMap.has(t)||!("addEventListener"in t))return;const r=()=>{this.metadataCallbackMap.delete(t);const i=this.mediaMap.get(t);i&&this.seekTo({time:this.getCurrentTime(),target:t,mediaState:i})};this.metadataCallbackMap.set(t,r),t.addEventListener("loadedmetadata",r,{once:!0})}getMediaStateFromMutation({target:t,timeOffset:r,mutation:i}){var h,p,m,g,w;const s=this.mediaMap.get(t),{type:o,playbackRate:n,currentTime:u,muted:d,volume:l,loop:a}=i;return{isPlaying:o===no.Play||o!==no.Pause&&((s==null?void 0:s.isPlaying)||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:(h=u!=null?u:s==null?void 0:s.currentTimeAtLastInteraction)!=null?h:0,lastInteractionTimeOffset:r,playbackRate:(p=n!=null?n:s==null?void 0:s.playbackRate)!=null?p:1,volume:(m=l!=null?l:s==null?void 0:s.volume)!=null?m:1,muted:(g=d!=null?d:s==null?void 0:s.muted)!=null?g:t.getAttribute("muted")===null,loop:(w=a!=null?a:s==null?void 0:s.loop)!=null?w:t.getAttribute("loop")===null}}syncTargetWithState(t){const r=this.mediaMap.get(t);if(!r)return;const{muted:i,loop:s,volume:o,isPlaying:n}=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!==o&&(t.volume=o),t.muted=i,t.loop=s,t.playbackRate!==d&&(t.playbackRate=d),n&&!u?t.play():t.pause()}catch(l){this.warn(`Failed to replay media interactions: ${l.message||l}`)}}addMediaElements(t,r,i){if(!["AUDIO","VIDEO"].includes(t.nodeName))return;const s=t,o=i.getMeta(s);if(!o||!("attributes"in o))return;const n=this.service.state.matches("paused"),u=o.attributes;let d=!1;u.rr_mediaState?d=u.rr_mediaState==="played":d=s.getAttribute("autoplay")!==null,d&&n&&s.pause();let l=1;typeof u.rr_mediaPlaybackRate=="number"&&(l=u.rr_mediaPlaybackRate);let a=!1;typeof u.rr_mediaMuted=="boolean"?a=u.rr_mediaMuted:a=s.getAttribute("muted")!==null;let f=!1;typeof u.rr_mediaLoop=="boolean"?f=u.rr_mediaLoop:f=s.getAttribute("loop")!==null;let c=1;typeof u.rr_mediaVolume=="number"&&(c=u.rr_mediaVolume);let h=0;typeof u.rr_mediaCurrentTime=="number"&&(h=u.rr_mediaCurrentTime),this.mediaMap.set(s,{isPlaying:d,currentTimeAtLastInteraction:h,lastInteractionTimeOffset:r,playbackRate:l,volume:c,muted:a,loop:f}),this.syncTargetWithState(s)}mediaMutation({target:t,timeOffset:r,mutation:i}){this.mediaMap.set(t,this.getMediaStateFromMutation({target:t,timeOffset:r,mutation:i})),this.syncTargetWithState(t)}isSupportedMediaElement(t){return["AUDIO","VIDEO"].includes(t.nodeName)}reset(){this.mediaMap.clear()}}function Ai(e,t){if(e.nodeName!=="DIALOG"||e instanceof pt)return;const r=e,i=r.open,s=i&&r.matches("dialog:modal"),o=r.getAttribute("rr_open_mode"),n=typeof(t==null?void 0:t.attributes.open)=="string"||typeof r.getAttribute("open")=="string",u=o==="modal";if(!(i&&!(s&&o==="non-modal"||!s&&u))){if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}i&&r.close(),n&&(u?r.showModal():r.show())}}function Om(e,t){if(e.nodeName!=="DIALOG"||e instanceof pt)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 Dm=Oc||vm,Yl="[replayer]",Oi="__rrweb-injected-style__",kn={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Jl(e){return e.type==te.IncrementalSnapshot&&(e.data.source==j.TouchMove||e.data.source==j.MouseInteraction&&e.data.type==Se.TouchStart)}class Tm{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 qr),F(this,"mouse"),F(this,"mouseTail",null),F(this,"tailPositions",[]),F(this,"emitter",Dm()),F(this,"nextUserInteractionEvent"),F(this,"legacy_missingNodeRetryMap",{}),F(this,"cache",rl()),F(this,"imageMap",new Map),F(this,"canvasEventMap",new Map),F(this,"mirror",eo()),F(this,"styleMirror",new dm),F(this,"mediaManager"),F(this,"firstFullSnapshot",null),F(this,"seekCache"),F(this,"newDocumentQueue",[]),F(this,"mousePos",null),F(this,"touchActive",null),F(this,"seekInProgress",!1),F(this,"pendingCaptureTimer",null),F(this,"lastMouseDownEvent",null),F(this,"lastHoveredRootNode"),F(this,"lastSelectionData",null),F(this,"constructedStyleMutations",[]),F(this,"adoptedStyleSheets",[]),F(this,"snapshotAdoptedStyleSheetQueue",[]),F(this,"handleResize",l=>{this.iframe.style.display="inherit";for(const a of[this.mouseTail,this.iframe])a&&(a.setAttribute("width",String(l.width)),a.setAttribute("height",String(l.height)))}),F(this,"applyEventsSynchronously",l=>{var a;let f=-1;for(let h=l.length-1;h>=0;h--)if(l[h].type===te.FullSnapshot){f=h;break}let c=0;if(this.config.useSeekCache&&l.length>0){const h=l.find(p=>p.type===te.FullSnapshot);if(h){const p=l[l.length-1].timestamp,m=this.seekCache.findBestFor(p,h.timestamp);if(m){const g=l.find(S=>S.type===te.Meta);g&&this.getCastFn(g,!0)(),this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(m.event,!0),this.firstFullSnapshot=!0,(a=this.iframe.contentWindow)==null||a.scrollTo(m.event.data.initialOffset);let w=0,v=l.length;for(;w<v;){const S=w+v>>>1;l[S].timestamp<=m.timestamp?w=S+1:v=S}c=w}}}for(let h=c;h<l.length;h++){const p=l[h];switch(p.type){case te.DomContentLoaded:case te.Load:case te.Custom:continue;case te.IncrementalSnapshot:if(h<f)continue;break;case te.FullSnapshot:case te.Meta:case te.Plugin:break}this.getCastFn(p,!0)()}}),F(this,"getCastFn",(l,a=!1)=>{let f;switch(l.type){case te.DomContentLoaded:case te.Load:break;case te.Custom:f=()=>{this.emitter.emit(H.CustomEvent,l)};break;case te.Meta:f=()=>this.emitter.emit(H.Resize,{width:l.data.width,height:l.data.height});break;case te.FullSnapshot:f=()=>{var h;if(this.firstFullSnapshot){if(this.firstFullSnapshot===l){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(l,a),(h=this.iframe.contentWindow)==null||h.scrollTo(l.data.initialOffset)};break;case te.IncrementalSnapshot:f=()=>{if(this.applyIncremental(l,a),!a&&this.config.skipInactive&&!this.nextUserInteractionEvent){for(const h of this.service.state.context.events)if(!(h.timestamp<=l.timestamp)&&this.isUserInteraction(h)){h.delay-l.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=h);break}if(this.nextUserInteractionEvent){const h=this.nextUserInteractionEvent.delay-l.delay;this.playInternal(this.getCurrentTime()+h),this.nextUserInteractionEvent=null}}};break}return()=>{f&&f();for(const p of this.config.plugins||[])p.handler&&p.handler(l,a,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:l}});const h=this.service.state.context.events.length-1;if(!this.config.liveMode&&l===this.service.state.context.events[h]){const p=()=>{h<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(H.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(H.EventCast,l)}}),!(r!=null&&r.liveMode)&&t.length<2)throw new Error("Replayer need at least 2 events.");const i={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:10*1e3,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:kn,useVirtualDom:!0,useSeekCache:!1,seekCacheMaxEntries:10,logger:console};this.config=Object.assign({},i,r),this.seekCache=new gm(this.config.seekCacheMaxEntries),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(H.Resize,this.handleResize),this.setupDom();for(const l of this.config.plugins||[])l.getMirror&&l.getMirror({nodeMirror:this.mirror});this.emitter.on(H.Flush,()=>{if(this.usingVirtualDom){const l={mirror:this.mirror,applyCanvas:(a,f,c)=>{Hl({event:a,mutation:f,target:c,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(a,f)=>{a.source===j.StyleSheetRule?this.applyStyleSheetRule(a,f):a.source===j.StyleDeclaration&&this.applyStyleDeclaration(a,f)},afterAppend:(a,f)=>{for(const c of this.config.plugins||[])c.onBuild&&c.onBuild(a,{id:f,replayer:this})}};if(this.iframe.contentDocument)try{Vi(this.iframe.contentDocument,this.virtualDom,l,this.virtualDom.mirror)}catch(a){console.warn(a)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(const a in this.legacy_missingNodeRetryMap)try{const f=this.legacy_missingNodeRetryMap[a],c=Gi(f.node,this.mirror,this.virtualDom.mirror);Vi(c,f.node,l,this.virtualDom.mirror),f.node=c}catch(f){this.warn(f)}this.constructedStyleMutations.forEach(a=>{this.applyStyleSheetMutation(a)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(a=>{this.applyAdoptedStyleSheet(a)}),this.adoptedStyleSheets=[],this.snapshotAdoptedStyleSheetQueue.forEach(({id:a,adoptedStyleSheets:f})=>{this.applyQueuedSnapshotAdoptedStyleSheets(a,f)}),this.snapshotAdoptedStyleSheetQueue=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),this.touchActive===!0?this.mouse.classList.add("touch-active"):this.touchActive===!1&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){const[l,a]=this.lastMouseDownEvent;l.dispatchEvent(a)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(H.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()}),this.emitter.on(H.Flush,()=>{if(this.seekInProgress){this.seekInProgress=!1;const l=this.getTimeOffset();this.emitter.emit(H.SeekEnd,{timeOffset:l})}if(this.config.useSeekCache){const l=this.service.state.context.baselineTime;this.pendingCaptureTimer!==null&&clearTimeout(this.pendingCaptureTimer),this.pendingCaptureTimer=setTimeout(()=>{this.pendingCaptureTimer=null,this.captureSeekCacheEntry(l)},0)}});const s=new wm([],{speed:this.config.speed}),o=t.map(l=>r&&r.unpackFn?r.unpackFn(l):l).sort((l,a)=>l.timestamp-a.timestamp),n=bm(o);this.service=_m({events:o,timer:s,timeOffset:0,baselineTime:0,lastPlayedEvent:null,checkpointIndex:n},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(l=>{this.emitter.emit(H.StateChange,{player:l})}),this.speedService=Em({normalSpeed:-1,timer:s}),this.speedService.start(),this.speedService.subscribe(l=>{this.emitter.emit(H.StateChange,{speed:l})}),this.mediaManager=new Am({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:a}=u.data;setTimeout(()=>{this.emitter.emit(H.Resize,{width:l,height:a})},0)}d&&setTimeout(()=>{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(Jl)&&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}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){this.seekInProgress=!0,this.emitter.emit(H.SeekStart,{timeOffset:t}),this.playInternal(t)}playInternal(t=0){var r,i;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}})),(i=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||i.classList.remove("rrweb-paused"),this.emitter.emit(H.Start)}pause(t){var r,i;t===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof t=="number"&&(this.play(t),this.service.send({type:"PAUSE"})),(i=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||i.classList.add("rrweb-paused"),this.emitter.emit(H.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(H.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(H.Destroy)}startLive(t){this.service.send({type:"TO_LIVE",payload:{baselineTime:t}})}addEvent(t){const r=this.config.unpackFn?this.config.unpackFn(t):t;Jl(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=rl()}resetSeekCache(){this.seekCache.clear()}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&&(ym(this.iframe.contentWindow,this.iframe.contentDocument),cm(this.iframe.contentWindow))}captureSeekCacheEntry(t){var n,u;if(!this.iframe.contentDocument||t<=0)return;const r=eo();this.mirror.getIds().forEach(d=>{const l=this.mirror.getNode(d);if(!l)return;const a=this.mirror.getMeta(l);a&&r.add(l,a)});const i=Pd(this.iframe.contentDocument,{mirror:r,blockClass:this.config.blockClass,inlineStylesheet:!0,onAdoptedStyleSheet:d=>this.styleMirror.add(d)});if(!i)return;const s=this.iframe.contentDocument.scrollingElement||this.iframe.contentDocument.documentElement,o={top:(n=s==null?void 0:s.scrollTop)!=null?n:0,left:(u=s==null?void 0:s.scrollLeft)!=null?u:0};this.seekCache.add(t,i,o)}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 i=[],s=new Set,o=(d,l)=>{var a;if(d.nodeName==="DIALOG"&&s.add(d),this.collectIframeAndAttachDocument(i,d),this.mediaManager.isSupportedMediaElement(d)){const{events:c}=this.service.state.context;this.mediaManager.addMediaElements(d,t.timestamp-c[0].timestamp,this.mirror)}const f=this.mirror.getMeta(d);f&&"adoptedStyleSheets"in f&&((a=f.adoptedStyleSheets)!=null&&a.length)&&this.applySnapshotAdoptedStyleSheets(d,f.adoptedStyleSheets);for(const c of this.config.plugins||[])c.onBuild&&c.onBuild(d,{id:l,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),this.styleMirror.reset(),np(t.data.node,{doc:this.iframe.contentDocument,afterAppend:o,cache:this.cache,mirror:this.mirror}),o(this.iframe.contentDocument,t.data.node.id);for(const{mutationInQueue:d,builtNode:l}of i)this.attachDocumentToIframe(d,l),this.newDocumentQueue=this.newDocumentQueue.filter(a=>a!==d);const{documentElement:n,head:u}=this.iframe.contentDocument;this.insertStyleRules(n,u),s.forEach(d=>Ai(d)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(H.FullsnapshotRebuilded,t),r||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(t,r){var i;const s=Vl(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&s.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),!!s.length)if(this.usingVirtualDom){const o=this.virtualDom.createElement("style");this.virtualDom.mirror.add(o,so(o,this.virtualDom.unserializedId)),t.insertBefore(o,r),o.rules.push({source:j.StyleSheetRule,adds:s.map((n,u)=>({rule:n,index:u}))})}else{const o=document.createElement("style");t.insertBefore(o,r);for(let n=0;n<s.length;n++)(i=o.sheet)==null||i.insertRule(s[n],n)}}isShadowRoot(t){return t.nodeType===Node.DOCUMENT_FRAGMENT_NODE}insertStyleRulesIntoShadowRoot(t){var s;var r;const i=Vl(this.config.blockClass).concat(this.config.insertStyleRules);if(i.length){if(this.usingVirtualDom&&t.getAttribute("id")!==Oi){const o=this.virtualDom.createElement("style");this.virtualDom.mirror.add(o,so(o,this.virtualDom.unserializedId)),o.setAttribute("id",Oi),t.insertBefore(o,t.firstChild||null),o.rules.push({source:j.StyleSheetRule,adds:i.map((n,u)=>({rule:n,index:u}))})}else if(this.isShadowRoot(t)&&!t.getElementById(Oi)){const o=document.createElement("style");o.id=Oi,t.insertBefore(o,(s=t.firstChild)!=null?s:null);for(let n=0;n<i.length;n++)(r=o.sheet)==null||r.insertRule(i[n],n)}}}attachDocumentToIframe(t,r){const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,s=[],o=new Set,n=(d,l)=>{var a;d.nodeName==="DIALOG"&&o.add(d),this.collectIframeAndAttachDocument(s,d);const f=i.getMeta(d);if((f==null?void 0:f.type)===Ge.Element&&(f==null?void 0:f.tagName.toUpperCase())==="HTML"){if(!r.contentDocument)return;const{documentElement:c,head:h}=r.contentDocument;this.insertStyleRules(c,h)}{const c=i.getMeta(d);if(c&&"adoptedStyleSheets"in c&&((a=c.adoptedStyleSheets)!=null&&a.length))if(this.usingVirtualDom){const h=i.getId(d);this.snapshotAdoptedStyleSheetQueue.push({id:h,adoptedStyleSheets:c.adoptedStyleSheets})}else this.applySnapshotAdoptedStyleSheets(d,c.adoptedStyleSheets)}if(!this.usingVirtualDom)for(const c of this.config.plugins||[])c.onBuild&&c.onBuild(d,{id:l,replayer:this})},u=r.contentDocument;if(u){si(t.node,{doc:u,mirror:i,hackCss:!0,skipChild:!1,afterAppend:n,cache:this.cache}),n(u,t.node.id);for(const{mutationInQueue:d,builtNode:l}of s)this.attachDocumentToIframe(d,l),this.newDocumentQueue=this.newDocumentQueue.filter(a=>a!==d);o.forEach(d=>Ai(d))}}collectIframeAndAttachDocument(t,r){if(On(r,this.mirror)){const i=this.newDocumentQueue.find(s=>s.parentId===this.mirror.getId(r));i&&t.push({mutationInQueue:i,builtNode:r})}}waitForStylesheetLoad(){var t;const r=(t=this.iframe.contentDocument)==null?void 0:t.head;if(r){const i=new Set;let s,o=this.service.state;const n=()=>{o=this.service.state};this.emitter.on(H.Start,n),this.emitter.on(H.Pause,n);const u=()=>{this.emitter.off(H.Start,n),this.emitter.off(H.Pause,n)};r.querySelectorAll('link[rel="stylesheet"]').forEach(d=>{d.sheet||(i.add(d),d.addEventListener("load",()=>{i.delete(d),i.size===0&&s!==-1&&(o.matches("playing")&&this.playInternal(this.getCurrentTime()),this.emitter.emit(H.LoadStylesheetEnd),s&&clearTimeout(s),u())}))}),i.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(H.LoadStylesheetStart),s=setTimeout(()=>{o.matches("playing")&&this.playInternal(this.getCurrentTime()),s=-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(s=>{this.preloadImages(s,r)}));return Promise.all(t)}preloadImages(t,r){if(t.property==="drawImage"&&typeof t.args[0]=="string"&&!this.imageMap.has(r)){const i=document.createElement("canvas"),s=i.getContext("2d"),o=s==null?void 0:s.createImageData(i.width,i.height);o&&(s==null||s.putImageData(o,0,0))}}async deserializeAndPreloadCanvasEvents(t,r){if(!this.canvasEventMap.has(r)){const i={isUnchanged:!0};if("commands"in t){const s=await Promise.all(t.commands.map(async o=>{const n=await Promise.all(o.args.map(qt(this.imageMap,null,i)));return be(G({},o),{args:n})}));i.isUnchanged===!1&&this.canvasEventMap.set(r,be(G({},t),{commands:s}))}else{const s=await Promise.all(t.args.map(qt(this.imageMap,null,i)));i.isUnchanged===!1&&this.canvasEventMap.set(r,be(G({},t),{args:s}))}}}applyIncremental(t,r){var i,s,o;const{data:n}=t;switch(n.source){case j.Mutation:{try{this.applyMutation(n,r)}catch(u){this.warn(`Exception in mutation ${u.message||u}`,n)}break}case j.Drag:case j.TouchMove:case j.MouseMove:if(r){const u=n.positions[n.positions.length-1];this.mousePos={x:u.x,y:u.y,id:u.id,debugData:n}}else n.positions.forEach(u=>{const d={doAction:()=>{this.moveAndHover(u.x,u.y,u.id,r,n)},delay:u.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(d)}),this.timer.addAction({doAction(){},delay:t.delay-((i=n.positions[0])==null?void 0:i.timeOffset)});break;case j.MouseInteraction:{if(n.id===-1)break;const u=new Event(di(Se[n.type])),d=this.mirror.getNode(n.id);if(!d)return this.debugNodeNotFound(n,n.id);this.emitter.emit(H.MouseInteraction,{type:n.type,target:d});const{triggerFocus:l}=this.config;switch(n.type){case Se.Blur:"blur"in d&&d.blur();break;case Se.Focus:l&&d.focus&&d.focus({preventScroll:!0});break;case Se.Click:case Se.TouchStart:case Se.TouchEnd:case Se.MouseDown:case Se.MouseUp:r?(n.type===Se.TouchStart?this.touchActive=!0:n.type===Se.TouchEnd&&(this.touchActive=!1),n.type===Se.MouseDown?this.lastMouseDownEvent=[d,u]:n.type===Se.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:n.x||0,y:n.y||0,id:n.id,debugData:n}):(n.type===Se.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(n.x||0,n.y||0,n.id,r,n),n.type===Se.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):n.type===Se.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):n.type===Se.TouchEnd?this.mouse.classList.remove("touch-active"):d.dispatchEvent(u));break;case Se.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:d.dispatchEvent(u)}break}case j.Scroll:{if(n.id===-1)break;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(n.id);if(!u)return this.debugNodeNotFound(n,n.id);u.scrollData=n;break}this.applyScroll(n,r);break}case j.ViewportResize:this.emitter.emit(H.Resize,{width:n.width,height:n.height});break;case j.Input:{if(n.id===-1)break;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(n.id);if(!u)return this.debugNodeNotFound(n,n.id);u.inputData=n;break}this.applyInput(n);break}case j.MediaInteraction:{const u=this.usingVirtualDom?this.virtualDom.mirror.getNode(n.id):this.mirror.getNode(n.id);if(!u)return this.debugNodeNotFound(n,n.id);const d=u,{events:l}=this.service.state.context;this.mediaManager.mediaMutation({target:d,timeOffset:t.timestamp-l[0].timestamp,mutation:n});break}case j.StyleSheetRule:case j.StyleDeclaration:{this.usingVirtualDom?n.styleId?this.constructedStyleMutations.push(n):n.id&&((s=this.virtualDom.mirror.getNode(n.id))==null||s.rules.push(n)):this.applyStyleSheetMutation(n);break}case j.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(n.id);if(!u)return this.debugNodeNotFound(n,n.id);u.canvasMutations.push({event:t,mutation:n})}else{const u=this.mirror.getNode(n.id);if(!u)return this.debugNodeNotFound(n,n.id);Hl({event:t,mutation:n,target:u,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case j.Font:{try{const u=new FontFace(n.family,n.buffer?new Uint8Array(JSON.parse(n.fontSource)):n.fontSource,n.descriptors);(o=this.iframe.contentDocument)==null||o.fonts.add(u)}catch(u){this.warn(u)}break}case j.Selection:{if(r){this.lastSelectionData=n;break}this.applySelection(n);break}case j.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(n):this.applyAdoptedStyleSheet(n);break}}}applyMutation(t,r){if(this.config.useVirtualDom&&!this.usingVirtualDom&&r){if(this.usingVirtualDom=!0,!this.iframe.contentDocument)return;if(Hp(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length)for(const l in this.legacy_missingNodeRetryMap)try{const a=this.legacy_missingNodeRetryMap[l],f=Rc(a.node,this.virtualDom,this.mirror);f&&(a.node=f)}catch(a){this.warn(a)}}const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(l=>i.getNode(l.id)?!0:(this.warnNodeNotFound(t,l.id),!1)),t.removes.forEach(l=>{var a;const f=i.getNode(l.id);if(!f)return;let c=i.getNode(l.parentId);if(!c)return this.warnNodeNotFound(t,l.parentId);if(l.isShadow&&Et(c)&&(c=c.shadowRoot),i.removeNodeFromMap(f),c)try{c.removeChild(f),this.usingVirtualDom&&f.nodeName==="#text"&&c.nodeName==="STYLE"&&((a=c.rules)==null?void 0:a.length)>0&&(c.rules=[])}catch(h){if(h instanceof DOMException)this.warn("parent could not remove child in mutation",c,f,t);else throw h}});const s=G({},this.legacy_missingNodeRetryMap),o=[],n=l=>{let a=null;return l.nextId&&(a=i.getNode(l.nextId)),l.nextId!==null&&l.nextId!==void 0&&l.nextId!==-1&&!a},u=l=>{var a,f;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let c=i.getNode(l.parentId);if(!c)return l.node.type===Ge.Document?this.newDocumentQueue.push(l):o.push(l);l.node.isShadow&&(Et(c)||c.attachShadow({mode:"open"}),c=c.shadowRoot,this.insertStyleRulesIntoShadowRoot(c));let h=null,p=null;if(l.previousId&&(h=i.getNode(l.previousId)),l.nextId&&(p=i.getNode(l.nextId)),n(l))return o.push(l);if(l.node.rootId&&!i.getNode(l.node.rootId))return;const m=l.node.rootId?i.getNode(l.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(On(c,i)){this.attachDocumentToIframe(l,c);return}const g=(S,E)=>{const y=this.inlineAdoptedStyleSheetsFromMutationNode(l.node,S);if(y&&this.usingVirtualDom&&this.snapshotAdoptedStyleSheetQueue.push({id:E,adoptedStyleSheets:y}),!this.usingVirtualDom){Ai(S),y&&(this.ensureShadowHostForInlineAdoptedStyles(l.node,S),this.applySnapshotAdoptedStyleSheets(S,y));for(const b of this.config.plugins||[])b.onBuild&&b.onBuild(S,{id:E,replayer:this})}},w=si(l.node,{doc:m,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:g});if(l.previousId===-1||l.nextId===-1){s[l.node.id]={node:w,mutation:l};return}const v=i.getMeta(c);if(v&&v.type===Ge.Element&&l.node.type===Ge.Text){const S=Array.isArray(c.childNodes)?c.childNodes:Array.from(c.childNodes);if(v.tagName==="textarea")for(const E of S)E.nodeType===c.TEXT_NODE&&c.removeChild(E);else if(v.tagName==="style"&&S.length===1)for(const E of S)E.nodeType===c.TEXT_NODE&&!i.hasNode(E)&&(w.textContent=E.textContent,c.removeChild(E))}else if((v==null?void 0:v.type)===Ge.Document){const S=c;l.node.type===Ge.DocumentType&&((a=S.childNodes[0])==null?void 0:a.nodeType)===Node.DOCUMENT_TYPE_NODE&&S.removeChild(S.childNodes[0]),w.nodeName==="HTML"&&S.documentElement&&S.removeChild(S.documentElement)}if(h&&h.nextSibling&&h.nextSibling.parentNode?c.insertBefore(w,h.nextSibling):p&&p.parentNode?c.contains(p)?c.insertBefore(w,p):c.insertBefore(w,null):c.appendChild(w),g(w,l.node.id),this.usingVirtualDom&&w.nodeName==="#text"&&c.nodeName==="STYLE"&&((f=c.rules)==null?void 0:f.length)>0&&(c.rules=[]),On(w,this.mirror)){const S=this.mirror.getId(w),E=this.newDocumentQueue.find(y=>y.parentId===S);E&&(this.attachDocumentToIframe(E,w),this.newDocumentQueue=this.newDocumentQueue.filter(y=>y!==E))}(l.previousId||l.nextId)&&this.legacy_resolveMissingNode(s,c,w,l)};t.adds.forEach(l=>{u(l)});const d=Date.now();for(;o.length;){const l=o.length,a=fm(o);if(o.length=0,Date.now()-d>500){this.warn("Timeout in the loop, please check the resolve tree data:",a);break}for(const f of a)i.getNode(f.value.parentId)?Nc(f,h=>{u(h)}):this.debug("Drop resolve tree since there is no parent for the root node.",f);if(o.length===l){this.warn("Dropping the resolve queue since none of the remaining nodes can be resolved",a.map(f=>({id:f.value.node.id,parentId:f.value.parentId,nextId:f.value.nextId,children:f.children.length})));break}}Object.keys(s).length&&Object.assign(this.legacy_missingNodeRetryMap,s),hm(t.texts).forEach(l=>{var a;const f=i.getNode(l.id);if(!f)return t.removes.find(h=>h.id===l.id)?void 0:this.warnNodeNotFound(t,l.id);const c=f.parentElement;if(l.value&&c&&c.tagName==="STYLE"?f.textContent=hs(l.value,this.cache):f.textContent=l.value,this.usingVirtualDom){const h=f.parentNode;((a=h==null?void 0:h.rules)==null?void 0:a.length)>0&&(h.rules=[])}}),t.attributes.forEach(l=>{var a;const f=i.getNode(l.id);if(!f)return t.removes.find(c=>c.id===l.id)?void 0:this.warnNodeNotFound(t,l.id);for(const c in l.attributes)if(typeof c=="string"){const h=l.attributes[c];if(h===null)f.removeAttribute(c),c==="open"&&Om(f,l);else if(typeof h=="string")try{if(c==="_cssText"&&(f.nodeName==="LINK"||f.nodeName==="STYLE"))try{const p=i.getMeta(f);Object.assign(p.attributes,l.attributes);const m=si(p,{doc:f.ownerDocument,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache}),g=f.nextSibling,w=f.parentNode;if(m&&w){w.removeChild(f),w.insertBefore(m,g),i.replace(l.id,m);break}}catch(p){}if(c==="value"&&f.nodeName==="TEXTAREA"){const p=f;p.childNodes.forEach(g=>p.removeChild(g));const m=(a=f.ownerDocument)==null?void 0:a.createTextNode(h);m&&p.appendChild(m)}else f.setAttribute(c,h);c==="rr_open_mode"&&f.nodeName==="DIALOG"&&Ai(f,l)}catch(p){this.warn("An error occurred may due to the checkout feature.",p)}else if(c==="style"){const p=h,m=f;for(const g in p)if(p[g]===!1)m.style.removeProperty(g);else if(p[g]instanceof Array){const w=p[g];m.style.setProperty(g,w[0],w[1])}else{const w=p[g];m.style.setProperty(g,w)}}}})}applyScroll(t,r){var i,s;const o=this.mirror.getNode(t.id);if(!o)return this.debugNodeNotFound(t,t.id);const n=this.mirror.getMeta(o);if(o===this.iframe.contentDocument)(i=this.iframe.contentWindow)==null||i.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else if((n==null?void 0:n.type)===Ge.Document)(s=o.defaultView)==null||s.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else try{o.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(i){}}applySelection(t){try{const r=new Set,i=t.ranges.map(({start:s,startOffset:o,end:n,endOffset:u})=>{const d=this.mirror.getNode(s),l=this.mirror.getNode(n);if(!d||!l)return;const a=new Range;a.setStart(d,o),a.setEnd(l,u);const f=d.ownerDocument,c=f==null?void 0:f.getSelection();return c&&r.add(c),{range:a,selection:c}});r.forEach(s=>s.removeAllRanges()),i.forEach(s=>{var o;return s&&((o=s.selection)==null?void 0:o.addRange(s.range))})}catch(r){}}applyStyleSheetMutation(t){var r;let i=null;t.styleId?i=this.styleMirror.getStyle(t.styleId):t.id&&(i=((r=this.mirror.getNode(t.id))==null?void 0:r.sheet)||null),i&&(t.source===j.StyleSheetRule?this.applyStyleSheetRule(t,i):t.source===j.StyleDeclaration&&this.applyStyleDeclaration(t,i))}applyStyleSheetRule(t,r){var i,s,o,n;if((i=t.adds)==null||i.forEach(({rule:u,index:d})=>{try{if(Array.isArray(d)){const{positions:l,index:a}=Fl(d);Zr(r.cssRules,l).insertRule(u,a)}else{const l=d===void 0?void 0:Math.min(d,r.cssRules.length);r==null||r.insertRule(u,l)}}catch(l){}}),(s=t.removes)==null||s.forEach(({index:u})=>{try{if(Array.isArray(u)){const{positions:d,index:l}=Fl(u);Zr(r.cssRules,d).deleteRule(l||0)}else r==null||r.deleteRule(u)}catch(d){}}),t.replace)try{(o=r.replace)==null||o.call(r,t.replace)}catch(u){}if(t.replaceSync)try{(n=r.replaceSync)==null||n.call(r,t.replaceSync)}catch(u){}}applyStyleDeclaration(t,r){t.set&&Zr(r.rules,t.index).style.setProperty(t.set.property,t.set.value,t.set.priority),t.remove&&Zr(r.rules,t.index).style.removeProperty(t.remove.property)}applyQueuedSnapshotAdoptedStyleSheets(t,r){const i=this.mirror.getNode(t);if(!i)return;const s=this.mirror.getMeta(i);(s==null?void 0:s.type)===Ge.Element&&s.isShadowHost&&i.nodeType===Node.ELEMENT_NODE&&!Et(i)&&i.attachShadow({mode:"open"}),this.applySnapshotAdoptedStyleSheets(i,r)}inlineAdoptedStyleSheetsFromMutationNode(t,r){var i;return!("adoptedStyleSheets"in t)||!((i=t.adoptedStyleSheets)!=null&&i.length)?null:t.type===Ge.Document||t.type===Ge.Element&&t.isShadowHost||Et(r)?t.adoptedStyleSheets:null}ensureShadowHostForInlineAdoptedStyles(t,r){if(t.type!==Ge.Element||!t.isShadowHost)return;const i=r;i.nodeType!==Node.ELEMENT_NODE||Et(i)||i.attachShadow({mode:"open"})}applySnapshotAdoptedStyleSheets(t,r){var i;let s=null;if(Et(t)?s=((i=t.ownerDocument)==null?void 0:i.defaultView)||null:t.nodeName==="#document"&&(s=t.defaultView),!s)return;const o=[];for(const{styleId:n,rules:u}of r){const d=this.styleMirror.getStyle(n);if(d){u.length&&this.applyStyleSheetRule({source:j.StyleSheetRule,adds:u},d),o.push(d);continue}try{const l=new s.CSSStyleSheet;this.styleMirror.add(l,n),u.length&&this.applyStyleSheetRule({source:j.StyleSheetRule,adds:u},l),o.push(l)}catch(l){}}Et(t)?t.shadowRoot.adoptedStyleSheets=o:t.nodeName==="#document"&&(t.adoptedStyleSheets=o)}applyAdoptedStyleSheet(t){var r;const i=this.mirror.getNode(t.id);if(!i)return;(r=t.styles)==null||r.forEach(u=>{var d;let l=null,a=null;if(Et(i)?a=((d=i.ownerDocument)==null?void 0:d.defaultView)||null:i.nodeName==="#document"&&(a=i.defaultView),!!a)try{l=new a.CSSStyleSheet,this.styleMirror.add(l,u.styleId),this.applyStyleSheetRule({source:j.StyleSheetRule,adds:u.rules},l)}catch(f){}});const s=10;let o=0;const n=(u,d)=>{const l=d.map(a=>this.styleMirror.getStyle(a)).filter(a=>a!==null);Et(u)?u.shadowRoot.adoptedStyleSheets=l:u.nodeName==="#document"&&(u.adoptedStyleSheets=l),l.length!==d.length&&o<s&&(setTimeout(()=>n(u,d),0+100*o),o++)};n(i,t.styleIds)}legacy_resolveMissingNode(t,r,i,s){const{previousId:o,nextId:n}=s,u=o&&t[o],d=n&&t[n];if(u){const{node:l,mutation:a}=u;r.insertBefore(l,i),delete t[a.node.id],delete this.legacy_missingNodeRetryMap[a.node.id],(a.previousId||a.nextId)&&this.legacy_resolveMissingNode(t,r,l,a)}if(d){const{node:l,mutation:a}=d;r.insertBefore(l,i.nextSibling),delete t[a.node.id],delete this.legacy_missingNodeRetryMap[a.node.id],(a.previousId||a.nextId)&&this.legacy_resolveMissingNode(t,r,l,a)}}moveAndHover(t,r,i,s,o){const n=this.mirror.getNode(i);if(!n)return this.debugNodeNotFound(o,i);const u=Ac(n,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`,s||this.drawMouseTail({x:d,y:l}),this.hoverElements(n)}drawMouseTail(t){if(!this.mouseTail)return;const{lineCap:r,lineWidth:i,strokeStyle:s,duration:o}=this.config.mouseTail===!0?kn:Object.assign({},kn,this.config.mouseTail),n=()=>{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=i,u.lineCap=r,u.strokeStyle=s,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),n(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(u=>u!==t),n()},o/this.speedService.state.context.timer.speed)}hoverElements(t){var r;(r=this.lastHoveredRootNode||this.iframe.contentDocument)==null||r.querySelectorAll(".\\:hover").forEach(s=>{s.classList.remove(":hover")}),this.lastHoveredRootNode=t.getRootNode();let i=t;for(;i;)i.classList&&i.classList.add(":hover"),i=i.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(H.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(Yl,...t)}debug(...t){this.config.showDebug&&this.config.logger.log(Yl,...t)}}var Ke=Uint8Array,jt=Uint16Array,oo=Uint32Array,Lc=new Ke([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]),Fc=new Ke([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]),km=new Ke([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Bc=function(e,t){for(var r=new jt(31),i=0;i<31;++i)r[i]=t+=1<<e[i-1];for(var s=new oo(r[30]),i=1;i<30;++i)for(var o=r[i];o<r[i+1];++o)s[o]=o-r[i]<<5|i;return[r,s]},Uc=Bc(Lc,2),$c=Uc[0],Im=Uc[1];$c[28]=258,Im[258]=28;var Pm=Bc(Fc,0),Lm=Pm[0],ao=new jt(32768);for(var de=0;de<32768;++de){var Ft=(de&43690)>>>1|(de&21845)<<1;Ft=(Ft&52428)>>>2|(Ft&13107)<<2,Ft=(Ft&61680)>>>4|(Ft&3855)<<4,ao[de]=((Ft&65280)>>>8|(Ft&255)<<8)>>>1}var ni=(function(e,t,r){for(var i=e.length,s=0,o=new jt(t);s<i;++s)++o[e[s]-1];var n=new jt(t);for(s=0;s<t;++s)n[s]=n[s-1]+o[s-1]<<1;var u;if(r){u=new jt(1<<t);var d=15-t;for(s=0;s<i;++s)if(e[s])for(var l=s<<4|e[s],a=t-e[s],f=n[e[s]-1]++<<a,c=f|(1<<a)-1;f<=c;++f)u[ao[f]>>>d]=l}else for(u=new jt(i),s=0;s<i;++s)u[s]=ao[n[e[s]-1]++]>>>15-e[s];return u}),gi=new Ke(288);for(var de=0;de<144;++de)gi[de]=8;for(var de=144;de<256;++de)gi[de]=9;for(var de=256;de<280;++de)gi[de]=7;for(var de=280;de<288;++de)gi[de]=8;var Wc=new Ke(32);for(var de=0;de<32;++de)Wc[de]=5;var Fm=ni(gi,9,1),Bm=ni(Wc,5,1),In=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},it=function(e,t,r){var i=t/8>>0;return(e[i]|e[i+1]<<8)>>>(t&7)&r},Pn=function(e,t){var r=t/8>>0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>>(t&7)},Um=function(e){return(e/8>>0)+(e&7&&1)},zc=function(e,t,r){(r==null||r>e.length)&&(r=e.length);var i=new(e instanceof jt?jt:e instanceof oo?oo:Ke)(r-t);return i.set(e.subarray(t,r)),i},$m=function(e,t,r){var i=e.length,s=!t||r,o=!r||r.i;r||(r={}),t||(t=new Ke(i*3));var n=function($){var Z=t.length;if($>Z){var B=new Ke(Math.max(Z*2,$));B.set(t),t=B}},u=r.f||0,d=r.p||0,l=r.b||0,a=r.l,f=r.d,c=r.m,h=r.n,p=i*8;do{if(!a){r.f=u=it(e,d,1);var m=it(e,d+1,3);if(d+=3,m)if(m==1)a=Fm,f=Bm,c=9,h=5;else if(m==2){var S=it(e,d,31)+257,E=it(e,d+10,15)+4,y=S+it(e,d+5,31)+1;d+=14;for(var b=new Ke(y),_=new Ke(19),C=0;C<E;++C)_[km[C]]=it(e,d+C*3,7);d+=E*3;var N=In(_),x=(1<<N)-1;if(!o&&d+y*(N+7)>p)break;for(var I=ni(_,N,1),C=0;C<y;){var D=I[it(e,d,x)];d+=D&15;var g=D>>>4;if(g<16)b[C++]=g;else{var ae=0,ee=0;for(g==16?(ee=3+it(e,d,3),d+=2,ae=b[C-1]):g==17?(ee=3+it(e,d,7),d+=3):g==18&&(ee=11+it(e,d,127),d+=7);ee--;)b[C++]=ae}}var R=b.subarray(0,S),ie=b.subarray(S);c=In(R),h=In(ie),a=ni(R,c,1),f=ni(ie,h,1)}else throw"invalid block type";else{var g=Um(d)+4,w=e[g-4]|e[g-3]<<8,v=g+w;if(v>i){if(o)throw"unexpected EOF";break}s&&n(l+w),t.set(e.subarray(g,v),l),r.b=l+=w,r.p=d=v*8;continue}if(d>p)throw"unexpected EOF"}s&&n(l+131072);for(var L=(1<<c)-1,q=(1<<h)-1,P=c+h+18;o||d+P<p;){var ae=a[Pn(e,d)&L],z=ae>>>4;if(d+=ae&15,d>p)throw"unexpected EOF";if(!ae)throw"invalid length/literal";if(z<256)t[l++]=z;else if(z==256){a=null;break}else{var Ce=z-254;if(z>264){var C=z-257,we=Lc[C];Ce=it(e,d,(1<<we)-1)+$c[C],d+=we}var O=f[Pn(e,d)&q],ue=O>>>4;if(!O)throw"invalid distance";d+=O&15;var ie=Lm[ue];if(ue>3){var we=Fc[ue];ie+=Pn(e,d)&(1<<we)-1,d+=we}if(d>p)throw"unexpected EOF";s&&n(l+131072);for(var k=l+Ce;l<k;l+=4)t[l]=t[l-ie],t[l+1]=t[l+1-ie],t[l+2]=t[l+2-ie],t[l+3]=t[l+3-ie];l=k}}r.l=a,r.p=d,r.b=l,a&&(u=1,r.m=c,r.d=f,r.n=h)}while(!u);return l==t.length?t:zc(t,0,l)},Wm=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 zm(e,t){return $m((Wm(e),e.subarray(2,-4)),t)}function qm(e,t){for(var r=e.length,i=new Ke(e.length+(e.length>>>1)),s=0,o=function(l){i[s++]=l},n=0;n<r;++n){if(s+5>i.length){var u=new Ke(s+8+(r-n<<1));u.set(i),i=u}var d=e.charCodeAt(n);o(d)}return zc(i,0,s)}function jm(e,t){var r="";if(typeof TextDecoder!="undefined")return new TextDecoder().decode(e);for(var i=0;i<e.length;){var s=e[i++];s<128||t?r+=String.fromCharCode(s):s<224?r+=String.fromCharCode((s&31)<<6|e[i++]&63):s<240?r+=String.fromCharCode((s&15)<<12|(e[i++]&63)<<6|e[i++]&63):(s=((s&15)<<18|(e[i++]&63)<<12|(e[i++]&63)<<6|e[i++]&63)-65536,r+=String.fromCharCode(55296|s>>10,56320|s&1023))}return r}const Xl="v1",Vm=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(jm(zm(qm(e,!0))));if(t.v===Xl)return t;throw new Error(`These events were packed with packer ${t.v} which is incompatible with current packer ${Xl}.`)}catch(t){throw console.error(t),new Error("Unknown data format.")}};function Ql(e){let t="";return Object.keys(e).forEach(r=>{t+=`${r}: ${e[r]};`}),t}function Hr(e,t=2){let r=String(e);const i=Math.pow(10,t-1);if(e<i)for(;String(i).length>r.length;)r=`0${e}`;return r}const qc=1e3,lo=60*qc,Kl=60*lo;function Di(e){if(e<=0)return"00:00";const t=Math.floor(e/Kl);e=e%Kl;const r=Math.floor(e/lo);e=e%lo;const i=Math.floor(e/qc);return t?`${Hr(t)}:${Hr(r)}:${Hr(i)}`:`${Hr(r)}:${Hr(i)}`}function Gm(e){return e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():Promise.resolve()}function Hm(){return document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():Promise.resolve()}function Zl(){let e=!1;return["fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement"].forEach(t=>{t in document&&(e=e||!!document[t])}),e}function Ym(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 eu(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 Jm(e){return e.type!==te.IncrementalSnapshot?!1:e.data.source>j.Mutation&&e.data.source<=j.Input}function Xm(e,t){const r=[];let i=e[0].timestamp;for(const s of e)Jm(s)&&(s.timestamp-i>t&&r.push([i,s.timestamp]),i=s.timestamp);return r}var jc=(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))(jc||{}),Qm=zr('<div><input type="checkbox" class="svelte-184lr04"/> <label class="svelte-184lr04"></label> <span class="label svelte-184lr04"> </span></div>');function Km(e,t){let r=me(t,"disabled",8),i=me(t,"checked",12),s=me(t,"id",8),o=me(t,"label",8);var n=Qm();let u;var d=ot(n);Rh(d);var l=He(d,2),a=He(l,2),f=ot(a,!0);nt(a),nt(n),Rr(()=>{u=Kn(n,1,"switch svelte-184lr04",null,u,{disabled:r()}),or(d,"id",s()),d.disabled=r(),or(l,"for",s()),Li(f,o())}),Ah(d,i),Rt(e,n)}var Zm=zr("<div></div>"),eg=zr("<div></div>"),tg=Xu(`<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" aria-label="Play"><path d="M682.65984 128q53.00224 0 90.50112 37.49888t37.49888 90.50112l0
161
+ ***************************************************************************** */function Wl(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i,s,n=r.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(u){s={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}var Ar;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Ar||(Ar={}));var kc={type:"xstate.init"};function Tn(e){return e===void 0?[]:[].concat(e)}function Er(e){return{type:"xstate.assign",assignment:e}}function zl(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 Yi(e){return function(t){return e===t}}function Ic(e){return typeof e=="string"?{type:e}:e}function ql(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Yi(e)}}function jl(e,t,r){var i=t,s=!1;return[e.filter((function(n){if(n.type==="xstate.assign"){s=!0;var o=Object.assign({},i);return typeof n.assignment=="function"?o=n.assignment(i,r):Object.keys(n.assignment).forEach((function(u){o[u]=typeof n.assignment[u]=="function"?n.assignment[u](i,r):n.assignment[u]})),i=o,!1}return!0})),i,s]}function Pc(e,t){t===void 0&&(t={});var r=Wl(jl(Tn(e.states[e.initial].entry).map((function(o){return zl(o,t.actions)})),e.context,kc),2),i=r[0],s=r[1],n={config:e,_options:t,initialState:{value:e.initial,actions:i,context:s,matches:Yi(e.initial)},transition:function(o,u){var d,l,a=typeof o=="string"?{value:o,context:e.context}:o,h=a.value,c=a.context,f=Ic(u),p=e.states[h];if(p.on){var m=Tn(p.on[f.type]);try{for(var g=(function(L){var V=typeof Symbol=="function"&&Symbol.iterator,P=V&&L[V],j=0;if(P)return P.call(L);if(L&&typeof L.length=="number")return{next:function(){return L&&j>=L.length&&(L=void 0),{value:L&&L[j++],done:!L}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")})(m),w=g.next();!w.done;w=g.next()){var v=w.value;if(v===void 0)return ql(h,c);var S=typeof v=="string"?{target:v}:v,E=S.target,y=S.actions,b=y===void 0?[]:y,_=S.cond,C=_===void 0?function(){return!0}:_,M=E===void 0,x=E!=null?E:h,I=e.states[x];if(C(c,f)){var D=Wl(jl((M?Tn(b):[].concat(p.exit,b,I.entry).filter((function(L){return L}))).map((function(L){return zl(L,n._options.actions)})),c,f),3),le=D[0],te=D[1],R=D[2],se=E!=null?E:h;return{value:se,context:te,actions:le,changed:E!==h||le.length>0||R,matches:Yi(se)}}}}catch(L){d={error:L}}finally{try{w&&!w.done&&(l=g.return)&&l.call(g)}finally{if(d)throw d.error}}}return ql(h,c)}};return n}var Vl=function(e,t){return e.actions.forEach((function(r){var i=r.exec;return i&&i(e.context,t)}))};function Lc(e){var t=e.initialState,r=Ar.NotStarted,i=new Set,s={_machine:e,send:function(n){r===Ar.Running&&(t=e.transition(t,n),Vl(t,Ic(n)),i.forEach((function(o){return o(t)})))},subscribe:function(n){return i.add(n),n(t),{unsubscribe:function(){return i.delete(n)}}},start:function(n){if(n){var o=typeof n=="object"?n:{context:e.config.context,value:n};t={value:o.value,actions:[],context:o.context,matches:Yi(o.value)}}return r=Ar.Running,Vl(t,kc),s},stop:function(){return r=Ar.Stopped,i.clear(),s},get state(){return t},get status(){return r}};return s}function Cm(e){const t=[];for(let r=0;r<e.length;r++)e[r].type===re.Meta&&t.push({metaEventIndex:r,timestamp:e[r].timestamp});return t}function xm(e,t){if(e.length===0)return null;let r=0,i=e.length-1,s=null;for(;r<=i;){const n=Math.floor((r+i)/2);e[n].timestamp<=t?(s=e[n],r=n+1):i=n-1}return s}function kn(e,t){return e===t?!0:e.timestamp===t.timestamp&&e.type===t.type?JSON.stringify(e)===JSON.stringify(t):!1}function Rm(e,{getCastFn:t,applyEventsSynchronously:r,emitter:i}){const s=Pc({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:Er({lastPlayedEvent:(n,o)=>o.type==="CAST_EVENT"?o.payload.event:n.lastPlayedEvent}),recordTimeOffset:Er((n,o)=>{let u=n.timeOffset;return"payload"in o&&"timeOffset"in o.payload&&(u=o.payload.timeOffset),be(G({},n),{timeOffset:u,baselineTime:n.events[0].timestamp+u})}),play(n){var g;var o;const{timer:u,events:d,baselineTime:l,lastPlayedEvent:a,checkpointIndex:h}=n;u.clear();const c=xm(h,l),f=c?c.metaEventIndex:0;let p=a==null?void 0:a.timestamp;(a==null?void 0:a.type)===re.IncrementalSnapshot&&a.data.source===H.MouseMove&&(p=a.timestamp+((o=a.data.positions[0])==null?void 0:o.timeOffset)),l<(p||0)&&i.emit(J.PlayBack);const m=new Array;for(let w=f;w<d.length;w++){const v=d[w];if(!(p&&p<l&&(v.timestamp<=p||v===a)))if(v.timestamp<l)m.push(v);else{$l(v,l);const S=t(v,!1);u.addAction({doAction:()=>{S()},delay:(g=v.delay)!=null?g:0})}}r(m),i.emit(J.Flush),u.start()},pause(n){n.timer.clear()},resetLastPlayedEvent:Er(n=>be(G({},n),{lastPlayedEvent:null})),startLive:Er({baselineTime:(n,o)=>(n.timer.start(),o.type==="TO_LIVE"&&o.payload.baselineTime?o.payload.baselineTime:Date.now())}),addEvent:Er((n,o)=>{var h;const{baselineTime:u,timer:d,events:l,checkpointIndex:a}=n;if(o.type==="ADD_EVENT"){const{event:c}=o.payload;$l(c,u);let f=l.length-1,p;if(!l[f]||l[f].timestamp<=c.timestamp){if(l[f]&&kn(l[f],c))return be(G({},n),{events:l});l.push(c),p=l.length-1}else{let w=0;for(p=0;w<=f;){const v=Math.floor((w+f)/2);l[v].timestamp<=c.timestamp?w=v+1:f=v-1}p=w;for(let v=p-1;v>=0&&l[v].timestamp===c.timestamp;v--)if(kn(l[v],c))return be(G({},n),{events:l});for(let v=p;v<l.length&&l[v].timestamp===c.timestamp;v++)if(kn(l[v],c))return be(G({},n),{events:l});l.splice(p,0,c)}if(c.type===re.Meta){const w={metaEventIndex:p,timestamp:c.timestamp},v=a[a.length-1];if(!v||v.timestamp<=c.timestamp)a.push(w);else{for(const y of a)y.metaEventIndex>=p&&y.metaEventIndex++;let S=0,E=a.length-1;for(;S<=E;){const y=Math.floor((S+E)/2);a[y].timestamp<=c.timestamp?S=y+1:E=y-1}a.splice(S,0,w)}}else if(p<l.length-1)for(const w of a)w.metaEventIndex>=p&&w.metaEventIndex++;const m=c.timestamp<u,g=t(c,m);m?g():d.isActive()&&d.addAction({doAction:()=>{g()},delay:(h=c.delay)!=null?h:0})}return be(G({},n),{events:l,checkpointIndex:a})})}});return Lc(s)}function Nm(e){const t=Pc({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,i)=>{"payload"in i&&r.timer.setSpeed(i.payload.speed)},recordSpeed:Er({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return Lc(t)}const Gl=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Hl=new Map;function Fc(e,t){let r=Hl.get(e);return r||(r=new Map,Hl.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function qt(e,t,r){return async i=>{if(i&&typeof i=="object"&&"rr_type"in i)if(r&&(r.isUnchanged=!1),i.rr_type==="ImageBitmap"&&"args"in i){const s=await qt(e,t,r)(i.args);return await createImageBitmap.apply(null,s)}else if("index"in i){if(r||t===null)return i;const{rr_type:s,index:n}=i;return Fc(t,s)[n]}else if("args"in i){const{rr_type:s,args:n}=i,o=window[s];return new o(...await Promise.all(n.map(qt(e,t,r))))}else{if("base64"in i)return ym(i.base64);if("src"in i){const s=e.get(i.src);if(s)return s;{const n=new Image;return n.src=i.src,e.set(i.src,n),n}}else if("data"in i&&i.rr_type==="Blob"){const s=await Promise.all(i.data.map(qt(e,t,r)));return new Blob(s,{type:i.type})}}else if(Array.isArray(i))return await Promise.all(i.map(qt(e,t,r)));return i}}function Mm(e,t){try{return t===Hi.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch(r){return null}}const Am=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function Om(e,t){if(!(t!=null&&t.constructor))return;const{name:r}=t.constructor;if(!Am.includes(r))return;const i=Fc(e,r);i.includes(t)||i.push(t)}async function Dm({mutation:e,target:t,type:r,imageMap:i,errorHandler:s}){try{const n=Mm(t,r);if(!n)return;if(e.setter){n[e.property]=e.args[0];return}const o=n[e.property],u=await Promise.all(e.args.map(qt(i,n))),d=o.apply(n,u);Om(n,d);const l=!1}catch(n){s(e,n)}}async function Tm({event:e,mutations:t,target:r,imageMap:i,errorHandler:s}){const n=r.getContext("2d");if(!n){s(t[0],new Error("Canvas context is null"));return}const o=t.map(async d=>Promise.all(d.args.map(qt(i,n))));(await Promise.all(o)).forEach((d,l)=>{const a=t[l];try{if(a.setter){n[a.property]=a.args[0];return}const h=n[a.property];a.property==="drawImage"&&typeof a.args[0]=="string"?(i.get(e),h.apply(n,a.args)):h.apply(n,d)}catch(h){s(a,h)}})}async function Yl({event:e,mutation:t,target:r,imageMap:i,canvasEventMap:s,errorHandler:n}){try{const o=s.get(e)||t,u="commands"in o?o.commands:[o];if([Hi.WebGL,Hi.WebGL2].includes(t.type)){for(let d=0;d<u.length;d++){const l=u[d];await Dm({mutation:l,type:t.type,target:r,imageMap:i,errorHandler:n})}return}await Tm({event:e,mutations:u,target:r,imageMap:i,errorHandler:n})}catch(o){n(t,o)}}class km{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(J.Start,this.start.bind(this)),this.emitter.on(J.SkipStart,this.start.bind(this)),this.emitter.on(J.Pause,this.pause.bind(this)),this.emitter.on(J.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(t={pause:!1}){this.mediaMap.forEach((r,i)=>{this.syncTargetWithState(i),t.pause&&i.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:t,target:r,mediaState:i}){if(i.isPlaying){const n=(t-i.lastInteractionTimeOffset)/1e3*i.playbackRate,o="duration"in r&&r.duration;if(Number.isNaN(o)){this.waitForMetadata(r);return}let u=i.currentTimeAtLastInteraction+n;r.loop&&o!==!1&&(u=u%o),r.currentTime=u}else r.pause(),r.currentTime=i.currentTimeAtLastInteraction}waitForMetadata(t){if(this.metadataCallbackMap.has(t)||!("addEventListener"in t))return;const r=()=>{this.metadataCallbackMap.delete(t);const i=this.mediaMap.get(t);i&&this.seekTo({time:this.getCurrentTime(),target:t,mediaState:i})};this.metadataCallbackMap.set(t,r),t.addEventListener("loadedmetadata",r,{once:!0})}getMediaStateFromMutation({target:t,timeOffset:r,mutation:i}){var f,p,m,g,w;const s=this.mediaMap.get(t),{type:n,playbackRate:o,currentTime:u,muted:d,volume:l,loop:a}=i;return{isPlaying:n===oo.Play||n!==oo.Pause&&((s==null?void 0:s.isPlaying)||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:(f=u!=null?u:s==null?void 0:s.currentTimeAtLastInteraction)!=null?f:0,lastInteractionTimeOffset:r,playbackRate:(p=o!=null?o:s==null?void 0:s.playbackRate)!=null?p:1,volume:(m=l!=null?l:s==null?void 0:s.volume)!=null?m:1,muted:(g=d!=null?d:s==null?void 0:s.muted)!=null?g:t.getAttribute("muted")===null,loop:(w=a!=null?a:s==null?void 0:s.loop)!=null?w:t.getAttribute("loop")===null}}syncTargetWithState(t){const r=this.mediaMap.get(t);if(!r)return;const{muted:i,loop:s,volume:n,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!==n&&(t.volume=n),t.muted=i,t.loop=s,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,i){if(!["AUDIO","VIDEO"].includes(t.nodeName))return;const s=t,n=i.getMeta(s);if(!n||!("attributes"in n))return;const o=this.service.state.matches("paused"),u=n.attributes;let d=!1;u.rr_mediaState?d=u.rr_mediaState==="played":d=s.getAttribute("autoplay")!==null,d&&o&&s.pause();let l=1;typeof u.rr_mediaPlaybackRate=="number"&&(l=u.rr_mediaPlaybackRate);let a=!1;typeof u.rr_mediaMuted=="boolean"?a=u.rr_mediaMuted:a=s.getAttribute("muted")!==null;let h=!1;typeof u.rr_mediaLoop=="boolean"?h=u.rr_mediaLoop:h=s.getAttribute("loop")!==null;let c=1;typeof u.rr_mediaVolume=="number"&&(c=u.rr_mediaVolume);let f=0;typeof u.rr_mediaCurrentTime=="number"&&(f=u.rr_mediaCurrentTime),this.mediaMap.set(s,{isPlaying:d,currentTimeAtLastInteraction:f,lastInteractionTimeOffset:r,playbackRate:l,volume:c,muted:a,loop:h}),this.syncTargetWithState(s)}mediaMutation({target:t,timeOffset:r,mutation:i}){this.mediaMap.set(t,this.getMediaStateFromMutation({target:t,timeOffset:r,mutation:i})),this.syncTargetWithState(t)}isSupportedMediaElement(t){return["AUDIO","VIDEO"].includes(t.nodeName)}reset(){this.mediaMap.clear()}}function Ai(e,t){if(e.nodeName!=="DIALOG"||e instanceof pt)return;const r=e,i=r.open,s=i&&r.matches("dialog:modal"),n=r.getAttribute("rr_open_mode"),o=typeof(t==null?void 0:t.attributes.open)=="string"||typeof r.getAttribute("open")=="string",u=n==="modal";if(!(i&&!(s&&n==="non-modal"||!s&&u))){if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}i&&r.close(),o&&(u?r.showModal():r.show())}}function Im(e,t){if(e.nodeName!=="DIALOG"||e instanceof pt)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 Pm=Tc||Sm,Jl="[replayer]",Oi="__rrweb-injected-style__",In={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Xl(e){return e.type==re.IncrementalSnapshot&&(e.data.source==H.TouchMove||e.data.source==H.MouseInteraction&&e.data.type==Se.TouchStart)}class Lm{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 qr),F(this,"mouse"),F(this,"mouseTail",null),F(this,"tailPositions",[]),F(this,"emitter",Pm()),F(this,"nextUserInteractionEvent"),F(this,"legacy_missingNodeRetryMap",{}),F(this,"cache",il()),F(this,"imageMap",new Map),F(this,"canvasEventMap",new Map),F(this,"mirror",to()),F(this,"styleMirror",new vm),F(this,"mediaManager"),F(this,"firstFullSnapshot",null),F(this,"seekCache"),F(this,"newDocumentQueue",[]),F(this,"mousePos",null),F(this,"touchActive",null),F(this,"seekInProgress",!1),F(this,"pendingCaptureTimer",null),F(this,"lastMouseDownEvent",null),F(this,"lastHoveredRootNode"),F(this,"lastSelectionData",null),F(this,"constructedStyleMutations",[]),F(this,"adoptedStyleSheets",[]),F(this,"snapshotAdoptedStyleSheetQueue",[]),F(this,"handleResize",l=>{this.iframe.style.display="inherit";for(const a of[this.mouseTail,this.iframe])a&&(a.setAttribute("width",String(l.width)),a.setAttribute("height",String(l.height)))}),F(this,"applyEventsSynchronously",l=>{var a;let h=-1;for(let f=l.length-1;f>=0;f--)if(l[f].type===re.FullSnapshot){h=f;break}let c=0;if(this.config.useSeekCache&&l.length>0){const f=l.find(p=>p.type===re.FullSnapshot);if(f){const p=l[l.length-1].timestamp,m=this.seekCache.findBestFor(p,f.timestamp);if(m){const g=l.find(S=>S.type===re.Meta);g&&this.getCastFn(g,!0)(),this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(m.event,!0),this.firstFullSnapshot=!0,(a=this.iframe.contentWindow)==null||a.scrollTo(m.event.data.initialOffset);let w=0,v=l.length;for(;w<v;){const S=w+v>>>1;l[S].timestamp<=m.timestamp?w=S+1:v=S}c=w}}}for(let f=c;f<l.length;f++){const p=l[f];switch(p.type){case re.DomContentLoaded:case re.Load:case re.Custom:continue;case re.IncrementalSnapshot:if(f<h)continue;break;case re.FullSnapshot:case re.Meta:case re.Plugin:break}this.getCastFn(p,!0)()}}),F(this,"getCastFn",(l,a=!1)=>{let h;switch(l.type){case re.DomContentLoaded:case re.Load:break;case re.Custom:h=()=>{this.emitter.emit(J.CustomEvent,l)};break;case re.Meta:h=()=>this.emitter.emit(J.Resize,{width:l.data.width,height:l.data.height});break;case re.FullSnapshot:h=()=>{var f;if(this.firstFullSnapshot){if(this.firstFullSnapshot===l){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(l,a),(f=this.iframe.contentWindow)==null||f.scrollTo(l.data.initialOffset)};break;case re.IncrementalSnapshot:h=()=>{if(this.applyIncremental(l,a),!a&&this.config.skipInactive&&!this.nextUserInteractionEvent){for(const f of this.service.state.context.events)if(!(f.timestamp<=l.timestamp)&&this.isUserInteraction(f)){f.delay-l.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=f);break}if(this.nextUserInteractionEvent){const f=this.nextUserInteractionEvent.delay-l.delay;this.playInternal(this.getCurrentTime()+f),this.nextUserInteractionEvent=null}}};break}return()=>{h&&h();for(const p of this.config.plugins||[])p.handler&&p.handler(l,a,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:l}});const f=this.service.state.context.events.length-1;if(!this.config.liveMode&&l===this.service.state.context.events[f]){const p=()=>{f<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(J.Finish))};let m=50;l.type===re.IncrementalSnapshot&&l.data.source===H.MouseMove&&l.data.positions.length&&(m+=Math.max(0,-l.data.positions[0].timeOffset)),setTimeout(p,m)}this.emitter.emit(J.EventCast,l)}}),!(r!=null&&r.liveMode)&&t.length<2)throw new Error("Replayer need at least 2 events.");const i={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:10*1e3,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:In,useVirtualDom:!0,useSeekCache:!1,seekCacheMaxEntries:10,logger:console};this.config=Object.assign({},i,r),this.seekCache=new bm(this.config.seekCacheMaxEntries),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(J.Resize,this.handleResize),this.setupDom();for(const l of this.config.plugins||[])l.getMirror&&l.getMirror({nodeMirror:this.mirror});this.emitter.on(J.Flush,()=>{if(this.usingVirtualDom){const l={mirror:this.mirror,applyCanvas:(a,h,c)=>{Yl({event:a,mutation:h,target:c,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(a,h)=>{a.source===H.StyleSheetRule?this.applyStyleSheetRule(a,h):a.source===H.StyleDeclaration&&this.applyStyleDeclaration(a,h)},afterAppend:(a,h)=>{for(const c of this.config.plugins||[])c.onBuild&&c.onBuild(a,{id:h,replayer:this})}};if(this.iframe.contentDocument)try{Vi(this.iframe.contentDocument,this.virtualDom,l,this.virtualDom.mirror)}catch(a){console.warn(a)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(const a in this.legacy_missingNodeRetryMap)try{const h=this.legacy_missingNodeRetryMap[a],c=Gi(h.node,this.mirror,this.virtualDom.mirror);Vi(c,h.node,l,this.virtualDom.mirror),h.node=c}catch(h){this.warn(h)}this.constructedStyleMutations.forEach(a=>{this.applyStyleSheetMutation(a)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(a=>{this.applyAdoptedStyleSheet(a)}),this.adoptedStyleSheets=[],this.snapshotAdoptedStyleSheetQueue.forEach(({id:a,adoptedStyleSheets:h})=>{this.applyQueuedSnapshotAdoptedStyleSheets(a,h)}),this.snapshotAdoptedStyleSheetQueue=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),this.touchActive===!0?this.mouse.classList.add("touch-active"):this.touchActive===!1&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){const[l,a]=this.lastMouseDownEvent;l.dispatchEvent(a)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(J.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()}),this.emitter.on(J.Flush,()=>{if(this.seekInProgress){this.seekInProgress=!1;const l=this.getTimeOffset();this.emitter.emit(J.SeekEnd,{timeOffset:l})}if(this.config.useSeekCache){const l=this.service.state.context.baselineTime;this.pendingCaptureTimer!==null&&clearTimeout(this.pendingCaptureTimer),this.pendingCaptureTimer=setTimeout(()=>{this.pendingCaptureTimer=null,this.captureSeekCacheEntry(l)},0)}});const s=new Em([],{speed:this.config.speed}),n=t.map(l=>r&&r.unpackFn?r.unpackFn(l):l).sort((l,a)=>l.timestamp-a.timestamp),o=Cm(n);this.service=Rm({events:n,timer:s,timeOffset:0,baselineTime:0,lastPlayedEvent:null,checkpointIndex:o},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(l=>{this.emitter.emit(J.StateChange,{player:l})}),this.speedService=Nm({normalSpeed:-1,timer:s}),this.speedService.start(),this.speedService.subscribe(l=>{this.emitter.emit(J.StateChange,{speed:l})}),this.mediaManager=new km({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===re.Meta),d=this.service.state.context.events.find(l=>l.type===re.FullSnapshot);if(u){const{width:l,height:a}=u.data;setTimeout(()=>{this.emitter.emit(J.Resize,{width:l,height:a})},0)}d&&setTimeout(()=>{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(Xl)&&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}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){this.seekInProgress=!0,this.emitter.emit(J.SeekStart,{timeOffset:t}),this.playInternal(t)}playInternal(t=0){var r,i;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}})),(i=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||i.classList.remove("rrweb-paused"),this.emitter.emit(J.Start)}pause(t){var r,i;t===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof t=="number"&&(this.play(t),this.service.send({type:"PAUSE"})),(i=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||i.classList.add("rrweb-paused"),this.emitter.emit(J.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(J.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(J.Destroy)}startLive(t){this.service.send({type:"TO_LIVE",payload:{baselineTime:t}})}addEvent(t){const r=this.config.unpackFn?this.config.unpackFn(t):t;Xl(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=il()}resetSeekCache(){this.seekCache.clear()}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&&(_m(this.iframe.contentWindow,this.iframe.contentDocument),pm(this.iframe.contentWindow))}captureSeekCacheEntry(t){var o,u;if(!this.iframe.contentDocument||t<=0)return;const r=to();this.mirror.getIds().forEach(d=>{const l=this.mirror.getNode(d);if(!l)return;const a=this.mirror.getMeta(l);a&&r.add(l,a)});const i=Fd(this.iframe.contentDocument,{mirror:r,blockClass:this.config.blockClass,inlineStylesheet:!0,onAdoptedStyleSheet:d=>this.styleMirror.add(d)});if(!i)return;const s=this.iframe.contentDocument.scrollingElement||this.iframe.contentDocument.documentElement,n={top:(o=s==null?void 0:s.scrollTop)!=null?o:0,left:(u=s==null?void 0:s.scrollLeft)!=null?u:0};this.seekCache.add(t,i,n)}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 i=[],s=new Set,n=(d,l)=>{var a;if(d.nodeName==="DIALOG"&&s.add(d),this.collectIframeAndAttachDocument(i,d),this.mediaManager.isSupportedMediaElement(d)){const{events:c}=this.service.state.context;this.mediaManager.addMediaElements(d,t.timestamp-c[0].timestamp,this.mirror)}const h=this.mirror.getMeta(d);h&&"adoptedStyleSheets"in h&&((a=h.adoptedStyleSheets)!=null&&a.length)&&this.applySnapshotAdoptedStyleSheets(d,h.adoptedStyleSheets);for(const c of this.config.plugins||[])c.onBuild&&c.onBuild(d,{id:l,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),this.styleMirror.reset(),ap(t.data.node,{doc:this.iframe.contentDocument,afterAppend:n,cache:this.cache,mirror:this.mirror}),n(this.iframe.contentDocument,t.data.node.id);for(const{mutationInQueue:d,builtNode:l}of i)this.attachDocumentToIframe(d,l),this.newDocumentQueue=this.newDocumentQueue.filter(a=>a!==d);const{documentElement:o,head:u}=this.iframe.contentDocument;this.insertStyleRules(o,u),s.forEach(d=>Ai(d)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(J.FullsnapshotRebuilded,t),r||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(t,r){var i;const s=Gl(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&s.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),!!s.length)if(this.usingVirtualDom){const n=this.virtualDom.createElement("style");this.virtualDom.mirror.add(n,no(n,this.virtualDom.unserializedId)),t.insertBefore(n,r),n.rules.push({source:H.StyleSheetRule,adds:s.map((o,u)=>({rule:o,index:u}))})}else{const n=document.createElement("style");t.insertBefore(n,r);for(let o=0;o<s.length;o++)(i=n.sheet)==null||i.insertRule(s[o],o)}}isShadowRoot(t){return t.nodeType===Node.DOCUMENT_FRAGMENT_NODE}insertStyleRulesIntoShadowRoot(t){var s;var r;const i=Gl(this.config.blockClass).concat(this.config.insertStyleRules);if(i.length){if(this.usingVirtualDom&&t.getAttribute("id")!==Oi){const n=this.virtualDom.createElement("style");this.virtualDom.mirror.add(n,no(n,this.virtualDom.unserializedId)),n.setAttribute("id",Oi),t.insertBefore(n,t.firstChild||null),n.rules.push({source:H.StyleSheetRule,adds:i.map((o,u)=>({rule:o,index:u}))})}else if(this.isShadowRoot(t)&&!t.getElementById(Oi)){const n=document.createElement("style");n.id=Oi,t.insertBefore(n,(s=t.firstChild)!=null?s:null);for(let o=0;o<i.length;o++)(r=n.sheet)==null||r.insertRule(i[o],o)}}}attachDocumentToIframe(t,r){const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,s=[],n=new Set,o=(d,l)=>{var a;d.nodeName==="DIALOG"&&n.add(d),this.collectIframeAndAttachDocument(s,d);const h=i.getMeta(d);if((h==null?void 0:h.type)===Ge.Element&&(h==null?void 0:h.tagName.toUpperCase())==="HTML"){if(!r.contentDocument)return;const{documentElement:c,head:f}=r.contentDocument;this.insertStyleRules(c,f)}{const c=i.getMeta(d);if(c&&"adoptedStyleSheets"in c&&((a=c.adoptedStyleSheets)!=null&&a.length))if(this.usingVirtualDom){const f=i.getId(d);this.snapshotAdoptedStyleSheetQueue.push({id:f,adoptedStyleSheets:c.adoptedStyleSheets})}else this.applySnapshotAdoptedStyleSheets(d,c.adoptedStyleSheets)}if(!this.usingVirtualDom)for(const c of this.config.plugins||[])c.onBuild&&c.onBuild(d,{id:l,replayer:this})},u=r.contentDocument;if(u){si(t.node,{doc:u,mirror:i,hackCss:!0,skipChild:!1,afterAppend:o,cache:this.cache}),o(u,t.node.id);for(const{mutationInQueue:d,builtNode:l}of s)this.attachDocumentToIframe(d,l),this.newDocumentQueue=this.newDocumentQueue.filter(a=>a!==d);n.forEach(d=>Ai(d))}}collectIframeAndAttachDocument(t,r){if(On(r,this.mirror)){const i=this.newDocumentQueue.find(s=>s.parentId===this.mirror.getId(r));i&&t.push({mutationInQueue:i,builtNode:r})}}waitForStylesheetLoad(){var t;const r=(t=this.iframe.contentDocument)==null?void 0:t.head;if(r){const i=new Set;let s,n=this.service.state;const o=()=>{n=this.service.state};this.emitter.on(J.Start,o),this.emitter.on(J.Pause,o);const u=()=>{this.emitter.off(J.Start,o),this.emitter.off(J.Pause,o)};r.querySelectorAll('link[rel="stylesheet"]').forEach(d=>{d.sheet||(i.add(d),d.addEventListener("load",()=>{i.delete(d),i.size===0&&s!==-1&&(n.matches("playing")&&this.playInternal(this.getCurrentTime()),this.emitter.emit(J.LoadStylesheetEnd),s&&clearTimeout(s),u())}))}),i.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(J.LoadStylesheetStart),s=setTimeout(()=>{n.matches("playing")&&this.playInternal(this.getCurrentTime()),s=-1,u()},this.config.loadTimeout))}}async preloadAllImages(){const t=[];for(const r of this.service.state.context.events)r.type===re.IncrementalSnapshot&&r.data.source===H.CanvasMutation&&(t.push(this.deserializeAndPreloadCanvasEvents(r.data,r)),("commands"in r.data?r.data.commands:[r.data]).forEach(s=>{this.preloadImages(s,r)}));return Promise.all(t)}preloadImages(t,r){if(t.property==="drawImage"&&typeof t.args[0]=="string"&&!this.imageMap.has(r)){const i=document.createElement("canvas"),s=i.getContext("2d"),n=s==null?void 0:s.createImageData(i.width,i.height);n&&(s==null||s.putImageData(n,0,0))}}async deserializeAndPreloadCanvasEvents(t,r){if(!this.canvasEventMap.has(r)){const i={isUnchanged:!0};if("commands"in t){const s=await Promise.all(t.commands.map(async n=>{const o=await Promise.all(n.args.map(qt(this.imageMap,null,i)));return be(G({},n),{args:o})}));i.isUnchanged===!1&&this.canvasEventMap.set(r,be(G({},t),{commands:s}))}else{const s=await Promise.all(t.args.map(qt(this.imageMap,null,i)));i.isUnchanged===!1&&this.canvasEventMap.set(r,be(G({},t),{args:s}))}}}applyIncremental(t,r){var i,s,n;const{data:o}=t;switch(o.source){case H.Mutation:{try{this.applyMutation(o,r)}catch(u){this.warn(`Exception in mutation ${u.message||u}`,o)}break}case H.Drag:case H.TouchMove:case H.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-((i=o.positions[0])==null?void 0:i.timeOffset)});break;case H.MouseInteraction:{if(o.id===-1)break;const u=new Event(di(Se[o.type])),d=this.mirror.getNode(o.id);if(!d)return this.debugNodeNotFound(o,o.id);this.emitter.emit(J.MouseInteraction,{type:o.type,target:d});const{triggerFocus:l}=this.config;switch(o.type){case Se.Blur:"blur"in d&&d.blur();break;case Se.Focus:l&&d.focus&&d.focus({preventScroll:!0});break;case Se.Click:case Se.TouchStart:case Se.TouchEnd:case Se.MouseDown:case Se.MouseUp:r?(o.type===Se.TouchStart?this.touchActive=!0:o.type===Se.TouchEnd&&(this.touchActive=!1),o.type===Se.MouseDown?this.lastMouseDownEvent=[d,u]:o.type===Se.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:o.x||0,y:o.y||0,id:o.id,debugData:o}):(o.type===Se.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x||0,o.y||0,o.id,r,o),o.type===Se.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===Se.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===Se.TouchEnd?this.mouse.classList.remove("touch-active"):d.dispatchEvent(u));break;case Se.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:d.dispatchEvent(u)}break}case H.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 H.ViewportResize:this.emitter.emit(J.Resize,{width:o.width,height:o.height});break;case H.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 H.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 H.StyleSheetRule:case H.StyleDeclaration:{if(this.usingVirtualDom){if(o.styleId)this.constructedStyleMutations.push(o);else if(o.id){const u=this.virtualDom.mirror.getNode(o.id);(s=u==null?void 0:u.rules)==null||s.push(o)}}else this.applyStyleSheetMutation(o);break}case H.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);Yl({event:t,mutation:o,target:u,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case H.Font:{try{const u=new FontFace(o.family,o.buffer?new Uint8Array(JSON.parse(o.fontSource)):o.fontSource,o.descriptors);(n=this.iframe.contentDocument)==null||n.fonts.add(u)}catch(u){this.warn(u)}break}case H.Selection:{if(r){this.lastSelectionData=o;break}this.applySelection(o);break}case H.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(o):this.applyAdoptedStyleSheet(o);break}}}applyMutation(t,r){if(this.config.useVirtualDom&&!this.usingVirtualDom&&r){if(this.usingVirtualDom=!0,!this.iframe.contentDocument)return;if(Qp(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length)for(const l in this.legacy_missingNodeRetryMap)try{const a=this.legacy_missingNodeRetryMap[l],h=Mc(a.node,this.virtualDom,this.mirror);h&&(a.node=h)}catch(a){this.warn(a)}}const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(l=>i.getNode(l.id)?!0:(this.warnNodeNotFound(t,l.id),!1)),t.removes.forEach(l=>{var a;const h=i.getNode(l.id);if(!h)return;let c=i.getNode(l.parentId);if(!c)return this.warnNodeNotFound(t,l.parentId);if(l.isShadow&&Et(c)&&(c=c.shadowRoot),i.removeNodeFromMap(h),c)try{c.removeChild(h),this.usingVirtualDom&&h.nodeName==="#text"&&c.nodeName==="STYLE"&&((a=c.rules)==null?void 0:a.length)>0&&(c.rules=[])}catch(f){if(f instanceof DOMException)this.warn("parent could not remove child in mutation",c,h,t);else throw f}});const s=G({},this.legacy_missingNodeRetryMap),n=[],o=l=>{let a=null;return l.nextId&&(a=i.getNode(l.nextId)),l.nextId!==null&&l.nextId!==void 0&&l.nextId!==-1&&!a},u=l=>{var a,h;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let c=i.getNode(l.parentId);if(!c)return l.node.type===Ge.Document?this.newDocumentQueue.push(l):n.push(l);l.node.isShadow&&(Et(c)||c.attachShadow({mode:"open"}),c=c.shadowRoot,this.insertStyleRulesIntoShadowRoot(c));let f=null,p=null;if(l.previousId&&(f=i.getNode(l.previousId)),l.nextId&&(p=i.getNode(l.nextId)),o(l))return n.push(l);if(l.node.rootId&&!i.getNode(l.node.rootId))return;const m=l.node.rootId?i.getNode(l.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(On(c,i)){this.attachDocumentToIframe(l,c);return}const g=(S,E)=>{const y=this.inlineAdoptedStyleSheetsFromMutationNode(l.node,S);if(y&&this.usingVirtualDom&&this.snapshotAdoptedStyleSheetQueue.push({id:E,adoptedStyleSheets:y}),!this.usingVirtualDom){Ai(S),y&&(this.ensureShadowHostForInlineAdoptedStyles(l.node,S),this.applySnapshotAdoptedStyleSheets(S,y));for(const b of this.config.plugins||[])b.onBuild&&b.onBuild(S,{id:E,replayer:this})}},w=si(l.node,{doc:m,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:g});if(l.previousId===-1||l.nextId===-1){s[l.node.id]={node:w,mutation:l};return}const v=i.getMeta(c);if(v&&v.type===Ge.Element&&l.node.type===Ge.Text){const S=Array.isArray(c.childNodes)?c.childNodes:Array.from(c.childNodes);if(v.tagName==="textarea")for(const E of S)E.nodeType===c.TEXT_NODE&&c.removeChild(E);else if(v.tagName==="style"&&S.length===1)for(const E of S)E.nodeType===c.TEXT_NODE&&!i.hasNode(E)&&(w.textContent=E.textContent,c.removeChild(E))}else if((v==null?void 0:v.type)===Ge.Document){const S=c;l.node.type===Ge.DocumentType&&((a=S.childNodes[0])==null?void 0:a.nodeType)===Node.DOCUMENT_TYPE_NODE&&S.removeChild(S.childNodes[0]),w.nodeName==="HTML"&&S.documentElement&&S.removeChild(S.documentElement)}if(f&&f.nextSibling&&f.nextSibling.parentNode?c.insertBefore(w,f.nextSibling):p&&p.parentNode?c.contains(p)?c.insertBefore(w,p):c.insertBefore(w,null):c.appendChild(w),g(w,l.node.id),this.usingVirtualDom&&w.nodeName==="#text"&&c.nodeName==="STYLE"&&((h=c.rules)==null?void 0:h.length)>0&&(c.rules=[]),On(w,this.mirror)){const S=this.mirror.getId(w),E=this.newDocumentQueue.find(y=>y.parentId===S);E&&(this.attachDocumentToIframe(E,w),this.newDocumentQueue=this.newDocumentQueue.filter(y=>y!==E))}(l.previousId||l.nextId)&&this.legacy_resolveMissingNode(s,c,w,l)};t.adds.forEach(l=>{u(l)});const d=Date.now();for(;n.length;){const l=n.length,a=mm(n);if(n.length=0,Date.now()-d>500){this.warn("Timeout in the loop, please check the resolve tree data:",a);break}for(const h of a)i.getNode(h.value.parentId)?Oc(h,f=>{u(f)}):this.debug("Drop resolve tree since there is no parent for the root node.",h);if(n.length===l){const h=new Set(n.map(f=>f.node.id));let c=0;for(let f=0;f<n.length;f++){const p=n[f];!i.getNode(p.node.id)&&i.getNode(p.parentId)&&p.nextId!==null&&p.nextId!==void 0&&p.nextId!==-1&&!i.getNode(p.nextId)&&!h.has(p.nextId)&&(n[f]=be(G({},p),{nextId:null}),c++)}if(c){this.warn("Inserting nodes without their next sibling since it was never recorded",c);continue}this.warn("Dropping the resolve queue since none of the remaining nodes can be resolved",a.map(f=>({id:f.value.node.id,parentId:f.value.parentId,nextId:f.value.nextId,children:f.children.length})));break}}Object.keys(s).length&&Object.assign(this.legacy_missingNodeRetryMap,s),gm(t.texts).forEach(l=>{var a;const h=i.getNode(l.id);if(!h)return t.removes.find(f=>f.id===l.id)?void 0:this.warnNodeNotFound(t,l.id);const c=h.parentElement;if(l.value&&c&&c.tagName==="STYLE"?h.textContent=hs(l.value,this.cache):h.textContent=l.value,this.usingVirtualDom){const f=h.parentNode;((a=f==null?void 0:f.rules)==null?void 0:a.length)>0&&(f.rules=[])}}),t.attributes.forEach(l=>{var a;const h=i.getNode(l.id);if(!h)return t.removes.find(c=>c.id===l.id)?void 0:this.warnNodeNotFound(t,l.id);for(const c in l.attributes)if(typeof c=="string"){const f=l.attributes[c];if(f===null)h.removeAttribute(c),c==="open"&&Im(h,l);else if(typeof f=="string")try{if(c==="_cssText"&&(h.nodeName==="LINK"||h.nodeName==="STYLE"))try{const p=i.getMeta(h);Object.assign(p.attributes,l.attributes);const m=si(p,{doc:h.ownerDocument,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache}),g=h.nextSibling,w=h.parentNode;if(m&&w){w.removeChild(h),w.insertBefore(m,g),i.replace(l.id,m);break}}catch(p){}if(c==="value"&&h.nodeName==="TEXTAREA"){const p=h;p.childNodes.forEach(g=>p.removeChild(g));const m=(a=h.ownerDocument)==null?void 0:a.createTextNode(f);m&&p.appendChild(m)}else h.setAttribute(c,f);c==="rr_open_mode"&&h.nodeName==="DIALOG"&&Ai(h,l)}catch(p){this.warn("An error occurred may due to the checkout feature.",p)}else if(c==="style"){const p=f,m=h;for(const g in p)if(p[g]===!1)m.style.removeProperty(g);else if(p[g]instanceof Array){const w=p[g];m.style.setProperty(g,w[0],w[1])}else{const w=p[g];m.style.setProperty(g,w)}}}})}applyScroll(t,r){var i,s;const n=this.mirror.getNode(t.id);if(!n)return this.debugNodeNotFound(t,t.id);const o=this.mirror.getMeta(n);if(n===this.iframe.contentDocument)(i=this.iframe.contentWindow)==null||i.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else if((o==null?void 0:o.type)===Ge.Document)(s=n.defaultView)==null||s.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else try{n.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(i){}}applySelection(t){try{const r=new Set,i=t.ranges.map(({start:s,startOffset:n,end:o,endOffset:u})=>{const d=this.mirror.getNode(s),l=this.mirror.getNode(o);if(!d||!l)return;const a=new Range;a.setStart(d,n),a.setEnd(l,u);const h=d.ownerDocument,c=h==null?void 0:h.getSelection();return c&&r.add(c),{range:a,selection:c}});r.forEach(s=>s.removeAllRanges()),i.forEach(s=>{var n;return s&&((n=s.selection)==null?void 0:n.addRange(s.range))})}catch(r){}}applyStyleSheetMutation(t){var r;let i=null;t.styleId?i=this.styleMirror.getStyle(t.styleId):t.id&&(i=((r=this.mirror.getNode(t.id))==null?void 0:r.sheet)||null),i&&(t.source===H.StyleSheetRule?this.applyStyleSheetRule(t,i):t.source===H.StyleDeclaration&&this.applyStyleDeclaration(t,i))}applyStyleSheetRule(t,r){var i,s,n,o;if((i=t.adds)==null||i.forEach(({rule:u,index:d})=>{try{if(Array.isArray(d)){const{positions:l,index:a}=Bl(d);Dn(r.cssRules,l).insertRule(u,a)}else{const l=d===void 0?void 0:Math.min(d,r.cssRules.length);r==null||r.insertRule(u,l)}}catch(l){}}),(s=t.removes)==null||s.forEach(({index:u})=>{try{if(Array.isArray(u)){const{positions:d,index:l}=Bl(u);Dn(r.cssRules,d).deleteRule(l||0)}else r==null||r.deleteRule(u)}catch(d){}}),t.replace)try{(n=r.replace)==null||n.call(r,t.replace)}catch(u){}if(t.replaceSync)try{(o=r.replaceSync)==null||o.call(r,t.replaceSync)}catch(u){}}applyStyleDeclaration(t,r){const i=Dn(r.cssRules,t.index);i!=null&&i.style&&(t.set&&i.style.setProperty(t.set.property,t.set.value,t.set.priority),t.remove&&i.style.removeProperty(t.remove.property))}applyQueuedSnapshotAdoptedStyleSheets(t,r){const i=this.mirror.getNode(t);if(!i)return;const s=this.mirror.getMeta(i);(s==null?void 0:s.type)===Ge.Element&&s.isShadowHost&&i.nodeType===Node.ELEMENT_NODE&&!Et(i)&&i.attachShadow({mode:"open"}),this.applySnapshotAdoptedStyleSheets(i,r)}inlineAdoptedStyleSheetsFromMutationNode(t,r){var i;return!("adoptedStyleSheets"in t)||!((i=t.adoptedStyleSheets)!=null&&i.length)?null:t.type===Ge.Document||t.type===Ge.Element&&t.isShadowHost||Et(r)?t.adoptedStyleSheets:null}ensureShadowHostForInlineAdoptedStyles(t,r){if(t.type!==Ge.Element||!t.isShadowHost)return;const i=r;i.nodeType!==Node.ELEMENT_NODE||Et(i)||i.attachShadow({mode:"open"})}applySnapshotAdoptedStyleSheets(t,r){var i;let s=null;if(Et(t)?s=((i=t.ownerDocument)==null?void 0:i.defaultView)||null:t.nodeName==="#document"&&(s=t.defaultView),!s)return;const n=[];for(const{styleId:o,rules:u}of r){const d=this.styleMirror.getStyle(o);if(d){u.length&&this.applyStyleSheetRule({source:H.StyleSheetRule,adds:u},d),n.push(d);continue}try{const l=new s.CSSStyleSheet;this.styleMirror.add(l,o),u.length&&this.applyStyleSheetRule({source:H.StyleSheetRule,adds:u},l),n.push(l)}catch(l){}}Et(t)?t.shadowRoot.adoptedStyleSheets=n:t.nodeName==="#document"&&(t.adoptedStyleSheets=n)}applyAdoptedStyleSheet(t){var r;const i=this.mirror.getNode(t.id);if(!i)return;(r=t.styles)==null||r.forEach(u=>{var d;let l=null,a=null;if(Et(i)?a=((d=i.ownerDocument)==null?void 0:d.defaultView)||null:i.nodeName==="#document"&&(a=i.defaultView),!!a)try{l=new a.CSSStyleSheet,this.styleMirror.add(l,u.styleId),this.applyStyleSheetRule({source:H.StyleSheetRule,adds:u.rules},l)}catch(h){}});const s=10;let n=0;const o=(u,d)=>{const l=d.map(a=>this.styleMirror.getStyle(a)).filter(a=>a!==null);Et(u)?u.shadowRoot.adoptedStyleSheets=l:u.nodeName==="#document"&&(u.adoptedStyleSheets=l),l.length!==d.length&&n<s&&(setTimeout(()=>o(u,d),0+100*n),n++)};o(i,t.styleIds)}legacy_resolveMissingNode(t,r,i,s){const{previousId:n,nextId:o}=s,u=n&&t[n],d=o&&t[o];if(u){const{node:l,mutation:a}=u;r.insertBefore(l,i),delete t[a.node.id],delete this.legacy_missingNodeRetryMap[a.node.id],(a.previousId||a.nextId)&&this.legacy_resolveMissingNode(t,r,l,a)}if(d){const{node:l,mutation:a}=d;r.insertBefore(l,i.nextSibling),delete t[a.node.id],delete this.legacy_missingNodeRetryMap[a.node.id],(a.previousId||a.nextId)&&this.legacy_resolveMissingNode(t,r,l,a)}}moveAndHover(t,r,i,s,n){const o=this.mirror.getNode(i);if(!o)return this.debugNodeNotFound(n,i);const u=Dc(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`,s||this.drawMouseTail({x:d,y:l}),this.hoverElements(o)}drawMouseTail(t){if(!this.mouseTail)return;const{lineCap:r,lineWidth:i,strokeStyle:s,duration:n}=this.config.mouseTail===!0?In:Object.assign({},In,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=i,u.lineCap=r,u.strokeStyle=s,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()},n/this.speedService.state.context.timer.speed)}hoverElements(t){var r;(r=this.lastHoveredRootNode||this.iframe.contentDocument)==null||r.querySelectorAll(".\\:hover").forEach(s=>{s.classList.remove(":hover")}),this.lastHoveredRootNode=t.getRootNode();let i=t;for(;i;)i.classList&&i.classList.add(":hover"),i=i.parentElement}isUserInteraction(t){return t.type!==re.IncrementalSnapshot?!1:t.data.source>H.Mutation&&t.data.source<=H.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(J.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(Jl,...t)}debug(...t){this.config.showDebug&&this.config.logger.log(Jl,...t)}}var Ke=Uint8Array,jt=Uint16Array,ao=Uint32Array,Bc=new Ke([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]),Uc=new Ke([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]),Fm=new Ke([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),$c=function(e,t){for(var r=new jt(31),i=0;i<31;++i)r[i]=t+=1<<e[i-1];for(var s=new ao(r[30]),i=1;i<30;++i)for(var n=r[i];n<r[i+1];++n)s[n]=n-r[i]<<5|i;return[r,s]},Wc=$c(Bc,2),zc=Wc[0],Bm=Wc[1];zc[28]=258,Bm[258]=28;var Um=$c(Uc,0),$m=Um[0],lo=new jt(32768);for(var de=0;de<32768;++de){var Ft=(de&43690)>>>1|(de&21845)<<1;Ft=(Ft&52428)>>>2|(Ft&13107)<<2,Ft=(Ft&61680)>>>4|(Ft&3855)<<4,lo[de]=((Ft&65280)>>>8|(Ft&255)<<8)>>>1}var ni=(function(e,t,r){for(var i=e.length,s=0,n=new jt(t);s<i;++s)++n[e[s]-1];var o=new jt(t);for(s=0;s<t;++s)o[s]=o[s-1]+n[s-1]<<1;var u;if(r){u=new jt(1<<t);var d=15-t;for(s=0;s<i;++s)if(e[s])for(var l=s<<4|e[s],a=t-e[s],h=o[e[s]-1]++<<a,c=h|(1<<a)-1;h<=c;++h)u[lo[h]>>>d]=l}else for(u=new jt(i),s=0;s<i;++s)u[s]=lo[o[e[s]-1]++]>>>15-e[s];return u}),gi=new Ke(288);for(var de=0;de<144;++de)gi[de]=8;for(var de=144;de<256;++de)gi[de]=9;for(var de=256;de<280;++de)gi[de]=7;for(var de=280;de<288;++de)gi[de]=8;var qc=new Ke(32);for(var de=0;de<32;++de)qc[de]=5;var Wm=ni(gi,9,1),zm=ni(qc,5,1),Pn=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},it=function(e,t,r){var i=t/8>>0;return(e[i]|e[i+1]<<8)>>>(t&7)&r},Ln=function(e,t){var r=t/8>>0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>>(t&7)},qm=function(e){return(e/8>>0)+(e&7&&1)},jc=function(e,t,r){(r==null||r>e.length)&&(r=e.length);var i=new(e instanceof jt?jt:e instanceof ao?ao:Ke)(r-t);return i.set(e.subarray(t,r)),i},jm=function(e,t,r){var i=e.length,s=!t||r,n=!r||r.i;r||(r={}),t||(t=new Ke(i*3));var o=function(W){var q=t.length;if(W>q){var B=new Ke(Math.max(q*2,W));B.set(t),t=B}},u=r.f||0,d=r.p||0,l=r.b||0,a=r.l,h=r.d,c=r.m,f=r.n,p=i*8;do{if(!a){r.f=u=it(e,d,1);var m=it(e,d+1,3);if(d+=3,m)if(m==1)a=Wm,h=zm,c=9,f=5;else if(m==2){var S=it(e,d,31)+257,E=it(e,d+10,15)+4,y=S+it(e,d+5,31)+1;d+=14;for(var b=new Ke(y),_=new Ke(19),C=0;C<E;++C)_[Fm[C]]=it(e,d+C*3,7);d+=E*3;var M=Pn(_),x=(1<<M)-1;if(!n&&d+y*(M+7)>p)break;for(var I=ni(_,M,1),C=0;C<y;){var D=I[it(e,d,x)];d+=D&15;var g=D>>>4;if(g<16)b[C++]=g;else{var le=0,te=0;for(g==16?(te=3+it(e,d,3),d+=2,le=b[C-1]):g==17?(te=3+it(e,d,7),d+=3):g==18&&(te=11+it(e,d,127),d+=7);te--;)b[C++]=le}}var R=b.subarray(0,S),se=b.subarray(S);c=Pn(R),f=Pn(se),a=ni(R,c,1),h=ni(se,f,1)}else throw"invalid block type";else{var g=qm(d)+4,w=e[g-4]|e[g-3]<<8,v=g+w;if(v>i){if(n)throw"unexpected EOF";break}s&&o(l+w),t.set(e.subarray(g,v),l),r.b=l+=w,r.p=d=v*8;continue}if(d>p)throw"unexpected EOF"}s&&o(l+131072);for(var L=(1<<c)-1,V=(1<<f)-1,P=c+f+18;n||d+P<p;){var le=a[Ln(e,d)&L],j=le>>>4;if(d+=le&15,d>p)throw"unexpected EOF";if(!le)throw"invalid length/literal";if(j<256)t[l++]=j;else if(j==256){a=null;break}else{var Ce=j-254;if(j>264){var C=j-257,we=Bc[C];Ce=it(e,d,(1<<we)-1)+zc[C],d+=we}var O=h[Ln(e,d)&V],z=O>>>4;if(!O)throw"invalid distance";d+=O&15;var se=$m[z];if(z>3){var we=Uc[z];se+=Ln(e,d)&(1<<we)-1,d+=we}if(d>p)throw"unexpected EOF";s&&o(l+131072);for(var k=l+Ce;l<k;l+=4)t[l]=t[l-se],t[l+1]=t[l+1-se],t[l+2]=t[l+2-se],t[l+3]=t[l+3-se];l=k}}r.l=a,r.p=d,r.b=l,a&&(u=1,r.m=c,r.d=h,r.n=f)}while(!u);return l==t.length?t:jc(t,0,l)},Vm=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 Gm(e,t){return jm((Vm(e),e.subarray(2,-4)),t)}function Hm(e,t){for(var r=e.length,i=new Ke(e.length+(e.length>>>1)),s=0,n=function(l){i[s++]=l},o=0;o<r;++o){if(s+5>i.length){var u=new Ke(s+8+(r-o<<1));u.set(i),i=u}var d=e.charCodeAt(o);n(d)}return jc(i,0,s)}function Ym(e,t){var r="";if(typeof TextDecoder!="undefined")return new TextDecoder().decode(e);for(var i=0;i<e.length;){var s=e[i++];s<128||t?r+=String.fromCharCode(s):s<224?r+=String.fromCharCode((s&31)<<6|e[i++]&63):s<240?r+=String.fromCharCode((s&15)<<12|(e[i++]&63)<<6|e[i++]&63):(s=((s&15)<<18|(e[i++]&63)<<12|(e[i++]&63)<<6|e[i++]&63)-65536,r+=String.fromCharCode(55296|s>>10,56320|s&1023))}return r}const Ql="v1",Jm=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(Ym(Gm(Hm(e,!0))));if(t.v===Ql)return t;throw new Error(`These events were packed with packer ${t.v} which is incompatible with current packer ${Ql}.`)}catch(t){throw console.error(t),new Error("Unknown data format.")}};function Kl(e){let t="";return Object.keys(e).forEach(r=>{t+=`${r}: ${e[r]};`}),t}function Yr(e,t=2){let r=String(e);const i=Math.pow(10,t-1);if(e<i)for(;String(i).length>r.length;)r=`0${e}`;return r}const Vc=1e3,uo=60*Vc,Zl=60*uo;function Di(e){if(e<=0)return"00:00";const t=Math.floor(e/Zl);e=e%Zl;const r=Math.floor(e/uo);e=e%uo;const i=Math.floor(e/Vc);return t?`${Yr(t)}:${Yr(r)}:${Yr(i)}`:`${Yr(r)}:${Yr(i)}`}function Xm(e){return e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():Promise.resolve()}function Qm(){return document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():Promise.resolve()}function eu(){let e=!1;return["fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement"].forEach(t=>{t in document&&(e=e||!!document[t])}),e}function Km(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 tu(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 Zm(e){return e.type!==re.IncrementalSnapshot?!1:e.data.source>H.Mutation&&e.data.source<=H.Input}function eg(e,t){const r=[];let i=e[0].timestamp;for(const s of e)Zm(s)&&(s.timestamp-i>t&&r.push([i,s.timestamp]),i=s.timestamp);return r}var Gc=(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))(Gc||{}),tg=zr('<div><input type="checkbox" class="svelte-184lr04"/> <label class="svelte-184lr04"></label> <span class="label svelte-184lr04"> </span></div>');function rg(e,t){let r=me(t,"disabled",8),i=me(t,"checked",12),s=me(t,"id",8),n=me(t,"label",8);var o=tg();let u;var d=ot(o);Mh(d);var l=He(d,2),a=He(l,2),h=ot(a,!0);nt(a),nt(o),Rr(()=>{u=Zn(o,1,"switch svelte-184lr04",null,u,{disabled:r()}),or(d,"id",s()),d.disabled=r(),or(l,"for",s()),Li(h,n())}),Dh(d,i),Rt(e,o)}var ig=zr("<div></div>"),sg=zr("<div></div>"),ng=Qu(`<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" aria-label="Play"><path d="M682.65984 128q53.00224 0 90.50112 37.49888t37.49888 90.50112l0
162
162
  512q0 53.00224-37.49888 90.50112t-90.50112
163
163
  37.49888-90.50112-37.49888-37.49888-90.50112l0-512q0-53.00224
164
164
  37.49888-90.50112t90.50112-37.49888zM341.34016 128q53.00224 0
@@ -171,17 +171,17 @@ PERFORMANCE OF THIS SOFTWARE.
171
171
  12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928zM682.65984
172
172
  213.34016q-17.67424 0-30.16704 12.4928t-12.4928 30.16704l0 512q0
173
173
  17.67424 12.4928 30.16704t30.16704 12.4928 30.16704-12.4928
174
- 12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z"></path></svg>`),rg=Xu(`<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" aria-label="Pause"><path d="M170.65984 896l0-768 640 384zM644.66944
175
- 512l-388.66944-233.32864 0 466.65728z"></path></svg>`),ig=zr("<button> </button>"),sg=zr(`<div class="rr-controller svelte-14v7dbr"><div class="rr-timeline svelte-14v7dbr"><span class="rr-timeline__time svelte-14v7dbr"> </span> <div role="slider" aria-label="Progress bar" aria-valuemin="0" aria-valuemax="100" tabindex="0"><div class="rr-progress__step svelte-14v7dbr"></div> <!> <!> <div class="rr-progress__handler svelte-14v7dbr"></div></div> <span class="rr-timeline__time svelte-14v7dbr"> </span></div> <div class="rr-controller__btns svelte-14v7dbr"><button class="svelte-14v7dbr"><!></button> <!> <!> <button aria-label="Fullscreen" class="svelte-14v7dbr"><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
174
+ 12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z"></path></svg>`),og=Qu(`<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" aria-label="Pause"><path d="M170.65984 896l0-768 640 384zM644.66944
175
+ 512l-388.66944-233.32864 0 466.65728z"></path></svg>`),ag=zr("<button> </button>"),lg=zr(`<div class="rr-controller svelte-14v7dbr"><div class="rr-timeline svelte-14v7dbr"><span class="rr-timeline__time svelte-14v7dbr"> </span> <div role="slider" aria-label="Progress bar" aria-valuemin="0" aria-valuemax="100" tabindex="0"><div class="rr-progress__step svelte-14v7dbr"></div> <!> <!> <div class="rr-progress__handler svelte-14v7dbr"></div></div> <span class="rr-timeline__time svelte-14v7dbr"> </span></div> <div class="rr-controller__btns svelte-14v7dbr"><button class="svelte-14v7dbr"><!></button> <!> <!> <button aria-label="Fullscreen" class="svelte-14v7dbr"><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
176
176
  18.4-48.8 18.4-68 0-18.4-18.4-18.4-48.8 0-68L800 156 692 156c-26.4
177
177
  0-48-21.6-48-48 0-26.4 21.6-48 48-48l224 0c26.4 0 48 21.6 48 48l0
178
178
  224C964 358.4 942.4 380 916 380zM231.2 860l108.8 0c26.4 0 48 21.6 48
179
179
  48s-21.6 48-48 48l-224 0c-26.4 0-48-21.6-48-48l0-224c0-26.4 21.6-48
180
180
  48-48 26.4 0 48 21.6 48 48L164 792l253.6-253.6c18.4-18.4 48.8-18.4
181
- 68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg></button></div></div>`);function ng(e,t){wo(t,!1);const r=vh();let i=me(t,"replayer",8),s=me(t,"showController",8),o=me(t,"autoPlay",8),n=me(t,"skipInactive",12),u=me(t,"speedOption",8),d=me(t,"speed",28,()=>u().length?u()[0]:1),l=me(t,"tags",24,()=>({})),a=me(t,"inactiveColor",8),f=Oe(0),c=null,h=Oe(),p=Oe(),m=Oe(),g,w=!1,v=null,S=null,E=Oe(),y=Oe();function b(k,$,Z){const B=$-k;return(100-($-Z)/B*100).toFixed(2)}let _=Oe(),C=Oe();const N=()=>{x();function k(){re(f,i().getCurrentTime()),w&&A(f)>=w&&(S?R(S.start,S.end,!0,void 0):(i().pause(),v&&(v(),v=null))),A(f)<A(E).totalTime&&(c=requestAnimationFrame(k))}c=requestAnimationFrame(k)},x=()=>{c&&(cancelAnimationFrame(c),c=null)},I=()=>{switch(A(h)){case"playing":ae();break;case"paused":D();break}},D=()=>{A(h)==="paused"&&(g?(i().play(),g=!1):i().play(A(f)))},ae=()=>{A(h)==="playing"&&(i().pause(),w=!1)},ee=(k,$)=>{re(f,k),w=!1,g=!1,(typeof $=="boolean"?$:A(h)==="playing")?i().play(k):i().pause(k)},R=(k,$,Z=!1,B=void 0)=>{Z?S={start:k,end:$}:S=null,re(f,k),w=$,v=B||null,i().play(k)},ie=k=>{if(A(p)==="skipping")return;const $=A(m).getBoundingClientRect();let B=(k.clientX-$.left)/$.width;B<0?B=0:B>1&&(B=1);const he=A(E).totalTime*B;ee(he)},L=k=>{A(p)!=="skipping"&&(k.key==="ArrowLeft"?ee(A(f)-5):k.key==="ArrowRight"&&ee(A(f)+5))},q=k=>{let $=A(h)==="playing";d(k),$&&i().pause(),i().setConfig({speed:d()}),$&&i().play(A(f))},P=()=>{n(!n())},z=()=>Promise.resolve().then(()=>{re(E,i().getMetaData())});xo(()=>{re(h,i().service.state.value),re(p,i().speedService.state.value),i().on("state-change",k=>{const{player:$,speed:Z}=k;if($!=null&&$.value&&A(h)!==$.value)switch(re(h,$.value),A(h)){case"playing":N();break;case"paused":x();break}Z!=null&&Z.value&&A(p)!==Z.value&&re(p,Z.value)}),i().on("finish",()=>{g=!0,v&&(v(),v=null)}),o()&&i().play()}),yh(()=>{n()!==i().config.skipInactive&&i().setConfig({skipInactive:n()})}),Zu(()=>{i().pause(),x()}),Wt(()=>A(f),()=>{r("ui-update-current-time",{payload:A(f)})}),Wt(()=>A(h),()=>{r("ui-update-player-state",{payload:A(h)})}),Wt(()=>$e(i()),()=>{re(E,i().getMetaData())}),Wt(()=>(A(f),A(E)),()=>{const k=Math.min(1,A(f)/A(E).totalTime);re(y,`${100*k}%`),r("ui-update-progress",{payload:k})}),Wt(()=>($e(i()),$e(l())),()=>{re(_,(()=>{const{context:k}=i().service.state,$=k.events.length,Z=k.events[0].timestamp,B=k.events[$-1].timestamp,he=[];return k.events.forEach(ce=>{if(ce.type===jc.Custom){const se={name:ce.data.tag,background:l()[ce.data.tag]||"rgb(73, 80, 246)",position:`${b(Z,B,ce.timestamp)}%`};he.push(se)}}),he})())}),Wt(()=>($e(i()),$e(a())),()=>{re(C,(()=>{try{const{context:k}=i().service.state,$=k.events.length,Z=k.events[0].timestamp,B=k.events[$-1].timestamp,he=Xm(k.events,i().config.inactivePeriodThreshold),ce=(se,ke,mt,vi)=>{const bs=ke-se;return((vi-mt)/bs*100).toFixed(2)};return he.map(se=>({name:"inactive period",background:a(),position:`${b(Z,B,se[0])}%`,width:`${ce(Z,B,se[0],se[1])}%`}))}catch(k){return[]}})())}),Lu();var Ce={toggle:I,play:D,pause:ae,goto:ee,playRange:R,setSpeed:q,toggleSkipInactive:P,triggerUpdateMeta:z};tc();var we=ch(),O=Yf(we);{var ue=k=>{var $=sg(),Z=ot($),B=ot(Z),he=ot(B,!0);nt(B);var ce=He(B,2);let se;var ke=ot(ce),mt=He(ke,2);Es(mt,1,()=>A(C),_s,(_e,le)=>{var Ne=Zm();Rr(()=>{var rt,gt,jr;or(Ne,"title",(A(le),Ee(()=>A(le).name))),Mr(Ne,`width: ${(rt=(A(le),Ee(()=>A(le).width)))!=null?rt:""};height: 4px;position: absolute;background: ${(gt=(A(le),Ee(()=>A(le).background)))!=null?gt:""};left:
182
- ${(jr=(A(le),Ee(()=>A(le).position)))!=null?jr:""};`)}),Rt(_e,Ne)});var vi=He(mt,2);Es(vi,1,()=>A(_),_s,(_e,le)=>{var Ne=eg();Rr(()=>{var rt,gt;or(Ne,"title",(A(le),Ee(()=>A(le).name))),Mr(Ne,`width: 10px;height: 5px;position: absolute;top:
183
- 2px;transform: translate(-50%, -50%);background: ${(rt=(A(le),Ee(()=>A(le).background)))!=null?rt:""};left:
184
- ${(gt=(A(le),Ee(()=>A(le).position)))!=null?gt:""};`)}),Rt(_e,Ne)});var bs=He(vi,2);nt(ce),Fi(ce,_e=>re(m,_e),()=>A(m));var Ss=He(ce,2),Yo=ot(Ss,!0);nt(Ss),nt(Z);var Jo=He(Z,2),yi=ot(Jo),Gc=ot(yi);{var Hc=_e=>{var le=tg();Rt(_e,le)},Yc=_e=>{var le=rg();Rt(_e,le)};Xn(Gc,_e=>{A(h)==="playing"?_e(Hc):_e(Yc,!1)})}nt(yi);var Xo=He(yi,2);Es(Xo,1,u,_s,(_e,le)=>{var Ne=ig();let rt;var gt=ot(Ne);nt(Ne),Rr(()=>{var jr;Ne.disabled=A(p)==="skipping",rt=Kn(Ne,1,"svelte-14v7dbr",null,rt,{active:A(le)===d()&&A(p)!=="skipping"}),Li(gt,`${(jr=A(le))!=null?jr:""}x`)}),Gr("click",Ne,()=>q(A(le))),Rt(_e,Ne)});var Qo=He(Xo,2);{let _e=ns(()=>A(p)==="skipping");Km(Qo,{id:"skip",get disabled(){return A(_e)},label:"skip inactive",get checked(){return n()},set checked(le){n(le)},$$legacy:!0})}var Jc=He(Qo,2);nt(Jo),nt($),Rr((_e,le,Ne)=>{var rt,gt;Li(he,_e),se=Kn(ce,1,"rr-progress svelte-14v7dbr",null,se,{disabled:A(p)==="skipping"}),or(ce,"aria-valuenow",le),Mr(ke,`width: ${(rt=A(y))!=null?rt:""}`),Mr(bs,`left: ${(gt=A(y))!=null?gt:""}`),Li(Yo,Ne)},[()=>($e(Di),A(f),Ee(()=>Di(A(f)))),()=>(A(y),Ee(()=>parseFloat(A(y)))),()=>($e(Di),A(E),Ee(()=>Di(A(E).totalTime)))]),Gr("click",ce,ie),Gr("keydown",ce,L),Gr("click",yi,I),Gr("click",Jc,()=>r("fullscreen")),Rt(k,$)};Xn(O,k=>{s()&&k(ue)})}return Rt(e,we),ve(t,"toggle",I),ve(t,"play",D),ve(t,"pause",ae),ve(t,"goto",ee),ve(t,"playRange",R),ve(t,"setSpeed",q),ve(t,"toggleSkipInactive",P),ve(t,"triggerUpdateMeta",z),bo(Ce)}var og=zr('<div class="rr-player svelte-1qub0ki"><div class="rr-player__frame svelte-1qub0ki"></div> <!></div>');function ag(e,t){const r=Th(t,["children","$$slots","$$events","$$legacy"]);wo(t,!1);let i=me(t,"width",12,1024),s=me(t,"height",12,576),o=me(t,"maxScale",8,1),n=me(t,"events",8),u=me(t,"skipInactive",8,!0),d=me(t,"autoPlay",8,!0),l=me(t,"speedOption",24,()=>[1,2,4,8]),a=me(t,"speed",8,1),f=me(t,"showController",8,!0),c=me(t,"tags",24,()=>({})),h=me(t,"inactiveColor",8,"#D4D4D4"),p=Oe();const m=()=>A(p).getMirror(),g=80;let w=Oe(),v=Oe(),S,E=i(),y=s(),b=Oe(),_=Oe(),C=Oe();const N=(B,he)=>{const ce=i()/he.width,se=s()/he.height,ke=[ce,se];o()&&ke.push(o()),B.style.transform=`scale(${Math.min(...ke)})translate(-50%, -50%)`},x=()=>{N(A(p).wrapper,{width:A(p).iframe.offsetWidth,height:A(p).iframe.offsetHeight})},I=()=>{A(w)&&(Zl()?Hm():Gm(A(w)))},D=(B,he)=>{switch(A(p).on(B,he),B){case"ui-update-current-time":case"ui-update-progress":case"ui-update-player-state":A(b).$on(B,({detail:ce})=>he(ce))}},ae=B=>{A(p).addEvent(B),A(b).triggerUpdateMeta()},ee=()=>A(p).getMetaData(),R=()=>A(p),ie=()=>{A(b).toggle()},L=B=>{A(b).setSpeed(B)},q=()=>{A(b).toggleSkipInactive()},P=()=>{A(b).play()},z=()=>{A(b).pause()},Ce=(B,he)=>{A(b).goto(B,he)},we=(B,he,ce=!1,se=void 0)=>{A(b).playRange(B,he,ce,se)};xo(()=>{if(l()!==void 0&&eu(l())!=="array")throw new Error("speedOption must be array");if(l().forEach(B=>{if(eu(B)!=="number")throw new Error("item of speedOption must be number")}),l().indexOf(a())<0)throw new Error(`speed must be one of speedOption,
181
+ 68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg></button></div></div>`);function ug(e,t){bo(t,!1);const r=wh();let i=me(t,"replayer",8),s=me(t,"showController",8),n=me(t,"autoPlay",8),o=me(t,"skipInactive",12),u=me(t,"speedOption",8),d=me(t,"speed",28,()=>u().length?u()[0]:1),l=me(t,"tags",24,()=>({})),a=me(t,"inactiveColor",8),h=Oe(0),c=null,f=Oe(),p=Oe(),m=Oe(),g,w=!1,v=null,S=null,E=Oe(),y=Oe();function b(k,W,q){const B=W-k;return(100-(W-q)/B*100).toFixed(2)}let _=Oe(),C=Oe();const M=()=>{x();function k(){ie(h,i().getCurrentTime()),w&&A(h)>=w&&(S?R(S.start,S.end,!0,void 0):(i().pause(),v&&(v(),v=null))),A(h)<A(E).totalTime&&(c=requestAnimationFrame(k))}c=requestAnimationFrame(k)},x=()=>{c&&(cancelAnimationFrame(c),c=null)},I=()=>{switch(A(f)){case"playing":le();break;case"paused":D();break}},D=()=>{A(f)==="paused"&&(g?(i().play(),g=!1):i().play(A(h)))},le=()=>{A(f)==="playing"&&(i().pause(),w=!1)},te=(k,W)=>{ie(h,k),w=!1,g=!1,(typeof W=="boolean"?W:A(f)==="playing")?i().play(k):i().pause(k)},R=(k,W,q=!1,B=void 0)=>{q?S={start:k,end:W}:S=null,ie(h,k),w=W,v=B||null,i().play(k)},se=k=>{if(A(p)==="skipping")return;const W=A(m).getBoundingClientRect();let B=(k.clientX-W.left)/W.width;B<0?B=0:B>1&&(B=1);const he=A(E).totalTime*B;te(he)},L=k=>{A(p)!=="skipping"&&(k.key==="ArrowLeft"?te(A(h)-5):k.key==="ArrowRight"&&te(A(h)+5))},V=k=>{let W=A(f)==="playing";d(k),W&&i().pause(),i().setConfig({speed:d()}),W&&i().play(A(h))},P=()=>{o(!o())},j=()=>Promise.resolve().then(()=>{ie(E,i().getMetaData())});Ro(()=>{ie(f,i().service.state.value),ie(p,i().speedService.state.value),i().on("state-change",k=>{const{player:W,speed:q}=k;if(W!=null&&W.value&&A(f)!==W.value)switch(ie(f,W.value),A(f)){case"playing":M();break;case"paused":x();break}q!=null&&q.value&&A(p)!==q.value&&ie(p,q.value)}),i().on("finish",()=>{g=!0,v&&(v(),v=null)}),n()&&i().play()}),bh(()=>{o()!==i().config.skipInactive&&i().setConfig({skipInactive:o()})}),ec(()=>{i().pause(),x()}),Wt(()=>A(h),()=>{r("ui-update-current-time",{payload:A(h)})}),Wt(()=>A(f),()=>{r("ui-update-player-state",{payload:A(f)})}),Wt(()=>$e(i()),()=>{ie(E,i().getMetaData())}),Wt(()=>(A(h),A(E)),()=>{const k=Math.min(1,A(h)/A(E).totalTime);ie(y,`${100*k}%`),r("ui-update-progress",{payload:k})}),Wt(()=>($e(i()),$e(l())),()=>{ie(_,(()=>{const{context:k}=i().service.state,W=k.events.length,q=k.events[0].timestamp,B=k.events[W-1].timestamp,he=[];return k.events.forEach(ce=>{if(ce.type===Gc.Custom){const ne={name:ce.data.tag,background:l()[ce.data.tag]||"rgb(73, 80, 246)",position:`${b(q,B,ce.timestamp)}%`};he.push(ne)}}),he})())}),Wt(()=>($e(i()),$e(a())),()=>{ie(C,(()=>{try{const{context:k}=i().service.state,W=k.events.length,q=k.events[0].timestamp,B=k.events[W-1].timestamp,he=eg(k.events,i().config.inactivePeriodThreshold),ce=(ne,ke,mt,vi)=>{const bs=ke-ne;return((vi-mt)/bs*100).toFixed(2)};return he.map(ne=>({name:"inactive period",background:a(),position:`${b(q,B,ne[0])}%`,width:`${ce(q,B,ne[0],ne[1])}%`}))}catch(k){return[]}})())}),Fu();var Ce={toggle:I,play:D,pause:le,goto:te,playRange:R,setSpeed:V,toggleSkipInactive:P,triggerUpdateMeta:j};rc();var we=hh(),O=Xf(we);{var z=k=>{var W=lg(),q=ot(W),B=ot(q),he=ot(B,!0);nt(B);var ce=He(B,2);let ne;var ke=ot(ce),mt=He(ke,2);Es(mt,1,()=>A(C),_s,(_e,ue)=>{var Me=ig();Rr(()=>{var rt,gt,jr;or(Me,"title",(A(ue),Ee(()=>A(ue).name))),Nr(Me,`width: ${(rt=(A(ue),Ee(()=>A(ue).width)))!=null?rt:""};height: 4px;position: absolute;background: ${(gt=(A(ue),Ee(()=>A(ue).background)))!=null?gt:""};left:
182
+ ${(jr=(A(ue),Ee(()=>A(ue).position)))!=null?jr:""};`)}),Rt(_e,Me)});var vi=He(mt,2);Es(vi,1,()=>A(_),_s,(_e,ue)=>{var Me=sg();Rr(()=>{var rt,gt;or(Me,"title",(A(ue),Ee(()=>A(ue).name))),Nr(Me,`width: 10px;height: 5px;position: absolute;top:
183
+ 2px;transform: translate(-50%, -50%);background: ${(rt=(A(ue),Ee(()=>A(ue).background)))!=null?rt:""};left:
184
+ ${(gt=(A(ue),Ee(()=>A(ue).position)))!=null?gt:""};`)}),Rt(_e,Me)});var bs=He(vi,2);nt(ce),Fi(ce,_e=>ie(m,_e),()=>A(m));var Ss=He(ce,2),Jo=ot(Ss,!0);nt(Ss),nt(q);var Xo=He(q,2),yi=ot(Xo),Yc=ot(yi);{var Jc=_e=>{var ue=ng();Rt(_e,ue)},Xc=_e=>{var ue=og();Rt(_e,ue)};Qn(Yc,_e=>{A(f)==="playing"?_e(Jc):_e(Xc,!1)})}nt(yi);var Qo=He(yi,2);Es(Qo,1,u,_s,(_e,ue)=>{var Me=ag();let rt;var gt=ot(Me);nt(Me),Rr(()=>{var jr;Me.disabled=A(p)==="skipping",rt=Zn(Me,1,"svelte-14v7dbr",null,rt,{active:A(ue)===d()&&A(p)!=="skipping"}),Li(gt,`${(jr=A(ue))!=null?jr:""}x`)}),Gr("click",Me,()=>V(A(ue))),Rt(_e,Me)});var Ko=He(Qo,2);{let _e=ns(()=>A(p)==="skipping");rg(Ko,{id:"skip",get disabled(){return A(_e)},label:"skip inactive",get checked(){return o()},set checked(ue){o(ue)},$$legacy:!0})}var Qc=He(Ko,2);nt(Xo),nt(W),Rr((_e,ue,Me)=>{var rt,gt;Li(he,_e),ne=Zn(ce,1,"rr-progress svelte-14v7dbr",null,ne,{disabled:A(p)==="skipping"}),or(ce,"aria-valuenow",ue),Nr(ke,`width: ${(rt=A(y))!=null?rt:""}`),Nr(bs,`left: ${(gt=A(y))!=null?gt:""}`),Li(Jo,Me)},[()=>($e(Di),A(h),Ee(()=>Di(A(h)))),()=>(A(y),Ee(()=>parseFloat(A(y)))),()=>($e(Di),A(E),Ee(()=>Di(A(E).totalTime)))]),Gr("click",ce,se),Gr("keydown",ce,L),Gr("click",yi,I),Gr("click",Qc,()=>r("fullscreen")),Rt(k,W)};Qn(O,k=>{s()&&k(z)})}return Rt(e,we),ve(t,"toggle",I),ve(t,"play",D),ve(t,"pause",le),ve(t,"goto",te),ve(t,"playRange",R),ve(t,"setSpeed",V),ve(t,"toggleSkipInactive",P),ve(t,"triggerUpdateMeta",j),So(Ce)}var cg=zr('<div class="rr-player svelte-1qub0ki"><div class="rr-player__frame svelte-1qub0ki"></div> <!></div>');function fg(e,t){const r=Ih(t,["children","$$slots","$$events","$$legacy"]);bo(t,!1);let i=me(t,"width",12,1024),s=me(t,"height",12,576),n=me(t,"maxScale",8,1),o=me(t,"events",8),u=me(t,"skipInactive",8,!0),d=me(t,"autoPlay",8,!0),l=me(t,"speedOption",24,()=>[1,2,4,8]),a=me(t,"speed",8,1),h=me(t,"showController",8,!0),c=me(t,"tags",24,()=>({})),f=me(t,"inactiveColor",8,"#D4D4D4"),p=Oe();const m=()=>A(p).getMirror(),g=80;let w=Oe(),v=Oe(),S,E=i(),y=s(),b=Oe(),_=Oe(),C=Oe();const M=(B,he)=>{const ce=i()/he.width,ne=s()/he.height,ke=[ce,ne];n()&&ke.push(n()),B.style.transform=`scale(${Math.min(...ke)})translate(-50%, -50%)`},x=()=>{M(A(p).wrapper,{width:A(p).iframe.offsetWidth,height:A(p).iframe.offsetHeight})},I=()=>{A(w)&&(eu()?Qm():Xm(A(w)))},D=(B,he)=>{switch(A(p).on(B,he),B){case"ui-update-current-time":case"ui-update-progress":case"ui-update-player-state":A(b).$on(B,({detail:ce})=>he(ce))}},le=B=>{A(p).addEvent(B),A(b).triggerUpdateMeta()},te=()=>A(p).getMetaData(),R=()=>A(p),se=()=>{A(b).toggle()},L=B=>{A(b).setSpeed(B)},V=()=>{A(b).toggleSkipInactive()},P=()=>{A(b).play()},j=()=>{A(b).pause()},Ce=(B,he)=>{A(b).goto(B,he)},we=(B,he,ce=!1,ne=void 0)=>{A(b).playRange(B,he,ce,ne)};Ro(()=>{if(l()!==void 0&&tu(l())!=="array")throw new Error("speedOption must be array");if(l().forEach(B=>{if(tu(B)!=="number")throw new Error("item of speedOption must be number")}),l().indexOf(a())<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
- `);re(p,new Tm(n(),G({speed:a(),root:A(v),unpackFn:Vm},r))),A(p).on("resize",B=>{N(A(p).wrapper,B)}),S=Ym(()=>{Zl()?setTimeout(()=>{E=i(),y=s(),i(A(w).offsetWidth),s(A(w).offsetHeight-(f()?g:0)),N(A(p).wrapper,{width:A(p).iframe.offsetWidth,height:A(p).iframe.offsetHeight})},0):(i(E),s(y),N(A(p).wrapper,{width:A(p).iframe.offsetWidth,height:A(p).iframe.offsetHeight}))})}),Zu(()=>{S&&S()}),Wt(()=>($e(i()),$e(s())),()=>{re(_,Ql({width:`${i()}px`,height:`${s()}px`}))}),Wt(()=>($e(i()),$e(s()),$e(f())),()=>{re(C,Ql({width:`${i()}px`,height:`${s()+(f()?g:0)}px`}))}),Lu();var O={getMirror:m,triggerResize:x,toggleFullscreen:I,addEventListener:D,addEvent:ae,getMetaData:ee,getReplayer:R,toggle:ie,setSpeed:L,toggleSkipInactive:q,play:P,pause:z,goto:Ce,playRange:we};tc();var ue=og(),k=ot(ue);Fi(k,B=>re(v,B),()=>A(v));var $=He(k,2);{var Z=B=>{Fi(ng(B,{get replayer(){return A(p)},get showController(){return f()},get autoPlay(){return d()},get speedOption(){return l()},get skipInactive(){return u()},get tags(){return c()},get inactiveColor(){return h()},$$events:{fullscreen:()=>I()},$$legacy:!0}),he=>re(b,he),()=>A(b))};Xn($,B=>{A(p)&&B(Z)})}return nt(ue),Fi(ue,B=>re(w,B),()=>A(w)),Rr(()=>{Mr(ue,A(C)),Mr(k,A(_))}),Rt(e,ue),ve(t,"getMirror",m),ve(t,"triggerResize",x),ve(t,"toggleFullscreen",I),ve(t,"addEventListener",D),ve(t,"addEvent",ae),ve(t,"getMetaData",ee),ve(t,"getReplayer",R),ve(t,"toggle",ie),ve(t,"setSpeed",L),ve(t,"toggleSkipInactive",q),ve(t,"play",P),ve(t,"pause",z),ve(t,"goto",Ce),ve(t,"playRange",we),bo(O)}const lg=kh(ag);class Vc extends lg{constructor(t){var r;super({target:t.target,props:(r=t.data)!=null?r:t.props})}}exports.Player=Vc;exports.default=Vc;
192
+ `);ie(p,new Lm(o(),G({speed:a(),root:A(v),unpackFn:Jm},r))),A(p).on("resize",B=>{M(A(p).wrapper,B)}),S=Km(()=>{eu()?setTimeout(()=>{E=i(),y=s(),i(A(w).offsetWidth),s(A(w).offsetHeight-(h()?g:0)),M(A(p).wrapper,{width:A(p).iframe.offsetWidth,height:A(p).iframe.offsetHeight})},0):(i(E),s(y),M(A(p).wrapper,{width:A(p).iframe.offsetWidth,height:A(p).iframe.offsetHeight}))})}),ec(()=>{S&&S()}),Wt(()=>($e(i()),$e(s())),()=>{ie(_,Kl({width:`${i()}px`,height:`${s()}px`}))}),Wt(()=>($e(i()),$e(s()),$e(h())),()=>{ie(C,Kl({width:`${i()}px`,height:`${s()+(h()?g:0)}px`}))}),Fu();var O={getMirror:m,triggerResize:x,toggleFullscreen:I,addEventListener:D,addEvent:le,getMetaData:te,getReplayer:R,toggle:se,setSpeed:L,toggleSkipInactive:V,play:P,pause:j,goto:Ce,playRange:we};rc();var z=cg(),k=ot(z);Fi(k,B=>ie(v,B),()=>A(v));var W=He(k,2);{var q=B=>{Fi(ug(B,{get replayer(){return A(p)},get showController(){return h()},get autoPlay(){return d()},get speedOption(){return l()},get skipInactive(){return u()},get tags(){return c()},get inactiveColor(){return f()},$$events:{fullscreen:()=>I()},$$legacy:!0}),he=>ie(b,he),()=>A(b))};Qn(W,B=>{A(p)&&B(q)})}return nt(z),Fi(z,B=>ie(w,B),()=>A(w)),Rr(()=>{Nr(z,A(C)),Nr(k,A(_))}),Rt(e,z),ve(t,"getMirror",m),ve(t,"triggerResize",x),ve(t,"toggleFullscreen",I),ve(t,"addEventListener",D),ve(t,"addEvent",le),ve(t,"getMetaData",te),ve(t,"getReplayer",R),ve(t,"toggle",se),ve(t,"setSpeed",L),ve(t,"toggleSkipInactive",V),ve(t,"play",P),ve(t,"pause",j),ve(t,"goto",Ce),ve(t,"playRange",we),So(O)}const hg=Ph(fg);class Hc extends hg{constructor(t){var r;super({target:t.target,props:(r=t.data)!=null?r:t.props})}}exports.Player=Hc;exports.default=Hc;
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") {