@amplitude/rrweb-player 2.0.0-alpha.36 → 2.0.0-alpha.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rrweb-player.cjs +1640 -35
- package/dist/rrweb-player.cjs.map +1 -1
- package/dist/rrweb-player.js +1640 -35
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +1643 -35
- package/dist/rrweb-player.umd.cjs.map +3 -3
- package/dist/rrweb-player.umd.min.cjs +43 -43
- package/dist/rrweb-player.umd.min.cjs.map +3 -3
- package/package.json +4 -4
|
@@ -11,62 +11,62 @@
|
|
|
11
11
|
}(this, () => {
|
|
12
12
|
var exports = {};
|
|
13
13
|
var module = { exports };
|
|
14
|
-
"use strict";var Sc=Object.defineProperty,Ec=Object.defineProperties;var Cc=Object.getOwnPropertyDescriptors;var fi=Object.getOwnPropertySymbols;var Po=Object.prototype.hasOwnProperty,ko=Object.prototype.propertyIsEnumerable;var To=(e,t,r)=>t in e?Sc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,H=(e,t)=>{for(var r in t||(t={}))Po.call(t,r)&&To(e,r,t[r]);if(fi)for(var r of fi(t))ko.call(t,r)&&To(e,r,t[r]);return e},ge=(e,t)=>Ec(e,Cc(t));var Br=(e,t)=>{var r={};for(var i in e)Po.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&fi)for(var i of fi(e))t.indexOf(i)<0&&ko.call(e,i)&&(r[i]=e[i]);return r};var xc=Object.defineProperty,Al=e=>{throw TypeError(e)},Rc=(e,t,r)=>t in e?xc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ct=(e,t,r)=>Rc(e,typeof t!="symbol"?t+"":t,r),Hn=(e,t,r)=>t.has(e)||Al("Cannot "+r),R=(e,t,r)=>(Hn(e,t,"read from private field"),r?r.call(e):t.get(e)),q=(e,t,r)=>t.has(e)?Al("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),L=(e,t,r,i)=>(Hn(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),de=(e,t,r)=>(Hn(e,t,"access private method"),r),Io,Zr,zr,Lt,Ft,$r,ei,Yr,Ge,Yn,ti,En,Dl,Tl,st,He,Ei,Et,Cr,xt,nt,We,bt,zt,Qt,Yt,$t,pr,Jt,Cn,Pe,Pl,kl,Jn,Oi,Ai,xn,pt,_t,$e,mr,Ci,xi,Rn,kt,tt;Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Mc="5";var Nl,Ol;typeof window!="undefined"&&((Ol=(Io=(Nl=window.__svelte)!=null?Nl:window.__svelte={}).v)!=null?Ol:Io.v=new Set).add(Mc);let Dr=!1,Nc=!1;function Oc(){Dr=!0}Oc();const Ac=1,Dc=2,Tc=16,Pc=1,kc=2,Il=4,Ic=8,Lc=16,Fc=2,Ll="[",Bi="[!",Xn="]",xr={},Ne=Symbol(),Uc="http://www.w3.org/1999/xhtml",Mn=!1;var Qn=Array.isArray,Bc=Array.prototype.indexOf,Wi=Array.from,Fl=Object.defineProperty,Kt=Object.getOwnPropertyDescriptor,Ul=Object.getOwnPropertyDescriptors,Wc=Object.prototype,qc=Array.prototype,Kn=Object.getPrototypeOf,Lo=Object.isExtensible;function zc(e){return e()}function Nn(e){for(var t=0;t<e.length;t++)e[t]()}function Bl(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}const Ce=2,Zn=4,qi=8,$c=1<<24,Nt=16,Ot=32,lr=64,zi=128,lt=512,Ee=1024,Ie=2048,ct=4096,qe=8192,Mt=16384,$i=32768,Rr=65536,Fo=1<<17,Wl=1<<18,Tr=1<<19,ql=1<<20,Bt=1<<25,ir=32768,On=1<<21,eo=1<<22,Vt=1<<23,Zt=Symbol("$state"),zl=Symbol("legacy props"),Vc=Symbol(""),wr=new class extends Error{constructor(){super(...arguments),Ct(this,"name","StaleReactionError"),Ct(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},to=3,Pr=8;function Vi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function jc(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Gc(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Hc(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Yc(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Jc(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Xc(){throw new Error("https://svelte.dev/e/hydration_failed")}function Qc(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function Kc(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Zc(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ef(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function tf(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function rf(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ji(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function sf(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let J=!1;function Rt(e){J=e}let $;function ze(e){if(e===null)throw ji(),xr;return $=e}function Gi(){return ze(yt($))}function rt(e){if(J){if(yt($)!==null)throw ji(),xr;$=e}}function nf(e=1){if(J){for(var t=e,r=$;t--;)r=yt(r);$=r}}function Di(e=!0){for(var t=0,r=$;;){if(r.nodeType===Pr){var i=r.data;if(i===Xn){if(t===0)return r;t-=1}else(i===Ll||i===Bi)&&(t+=1)}var s=yt(r);e&&r.remove(),r=s}}function $l(e){if(!e||e.nodeType!==Pr)throw ji(),xr;return e.data}function Vl(e){return e===this.v}function of(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function jl(e){return!of(e,this.v)}let te=null;function Mr(e){te=e}function ro(e,t=!1,r){te={p:te,i:!1,c:null,e:null,s:e,x:null,l:Dr&&!t?{s:null,u:null,$:[]}:null}}function io(e){var t=te,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,te=t.p,e!=null?e:{}}function si(){return!Dr||te!==null&&te.l===null}let Xt=[];function Gl(){var e=Xt;Xt=[],Nn(e)}function kr(e){if(Xt.length===0&&!Jr){var t=Xt;queueMicrotask(()=>{t===Xt&&Gl()})}Xt.push(e)}function af(){for(;Xt.length>0;)Gl()}function Hl(e){var t=V;if(t===null)return z.f|=Vt,e;if((t.f&$i)===0){if((t.f&zi)===0)throw e;t.b.error(e)}else Nr(e,t)}function Nr(e,t){for(;t!==null;){if((t.f&zi)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Ri=new Set;let ee=null,Ae=null,Ye=[],Hi=null,An=!1,Jr=!1;const lf=class Dn{constructor(){q(this,Ge),Ct(this,"committed",!1),Ct(this,"current",new Map),Ct(this,"previous",new Map),q(this,Zr,new Set),q(this,zr,new Set),q(this,Lt,0),q(this,Ft,0),q(this,$r,null),q(this,ei,new Set),q(this,Yr,new Set),Ct(this,"skipped_effects",new Set),Ct(this,"is_fork",!1)}is_deferred(){return this.is_fork||R(this,Ft)>0}process(t){var r;Ye=[],this.apply();var i={parent:null,effect:null,effects:[],render_effects:[]};for(const s of t)de(this,Ge,Yn).call(this,s,i);this.is_fork||de(this,Ge,Dl).call(this),this.is_deferred()?(de(this,Ge,ti).call(this,i.effects),de(this,Ge,ti).call(this,i.render_effects)):(ee=null,Uo(i.render_effects),Uo(i.effects),(r=R(this,$r))==null||r.resolve()),Ae=null}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&Vt)===0&&(this.current.set(t,t.v),Ae==null||Ae.set(t,t.v))}activate(){ee=this,this.apply()}deactivate(){ee===this&&(ee=null,Ae=null)}flush(){if(this.activate(),Ye.length>0){if(Yl(),ee!==null&&ee!==this)return}else R(this,Lt)===0&&this.process([]);this.deactivate()}discard(){for(const t of R(this,zr))t(this);R(this,zr).clear()}increment(t){L(this,Lt,R(this,Lt)+1),t&&L(this,Ft,R(this,Ft)+1)}decrement(t){L(this,Lt,R(this,Lt)-1),t&&L(this,Ft,R(this,Ft)-1),this.revive()}revive(){for(const t of R(this,ei))R(this,Yr).delete(t),xe(t,Ie),nr(t);for(const t of R(this,Yr))xe(t,ct),nr(t);this.flush()}oncommit(t){R(this,Zr).add(t)}ondiscard(t){R(this,zr).add(t)}settled(){var t;return((t=R(this,$r))!=null?t:L(this,$r,Bl())).promise}static ensure(){if(ee===null){const t=ee=new Dn;Ri.add(ee),Jr||Dn.enqueue(()=>{ee===t&&t.flush()})}return ee}static enqueue(t){kr(t)}apply(){}};Zr=new WeakMap;zr=new WeakMap;Lt=new WeakMap;Ft=new WeakMap;$r=new WeakMap;ei=new WeakMap;Yr=new WeakMap;Ge=new WeakSet;Yn=function(e,t){var r;e.f^=Ee;for(var i=e.first;i!==null;){var s=i.f,n=(s&(Ot|lr))!==0,o=n&&(s&Ee)!==0,u=o||(s&qe)!==0||this.skipped_effects.has(i);if((i.f&zi)!==0&&((r=i.b)!=null&&r.is_pending())&&(t={parent:t,effect:i,effects:[],render_effects:[]}),!u&&i.fn!==null){n?i.f^=Ee:(s&Zn)!==0?t.effects.push(i):Ir(i)&&((i.f&Nt)!==0&&R(this,ei).add(i),Ar(i));var l=i.first;if(l!==null){i=l;continue}}var c=i.parent;for(i=i.next;i===null&&c!==null;)c===t.effect&&(de(this,Ge,ti).call(this,t.effects),de(this,Ge,ti).call(this,t.render_effects),t=t.parent),i=c.next,c=c.parent}};ti=function(e){for(const t of e)(t.f&Ie)!==0?R(this,ei).add(t):(t.f&ct)!==0&&R(this,Yr).add(t),de(this,Ge,En).call(this,t.deps),xe(t,Ee)};En=function(e){if(e!==null)for(const t of e)(t.f&Ce)===0||(t.f&ir)===0||(t.f^=ir,de(this,Ge,En).call(this,t.deps))};Dl=function(){if(R(this,Ft)===0){for(const e of R(this,Zr))e();R(this,Zr).clear()}R(this,Lt)===0&&de(this,Ge,Tl).call(this)};Tl=function(){var e;if(Ri.size>1){this.previous.clear();var t=Ae,r=!0,i={parent:null,effect:null,effects:[],render_effects:[]};for(const n of Ri){if(n===this){r=!1;continue}const o=[];for(const[l,c]of this.current){if(n.current.has(l))if(r&&c!==n.current.get(l))n.current.set(l,c);else continue;o.push(l)}if(o.length===0)continue;const u=[...n.current.keys()].filter(l=>!this.current.has(l));if(u.length>0){var s=Ye;Ye=[];const l=new Set,c=new Map;for(const a of o)Jl(a,u,l,c);if(Ye.length>0){ee=n,n.apply();for(const a of Ye)de(e=n,Ge,Yn).call(e,a,i);n.deactivate()}Ye=s}}ee=null,Ae=t}this.committed=!0,Ri.delete(this)};let sr=lf;function uf(e){var t=Jr;Jr=!0;try{for(var r;;){if(af(),Ye.length===0&&(ee==null||ee.flush(),Ye.length===0))return Hi=null,r;Yl()}}finally{Jr=t}}function Yl(){var e=er;An=!0;var t=null;try{var r=0;for(Pi(!0);Ye.length>0;){var i=sr.ensure();if(r++>1e3){var s,n;cf()}i.process(Ye),jt.clear()}}finally{An=!1,Pi(e),Hi=null}}function cf(){try{Jc()}catch(e){Nr(e,Hi)}}let mt=null;function Uo(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(Mt|qe))===0&&Ir(i)&&(mt=new Set,Ar(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?hu(i):i.fn=null),(mt==null?void 0:mt.size)>0)){jt.clear();for(const s of mt){if((s.f&(Mt|qe))!==0)continue;const n=[s];let o=s.parent;for(;o!==null;)mt.has(o)&&(mt.delete(o),n.push(o)),o=o.parent;for(let u=n.length-1;u>=0;u--){const l=n[u];(l.f&(Mt|qe))===0&&Ar(l)}}mt.clear()}}mt=null}}function Jl(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&Ce)!==0?Jl(s,t,r,i):(n&(eo|Nt))!==0&&(n&Ie)===0&&Xl(s,t,i)&&(xe(s,Ie),nr(s))}}function Xl(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&Ce)!==0&&Xl(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function nr(e){for(var t=Hi=e;t.parent!==null;){t=t.parent;var r=t.f;if(An&&t===V&&(r&Nt)!==0&&(r&Wl)===0)return;if((r&(lr|Ot))!==0){if((r&Ee)===0)return;t.f^=Ee}}Ye.push(t)}function ff(e){let t=0,r=Gt(0),i;return()=>{ri()&&(M(r),ni(()=>(t===0&&(i=_e(()=>e(()=>Xr(r)))),t+=1,()=>{kr(()=>{t-=1,t===0&&(i==null||i(),i=void 0,Xr(r))})})))}}var hf=Rr|Tr|zi;function df(e,t,r){new pf(e,t,r)}class pf{constructor(t,r,i){q(this,Pe),Ct(this,"parent"),q(this,st,!1),q(this,He),q(this,Ei,J?$:null),q(this,Et),q(this,Cr),q(this,xt),q(this,nt,null),q(this,We,null),q(this,bt,null),q(this,zt,null),q(this,Qt,null),q(this,Yt,0),q(this,$t,0),q(this,pr,!1),q(this,Jt,null),q(this,Cn,ff(()=>(L(this,Jt,Gt(R(this,Yt))),()=>{L(this,Jt,null)}))),L(this,He,t),L(this,Et,r),L(this,Cr,i),this.parent=V.b,L(this,st,!!R(this,Et).pending),L(this,xt,oo(()=>{if(V.b=this,J){const n=R(this,Ei);Gi(),n.nodeType===Pr&&n.data===Bi?de(this,Pe,kl).call(this):de(this,Pe,Pl).call(this)}else{var s=de(this,Pe,Jn).call(this);try{L(this,nt,Xe(()=>i(s)))}catch(n){this.error(n)}R(this,$t)>0?de(this,Pe,Ai).call(this):L(this,st,!1)}return()=>{var n;(n=R(this,Qt))==null||n.remove()}},hf)),J&&L(this,He,$)}is_pending(){return R(this,st)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!R(this,Et).pending}update_pending_count(t){de(this,Pe,xn).call(this,t),L(this,Yt,R(this,Yt)+t),R(this,Jt)&&Or(R(this,Jt),R(this,Yt))}get_effect_pending(){return R(this,Cn).call(this),M(R(this,Jt))}error(t){var r=R(this,Et).onerror;let i=R(this,Et).failed;if(R(this,pr)||!r&&!i)throw t;R(this,nt)&&(ke(R(this,nt)),L(this,nt,null)),R(this,We)&&(ke(R(this,We)),L(this,We,null)),R(this,bt)&&(ke(R(this,bt)),L(this,bt,null)),J&&(ze(R(this,Ei)),nf(),ze(Di()));var s=!1,n=!1;const o=()=>{if(s){sf();return}s=!0,n&&rf(),sr.ensure(),L(this,Yt,0),R(this,bt)!==null&&ur(R(this,bt),()=>{L(this,bt,null)}),L(this,st,this.has_pending_snippet()),L(this,nt,de(this,Pe,Oi).call(this,()=>(L(this,pr,!1),Xe(()=>R(this,Cr).call(this,R(this,He)))))),R(this,$t)>0?de(this,Pe,Ai).call(this):L(this,st,!1)};var u=z;try{Le(null),n=!0,r==null||r(t,o),n=!1}catch(l){Nr(l,R(this,xt)&&R(this,xt).parent)}finally{Le(u)}i&&kr(()=>{L(this,bt,de(this,Pe,Oi).call(this,()=>{sr.ensure(),L(this,pr,!0);try{return Xe(()=>{i(R(this,He),()=>t,()=>o)})}catch(l){return Nr(l,R(this,xt).parent),null}finally{L(this,pr,!1)}}))})}}st=new WeakMap;He=new WeakMap;Ei=new WeakMap;Et=new WeakMap;Cr=new WeakMap;xt=new WeakMap;nt=new WeakMap;We=new WeakMap;bt=new WeakMap;zt=new WeakMap;Qt=new WeakMap;Yt=new WeakMap;$t=new WeakMap;pr=new WeakMap;Jt=new WeakMap;Cn=new WeakMap;Pe=new WeakSet;Pl=function(){try{L(this,nt,Xe(()=>R(this,Cr).call(this,R(this,He))))}catch(e){this.error(e)}L(this,st,!1)};kl=function(){const e=R(this,Et).pending;e&&(L(this,We,Xe(()=>e(R(this,He)))),sr.enqueue(()=>{var t=de(this,Pe,Jn).call(this);L(this,nt,de(this,Pe,Oi).call(this,()=>(sr.ensure(),Xe(()=>R(this,Cr).call(this,t))))),R(this,$t)>0?de(this,Pe,Ai).call(this):(ur(R(this,We),()=>{L(this,We,null)}),L(this,st,!1))}))};Jn=function(){var e=R(this,He);return R(this,st)&&(L(this,Qt,ut()),R(this,He).before(R(this,Qt)),e=R(this,Qt)),e};Oi=function(e){var t=V,r=z,i=te;Ke(R(this,xt)),Le(R(this,xt)),Mr(R(this,xt).ctx);try{return e()}catch(s){return Hl(s),null}finally{Ke(t),Le(r),Mr(i)}};Ai=function(){const e=R(this,Et).pending;R(this,nt)!==null&&(L(this,zt,document.createDocumentFragment()),R(this,zt).append(R(this,Qt)),mu(R(this,nt),R(this,zt))),R(this,We)===null&&L(this,We,Xe(()=>e(R(this,He))))};xn=function(e){var t;if(!this.has_pending_snippet()){this.parent&&de(t=this.parent,Pe,xn).call(t,e);return}L(this,$t,R(this,$t)+e),R(this,$t)===0&&(L(this,st,!1),R(this,We)&&ur(R(this,We),()=>{L(this,We,null)}),R(this,zt)&&(R(this,He).before(R(this,zt)),L(this,zt,null)))};function mf(e,t,r,i){const s=si()?Yi:Ji;if(r.length===0&&e.length===0){i(t.map(s));return}var n=ee,o=V,u=gf();function l(){Promise.all(r.map(c=>vf(c))).then(c=>{u();try{i([...t.map(s),...c])}catch(a){(o.f&Mt)===0&&Nr(a,o)}n==null||n.deactivate(),Ti()}).catch(c=>{Nr(c,o)})}e.length>0?Promise.all(e).then(()=>{u();try{return l()}finally{n==null||n.deactivate(),Ti()}}):l()}function gf(){var e=V,t=z,r=te,i=ee;return function(n=!0){Ke(e),Le(t),Mr(r),n&&(i==null||i.activate())}}function Ti(){Ke(null),Le(null),Mr(null)}function Yi(e){var t=Ce|Ie,r=z!==null&&(z.f&Ce)!==0?z:null;return V!==null&&(V.f|=Tr),{ctx:te,deps:null,effects:null,equals:Vl,f:t,fn:e,reactions:null,rv:0,v:Ne,wv:0,parent:r!=null?r:V,ac:null}}function vf(e,t){let r=V;r===null&&jc();var i=r.b,s=void 0,n=Gt(Ne),o=!z,u=new Map;return Rf(()=>{var l,c=Bl();s=c.promise;try{Promise.resolve(e()).then(c.resolve,c.reject).then(()=>{a===ee&&a.committed&&a.deactivate(),Ti()})}catch(h){c.reject(h),Ti()}var a=ee;if(o){var d=!i.is_pending();i.update_pending_count(1),a.increment(d),(l=u.get(a))==null||l.reject(wr),u.delete(a),u.set(a,c)}const f=(h,m=void 0)=>{if(a.activate(),m)m!==wr&&(n.f|=Vt,Or(n,m));else{(n.f&Vt)!==0&&(n.f^=Vt),Or(n,h);for(const[p,g]of u){if(u.delete(p),p===a)break;g.reject(wr)}}o&&(i.update_pending_count(-1),a.decrement(d))};c.promise.then(f,h=>f(null,h||"unknown"))}),no(()=>{for(const l of u.values())l.reject(wr)}),new Promise(l=>{function c(a){function d(){a===s?l(n):c(s)}a.then(d,d)}c(s)})}function Ji(e){const t=Yi(e);return t.equals=jl,t}function Ql(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ke(t[r])}}function yf(e){for(var t=e.parent;t!==null;){if((t.f&Ce)===0)return(t.f&Mt)===0?t:null;t=t.parent}return null}function so(e){var t,r=V;Ke(yf(e));try{e.f&=~ir,Ql(e),t=wu(e)}finally{Ke(r)}return t}function Kl(e){var t=so(e);if(e.equals(t)||(ee!=null&&ee.is_fork||(e.v=t),e.wv=vu()),!cr)if(Ae!==null)(ri()||ee!=null&&ee.is_fork)&&Ae.set(e,t);else{var r=(e.f<)===0?ct:Ee;xe(e,r)}}let Tn=new Set;const jt=new Map;let Zl=!1;function Gt(e,t){var r={f:0,v:e,reactions:null,equals:Vl,rv:0,wv:0};return r}function At(e,t){const r=Gt(e);return Of(r),r}function Oe(e,t=!1,r=!0){var n;var i;const s=Gt(e);return t||(s.equals=jl),Dr&&r&&te!==null&&te.l!==null&&((n=(i=te.l).s)!=null?n:i.s=[]).push(s),s}function K(e,t,r=!1){z!==null&&(!vt||(z.f&Fo)!==0)&&si()&&(z.f&(Ce|Nt|eo|Fo))!==0&&!(Qe!=null&&Qe.includes(e))&&tf();let i=r?br(t):t;return Or(e,i)}function Or(e,t){if(!e.equals(t)){var r=e.v;cr?jt.set(e,t):jt.set(e,r),e.v=t;var i=sr.ensure();i.capture(e,r),(e.f&Ce)!==0&&((e.f&Ie)!==0&&so(e),xe(e,(e.f<)!==0?Ee:ct)),e.wv=vu(),eu(e,Ie),si()&&V!==null&&(V.f&Ee)!==0&&(V.f&(Ot|lr))===0&&(je===null?Af([e]):je.push(e)),!i.is_fork&&Tn.size>0&&!Zl&&wf()}return t}function wf(){Zl=!1;var e=er;Pi(!0);const t=Array.from(Tn);try{for(const r of t)(r.f&Ee)!==0&&xe(r,ct),Ir(r)&&Ar(r)}finally{Pi(e)}Tn.clear()}function Bo(e,t=1){var r=M(e),i=t===1?r++:r--;return K(e,r),i}function Xr(e){K(e,e.v+1)}function eu(e,t){var r=e.reactions;if(r!==null)for(var i=si(),s=r.length,n=0;n<s;n++){var o=r[n],u=o.f;if(!(!i&&o===V)){var l=(u&Ie)===0;if(l&&xe(o,t),(u&Ce)!==0){var c=o;Ae==null||Ae.delete(c),(u&ir)===0&&(u<&&(o.f|=ir),eu(c,ct))}else l&&((u&Nt)!==0&&mt!==null&&mt.add(o),nr(o))}}}function br(e){if(typeof e!="object"||e===null||Zt in e)return e;const t=Kn(e);if(t!==Wc&&t!==qc)return e;var r=new Map,i=Qn(e),s=At(0),n=tr,o=u=>{if(tr===n)return u();var l=z,c=tr;Le(null),$o(n);var a=u();return Le(l),$o(c),a};return i&&r.set("length",At(e.length)),new Proxy(e,{defineProperty(u,l,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&Zc();var a=r.get(l);return a===void 0?a=o(()=>{var d=At(c.value);return r.set(l,d),d}):K(a,c.value,!0),!0},deleteProperty(u,l){var c=r.get(l);if(c===void 0){if(l in u){const a=o(()=>At(Ne));r.set(l,a),Xr(s)}}else K(c,Ne),Xr(s);return!0},get(u,l,c){var a;if(l===Zt)return e;var d=r.get(l),f=l in u;if(d===void 0&&(!f||(a=Kt(u,l))!=null&&a.writable)&&(d=o(()=>{var m=br(f?u[l]:Ne),p=At(m);return p}),r.set(l,d)),d!==void 0){var h=M(d);return h===Ne?void 0:h}return Reflect.get(u,l,c)},getOwnPropertyDescriptor(u,l){var c=Reflect.getOwnPropertyDescriptor(u,l);if(c&&"value"in c){var a=r.get(l);a&&(c.value=M(a))}else if(c===void 0){var d=r.get(l),f=d==null?void 0:d.v;if(d!==void 0&&f!==Ne)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return c},has(u,l){var c;if(l===Zt)return!0;var a=r.get(l),d=a!==void 0&&a.v!==Ne||Reflect.has(u,l);if(a!==void 0||V!==null&&(!d||(c=Kt(u,l))!=null&&c.writable)){a===void 0&&(a=o(()=>{var h=d?br(u[l]):Ne,m=At(h);return m}),r.set(l,a));var f=M(a);if(f===Ne)return!1}return d},set(u,l,c,a){var d,f=r.get(l),h=l in u;if(i&&l==="length")for(var m=c;m<f.v;m+=1){var p=r.get(m+"");p!==void 0?K(p,Ne):m in u&&(p=o(()=>At(Ne)),r.set(m+"",p))}if(f===void 0)(!h||(d=Kt(u,l))!=null&&d.writable)&&(f=o(()=>At(void 0)),K(f,br(c)),r.set(l,f));else{h=f.v!==Ne;var g=o(()=>br(c));K(f,g)}var y=Reflect.getOwnPropertyDescriptor(u,l);if(y!=null&&y.set&&y.set.call(a,c),!h){if(i&&typeof l=="string"){var b=r.get("length"),_=Number(l);Number.isInteger(_)&&_>=b.v&&K(b,_+1)}Xr(s)}return!0},ownKeys(u){M(s);var l=Reflect.ownKeys(u).filter(d=>{var f=r.get(d);return f===void 0||f.v!==Ne});for(var[c,a]of r)a.v!==Ne&&!(c in u)&&l.push(c);return l},setPrototypeOf(){ef()}})}var Wo,tu,ru,iu;function Pn(){if(Wo===void 0){Wo=window,tu=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;ru=Kt(t,"firstChild").get,iu=Kt(t,"nextSibling").get,Lo(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Lo(r)&&(r.__t=void 0)}}function ut(e=""){return document.createTextNode(e)}function or(e){return ru.call(e)}function yt(e){return iu.call(e)}function it(e,t){if(!J)return or(e);var r=or($);if(r===null)r=$.appendChild(ut());else if(t&&r.nodeType!==to){var i=ut();return r==null||r.before(i),ze(i),i}return ze(r),r}function bf(e,t=!1){if(!J){var r=or(e);return r instanceof Comment&&r.data===""?yt(r):r}if(t&&($==null?void 0:$.nodeType)!==to){var i=ut();return $==null||$.before(i),ze(i),i}return $}function Ve(e,t=1,r=!1){let i=J?$:e;for(var s;t--;)s=i,i=yt(i);if(!J)return i;if(r&&(i==null?void 0:i.nodeType)!==to){var n=ut();return i===null?s==null||s.after(n):i.before(n),ze(n),n}return ze(i),i}function su(e){e.textContent=""}function nu(){return!1}let qo=!1;function ou(){qo||(qo=!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 Xi(e){var t=z,r=V;Le(null),Ke(null);try{return e()}finally{Le(t),Ke(r)}}function _f(e,t,r,i=r){e.addEventListener(t,()=>Xi(r));const s=e.__on_r;s?e.__on_r=()=>{s(),i(!0)}:e.__on_r=()=>i(!0),ou()}function au(e){V===null&&(z===null&&Yc(),Hc()),cr&&Gc()}function Sf(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function wt(e,t,r){var u;var i=V;i!==null&&(i.f&qe)!==0&&(e|=qe);var s={ctx:te,deps:null,nodes:null,f:e|Ie|lt,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{Ar(s),s.f|=$i}catch(l){throw ke(s),l}else t!==null&&nr(s);var n=s;if(r&&n.deps===null&&n.teardown===null&&n.nodes===null&&n.first===n.last&&(n.f&Tr)===0&&(n=n.first,(e&Nt)!==0&&(e&Rr)!==0&&n!==null&&(n.f|=Rr)),n!==null&&(n.parent=i,i!==null&&Sf(n,i),z!==null&&(z.f&Ce)!==0&&(e&lr)===0)){var o=z;((u=o.effects)!=null?u:o.effects=[]).push(n)}return s}function ri(){return z!==null&&!vt}function no(e){const t=wt(qi,null,!1);return xe(t,Ee),t.teardown=e,t}function kn(e){var s;au();var t=V.f,r=!z&&(t&Ot)!==0&&(t&$i)===0;if(r){var i=te;((s=i.e)!=null?s:i.e=[]).push(e)}else return lu(e)}function lu(e){return wt(Zn|ql,e,!1)}function Ef(e){return au(),wt(qi|ql,e,!0)}function Cf(e){sr.ensure();const t=wt(lr|Tr,e,!0);return(r={})=>new Promise(i=>{r.outro?ur(t,()=>{ke(t),i(void 0)}):(ke(t),i(void 0))})}function xf(e){return wt(Zn,e,!1)}function Ut(e,t){var r=te,i={effect:null,ran:!1,deps:e};r.l.$.push(i),i.effect=ni(()=>{e(),!i.ran&&(i.ran=!0,_e(t))})}function uu(){var e=te;ni(()=>{for(var t of e.l.$){t.deps();var r=t.effect;(r.f&Ee)!==0&&xe(r,ct),Ir(r)&&Ar(r),t.ran=!1}})}function Rf(e){return wt(eo|Tr,e,!0)}function ni(e,t=0){return wt(qi|t,e,!0)}function _r(e,t=[],r=[],i=[]){mf(i,t,r,s=>{wt(qi,()=>e(...s.map(M)),!0)})}function oo(e,t=0){var r=wt(Nt|t,e,!0);return r}function Xe(e){return wt(Ot|Tr,e,!0)}function cu(e){var t=e.teardown;if(t!==null){const r=cr,i=z;zo(!0),Le(null);try{t.call(null)}finally{zo(r),Le(i)}}}function fu(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Xi(()=>{s.abort(wr)});var i=r.next;(r.f&lr)!==0?r.parent=null:ke(r,t),r=i}}function Mf(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ot)===0&&ke(t),t=r}}function ke(e,t=!0){var r=!1;(t||(e.f&Wl)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Nf(e.nodes.start,e.nodes.end),r=!0),fu(e,t&&!r),ki(e,0),xe(e,Mt);var i=e.nodes&&e.nodes.t;if(i!==null)for(const n of i)n.stop();cu(e);var s=e.parent;s!==null&&s.first!==null&&hu(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Nf(e,t){for(;e!==null;){var r=e===t?null:yt(e);e.remove(),e=r}}function hu(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 ur(e,t,r=!0){var i=[];du(e,i,!0);var s=()=>{r&&ke(e),t&&t()},n=i.length;if(n>0){var o=()=>--n||s();for(var u of i)u.out(o)}else s()}function du(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&Rr)!==0||(s.f&Ot)!==0&&(e.f&Nt)!==0;du(s,t,o?r:!1),s=n}}}function ao(e){pu(e,!0)}function pu(e,t){if((e.f&qe)!==0){e.f^=qe,(e.f&Ee)===0&&(xe(e,Ie),nr(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Rr)!==0||(r.f&Ot)!==0;pu(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 mu(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:yt(r);t.append(r),r=s}}let er=!1;function Pi(e){er=e}let cr=!1;function zo(e){cr=e}let z=null,vt=!1;function Le(e){z=e}let V=null;function Ke(e){V=e}let Qe=null;function Of(e){z!==null&&(Qe===null?Qe=[e]:Qe.push(e))}let Te=null,Fe=0,je=null;function Af(e){je=e}let gu=1,ii=0,tr=ii;function $o(e){tr=e}function vu(){return++gu}function Ir(e){var t=e.f;if((t&Ie)!==0)return!0;if(t&Ce&&(e.f&=~ir),(t&ct)!==0){var r=e.deps;if(r!==null)for(var i=r.length,s=0;s<i;s++){var n=r[s];if(Ir(n)&&Kl(n),n.wv>e.wv)return!0}(t<)!==0&&Ae===null&&xe(e,Ee)}return!1}function yu(e,t,r=!0){var i=e.reactions;if(i!==null&&!(Qe!=null&&Qe.includes(e)))for(var s=0;s<i.length;s++){var n=i[s];(n.f&Ce)!==0?yu(n,t,!1):t===n&&(r?xe(n,Ie):(n.f&Ee)!==0&&xe(n,ct),nr(n))}}function wu(e){var p;var t,r=Te,i=Fe,s=je,n=z,o=Qe,u=te,l=vt,c=tr,a=e.f;Te=null,Fe=0,je=null,z=(a&(Ot|lr))===0?e:null,Qe=null,Mr(e.ctx),vt=!1,tr=++ii,e.ac!==null&&(Xi(()=>{e.ac.abort(wr)}),e.ac=null);try{e.f|=On;var d=e.fn,f=d(),h=e.deps;if(Te!==null){var m;if(ki(e,Fe),h!==null&&Fe>0)for(h.length=Fe+Te.length,m=0;m<Te.length;m++)h[Fe+m]=Te[m];else e.deps=h=Te;if(ri()&&(e.f<)!==0)for(m=Fe;m<h.length;m++)((p=(t=h[m]).reactions)!=null?p:t.reactions=[]).push(e)}else h!==null&&Fe<h.length&&(ki(e,Fe),h.length=Fe);if(si()&&je!==null&&!vt&&h!==null&&(e.f&(Ce|ct|Ie))===0)for(m=0;m<je.length;m++)yu(je[m],e);return n!==null&&n!==e&&(ii++,je!==null&&(s===null?s=je:s.push(...je))),(e.f&Vt)!==0&&(e.f^=Vt),f}catch(g){return Hl(g)}finally{e.f^=On,Te=r,Fe=i,je=s,z=n,Qe=o,Mr(u),vt=l,tr=c}}function Df(e,t){let r=t.reactions;if(r!==null){var i=Bc.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&Ce)!==0&&(Te===null||!Te.includes(t))&&(xe(t,ct),(t.f<)!==0&&(t.f^=lt,t.f&=~ir),Ql(t),ki(t,0))}function ki(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)Df(e,r[i])}function Ar(e){var t=e.f;if((t&Mt)===0){xe(e,Ee);var r=V,i=er;V=e,er=!0;try{(t&(Nt|$c))!==0?Mf(e):fu(e),cu(e);var s=wu(e);e.teardown=typeof s=="function"?s:null,e.wv=gu;var n;Mn&&Nc&&(e.f&Ie)!==0&&e.deps}finally{er=i,V=r}}}function M(e){var l;var t=e.f,r=(t&Ce)!==0;if(z!==null&&!vt){var i=V!==null&&(V.f&Mt)!==0;if(!i&&!(Qe!=null&&Qe.includes(e))){var s=z.deps;if((z.f&On)!==0)e.rv<ii&&(e.rv=ii,Te===null&&s!==null&&s[Fe]===e?Fe++:Te===null?Te=[e]:Te.includes(e)||Te.push(e));else{((l=z.deps)!=null?l:z.deps=[]).push(e);var n=e.reactions;n===null?e.reactions=[z]:n.includes(z)||n.push(z)}}}if(cr){if(jt.has(e))return jt.get(e);if(r){var o=e,u=o.v;return((o.f&Ee)===0&&o.reactions!==null||_u(o))&&(u=so(o)),jt.set(o,u),u}}else r&&(!(Ae!=null&&Ae.has(e))||ee!=null&&ee.is_fork&&!ri())&&(o=e,Ir(o)&&Kl(o),er&&ri()&&(o.f<)===0&&bu(o));if(Ae!=null&&Ae.has(e))return Ae.get(e);if((e.f&Vt)!==0)throw e.v;return e.v}function bu(e){var t;if(e.deps!==null){e.f^=lt;for(const r of e.deps)((t=r.reactions)!=null?t:r.reactions=[]).push(e),(r.f&Ce)!==0&&(r.f<)===0&&bu(r)}}function _u(e){if(e.v===Ne)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(jt.has(t)||(t.f&Ce)!==0&&_u(t))return!0;return!1}function _e(e){var t=vt;try{return vt=!0,e()}finally{vt=t}}const Tf=-7169;function xe(e,t){e.f=e.f&Tf|t}function Ue(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Zt in e)In(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&Zt in r&&In(r)}}}function In(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{In(e[i],t)}catch(s){}const r=Kn(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const i=Ul(r);for(let s in i){const n=i[s].get;if(n)try{n.call(e)}catch(o){}}}}}const Pf=new Set,Vo=new Set;function kf(e,t,r,i={}){function s(n){if(i.capture||Vr.call(t,n),!n.cancelBubble)return Xi(()=>r==null?void 0:r.call(this,n))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?kr(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function Wr(e,t,r,i,s){var n={capture:i,passive:s},o=kf(e,t,r,n);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&no(()=>{t.removeEventListener(e,o,n)})}let jo=null;function Vr(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;jo=e;var u=0,l=jo===e&&e.__root;if(l){var c=n.indexOf(l);if(c!==-1&&(r===document||r===window)){e.__root=r;return}var a=n.indexOf(r);if(a===-1)return;c<=a&&(u=c)}if(o=n[u]||e.target,o!==r){Fl(e,"currentTarget",{configurable:!0,get(){return o||i}});var d=z,f=V;Le(null),Ke(null);try{for(var h,m=[];o!==null;){var p=o.assignedSlot||o.parentNode||o.host||null;try{var g=o["__"+s];g!=null&&(!o.disabled||e.target===o)&&g.call(o,e)}catch(y){h?m.push(y):h=y}if(e.cancelBubble||p===r||p===null)break;o=p}if(h){for(let y of m)queueMicrotask(()=>{throw y});throw h}}finally{e.__root=r,delete e.currentTarget,Le(d),Ke(f)}}}function Su(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ar(e,t){var r=V;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Lr(e,t){var r=(t&Fc)!==0,i,s=!e.startsWith("<!>");return()=>{if(J)return ar($,null),$;i===void 0&&(i=Su(s?e:"<!>"+e),i=or(i));var n=r||tu?document.importNode(i,!0):i.cloneNode(!0);return ar(n,n),n}}function If(e,t,r="svg"){var i=!e.startsWith("<!>"),s=`<${r}>${i?e:"<!>"+e}</${r}>`,n;return()=>{if(J)return ar($,null),$;if(!n){var o=Su(s),u=or(o);n=or(u)}var l=n.cloneNode(!0);return ar(l,l),l}}function Eu(e,t){return If(e,t,"svg")}function Lf(){if(J)return ar($,null),$;var e=document.createDocumentFragment(),t=document.createComment(""),r=ut();return e.append(t,r),ar(t,r),e}function St(e,t){if(J){var r=V;((r.f&$i)===0||r.nodes.end===null)&&(r.nodes.end=$),Gi();return}e!==null&&e.before(t)}const Ff=["touchstart","touchmove"];function Uf(e){return Ff.includes(e)}function Mi(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 Cu(e,t){return xu(e,t)}function Bf(e,t){var o;Pn(),t.intro=(o=t.intro)!=null?o:!1;const r=t.target,i=J,s=$;try{for(var n=or(r);n&&(n.nodeType!==Pr||n.data!==Ll);)n=yt(n);if(!n)throw xr;Rt(!0),ze(n);const u=xu(e,ge(H({},t),{anchor:n}));return Rt(!1),u}catch(u){if(u instanceof Error&&u.message.split(`
|
|
15
|
-
`).some(
|
|
16
|
-
\r\f\xA0\v\uFEFF`];function Yf(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||Go.includes(i[o-1]))&&(u===i.length||Go.includes(i[u]))?i=(o===0?"":i.substring(0,o))+i.substring(u+1):o=u}}return i===""?null:i}function Jf(e,t){return e==null?null:String(e)}function Bn(e,t,r,i,s,n){var o=e.__className;if(J||o!==r||o===void 0){var u=Yf(r,i,n);(!J||u!==e.getAttribute("class"))&&(u==null?e.removeAttribute("class"):e.className=u),e.__className=r}else if(n&&s!==n)for(var l in n){var c=!!n[l];(s==null||c!==!!s[l])&&e.classList.toggle(l,c)}return n}function Sr(e,t,r,i){var s=e.__style;if(J||s!==t){var n=Jf(t);(!J||n!==e.getAttribute("style"))&&(n==null?e.removeAttribute("style"):e.style.cssText=n),e.__style=t}return i}const Xf=Symbol("is custom element"),Qf=Symbol("is html");function Kf(e){if(J){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var i=e.value;rr(e,"value",null),e.value=i}if(e.hasAttribute("checked")){var s=e.checked;rr(e,"checked",null),e.checked=s}}};e.__on_r=r,kr(r),ou()}}function rr(e,t,r,i){var s=Zf(e);J&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[Vc]=r),r==null?e.removeAttribute(t):typeof r!="string"&&eh(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Zf(e){var t;return(t=e.__attributes)!=null?t:e.__attributes={[Xf]:e.nodeName.includes("-"),[Qf]:e.namespaceURI===Uc}}var Ho=new Map;function eh(e){var t=e.getAttribute("is")||e.nodeName,r=Ho.get(t);if(r)return r;Ho.set(t,r=[]);for(var i,s=e,n=Element.prototype;n!==s;){i=Ul(s);for(var o in i)i[o].set&&r.push(o);s=Kn(s)}return r}function th(e,t,r=t){_f(e,"change",i=>{var s=i?e.defaultChecked:e.checked;r(s)}),(J&&e.defaultChecked!==e.checked||_e(t)==null)&&r(e.checked),ni(()=>{var i=t();e.checked=!!i})}function he(e,t,r){var i=Kt(e,t);i&&i.set&&(e[t]=r,no(()=>{e[t]=null}))}function Yo(e,t){return e===t||(e==null?void 0:e[Zt])===t}function Ni(e={},t,r,i){return xf(()=>{var s,n;return ni(()=>{s=n,n=[],_e(()=>{e!==r(...n)&&(t(e,...n),s&&Yo(r(...s),e)&&t(null,...s))})}),()=>{kr(()=>{n&&Yo(r(...n),e)&&t(null,...n)})}}),e}function Nu(e=!1){const t=te,r=t.l.u;if(!r)return;let i=()=>Ue(t.s);if(e){let s=0,n={};const o=Yi(()=>{let u=!1;const l=t.s;for(const c in l)l[c]!==n[c]&&(n[c]=l[c],u=!0);return u&&s++,s});i=()=>M(o)}r.b.length&&Ef(()=>{Jo(t,i),Nn(r.b)}),kn(()=>{const s=_e(()=>r.m.map(zc));return()=>{for(const n of s)typeof n=="function"&&n()}}),r.a.length&&kn(()=>{Jo(t,i),Nn(r.a)})}function Jo(e,t){if(e.l.s)for(const r of e.l.s)M(r);t()}let hi=!1;function rh(e){var t=hi;try{return hi=!1,[e(),hi]}finally{hi=t}}const ih={get(e,t){if(!e.exclude.includes(t))return M(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,r){if(!(t in e.special)){var i=V;try{Ke(e.parent_effect),e.special[t]=ce({get[t](){return e.props[t]}},t,Il)}finally{Ke(i)}}return e.special[t](r),Bo(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),Bo(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 sh(e,t){return new Proxy({props:e,exclude:t,special:{},version:Gt(0),parent_effect:V},ih)}function ce(e,t,r,i){var S;var s,n=!Dr||(r&kc)!==0,o=(r&Ic)!==0,u=(r&Lc)!==0,l=i,c=!0,a=()=>(c&&(c=!1,l=u?_e(i):i),l),d;if(o){var f=Zt in e||zl in e;d=(S=(s=Kt(e,t))==null?void 0:s.set)!=null?S:f&&t in e?v=>e[t]=v:void 0}var h,m=!1;o?[h,m]=rh(()=>e[t]):h=e[t],h===void 0&&i!==void 0&&(h=a(),d&&(n&&Kc(),d(h)));var p;if(n?p=()=>{var v=e[t];return v===void 0?a():(c=!0,v)}:p=()=>{var v=e[t];return v!==void 0&&(l=void 0),v===void 0?l:v},n&&(r&Il)===0)return p;if(d){var g=e.$$legacy;return(function(v,w){return arguments.length>0?((!n||!w||g||m)&&d(w?p():v),v):p()})}var y=!1,b=((r&Pc)!==0?Yi:Ji)(()=>(y=!1,p()));o&&M(b);var _=V;return(function(v,w){if(arguments.length>0){const E=w?M(b):n&&o?br(v):v;return K(b,E),y=!0,l!==void 0&&(l=E),v}return cr&&y||(_.f&Mt)!==0?b.v:M(b)})}function nh(e){return class extends oh{constructor(t){super(H({component:e},t))}}}class oh{constructor(t){var o;q(this,kt),q(this,tt);var r,i=new Map,s=(u,l)=>{var c=Oe(l,!1,!1);return i.set(u,c),c};const n=new Proxy(ge(H({},t.props||{}),{$$events:{}}),{get(u,l){var c;return M((c=i.get(l))!=null?c:s(l,Reflect.get(u,l)))},has(u,l){var c;return l===zl?!0:(M((c=i.get(l))!=null?c:s(l,Reflect.get(u,l))),Reflect.has(u,l))},set(u,l,c){var a;return K((a=i.get(l))!=null?a:s(l,c),c),Reflect.set(u,l,c)}});L(this,tt,(t.hydrate?Bf:Cu)(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(),L(this,kt,n.$$events);for(const u of Object.keys(R(this,tt)))u==="$set"||u==="$destroy"||u==="$on"||Fl(this,u,{get(){return R(this,tt)[u]},set(l){R(this,tt)[u]=l},enumerable:!0});R(this,tt).$set=u=>{Object.assign(n,u)},R(this,tt).$destroy=()=>{Wf(R(this,tt))}}$set(t){R(this,tt).$set(t)}$on(t,r){R(this,kt)[t]=R(this,kt)[t]||[];const i=(...s)=>r.call(this,...s);return R(this,kt)[t].push(i),()=>{R(this,kt)[t]=R(this,kt)[t].filter(s=>s!==i)}}$destroy(){R(this,tt).$destroy()}}kt=new WeakMap;tt=new WeakMap;var ah=Object.defineProperty,lh=(e,t,r)=>t in e?ah(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,I=(e,t,r)=>lh(e,typeof t!="symbol"?t+"":t,r),Xo,uh=Object.defineProperty,ch=(e,t,r)=>t in e?uh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qo=(e,t,r)=>ch(e,typeof t!="symbol"?t+"":t,r),pe=(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))(pe||{});function fh(e){return e.nodeType===e.ELEMENT_NODE}class Ou{constructor(){Qo(this,"idNodeMap",new Map),Qo(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 Au(){return new Ou}function hh(e){return e.toLowerCase()}function dh(e,t){return!e||!t||e.type!==t.type?!1:e.type===pe.Document?e.compatMode===t.compatMode:e.type===pe.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===pe.Comment||e.type===pe.Text||e.type===pe.CDATA?e.textContent===t.textContent:e.type===pe.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}const ph=/(max|min)-device-(width|height)/,Ko=new RegExp(ph.source,"g"),mh={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(Ko)&&(e.params=e.params.replace(Ko,"$1-$2"))}}}},gh={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
|
|
18
|
-
`+g+
|
|
14
|
+
"use strict";var Yc=Object.defineProperty,Jc=Object.defineProperties;var Xc=Object.getOwnPropertyDescriptors;var yi=Object.getOwnPropertySymbols;var Zo=Object.prototype.hasOwnProperty,ea=Object.prototype.propertyIsEnumerable;var Qo=(e,t,r)=>t in e?Yc(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)&&Qo(e,r,t[r]);if(yi)for(var r of yi(t))ea.call(t,r)&&Qo(e,r,t[r]);return e},we=(e,t)=>Jc(e,Xc(t));var jr=(e,t)=>{var r={};for(var i in e)Zo.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&yi)for(var i of yi(e))t.indexOf(i)<0&&ea.call(e,i)&&(r[i]=e[i]);return r};var Kc=Object.defineProperty,ru=e=>{throw TypeError(e)},Qc=(e,t,r)=>t in e?Kc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rt=(e,t,r)=>Qc(e,typeof t!="symbol"?t+"":t,r),uo=(e,t,r)=>t.has(e)||ru("Cannot "+r),R=(e,t,r)=>(uo(e,t,"read from private field"),r?r.call(e):t.get(e)),Y=(e,t,r)=>t.has(e)?ru("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),B=(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,ni,Hr,Ut,Bt,Yr,oi,ei,Ye,co,ai,Ln,iu,su,ot,Je,Ti,xt,Or,Nt,at,ze,St,jt,er,Kt,Vt,yr,Qt,Fn,Ie,nu,ou,fo,Ui,Bi,Un,gt,Et,Ve,wr,ki,Pi,Bn,Lt,it;Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Zc="5";var eu,tu;typeof window!="undefined"&&((tu=(ta=(eu=window.__svelte)!=null?eu:window.__svelte={}).v)!=null?tu:ta.v=new Set).add(Zc);let Lr=!1,ef=!1;function tf(){Lr=!0}tf();const rf=1,sf=2,nf=16,of=1,af=2,au=4,lf=8,uf=16,cf=2,lu="[",Ji="[!",ho="]",Ar={},Oe=Symbol(),ff="http://www.w3.org/1999/xhtml",$n=!1;var po=Array.isArray,hf=Array.prototype.indexOf,Xi=Array.from,uu=Object.defineProperty,tr=Object.getOwnPropertyDescriptor,cu=Object.getOwnPropertyDescriptors,df=Object.prototype,pf=Array.prototype,mo=Object.getPrototypeOf,ra=Object.isExtensible;function mf(e){return e()}function Wn(e){for(var t=0;t<e.length;t++)e[t]()}function fu(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}const Re=2,go=4,Ki=8,gf=1<<24,At=16,Dt=32,fr=64,Qi=128,ct=512,xe=1024,Fe=2048,ht=4096,qe=8192,Ot=16384,Zi=32768,Dr=65536,ia=1<<17,hu=1<<18,Fr=1<<19,du=1<<20,Wt=1<<25,or=32768,zn=1<<21,vo=1<<22,Gt=1<<23,rr=Symbol("$state"),pu=Symbol("legacy props"),vf=Symbol(""),Er=new class extends Error{constructor(){super(...arguments),Rt(this,"name","StaleReactionError"),Rt(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 yf(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function wf(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function bf(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function _f(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Sf(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ef(){throw new Error("https://svelte.dev/e/hydration_failed")}function Cf(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function xf(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Rf(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Nf(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Mf(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Of(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ts(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Af(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let Z=!1;function Mt(e){Z=e}let X;function je(e){if(e===null)throw ts(),Ar;return X=e}function rs(){return je(bt(X))}function st(e){if(Z){if(bt(X)!==null)throw ts(),Ar;X=e}}function Df(e=1){if(Z){for(var t=e,r=X;t--;)r=bt(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===lu||i===Ji)&&(t+=1)}var s=bt(r);e&&r.remove(),r=s}}function mu(e){if(!e||e.nodeType!==Ur)throw ts(),Ar;return e.data}function gu(e){return e===this.v}function Tf(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function vu(e){return!Tf(e,this.v)}let ne=null;function Tr(e){ne=e}function wo(e,t=!1,r){ne={p:ne,i:!1,c:null,e:null,s:e,x:null,l:Lr&&!t?{s:null,u:null,$:[]}:null}}function bo(e){var t=ne,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,ne=t.p,e!=null?e:{}}function ci(){return!Lr||ne!==null&&ne.l===null}let Zt=[];function yu(){var e=Zt;Zt=[],Wn(e)}function Br(e){if(Zt.length===0&&!ti){var t=Zt;queueMicrotask(()=>{t===Zt&&yu()})}Zt.push(e)}function kf(){for(;Zt.length>0;)yu()}function wu(e){var t=K;if(t===null)return J.f|=Gt,e;if((t.f&Zi)===0){if((t.f&Qi)===0)throw e;t.b.error(e)}else kr(e,t)}function kr(e,t){for(;t!==null;){if((t.f&Qi)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Ii=new Set;let se=null,De=null,Xe=[],is=null,qn=!1,ti=!1;const Pf=class jn{constructor(){Y(this,Ye),Rt(this,"committed",!1),Rt(this,"current",new Map),Rt(this,"previous",new Map),Y(this,ni,new Set),Y(this,Hr,new Set),Y(this,Ut,0),Y(this,Bt,0),Y(this,Yr,null),Y(this,oi,new Set),Y(this,ei,new Set),Rt(this,"skipped_effects",new Set),Rt(this,"is_fork",!1)}is_deferred(){return this.is_fork||R(this,Bt)>0}process(t){var r;Xe=[],this.apply();var i={parent:null,effect:null,effects:[],render_effects:[]};for(const s of t)ye(this,Ye,co).call(this,s,i);this.is_fork||ye(this,Ye,iu).call(this),this.is_deferred()?(ye(this,Ye,ai).call(this,i.effects),ye(this,Ye,ai).call(this,i.render_effects)):(se=null,sa(i.render_effects),sa(i.effects),(r=R(this,Yr))==null||r.resolve()),De=null}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&Gt)===0&&(this.current.set(t,t.v),De==null||De.set(t,t.v))}activate(){se=this,this.apply()}deactivate(){se===this&&(se=null,De=null)}flush(){if(this.activate(),Xe.length>0){if(bu(),se!==null&&se!==this)return}else R(this,Ut)===0&&this.process([]);this.deactivate()}discard(){for(const t of R(this,Hr))t(this);R(this,Hr).clear()}increment(t){B(this,Ut,R(this,Ut)+1),t&&B(this,Bt,R(this,Bt)+1)}decrement(t){B(this,Ut,R(this,Ut)-1),t&&B(this,Bt,R(this,Bt)-1),this.revive()}revive(){for(const t of R(this,oi))R(this,ei).delete(t),Ne(t,Fe),lr(t);for(const t of R(this,ei))Ne(t,ht),lr(t);this.flush()}oncommit(t){R(this,ni).add(t)}ondiscard(t){R(this,Hr).add(t)}settled(){var t;return((t=R(this,Yr))!=null?t:B(this,Yr,fu())).promise}static ensure(){if(se===null){const t=se=new jn;Ii.add(se),ti||jn.enqueue(()=>{se===t&&t.flush()})}return se}static enqueue(t){Br(t)}apply(){}};ni=new WeakMap;Hr=new WeakMap;Ut=new WeakMap;Bt=new WeakMap;Yr=new WeakMap;oi=new WeakMap;ei=new WeakMap;Ye=new WeakSet;co=function(e,t){var r;e.f^=xe;for(var i=e.first;i!==null;){var s=i.f,n=(s&(Dt|fr))!==0,o=n&&(s&xe)!==0,u=o||(s&qe)!==0||this.skipped_effects.has(i);if((i.f&Qi)!==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&go)!==0?t.effects.push(i):$r(i)&&((i.f&At)!==0&&R(this,oi).add(i),Ir(i));var a=i.first;if(a!==null){i=a;continue}}var c=i.parent;for(i=i.next;i===null&&c!==null;)c===t.effect&&(ye(this,Ye,ai).call(this,t.effects),ye(this,Ye,ai).call(this,t.render_effects),t=t.parent),i=c.next,c=c.parent}};ai=function(e){for(const t of e)(t.f&Fe)!==0?R(this,oi).add(t):(t.f&ht)!==0&&R(this,ei).add(t),ye(this,Ye,Ln).call(this,t.deps),Ne(t,xe)};Ln=function(e){if(e!==null)for(const t of e)(t.f&Re)===0||(t.f&or)===0||(t.f^=or,ye(this,Ye,Ln).call(this,t.deps))};iu=function(){if(R(this,Bt)===0){for(const e of R(this,ni))e();R(this,ni).clear()}R(this,Ut)===0&&ye(this,Ye,su).call(this)};su=function(){var e;if(Ii.size>1){this.previous.clear();var t=De,r=!0,i={parent:null,effect:null,effects:[],render_effects:[]};for(const n of Ii){if(n===this){r=!1;continue}const o=[];for(const[a,c]of this.current){if(n.current.has(a))if(r&&c!==n.current.get(a))n.current.set(a,c);else continue;o.push(a)}if(o.length===0)continue;const u=[...n.current.keys()].filter(a=>!this.current.has(a));if(u.length>0){var s=Xe;Xe=[];const a=new Set,c=new Map;for(const l of o)_u(l,u,a,c);if(Xe.length>0){se=n,n.apply();for(const l of Xe)ye(e=n,Ye,co).call(e,l,i);n.deactivate()}Xe=s}}se=null,De=t}this.committed=!0,Ii.delete(this)};let ar=Pf;function If(e){var t=ti;ti=!0;try{for(var r;;){if(kf(),Xe.length===0&&(se==null||se.flush(),Xe.length===0))return is=null,r;bu()}}finally{ti=t}}function bu(){var e=ir;qn=!0;var t=null;try{var r=0;for(zi(!0);Xe.length>0;){var i=ar.ensure();if(r++>1e3){var s,n;Lf()}i.process(Xe),Ht.clear()}}finally{qn=!1,zi(e),is=null}}function Lf(){try{Sf()}catch(e){kr(e,is)}}let vt=null;function sa(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(Ot|qe))===0&&$r(i)&&(vt=new Set,Ir(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?Uu(i):i.fn=null),(vt==null?void 0:vt.size)>0)){Ht.clear();for(const s of vt){if((s.f&(Ot|qe))!==0)continue;const n=[s];let o=s.parent;for(;o!==null;)vt.has(o)&&(vt.delete(o),n.push(o)),o=o.parent;for(let u=n.length-1;u>=0;u--){const a=n[u];(a.f&(Ot|qe))===0&&Ir(a)}}vt.clear()}}vt=null}}function _u(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?_u(s,t,r,i):(n&(vo|At))!==0&&(n&Fe)===0&&Su(s,t,i)&&(Ne(s,Fe),lr(s))}}function Su(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&&Su(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function lr(e){for(var t=is=e;t.parent!==null;){t=t.parent;var r=t.f;if(qn&&t===K&&(r&At)!==0&&(r&hu)===0)return;if((r&(fr|Dt))!==0){if((r&xe)===0)return;t.f^=xe}}Xe.push(t)}function Ff(e){let t=0,r=Yt(0),i;return()=>{li()&&(M(r),fi(()=>(t===0&&(i=Ee(()=>e(()=>ri(r)))),t+=1,()=>{Br(()=>{t-=1,t===0&&(i==null||i(),i=void 0,ri(r))})})))}}var Uf=Dr|Fr|Qi;function Bf(e,t,r){new $f(e,t,r)}class $f{constructor(t,r,i){Y(this,Ie),Rt(this,"parent"),Y(this,ot,!1),Y(this,Je),Y(this,Ti,Z?X:null),Y(this,xt),Y(this,Or),Y(this,Nt),Y(this,at,null),Y(this,ze,null),Y(this,St,null),Y(this,jt,null),Y(this,er,null),Y(this,Kt,0),Y(this,Vt,0),Y(this,yr,!1),Y(this,Qt,null),Y(this,Fn,Ff(()=>(B(this,Qt,Yt(R(this,Kt))),()=>{B(this,Qt,null)}))),B(this,Je,t),B(this,xt,r),B(this,Or,i),this.parent=K.b,B(this,ot,!!R(this,xt).pending),B(this,Nt,Eo(()=>{if(K.b=this,Z){const n=R(this,Ti);rs(),n.nodeType===Ur&&n.data===Ji?ye(this,Ie,ou).call(this):ye(this,Ie,nu).call(this)}else{var s=ye(this,Ie,fo).call(this);try{B(this,at,Qe(()=>i(s)))}catch(n){this.error(n)}R(this,Vt)>0?ye(this,Ie,Bi).call(this):B(this,ot,!1)}return()=>{var n;(n=R(this,er))==null||n.remove()}},Uf)),Z&&B(this,Je,X)}is_pending(){return R(this,ot)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!R(this,xt).pending}update_pending_count(t){ye(this,Ie,Un).call(this,t),B(this,Kt,R(this,Kt)+t),R(this,Qt)&&Pr(R(this,Qt),R(this,Kt))}get_effect_pending(){return R(this,Fn).call(this),M(R(this,Qt))}error(t){var r=R(this,xt).onerror;let i=R(this,xt).failed;if(R(this,yr)||!r&&!i)throw t;R(this,at)&&(Le(R(this,at)),B(this,at,null)),R(this,ze)&&(Le(R(this,ze)),B(this,ze,null)),R(this,St)&&(Le(R(this,St)),B(this,St,null)),Z&&(je(R(this,Ti)),Df(),je($i()));var s=!1,n=!1;const o=()=>{if(s){Af();return}s=!0,n&&Of(),ar.ensure(),B(this,Kt,0),R(this,St)!==null&&hr(R(this,St),()=>{B(this,St,null)}),B(this,ot,this.has_pending_snippet()),B(this,at,ye(this,Ie,Ui).call(this,()=>(B(this,yr,!1),Qe(()=>R(this,Or).call(this,R(this,Je)))))),R(this,Vt)>0?ye(this,Ie,Bi).call(this):B(this,ot,!1)};var u=J;try{Ue(null),n=!0,r==null||r(t,o),n=!1}catch(a){kr(a,R(this,Nt)&&R(this,Nt).parent)}finally{Ue(u)}i&&Br(()=>{B(this,St,ye(this,Ie,Ui).call(this,()=>{ar.ensure(),B(this,yr,!0);try{return Qe(()=>{i(R(this,Je),()=>t,()=>o)})}catch(a){return kr(a,R(this,Nt).parent),null}finally{B(this,yr,!1)}}))})}}ot=new WeakMap;Je=new WeakMap;Ti=new WeakMap;xt=new WeakMap;Or=new WeakMap;Nt=new WeakMap;at=new WeakMap;ze=new WeakMap;St=new WeakMap;jt=new WeakMap;er=new WeakMap;Kt=new WeakMap;Vt=new WeakMap;yr=new WeakMap;Qt=new WeakMap;Fn=new WeakMap;Ie=new WeakSet;nu=function(){try{B(this,at,Qe(()=>R(this,Or).call(this,R(this,Je))))}catch(e){this.error(e)}B(this,ot,!1)};ou=function(){const e=R(this,xt).pending;e&&(B(this,ze,Qe(()=>e(R(this,Je)))),ar.enqueue(()=>{var t=ye(this,Ie,fo).call(this);B(this,at,ye(this,Ie,Ui).call(this,()=>(ar.ensure(),Qe(()=>R(this,Or).call(this,t))))),R(this,Vt)>0?ye(this,Ie,Bi).call(this):(hr(R(this,ze),()=>{B(this,ze,null)}),B(this,ot,!1))}))};fo=function(){var e=R(this,Je);return R(this,ot)&&(B(this,er,ft()),R(this,Je).before(R(this,er)),e=R(this,er)),e};Ui=function(e){var t=K,r=J,i=ne;et(R(this,Nt)),Ue(R(this,Nt)),Tr(R(this,Nt).ctx);try{return e()}catch(s){return wu(s),null}finally{et(t),Ue(r),Tr(i)}};Bi=function(){const e=R(this,xt).pending;R(this,at)!==null&&(B(this,jt,document.createDocumentFragment()),R(this,jt).append(R(this,er)),Wu(R(this,at),R(this,jt))),R(this,ze)===null&&B(this,ze,Qe(()=>e(R(this,Je))))};Un=function(e){var t;if(!this.has_pending_snippet()){this.parent&&ye(t=this.parent,Ie,Un).call(t,e);return}B(this,Vt,R(this,Vt)+e),R(this,Vt)===0&&(B(this,ot,!1),R(this,ze)&&hr(R(this,ze),()=>{B(this,ze,null)}),R(this,jt)&&(R(this,Je).before(R(this,jt)),B(this,jt,null)))};function Wf(e,t,r,i){const s=ci()?ss:ns;if(r.length===0&&e.length===0){i(t.map(s));return}var n=se,o=K,u=zf();function a(){Promise.all(r.map(c=>qf(c))).then(c=>{u();try{i([...t.map(s),...c])}catch(l){(o.f&Ot)===0&&kr(l,o)}n==null||n.deactivate(),Wi()}).catch(c=>{kr(c,o)})}e.length>0?Promise.all(e).then(()=>{u();try{return a()}finally{n==null||n.deactivate(),Wi()}}):a()}function zf(){var e=K,t=J,r=ne,i=se;return function(n=!0){et(e),Ue(t),Tr(r),n&&(i==null||i.activate())}}function Wi(){et(null),Ue(null),Tr(null)}function ss(e){var t=Re|Fe,r=J!==null&&(J.f&Re)!==0?J:null;return K!==null&&(K.f|=Fr),{ctx:ne,deps:null,effects:null,equals:gu,f:t,fn:e,reactions:null,rv:0,v:Oe,wv:0,parent:r!=null?r:K,ac:null}}function qf(e,t){let r=K;r===null&&yf();var i=r.b,s=void 0,n=Yt(Oe),o=!J,u=new Map;return Qf(()=>{var a,c=fu();s=c.promise;try{Promise.resolve(e()).then(c.resolve,c.reject).then(()=>{l===se&&l.committed&&l.deactivate(),Wi()})}catch(d){c.reject(d),Wi()}var l=se;if(o){var h=!i.is_pending();i.update_pending_count(1),l.increment(h),(a=u.get(l))==null||a.reject(Er),u.delete(l),u.set(l,c)}const f=(d,m=void 0)=>{if(l.activate(),m)m!==Er&&(n.f|=Gt,Pr(n,m));else{(n.f&Gt)!==0&&(n.f^=Gt),Pr(n,d);for(const[p,g]of u){if(u.delete(p),p===l)break;g.reject(Er)}}o&&(i.update_pending_count(-1),l.decrement(h))};c.promise.then(f,d=>f(null,d||"unknown"))}),So(()=>{for(const a of u.values())a.reject(Er)}),new Promise(a=>{function c(l){function h(){l===s?a(n):c(s)}l.then(h,h)}c(s)})}function ns(e){const t=ss(e);return t.equals=vu,t}function Eu(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Le(t[r])}}function jf(e){for(var t=e.parent;t!==null;){if((t.f&Re)===0)return(t.f&Ot)===0?t:null;t=t.parent}return null}function _o(e){var t,r=K;et(jf(e));try{e.f&=~or,Eu(e),t=Vu(e)}finally{et(r)}return t}function Cu(e){var t=_o(e);if(e.equals(t)||(se!=null&&se.is_fork||(e.v=t),e.wv=qu()),!dr)if(De!==null)(li()||se!=null&&se.is_fork)&&De.set(e,t);else{var r=(e.f&ct)===0?ht:xe;Ne(e,r)}}let Vn=new Set;const Ht=new Map;let xu=!1;function Yt(e,t){var r={f:0,v:e,reactions:null,equals:gu,rv:0,wv:0};return r}function Tt(e,t){const r=Yt(e);return th(r),r}function Ae(e,t=!1,r=!0){var n;var i;const s=Yt(e);return t||(s.equals=vu),Lr&&r&&ne!==null&&ne.l!==null&&((n=(i=ne.l).s)!=null?n:i.s=[]).push(s),s}function re(e,t,r=!1){J!==null&&(!wt||(J.f&ia)!==0)&&ci()&&(J.f&(Re|At|vo|ia))!==0&&!(Ze!=null&&Ze.includes(e))&&Mf();let i=r?Cr(t):t;return Pr(e,i)}function Pr(e,t){if(!e.equals(t)){var r=e.v;dr?Ht.set(e,t):Ht.set(e,r),e.v=t;var i=ar.ensure();i.capture(e,r),(e.f&Re)!==0&&((e.f&Fe)!==0&&_o(e),Ne(e,(e.f&ct)!==0?xe:ht)),e.wv=qu(),Ru(e,Fe),ci()&&K!==null&&(K.f&xe)!==0&&(K.f&(Dt|fr))===0&&(He===null?rh([e]):He.push(e)),!i.is_fork&&Vn.size>0&&!xu&&Vf()}return t}function Vf(){xu=!1;var e=ir;zi(!0);const t=Array.from(Vn);try{for(const r of t)(r.f&xe)!==0&&Ne(r,ht),$r(r)&&Ir(r)}finally{zi(e)}Vn.clear()}function na(e,t=1){var r=M(e),i=t===1?r++:r--;return re(e,r),i}function ri(e){re(e,e.v+1)}function Ru(e,t){var r=e.reactions;if(r!==null)for(var i=ci(),s=r.length,n=0;n<s;n++){var o=r[n],u=o.f;if(!(!i&&o===K)){var a=(u&Fe)===0;if(a&&Ne(o,t),(u&Re)!==0){var c=o;De==null||De.delete(c),(u&or)===0&&(u&ct&&(o.f|=or),Ru(c,ht))}else a&&((u&At)!==0&&vt!==null&&vt.add(o),lr(o))}}}function Cr(e){if(typeof e!="object"||e===null||rr in e)return e;const t=mo(e);if(t!==df&&t!==pf)return e;var r=new Map,i=po(e),s=Tt(0),n=sr,o=u=>{if(sr===n)return u();var a=J,c=sr;Ue(null),ua(n);var l=u();return Ue(a),ua(c),l};return i&&r.set("length",Tt(e.length)),new Proxy(e,{defineProperty(u,a,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&Rf();var l=r.get(a);return l===void 0?l=o(()=>{var h=Tt(c.value);return r.set(a,h),h}):re(l,c.value,!0),!0},deleteProperty(u,a){var c=r.get(a);if(c===void 0){if(a in u){const l=o(()=>Tt(Oe));r.set(a,l),ri(s)}}else re(c,Oe),ri(s);return!0},get(u,a,c){var l;if(a===rr)return e;var h=r.get(a),f=a in u;if(h===void 0&&(!f||(l=tr(u,a))!=null&&l.writable)&&(h=o(()=>{var m=Cr(f?u[a]:Oe),p=Tt(m);return p}),r.set(a,h)),h!==void 0){var d=M(h);return d===Oe?void 0:d}return Reflect.get(u,a,c)},getOwnPropertyDescriptor(u,a){var c=Reflect.getOwnPropertyDescriptor(u,a);if(c&&"value"in c){var l=r.get(a);l&&(c.value=M(l))}else if(c===void 0){var h=r.get(a),f=h==null?void 0:h.v;if(h!==void 0&&f!==Oe)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return c},has(u,a){var c;if(a===rr)return!0;var l=r.get(a),h=l!==void 0&&l.v!==Oe||Reflect.has(u,a);if(l!==void 0||K!==null&&(!h||(c=tr(u,a))!=null&&c.writable)){l===void 0&&(l=o(()=>{var d=h?Cr(u[a]):Oe,m=Tt(d);return m}),r.set(a,l));var f=M(l);if(f===Oe)return!1}return h},set(u,a,c,l){var h,f=r.get(a),d=a in u;if(i&&a==="length")for(var m=c;m<f.v;m+=1){var p=r.get(m+"");p!==void 0?re(p,Oe):m in u&&(p=o(()=>Tt(Oe)),r.set(m+"",p))}if(f===void 0)(!d||(h=tr(u,a))!=null&&h.writable)&&(f=o(()=>Tt(void 0)),re(f,Cr(c)),r.set(a,f));else{d=f.v!==Oe;var g=o(()=>Cr(c));re(f,g)}var v=Reflect.getOwnPropertyDescriptor(u,a);if(v!=null&&v.set&&v.set.call(l,c),!d){if(i&&typeof a=="string"){var w=r.get("length"),_=Number(a);Number.isInteger(_)&&_>=w.v&&re(w,_+1)}ri(s)}return!0},ownKeys(u){M(s);var a=Reflect.ownKeys(u).filter(h=>{var f=r.get(h);return f===void 0||f.v!==Oe});for(var[c,l]of r)l.v!==Oe&&!(c in u)&&a.push(c);return a},setPrototypeOf(){Nf()}})}var oa,Nu,Mu,Ou;function Gn(){if(oa===void 0){oa=window,Nu=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Mu=tr(t,"firstChild").get,Ou=tr(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 ft(e=""){return document.createTextNode(e)}function ur(e){return Mu.call(e)}function bt(e){return Ou.call(e)}function nt(e,t){if(!Z)return ur(e);var r=ur(X);if(r===null)r=X.appendChild(ft());else if(t&&r.nodeType!==yo){var i=ft();return r==null||r.before(i),je(i),i}return je(r),r}function Gf(e,t=!1){if(!Z){var r=ur(e);return r instanceof Comment&&r.data===""?bt(r):r}if(t&&(X==null?void 0:X.nodeType)!==yo){var i=ft();return X==null||X.before(i),je(i),i}return X}function Ge(e,t=1,r=!1){let i=Z?X:e;for(var s;t--;)s=i,i=bt(i);if(!Z)return i;if(r&&(i==null?void 0:i.nodeType)!==yo){var n=ft();return i===null?s==null||s.after(n):i.before(n),je(n),n}return je(i),i}function Au(e){e.textContent=""}function Du(){return!1}let aa=!1;function Tu(){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=K;Ue(null),et(null);try{return e()}finally{Ue(t),et(r)}}function Hf(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),Tu()}function ku(e){K===null&&(J===null&&_f(),bf()),dr&&wf()}function Yf(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=K;i!==null&&(i.f&qe)!==0&&(e|=qe);var s={ctx:ne,deps:null,nodes:null,f:e|Fe|ct,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{Ir(s),s.f|=Zi}catch(a){throw Le(s),a}else t!==null&&lr(s);var n=s;if(r&&n.deps===null&&n.teardown===null&&n.nodes===null&&n.first===n.last&&(n.f&Fr)===0&&(n=n.first,(e&At)!==0&&(e&Dr)!==0&&n!==null&&(n.f|=Dr)),n!==null&&(n.parent=i,i!==null&&Yf(n,i),J!==null&&(J.f&Re)!==0&&(e&fr)===0)){var o=J;((u=o.effects)!=null?u:o.effects=[]).push(n)}return s}function li(){return J!==null&&!wt}function So(e){const t=_t(Ki,null,!1);return Ne(t,xe),t.teardown=e,t}function Hn(e){var s;ku();var t=K.f,r=!J&&(t&Dt)!==0&&(t&Zi)===0;if(r){var i=ne;((s=i.e)!=null?s:i.e=[]).push(e)}else return Pu(e)}function Pu(e){return _t(go|du,e,!1)}function Jf(e){return ku(),_t(Ki|du,e,!0)}function Xf(e){ar.ensure();const t=_t(fr|Fr,e,!0);return(r={})=>new Promise(i=>{r.outro?hr(t,()=>{Le(t),i(void 0)}):(Le(t),i(void 0))})}function Kf(e){return _t(go,e,!1)}function $t(e,t){var r=ne,i={effect:null,ran:!1,deps:e};r.l.$.push(i),i.effect=fi(()=>{e(),!i.ran&&(i.ran=!0,Ee(t))})}function Iu(){var e=ne;fi(()=>{for(var t of e.l.$){t.deps();var r=t.effect;(r.f&xe)!==0&&Ne(r,ht),$r(r)&&Ir(r),t.ran=!1}})}function Qf(e){return _t(vo|Fr,e,!0)}function fi(e,t=0){return _t(Ki|t,e,!0)}function xr(e,t=[],r=[],i=[]){Wf(i,t,r,s=>{_t(Ki,()=>e(...s.map(M)),!0)})}function Eo(e,t=0){var r=_t(At|t,e,!0);return r}function Qe(e){return _t(Dt|Fr,e,!0)}function Lu(e){var t=e.teardown;if(t!==null){const r=dr,i=J;la(!0),Ue(null);try{t.call(null)}finally{la(r),Ue(i)}}}function Fu(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&os(()=>{s.abort(Er)});var i=r.next;(r.f&fr)!==0?r.parent=null:Le(r,t),r=i}}function Zf(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Dt)===0&&Le(t),t=r}}function Le(e,t=!0){var r=!1;(t||(e.f&hu)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(eh(e.nodes.start,e.nodes.end),r=!0),Fu(e,t&&!r),qi(e,0),Ne(e,Ot);var i=e.nodes&&e.nodes.t;if(i!==null)for(const n of i)n.stop();Lu(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 eh(e,t){for(;e!==null;){var r=e===t?null:bt(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 hr(e,t,r=!0){var i=[];Bu(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 Bu(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&Dr)!==0||(s.f&Dt)!==0&&(e.f&At)!==0;Bu(s,t,o?r:!1),s=n}}}function Co(e){$u(e,!0)}function $u(e,t){if((e.f&qe)!==0){e.f^=qe,(e.f&xe)===0&&(Ne(e,Fe),lr(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Dr)!==0||(r.f&Dt)!==0;$u(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 Wu(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:bt(r);t.append(r),r=s}}let ir=!1;function zi(e){ir=e}let dr=!1;function la(e){dr=e}let J=null,wt=!1;function Ue(e){J=e}let K=null;function et(e){K=e}let Ze=null;function th(e){J!==null&&(Ze===null?Ze=[e]:Ze.push(e))}let Pe=null,Be=0,He=null;function rh(e){He=e}let zu=1,ui=0,sr=ui;function ua(e){sr=e}function qu(){return++zu}function $r(e){var t=e.f;if((t&Fe)!==0)return!0;if(t&Re&&(e.f&=~or),(t&ht)!==0){var r=e.deps;if(r!==null)for(var i=r.length,s=0;s<i;s++){var n=r[s];if($r(n)&&Cu(n),n.wv>e.wv)return!0}(t&ct)!==0&&De===null&&Ne(e,xe)}return!1}function ju(e,t,r=!0){var i=e.reactions;if(i!==null&&!(Ze!=null&&Ze.includes(e)))for(var s=0;s<i.length;s++){var n=i[s];(n.f&Re)!==0?ju(n,t,!1):t===n&&(r?Ne(n,Fe):(n.f&xe)!==0&&Ne(n,ht),lr(n))}}function Vu(e){var p;var t,r=Pe,i=Be,s=He,n=J,o=Ze,u=ne,a=wt,c=sr,l=e.f;Pe=null,Be=0,He=null,J=(l&(Dt|fr))===0?e:null,Ze=null,Tr(e.ctx),wt=!1,sr=++ui,e.ac!==null&&(os(()=>{e.ac.abort(Er)}),e.ac=null);try{e.f|=zn;var h=e.fn,f=h(),d=e.deps;if(Pe!==null){var m;if(qi(e,Be),d!==null&&Be>0)for(d.length=Be+Pe.length,m=0;m<Pe.length;m++)d[Be+m]=Pe[m];else e.deps=d=Pe;if(li()&&(e.f&ct)!==0)for(m=Be;m<d.length;m++)((p=(t=d[m]).reactions)!=null?p:t.reactions=[]).push(e)}else d!==null&&Be<d.length&&(qi(e,Be),d.length=Be);if(ci()&&He!==null&&!wt&&d!==null&&(e.f&(Re|ht|Fe))===0)for(m=0;m<He.length;m++)ju(He[m],e);return n!==null&&n!==e&&(ui++,He!==null&&(s===null?s=He:s.push(...He))),(e.f&Gt)!==0&&(e.f^=Gt),f}catch(g){return wu(g)}finally{e.f^=zn,Pe=r,Be=i,He=s,J=n,Ze=o,Tr(u),wt=a,sr=c}}function ih(e,t){let r=t.reactions;if(r!==null){var i=hf.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&&(Pe===null||!Pe.includes(t))&&(Ne(t,ht),(t.f&ct)!==0&&(t.f^=ct,t.f&=~or),Eu(t),qi(t,0))}function qi(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)ih(e,r[i])}function Ir(e){var t=e.f;if((t&Ot)===0){Ne(e,xe);var r=K,i=ir;K=e,ir=!0;try{(t&(At|gf))!==0?Zf(e):Fu(e),Lu(e);var s=Vu(e);e.teardown=typeof s=="function"?s:null,e.wv=zu;var n;$n&&ef&&(e.f&Fe)!==0&&e.deps}finally{ir=i,K=r}}}function M(e){var a;var t=e.f,r=(t&Re)!==0;if(J!==null&&!wt){var i=K!==null&&(K.f&Ot)!==0;if(!i&&!(Ze!=null&&Ze.includes(e))){var s=J.deps;if((J.f&zn)!==0)e.rv<ui&&(e.rv=ui,Pe===null&&s!==null&&s[Be]===e?Be++:Pe===null?Pe=[e]:Pe.includes(e)||Pe.push(e));else{((a=J.deps)!=null?a:J.deps=[]).push(e);var n=e.reactions;n===null?e.reactions=[J]:n.includes(J)||n.push(J)}}}if(dr){if(Ht.has(e))return Ht.get(e);if(r){var o=e,u=o.v;return((o.f&xe)===0&&o.reactions!==null||Hu(o))&&(u=_o(o)),Ht.set(o,u),u}}else r&&(!(De!=null&&De.has(e))||se!=null&&se.is_fork&&!li())&&(o=e,$r(o)&&Cu(o),ir&&li()&&(o.f&ct)===0&&Gu(o));if(De!=null&&De.has(e))return De.get(e);if((e.f&Gt)!==0)throw e.v;return e.v}function Gu(e){var t;if(e.deps!==null){e.f^=ct;for(const r of e.deps)((t=r.reactions)!=null?t:r.reactions=[]).push(e),(r.f&Re)!==0&&(r.f&ct)===0&&Gu(r)}}function Hu(e){if(e.v===Oe)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ht.has(t)||(t.f&Re)!==0&&Hu(t))return!0;return!1}function Ee(e){var t=wt;try{return wt=!0,e()}finally{wt=t}}const sh=-7169;function Ne(e,t){e.f=e.f&sh|t}function $e(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(rr in e)Yn(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&rr 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=cu(r);for(let s in i){const n=i[s].get;if(n)try{n.call(e)}catch(o){}}}}}const nh=new Set,ca=new Set;function oh(e,t,r,i={}){function s(n){if(i.capture||Jr.call(t,n),!n.cancelBubble)return os(()=>r==null?void 0:r.call(this,n))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Br(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function Vr(e,t,r,i,s){var n={capture:i,passive:s},o=oh(e,t,r,n);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&So(()=>{t.removeEventListener(e,o,n)})}let fa=null;function Jr(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;fa=e;var u=0,a=fa===e&&e.__root;if(a){var c=n.indexOf(a);if(c!==-1&&(r===document||r===window)){e.__root=r;return}var l=n.indexOf(r);if(l===-1)return;c<=l&&(u=c)}if(o=n[u]||e.target,o!==r){uu(e,"currentTarget",{configurable:!0,get(){return o||i}});var h=J,f=K;Ue(null),et(null);try{for(var d,m=[];o!==null;){var p=o.assignedSlot||o.parentNode||o.host||null;try{var g=o["__"+s];g!=null&&(!o.disabled||e.target===o)&&g.call(o,e)}catch(v){d?m.push(v):d=v}if(e.cancelBubble||p===r||p===null)break;o=p}if(d){for(let v of m)queueMicrotask(()=>{throw v});throw d}}finally{e.__root=r,delete e.currentTarget,Ue(h),et(f)}}}function Yu(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function cr(e,t){var r=K;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Wr(e,t){var r=(t&cf)!==0,i,s=!e.startsWith("<!>");return()=>{if(Z)return cr(X,null),X;i===void 0&&(i=Yu(s?e:"<!>"+e),i=ur(i));var n=r||Nu?document.importNode(i,!0):i.cloneNode(!0);return cr(n,n),n}}function ah(e,t,r="svg"){var i=!e.startsWith("<!>"),s=`<${r}>${i?e:"<!>"+e}</${r}>`,n;return()=>{if(Z)return cr(X,null),X;if(!n){var o=Yu(s),u=ur(o);n=ur(u)}var a=n.cloneNode(!0);return cr(a,a),a}}function Ju(e,t){return ah(e,t,"svg")}function lh(){if(Z)return cr(X,null),X;var e=document.createDocumentFragment(),t=document.createComment(""),r=ft();return e.append(t,r),cr(t,r),e}function Ct(e,t){if(Z){var r=K;((r.f&Zi)===0||r.nodes.end===null)&&(r.nodes.end=X),rs();return}e!==null&&e.before(t)}const uh=["touchstart","touchmove"];function ch(e){return uh.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 Xu(e,t){return Ku(e,t)}function fh(e,t){var o;Gn(),t.intro=(o=t.intro)!=null?o:!1;const r=t.target,i=Z,s=X;try{for(var n=ur(r);n&&(n.nodeType!==Ur||n.data!==lu);)n=bt(n);if(!n)throw Ar;Mt(!0),je(n);const u=Ku(e,we(G({},t),{anchor:n}));return Mt(!1),u}catch(u){if(u instanceof Error&&u.message.split(`
|
|
15
|
+
`).some(a=>a.startsWith("https://svelte.dev/e/")))throw u;return u!==Ar&&console.warn("Failed to hydrate: ",u),t.recover===!1&&Ef(),Gn(),Au(r),Mt(!1),Xu(e,t)}finally{Mt(i),je(s)}}const gr=new Map;function Ku(e,{target:t,anchor:r,props:i={},events:s,context:n,intro:o=!0}){Gn();var u=new Set,a=h=>{for(var f=0;f<h.length;f++){var d=h[f];if(!u.has(d)){u.add(d);var m=ch(d);t.addEventListener(d,Jr,{passive:m});var p=gr.get(d);p===void 0?(document.addEventListener(d,Jr,{passive:m}),gr.set(d,1)):gr.set(d,p+1)}}};a(Xi(nh)),ca.add(a);var c=void 0,l=Xf(()=>{var h=r!=null?r:t.appendChild(ft());return Bf(h,{pending:()=>{}},f=>{if(n){wo({});var d=ne;d.c=n}if(s&&(i.$$events=s),Z&&cr(f,null),c=e(f,i)||{},Z&&(K.nodes.end=X,X===null||X.nodeType!==Ur||X.data!==ho))throw ts(),Ar;n&&bo()}),()=>{var f;for(var d of u){t.removeEventListener(d,Jr);var m=gr.get(d);--m===0?(document.removeEventListener(d,Jr),gr.delete(d)):gr.set(d,m)}ca.delete(a),h!==r&&((f=h.parentNode)==null||f.removeChild(h))}});return Jn.set(c,l),c}let Jn=new WeakMap;function hh(e,t){const r=Jn.get(e);return r?(Jn.delete(e),r(t)):Promise.resolve()}class dh{constructor(t,r=!0){Rt(this,"anchor"),Y(this,gt,new Map),Y(this,Et,new Map),Y(this,Ve,new Map),Y(this,wr,new Set),Y(this,ki,!0),Y(this,Pi,()=>{var i=se;if(R(this,gt).has(i)){var s=R(this,gt).get(i),n=R(this,Et).get(s);if(n)Co(n),R(this,wr).delete(s);else{var o=R(this,Ve).get(s);o&&(R(this,Et).set(s,o.effect),R(this,Ve).delete(s),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),n=o.effect)}for(const[u,a]of R(this,gt)){if(R(this,gt).delete(u),u===i)break;const c=R(this,Ve).get(a);c&&(Le(c.effect),R(this,Ve).delete(a))}for(const[u,a]of R(this,Et)){if(u===s||R(this,wr).has(u))continue;const c=()=>{if(Array.from(R(this,gt).values()).includes(u)){var h=document.createDocumentFragment();Wu(a,h),h.append(ft()),R(this,Ve).set(u,{effect:a,fragment:h})}else Le(a);R(this,wr).delete(u),R(this,Et).delete(u)};R(this,ki)||!n?(R(this,wr).add(u),hr(a,c,!1)):c()}}}),Y(this,Bn,i=>{R(this,gt).delete(i);const s=Array.from(R(this,gt).values());for(const[n,o]of R(this,Ve))s.includes(n)||(Le(o.effect),R(this,Ve).delete(n))}),this.anchor=t,B(this,ki,r)}ensure(t,r){var i=se,s=Du();if(r&&!R(this,Et).has(t)&&!R(this,Ve).has(t))if(s){var n=document.createDocumentFragment(),o=ft();n.append(o),R(this,Ve).set(t,{effect:Qe(()=>r(o)),fragment:n})}else R(this,Et).set(t,Qe(()=>r(this.anchor)));if(R(this,gt).set(i,t),s){for(const[u,a]of R(this,Et))u===t?i.skipped_effects.delete(a):i.skipped_effects.add(a);for(const[u,a]of R(this,Ve))u===t?i.skipped_effects.delete(a.effect):i.skipped_effects.add(a.effect);i.oncommit(R(this,Pi)),i.ondiscard(R(this,Bn))}else Z&&(this.anchor=X),R(this,Pi).call(this)}}gt=new WeakMap;Et=new WeakMap;Ve=new WeakMap;wr=new WeakMap;ki=new WeakMap;Pi=new WeakMap;Bn=new WeakMap;function xo(e){ne===null&&es(),Lr&&ne.l!==null?Zu(ne).m.push(e):Hn(()=>{const t=Ee(e);if(typeof t=="function")return t})}function Qu(e){ne===null&&es(),xo(()=>()=>Ee(e))}function ph(e,t,{bubbles:r=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:i})}function mh(){const e=ne;return e===null&&es(),(t,r,i)=>{var s;const n=(s=e.s.$$events)==null?void 0:s[t];if(n){const o=po(n)?n.slice():[n],u=ph(t,r,i);for(const a of o)a.call(e.x,u);return!u.defaultPrevented}return!0}}function gh(e){ne===null&&es(),ne.l===null&&Cf(),Zu(ne).a.push(e)}function Zu(e){var r;var t=e.l;return(r=t.u)!=null?r:t.u={a:[],b:[],m:[]}}function Xn(e,t,r=!1){Z&&rs();var i=new dh(e),s=r?Dr:0;function n(o,u){if(Z){const c=mu(e)===Ji;if(o===c){var a=$i();je(a),i.anchor=a,Mt(!1),i.ensure(o,u),Mt(!0);return}}i.ensure(o,u)}Eo(()=>{var o=!1;t((u,a=!0)=>{o=!0,n(a,u)}),o||n(!1,null)},s)}function Ss(e,t){return t}function vh(e,t,r){var h;for(var i=[],s=t.length,n,o=t.length,u=0;u<s;u++){let f=t[u];hr(f,()=>{if(n){if(n.pending.delete(f),n.done.add(f),n.pending.size===0){var d=e.outrogroups;Kn(Xi(n.done)),d.delete(n),d.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var a=i.length===0&&r!==null;if(a){var c=r,l=c.parentNode;Au(l),l.append(c),e.items.clear()}Kn(t,!a)}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 kt;function Es(e,t,r,i,s,n=null){var o=e,u=new Map;Z&&rs();var a=null,c=ns(()=>{var p=r();return po(p)?p:p==null?[]:Xi(p)}),l,h=!0;function f(){m.fallback=a,yh(m,l,o,t,i),a!==null&&(l.length===0?(a.f&Wt)===0?Co(a):(a.f^=Wt,Xr(a,null,o)):hr(a,()=>{a=null}))}var d=Eo(()=>{l=M(c);var p=l.length;let g=!1;if(Z){var v=mu(o)===Ji;v!==(p===0)&&(o=$i(),je(o),Mt(!1),g=!0)}for(var w=new Set,_=se,E=Du(),y=0;y<p;y+=1){Z&&X.nodeType===Ur&&X.data===ho&&(o=X,g=!0,Mt(!1));var b=l[y],S=i(b,y),C=h?null:u.get(S);C?(C.v&&Pr(C.v,b),C.i&&Pr(C.i,y),E&&_.skipped_effects.delete(C.e)):(C=wh(u,h?o:kt!=null?kt:kt=ft(),b,S,y,s,t,r),h||(C.e.f|=Wt),u.set(S,C)),w.add(S)}if(p===0&&n&&!a&&(h?a=Qe(()=>n(o)):(a=Qe(()=>n(kt!=null?kt:kt=ft())),a.f|=Wt)),Z&&p>0&&je($i()),!h)if(E){for(const[O,N]of u)w.has(O)||_.skipped_effects.add(N.e);_.oncommit(f),_.ondiscard(()=>{})}else f();g&&Mt(!0),M(c)}),m={effect:d,items:u,outrogroups:null,fallback:a};h=!1,Z&&(o=X)}function yh(e,t,r,i,s){var n,o=t.length,u=e.items,a=e.effect.first,c,l=null,h=[],f=[],d,m,p,g;for(g=0;g<o;g+=1){if(d=t[g],m=s(d,g),p=u.get(m).e,e.outrogroups!==null)for(const O of e.outrogroups)O.pending.delete(p),O.done.delete(p);if((p.f&Wt)!==0)if(p.f^=Wt,p===a)Xr(p,null,r);else{var v=l?l.next:a;p===e.effect.last&&(e.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),Pt(e,l,p),Pt(e,p,v),Xr(p,v,r),l=p,h=[],f=[],a=l.next;continue}if((p.f&qe)!==0&&Co(p),p!==a){if(c!==void 0&&c.has(p)){if(h.length<f.length){var w=f[0],_;l=w.prev;var E=h[0],y=h[h.length-1];for(_=0;_<h.length;_+=1)Xr(h[_],w,r);for(_=0;_<f.length;_+=1)c.delete(f[_]);Pt(e,E.prev,y.next),Pt(e,l,E),Pt(e,y,w),a=w,l=y,g-=1,h=[],f=[]}else c.delete(p),Xr(p,a,r),Pt(e,p.prev,p.next),Pt(e,p,l===null?e.effect.first:l.next),Pt(e,l,p),l=p;continue}for(h=[],f=[];a!==null&&a!==p;)(c!=null?c:c=new Set).add(a),f.push(a),a=a.next;if(a===null)continue}(p.f&Wt)===0&&h.push(p),l=p,a=p.next}if(e.outrogroups!==null){for(const O of e.outrogroups)O.pending.size===0&&(Kn(Xi(O.done)),(n=e.outrogroups)==null||n.delete(O));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||c!==void 0){var b=[];if(c!==void 0)for(p of c)(p.f&qe)===0&&b.push(p);for(;a!==null;)(a.f&qe)===0&&a!==e.fallback&&b.push(a),a=a.next;var S=b.length;if(S>0){var C=null;vh(e,b,C)}}}function wh(e,t,r,i,s,n,o,u){var a=(o&rf)!==0?(o&nf)===0?Ae(r,!1,!1):Yt(r):null,c=(o&sf)!==0?Yt(s):null;return{v:a,i:c,e:Qe(()=>(n(t,a!=null?a:r,c!=null?c:s,u),()=>{e.delete(i)}))}}function Xr(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,n=t&&(t.f&Wt)===0?t.nodes.start:r;i!==null;){var o=bt(i);if(n.before(i),i===s)return;i=o}}function Pt(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 bh(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||ha.includes(i[o-1]))&&(u===i.length||ha.includes(i[u]))?i=(o===0?"":i.substring(0,o))+i.substring(u+1):o=u}}return i===""?null:i}function _h(e,t){return e==null?null:String(e)}function Qn(e,t,r,i,s,n){var o=e.__className;if(Z||o!==r||o===void 0){var u=bh(r,i,n);(!Z||u!==e.getAttribute("class"))&&(u==null?e.removeAttribute("class"):e.className=u),e.__className=r}else if(n&&s!==n)for(var a in n){var c=!!n[a];(s==null||c!==!!s[a])&&e.classList.toggle(a,c)}return n}function Rr(e,t,r,i){var s=e.__style;if(Z||s!==t){var n=_h(t);(!Z||n!==e.getAttribute("style"))&&(n==null?e.removeAttribute("style"):e.style.cssText=n),e.__style=t}return i}const Sh=Symbol("is custom element"),Eh=Symbol("is html");function Ch(e){if(Z){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var i=e.value;nr(e,"value",null),e.value=i}if(e.hasAttribute("checked")){var s=e.checked;nr(e,"checked",null),e.checked=s}}};e.__on_r=r,Br(r),Tu()}}function nr(e,t,r,i){var s=xh(e);Z&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[vf]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Rh(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function xh(e){var t;return(t=e.__attributes)!=null?t:e.__attributes={[Sh]:e.nodeName.includes("-"),[Eh]:e.namespaceURI===ff}}var da=new Map;function Rh(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,n=Element.prototype;n!==s;){i=cu(s);for(var o in i)i[o].set&&r.push(o);s=mo(s)}return r}function Nh(e,t,r=t){Hf(e,"change",i=>{var s=i?e.defaultChecked:e.checked;r(s)}),(Z&&e.defaultChecked!==e.checked||Ee(t)==null)&&r(e.checked),fi(()=>{var i=t();e.checked=!!i})}function ve(e,t,r){var i=tr(e,t);i&&i.set&&(e[t]=r,So(()=>{e[t]=null}))}function pa(e,t){return e===t||(e==null?void 0:e[rr])===t}function Fi(e={},t,r,i){return Kf(()=>{var s,n;return fi(()=>{s=n,n=[],Ee(()=>{e!==r(...n)&&(t(e,...n),s&&pa(r(...s),e)&&t(null,...s))})}),()=>{Br(()=>{n&&pa(r(...n),e)&&t(null,...n)})}}),e}function ec(e=!1){const t=ne,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 a=t.s;for(const c in a)a[c]!==n[c]&&(n[c]=a[c],u=!0);return u&&s++,s});i=()=>M(o)}r.b.length&&Jf(()=>{ma(t,i),Wn(r.b)}),Hn(()=>{const s=Ee(()=>r.m.map(mf));return()=>{for(const n of s)typeof n=="function"&&n()}}),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)M(r);t()}let wi=!1;function Mh(e){var t=wi;try{return wi=!1,[e(),wi]}finally{wi=t}}const Oh={get(e,t){if(!e.exclude.includes(t))return M(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,r){if(!(t in e.special)){var i=K;try{et(e.parent_effect),e.special[t]=pe({get[t](){return e.props[t]}},t,au)}finally{et(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 Ah(e,t){return new Proxy({props:e,exclude:t,special:{},version:Yt(0),parent_effect:K},Oh)}function pe(e,t,r,i){var E;var s,n=!Lr||(r&af)!==0,o=(r&lf)!==0,u=(r&uf)!==0,a=i,c=!0,l=()=>(c&&(c=!1,a=u?Ee(i):i),a),h;if(o){var f=rr in e||pu in e;h=(E=(s=tr(e,t))==null?void 0:s.set)!=null?E:f&&t in e?y=>e[t]=y:void 0}var d,m=!1;o?[d,m]=Mh(()=>e[t]):d=e[t],d===void 0&&i!==void 0&&(d=l(),h&&(n&&xf(),h(d)));var p;if(n?p=()=>{var y=e[t];return y===void 0?l():(c=!0,y)}:p=()=>{var y=e[t];return y!==void 0&&(a=void 0),y===void 0?a:y},n&&(r&au)===0)return p;if(h){var g=e.$$legacy;return(function(y,b){return arguments.length>0?((!n||!b||g||m)&&h(b?p():y),y):p()})}var v=!1,w=((r&of)!==0?ss:ns)(()=>(v=!1,p()));o&&M(w);var _=K;return(function(y,b){if(arguments.length>0){const S=b?M(w):n&&o?Cr(y):y;return re(w,S),v=!0,a!==void 0&&(a=S),y}return dr&&v||(_.f&Ot)!==0?w.v:M(w)})}function Dh(e){return class extends Th{constructor(t){super(G({component:e},t))}}}class Th{constructor(t){var o;Y(this,Lt),Y(this,it);var r,i=new Map,s=(u,a)=>{var c=Ae(a,!1,!1);return i.set(u,c),c};const n=new Proxy(we(G({},t.props||{}),{$$events:{}}),{get(u,a){var c;return M((c=i.get(a))!=null?c:s(a,Reflect.get(u,a)))},has(u,a){var c;return a===pu?!0:(M((c=i.get(a))!=null?c:s(a,Reflect.get(u,a))),Reflect.has(u,a))},set(u,a,c){var l;return re((l=i.get(a))!=null?l:s(a,c),c),Reflect.set(u,a,c)}});B(this,it,(t.hydrate?fh:Xu)(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)&&If(),B(this,Lt,n.$$events);for(const u of Object.keys(R(this,it)))u==="$set"||u==="$destroy"||u==="$on"||uu(this,u,{get(){return R(this,it)[u]},set(a){R(this,it)[u]=a},enumerable:!0});R(this,it).$set=u=>{Object.assign(n,u)},R(this,it).$destroy=()=>{hh(R(this,it))}}$set(t){R(this,it).$set(t)}$on(t,r){R(this,Lt)[t]=R(this,Lt)[t]||[];const i=(...s)=>r.call(this,...s);return R(this,Lt)[t].push(i),()=>{R(this,Lt)[t]=R(this,Lt)[t].filter(s=>s!==i)}}$destroy(){R(this,it).$destroy()}}Lt=new WeakMap;it=new WeakMap;var kh=Object.defineProperty,Ph=(e,t,r)=>t in e?kh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,I=(e,t,r)=>Ph(e,typeof t!="symbol"?t+"":t,r),ga,Ih=Object.defineProperty,Lh=(e,t,r)=>t in e?Ih(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,va=(e,t,r)=>Lh(e,typeof t!="symbol"?t+"":t,r),z=(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))(z||{});const ya={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},wa={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},bi={};function Fh(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(bi[e])return bi[e];const t=Fh(e)||globalThis[e],r=t.prototype,i=e in ya?ya[e]:void 0,s=!!(i&&i.every(u=>{var a,c;return!!((c=(a=Object.getOwnPropertyDescriptor(r,u))==null?void 0:a.get)!=null&&c.toString().includes("[native code]"))})),n=e in wa?wa[e]:void 0,o=!!(n&&n.every(u=>{var a;return typeof r[u]=="function"&&((a=r[u])==null?void 0:a.toString().includes("[native code]"))}));if(s&&o)return bi[e]=t.prototype,t.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const a=u.contentWindow;if(!a)return t.prototype;const c=a[e].prototype;return document.body.removeChild(u),c?bi[e]=c:r}catch(u){return r}}const Cs={};function Jt(e,t,r){var i;const s=`${e}.${String(r)}`;if(Cs[s])return Cs[s].call(t);const n=Ro(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 tc(e,t,r){const i=`${e}.${String(r)}`;if(xs[i])return xs[i].bind(t);const n=Ro(e)[r];return typeof n!="function"?t[r]:(xs[i]=n,n.bind(t))}function Uh(e){return Jt("Node",e,"childNodes")}function Bh(e){return Jt("Node",e,"parentNode")}function $h(e){return Jt("Node",e,"parentElement")}function Wh(e){return Jt("Node",e,"textContent")}function zh(e,t){return tc("Node",e,"contains")(t)}function qh(e){return tc("Node",e,"getRootNode")()}function jh(e){return!e||!("host"in e)?null:Jt("ShadowRoot",e,"host")}function Vh(e){return e.styleSheets}function Gh(e){return!e||!("shadowRoot"in e)?null:Jt("Element",e,"shadowRoot")}function Hh(e,t){return Jt("Element",e,"querySelector")(t)}function Yh(e,t){return Jt("Element",e,"querySelectorAll")(t)}function Jh(){return Ro("MutationObserver").constructor}const Te={childNodes:Uh,parentNode:Bh,parentElement:$h,textContent:Wh,contains:zh,getRootNode:qh,host:jh,styleSheets:Vh,shadowRoot:Gh,querySelector:Hh,querySelectorAll:Yh,mutationObserver:Jh};function No(e){return e.nodeType===e.ELEMENT_NODE}function Xh(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 Kh(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 Qh(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=>Zh(s,r)).join("");return Kh(i)}catch(t){return null}}function Zh(e,t){if(td(e)){let r;try{r=Zn(e.styleSheet)||Qh(e)}catch(i){r=e.cssText}return e.styleSheet.href?ji(r,e.styleSheet.href):r}else{let r=e.cssText;return rd(e)&&e.selectorText.includes(":")&&(r=ed(r)),t?ji(r,t):r}}function ed(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function td(e){return"styleSheet"in e}function rd(e){return"selectorText"in e}class Mo{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 Mo}function id({element:e,maskInputOptions:t,tagName:r,type:i,value:s,maskInputFn:n}){let o=s||"";const u=i&&hi(i);return(t[r.toLowerCase()]||u&&t[u])&&(n?o=n(o,e):o="*".repeat(o.length)),o}function hi(e){return e.toLowerCase()}const ba="__rrweb_original__";function sd(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=ba in n?n[ba]:n;if(new Uint32Array(o.call(t,i,s,Math.min(r,e.width-i),Math.min(r,e.height-s)).data.buffer).some(a=>a!==0))return!1}return!0}function nd(e,t){return!e||!t||e.type!==t.type?!1:e.type===z.Document?e.compatMode===t.compatMode:e.type===z.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===z.Comment||e.type===z.Text||e.type===z.CDATA?e.textContent===t.textContent:e.type===z.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function od(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?hi(t):null}function rc(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 ad(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}const ld=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ud=/^(?:[a-z+]+:)?\/\//i,cd=/^www\..*/i,fd=/^(data:)([^,]*),(.*)/i;function ji(e,t){return(e||"").replace(ld,(r,i,s,n,o,u)=>{const a=s||o||u,c=i||n||"";if(!a)return r;if(ud.test(a)||cd.test(a))return`url(${c}${a}${c})`;if(fd.test(a))return`url(${c}${a}${c})`;if(a[0]==="/")return`url(${c}${ad(t)+a}${c})`;const l=t.split("/"),h=a.split("/");l.pop();for(const f of h)f!=="."&&(f===".."?l.pop():l.push(f));return`url(${c}${l.join("/")}${c})`})}function _i(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function hd(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 a=1;a<i.length;a++)if(i[a].textContent&&typeof i[a].textContent=="string"){const c=_i(i[a].textContent,r),l=100;let h=3;for(;h<c.length&&(c[h].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,h),1)!==-1);h++);for(;h<c.length;h++){let f=c.substring(0,h),d=o.split(f),m=-1;if(d.length===2)m=d[0].length;else if(d.length>2&&d[0]===""&&i[a-1].textContent!=="")m=o.indexOf(f,1);else if(d.length===1){if(f=f.substring(0,f.length-1),d=o.split(f),d.length<=1)return s.push(e),s;h=l+1}else h===c.length-1&&(m=o.indexOf(f));if(d.length>=2&&h>l){const p=i[a-1].textContent;if(p&&typeof p=="string"){const g=_i(p).length;m=o.indexOf(f,g)}m===-1&&(m=d[0].length)}if(m!==-1){let p=Math.floor(m/u);for(;p>0&&p<e.length;){if(n+=1,n>50*i.length)return s.push(e),s;const g=_i(e.substring(0,p),r);if(g.length===m){s.push(e.substring(0,p)),e=e.substring(p),o=o.substring(m);break}else g.length<m?p+=Math.max(1,Math.floor((m-g.length)/u)):p-=Math.max(1,Math.floor((g.length-m)*u))}break}}}}return s.push(e),s}function dd(e,t){return hd(e,t).join("/* rr_split */")}const pd="lightgrey";let md=1;const gd=new RegExp("[^a-z0-9-_:]"),_a=-2;function vd(){return md++}function yd(e){if(e instanceof HTMLFormElement)return"form";const t=hi(e.tagName);return gd.test(t)?"div":t}let vr,Sa;const wd=/^[^ \t\n\r\u000c]+/,bd=/^[, \t\n\r\u000c]+/;function _d(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(bd),!(r>=t.length);){let n=i(wd);if(n.slice(-1)===",")n=Nr(e,n.substring(0,n.length-1)),s.push(n);else{let o="";n=Nr(e,n);let u=!1;for(;;){const a=t.charAt(r);if(a===""){s.push((n+o).trim());break}else if(u)a===")"&&(u=!1);else if(a===","){r+=1,s.push((n+o).trim());break}else a==="("&&(u=!0);o+=a,r+=1}}}return s.join(", ")}const Ea=new WeakMap;function Nr(e,t){return!t||t.trim()===""?t:Oo(e,t)}function Sd(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Oo(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 Ed(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,Oo(e)):t==="object"&&r==="data"?Nr(e,i):i)}function Cd(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function xd(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 Rd(e,t,r,i){let s;if(No(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(n){}return!1}function Nd(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 Md(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 Od(e,t){const{doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:o,inlineStylesheet:u,maskInputOptions:a={},maskTextFn:c,maskInputFn:l,maskAttributeFn:h,dataURLOptions:f={},inlineImages:d,recordCanvas:m,keepIframeSrcFn:p,newlyAddedElement:g=!1,cssCaptured:v=!1,applyBackgroundColorToBlockedElements:w=!1}=t,_=Ad(r,i);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:z.Document,childNodes:[],compatMode:e.compatMode}:{type:z.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:z.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:_};case e.ELEMENT_NODE:return Td(e,{doc:r,blockClass:s,blockSelector:n,inlineStylesheet:u,maskInputOptions:a,maskInputFn:l,maskAttributeFn:h,dataURLOptions:f,inlineImages:d,recordCanvas:m,keepIframeSrcFn:p,newlyAddedElement:g,rootId:_,applyBackgroundColorToBlockedElements:w});case e.TEXT_NODE:return Dd(e,{doc:r,needsMask:o,maskTextFn:c,rootId:_,cssCaptured:v});case e.CDATA_SECTION_NODE:return{type:z.CDATA,textContent:"",rootId:_};case e.COMMENT_NODE:return{type:z.Comment,textContent:Te.textContent(e)||"",rootId:_};default:return!1}}function Ad(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return r===1?void 0:r}function Dd(e,t){const{needsMask:r,maskTextFn:i,rootId:s,cssCaptured:n}=t,o=Te.parentNode(e),u=o&&o.tagName;let a="";const c=u==="STYLE"?!0:void 0,l=u==="SCRIPT"?!0:void 0;return l?a="SCRIPT_PLACEHOLDER":n||(a=Te.textContent(e),c&&a&&(a=ji(a,Oo(t.doc)))),!c&&!l&&a&&r&&(a=i?i(a,Te.parentElement(e)):a.replace(/[\S]/g,"*")),{type:z.Text,textContent:a||"",rootId:s}}function Td(e,t){const{doc:r,blockClass:i,blockSelector:s,inlineStylesheet:n,maskInputOptions:o={},maskInputFn:u,maskAttributeFn:a,dataURLOptions:c={},inlineImages:l,recordCanvas:h,keepIframeSrcFn:f,newlyAddedElement:d=!1,rootId:m,applyBackgroundColorToBlockedElements:p=!1}=t,g=xd(e,i,s),v=yd(e);let w={};const _=e.attributes.length;for(let y=0;y<_;y++){const b=e.attributes[y];if(!Cd(v,b.name,b.value)){const S=Ed(r,v,hi(b.name),b.value);if(a&&S!==null){const C=a(b.name,S,e);C!==null&&(w[b.name]=C)}else w[b.name]=S}}if(v==="link"&&n){const y=Array.from(r.styleSheets).find(S=>S.href===e.href);let b=null;y&&(b=Zn(y)),b&&(delete w.rel,delete w.href,w._cssText=b)}if(v==="style"&&e.sheet){let y=Zn(e.sheet);y&&(e.childNodes.length>1&&(y=dd(y,e)),w._cssText=y)}if(v==="input"||v==="textarea"||v==="select"){const y=e.value,b=e.checked;w.type!=="radio"&&w.type!=="checkbox"&&w.type!=="submit"&&w.type!=="button"&&y?w.value=id({element:e,type:od(e),tagName:v,value:y,maskInputOptions:o,maskInputFn:u}):b&&(w.checked=b)}if(v==="option"&&(e.selected&&!o.select?w.selected=!0:delete w.selected),v==="dialog"&&e.open&&(w.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),v==="canvas"&&h){if(e.__context==="2d")sd(e)||(w.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){const y=e.toDataURL(c.type,c.quality),b=r.createElement("canvas");b.width=e.width,b.height=e.height;const S=b.toDataURL(c.type,c.quality);y!==S&&(w.rr_dataURL=y)}}if(v==="img"&&l){vr||(vr=r.createElement("canvas"),Sa=vr.getContext("2d"));const y=e,b=y.currentSrc||y.getAttribute("src")||"<unknown-src>",S=y.crossOrigin,C=()=>{y.removeEventListener("load",C);try{vr.width=y.naturalWidth,vr.height=y.naturalHeight,Sa.drawImage(y,0,0),w.rr_dataURL=vr.toDataURL(c.type,c.quality)}catch(O){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: ${O}`)}y.crossOrigin==="anonymous"&&(S?w.crossOrigin=S:y.removeAttribute("crossorigin"))};y.complete&&y.naturalWidth!==0?C():y.addEventListener("load",C)}if(v==="audio"||v==="video"){const y=w;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(d||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),g){const{width:y,height:b}=e.getBoundingClientRect();w=G({class:w.class,rr_width:`${y}px`,rr_height:`${b}px`},p?{rr_background_color:pd}:{})}v==="iframe"&&!f(w.src)&&(e.contentDocument||(w.rr_src=w.src),delete w.src);let E;try{customElements.get(v)&&(E=!0)}catch(y){}return{type:z.Element,tagName:v,attributes:w,childNodes:[],isSVG:Sd(e)||void 0,needBlock:g,rootId:m,isCustom:E}}function ce(e){return e==null?"":e.toLowerCase()}function kd(e,t){if(t.comment&&e.type===z.Comment)return!0;if(e.type===z.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"&&rc(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ce(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ce(e.attributes.name)==="application-name"||ce(e.attributes.rel)==="icon"||ce(e.attributes.rel)==="apple-touch-icon"||ce(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&ce(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ce(e.attributes.property).match(/^(og|twitter|fb):/)||ce(e.attributes.name).match(/^(og|twitter):/)||ce(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(ce(e.attributes.name)==="robots"||ce(e.attributes.name)==="googlebot"||ce(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(ce(e.attributes.name)==="author"||ce(e.attributes.name)==="generator"||ce(e.attributes.name)==="framework"||ce(e.attributes.name)==="publisher"||ce(e.attributes.name)==="progid"||ce(e.attributes.property).match(/^article:/)||ce(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(ce(e.attributes.name)==="google-site-verification"||ce(e.attributes.name)==="yandex-verification"||ce(e.attributes.name)==="csrf-token"||ce(e.attributes.name)==="p:domain_verify"||ce(e.attributes.name)==="verify-v1"||ce(e.attributes.name)==="verification"||ce(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Kr(e,t){const{doc:r,mirror:i,blockClass:s,blockSelector:n,maskTextClass:o,maskTextSelector:u,skipChild:a=!1,inlineStylesheet:c=!0,maskInputOptions:l={},maskTextFn:h,maskInputFn:f,maskAttributeFn:d,slimDOMOptions:m,dataURLOptions:p={},inlineImages:g=!1,recordCanvas:v=!1,onSerialize:w,onIframeLoad:_,iframeLoadTimeout:E=5e3,onStylesheetLoad:y,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:S=()=>!1,newlyAddedElement:C=!1,cssCaptured:O=!1,applyBackgroundColorToBlockedElements:N=!1}=t;let{needsMask:F}=t,{preserveWhiteSpace:T=!0}=t;F||(F=Rd(e,o,u,F===void 0));const x=Od(e,{doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:F,inlineStylesheet:c,maskInputOptions:l,maskTextFn:h,maskInputFn:f,maskAttributeFn:d,dataURLOptions:p,inlineImages:g,recordCanvas:v,keepIframeSrcFn:S,newlyAddedElement:C,cssCaptured:O,applyBackgroundColorToBlockedElements:N});if(!x)return console.warn(e,"not serialized"),null;let oe;i.hasNode(e)?oe=i.getId(e):kd(x,m)||!T&&x.type===z.Text&&!x.textContent.replace(/^\s+|\s+$/gm,"").length?oe=_a:oe=vd();const L=Object.assign(x,{id:oe});if(i.add(e,L),oe===_a)return null;w&&w(e);let te=!a;if(L.type===z.Element){te=te&&!L.needBlock,delete L.needBlock;const $=Te.shadowRoot(e);$&&Rs($)&&(L.isShadowHost=!0)}if((L.type===z.Document||L.type===z.Element)&&te){m.headWhitespace&&L.type===z.Element&&L.tagName==="head"&&(T=!1);const $={doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:F,maskTextClass:o,maskTextSelector:u,skipChild:a,inlineStylesheet:c,maskInputOptions:l,maskTextFn:h,maskInputFn:f,maskAttributeFn:d,slimDOMOptions:m,dataURLOptions:p,inlineImages:g,recordCanvas:v,preserveWhiteSpace:T,onSerialize:w,onIframeLoad:_,iframeLoadTimeout:E,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:S,cssCaptured:!1,applyBackgroundColorToBlockedElements:N};if(!(L.type===z.Element&&L.tagName==="textarea"&&L.attributes.value!==void 0)){L.type===z.Element&&L.attributes._cssText!==void 0&&typeof L.attributes._cssText=="string"&&($.cssCaptured=!0);for(const q of Array.from(Te.childNodes(e))){const W=Kr(q,$);W&&L.childNodes.push(W)}}let ge=null;if(No(e)&&(ge=Te.shadowRoot(e)))for(const q of Array.from(Te.childNodes(ge))){const W=Kr(q,$);W&&(Rs(ge)&&(W.isShadow=!0),L.childNodes.push(W))}}const U=Te.parentNode(e);return U&&Xh(U)&&Rs(U)&&(L.isShadow=!0),L.type===z.Element&&L.tagName==="iframe"&&Nd(e,()=>{const $=e.contentDocument;if($&&_){const ge=Kr($,{doc:$,mirror:i,blockClass:s,blockSelector:n,needsMask:F,maskTextClass:o,maskTextSelector:u,skipChild:!1,inlineStylesheet:c,maskInputOptions:l,maskTextFn:h,maskInputFn:f,maskAttributeFn:d,slimDOMOptions:m,dataURLOptions:p,inlineImages:g,recordCanvas:v,preserveWhiteSpace:T,onSerialize:w,onIframeLoad:_,iframeLoadTimeout:E,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:S});ge&&_(e,ge)}},E),L.type===z.Element&&L.tagName==="link"&&typeof L.attributes.rel=="string"&&(L.attributes.rel==="stylesheet"||L.attributes.rel==="preload"&&typeof L.attributes.href=="string"&&rc(L.attributes.href)==="css")&&Md(e,()=>{if(y){const $=Kr(e,{doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:F,maskTextClass:o,maskTextSelector:u,skipChild:!1,inlineStylesheet:c,maskInputOptions:l,maskTextFn:h,maskInputFn:f,maskAttributeFn:d,slimDOMOptions:m,dataURLOptions:p,inlineImages:g,recordCanvas:v,preserveWhiteSpace:T,onSerialize:w,onIframeLoad:_,iframeLoadTimeout:E,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:S});$&&y(e,$)}},b),L}function Pd(e,t){const{mirror:r=new Mo,blockClass:i="rr-block",blockSelector:s=null,maskTextClass:n="rr-mask",maskTextSelector:o=null,inlineStylesheet:u=!0,inlineImages:a=!1,recordCanvas:c=!1,maskAllInputs:l=!1,maskTextFn:h,maskInputFn:f,maskAttributeFn:d,slimDOM:m=!1,dataURLOptions:p,preserveWhiteSpace:g,onSerialize:v,onIframeLoad:w,iframeLoadTimeout:_,onStylesheetLoad:E,stylesheetLoadTimeout:y,keepIframeSrcFn:b=()=>!1,applyBackgroundColorToBlockedElements:S=!1}=t||{};return Kr(e,{doc:e,mirror:r,blockClass:i,blockSelector:s,maskTextClass:n,maskTextSelector:o,skipChild:!1,inlineStylesheet:u,maskInputOptions:l===!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}:l===!1?{password:!0}:l,maskTextFn:h,maskInputFn:f,maskAttributeFn:d,slimDOMOptions:m===!0||m==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:m==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:m===!1?{}:m,dataURLOptions:p,inlineImages:a,recordCanvas:c,preserveWhiteSpace:g,onSerialize:v,onIframeLoad:w,iframeLoadTimeout:_,onStylesheetLoad:E,stylesheetLoadTimeout:y,keepIframeSrcFn:b,newlyAddedElement:!1,applyBackgroundColorToBlockedElements:S})}const Id=/(max|min)-device-(width|height)/,Ca=new RegExp(Id.source,"g"),Ld={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(Ca)&&(e.params=e.params.replace(Ca,"$1-$2"))}}}},Fd={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 Bd(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 Si={exports:{}},xa;function $d(){if(xa)return Si.exports;xa=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}};return Si.exports=t(),Si.exports.createColors=t,Si.exports}const Wd={},zd=Object.freeze(Object.defineProperty({__proto__:null,default:Wd},Symbol.toStringTag,{value:"Module"})),lt=Bd(zd);var Ns,Ra;function Ao(){if(Ra)return Ns;Ra=1;let e=$d(),t=lt;class r extends Error{constructor(s,n,o,u,a,c){super(s),this.name="CssSyntaxError",this.reason=s,a&&(this.file=a),u&&(this.source=u),c&&(this.plugin=c),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),t&&s&&(n=t(n));let o=n.split(/\r?\n/),u=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length,l,h;if(s){let{bold:f,gray:d,red:m}=e.createColors(!0);l=p=>f(m(p)),h=p=>d(p)}else l=h=f=>f;return o.slice(u,a).map((f,d)=>{let m=u+1+d,p=" "+(" "+m).slice(-c)+" | ";if(m===this.line){let g=h(p.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+h(p)+f+`
|
|
18
|
+
`+g+l("^")}return" "+h(p)+f}).join(`
|
|
19
19
|
`)}toString(){let s=this.showSourceCode();return s&&(s=`
|
|
20
20
|
|
|
21
21
|
`+s+`
|
|
22
|
-
`),this.name+": "+this.message+s}}return
|
|
22
|
+
`),this.name+": "+this.message+s}}return Ns=r,r.default=r,Ns}var Ei={},Na;function Do(){return Na||(Na=1,Ei.isClean=Symbol("isClean"),Ei.my=Symbol("my")),Ei}var Ms,Ma;function ic(){if(Ma)return Ms;Ma=1;const e={after:`
|
|
23
23
|
`,beforeClose:`
|
|
24
24
|
`,beforeComment:`
|
|
25
25
|
`,beforeDecl:`
|
|
26
26
|
`,beforeOpen:" ",beforeRule:`
|
|
27
|
-
`,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
|
|
28
|
-
`)){let c=this.raw(s,null,"indent");if(c.length)for(let
|
|
27
|
+
`,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 a=(s.raws.between||"")+(n?";":"");this.builder(o+u+a,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,a=0;for(;u&&u.type!=="root";)a+=1,u=u.parent;if(o.includes(`
|
|
28
|
+
`)){let c=this.raw(s,null,"indent");if(c.length)for(let l=0;l<a;l++)o+=c}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 a=s.nodes[u],c=this.raw(a,"before");c&&this.builder(c),this.stringify(a,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 a=s.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===s||a&&a.type==="document"))return"";if(!a)return e[o];let c=s.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[o]!="undefined")return c.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(s,o);{let l="raw"+t(o);this[l]?u=this[l](c,s):c.walk(h=>{if(u=h.raws[n],typeof u!="undefined")return!1})}return typeof u=="undefined"&&(u=e[o]),c.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(`
|
|
29
29
|
`)&&(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(`
|
|
30
30
|
`)&&(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(`
|
|
31
31
|
`)&&(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(`
|
|
32
|
-
`)&&(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
|
|
33
|
-
`);return n=
|
|
34
|
-
`?(
|
|
35
|
-
`);
|
|
32
|
+
`)&&(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 a=o.raws.before.split(`
|
|
33
|
+
`);return n=a[a.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 Os,Oa;function as(){if(Oa)return Os;Oa=1;let e=ic();function t(r,i){new e(i).stringify(r)}return Os=t,t.default=t,Os}var As,Aa;function ls(){if(Aa)return As;Aa=1;let{isClean:e,my:t}=Do(),r=Ao(),i=ic(),s=as();function n(u,a){let c=new u.constructor;for(let l in u){if(!Object.prototype.hasOwnProperty.call(u,l)||l==="proxyCache")continue;let h=u[l],f=typeof h;l==="parent"&&f==="object"?a&&(c[l]=a):l==="source"?c[l]=h:Array.isArray(h)?c[l]=h.map(d=>n(d,c)):(f==="object"&&h!==null&&(h=n(h)),c[l]=h)}return c}class o{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let c in a)if(c==="nodes"){this.nodes=[];for(let l of a[c])typeof l.clone=="function"?this.append(l.clone()):this.append(l)}else this[c]=a[c]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let c=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${c.input.from}:${c.start.line}:${c.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let c in a)this[c]=a[c];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let c=n(this);for(let l in a)c[l]=a[l];return c}cloneAfter(a={}){let c=this.clone(a);return this.parent.insertAfter(this,c),c}cloneBefore(a={}){let c=this.clone(a);return this.parent.insertBefore(this,c),c}error(a,c={}){if(this.source){let{end:l,start:h}=this.rangeBy(c);return this.source.input.error(a,{column:h.column,line:h.line},{column:l.column,line:l.line},c)}return new r(a)}getProxyProcessor(){return{get(a,c){return c==="proxyOf"?a:c==="root"?()=>a.root().toProxy():a[c]},set(a,c,l){return a[c]===l||(a[c]=l,(c==="prop"||c==="value"||c==="name"||c==="params"||c==="important"||c==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,c){let l=this.source.start;if(a.index)l=this.positionInside(a.index,c);else if(a.word){c=this.toString();let h=c.indexOf(a.word);h!==-1&&(l=this.positionInside(h,c))}return l}positionInside(a,c){let l=c||this.toString(),h=this.source.start.column,f=this.source.start.line;for(let d=0;d<a;d++)l[d]===`
|
|
34
|
+
`?(h=1,f+=1):h+=1;return{column:h,line:f}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let c={column:this.source.start.column,line:this.source.start.line},l=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:c.column+1,line:c.line};if(a.word){let h=this.toString(),f=h.indexOf(a.word);f!==-1&&(c=this.positionInside(f,h),l=this.positionInside(f+a.word.length,h))}else a.start?c={column:a.start.column,line:a.start.line}:a.index&&(c=this.positionInside(a.index)),a.end?l={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?l=this.positionInside(a.endIndex):a.index&&(l=this.positionInside(a.index+1));return(l.line<c.line||l.line===c.line&&l.column<=c.column)&&(l={column:c.column+1,line:c.line}),{end:l,start:c}}raw(a,c){return new i().raw(this,a,c)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let c=this,l=!1;for(let h of a)h===this?l=!0:l?(this.parent.insertAfter(c,h),c=h):this.parent.insertBefore(c,h);l||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,c){let l={},h=c==null;c=c||new Map;let f=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let m=this[d];if(Array.isArray(m))l[d]=m.map(p=>typeof p=="object"&&p.toJSON?p.toJSON(null,c):p);else if(typeof m=="object"&&m.toJSON)l[d]=m.toJSON(null,c);else if(d==="source"){let p=c.get(m.input);p==null&&(p=f,c.set(m.input,f),f++),l[d]={end:m.end,inputId:p,start:m.start}}else l[d]=m}return h&&(l.inputs=[...c.keys()].map(d=>d.toJSON())),l}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=s){a.stringify&&(a=a.stringify);let c="";return a(this,l=>{c+=l}),c}warn(a,c,l){let h={node:this};for(let f in l)h[f]=l[f];return a.warn(c,h)}get proxyOf(){return this}}return As=o,o.default=o,As}var Ds,Da;function us(){if(Da)return Ds;Da=1;let e=ls();class t extends e{constructor(i){i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=we(G({},i),{value:String(i.value)})),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Ds=t,t.default=t,Ds}var Ts,Ta;function qd(){if(Ta)return Ts;Ta=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Ts={nanoid:(i=21)=>{let s="",n=i;for(;n--;)s+=e[Math.random()*64|0];return s},customAlphabet:(i,s=21)=>(n=s)=>{let o="",u=n;for(;u--;)o+=i[Math.random()*i.length|0];return o}},Ts}var ks,ka;function sc(){if(ka)return ks;ka=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=lt,{existsSync:r,readFileSync:i}=lt,{dirname:s,join:n}=lt;function o(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class u{constructor(c,l){if(l.map===!1)return;this.loadAnnotation(c),this.inline=this.startWith(this.annotation,"data:");let h=l.map?l.map.prev:void 0,f=this.loadMap(l.from,h);!this.mapFile&&l.from&&(this.mapFile=l.from),this.mapFile&&(this.root=s(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(c){let l=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,d=/^data:application\/json,/;if(f.test(c)||d.test(c))return decodeURIComponent(c.substr(RegExp.lastMatch.length));if(l.test(c)||h.test(c))return o(c.substr(RegExp.lastMatch.length));let m=c.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(c){return c.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(c){return typeof c!="object"?!1:typeof c.mappings=="string"||typeof c._mappings=="string"||Array.isArray(c.sections)}loadAnnotation(c){let l=c.match(/\/\*\s*# sourceMappingURL=/gm);if(!l)return;let h=c.lastIndexOf(l.pop()),f=c.indexOf("*/",h);h>-1&&f>-1&&(this.annotation=this.getAnnotationURL(c.substring(h,f)))}loadFile(c){if(this.root=s(c),r(c))return this.mapFile=c,i(c,"utf-8").toString().trim()}loadMap(c,l){if(l===!1)return!1;if(l){if(typeof l=="string")return l;if(typeof l=="function"){let h=l(c);if(h){let f=this.loadFile(h);if(!f)throw new Error("Unable to load previous source map: "+h.toString());return f}}else{if(l instanceof e)return t.fromSourceMap(l).toString();if(l instanceof t)return l.toString();if(this.isMap(l))return JSON.stringify(l);throw new Error("Unsupported previous source map format: "+l.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return c&&(h=n(s(c),h)),this.loadFile(h)}}}startWith(c,l){return c?c.substr(0,l.length)===l:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return ks=u,u.default=u,ks}var Ps,Pa;function cs(){if(Pa)return Ps;Pa=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=lt,{fileURLToPath:r,pathToFileURL:i}=lt,{isAbsolute:s,resolve:n}=lt,{nanoid:o}=qd(),u=lt,a=Ao(),c=sc(),l=Symbol("fromOffsetCache"),h=!!(e&&t),f=!!(n&&s);class d{constructor(p,g={}){if(p===null||typeof p=="undefined"||typeof p=="object"&&!p.toString)throw new Error(`PostCSS received ${p} instead of CSS string`);if(this.css=p.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!f||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=n(g.from)),f&&h){let v=new c(this.css,g);if(v.text){this.map=v;let w=v.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(p,g,v,w={}){let _,E,y;if(g&&typeof g=="object"){let S=g,C=v;if(typeof S.offset=="number"){let O=this.fromOffset(S.offset);g=O.line,v=O.col}else g=S.line,v=S.column;if(typeof C.offset=="number"){let O=this.fromOffset(C.offset);E=O.line,y=O.col}else E=C.line,y=C.column}else if(!v){let S=this.fromOffset(g);g=S.line,v=S.col}let b=this.origin(g,v,E,y);return b?_=new a(p,b.endLine===void 0?b.line:{column:b.column,line:b.line},b.endLine===void 0?b.column:{column:b.endColumn,line:b.endLine},b.source,b.file,w.plugin):_=new a(p,E===void 0?g:{column:v,line:g},E===void 0?v:{column:y,line:E},this.css,this.file,w.plugin),_.input={column:v,endColumn:y,endLine:E,line:g,source:this.css},this.file&&(i&&(_.input.url=i(this.file).toString()),_.input.file=this.file),_}fromOffset(p){let g,v;if(this[l])v=this[l];else{let _=this.css.split(`
|
|
35
|
+
`);v=new Array(_.length);let E=0;for(let y=0,b=_.length;y<b;y++)v[y]=E,E+=_[y].length+1;this[l]=v}g=v[v.length-1];let w=0;if(p>=g)w=v.length-1;else{let _=v.length-2,E;for(;w<_;)if(E=w+(_-w>>1),p<v[E])_=E-1;else if(p>=v[E+1])w=E+1;else{w=E;break}}return{col:p-v[w]+1,line:w+1}}mapResolve(p){return/^\w+:\/\//.test(p)?p:n(this.map.consumer().sourceRoot||this.map.root||".",p)}origin(p,g,v,w){if(!this.map)return!1;let _=this.map.consumer(),E=_.originalPositionFor({column:g,line:p});if(!E.source)return!1;let y;typeof v=="number"&&(y=_.originalPositionFor({column:w,line:v}));let b;s(E.source)?b=i(E.source):b=new URL(E.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let S={column:E.column,endColumn:y&&y.column,endLine:y&&y.line,line:E.line,url:b.toString()};if(b.protocol==="file:")if(r)S.file=r(b);else throw new Error("file: protocol is not available in this PostCSS build");let C=_.sourceContentFor(E.source);return C&&(S.source=C),S}toJSON(){let p={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(p[g]=this[g]);return this.map&&(p.map=G({},this.map),p.map.consumerCache&&(p.map.consumerCache=void 0)),p}get from(){return this.file||this.id}}return Ps=d,d.default=d,u&&u.registerInput&&u.registerInput(d),Ps}var Is,Ia;function nc(){if(Ia)return Is;Ia=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=lt,{dirname:r,relative:i,resolve:s,sep:n}=lt,{pathToFileURL:o}=lt,u=cs(),a=!!(e&&t),c=!!(r&&s&&i&&n);class l{constructor(f,d,m,p){this.stringify=f,this.mapOpts=m.map||{},this.root=d,this.opts=m,this.css=p,this.originalCSS=p,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let d=`
|
|
36
36
|
`;this.css.includes(`\r
|
|
37
|
-
`)&&(
|
|
38
|
-
`),this.css+=
|
|
39
|
-
`),h=b.length-y):h+=b.length,_&&S!=="start"){let v=_.parent||{raws:{}};(!(_.type==="decl"||_.type==="atrule"&&!_.nodes)||_!==v.last||v.raws.semicolon)&&(_.source&&_.source.end?(p.source=this.sourcePath(_),p.original.line=_.source.end.line,p.original.column=_.source.end.column-1,p.generated.line=f,p.generated.column=h-2,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,p.generated.line=f,p.generated.column=h-1,this.map.addMapping(p)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f!="undefined"&&f!==!0?!1:this.previous().length?this.previous().some(h=>h.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let h=this.memoizedPaths.get(f);if(h)return h;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(s(m,this.mapOpts.annotation)));let p=i(m,f);return this.memoizedPaths.set(f,p),p}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let h=f.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let f=new u(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(h=>{if(h.source){let m=h.source.input.from;if(m&&!f[m]){f[m]=!0;let p=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(p,h.source.input.css)}}});else if(this.css){let h=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(h,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let h=this.memoizedFileURLs.get(f);if(h)return h;if(o){let m=o(f).toString();return this.memoizedFileURLs.set(f,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let h=this.memoizedURLs.get(f);if(h)return h;n==="\\"&&(f=f.replace(/\\/g,"/"));let m=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,m),m}}return Ss=a,Ss}var Es,ca;function ts(){if(ca)return Es;ca=1;let e=Ki();class t extends e{constructor(i){super(i),this.type="comment"}}return Es=t,t.default=t,Es}var Cs,fa;function fr(){if(fa)return Cs;fa=1;let{isClean:e,my:t}=co(),r=Zi(),i=ts(),s=Ki(),n,o,u,l;function c(f){return f.map(h=>(h.nodes&&(h.nodes=c(h.nodes)),delete h.source,h))}function a(f){if(f[e]=!1,f.proxyOf.nodes)for(let h of f.proxyOf.nodes)a(h)}class d extends s{append(...h){for(let m of h){let p=this.normalize(m,this.last);for(let g of p)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let m of this.nodes)m.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let m=this.getIterator(),p,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(p=this.indexes[m],g=h(this.proxyOf.nodes[p],p),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],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,m){return m==="proxyOf"?h:h[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...p)=>h[m](...p.map(g=>typeof g=="function"?(y,b)=>g(y.toProxy(),b):g)):m==="every"||m==="some"?p=>h[m]((g,...y)=>p(g.toProxy(),...y)):m==="root"?()=>h.root().toProxy():m==="nodes"?h.nodes.map(p=>p.toProxy()):m==="first"||m==="last"?h[m].toProxy():h[m]:h[m]},set(h,m,p){return h[m]===p||(h[m]=p,(m==="name"||m==="params"||m==="selector")&&h.markDirty()),!0}}}index(h){return typeof h=="number"?h:(h.proxyOf&&(h=h.proxyOf),this.proxyOf.nodes.indexOf(h))}insertAfter(h,m){let p=this.index(h),g=this.normalize(m,this.proxyOf.nodes[p]).reverse();p=this.index(h);for(let b of g)this.proxyOf.nodes.splice(p+1,0,b);let y;for(let b in this.indexes)y=this.indexes[b],p<y&&(this.indexes[b]=y+g.length);return this.markDirty(),this}insertBefore(h,m){let p=this.index(h),g=p===0?"prepend":!1,y=this.normalize(m,this.proxyOf.nodes[p],g).reverse();p=this.index(h);for(let _ of y)this.proxyOf.nodes.splice(p,0,_);let b;for(let _ in this.indexes)b=this.indexes[_],p<=b&&(this.indexes[_]=b+y.length);return this.markDirty(),this}normalize(h,m){if(typeof h=="string")h=c(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 r(h)]}else if(h.selector)h=[new o(h)];else if(h.name)h=[new u(h)];else if(h.text)h=[new i(h)];else throw new Error("Unknown node type in node creation");return h.map(g=>(g[t]||d.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&a(g),typeof g.raws.before=="undefined"&&m&&typeof m.raws.before!="undefined"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...h){h=h.reverse();for(let m of h){let p=this.normalize(m,this.first,"prepend").reverse();for(let g of p)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+p.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 m;for(let p in this.indexes)m=this.indexes[p],m>=h&&(this.indexes[p]=m-1);return this.markDirty(),this}replaceValues(h,m,p){return p||(p=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(h,p))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((m,p)=>{let g;try{g=h(m,p)}catch(y){throw m.addToError(y)}return g!==!1&&m.walk&&(g=m.walk(h)),g})}walkAtRules(h,m){return m?h instanceof RegExp?this.walk((p,g)=>{if(p.type==="atrule"&&h.test(p.name))return m(p,g)}):this.walk((p,g)=>{if(p.type==="atrule"&&p.name===h)return m(p,g)}):(m=h,this.walk((p,g)=>{if(p.type==="atrule")return m(p,g)}))}walkComments(h){return this.walk((m,p)=>{if(m.type==="comment")return h(m,p)})}walkDecls(h,m){return m?h instanceof RegExp?this.walk((p,g)=>{if(p.type==="decl"&&h.test(p.prop))return m(p,g)}):this.walk((p,g)=>{if(p.type==="decl"&&p.prop===h)return m(p,g)}):(m=h,this.walk((p,g)=>{if(p.type==="decl")return m(p,g)}))}walkRules(h,m){return m?h instanceof RegExp?this.walk((p,g)=>{if(p.type==="rule"&&h.test(p.selector))return m(p,g)}):this.walk((p,g)=>{if(p.type==="rule"&&p.selector===h)return m(p,g)}):(m=h,this.walk((p,g)=>{if(p.type==="rule")return m(p,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return d.registerParse=f=>{n=f},d.registerRule=f=>{o=f},d.registerAtRule=f=>{u=f},d.registerRoot=f=>{l=f},Cs=d,d.default=d,d.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,u.prototype):f.type==="rule"?Object.setPrototypeOf(f,o.prototype):f.type==="decl"?Object.setPrototypeOf(f,r.prototype):f.type==="comment"?Object.setPrototypeOf(f,i.prototype):f.type==="root"&&Object.setPrototypeOf(f,l.prototype),f[t]=!0,f.nodes&&f.nodes.forEach(h=>{d.rebuild(h)})},Cs}var xs,ha;function fo(){if(ha)return xs;ha=1;let e=fr(),t,r;class i extends e{constructor(n){super(H({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},xs=i,i.default=i,xs}var Rs,da;function ku(){if(da)return Rs;da=1;let e={};return Rs=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},Rs}var Ms,pa;function Iu(){if(pa)return Ms;pa=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 Ms=e,e.default=e,Ms}var Ns,ma;function ho(){if(ma)return Ns;ma=1;let e=Iu();class t{constructor(i,s,n){this.processor=i,this.messages=[],this.root=s,this.opts=n,this.css=void 0,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")}get content(){return this.css}}return Ns=t,t.default=t,Ns}var Os,ga;function Eh(){if(ga)return Os;ga=1;const e=39,t=34,r=92,i=47,s=10,n=32,o=12,u=9,l=13,c=91,a=93,d=40,f=41,h=123,m=125,p=59,g=42,y=58,b=64,_=/[\t\n\f\r "#'()/;[\\\]{}]/g,S=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return Os=function(C,A={}){let N=C.css.valueOf(),U=A.ignoreErrors,T,x,me,ve,ie,F,se,Re,j,G,Se=N.length,O=0,ye=[],P=[];function B(){return O}function X(Z){throw C.error("Unclosed "+Z,O)}function k(){return P.length===0&&O>=Se}function oe(Z){if(P.length)return P.pop();if(O>=Se)return;let De=Z?Z.ignoreUnclosed:!1;switch(T=N.charCodeAt(O),T){case s:case n:case u:case l:case o:{x=O;do x+=1,T=N.charCodeAt(x);while(T===n||T===s||T===u||T===l||T===o);G=["space",N.slice(O,x)],O=x-1;break}case c:case a:case h:case m:case y:case p:case f:{let ht=String.fromCharCode(T);G=[ht,ht,O];break}case d:{if(Re=ye.length?ye.pop()[1]:"",j=N.charCodeAt(O+1),Re==="url"&&j!==e&&j!==t&&j!==n&&j!==s&&j!==u&&j!==o&&j!==l){x=O;do{if(F=!1,x=N.indexOf(")",x+1),x===-1)if(U||De){x=O;break}else X("bracket");for(se=x;N.charCodeAt(se-1)===r;)se-=1,F=!F}while(F);G=["brackets",N.slice(O,x+1),O,x],O=x}else x=N.indexOf(")",O+1),ve=N.slice(O,x+1),x===-1||v.test(ve)?G=["(","(",O]:(G=["brackets",ve,O,x],O=x);break}case e:case t:{me=T===e?"'":'"',x=O;do{if(F=!1,x=N.indexOf(me,x+1),x===-1)if(U||De){x=O+1;break}else X("string");for(se=x;N.charCodeAt(se-1)===r;)se-=1,F=!F}while(F);G=["string",N.slice(O,x+1),O,x],O=x;break}case b:{_.lastIndex=O+1,_.test(N),_.lastIndex===0?x=N.length-1:x=_.lastIndex-2,G=["at-word",N.slice(O,x+1),O,x],O=x;break}case r:{for(x=O,ie=!0;N.charCodeAt(x+1)===r;)x+=1,ie=!ie;if(T=N.charCodeAt(x+1),ie&&T!==i&&T!==n&&T!==s&&T!==u&&T!==l&&T!==o&&(x+=1,w.test(N.charAt(x)))){for(;w.test(N.charAt(x+1));)x+=1;N.charCodeAt(x+1)===n&&(x+=1)}G=["word",N.slice(O,x+1),O,x],O=x;break}default:{T===i&&N.charCodeAt(O+1)===g?(x=N.indexOf("*/",O+2)+1,x===0&&(U||De?x=N.length:X("comment")),G=["comment",N.slice(O,x+1),O,x],O=x):(S.lastIndex=O+1,S.test(N),S.lastIndex===0?x=N.length-1:x=S.lastIndex-2,G=["word",N.slice(O,x+1),O,x],ye.push(G),O=x);break}}return O++,G}function ne(Z){P.push(Z)}return{back:ne,endOfFile:k,nextToken:oe,position:B}},Os}var As,va;function po(){if(va)return As;va=1;let e=fr();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 As=t,t.default=t,e.registerAtRule(t),As}var Ds,ya;function oi(){if(ya)return Ds;ya=1;let e=fr(),t,r;class i extends e{constructor(n){super(n),this.type="root",this.nodes||(this.nodes=[])}normalize(n,o,u){let l=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 c of l)c.raws.before=o.raws.before}return l}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},Ds=i,i.default=i,e.registerRoot(i),Ds}var Ts,wa;function Lu(){if(wa)return Ts;wa=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
40
|
-
`," "];return e.split(t,r)},split(t,r,i){let s=[],n="",o=!1,u=0,l=!1,c="",a=!1;for(let d of t)a?a=!1:d==="\\"?a=!0:l?d===c&&(l=!1):d==='"'||d==="'"?(l=!0,c=d):d==="("?u+=1:d===")"?u>0&&(u-=1):u===0&&r.includes(d)&&(o=!0),o?(n!==""&&s.push(n.trim()),n="",o=!1):n+=d;return(i||n!=="")&&s.push(n.trim()),s}};return Ts=e,e.default=e,Ts}var Ps,ba;function mo(){if(ba)return Ps;ba=1;let e=fr(),t=Lu();class r extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}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)}}return Ps=r,r.default=r,e.registerRule(r),Ps}var ks,_a;function Ch(){if(_a)return ks;_a=1;let e=Zi(),t=Eh(),r=ts(),i=po(),s=oi(),n=mo();const o={empty:!0,space:!0};function u(c){for(let a=c.length-1;a>=0;a--){let d=c[a],f=d[3]||d[2];if(f)return f}}class l{constructor(a){this.input=a,this.root=new s,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 d=new i;d.name=a[1].slice(1),d.name===""&&this.unnamedAtrule(d,a),this.init(d,a[2]);let f,h,m,p=!1,g=!1,y=[],b=[];for(;!this.tokenizer.endOfFile();){if(a=this.tokenizer.nextToken(),f=a[0],f==="("||f==="["?b.push(f==="("?")":"]"):f==="{"&&b.length>0?b.push("}"):f===b[b.length-1]&&b.pop(),b.length===0)if(f===";"){d.source.end=this.getPosition(a[2]),d.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(y.length>0){for(m=y.length-1,h=y[m];h&&h[0]==="space";)h=y[--m];h&&(d.source.end=this.getPosition(h[3]||h[2]),d.source.end.offset++)}this.end(a);break}else y.push(a);else y.push(a);if(this.tokenizer.endOfFile()){p=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(y),y.length?(d.raws.afterName=this.spacesAndCommentsFromStart(y),this.raw(d,"params",y),p&&(a=y[y.length-1],d.source.end=this.getPosition(a[3]||a[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(a){let d=this.colon(a);if(d===!1)return;let f=0,h;for(let m=d-1;m>=0&&(h=a[m],!(h[0]!=="space"&&(f+=1,f===2)));m--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(a){let d=0,f,h,m;for(let[p,g]of a.entries()){if(f=g,h=f[0],h==="("&&(d+=1),h===")"&&(d-=1),d===0&&h===":")if(!m)this.doubleColon(f);else{if(m[0]==="word"&&m[1]==="progid")continue;return p}m=f}return!1}comment(a){let d=new r;this.init(d,a[2]),d.source.end=this.getPosition(a[3]||a[2]),d.source.end.offset++;let f=a[1].slice(2,-2);if(/^\s*$/.test(f))d.text="",d.raws.left=f,d.raws.right="";else{let h=f.match(/^(\s*)([^]*\S)(\s*)$/);d.text=h[2],d.raws.left=h[1],d.raws.right=h[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(a,d){let f=new e;this.init(f,a[0][2]);let h=a[a.length-1];for(h[0]===";"&&(this.semicolon=!0,a.pop()),f.source.end=this.getPosition(h[3]||h[2]||u(a)),f.source.end.offset++;a[0][0]!=="word";)a.length===1&&this.unknownWord(a),f.raws.before+=a.shift()[1];for(f.source.start=this.getPosition(a[0][2]),f.prop="";a.length;){let b=a[0][0];if(b===":"||b==="space"||b==="comment")break;f.prop+=a.shift()[1]}f.raws.between="";let m;for(;a.length;)if(m=a.shift(),m[0]===":"){f.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let p=[],g;for(;a.length&&(g=a[0][0],!(g!=="space"&&g!=="comment"));)p.push(a.shift());this.precheckMissedSemicolon(a);for(let b=a.length-1;b>=0;b--){if(m=a[b],m[1].toLowerCase()==="!important"){f.important=!0;let _=this.stringFrom(a,b);_=this.spacesFromEnd(a)+_,_!==" !important"&&(f.raws.important=_);break}else if(m[1].toLowerCase()==="important"){let _=a.slice(0),S="";for(let v=b;v>0;v--){let w=_[v][0];if(S.trim().indexOf("!")===0&&w!=="space")break;S=_.pop()[1]+S}S.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=S,a=_)}if(m[0]!=="space"&&m[0]!=="comment")break}a.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(f.raws.between+=p.map(b=>b[1]).join(""),p=[]),this.raw(f,"value",p.concat(a),d),f.value.includes(":")&&!d&&this.checkMissedSemicolon(a)}doubleColon(a){throw this.input.error("Double colon",{offset:a[2]},{offset:a[2]+a[1].length})}emptyRule(a){let d=new n;this.init(d,a[2]),d.selector="",d.raws.between="",this.current=d}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 d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(a){let d=this.input.fromOffset(a);return{column:d.col,line:d.line,offset:a}}init(a,d){this.current.push(a),a.source={input:this.input,start:this.getPosition(d)},a.raws.before=this.spaces,this.spaces="",a.type!=="comment"&&(this.semicolon=!1)}other(a){let d=!1,f=null,h=!1,m=null,p=[],g=a[1].startsWith("--"),y=[],b=a;for(;b;){if(f=b[0],y.push(b),f==="("||f==="[")m||(m=b),p.push(f==="("?")":"]");else if(g&&h&&f==="{")m||(m=b),p.push("}");else if(p.length===0)if(f===";")if(h){this.decl(y,g);return}else break;else if(f==="{"){this.rule(y);return}else if(f==="}"){this.tokenizer.back(y.pop()),d=!0;break}else f===":"&&(h=!0);else f===p[p.length-1]&&(p.pop(),p.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),p.length>0&&this.unclosedBracket(m),d&&h){if(!g)for(;y.length&&(b=y[y.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(y.pop());this.decl(y,g)}else this.unknownWord(y)}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,d,f,h){let m,p,g=f.length,y="",b=!0,_,S;for(let v=0;v<g;v+=1)m=f[v],p=m[0],p==="space"&&v===g-1&&!h?b=!1:p==="comment"?(S=f[v-1]?f[v-1][0]:"empty",_=f[v+1]?f[v+1][0]:"empty",!o[S]&&!o[_]?y.slice(-1)===","?b=!1:y+=m[1]:b=!1):y+=m[1];if(!b){let v=f.reduce((w,E)=>w+E[1],"");a.raws[d]={raw:v,value:y}}a[d]=y}rule(a){a.pop();let d=new n;this.init(d,a[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(a),this.raw(d,"selector",a),this.current=d}spacesAndCommentsFromEnd(a){let d,f="";for(;a.length&&(d=a[a.length-1][0],!(d!=="space"&&d!=="comment"));)f=a.pop()[1]+f;return f}spacesAndCommentsFromStart(a){let d,f="";for(;a.length&&(d=a[0][0],!(d!=="space"&&d!=="comment"));)f+=a.shift()[1];return f}spacesFromEnd(a){let d,f="";for(;a.length&&(d=a[a.length-1][0],d==="space");)f=a.pop()[1]+f;return f}stringFrom(a,d){let f="";for(let h=d;h<a.length;h++)f+=a[h][1];return a.splice(d,a.length-d),f}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",{offset:a[0][2]},{offset:a[0][2]+a[0][1].length})}unnamedAtrule(a,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return ks=l,ks}var Is,Sa;function go(){if(Sa)return Is;Sa=1;let e=fr(),t=Ch(),r=es();function i(s,n){let o=new r(s,n),u=new t(o);try{u.parse()}catch(l){throw l}return u.root}return Is=i,i.default=i,e.registerParse(i),Is}var Ls,Ea;function Fu(){if(Ea)return Ls;Ea=1;let{isClean:e,my:t}=co(),r=Pu(),i=Qi(),s=fr(),n=fo(),o=ku(),u=ho(),l=go(),c=oi();const a={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function m(S){return typeof S=="object"&&typeof S.then=="function"}function p(S){let v=!1,w=a[S.type];return S.type==="decl"?v=S.prop.toLowerCase():S.type==="atrule"&&(v=S.name.toLowerCase()),v&&S.append?[w,w+"-"+v,h,w+"Exit",w+"Exit-"+v]:v?[w,w+"-"+v,w+"Exit",w+"Exit-"+v]:S.append?[w,h,w+"Exit"]:[w,w+"Exit"]}function g(S){let v;return S.type==="document"?v=["Document",h,"DocumentExit"]:S.type==="root"?v=["Root",h,"RootExit"]:v=p(S),{eventIndex:0,events:v,iterator:0,node:S,visitorIndex:0,visitors:[]}}function y(S){return S[e]=!1,S.nodes&&S.nodes.forEach(v=>y(v)),S}let b={};class _{constructor(v,w,E){this.stringified=!1,this.processed=!1;let C;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))C=y(w);else if(w instanceof _||w instanceof u)C=y(w.root),w.map&&(typeof E.map=="undefined"&&(E.map={}),E.map.inline||(E.map.inline=!1),E.map.prev=w.map);else{let A=l;E.syntax&&(A=E.syntax.parse),E.parser&&(A=E.parser),A.parse&&(A=A.parse);try{C=A(w,E)}catch(N){this.processed=!0,this.error=N}C&&!C[t]&&s.rebuild(C)}this.result=new u(v,C,E),this.helpers=ge(H({},b),{postcss:b,result:this.result}),this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?H(H({},A),A.prepare(this.result)):A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,w){let E=this.result.lastPlugin;try{w&&w.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=E.postcssPlugin,v.setMessage()):E.postcssVersion}catch(C){console&&console.error&&console.error(C)}return v}prepareVisitors(){this.listeners={};let v=(w,E,C)=>{this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push([w,C])};for(let w of this.plugins)if(typeof w=="object")for(let E in w){if(!d[E]&&/^[A-Z]/.test(E))throw new Error(`Unknown event ${E} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[E])if(typeof w[E]=="object")for(let C in w[E])C==="*"?v(w,E,w[E][C]):v(w,E+"-"+C.toLowerCase(),w[E][C]);else typeof w[E]=="function"&&v(w,E,w[E])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let w=this.plugins[v],E=this.runOnRoot(w);if(m(E))try{await E}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];){v[e]=!0;let w=[g(v)];for(;w.length>0;){let E=this.visitTick(w);if(m(E))try{await E}catch(C){let A=w[w.length-1].node;throw this.handleError(C,A)}}}if(this.listeners.OnceExit)for(let[w,E]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(v.type==="document"){let C=v.nodes.map(A=>E(A,this.helpers));await Promise.all(C)}else await E(v,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(E=>v.Once(E,this.helpers));return m(w[0])?Promise.all(w):w}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let v=this.result.opts,w=i;v.syntax&&(w=v.syntax.stringify),v.stringifier&&(w=v.stringifier),w.stringify&&(w=w.stringify);let C=new r(w,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 v of this.plugins){let w=this.runOnRoot(v);if(m(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];)v[e]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let w of v.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,w){return this.async().then(v,w)}toString(){return this.css}visitSync(v,w){for(let[E,C]of v){this.result.lastPlugin=E;let A;try{A=C(w,this.helpers)}catch(N){throw this.handleError(N,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(m(A))throw this.getAsyncError()}}visitTick(v){let w=v[v.length-1],{node:E,visitors:C}=w;if(E.type!=="root"&&E.type!=="document"&&!E.parent){v.pop();return}if(C.length>0&&w.visitorIndex<C.length){let[N,U]=C[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===C.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=N;try{return U(E.toProxy(),this.helpers)}catch(T){throw this.handleError(T,E)}}if(w.iterator!==0){let N=w.iterator,U;for(;U=E.nodes[E.indexes[N]];)if(E.indexes[N]+=1,!U[e]){U[e]=!0,v.push(g(U));return}w.iterator=0,delete E.indexes[N]}let A=w.events;for(;w.eventIndex<A.length;){let N=A[w.eventIndex];if(w.eventIndex+=1,N===h){E.nodes&&E.nodes.length&&(E[e]=!0,w.iterator=E.getIterator());return}else if(this.listeners[N]){w.visitors=this.listeners[N];return}}v.pop()}walkSync(v){v[e]=!0;let w=p(v);for(let E of w)if(E===h)v.nodes&&v.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[E];if(C&&this.visitSync(C,v.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return _.registerPostcss=S=>{b=S},Ls=_,_.default=_,c.registerLazyResult(_),n.registerLazyResult(_),Ls}var Fs,Ca;function xh(){if(Ca)return Fs;Ca=1;let e=Pu(),t=Qi(),r=ku(),i=go();const s=ho();class n{constructor(u,l,c){l=l.toString(),this.stringified=!1,this._processor=u,this._css=l,this._opts=c,this._map=void 0;let a,d=t;this.result=new s(this._processor,a,this._opts),this.result.css=l;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let h=new e(d,a,this._opts,l);if(h.isMap()){let[m,p]=h.generate();m&&(this.result.css=m),p&&(this.result.map=p)}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,l){return this.async().then(u,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let u,l=i;try{u=l(this._css,this._opts)}catch(c){this.error=c}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}}return Fs=n,n.default=n,Fs}var Us,xa;function Rh(){if(xa)return Us;xa=1;let e=xh(),t=Fu(),r=fo(),i=oi();class s{constructor(o=[]){this.version="8.4.38",this.plugins=this.normalize(o)}normalize(o){let u=[];for(let l of o)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))u=u.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)u.push(l);else if(typeof l=="function")u.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return u}process(o,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new e(this,o,u):new t(this,o,u)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return Us=s,s.default=s,i.registerProcessor(s),r.registerProcessor(s),Us}var Bs,Ra;function Mh(){if(Ra)return Bs;Ra=1;let e=Zi(),t=Tu(),r=ts(),i=po(),s=es(),n=oi(),o=mo();function u(l,c){if(Array.isArray(l))return l.map(m=>u(m));let f=l,{inputs:a}=f,d=Br(f,["inputs"]);if(a){c=[];for(let m of a){let p=ge(H({},m),{__proto__:s.prototype});p.map&&(p.map=ge(H({},p.map),{__proto__:t.prototype})),c.push(p)}}if(d.nodes&&(d.nodes=l.nodes.map(m=>u(m,c))),d.source){let h=d.source,{inputId:m}=h,p=Br(h,["inputId"]);d.source=p,m!=null&&(d.source.input=c[m])}if(d.type==="root")return new n(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new o(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new i(d);throw new Error("Unknown node type: "+l.type)}return Bs=u,u.default=u,Bs}var Ws,Ma;function Nh(){if(Ma)return Ws;Ma=1;let e=uo(),t=Zi(),r=Fu(),i=fr(),s=Rh(),n=Qi(),o=Mh(),u=fo(),l=Iu(),c=ts(),a=po(),d=ho(),f=es(),h=go(),m=Lu(),p=mo(),g=oi(),y=Ki();function b(..._){return _.length===1&&Array.isArray(_[0])&&(_=_[0]),new s(_)}return b.plugin=function(S,v){let w=!1;function E(...A){console&&console.warn&&!w&&(w=!0,console.warn(S+`: postcss.plugin was deprecated. Migration guide:
|
|
41
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(
|
|
42
|
-
https://www.w3ctech.com/topic/2226`));let N=v(...A);return N.postcssPlugin=S,N.postcssVersion=new s().version,N}let C;return Object.defineProperty(E,"postcss",{get(){return C||(C=E()),C}}),E.process=function(A,N,U){return b([E(U)]).process(A,N)},E},b.stringify=n,b.parse=h,b.fromJSON=o,b.list=m,b.comment=_=>new c(_),b.atRule=_=>new a(_),b.decl=_=>new t(_),b.rule=_=>new p(_),b.root=_=>new g(_),b.document=_=>new u(_),b.CssSyntaxError=e,b.Declaration=t,b.Container=i,b.Processor=s,b.Document=u,b.Comment=c,b.Warning=l,b.AtRule=a,b.Result=d,b.Input=f,b.Rule=p,b.Root=g,b.Node=y,r.registerPostcss(b),Ws=b,b.default=b,Ws}var Oh=Nh();const le=vh(Oh);le.stringify;le.fromJSON;le.plugin;le.parse;le.list;le.document;le.comment;le.atRule;le.rule;le.decl;le.root;le.CssSyntaxError;le.Declaration;le.Container;le.Processor;le.Document;le.Comment;le.Warning;le.AtRule;le.Result;le.Input;le.Rule;le.Root;le.Node;const Ah=["webview"],Na={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 Dh(e){let t=Na[e.tagName]?Na[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function rs(e,t){const r=t==null?void 0:t.stylesWithHoverClass.get(e);if(r)return r;let i=e;try{i=le([mh,gh]).process(e).css}catch(s){console.warn("Failed to adapt css for replay",s)}return t==null||t.stylesWithHoverClass.set(e,i),i}function Oa(){return{stylesWithHoverClass:new Map}}function Th(e,t,r,i){const s=[];for(const o of e.childNodes)o.type===pe.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],l=n[o];u&&l&&(u.textContent=r?rs(l,i):l)}}function Ph(e,t,r,i){const{doc:s,hackCss:n,cache:o}=i;e.childNodes.length?Th(e,r,n,o):(n&&(r=rs(r,o)),t.appendChild(s.createTextNode(r)))}function kh(e,t){var r;const{doc:i,hackCss:s,cache:n}=t;switch(e.type){case pe.Document:return i.implementation.createDocument(null,"",null);case pe.DocumentType:return i.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case pe.Element:{const o=Dh(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)&&!Ah.includes(e.tagName)&&i.defaultView.customElements.define(e.tagName,class extends i.defaultView.HTMLElement{}),u=i.createElement(o));const l={};for(const c in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,c))continue;let a=e.attributes[c];if(!(o==="option"&&c==="selected"&&a===!1)&&a!==null){if(a===!0&&(a=""),c.startsWith("rr_")){l[c]=a;continue}if(typeof a=="string"){if(o==="style"&&c==="_cssText"){Ph(e,u,a,t);continue}else if(o==="textarea"&&c==="value"){u.appendChild(i.createTextNode(a)),e.childNodes=[];continue}}try{if(e.isSVG&&c==="xlink:href")u.setAttributeNS("http://www.w3.org/1999/xlink",c,a.toString());else if(c==="onload"||c==="onclick"||c.substring(0,7)==="onmouse")u.setAttribute("_"+c,a.toString());else if(o==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&c==="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(c,a.toString()))}catch(d){}}}for(const c in l){const a=l[c];if(o==="canvas"&&c==="rr_dataURL"){const d=i.createElement("img");d.onload=()=>{const f=u.getContext("2d");f&&f.drawImage(d,0,0,d.width,d.height)},d.src=a.toString(),u.RRNodeType&&(u.rr_dataURL=a.toString())}else if(o==="img"&&c==="rr_dataURL"){const d=u;d.currentSrc.startsWith("data:")||(d.setAttribute("rrweb-original-src",e.attributes.src),d.src=a.toString())}if(c==="rr_width")u.style.setProperty("width",a.toString());else if(c==="rr_height")u.style.setProperty("height",a.toString());else if(c==="rr_background_color")u.style.setProperty("background-color",a.toString());else if(c==="rr_mediaCurrentTime"&&typeof a=="number")u.currentTime=a;else if(c==="rr_mediaState")switch(a){case"played":u.play().catch(d=>console.warn("media playback error",d));break;case"paused":u.pause();break}else c==="rr_mediaPlaybackRate"&&typeof a=="number"?u.playbackRate=a:c==="rr_mediaMuted"&&typeof a=="boolean"?u.muted=a:c==="rr_mediaLoop"&&typeof a=="boolean"?u.loop=a:c==="rr_mediaVolume"&&typeof a=="number"?u.volume=a:c==="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 pe.Text:return e.isStyle&&s?i.createTextNode(rs(e.textContent,n)):i.createTextNode(e.textContent);case pe.CDATA:return i.createCDATASection(e.textContent);case pe.Comment:return i.createComment(e.textContent);default:return null}}function Qr(e,t){const{doc:r,mirror:i,skipChild:s=!1,hackCss:n=!0,afterAppend:o,cache:u}=t;if(i.has(e.id)){const c=i.getNode(e.id),a=i.getMeta(c);if(dh(a,e))return i.getNode(e.id)}let l=kh(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===pe.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==pe.DocumentType&&(e.childNodes[0].type===pe.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),(e.type===pe.Document||e.type===pe.Element)&&!s)for(const c of e.childNodes){const a=Qr(c,{doc:r,mirror:i,skipChild:!1,hackCss:n,afterAppend:o,cache:u});if(!a){console.warn("Failed to rebuild",c);continue}if(c.isShadow&&fh(l)&&l.shadowRoot)l.shadowRoot.appendChild(a);else if(e.type===pe.Document&&c.type==pe.Element){const d=a;let f=null;d.childNodes.forEach(h=>{h.nodeName==="BODY"&&(f=h)}),f?(d.removeChild(f),l.appendChild(a),d.appendChild(f)):l.appendChild(a)}else l.appendChild(a);o&&o(a,c.id)}return l}function Ih(e,t){function r(i){t(i)}for(const i of e.getIds())e.has(i)&&r(e.getNode(i))}function Lh(e,t){const r=t.getMeta(e);if((r==null?void 0:r.type)!==pe.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 Fh(e,t){const{doc:r,onVisit:i,hackCss:s=!0,afterAppend:n,cache:o,mirror:u=new Ou}=t,l=Qr(e,{doc:r,mirror:u,skipChild:!1,hackCss:s,afterAppend:n,cache:o});return Ih(u,c=>{i&&i(c),Lh(c,u)}),l}var Uh=Object.defineProperty,Bh=(e,t,r)=>t in e?Uh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,D=(e,t,r)=>Bh(e,typeof t!="symbol"?t+"":t,r),Wh=Object.defineProperty,qh=(e,t,r)=>t in e?Wh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Aa=(e,t,r)=>qh(e,typeof t!="symbol"?t+"":t,r);let zh=class{constructor(){Aa(this,"idNodeMap",new Map),Aa(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 $h(){return new zh}function Vh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jh(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 mi={exports:{}},Da;function Gh(){if(Da)return mi.exports;Da=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}};return mi.exports=t(),mi.exports.createColors=t,mi.exports}const Hh={},Yh=Object.freeze(Object.defineProperty({__proto__:null,default:Hh},Symbol.toStringTag,{value:"Module"})),at=jh(Yh);var qs,Ta;function vo(){if(Ta)return qs;Ta=1;let e=Gh(),t=at;class r extends Error{constructor(s,n,o,u,l,c){super(s),this.name="CssSyntaxError",this.reason=s,l&&(this.file=l),u&&(this.source=u),c&&(this.plugin=c),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),t&&s&&(n=t(n));let o=n.split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,o.length),c=String(l).length,a,d;if(s){let{bold:f,gray:h,red:m}=e.createColors(!0);a=p=>f(m(p)),d=p=>h(p)}else a=d=f=>f;return o.slice(u,l).map((f,h)=>{let m=u+1+h,p=" "+(" "+m).slice(-c)+" | ";if(m===this.line){let g=d(p.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+d(p)+f+`
|
|
43
|
-
`+g+
|
|
37
|
+
`)&&(d=`\r
|
|
38
|
+
`),this.css+=d+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let d=this.toUrl(this.path(f.file)),m=f.root||r(f.file),p;this.mapOpts.sourcesContent===!1?(p=new e(f.text),p.sourcesContent&&(p.sourcesContent=null)):p=f.consumer(),this.map.applySourceMap(p,d,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let d=this.root.nodes.length-1;d>=0;d--)f=this.root.nodes[d],f.type==="comment"&&f.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(d)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&a&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,d=>{f+=d}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=t.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new t({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 t({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,d=1,m="<no source>",p={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,v;this.stringify(this.root,(w,_,E)=>{if(this.css+=w,_&&E!=="end"&&(p.generated.line=f,p.generated.column=d-1,_.source&&_.source.start?(p.source=this.sourcePath(_),p.original.line=_.source.start.line,p.original.column=_.source.start.column-1,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,this.map.addMapping(p))),g=w.match(/\n/g),g?(f+=g.length,v=w.lastIndexOf(`
|
|
39
|
+
`),d=w.length-v):d+=w.length,_&&E!=="start"){let y=_.parent||{raws:{}};(!(_.type==="decl"||_.type==="atrule"&&!_.nodes)||_!==y.last||y.raws.semicolon)&&(_.source&&_.source.end?(p.source=this.sourcePath(_),p.original.line=_.source.end.line,p.original.column=_.source.end.column-1,p.generated.line=f,p.generated.column=d-2,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,p.generated.line=f,p.generated.column=d-1,this.map.addMapping(p)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f!="undefined"&&f!==!0?!1:this.previous().length?this.previous().some(d=>d.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let d=this.memoizedPaths.get(f);if(d)return d;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(s(m,this.mapOpts.annotation)));let p=i(m,f);return this.memoizedPaths.set(f,p),p}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let d=f.source.input.map;this.previousMaps.includes(d)||this.previousMaps.push(d)}});else{let f=new u(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(d=>{if(d.source){let m=d.source.input.from;if(m&&!f[m]){f[m]=!0;let p=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(p,d.source.input.css)}}});else if(this.css){let d=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(d,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let d=this.memoizedFileURLs.get(f);if(d)return d;if(o){let m=o(f).toString();return this.memoizedFileURLs.set(f,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let d=this.memoizedURLs.get(f);if(d)return d;n==="\\"&&(f=f.replace(/\\/g,"/"));let m=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,m),m}}return Is=l,Is}var Ls,La;function fs(){if(La)return Ls;La=1;let e=ls();class t extends e{constructor(i){super(i),this.type="comment"}}return Ls=t,t.default=t,Ls}var Fs,Fa;function pr(){if(Fa)return Fs;Fa=1;let{isClean:e,my:t}=Do(),r=us(),i=fs(),s=ls(),n,o,u,a;function c(f){return f.map(d=>(d.nodes&&(d.nodes=c(d.nodes)),delete d.source,d))}function l(f){if(f[e]=!1,f.proxyOf.nodes)for(let d of f.proxyOf.nodes)l(d)}class h extends s{append(...d){for(let m of d){let p=this.normalize(m,this.last);for(let g of p)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(d){if(super.cleanRaws(d),this.nodes)for(let m of this.nodes)m.cleanRaws(d)}each(d){if(!this.proxyOf.nodes)return;let m=this.getIterator(),p,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(p=this.indexes[m],g=d(this.proxyOf.nodes[p],p),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(d){return this.nodes.every(d)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let d=this.lastEach;return this.indexes[d]=0,d}getProxyProcessor(){return{get(d,m){return m==="proxyOf"?d:d[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...p)=>d[m](...p.map(g=>typeof g=="function"?(v,w)=>g(v.toProxy(),w):g)):m==="every"||m==="some"?p=>d[m]((g,...v)=>p(g.toProxy(),...v)):m==="root"?()=>d.root().toProxy():m==="nodes"?d.nodes.map(p=>p.toProxy()):m==="first"||m==="last"?d[m].toProxy():d[m]:d[m]},set(d,m,p){return d[m]===p||(d[m]=p,(m==="name"||m==="params"||m==="selector")&&d.markDirty()),!0}}}index(d){return typeof d=="number"?d:(d.proxyOf&&(d=d.proxyOf),this.proxyOf.nodes.indexOf(d))}insertAfter(d,m){let p=this.index(d),g=this.normalize(m,this.proxyOf.nodes[p]).reverse();p=this.index(d);for(let w of g)this.proxyOf.nodes.splice(p+1,0,w);let v;for(let w in this.indexes)v=this.indexes[w],p<v&&(this.indexes[w]=v+g.length);return this.markDirty(),this}insertBefore(d,m){let p=this.index(d),g=p===0?"prepend":!1,v=this.normalize(m,this.proxyOf.nodes[p],g).reverse();p=this.index(d);for(let _ of v)this.proxyOf.nodes.splice(p,0,_);let w;for(let _ in this.indexes)w=this.indexes[_],p<=w&&(this.indexes[_]=w+v.length);return this.markDirty(),this}normalize(d,m){if(typeof d=="string")d=c(n(d).nodes);else if(typeof d=="undefined")d=[];else if(Array.isArray(d)){d=d.slice(0);for(let g of d)g.parent&&g.parent.removeChild(g,"ignore")}else if(d.type==="root"&&this.type!=="document"){d=d.nodes.slice(0);for(let g of d)g.parent&&g.parent.removeChild(g,"ignore")}else if(d.type)d=[d];else if(d.prop){if(typeof d.value=="undefined")throw new Error("Value field is missed in node creation");typeof d.value!="string"&&(d.value=String(d.value)),d=[new r(d)]}else if(d.selector)d=[new o(d)];else if(d.name)d=[new u(d)];else if(d.text)d=[new i(d)];else throw new Error("Unknown node type in node creation");return d.map(g=>(g[t]||h.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&l(g),typeof g.raws.before=="undefined"&&m&&typeof m.raws.before!="undefined"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...d){d=d.reverse();for(let m of d){let p=this.normalize(m,this.first,"prepend").reverse();for(let g of p)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+p.length}return this.markDirty(),this}push(d){return d.parent=this,this.proxyOf.nodes.push(d),this}removeAll(){for(let d of this.proxyOf.nodes)d.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(d){d=this.index(d),this.proxyOf.nodes[d].parent=void 0,this.proxyOf.nodes.splice(d,1);let m;for(let p in this.indexes)m=this.indexes[p],m>=d&&(this.indexes[p]=m-1);return this.markDirty(),this}replaceValues(d,m,p){return p||(p=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(d,p))}),this.markDirty(),this}some(d){return this.nodes.some(d)}walk(d){return this.each((m,p)=>{let g;try{g=d(m,p)}catch(v){throw m.addToError(v)}return g!==!1&&m.walk&&(g=m.walk(d)),g})}walkAtRules(d,m){return m?d instanceof RegExp?this.walk((p,g)=>{if(p.type==="atrule"&&d.test(p.name))return m(p,g)}):this.walk((p,g)=>{if(p.type==="atrule"&&p.name===d)return m(p,g)}):(m=d,this.walk((p,g)=>{if(p.type==="atrule")return m(p,g)}))}walkComments(d){return this.walk((m,p)=>{if(m.type==="comment")return d(m,p)})}walkDecls(d,m){return m?d instanceof RegExp?this.walk((p,g)=>{if(p.type==="decl"&&d.test(p.prop))return m(p,g)}):this.walk((p,g)=>{if(p.type==="decl"&&p.prop===d)return m(p,g)}):(m=d,this.walk((p,g)=>{if(p.type==="decl")return m(p,g)}))}walkRules(d,m){return m?d instanceof RegExp?this.walk((p,g)=>{if(p.type==="rule"&&d.test(p.selector))return m(p,g)}):this.walk((p,g)=>{if(p.type==="rule"&&p.selector===d)return m(p,g)}):(m=d,this.walk((p,g)=>{if(p.type==="rule")return m(p,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return h.registerParse=f=>{n=f},h.registerRule=f=>{o=f},h.registerAtRule=f=>{u=f},h.registerRoot=f=>{a=f},Fs=h,h.default=h,h.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,u.prototype):f.type==="rule"?Object.setPrototypeOf(f,o.prototype):f.type==="decl"?Object.setPrototypeOf(f,r.prototype):f.type==="comment"?Object.setPrototypeOf(f,i.prototype):f.type==="root"&&Object.setPrototypeOf(f,a.prototype),f[t]=!0,f.nodes&&f.nodes.forEach(d=>{h.rebuild(d)})},Fs}var Us,Ua;function To(){if(Ua)return Us;Ua=1;let e=pr(),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},Us=i,i.default=i,Us}var Bs,Ba;function oc(){if(Ba)return Bs;Ba=1;let e={};return Bs=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},Bs}var $s,$a;function ac(){if($a)return $s;$a=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 $s=e,e.default=e,$s}var Ws,Wa;function ko(){if(Wa)return Ws;Wa=1;let e=ac();class t{constructor(i,s,n){this.processor=i,this.messages=[],this.root=s,this.opts=n,this.css=void 0,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")}get content(){return this.css}}return Ws=t,t.default=t,Ws}var zs,za;function jd(){if(za)return zs;za=1;const e=39,t=34,r=92,i=47,s=10,n=32,o=12,u=9,a=13,c=91,l=93,h=40,f=41,d=123,m=125,p=59,g=42,v=58,w=64,_=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return zs=function(C,O={}){let N=C.css.valueOf(),F=O.ignoreErrors,T,x,oe,L,te,U,$,ge,q,W,Ce=N.length,A=0,be=[],k=[];function j(){return A}function ee(ie){throw C.error("Unclosed "+ie,A)}function P(){return k.length===0&&A>=Ce}function fe(ie){if(k.length)return k.pop();if(A>=Ce)return;let ke=ie?ie.ignoreUnclosed:!1;switch(T=N.charCodeAt(A),T){case s:case n:case u:case a:case o:{x=A;do x+=1,T=N.charCodeAt(x);while(T===n||T===s||T===u||T===a||T===o);W=["space",N.slice(A,x)],A=x-1;break}case c:case l:case d:case m:case v:case p:case f:{let pt=String.fromCharCode(T);W=[pt,pt,A];break}case h:{if(ge=be.length?be.pop()[1]:"",q=N.charCodeAt(A+1),ge==="url"&&q!==e&&q!==t&&q!==n&&q!==s&&q!==u&&q!==o&&q!==a){x=A;do{if(U=!1,x=N.indexOf(")",x+1),x===-1)if(F||ke){x=A;break}else ee("bracket");for($=x;N.charCodeAt($-1)===r;)$-=1,U=!U}while(U);W=["brackets",N.slice(A,x+1),A,x],A=x}else x=N.indexOf(")",A+1),L=N.slice(A,x+1),x===-1||y.test(L)?W=["(","(",A]:(W=["brackets",L,A,x],A=x);break}case e:case t:{oe=T===e?"'":'"',x=A;do{if(U=!1,x=N.indexOf(oe,x+1),x===-1)if(F||ke){x=A+1;break}else ee("string");for($=x;N.charCodeAt($-1)===r;)$-=1,U=!U}while(U);W=["string",N.slice(A,x+1),A,x],A=x;break}case w:{_.lastIndex=A+1,_.test(N),_.lastIndex===0?x=N.length-1:x=_.lastIndex-2,W=["at-word",N.slice(A,x+1),A,x],A=x;break}case r:{for(x=A,te=!0;N.charCodeAt(x+1)===r;)x+=1,te=!te;if(T=N.charCodeAt(x+1),te&&T!==i&&T!==n&&T!==s&&T!==u&&T!==a&&T!==o&&(x+=1,b.test(N.charAt(x)))){for(;b.test(N.charAt(x+1));)x+=1;N.charCodeAt(x+1)===n&&(x+=1)}W=["word",N.slice(A,x+1),A,x],A=x;break}default:{T===i&&N.charCodeAt(A+1)===g?(x=N.indexOf("*/",A+2)+1,x===0&&(F||ke?x=N.length:ee("comment")),W=["comment",N.slice(A,x+1),A,x],A=x):(E.lastIndex=A+1,E.test(N),E.lastIndex===0?x=N.length-1:x=E.lastIndex-2,W=["word",N.slice(A,x+1),A,x],be.push(W),A=x);break}}return A++,W}function ue(ie){k.push(ie)}return{back:ue,endOfFile:P,nextToken:fe,position:j}},zs}var qs,qa;function Po(){if(qa)return qs;qa=1;let e=pr();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 qs=t,t.default=t,e.registerAtRule(t),qs}var js,ja;function di(){if(ja)return js;ja=1;let e=pr(),t,r;class i extends e{constructor(n){super(n),this.type="root",this.nodes||(this.nodes=[])}normalize(n,o,u){let a=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 c of a)c.raws.before=o.raws.before}return a}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},js=i,i.default=i,e.registerRoot(i),js}var Vs,Va;function lc(){if(Va)return Vs;Va=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
40
|
+
`," "];return e.split(t,r)},split(t,r,i){let s=[],n="",o=!1,u=0,a=!1,c="",l=!1;for(let h of t)l?l=!1:h==="\\"?l=!0:a?h===c&&(a=!1):h==='"'||h==="'"?(a=!0,c=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 Vs=e,e.default=e,Vs}var Gs,Ga;function Io(){if(Ga)return Gs;Ga=1;let e=pr(),t=lc();class r extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}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)}}return Gs=r,r.default=r,e.registerRule(r),Gs}var Hs,Ha;function Vd(){if(Ha)return Hs;Ha=1;let e=us(),t=jd(),r=fs(),i=Po(),s=di(),n=Io();const o={empty:!0,space:!0};function u(c){for(let l=c.length-1;l>=0;l--){let h=c[l],f=h[3]||h[2];if(f)return f}}class a{constructor(l){this.input=l,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:l,start:{column:1,line:1,offset:0}}}atrule(l){let h=new i;h.name=l[1].slice(1),h.name===""&&this.unnamedAtrule(h,l),this.init(h,l[2]);let f,d,m,p=!1,g=!1,v=[],w=[];for(;!this.tokenizer.endOfFile();){if(l=this.tokenizer.nextToken(),f=l[0],f==="("||f==="["?w.push(f==="("?")":"]"):f==="{"&&w.length>0?w.push("}"):f===w[w.length-1]&&w.pop(),w.length===0)if(f===";"){h.source.end=this.getPosition(l[2]),h.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(v.length>0){for(m=v.length-1,d=v[m];d&&d[0]==="space";)d=v[--m];d&&(h.source.end=this.getPosition(d[3]||d[2]),h.source.end.offset++)}this.end(l);break}else v.push(l);else v.push(l);if(this.tokenizer.endOfFile()){p=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(h.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(h,"params",v),p&&(l=v[v.length-1],h.source.end=this.getPosition(l[3]||l[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(l){let h=this.colon(l);if(h===!1)return;let f=0,d;for(let m=h-1;m>=0&&(d=l[m],!(d[0]!=="space"&&(f+=1,f===2)));m--);throw this.input.error("Missed semicolon",d[0]==="word"?d[3]+1:d[2])}colon(l){let h=0,f,d,m;for(let[p,g]of l.entries()){if(f=g,d=f[0],d==="("&&(h+=1),d===")"&&(h-=1),h===0&&d===":")if(!m)this.doubleColon(f);else{if(m[0]==="word"&&m[1]==="progid")continue;return p}m=f}return!1}comment(l){let h=new r;this.init(h,l[2]),h.source.end=this.getPosition(l[3]||l[2]),h.source.end.offset++;let f=l[1].slice(2,-2);if(/^\s*$/.test(f))h.text="",h.raws.left=f,h.raws.right="";else{let d=f.match(/^(\s*)([^]*\S)(\s*)$/);h.text=d[2],h.raws.left=d[1],h.raws.right=d[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(l,h){let f=new e;this.init(f,l[0][2]);let d=l[l.length-1];for(d[0]===";"&&(this.semicolon=!0,l.pop()),f.source.end=this.getPosition(d[3]||d[2]||u(l)),f.source.end.offset++;l[0][0]!=="word";)l.length===1&&this.unknownWord(l),f.raws.before+=l.shift()[1];for(f.source.start=this.getPosition(l[0][2]),f.prop="";l.length;){let w=l[0][0];if(w===":"||w==="space"||w==="comment")break;f.prop+=l.shift()[1]}f.raws.between="";let m;for(;l.length;)if(m=l.shift(),m[0]===":"){f.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let p=[],g;for(;l.length&&(g=l[0][0],!(g!=="space"&&g!=="comment"));)p.push(l.shift());this.precheckMissedSemicolon(l);for(let w=l.length-1;w>=0;w--){if(m=l[w],m[1].toLowerCase()==="!important"){f.important=!0;let _=this.stringFrom(l,w);_=this.spacesFromEnd(l)+_,_!==" !important"&&(f.raws.important=_);break}else if(m[1].toLowerCase()==="important"){let _=l.slice(0),E="";for(let y=w;y>0;y--){let b=_[y][0];if(E.trim().indexOf("!")===0&&b!=="space")break;E=_.pop()[1]+E}E.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=E,l=_)}if(m[0]!=="space"&&m[0]!=="comment")break}l.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(f.raws.between+=p.map(w=>w[1]).join(""),p=[]),this.raw(f,"value",p.concat(l),h),f.value.includes(":")&&!h&&this.checkMissedSemicolon(l)}doubleColon(l){throw this.input.error("Double colon",{offset:l[2]},{offset:l[2]+l[1].length})}emptyRule(l){let h=new n;this.init(h,l[2]),h.selector="",h.raws.between="",this.current=h}end(l){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(l[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(l)}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(l){if(this.spaces+=l[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="")}}getPosition(l){let h=this.input.fromOffset(l);return{column:h.col,line:h.line,offset:l}}init(l,h){this.current.push(l),l.source={input:this.input,start:this.getPosition(h)},l.raws.before=this.spaces,this.spaces="",l.type!=="comment"&&(this.semicolon=!1)}other(l){let h=!1,f=null,d=!1,m=null,p=[],g=l[1].startsWith("--"),v=[],w=l;for(;w;){if(f=w[0],v.push(w),f==="("||f==="[")m||(m=w),p.push(f==="("?")":"]");else if(g&&d&&f==="{")m||(m=w),p.push("}");else if(p.length===0)if(f===";")if(d){this.decl(v,g);return}else break;else if(f==="{"){this.rule(v);return}else if(f==="}"){this.tokenizer.back(v.pop()),h=!0;break}else f===":"&&(d=!0);else f===p[p.length-1]&&(p.pop(),p.length===0&&(m=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),p.length>0&&this.unclosedBracket(m),h&&d){if(!g)for(;v.length&&(w=v[v.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,g)}else this.unknownWord(v)}parse(){let l;for(;!this.tokenizer.endOfFile();)switch(l=this.tokenizer.nextToken(),l[0]){case"space":this.spaces+=l[1];break;case";":this.freeSemicolon(l);break;case"}":this.end(l);break;case"comment":this.comment(l);break;case"at-word":this.atrule(l);break;case"{":this.emptyRule(l);break;default:this.other(l);break}this.endFile()}precheckMissedSemicolon(){}raw(l,h,f,d){let m,p,g=f.length,v="",w=!0,_,E;for(let y=0;y<g;y+=1)m=f[y],p=m[0],p==="space"&&y===g-1&&!d?w=!1:p==="comment"?(E=f[y-1]?f[y-1][0]:"empty",_=f[y+1]?f[y+1][0]:"empty",!o[E]&&!o[_]?v.slice(-1)===","?w=!1:v+=m[1]:w=!1):v+=m[1];if(!w){let y=f.reduce((b,S)=>b+S[1],"");l.raws[h]={raw:y,value:v}}l[h]=v}rule(l){l.pop();let h=new n;this.init(h,l[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(l),this.raw(h,"selector",l),this.current=h}spacesAndCommentsFromEnd(l){let h,f="";for(;l.length&&(h=l[l.length-1][0],!(h!=="space"&&h!=="comment"));)f=l.pop()[1]+f;return f}spacesAndCommentsFromStart(l){let h,f="";for(;l.length&&(h=l[0][0],!(h!=="space"&&h!=="comment"));)f+=l.shift()[1];return f}spacesFromEnd(l){let h,f="";for(;l.length&&(h=l[l.length-1][0],h==="space");)f=l.pop()[1]+f;return f}stringFrom(l,h){let f="";for(let d=h;d<l.length;d++)f+=l[d][1];return l.splice(h,l.length-h),f}unclosedBlock(){let l=this.current.source.start;throw this.input.error("Unclosed block",l.line,l.column)}unclosedBracket(l){throw this.input.error("Unclosed bracket",{offset:l[2]},{offset:l[2]+1})}unexpectedClose(l){throw this.input.error("Unexpected }",{offset:l[2]},{offset:l[2]+1})}unknownWord(l){throw this.input.error("Unknown word",{offset:l[0][2]},{offset:l[0][2]+l[0][1].length})}unnamedAtrule(l,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return Hs=a,Hs}var Ys,Ya;function Lo(){if(Ya)return Ys;Ya=1;let e=pr(),t=Vd(),r=cs();function i(s,n){let o=new r(s,n),u=new t(o);try{u.parse()}catch(a){throw a}return u.root}return Ys=i,i.default=i,e.registerParse(i),Ys}var Js,Ja;function uc(){if(Ja)return Js;Ja=1;let{isClean:e,my:t}=Do(),r=nc(),i=as(),s=pr(),n=To(),o=oc(),u=ko(),a=Lo(),c=di();const l={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},f={Once:!0,postcssPlugin:!0,prepare:!0},d=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function p(E){let y=!1,b=l[E.type];return E.type==="decl"?y=E.prop.toLowerCase():E.type==="atrule"&&(y=E.name.toLowerCase()),y&&E.append?[b,b+"-"+y,d,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:E.append?[b,d,b+"Exit"]:[b,b+"Exit"]}function g(E){let y;return E.type==="document"?y=["Document",d,"DocumentExit"]:E.type==="root"?y=["Root",d,"RootExit"]:y=p(E),{eventIndex:0,events:y,iterator:0,node:E,visitorIndex:0,visitors:[]}}function v(E){return E[e]=!1,E.nodes&&E.nodes.forEach(y=>v(y)),E}let w={};class _{constructor(y,b,S){this.stringified=!1,this.processed=!1;let C;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))C=v(b);else if(b instanceof _||b instanceof u)C=v(b.root),b.map&&(typeof S.map=="undefined"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=b.map);else{let O=a;S.syntax&&(O=S.syntax.parse),S.parser&&(O=S.parser),O.parse&&(O=O.parse);try{C=O(b,S)}catch(N){this.processed=!0,this.error=N}C&&!C[t]&&s.rebuild(C)}this.result=new u(y,C,S),this.helpers=we(G({},w),{postcss:w,result:this.result}),this.plugins=this.processor.plugins.map(O=>typeof O=="object"&&O.prepare?G(G({},O),O.prepare(this.result)):O)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(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 S=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=S.postcssPlugin,y.setMessage()):S.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(b,S,C)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([b,C])};for(let b of this.plugins)if(typeof b=="object")for(let S in b){if(!h[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[S])if(typeof b[S]=="object")for(let C in b[S])C==="*"?y(b,S,b[S][C]):y(b,S+"-"+C.toLowerCase(),b[S][C]);else typeof b[S]=="function"&&y(b,S,b[S])}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],S=this.runOnRoot(b);if(m(S))try{await S}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];){y[e]=!0;let b=[g(y)];for(;b.length>0;){let S=this.visitTick(b);if(m(S))try{await S}catch(C){let O=b[b.length-1].node;throw this.handleError(C,O)}}}if(this.listeners.OnceExit)for(let[b,S]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let C=y.nodes.map(O=>S(O,this.helpers));await Promise.all(C)}else await S(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(S=>y.Once(S,this.helpers));return m(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=i;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(m(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];)y[e]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let 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[S,C]of y){this.result.lastPlugin=S;let O;try{O=C(b,this.helpers)}catch(N){throw this.handleError(N,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(m(O))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:S,visitors:C}=b;if(S.type!=="root"&&S.type!=="document"&&!S.parent){y.pop();return}if(C.length>0&&b.visitorIndex<C.length){let[N,F]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=N;try{return F(S.toProxy(),this.helpers)}catch(T){throw this.handleError(T,S)}}if(b.iterator!==0){let N=b.iterator,F;for(;F=S.nodes[S.indexes[N]];)if(S.indexes[N]+=1,!F[e]){F[e]=!0,y.push(g(F));return}b.iterator=0,delete S.indexes[N]}let O=b.events;for(;b.eventIndex<O.length;){let N=O[b.eventIndex];if(b.eventIndex+=1,N===d){S.nodes&&S.nodes.length&&(S[e]=!0,b.iterator=S.getIterator());return}else if(this.listeners[N]){b.visitors=this.listeners[N];return}}y.pop()}walkSync(y){y[e]=!0;let b=p(y);for(let S of b)if(S===d)y.nodes&&y.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[S];if(C&&this.visitSync(C,y.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return _.registerPostcss=E=>{w=E},Js=_,_.default=_,c.registerLazyResult(_),n.registerLazyResult(_),Js}var Xs,Xa;function Gd(){if(Xa)return Xs;Xa=1;let e=nc(),t=as(),r=oc(),i=Lo();const s=ko();class n{constructor(u,a,c){a=a.toString(),this.stringified=!1,this._processor=u,this._css=a,this._opts=c,this._map=void 0;let l,h=t;this.result=new s(this._processor,l,this._opts),this.result.css=a;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let d=new e(h,l,this._opts,a);if(d.isMap()){let[m,p]=d.generate();m&&(this.result.css=m),p&&(this.result.map=p)}else d.clearAnnotation(),this.result.css=d.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,a){return this.async().then(u,a)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let u,a=i;try{u=a(this._css,this._opts)}catch(c){this.error=c}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}}return Xs=n,n.default=n,Xs}var Ks,Ka;function Hd(){if(Ka)return Ks;Ka=1;let e=Gd(),t=uc(),r=To(),i=di();class s{constructor(o=[]){this.version="8.4.38",this.plugins=this.normalize(o)}normalize(o){let u=[];for(let a of o)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))u=u.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)u.push(a);else if(typeof a=="function")u.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return u}process(o,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new e(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),r.registerProcessor(s),Ks}var Qs,Qa;function Yd(){if(Qa)return Qs;Qa=1;let e=us(),t=sc(),r=fs(),i=Po(),s=cs(),n=di(),o=Io();function u(a,c){if(Array.isArray(a))return a.map(m=>u(m));let f=a,{inputs:l}=f,h=jr(f,["inputs"]);if(l){c=[];for(let m of l){let p=we(G({},m),{__proto__:s.prototype});p.map&&(p.map=we(G({},p.map),{__proto__:t.prototype})),c.push(p)}}if(h.nodes&&(h.nodes=a.nodes.map(m=>u(m,c))),h.source){let d=h.source,{inputId:m}=d,p=jr(d,["inputId"]);h.source=p,m!=null&&(h.source.input=c[m])}if(h.type==="root")return new n(h);if(h.type==="decl")return new e(h);if(h.type==="rule")return new o(h);if(h.type==="comment")return new r(h);if(h.type==="atrule")return new i(h);throw new Error("Unknown node type: "+a.type)}return Qs=u,u.default=u,Qs}var Zs,Za;function Jd(){if(Za)return Zs;Za=1;let e=Ao(),t=us(),r=uc(),i=pr(),s=Hd(),n=as(),o=Yd(),u=To(),a=ac(),c=fs(),l=Po(),h=ko(),f=cs(),d=Lo(),m=lc(),p=Io(),g=di(),v=ls();function w(..._){return _.length===1&&Array.isArray(_[0])&&(_=_[0]),new s(_)}return w.plugin=function(E,y){let b=!1;function S(...O){console&&console.warn&&!b&&(b=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
|
|
41
|
+
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:
|
|
42
|
+
https://www.w3ctech.com/topic/2226`));let N=y(...O);return N.postcssPlugin=E,N.postcssVersion=new s().version,N}let C;return Object.defineProperty(S,"postcss",{get(){return C||(C=S()),C}}),S.process=function(O,N,F){return w([S(F)]).process(O,N)},S},w.stringify=n,w.parse=d,w.fromJSON=o,w.list=m,w.comment=_=>new c(_),w.atRule=_=>new l(_),w.decl=_=>new t(_),w.rule=_=>new p(_),w.root=_=>new g(_),w.document=_=>new u(_),w.CssSyntaxError=e,w.Declaration=t,w.Container=i,w.Processor=s,w.Document=u,w.Comment=c,w.Warning=a,w.AtRule=l,w.Result=h,w.Input=f,w.Rule=p,w.Root=g,w.Node=v,r.registerPostcss(w),Zs=w,w.default=w,Zs}var Xd=Jd();const de=Ud(Xd);de.stringify;de.fromJSON;de.plugin;de.parse;de.list;de.document;de.comment;de.atRule;de.rule;de.decl;de.root;de.CssSyntaxError;de.Declaration;de.Container;de.Processor;de.Document;de.Comment;de.Warning;de.AtRule;de.Result;de.Input;de.Rule;de.Root;de.Node;const Kd=["webview"],el={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 Qd(e){let t=el[e.tagName]?el[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=de([Ld,Fd]).process(e).css}catch(s){console.warn("Failed to adapt css for replay",s)}return t==null||t.stylesWithHoverClass.set(e,i),i}function tl(){return{stylesWithHoverClass:new Map}}function Zd(e,t,r,i){const s=[];for(const o of e.childNodes)o.type===z.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],a=n[o];u&&a&&(u.textContent=r?hs(a,i):a)}}function ep(e,t,r,i){const{doc:s,hackCss:n,cache:o}=i;e.childNodes.length?Zd(e,r,n,o):(n&&(r=hs(r,o)),t.appendChild(s.createTextNode(r)))}function tp(e,t){var r;const{doc:i,hackCss:s,cache:n}=t;switch(e.type){case z.Document:return i.implementation.createDocument(null,"",null);case z.DocumentType:return i.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case z.Element:{const o=Qd(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)&&!Kd.includes(e.tagName)&&i.defaultView.customElements.define(e.tagName,class extends i.defaultView.HTMLElement{}),u=i.createElement(o));const a={};for(const c in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,c))continue;let l=e.attributes[c];if(!(o==="option"&&c==="selected"&&l===!1)&&l!==null){if(l===!0&&(l=""),c.startsWith("rr_")){a[c]=l;continue}if(typeof l=="string"){if(o==="style"&&c==="_cssText"){ep(e,u,l,t);continue}else if(o==="textarea"&&c==="value"){u.appendChild(i.createTextNode(l)),e.childNodes=[];continue}}try{if(e.isSVG&&c==="xlink:href")u.setAttributeNS("http://www.w3.org/1999/xlink",c,l.toString());else if(c==="onload"||c==="onclick"||c.substring(0,7)==="onmouse")u.setAttribute("_"+c,l.toString());else if(o==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&c==="content"){u.setAttribute("csp-content",l.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(c,l.toString()))}catch(h){}}}for(const c in a){const l=a[c];if(o==="canvas"&&c==="rr_dataURL"){const h=i.createElement("img");h.onload=()=>{const f=u.getContext("2d");f&&f.drawImage(h,0,0,h.width,h.height)},h.src=l.toString(),u.RRNodeType&&(u.rr_dataURL=l.toString())}else if(o==="img"&&c==="rr_dataURL"){const h=u;h.currentSrc.startsWith("data:")||(h.setAttribute("rrweb-original-src",e.attributes.src),h.src=l.toString())}if(c==="rr_width")u.style.setProperty("width",l.toString());else if(c==="rr_height")u.style.setProperty("height",l.toString());else if(c==="rr_background_color")u.style.setProperty("background-color",l.toString());else if(c==="rr_mediaCurrentTime"&&typeof l=="number")u.currentTime=l;else if(c==="rr_mediaState")switch(l){case"played":u.play().catch(h=>console.warn("media playback error",h));break;case"paused":u.pause();break}else c==="rr_mediaPlaybackRate"&&typeof l=="number"?u.playbackRate=l:c==="rr_mediaMuted"&&typeof l=="boolean"?u.muted=l:c==="rr_mediaLoop"&&typeof l=="boolean"?u.loop=l:c==="rr_mediaVolume"&&typeof l=="number"?u.volume=l:c==="rr_open_mode"&&u.setAttribute("rr_open_mode",l)}if(e.isShadowHost)if(!u.shadowRoot)u.attachShadow({mode:"open"});else for(;u.shadowRoot.firstChild;)u.shadowRoot.removeChild(u.shadowRoot.firstChild);return u}case z.Text:return e.isStyle&&s?i.createTextNode(hs(e.textContent,n)):i.createTextNode(e.textContent);case z.CDATA:return i.createCDATASection(e.textContent);case z.Comment:return i.createComment(e.textContent);default:return null}}function ii(e,t){const{doc:r,mirror:i,skipChild:s=!1,hackCss:n=!0,afterAppend:o,cache:u}=t;if(i.has(e.id)){const c=i.getNode(e.id),l=i.getMeta(c);if(nd(l,e))return i.getNode(e.id)}let a=tp(e,{doc:r,hackCss:n,cache:u});if(!a)return null;if(e.rootId&&i.getNode(e.rootId)!==r&&i.replace(e.rootId,r),e.type===z.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==z.DocumentType&&(e.childNodes[0].type===z.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" "">')),a=r),i.add(a,e),(e.type===z.Document||e.type===z.Element)&&!s)for(const c of e.childNodes){const l=ii(c,{doc:r,mirror:i,skipChild:!1,hackCss:n,afterAppend:o,cache:u});if(!l){console.warn("Failed to rebuild",c);continue}if(c.isShadow&&No(a)&&a.shadowRoot)a.shadowRoot.appendChild(l);else if(e.type===z.Document&&c.type==z.Element){const h=l;let f=null;h.childNodes.forEach(d=>{d.nodeName==="BODY"&&(f=d)}),f?(h.removeChild(f),a.appendChild(l),h.appendChild(f)):a.appendChild(l)}else a.appendChild(l);o&&o(l,c.id)}return a}function rp(e,t){function r(i){t(i)}for(const i of e.getIds())e.has(i)&&r(e.getNode(i))}function ip(e,t){const r=t.getMeta(e);if((r==null?void 0:r.type)!==z.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 sp(e,t){const{doc:r,onVisit:i,hackCss:s=!0,afterAppend:n,cache:o,mirror:u=new Mo}=t,a=ii(e,{doc:r,mirror:u,skipChild:!1,hackCss:s,afterAppend:n,cache:o});return rp(u,c=>{i&&i(c),ip(c,u)}),a}var np=Object.defineProperty,op=(e,t,r)=>t in e?np(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,D=(e,t,r)=>op(e,typeof t!="symbol"?t+"":t,r),ap=Object.defineProperty,lp=(e,t,r)=>t in e?ap(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rl=(e,t,r)=>lp(e,typeof t!="symbol"?t+"":t,r);let up=class{constructor(){rl(this,"idNodeMap",new Map),rl(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 cp(){return new up}function fp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hp(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 Ci={exports:{}},il;function dp(){if(il)return Ci.exports;il=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}};return Ci.exports=t(),Ci.exports.createColors=t,Ci.exports}const pp={},mp=Object.freeze(Object.defineProperty({__proto__:null,default:pp},Symbol.toStringTag,{value:"Module"})),ut=hp(mp);var en,sl;function Fo(){if(sl)return en;sl=1;let e=dp(),t=ut;class r extends Error{constructor(s,n,o,u,a,c){super(s),this.name="CssSyntaxError",this.reason=s,a&&(this.file=a),u&&(this.source=u),c&&(this.plugin=c),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),t&&s&&(n=t(n));let o=n.split(/\r?\n/),u=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length,l,h;if(s){let{bold:f,gray:d,red:m}=e.createColors(!0);l=p=>f(m(p)),h=p=>d(p)}else l=h=f=>f;return o.slice(u,a).map((f,d)=>{let m=u+1+d,p=" "+(" "+m).slice(-c)+" | ";if(m===this.line){let g=h(p.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+h(p)+f+`
|
|
43
|
+
`+g+l("^")}return" "+h(p)+f}).join(`
|
|
44
44
|
`)}toString(){let s=this.showSourceCode();return s&&(s=`
|
|
45
45
|
|
|
46
46
|
`+s+`
|
|
47
|
-
`),this.name+": "+this.message+s}}return
|
|
47
|
+
`),this.name+": "+this.message+s}}return en=r,r.default=r,en}var xi={},nl;function Uo(){return nl||(nl=1,xi.isClean=Symbol("isClean"),xi.my=Symbol("my")),xi}var tn,ol;function cc(){if(ol)return tn;ol=1;const e={after:`
|
|
48
48
|
`,beforeClose:`
|
|
49
49
|
`,beforeComment:`
|
|
50
50
|
`,beforeDecl:`
|
|
51
51
|
`,beforeOpen:" ",beforeRule:`
|
|
52
|
-
`,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
|
|
53
|
-
`)){let c=this.raw(s,null,"indent");if(c.length)for(let
|
|
52
|
+
`,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 a=(s.raws.between||"")+(n?";":"");this.builder(o+u+a,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,a=0;for(;u&&u.type!=="root";)a+=1,u=u.parent;if(o.includes(`
|
|
53
|
+
`)){let c=this.raw(s,null,"indent");if(c.length)for(let l=0;l<a;l++)o+=c}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 a=s.nodes[u],c=this.raw(a,"before");c&&this.builder(c),this.stringify(a,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 a=s.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===s||a&&a.type==="document"))return"";if(!a)return e[o];let c=s.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[o]!="undefined")return c.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(s,o);{let l="raw"+t(o);this[l]?u=this[l](c,s):c.walk(h=>{if(u=h.raws[n],typeof u!="undefined")return!1})}return typeof u=="undefined"&&(u=e[o]),c.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(`
|
|
54
54
|
`)&&(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(`
|
|
55
55
|
`)&&(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(`
|
|
56
56
|
`)&&(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(`
|
|
57
|
-
`)&&(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
|
|
58
|
-
`);return n=
|
|
59
|
-
`?(
|
|
60
|
-
`);
|
|
57
|
+
`)&&(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 a=o.raws.before.split(`
|
|
58
|
+
`);return n=a[a.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,al;function ds(){if(al)return rn;al=1;let e=cc();function t(r,i){new e(i).stringify(r)}return rn=t,t.default=t,rn}var sn,ll;function ps(){if(ll)return sn;ll=1;let{isClean:e,my:t}=Uo(),r=Fo(),i=cc(),s=ds();function n(u,a){let c=new u.constructor;for(let l in u){if(!Object.prototype.hasOwnProperty.call(u,l)||l==="proxyCache")continue;let h=u[l],f=typeof h;l==="parent"&&f==="object"?a&&(c[l]=a):l==="source"?c[l]=h:Array.isArray(h)?c[l]=h.map(d=>n(d,c)):(f==="object"&&h!==null&&(h=n(h)),c[l]=h)}return c}class o{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let c in a)if(c==="nodes"){this.nodes=[];for(let l of a[c])typeof l.clone=="function"?this.append(l.clone()):this.append(l)}else this[c]=a[c]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let c=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${c.input.from}:${c.start.line}:${c.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let c in a)this[c]=a[c];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let c=n(this);for(let l in a)c[l]=a[l];return c}cloneAfter(a={}){let c=this.clone(a);return this.parent.insertAfter(this,c),c}cloneBefore(a={}){let c=this.clone(a);return this.parent.insertBefore(this,c),c}error(a,c={}){if(this.source){let{end:l,start:h}=this.rangeBy(c);return this.source.input.error(a,{column:h.column,line:h.line},{column:l.column,line:l.line},c)}return new r(a)}getProxyProcessor(){return{get(a,c){return c==="proxyOf"?a:c==="root"?()=>a.root().toProxy():a[c]},set(a,c,l){return a[c]===l||(a[c]=l,(c==="prop"||c==="value"||c==="name"||c==="params"||c==="important"||c==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,c){let l=this.source.start;if(a.index)l=this.positionInside(a.index,c);else if(a.word){c=this.toString();let h=c.indexOf(a.word);h!==-1&&(l=this.positionInside(h,c))}return l}positionInside(a,c){let l=c||this.toString(),h=this.source.start.column,f=this.source.start.line;for(let d=0;d<a;d++)l[d]===`
|
|
59
|
+
`?(h=1,f+=1):h+=1;return{column:h,line:f}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let c={column:this.source.start.column,line:this.source.start.line},l=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:c.column+1,line:c.line};if(a.word){let h=this.toString(),f=h.indexOf(a.word);f!==-1&&(c=this.positionInside(f,h),l=this.positionInside(f+a.word.length,h))}else a.start?c={column:a.start.column,line:a.start.line}:a.index&&(c=this.positionInside(a.index)),a.end?l={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?l=this.positionInside(a.endIndex):a.index&&(l=this.positionInside(a.index+1));return(l.line<c.line||l.line===c.line&&l.column<=c.column)&&(l={column:c.column+1,line:c.line}),{end:l,start:c}}raw(a,c){return new i().raw(this,a,c)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let c=this,l=!1;for(let h of a)h===this?l=!0:l?(this.parent.insertAfter(c,h),c=h):this.parent.insertBefore(c,h);l||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,c){let l={},h=c==null;c=c||new Map;let f=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let m=this[d];if(Array.isArray(m))l[d]=m.map(p=>typeof p=="object"&&p.toJSON?p.toJSON(null,c):p);else if(typeof m=="object"&&m.toJSON)l[d]=m.toJSON(null,c);else if(d==="source"){let p=c.get(m.input);p==null&&(p=f,c.set(m.input,f),f++),l[d]={end:m.end,inputId:p,start:m.start}}else l[d]=m}return h&&(l.inputs=[...c.keys()].map(d=>d.toJSON())),l}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=s){a.stringify&&(a=a.stringify);let c="";return a(this,l=>{c+=l}),c}warn(a,c,l){let h={node:this};for(let f in l)h[f]=l[f];return a.warn(c,h)}get proxyOf(){return this}}return sn=o,o.default=o,sn}var nn,ul;function ms(){if(ul)return nn;ul=1;let e=ps();class t extends e{constructor(i){i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=we(G({},i),{value:String(i.value)})),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return nn=t,t.default=t,nn}var on,cl;function gp(){if(cl)return on;cl=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return on={nanoid:(i=21)=>{let s="",n=i;for(;n--;)s+=e[Math.random()*64|0];return s},customAlphabet:(i,s=21)=>(n=s)=>{let o="",u=n;for(;u--;)o+=i[Math.random()*i.length|0];return o}},on}var an,fl;function fc(){if(fl)return an;fl=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ut,{existsSync:r,readFileSync:i}=ut,{dirname:s,join:n}=ut;function o(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class u{constructor(c,l){if(l.map===!1)return;this.loadAnnotation(c),this.inline=this.startWith(this.annotation,"data:");let h=l.map?l.map.prev:void 0,f=this.loadMap(l.from,h);!this.mapFile&&l.from&&(this.mapFile=l.from),this.mapFile&&(this.root=s(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(c){let l=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,d=/^data:application\/json,/;if(f.test(c)||d.test(c))return decodeURIComponent(c.substr(RegExp.lastMatch.length));if(l.test(c)||h.test(c))return o(c.substr(RegExp.lastMatch.length));let m=c.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(c){return c.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(c){return typeof c!="object"?!1:typeof c.mappings=="string"||typeof c._mappings=="string"||Array.isArray(c.sections)}loadAnnotation(c){let l=c.match(/\/\*\s*# sourceMappingURL=/gm);if(!l)return;let h=c.lastIndexOf(l.pop()),f=c.indexOf("*/",h);h>-1&&f>-1&&(this.annotation=this.getAnnotationURL(c.substring(h,f)))}loadFile(c){if(this.root=s(c),r(c))return this.mapFile=c,i(c,"utf-8").toString().trim()}loadMap(c,l){if(l===!1)return!1;if(l){if(typeof l=="string")return l;if(typeof l=="function"){let h=l(c);if(h){let f=this.loadFile(h);if(!f)throw new Error("Unable to load previous source map: "+h.toString());return f}}else{if(l instanceof e)return t.fromSourceMap(l).toString();if(l instanceof t)return l.toString();if(this.isMap(l))return JSON.stringify(l);throw new Error("Unsupported previous source map format: "+l.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return c&&(h=n(s(c),h)),this.loadFile(h)}}}startWith(c,l){return c?c.substr(0,l.length)===l:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return an=u,u.default=u,an}var ln,hl;function gs(){if(hl)return ln;hl=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ut,{fileURLToPath:r,pathToFileURL:i}=ut,{isAbsolute:s,resolve:n}=ut,{nanoid:o}=gp(),u=ut,a=Fo(),c=fc(),l=Symbol("fromOffsetCache"),h=!!(e&&t),f=!!(n&&s);class d{constructor(p,g={}){if(p===null||typeof p=="undefined"||typeof p=="object"&&!p.toString)throw new Error(`PostCSS received ${p} instead of CSS string`);if(this.css=p.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!f||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=n(g.from)),f&&h){let v=new c(this.css,g);if(v.text){this.map=v;let w=v.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(p,g,v,w={}){let _,E,y;if(g&&typeof g=="object"){let S=g,C=v;if(typeof S.offset=="number"){let O=this.fromOffset(S.offset);g=O.line,v=O.col}else g=S.line,v=S.column;if(typeof C.offset=="number"){let O=this.fromOffset(C.offset);E=O.line,y=O.col}else E=C.line,y=C.column}else if(!v){let S=this.fromOffset(g);g=S.line,v=S.col}let b=this.origin(g,v,E,y);return b?_=new a(p,b.endLine===void 0?b.line:{column:b.column,line:b.line},b.endLine===void 0?b.column:{column:b.endColumn,line:b.endLine},b.source,b.file,w.plugin):_=new a(p,E===void 0?g:{column:v,line:g},E===void 0?v:{column:y,line:E},this.css,this.file,w.plugin),_.input={column:v,endColumn:y,endLine:E,line:g,source:this.css},this.file&&(i&&(_.input.url=i(this.file).toString()),_.input.file=this.file),_}fromOffset(p){let g,v;if(this[l])v=this[l];else{let _=this.css.split(`
|
|
60
|
+
`);v=new Array(_.length);let E=0;for(let y=0,b=_.length;y<b;y++)v[y]=E,E+=_[y].length+1;this[l]=v}g=v[v.length-1];let w=0;if(p>=g)w=v.length-1;else{let _=v.length-2,E;for(;w<_;)if(E=w+(_-w>>1),p<v[E])_=E-1;else if(p>=v[E+1])w=E+1;else{w=E;break}}return{col:p-v[w]+1,line:w+1}}mapResolve(p){return/^\w+:\/\//.test(p)?p:n(this.map.consumer().sourceRoot||this.map.root||".",p)}origin(p,g,v,w){if(!this.map)return!1;let _=this.map.consumer(),E=_.originalPositionFor({column:g,line:p});if(!E.source)return!1;let y;typeof v=="number"&&(y=_.originalPositionFor({column:w,line:v}));let b;s(E.source)?b=i(E.source):b=new URL(E.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let S={column:E.column,endColumn:y&&y.column,endLine:y&&y.line,line:E.line,url:b.toString()};if(b.protocol==="file:")if(r)S.file=r(b);else throw new Error("file: protocol is not available in this PostCSS build");let C=_.sourceContentFor(E.source);return C&&(S.source=C),S}toJSON(){let p={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(p[g]=this[g]);return this.map&&(p.map=G({},this.map),p.map.consumerCache&&(p.map.consumerCache=void 0)),p}get from(){return this.file||this.id}}return ln=d,d.default=d,u&&u.registerInput&&u.registerInput(d),ln}var un,dl;function hc(){if(dl)return un;dl=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ut,{dirname:r,relative:i,resolve:s,sep:n}=ut,{pathToFileURL:o}=ut,u=gs(),a=!!(e&&t),c=!!(r&&s&&i&&n);class l{constructor(f,d,m,p){this.stringify=f,this.mapOpts=m.map||{},this.root=d,this.opts=m,this.css=p,this.originalCSS=p,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let d=`
|
|
61
61
|
`;this.css.includes(`\r
|
|
62
|
-
`)&&(
|
|
63
|
-
`),this.css+=
|
|
64
|
-
`),h=b.length-y):h+=b.length,_&&S!=="start"){let v=_.parent||{raws:{}};(!(_.type==="decl"||_.type==="atrule"&&!_.nodes)||_!==v.last||v.raws.semicolon)&&(_.source&&_.source.end?(p.source=this.sourcePath(_),p.original.line=_.source.end.line,p.original.column=_.source.end.column-1,p.generated.line=f,p.generated.column=h-2,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,p.generated.line=f,p.generated.column=h-1,this.map.addMapping(p)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f!="undefined"&&f!==!0?!1:this.previous().length?this.previous().some(h=>h.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let h=this.memoizedPaths.get(f);if(h)return h;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(s(m,this.mapOpts.annotation)));let p=i(m,f);return this.memoizedPaths.set(f,p),p}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let h=f.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let f=new u(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(h=>{if(h.source){let m=h.source.input.from;if(m&&!f[m]){f[m]=!0;let p=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(p,h.source.input.css)}}});else if(this.css){let h=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(h,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let h=this.memoizedFileURLs.get(f);if(h)return h;if(o){let m=o(f).toString();return this.memoizedFileURLs.set(f,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let h=this.memoizedURLs.get(f);if(h)return h;n==="\\"&&(f=f.replace(/\\/g,"/"));let m=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,m),m}}return Js=a,Js}var Xs,za;function as(){if(za)return Xs;za=1;let e=ss();class t extends e{constructor(i){super(i),this.type="comment"}}return Xs=t,t.default=t,Xs}var Qs,$a;function hr(){if($a)return Qs;$a=1;let{isClean:e,my:t}=yo(),r=ns(),i=as(),s=ss(),n,o,u,l;function c(f){return f.map(h=>(h.nodes&&(h.nodes=c(h.nodes)),delete h.source,h))}function a(f){if(f[e]=!1,f.proxyOf.nodes)for(let h of f.proxyOf.nodes)a(h)}class d extends s{append(...h){for(let m of h){let p=this.normalize(m,this.last);for(let g of p)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let m of this.nodes)m.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let m=this.getIterator(),p,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(p=this.indexes[m],g=h(this.proxyOf.nodes[p],p),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],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,m){return m==="proxyOf"?h:h[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...p)=>h[m](...p.map(g=>typeof g=="function"?(y,b)=>g(y.toProxy(),b):g)):m==="every"||m==="some"?p=>h[m]((g,...y)=>p(g.toProxy(),...y)):m==="root"?()=>h.root().toProxy():m==="nodes"?h.nodes.map(p=>p.toProxy()):m==="first"||m==="last"?h[m].toProxy():h[m]:h[m]},set(h,m,p){return h[m]===p||(h[m]=p,(m==="name"||m==="params"||m==="selector")&&h.markDirty()),!0}}}index(h){return typeof h=="number"?h:(h.proxyOf&&(h=h.proxyOf),this.proxyOf.nodes.indexOf(h))}insertAfter(h,m){let p=this.index(h),g=this.normalize(m,this.proxyOf.nodes[p]).reverse();p=this.index(h);for(let b of g)this.proxyOf.nodes.splice(p+1,0,b);let y;for(let b in this.indexes)y=this.indexes[b],p<y&&(this.indexes[b]=y+g.length);return this.markDirty(),this}insertBefore(h,m){let p=this.index(h),g=p===0?"prepend":!1,y=this.normalize(m,this.proxyOf.nodes[p],g).reverse();p=this.index(h);for(let _ of y)this.proxyOf.nodes.splice(p,0,_);let b;for(let _ in this.indexes)b=this.indexes[_],p<=b&&(this.indexes[_]=b+y.length);return this.markDirty(),this}normalize(h,m){if(typeof h=="string")h=c(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 r(h)]}else if(h.selector)h=[new o(h)];else if(h.name)h=[new u(h)];else if(h.text)h=[new i(h)];else throw new Error("Unknown node type in node creation");return h.map(g=>(g[t]||d.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&a(g),typeof g.raws.before=="undefined"&&m&&typeof m.raws.before!="undefined"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...h){h=h.reverse();for(let m of h){let p=this.normalize(m,this.first,"prepend").reverse();for(let g of p)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+p.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 m;for(let p in this.indexes)m=this.indexes[p],m>=h&&(this.indexes[p]=m-1);return this.markDirty(),this}replaceValues(h,m,p){return p||(p=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(h,p))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((m,p)=>{let g;try{g=h(m,p)}catch(y){throw m.addToError(y)}return g!==!1&&m.walk&&(g=m.walk(h)),g})}walkAtRules(h,m){return m?h instanceof RegExp?this.walk((p,g)=>{if(p.type==="atrule"&&h.test(p.name))return m(p,g)}):this.walk((p,g)=>{if(p.type==="atrule"&&p.name===h)return m(p,g)}):(m=h,this.walk((p,g)=>{if(p.type==="atrule")return m(p,g)}))}walkComments(h){return this.walk((m,p)=>{if(m.type==="comment")return h(m,p)})}walkDecls(h,m){return m?h instanceof RegExp?this.walk((p,g)=>{if(p.type==="decl"&&h.test(p.prop))return m(p,g)}):this.walk((p,g)=>{if(p.type==="decl"&&p.prop===h)return m(p,g)}):(m=h,this.walk((p,g)=>{if(p.type==="decl")return m(p,g)}))}walkRules(h,m){return m?h instanceof RegExp?this.walk((p,g)=>{if(p.type==="rule"&&h.test(p.selector))return m(p,g)}):this.walk((p,g)=>{if(p.type==="rule"&&p.selector===h)return m(p,g)}):(m=h,this.walk((p,g)=>{if(p.type==="rule")return m(p,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return d.registerParse=f=>{n=f},d.registerRule=f=>{o=f},d.registerAtRule=f=>{u=f},d.registerRoot=f=>{l=f},Qs=d,d.default=d,d.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,u.prototype):f.type==="rule"?Object.setPrototypeOf(f,o.prototype):f.type==="decl"?Object.setPrototypeOf(f,r.prototype):f.type==="comment"?Object.setPrototypeOf(f,i.prototype):f.type==="root"&&Object.setPrototypeOf(f,l.prototype),f[t]=!0,f.nodes&&f.nodes.forEach(h=>{d.rebuild(h)})},Qs}var Ks,Va;function wo(){if(Va)return Ks;Va=1;let e=hr(),t,r;class i extends e{constructor(n){super(H({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},Ks=i,i.default=i,Ks}var Zs,ja;function qu(){if(ja)return Zs;ja=1;let e={};return Zs=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},Zs}var en,Ga;function zu(){if(Ga)return en;Ga=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 en=e,e.default=e,en}var tn,Ha;function bo(){if(Ha)return tn;Ha=1;let e=zu();class t{constructor(i,s,n){this.processor=i,this.messages=[],this.root=s,this.opts=n,this.css=void 0,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")}get content(){return this.css}}return tn=t,t.default=t,tn}var rn,Ya;function Xh(){if(Ya)return rn;Ya=1;const e=39,t=34,r=92,i=47,s=10,n=32,o=12,u=9,l=13,c=91,a=93,d=40,f=41,h=123,m=125,p=59,g=42,y=58,b=64,_=/[\t\n\f\r "#'()/;[\\\]{}]/g,S=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return rn=function(C,A={}){let N=C.css.valueOf(),U=A.ignoreErrors,T,x,me,ve,ie,F,se,Re,j,G,Se=N.length,O=0,ye=[],P=[];function B(){return O}function X(Z){throw C.error("Unclosed "+Z,O)}function k(){return P.length===0&&O>=Se}function oe(Z){if(P.length)return P.pop();if(O>=Se)return;let De=Z?Z.ignoreUnclosed:!1;switch(T=N.charCodeAt(O),T){case s:case n:case u:case l:case o:{x=O;do x+=1,T=N.charCodeAt(x);while(T===n||T===s||T===u||T===l||T===o);G=["space",N.slice(O,x)],O=x-1;break}case c:case a:case h:case m:case y:case p:case f:{let ht=String.fromCharCode(T);G=[ht,ht,O];break}case d:{if(Re=ye.length?ye.pop()[1]:"",j=N.charCodeAt(O+1),Re==="url"&&j!==e&&j!==t&&j!==n&&j!==s&&j!==u&&j!==o&&j!==l){x=O;do{if(F=!1,x=N.indexOf(")",x+1),x===-1)if(U||De){x=O;break}else X("bracket");for(se=x;N.charCodeAt(se-1)===r;)se-=1,F=!F}while(F);G=["brackets",N.slice(O,x+1),O,x],O=x}else x=N.indexOf(")",O+1),ve=N.slice(O,x+1),x===-1||v.test(ve)?G=["(","(",O]:(G=["brackets",ve,O,x],O=x);break}case e:case t:{me=T===e?"'":'"',x=O;do{if(F=!1,x=N.indexOf(me,x+1),x===-1)if(U||De){x=O+1;break}else X("string");for(se=x;N.charCodeAt(se-1)===r;)se-=1,F=!F}while(F);G=["string",N.slice(O,x+1),O,x],O=x;break}case b:{_.lastIndex=O+1,_.test(N),_.lastIndex===0?x=N.length-1:x=_.lastIndex-2,G=["at-word",N.slice(O,x+1),O,x],O=x;break}case r:{for(x=O,ie=!0;N.charCodeAt(x+1)===r;)x+=1,ie=!ie;if(T=N.charCodeAt(x+1),ie&&T!==i&&T!==n&&T!==s&&T!==u&&T!==l&&T!==o&&(x+=1,w.test(N.charAt(x)))){for(;w.test(N.charAt(x+1));)x+=1;N.charCodeAt(x+1)===n&&(x+=1)}G=["word",N.slice(O,x+1),O,x],O=x;break}default:{T===i&&N.charCodeAt(O+1)===g?(x=N.indexOf("*/",O+2)+1,x===0&&(U||De?x=N.length:X("comment")),G=["comment",N.slice(O,x+1),O,x],O=x):(S.lastIndex=O+1,S.test(N),S.lastIndex===0?x=N.length-1:x=S.lastIndex-2,G=["word",N.slice(O,x+1),O,x],ye.push(G),O=x);break}}return O++,G}function ne(Z){P.push(Z)}return{back:ne,endOfFile:k,nextToken:oe,position:B}},rn}var sn,Ja;function _o(){if(Ja)return sn;Ja=1;let e=hr();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 sn=t,t.default=t,e.registerAtRule(t),sn}var nn,Xa;function ai(){if(Xa)return nn;Xa=1;let e=hr(),t,r;class i extends e{constructor(n){super(n),this.type="root",this.nodes||(this.nodes=[])}normalize(n,o,u){let l=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 c of l)c.raws.before=o.raws.before}return l}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},nn=i,i.default=i,e.registerRoot(i),nn}var on,Qa;function $u(){if(Qa)return on;Qa=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,l=!1,c="",a=!1;for(let d of t)a?a=!1:d==="\\"?a=!0:l?d===c&&(l=!1):d==='"'||d==="'"?(l=!0,c=d):d==="("?u+=1:d===")"?u>0&&(u-=1):u===0&&r.includes(d)&&(o=!0),o?(n!==""&&s.push(n.trim()),n="",o=!1):n+=d;return(i||n!=="")&&s.push(n.trim()),s}};return on=e,e.default=e,on}var an,Ka;function So(){if(Ka)return an;Ka=1;let e=hr(),t=$u();class r extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}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)}}return an=r,r.default=r,e.registerRule(r),an}var ln,Za;function Qh(){if(Za)return ln;Za=1;let e=ns(),t=Xh(),r=as(),i=_o(),s=ai(),n=So();const o={empty:!0,space:!0};function u(c){for(let a=c.length-1;a>=0;a--){let d=c[a],f=d[3]||d[2];if(f)return f}}class l{constructor(a){this.input=a,this.root=new s,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 d=new i;d.name=a[1].slice(1),d.name===""&&this.unnamedAtrule(d,a),this.init(d,a[2]);let f,h,m,p=!1,g=!1,y=[],b=[];for(;!this.tokenizer.endOfFile();){if(a=this.tokenizer.nextToken(),f=a[0],f==="("||f==="["?b.push(f==="("?")":"]"):f==="{"&&b.length>0?b.push("}"):f===b[b.length-1]&&b.pop(),b.length===0)if(f===";"){d.source.end=this.getPosition(a[2]),d.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(y.length>0){for(m=y.length-1,h=y[m];h&&h[0]==="space";)h=y[--m];h&&(d.source.end=this.getPosition(h[3]||h[2]),d.source.end.offset++)}this.end(a);break}else y.push(a);else y.push(a);if(this.tokenizer.endOfFile()){p=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(y),y.length?(d.raws.afterName=this.spacesAndCommentsFromStart(y),this.raw(d,"params",y),p&&(a=y[y.length-1],d.source.end=this.getPosition(a[3]||a[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(a){let d=this.colon(a);if(d===!1)return;let f=0,h;for(let m=d-1;m>=0&&(h=a[m],!(h[0]!=="space"&&(f+=1,f===2)));m--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(a){let d=0,f,h,m;for(let[p,g]of a.entries()){if(f=g,h=f[0],h==="("&&(d+=1),h===")"&&(d-=1),d===0&&h===":")if(!m)this.doubleColon(f);else{if(m[0]==="word"&&m[1]==="progid")continue;return p}m=f}return!1}comment(a){let d=new r;this.init(d,a[2]),d.source.end=this.getPosition(a[3]||a[2]),d.source.end.offset++;let f=a[1].slice(2,-2);if(/^\s*$/.test(f))d.text="",d.raws.left=f,d.raws.right="";else{let h=f.match(/^(\s*)([^]*\S)(\s*)$/);d.text=h[2],d.raws.left=h[1],d.raws.right=h[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(a,d){let f=new e;this.init(f,a[0][2]);let h=a[a.length-1];for(h[0]===";"&&(this.semicolon=!0,a.pop()),f.source.end=this.getPosition(h[3]||h[2]||u(a)),f.source.end.offset++;a[0][0]!=="word";)a.length===1&&this.unknownWord(a),f.raws.before+=a.shift()[1];for(f.source.start=this.getPosition(a[0][2]),f.prop="";a.length;){let b=a[0][0];if(b===":"||b==="space"||b==="comment")break;f.prop+=a.shift()[1]}f.raws.between="";let m;for(;a.length;)if(m=a.shift(),m[0]===":"){f.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let p=[],g;for(;a.length&&(g=a[0][0],!(g!=="space"&&g!=="comment"));)p.push(a.shift());this.precheckMissedSemicolon(a);for(let b=a.length-1;b>=0;b--){if(m=a[b],m[1].toLowerCase()==="!important"){f.important=!0;let _=this.stringFrom(a,b);_=this.spacesFromEnd(a)+_,_!==" !important"&&(f.raws.important=_);break}else if(m[1].toLowerCase()==="important"){let _=a.slice(0),S="";for(let v=b;v>0;v--){let w=_[v][0];if(S.trim().indexOf("!")===0&&w!=="space")break;S=_.pop()[1]+S}S.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=S,a=_)}if(m[0]!=="space"&&m[0]!=="comment")break}a.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(f.raws.between+=p.map(b=>b[1]).join(""),p=[]),this.raw(f,"value",p.concat(a),d),f.value.includes(":")&&!d&&this.checkMissedSemicolon(a)}doubleColon(a){throw this.input.error("Double colon",{offset:a[2]},{offset:a[2]+a[1].length})}emptyRule(a){let d=new n;this.init(d,a[2]),d.selector="",d.raws.between="",this.current=d}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 d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(a){let d=this.input.fromOffset(a);return{column:d.col,line:d.line,offset:a}}init(a,d){this.current.push(a),a.source={input:this.input,start:this.getPosition(d)},a.raws.before=this.spaces,this.spaces="",a.type!=="comment"&&(this.semicolon=!1)}other(a){let d=!1,f=null,h=!1,m=null,p=[],g=a[1].startsWith("--"),y=[],b=a;for(;b;){if(f=b[0],y.push(b),f==="("||f==="[")m||(m=b),p.push(f==="("?")":"]");else if(g&&h&&f==="{")m||(m=b),p.push("}");else if(p.length===0)if(f===";")if(h){this.decl(y,g);return}else break;else if(f==="{"){this.rule(y);return}else if(f==="}"){this.tokenizer.back(y.pop()),d=!0;break}else f===":"&&(h=!0);else f===p[p.length-1]&&(p.pop(),p.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),p.length>0&&this.unclosedBracket(m),d&&h){if(!g)for(;y.length&&(b=y[y.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(y.pop());this.decl(y,g)}else this.unknownWord(y)}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,d,f,h){let m,p,g=f.length,y="",b=!0,_,S;for(let v=0;v<g;v+=1)m=f[v],p=m[0],p==="space"&&v===g-1&&!h?b=!1:p==="comment"?(S=f[v-1]?f[v-1][0]:"empty",_=f[v+1]?f[v+1][0]:"empty",!o[S]&&!o[_]?y.slice(-1)===","?b=!1:y+=m[1]:b=!1):y+=m[1];if(!b){let v=f.reduce((w,E)=>w+E[1],"");a.raws[d]={raw:v,value:y}}a[d]=y}rule(a){a.pop();let d=new n;this.init(d,a[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(a),this.raw(d,"selector",a),this.current=d}spacesAndCommentsFromEnd(a){let d,f="";for(;a.length&&(d=a[a.length-1][0],!(d!=="space"&&d!=="comment"));)f=a.pop()[1]+f;return f}spacesAndCommentsFromStart(a){let d,f="";for(;a.length&&(d=a[0][0],!(d!=="space"&&d!=="comment"));)f+=a.shift()[1];return f}spacesFromEnd(a){let d,f="";for(;a.length&&(d=a[a.length-1][0],d==="space");)f=a.pop()[1]+f;return f}stringFrom(a,d){let f="";for(let h=d;h<a.length;h++)f+=a[h][1];return a.splice(d,a.length-d),f}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",{offset:a[0][2]},{offset:a[0][2]+a[0][1].length})}unnamedAtrule(a,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return ln=l,ln}var un,el;function Eo(){if(el)return un;el=1;let e=hr(),t=Qh(),r=os();function i(s,n){let o=new r(s,n),u=new t(o);try{u.parse()}catch(l){throw l}return u.root}return un=i,i.default=i,e.registerParse(i),un}var cn,tl;function Vu(){if(tl)return cn;tl=1;let{isClean:e,my:t}=yo(),r=Wu(),i=is(),s=hr(),n=wo(),o=qu(),u=bo(),l=Eo(),c=ai();const a={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function m(S){return typeof S=="object"&&typeof S.then=="function"}function p(S){let v=!1,w=a[S.type];return S.type==="decl"?v=S.prop.toLowerCase():S.type==="atrule"&&(v=S.name.toLowerCase()),v&&S.append?[w,w+"-"+v,h,w+"Exit",w+"Exit-"+v]:v?[w,w+"-"+v,w+"Exit",w+"Exit-"+v]:S.append?[w,h,w+"Exit"]:[w,w+"Exit"]}function g(S){let v;return S.type==="document"?v=["Document",h,"DocumentExit"]:S.type==="root"?v=["Root",h,"RootExit"]:v=p(S),{eventIndex:0,events:v,iterator:0,node:S,visitorIndex:0,visitors:[]}}function y(S){return S[e]=!1,S.nodes&&S.nodes.forEach(v=>y(v)),S}let b={};class _{constructor(v,w,E){this.stringified=!1,this.processed=!1;let C;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))C=y(w);else if(w instanceof _||w instanceof u)C=y(w.root),w.map&&(typeof E.map=="undefined"&&(E.map={}),E.map.inline||(E.map.inline=!1),E.map.prev=w.map);else{let A=l;E.syntax&&(A=E.syntax.parse),E.parser&&(A=E.parser),A.parse&&(A=A.parse);try{C=A(w,E)}catch(N){this.processed=!0,this.error=N}C&&!C[t]&&s.rebuild(C)}this.result=new u(v,C,E),this.helpers=ge(H({},b),{postcss:b,result:this.result}),this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?H(H({},A),A.prepare(this.result)):A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,w){let E=this.result.lastPlugin;try{w&&w.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=E.postcssPlugin,v.setMessage()):E.postcssVersion}catch(C){console&&console.error&&console.error(C)}return v}prepareVisitors(){this.listeners={};let v=(w,E,C)=>{this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push([w,C])};for(let w of this.plugins)if(typeof w=="object")for(let E in w){if(!d[E]&&/^[A-Z]/.test(E))throw new Error(`Unknown event ${E} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[E])if(typeof w[E]=="object")for(let C in w[E])C==="*"?v(w,E,w[E][C]):v(w,E+"-"+C.toLowerCase(),w[E][C]);else typeof w[E]=="function"&&v(w,E,w[E])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let w=this.plugins[v],E=this.runOnRoot(w);if(m(E))try{await E}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];){v[e]=!0;let w=[g(v)];for(;w.length>0;){let E=this.visitTick(w);if(m(E))try{await E}catch(C){let A=w[w.length-1].node;throw this.handleError(C,A)}}}if(this.listeners.OnceExit)for(let[w,E]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(v.type==="document"){let C=v.nodes.map(A=>E(A,this.helpers));await Promise.all(C)}else await E(v,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(E=>v.Once(E,this.helpers));return m(w[0])?Promise.all(w):w}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let v=this.result.opts,w=i;v.syntax&&(w=v.syntax.stringify),v.stringifier&&(w=v.stringifier),w.stringify&&(w=w.stringify);let C=new r(w,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 v of this.plugins){let w=this.runOnRoot(v);if(m(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];)v[e]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let w of v.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,w){return this.async().then(v,w)}toString(){return this.css}visitSync(v,w){for(let[E,C]of v){this.result.lastPlugin=E;let A;try{A=C(w,this.helpers)}catch(N){throw this.handleError(N,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(m(A))throw this.getAsyncError()}}visitTick(v){let w=v[v.length-1],{node:E,visitors:C}=w;if(E.type!=="root"&&E.type!=="document"&&!E.parent){v.pop();return}if(C.length>0&&w.visitorIndex<C.length){let[N,U]=C[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===C.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=N;try{return U(E.toProxy(),this.helpers)}catch(T){throw this.handleError(T,E)}}if(w.iterator!==0){let N=w.iterator,U;for(;U=E.nodes[E.indexes[N]];)if(E.indexes[N]+=1,!U[e]){U[e]=!0,v.push(g(U));return}w.iterator=0,delete E.indexes[N]}let A=w.events;for(;w.eventIndex<A.length;){let N=A[w.eventIndex];if(w.eventIndex+=1,N===h){E.nodes&&E.nodes.length&&(E[e]=!0,w.iterator=E.getIterator());return}else if(this.listeners[N]){w.visitors=this.listeners[N];return}}v.pop()}walkSync(v){v[e]=!0;let w=p(v);for(let E of w)if(E===h)v.nodes&&v.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[E];if(C&&this.visitSync(C,v.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return _.registerPostcss=S=>{b=S},cn=_,_.default=_,c.registerLazyResult(_),n.registerLazyResult(_),cn}var fn,rl;function Kh(){if(rl)return fn;rl=1;let e=Wu(),t=is(),r=qu(),i=Eo();const s=bo();class n{constructor(u,l,c){l=l.toString(),this.stringified=!1,this._processor=u,this._css=l,this._opts=c,this._map=void 0;let a,d=t;this.result=new s(this._processor,a,this._opts),this.result.css=l;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let h=new e(d,a,this._opts,l);if(h.isMap()){let[m,p]=h.generate();m&&(this.result.css=m),p&&(this.result.map=p)}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,l){return this.async().then(u,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let u,l=i;try{u=l(this._css,this._opts)}catch(c){this.error=c}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}}return fn=n,n.default=n,fn}var hn,il;function Zh(){if(il)return hn;il=1;let e=Kh(),t=Vu(),r=wo(),i=ai();class s{constructor(o=[]){this.version="8.4.38",this.plugins=this.normalize(o)}normalize(o){let u=[];for(let l of o)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))u=u.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)u.push(l);else if(typeof l=="function")u.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return u}process(o,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new e(this,o,u):new t(this,o,u)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return hn=s,s.default=s,i.registerProcessor(s),r.registerProcessor(s),hn}var dn,sl;function ed(){if(sl)return dn;sl=1;let e=ns(),t=Bu(),r=as(),i=_o(),s=os(),n=ai(),o=So();function u(l,c){if(Array.isArray(l))return l.map(m=>u(m));let f=l,{inputs:a}=f,d=Br(f,["inputs"]);if(a){c=[];for(let m of a){let p=ge(H({},m),{__proto__:s.prototype});p.map&&(p.map=ge(H({},p.map),{__proto__:t.prototype})),c.push(p)}}if(d.nodes&&(d.nodes=l.nodes.map(m=>u(m,c))),d.source){let h=d.source,{inputId:m}=h,p=Br(h,["inputId"]);d.source=p,m!=null&&(d.source.input=c[m])}if(d.type==="root")return new n(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new o(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new i(d);throw new Error("Unknown node type: "+l.type)}return dn=u,u.default=u,dn}var pn,nl;function td(){if(nl)return pn;nl=1;let e=vo(),t=ns(),r=Vu(),i=hr(),s=Zh(),n=is(),o=ed(),u=wo(),l=zu(),c=as(),a=_o(),d=bo(),f=os(),h=Eo(),m=$u(),p=So(),g=ai(),y=ss();function b(..._){return _.length===1&&Array.isArray(_[0])&&(_=_[0]),new s(_)}return b.plugin=function(S,v){let w=!1;function E(...A){console&&console.warn&&!w&&(w=!0,console.warn(S+`: postcss.plugin was deprecated. Migration guide:
|
|
66
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(
|
|
67
|
-
https://www.w3ctech.com/topic/2226`));let N=v(...A);return N.postcssPlugin=S,N.postcssVersion=new s().version,N}let C;return Object.defineProperty(E,"postcss",{get(){return C||(C=E()),C}}),E.process=function(A,N,U){return b([E(U)]).process(A,N)},E},b.stringify=n,b.parse=h,b.fromJSON=o,b.list=m,b.comment=_=>new c(_),b.atRule=_=>new a(_),b.decl=_=>new t(_),b.rule=_=>new p(_),b.root=_=>new g(_),b.document=_=>new u(_),b.CssSyntaxError=e,b.Declaration=t,b.Container=i,b.Processor=s,b.Document=u,b.Comment=c,b.Warning=l,b.AtRule=a,b.Result=d,b.Input=f,b.Rule=p,b.Root=g,b.Node=y,r.registerPostcss(b),pn=b,b.default=b,pn}var rd=td();const fe=Vh(rd);fe.stringify;fe.fromJSON;fe.plugin;fe.parse;fe.list;fe.document;fe.comment;fe.atRule;fe.rule;fe.decl;fe.root;fe.CssSyntaxError;fe.Declaration;fe.Container;fe.Processor;fe.Document;fe.Comment;fe.Warning;fe.AtRule;fe.Result;fe.Input;fe.Rule;fe.Root;fe.Node;var W=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(W||{});function id(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[Wn(o[0].trim())]=o[1].trim())}}),t}function ol(e){const t=[];for(const r in e){const i=e[r];if(typeof i!="string")continue;const s=ad(r);t.push(`${s}: ${i};`)}return t.join(" ")}const sd=/-([a-z])/g,nd=/^--[a-zA-Z0-9-]+$/,Wn=e=>nd.test(e)?e:e.replace(sd,(t,r)=>r?r.toUpperCase():""),od=/\B([A-Z])/g,ad=e=>e.replace(od,"-$1").toLowerCase();class ft{constructor(...t){D(this,"parentElement",null),D(this,"parentNode",null),D(this,"ownerDocument"),D(this,"firstChild",null),D(this,"lastChild",null),D(this,"previousSibling",null),D(this,"nextSibling",null),D(this,"ELEMENT_NODE",1),D(this,"TEXT_NODE",3),D(this,"nodeType"),D(this,"nodeName"),D(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 ft){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 Co extends ft{constructor(...t){super(t),D(this,"nodeType",9),D(this,"nodeName","#document"),D(this,"compatMode","CSS1Compat"),D(this,"RRNodeType",W.Document),D(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(t=>t.RRNodeType===W.Element&&t.tagName==="HTML")||null}get body(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===W.Element&&r.tagName==="BODY"))||null}get head(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===W.Element&&r.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(t){const r=t.RRNodeType;if((r===W.Element||r===W.DocumentType)&&this.childNodes.some(s=>s.RRNodeType===r))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${r===W.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const i=xo(this,t);return i.parentElement=null,i}insertBefore(t,r){const i=t.RRNodeType;if((i===W.Element||i===W.DocumentType)&&this.childNodes.some(n=>n.RRNodeType===i))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${i===W.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=Ju(this,t,r);return s.parentElement=null,s}removeChild(t){return Xu(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 Co}createDocumentType(t,r,i){const s=new ju(t,r,i);return s.ownerDocument=this,s}createElement(t){const r=new ls(t);return r.ownerDocument=this,r}createElementNS(t,r){return this.createElement(r)}createTextNode(t){const r=new Gu(t);return r.ownerDocument=this,r}createComment(t){const r=new Hu(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new Yu(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}}class ju extends ft{constructor(t,r,i){super(),D(this,"nodeType",10),D(this,"RRNodeType",W.DocumentType),D(this,"name"),D(this,"publicId"),D(this,"systemId"),D(this,"textContent",null),this.name=t,this.publicId=r,this.systemId=i,this.nodeName=t}toString(){return"RRDocumentType"}}class ls extends ft{constructor(t){super(),D(this,"nodeType",1),D(this,"RRNodeType",W.Element),D(this,"tagName"),D(this,"attributes",{}),D(this,"shadowRoot",null),D(this,"scrollLeft"),D(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 cd(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?id(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(i,s,n)=>{if(r.test(i))return;const o=Wn(i);s?t[o]=s:delete t[o],n==="important"&&(t[o]+=" !important"),this.attributes.style=ol(t)},t.removeProperty=i=>{if(r.test(i))return"";const s=Wn(i),n=t[s]||"";return delete t[s],this.attributes.style=ol(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 xo(this,t)}insertBefore(t,r){return Ju(this,t,r)}removeChild(t){return Xu(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 ld extends ls{constructor(){super(...arguments),D(this,"currentTime"),D(this,"volume"),D(this,"paused"),D(this,"muted"),D(this,"playbackRate"),D(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 ud extends ls{constructor(){super(...arguments),D(this,"tagName","DIALOG"),D(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 Gu extends ft{constructor(t){super(),D(this,"nodeType",3),D(this,"nodeName","#text"),D(this,"RRNodeType",W.Text),D(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 Hu extends ft{constructor(t){super(),D(this,"nodeType",8),D(this,"nodeName","#comment"),D(this,"RRNodeType",W.Comment),D(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 Yu extends ft{constructor(t){super(),D(this,"nodeName","#cdata-section"),D(this,"nodeType",4),D(this,"RRNodeType",W.CDATA),D(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 cd{constructor(t,r){if(D(this,"onChange"),D(this,"classes",[]),D(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(" "))}),D(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 xo(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 Ju(e,t,r){if(!r)return xo(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 Xu(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 Be=(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))(Be||{});const qn={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},fd={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 gt=null;function Ii(e,t,r,i=t.mirror||t.ownerDocument.mirror){e=hd(e,t,r,i),Qu(e,t,r,i),dd(e,t,r)}function hd(e,t,r,i){var s;if(r.afterAppend&&!gt&&(gt=new WeakSet,setTimeout(()=>{gt=null},0)),!Ro(e,t)){const n=Li(t,r.mirror,i);(s=e.parentNode)==null||s.replaceChild(n,e),e=n}switch(t.RRNodeType){case W.Document:{if(!gr(e,t,r.mirror,i)){const n=i.getMeta(t);n&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,n),gt==null||gt.add(e))}break}case W.Element:{const n=e,o=t;switch(o.tagName){case"IFRAME":{const u=e.contentDocument;if(!u)break;Ii(u,t.contentDocument,r,i);break}}o.shadowRoot&&(n.shadowRoot||n.attachShadow({mode:"open"}),Qu(n.shadowRoot,o.shadowRoot,r,i)),pd(n,o,i);break}}return e}function dd(e,t,r){var i;switch(t.RRNodeType){case W.Document:{const s=t.scrollData;s&&r.applyScroll(s,!0);break}case W.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 l=s.getContext("2d");l&&l.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,l=o.open,c=o.matches("dialog:modal"),a=u.open,d=u.isModal,f=c!==d,h=l!==a;if((f||l&&h)&&o.close(),a&&(h||f))try{d?o.showModal():o.show()}catch(m){console.warn(m)}break}}break}case W.Text:case W.Comment:case W.CDATA:{e.textContent!==t.data&&(e.textContent=t.data);break}}gt!=null&>.has(e)&&(gt.delete(e),(i=r.afterAppend)==null||i.call(r,e,r.mirror.getId(e)))}function pd(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&&qn[n])e.setAttributeNS(qn[n],n,o);else if(t.tagName==="CANVAS"&&n==="rr_dataURL"){const l=document.createElement("img");l.src=o,l.onload=()=>{const c=e.getContext("2d");c&&c.drawImage(l,0,0,l.width,l.height)}}else{if(t.tagName==="IFRAME"&&n==="srcdoc")continue;try{e.setAttribute(n,o)}catch(l){console.warn(l)}}}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 Qu(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,l=0,c=n.length-1,a=s[o],d=s[u],f=n[l],h=n[c],m,p;for(;o<=u&&l<=c;)if(a===void 0)a=s[++o];else if(d===void 0)d=s[--u];else if(gr(a,f,r.mirror,i))a=s[++o],f=n[++l];else if(gr(d,h,r.mirror,i))d=s[--u],h=n[--c];else if(gr(a,h,r.mirror,i)){try{e.insertBefore(a,d.nextSibling)}catch(b){console.warn(b)}a=s[++o],h=n[--c]}else if(gr(d,f,r.mirror,i)){try{e.insertBefore(d,a)}catch(b){console.warn(b)}d=s[--u],f=n[++l]}else{if(!m){m={};for(let _=o;_<=u;_++){const S=s[_];S&&r.mirror.hasNode(S)&&(m[r.mirror.getId(S)]=_)}}p=m[i.getId(f)];const b=s[p];if(p!==void 0&&b&&gr(b,f,r.mirror,i)){try{e.insertBefore(b,a)}catch(_){console.warn(_)}s[p]=void 0}else{const _=Li(f,r.mirror,i);e.nodeName==="#document"&&a&&(_.nodeType===_.DOCUMENT_TYPE_NODE&&a.nodeType===a.DOCUMENT_TYPE_NODE||_.nodeType===_.ELEMENT_NODE&&a.nodeType===a.ELEMENT_NODE)&&(e.removeChild(a),r.mirror.removeNodeFromMap(a),a=s[++o]);try{e.insertBefore(_,a||null)}catch(S){console.warn(S)}}f=n[++l]}if(o>u){const b=n[c+1];let _=null;for(b&&(_=r.mirror.getNode(i.getId(b)));l<=c;++l){const S=Li(n[l],r.mirror,i);try{e.insertBefore(S,_)}catch(v){console.warn(v)}}}else if(l>c)for(;o<=u;o++){const b=s[o];if(!(!b||b.parentNode!==e))try{e.removeChild(b),r.mirror.removeNodeFromMap(b)}catch(_){console.warn(_)}}let g=e.firstChild,y=t.firstChild;for(;g!==null&&y!==null;)Ii(g,y,r,i),g=g.nextSibling,y=y.nextSibling}function Li(e,t,r){const i=r.getId(e),s=r.getMeta(e);let n=null;if(i>-1&&(n=t.getNode(i)),n!==null&&Ro(n,e))return n;switch(e.RRNodeType){case W.Document:n=new Document;break;case W.DocumentType:n=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case W.Element:{let o=e.tagName.toLowerCase();o=fd[o]||o,s&&"isSVG"in s&&(s!=null&&s.isSVG)?n=document.createElementNS(qn.svg,o):n=document.createElement(e.tagName);break}case W.Text:n=document.createTextNode(e.data);break;case W.Comment:n=document.createComment(e.data);break;case W.CDATA:n=document.createCDATASection(e.data);break}s&&t.add(n,H({},s));try{gt==null||gt.add(n)}catch(o){}return n}function Ro(e,t){return e.nodeType!==t.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName}function gr(e,t,r,i){const s=r.getId(e),n=i.getId(t);return s===-1||s!==n?!1:Ro(e,t)}class Fr extends Co{constructor(t){super(),D(this,"UNSERIALIZED_STARTING_ID",-2),D(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),D(this,"mirror",Rd()),D(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,i){return new Fr}createDocumentType(t,r,i){const s=new md(t,r,i);return s.ownerDocument=this,s}createElement(t){const r=t.toUpperCase();let i;switch(r){case"AUDIO":case"VIDEO":i=new gd(r);break;case"IFRAME":i=new bd(r,this.mirror);break;case"CANVAS":i=new yd(r);break;case"STYLE":i=new wd(r);break;case"DIALOG":i=new vd(r);break;default:i=new us(r);break}return i.ownerDocument=this,i}createComment(t){const r=new Sd(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new Ed(t);return r.ownerDocument=this,r}createTextNode(t){const r=new _d(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 md=ju;class us extends ls{constructor(){super(...arguments),D(this,"inputData",null),D(this,"scrollData",null)}}class gd extends ld{}class vd extends ud{}class yd extends us{constructor(){super(...arguments),D(this,"rr_dataURL",null),D(this,"canvasMutations",[])}getContext(){return null}}class wd extends us{constructor(){super(...arguments),D(this,"rules",[])}}class bd extends us{constructor(t,r){super(t),D(this,"contentDocument",new Fr),this.contentDocument.mirror=r}}const _d=Gu,Sd=Hu,Ed=Yu;function Cd(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function Ku(e,t,r,i){let s;switch(e.nodeType){case Be.DOCUMENT_NODE:i&&i.nodeName==="IFRAME"?s=i.contentDocument:(s=t,s.compatMode=e.compatMode);break;case Be.DOCUMENT_TYPE_NODE:{const o=e;s=t.createDocumentType(o.name,o.publicId,o.systemId);break}case Be.ELEMENT_NODE:{const o=e,u=Cd(o);s=t.createElement(u);const l=s;for(const{name:c,value:a}of Array.from(o.attributes))l.attributes[c]=a;o.scrollLeft&&(l.scrollLeft=o.scrollLeft),o.scrollTop&&(l.scrollTop=o.scrollTop);break}case Be.TEXT_NODE:s=t.createTextNode(e.textContent||"");break;case Be.CDATA_SECTION_NODE:s=t.createCDATASection(e.data);break;case Be.COMMENT_NODE:s=t.createComment(e.textContent||"");break;case Be.DOCUMENT_FRAGMENT_NODE:s=i.attachShadow({mode:"open"});break;default:return null}let n=r.getMeta(e);return t instanceof Fr&&(n||(n=zn(s,t.unserializedId),r.add(e,n)),t.mirror.add(s,H({},n))),s}function xd(e,t=$h(),r=new Fr){function i(s,n){const o=Ku(s,r,t,n);if(o!==null)if((n==null?void 0:n.nodeName)!=="IFRAME"&&s.nodeType!==Be.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===Be.DOCUMENT_NODE||s.nodeType===Be.ELEMENT_NODE||s.nodeType===Be.DOCUMENT_FRAGMENT_NODE)&&(s.nodeType===Be.ELEMENT_NODE&&s.shadowRoot&&i(s.shadowRoot,o),s.childNodes.forEach(u=>i(u,o)))}return i(e,null),r}function Rd(){return new Md}class Md{constructor(){D(this,"idNodeMap",new Map),D(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 zn(e,t){switch(e.RRNodeType){case W.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case W.DocumentType:{const r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId}}case W.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case W.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case W.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case W.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}const al={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ll={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},vi={};function Nd(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 Mo(e){if(vi[e])return vi[e];const t=Nd(e)||globalThis[e],r=t.prototype,i=e in al?al[e]:void 0,s=!!(i&&i.every(u=>{var l,c;return!!((c=(l=Object.getOwnPropertyDescriptor(r,u))==null?void 0:l.get)!=null&&c.toString().includes("[native code]"))})),n=e in ll?ll[e]:void 0,o=!!(n&&n.every(u=>{var l;return typeof r[u]=="function"&&((l=r[u])==null?void 0:l.toString().includes("[native code]"))}));if(s&&o)return vi[e]=t.prototype,t.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const l=u.contentWindow;if(!l)return t.prototype;const c=l[e].prototype;return document.body.removeChild(u),c?vi[e]=c:r}catch(u){return r}}const mn={};function Ht(e,t,r){var i;const s=`${e}.${String(r)}`;if(mn[s])return mn[s].call(t);const n=Mo(e),o=(i=Object.getOwnPropertyDescriptor(n,r))==null?void 0:i.get;return o?(mn[s]=o,o.call(t)):t[r]}const gn={};function Zu(e,t,r){const i=`${e}.${String(r)}`;if(gn[i])return gn[i].bind(t);const n=Mo(e)[r];return typeof n!="function"?t[r]:(gn[i]=n,n.bind(t))}function Od(e){return Ht("Node",e,"childNodes")}function Ad(e){return Ht("Node",e,"parentNode")}function Dd(e){return Ht("Node",e,"parentElement")}function Td(e){return Ht("Node",e,"textContent")}function Pd(e,t){return Zu("Node",e,"contains")(t)}function kd(e){return Zu("Node",e,"getRootNode")()}function Id(e){return!e||!("host"in e)?null:Ht("ShadowRoot",e,"host")}function Ld(e){return e.styleSheets}function Fd(e){return!e||!("shadowRoot"in e)?null:Ht("Element",e,"shadowRoot")}function Ud(e,t){return Ht("Element",e,"querySelector")(t)}function Bd(e,t){return Ht("Element",e,"querySelectorAll")(t)}function Wd(){return Mo("MutationObserver").constructor}const qd={childNodes:Od,parentNode:Ad,parentElement:Dd,textContent:Td,contains:Pd,getRootNode:kd,host:Id,styleSheets:Ld,shadowRoot:Fd,querySelector:Ud,querySelectorAll:Bd,mutationObserver:Wd},vr=`Please stop import mirror directly. Instead of that,\r
|
|
62
|
+
`)&&(d=`\r
|
|
63
|
+
`),this.css+=d+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let d=this.toUrl(this.path(f.file)),m=f.root||r(f.file),p;this.mapOpts.sourcesContent===!1?(p=new e(f.text),p.sourcesContent&&(p.sourcesContent=null)):p=f.consumer(),this.map.applySourceMap(p,d,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let d=this.root.nodes.length-1;d>=0;d--)f=this.root.nodes[d],f.type==="comment"&&f.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(d)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&a&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,d=>{f+=d}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=t.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new t({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 t({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,d=1,m="<no source>",p={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,v;this.stringify(this.root,(w,_,E)=>{if(this.css+=w,_&&E!=="end"&&(p.generated.line=f,p.generated.column=d-1,_.source&&_.source.start?(p.source=this.sourcePath(_),p.original.line=_.source.start.line,p.original.column=_.source.start.column-1,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,this.map.addMapping(p))),g=w.match(/\n/g),g?(f+=g.length,v=w.lastIndexOf(`
|
|
64
|
+
`),d=w.length-v):d+=w.length,_&&E!=="start"){let y=_.parent||{raws:{}};(!(_.type==="decl"||_.type==="atrule"&&!_.nodes)||_!==y.last||y.raws.semicolon)&&(_.source&&_.source.end?(p.source=this.sourcePath(_),p.original.line=_.source.end.line,p.original.column=_.source.end.column-1,p.generated.line=f,p.generated.column=d-2,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,p.generated.line=f,p.generated.column=d-1,this.map.addMapping(p)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f!="undefined"&&f!==!0?!1:this.previous().length?this.previous().some(d=>d.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let d=this.memoizedPaths.get(f);if(d)return d;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(s(m,this.mapOpts.annotation)));let p=i(m,f);return this.memoizedPaths.set(f,p),p}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let d=f.source.input.map;this.previousMaps.includes(d)||this.previousMaps.push(d)}});else{let f=new u(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(d=>{if(d.source){let m=d.source.input.from;if(m&&!f[m]){f[m]=!0;let p=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(p,d.source.input.css)}}});else if(this.css){let d=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(d,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let d=this.memoizedFileURLs.get(f);if(d)return d;if(o){let m=o(f).toString();return this.memoizedFileURLs.set(f,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let d=this.memoizedURLs.get(f);if(d)return d;n==="\\"&&(f=f.replace(/\\/g,"/"));let m=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,m),m}}return un=l,un}var cn,pl;function vs(){if(pl)return cn;pl=1;let e=ps();class t extends e{constructor(i){super(i),this.type="comment"}}return cn=t,t.default=t,cn}var fn,ml;function mr(){if(ml)return fn;ml=1;let{isClean:e,my:t}=Uo(),r=ms(),i=vs(),s=ps(),n,o,u,a;function c(f){return f.map(d=>(d.nodes&&(d.nodes=c(d.nodes)),delete d.source,d))}function l(f){if(f[e]=!1,f.proxyOf.nodes)for(let d of f.proxyOf.nodes)l(d)}class h extends s{append(...d){for(let m of d){let p=this.normalize(m,this.last);for(let g of p)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(d){if(super.cleanRaws(d),this.nodes)for(let m of this.nodes)m.cleanRaws(d)}each(d){if(!this.proxyOf.nodes)return;let m=this.getIterator(),p,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(p=this.indexes[m],g=d(this.proxyOf.nodes[p],p),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(d){return this.nodes.every(d)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let d=this.lastEach;return this.indexes[d]=0,d}getProxyProcessor(){return{get(d,m){return m==="proxyOf"?d:d[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...p)=>d[m](...p.map(g=>typeof g=="function"?(v,w)=>g(v.toProxy(),w):g)):m==="every"||m==="some"?p=>d[m]((g,...v)=>p(g.toProxy(),...v)):m==="root"?()=>d.root().toProxy():m==="nodes"?d.nodes.map(p=>p.toProxy()):m==="first"||m==="last"?d[m].toProxy():d[m]:d[m]},set(d,m,p){return d[m]===p||(d[m]=p,(m==="name"||m==="params"||m==="selector")&&d.markDirty()),!0}}}index(d){return typeof d=="number"?d:(d.proxyOf&&(d=d.proxyOf),this.proxyOf.nodes.indexOf(d))}insertAfter(d,m){let p=this.index(d),g=this.normalize(m,this.proxyOf.nodes[p]).reverse();p=this.index(d);for(let w of g)this.proxyOf.nodes.splice(p+1,0,w);let v;for(let w in this.indexes)v=this.indexes[w],p<v&&(this.indexes[w]=v+g.length);return this.markDirty(),this}insertBefore(d,m){let p=this.index(d),g=p===0?"prepend":!1,v=this.normalize(m,this.proxyOf.nodes[p],g).reverse();p=this.index(d);for(let _ of v)this.proxyOf.nodes.splice(p,0,_);let w;for(let _ in this.indexes)w=this.indexes[_],p<=w&&(this.indexes[_]=w+v.length);return this.markDirty(),this}normalize(d,m){if(typeof d=="string")d=c(n(d).nodes);else if(typeof d=="undefined")d=[];else if(Array.isArray(d)){d=d.slice(0);for(let g of d)g.parent&&g.parent.removeChild(g,"ignore")}else if(d.type==="root"&&this.type!=="document"){d=d.nodes.slice(0);for(let g of d)g.parent&&g.parent.removeChild(g,"ignore")}else if(d.type)d=[d];else if(d.prop){if(typeof d.value=="undefined")throw new Error("Value field is missed in node creation");typeof d.value!="string"&&(d.value=String(d.value)),d=[new r(d)]}else if(d.selector)d=[new o(d)];else if(d.name)d=[new u(d)];else if(d.text)d=[new i(d)];else throw new Error("Unknown node type in node creation");return d.map(g=>(g[t]||h.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&l(g),typeof g.raws.before=="undefined"&&m&&typeof m.raws.before!="undefined"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...d){d=d.reverse();for(let m of d){let p=this.normalize(m,this.first,"prepend").reverse();for(let g of p)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+p.length}return this.markDirty(),this}push(d){return d.parent=this,this.proxyOf.nodes.push(d),this}removeAll(){for(let d of this.proxyOf.nodes)d.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(d){d=this.index(d),this.proxyOf.nodes[d].parent=void 0,this.proxyOf.nodes.splice(d,1);let m;for(let p in this.indexes)m=this.indexes[p],m>=d&&(this.indexes[p]=m-1);return this.markDirty(),this}replaceValues(d,m,p){return p||(p=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(d,p))}),this.markDirty(),this}some(d){return this.nodes.some(d)}walk(d){return this.each((m,p)=>{let g;try{g=d(m,p)}catch(v){throw m.addToError(v)}return g!==!1&&m.walk&&(g=m.walk(d)),g})}walkAtRules(d,m){return m?d instanceof RegExp?this.walk((p,g)=>{if(p.type==="atrule"&&d.test(p.name))return m(p,g)}):this.walk((p,g)=>{if(p.type==="atrule"&&p.name===d)return m(p,g)}):(m=d,this.walk((p,g)=>{if(p.type==="atrule")return m(p,g)}))}walkComments(d){return this.walk((m,p)=>{if(m.type==="comment")return d(m,p)})}walkDecls(d,m){return m?d instanceof RegExp?this.walk((p,g)=>{if(p.type==="decl"&&d.test(p.prop))return m(p,g)}):this.walk((p,g)=>{if(p.type==="decl"&&p.prop===d)return m(p,g)}):(m=d,this.walk((p,g)=>{if(p.type==="decl")return m(p,g)}))}walkRules(d,m){return m?d instanceof RegExp?this.walk((p,g)=>{if(p.type==="rule"&&d.test(p.selector))return m(p,g)}):this.walk((p,g)=>{if(p.type==="rule"&&p.selector===d)return m(p,g)}):(m=d,this.walk((p,g)=>{if(p.type==="rule")return m(p,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return h.registerParse=f=>{n=f},h.registerRule=f=>{o=f},h.registerAtRule=f=>{u=f},h.registerRoot=f=>{a=f},fn=h,h.default=h,h.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,u.prototype):f.type==="rule"?Object.setPrototypeOf(f,o.prototype):f.type==="decl"?Object.setPrototypeOf(f,r.prototype):f.type==="comment"?Object.setPrototypeOf(f,i.prototype):f.type==="root"&&Object.setPrototypeOf(f,a.prototype),f[t]=!0,f.nodes&&f.nodes.forEach(d=>{h.rebuild(d)})},fn}var hn,gl;function Bo(){if(gl)return hn;gl=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},hn=i,i.default=i,hn}var dn,vl;function dc(){if(vl)return dn;vl=1;let e={};return dn=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},dn}var pn,yl;function pc(){if(yl)return pn;yl=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 pn=e,e.default=e,pn}var mn,wl;function $o(){if(wl)return mn;wl=1;let e=pc();class t{constructor(i,s,n){this.processor=i,this.messages=[],this.root=s,this.opts=n,this.css=void 0,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")}get content(){return this.css}}return mn=t,t.default=t,mn}var gn,bl;function vp(){if(bl)return gn;bl=1;const e=39,t=34,r=92,i=47,s=10,n=32,o=12,u=9,a=13,c=91,l=93,h=40,f=41,d=123,m=125,p=59,g=42,v=58,w=64,_=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return gn=function(C,O={}){let N=C.css.valueOf(),F=O.ignoreErrors,T,x,oe,L,te,U,$,ge,q,W,Ce=N.length,A=0,be=[],k=[];function j(){return A}function ee(ie){throw C.error("Unclosed "+ie,A)}function P(){return k.length===0&&A>=Ce}function fe(ie){if(k.length)return k.pop();if(A>=Ce)return;let ke=ie?ie.ignoreUnclosed:!1;switch(T=N.charCodeAt(A),T){case s:case n:case u:case a:case o:{x=A;do x+=1,T=N.charCodeAt(x);while(T===n||T===s||T===u||T===a||T===o);W=["space",N.slice(A,x)],A=x-1;break}case c:case l:case d:case m:case v:case p:case f:{let pt=String.fromCharCode(T);W=[pt,pt,A];break}case h:{if(ge=be.length?be.pop()[1]:"",q=N.charCodeAt(A+1),ge==="url"&&q!==e&&q!==t&&q!==n&&q!==s&&q!==u&&q!==o&&q!==a){x=A;do{if(U=!1,x=N.indexOf(")",x+1),x===-1)if(F||ke){x=A;break}else ee("bracket");for($=x;N.charCodeAt($-1)===r;)$-=1,U=!U}while(U);W=["brackets",N.slice(A,x+1),A,x],A=x}else x=N.indexOf(")",A+1),L=N.slice(A,x+1),x===-1||y.test(L)?W=["(","(",A]:(W=["brackets",L,A,x],A=x);break}case e:case t:{oe=T===e?"'":'"',x=A;do{if(U=!1,x=N.indexOf(oe,x+1),x===-1)if(F||ke){x=A+1;break}else ee("string");for($=x;N.charCodeAt($-1)===r;)$-=1,U=!U}while(U);W=["string",N.slice(A,x+1),A,x],A=x;break}case w:{_.lastIndex=A+1,_.test(N),_.lastIndex===0?x=N.length-1:x=_.lastIndex-2,W=["at-word",N.slice(A,x+1),A,x],A=x;break}case r:{for(x=A,te=!0;N.charCodeAt(x+1)===r;)x+=1,te=!te;if(T=N.charCodeAt(x+1),te&&T!==i&&T!==n&&T!==s&&T!==u&&T!==a&&T!==o&&(x+=1,b.test(N.charAt(x)))){for(;b.test(N.charAt(x+1));)x+=1;N.charCodeAt(x+1)===n&&(x+=1)}W=["word",N.slice(A,x+1),A,x],A=x;break}default:{T===i&&N.charCodeAt(A+1)===g?(x=N.indexOf("*/",A+2)+1,x===0&&(F||ke?x=N.length:ee("comment")),W=["comment",N.slice(A,x+1),A,x],A=x):(E.lastIndex=A+1,E.test(N),E.lastIndex===0?x=N.length-1:x=E.lastIndex-2,W=["word",N.slice(A,x+1),A,x],be.push(W),A=x);break}}return A++,W}function ue(ie){k.push(ie)}return{back:ue,endOfFile:P,nextToken:fe,position:j}},gn}var vn,_l;function Wo(){if(_l)return vn;_l=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 vn=t,t.default=t,e.registerAtRule(t),vn}var yn,Sl;function pi(){if(Sl)return yn;Sl=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 a=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 c of a)c.raws.before=o.raws.before}return a}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},yn=i,i.default=i,e.registerRoot(i),yn}var wn,El;function mc(){if(El)return wn;El=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,a=!1,c="",l=!1;for(let h of t)l?l=!1:h==="\\"?l=!0:a?h===c&&(a=!1):h==='"'||h==="'"?(a=!0,c=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 wn=e,e.default=e,wn}var bn,Cl;function zo(){if(Cl)return bn;Cl=1;let e=mr(),t=mc();class r extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}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)}}return bn=r,r.default=r,e.registerRule(r),bn}var _n,xl;function yp(){if(xl)return _n;xl=1;let e=ms(),t=vp(),r=vs(),i=Wo(),s=pi(),n=zo();const o={empty:!0,space:!0};function u(c){for(let l=c.length-1;l>=0;l--){let h=c[l],f=h[3]||h[2];if(f)return f}}class a{constructor(l){this.input=l,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:l,start:{column:1,line:1,offset:0}}}atrule(l){let h=new i;h.name=l[1].slice(1),h.name===""&&this.unnamedAtrule(h,l),this.init(h,l[2]);let f,d,m,p=!1,g=!1,v=[],w=[];for(;!this.tokenizer.endOfFile();){if(l=this.tokenizer.nextToken(),f=l[0],f==="("||f==="["?w.push(f==="("?")":"]"):f==="{"&&w.length>0?w.push("}"):f===w[w.length-1]&&w.pop(),w.length===0)if(f===";"){h.source.end=this.getPosition(l[2]),h.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(v.length>0){for(m=v.length-1,d=v[m];d&&d[0]==="space";)d=v[--m];d&&(h.source.end=this.getPosition(d[3]||d[2]),h.source.end.offset++)}this.end(l);break}else v.push(l);else v.push(l);if(this.tokenizer.endOfFile()){p=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(h.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(h,"params",v),p&&(l=v[v.length-1],h.source.end=this.getPosition(l[3]||l[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(l){let h=this.colon(l);if(h===!1)return;let f=0,d;for(let m=h-1;m>=0&&(d=l[m],!(d[0]!=="space"&&(f+=1,f===2)));m--);throw this.input.error("Missed semicolon",d[0]==="word"?d[3]+1:d[2])}colon(l){let h=0,f,d,m;for(let[p,g]of l.entries()){if(f=g,d=f[0],d==="("&&(h+=1),d===")"&&(h-=1),h===0&&d===":")if(!m)this.doubleColon(f);else{if(m[0]==="word"&&m[1]==="progid")continue;return p}m=f}return!1}comment(l){let h=new r;this.init(h,l[2]),h.source.end=this.getPosition(l[3]||l[2]),h.source.end.offset++;let f=l[1].slice(2,-2);if(/^\s*$/.test(f))h.text="",h.raws.left=f,h.raws.right="";else{let d=f.match(/^(\s*)([^]*\S)(\s*)$/);h.text=d[2],h.raws.left=d[1],h.raws.right=d[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(l,h){let f=new e;this.init(f,l[0][2]);let d=l[l.length-1];for(d[0]===";"&&(this.semicolon=!0,l.pop()),f.source.end=this.getPosition(d[3]||d[2]||u(l)),f.source.end.offset++;l[0][0]!=="word";)l.length===1&&this.unknownWord(l),f.raws.before+=l.shift()[1];for(f.source.start=this.getPosition(l[0][2]),f.prop="";l.length;){let w=l[0][0];if(w===":"||w==="space"||w==="comment")break;f.prop+=l.shift()[1]}f.raws.between="";let m;for(;l.length;)if(m=l.shift(),m[0]===":"){f.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let p=[],g;for(;l.length&&(g=l[0][0],!(g!=="space"&&g!=="comment"));)p.push(l.shift());this.precheckMissedSemicolon(l);for(let w=l.length-1;w>=0;w--){if(m=l[w],m[1].toLowerCase()==="!important"){f.important=!0;let _=this.stringFrom(l,w);_=this.spacesFromEnd(l)+_,_!==" !important"&&(f.raws.important=_);break}else if(m[1].toLowerCase()==="important"){let _=l.slice(0),E="";for(let y=w;y>0;y--){let b=_[y][0];if(E.trim().indexOf("!")===0&&b!=="space")break;E=_.pop()[1]+E}E.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=E,l=_)}if(m[0]!=="space"&&m[0]!=="comment")break}l.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(f.raws.between+=p.map(w=>w[1]).join(""),p=[]),this.raw(f,"value",p.concat(l),h),f.value.includes(":")&&!h&&this.checkMissedSemicolon(l)}doubleColon(l){throw this.input.error("Double colon",{offset:l[2]},{offset:l[2]+l[1].length})}emptyRule(l){let h=new n;this.init(h,l[2]),h.selector="",h.raws.between="",this.current=h}end(l){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(l[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(l)}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(l){if(this.spaces+=l[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="")}}getPosition(l){let h=this.input.fromOffset(l);return{column:h.col,line:h.line,offset:l}}init(l,h){this.current.push(l),l.source={input:this.input,start:this.getPosition(h)},l.raws.before=this.spaces,this.spaces="",l.type!=="comment"&&(this.semicolon=!1)}other(l){let h=!1,f=null,d=!1,m=null,p=[],g=l[1].startsWith("--"),v=[],w=l;for(;w;){if(f=w[0],v.push(w),f==="("||f==="[")m||(m=w),p.push(f==="("?")":"]");else if(g&&d&&f==="{")m||(m=w),p.push("}");else if(p.length===0)if(f===";")if(d){this.decl(v,g);return}else break;else if(f==="{"){this.rule(v);return}else if(f==="}"){this.tokenizer.back(v.pop()),h=!0;break}else f===":"&&(d=!0);else f===p[p.length-1]&&(p.pop(),p.length===0&&(m=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),p.length>0&&this.unclosedBracket(m),h&&d){if(!g)for(;v.length&&(w=v[v.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,g)}else this.unknownWord(v)}parse(){let l;for(;!this.tokenizer.endOfFile();)switch(l=this.tokenizer.nextToken(),l[0]){case"space":this.spaces+=l[1];break;case";":this.freeSemicolon(l);break;case"}":this.end(l);break;case"comment":this.comment(l);break;case"at-word":this.atrule(l);break;case"{":this.emptyRule(l);break;default:this.other(l);break}this.endFile()}precheckMissedSemicolon(){}raw(l,h,f,d){let m,p,g=f.length,v="",w=!0,_,E;for(let y=0;y<g;y+=1)m=f[y],p=m[0],p==="space"&&y===g-1&&!d?w=!1:p==="comment"?(E=f[y-1]?f[y-1][0]:"empty",_=f[y+1]?f[y+1][0]:"empty",!o[E]&&!o[_]?v.slice(-1)===","?w=!1:v+=m[1]:w=!1):v+=m[1];if(!w){let y=f.reduce((b,S)=>b+S[1],"");l.raws[h]={raw:y,value:v}}l[h]=v}rule(l){l.pop();let h=new n;this.init(h,l[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(l),this.raw(h,"selector",l),this.current=h}spacesAndCommentsFromEnd(l){let h,f="";for(;l.length&&(h=l[l.length-1][0],!(h!=="space"&&h!=="comment"));)f=l.pop()[1]+f;return f}spacesAndCommentsFromStart(l){let h,f="";for(;l.length&&(h=l[0][0],!(h!=="space"&&h!=="comment"));)f+=l.shift()[1];return f}spacesFromEnd(l){let h,f="";for(;l.length&&(h=l[l.length-1][0],h==="space");)f=l.pop()[1]+f;return f}stringFrom(l,h){let f="";for(let d=h;d<l.length;d++)f+=l[d][1];return l.splice(h,l.length-h),f}unclosedBlock(){let l=this.current.source.start;throw this.input.error("Unclosed block",l.line,l.column)}unclosedBracket(l){throw this.input.error("Unclosed bracket",{offset:l[2]},{offset:l[2]+1})}unexpectedClose(l){throw this.input.error("Unexpected }",{offset:l[2]},{offset:l[2]+1})}unknownWord(l){throw this.input.error("Unknown word",{offset:l[0][2]},{offset:l[0][2]+l[0][1].length})}unnamedAtrule(l,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return _n=a,_n}var Sn,Rl;function qo(){if(Rl)return Sn;Rl=1;let e=mr(),t=yp(),r=gs();function i(s,n){let o=new r(s,n),u=new t(o);try{u.parse()}catch(a){throw a}return u.root}return Sn=i,i.default=i,e.registerParse(i),Sn}var En,Nl;function gc(){if(Nl)return En;Nl=1;let{isClean:e,my:t}=Uo(),r=hc(),i=ds(),s=mr(),n=Bo(),o=dc(),u=$o(),a=qo(),c=pi();const l={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},f={Once:!0,postcssPlugin:!0,prepare:!0},d=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function p(E){let y=!1,b=l[E.type];return E.type==="decl"?y=E.prop.toLowerCase():E.type==="atrule"&&(y=E.name.toLowerCase()),y&&E.append?[b,b+"-"+y,d,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:E.append?[b,d,b+"Exit"]:[b,b+"Exit"]}function g(E){let y;return E.type==="document"?y=["Document",d,"DocumentExit"]:E.type==="root"?y=["Root",d,"RootExit"]:y=p(E),{eventIndex:0,events:y,iterator:0,node:E,visitorIndex:0,visitors:[]}}function v(E){return E[e]=!1,E.nodes&&E.nodes.forEach(y=>v(y)),E}let w={};class _{constructor(y,b,S){this.stringified=!1,this.processed=!1;let C;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))C=v(b);else if(b instanceof _||b instanceof u)C=v(b.root),b.map&&(typeof S.map=="undefined"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=b.map);else{let O=a;S.syntax&&(O=S.syntax.parse),S.parser&&(O=S.parser),O.parse&&(O=O.parse);try{C=O(b,S)}catch(N){this.processed=!0,this.error=N}C&&!C[t]&&s.rebuild(C)}this.result=new u(y,C,S),this.helpers=we(G({},w),{postcss:w,result:this.result}),this.plugins=this.processor.plugins.map(O=>typeof O=="object"&&O.prepare?G(G({},O),O.prepare(this.result)):O)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(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 S=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=S.postcssPlugin,y.setMessage()):S.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(b,S,C)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([b,C])};for(let b of this.plugins)if(typeof b=="object")for(let S in b){if(!h[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[S])if(typeof b[S]=="object")for(let C in b[S])C==="*"?y(b,S,b[S][C]):y(b,S+"-"+C.toLowerCase(),b[S][C]);else typeof b[S]=="function"&&y(b,S,b[S])}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],S=this.runOnRoot(b);if(m(S))try{await S}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];){y[e]=!0;let b=[g(y)];for(;b.length>0;){let S=this.visitTick(b);if(m(S))try{await S}catch(C){let O=b[b.length-1].node;throw this.handleError(C,O)}}}if(this.listeners.OnceExit)for(let[b,S]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let C=y.nodes.map(O=>S(O,this.helpers));await Promise.all(C)}else await S(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(S=>y.Once(S,this.helpers));return m(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=i;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(m(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];)y[e]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let 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[S,C]of y){this.result.lastPlugin=S;let O;try{O=C(b,this.helpers)}catch(N){throw this.handleError(N,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(m(O))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:S,visitors:C}=b;if(S.type!=="root"&&S.type!=="document"&&!S.parent){y.pop();return}if(C.length>0&&b.visitorIndex<C.length){let[N,F]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=N;try{return F(S.toProxy(),this.helpers)}catch(T){throw this.handleError(T,S)}}if(b.iterator!==0){let N=b.iterator,F;for(;F=S.nodes[S.indexes[N]];)if(S.indexes[N]+=1,!F[e]){F[e]=!0,y.push(g(F));return}b.iterator=0,delete S.indexes[N]}let O=b.events;for(;b.eventIndex<O.length;){let N=O[b.eventIndex];if(b.eventIndex+=1,N===d){S.nodes&&S.nodes.length&&(S[e]=!0,b.iterator=S.getIterator());return}else if(this.listeners[N]){b.visitors=this.listeners[N];return}}y.pop()}walkSync(y){y[e]=!0;let b=p(y);for(let S of b)if(S===d)y.nodes&&y.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[S];if(C&&this.visitSync(C,y.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return _.registerPostcss=E=>{w=E},En=_,_.default=_,c.registerLazyResult(_),n.registerLazyResult(_),En}var Cn,Ml;function wp(){if(Ml)return Cn;Ml=1;let e=hc(),t=ds(),r=dc(),i=qo();const s=$o();class n{constructor(u,a,c){a=a.toString(),this.stringified=!1,this._processor=u,this._css=a,this._opts=c,this._map=void 0;let l,h=t;this.result=new s(this._processor,l,this._opts),this.result.css=a;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let d=new e(h,l,this._opts,a);if(d.isMap()){let[m,p]=d.generate();m&&(this.result.css=m),p&&(this.result.map=p)}else d.clearAnnotation(),this.result.css=d.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,a){return this.async().then(u,a)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let u,a=i;try{u=a(this._css,this._opts)}catch(c){this.error=c}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}}return Cn=n,n.default=n,Cn}var xn,Ol;function bp(){if(Ol)return xn;Ol=1;let e=wp(),t=gc(),r=Bo(),i=pi();class s{constructor(o=[]){this.version="8.4.38",this.plugins=this.normalize(o)}normalize(o){let u=[];for(let a of o)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))u=u.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)u.push(a);else if(typeof a=="function")u.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return u}process(o,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new e(this,o,u):new t(this,o,u)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return xn=s,s.default=s,i.registerProcessor(s),r.registerProcessor(s),xn}var Rn,Al;function _p(){if(Al)return Rn;Al=1;let e=ms(),t=fc(),r=vs(),i=Wo(),s=gs(),n=pi(),o=zo();function u(a,c){if(Array.isArray(a))return a.map(m=>u(m));let f=a,{inputs:l}=f,h=jr(f,["inputs"]);if(l){c=[];for(let m of l){let p=we(G({},m),{__proto__:s.prototype});p.map&&(p.map=we(G({},p.map),{__proto__:t.prototype})),c.push(p)}}if(h.nodes&&(h.nodes=a.nodes.map(m=>u(m,c))),h.source){let d=h.source,{inputId:m}=d,p=jr(d,["inputId"]);h.source=p,m!=null&&(h.source.input=c[m])}if(h.type==="root")return new n(h);if(h.type==="decl")return new e(h);if(h.type==="rule")return new o(h);if(h.type==="comment")return new r(h);if(h.type==="atrule")return new i(h);throw new Error("Unknown node type: "+a.type)}return Rn=u,u.default=u,Rn}var Nn,Dl;function Sp(){if(Dl)return Nn;Dl=1;let e=Fo(),t=ms(),r=gc(),i=mr(),s=bp(),n=ds(),o=_p(),u=Bo(),a=pc(),c=vs(),l=Wo(),h=$o(),f=gs(),d=qo(),m=mc(),p=zo(),g=pi(),v=ps();function w(..._){return _.length===1&&Array.isArray(_[0])&&(_=_[0]),new s(_)}return w.plugin=function(E,y){let b=!1;function S(...O){console&&console.warn&&!b&&(b=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
|
|
66
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(E+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
67
|
+
https://www.w3ctech.com/topic/2226`));let N=y(...O);return N.postcssPlugin=E,N.postcssVersion=new s().version,N}let C;return Object.defineProperty(S,"postcss",{get(){return C||(C=S()),C}}),S.process=function(O,N,F){return w([S(F)]).process(O,N)},S},w.stringify=n,w.parse=d,w.fromJSON=o,w.list=m,w.comment=_=>new c(_),w.atRule=_=>new l(_),w.decl=_=>new t(_),w.rule=_=>new p(_),w.root=_=>new g(_),w.document=_=>new u(_),w.CssSyntaxError=e,w.Declaration=t,w.Container=i,w.Processor=s,w.Document=u,w.Comment=c,w.Warning=a,w.AtRule=l,w.Result=h,w.Input=f,w.Rule=p,w.Root=g,w.Node=v,r.registerPostcss(w),Nn=w,w.default=w,Nn}var Ep=Sp();const me=fp(Ep);me.stringify;me.fromJSON;me.plugin;me.parse;me.list;me.document;me.comment;me.atRule;me.rule;me.decl;me.root;me.CssSyntaxError;me.Declaration;me.Container;me.Processor;me.Document;me.Comment;me.Warning;me.AtRule;me.Result;me.Input;me.Rule;me.Root;me.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 Cp(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[ro(o[0].trim())]=o[1].trim())}}),t}function Tl(e){const t=[];for(const r in e){const i=e[r];if(typeof i!="string")continue;const s=Mp(r);t.push(`${s}: ${i};`)}return t.join(" ")}const xp=/-([a-z])/g,Rp=/^--[a-zA-Z0-9-]+$/,ro=e=>Rp.test(e)?e:e.replace(xp,(t,r)=>r?r.toUpperCase():""),Np=/\B([A-Z])/g,Mp=e=>e.replace(Np,"-$1").toLowerCase();class dt{constructor(...t){D(this,"parentElement",null),D(this,"parentNode",null),D(this,"ownerDocument"),D(this,"firstChild",null),D(this,"lastChild",null),D(this,"previousSibling",null),D(this,"nextSibling",null),D(this,"ELEMENT_NODE",1),D(this,"TEXT_NODE",3),D(this,"nodeType"),D(this,"nodeName"),D(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 dt){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 dt{constructor(...t){super(t),D(this,"nodeType",9),D(this,"nodeName","#document"),D(this,"compatMode","CSS1Compat"),D(this,"RRNodeType",V.Document),D(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(n=>n.RRNodeType===i))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${i===V.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=_c(this,t,r);return s.parentElement=null,s}removeChild(t){return Sc(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 vc(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 yc(t);return r.ownerDocument=this,r}createComment(t){const r=new wc(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new bc(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}}class vc extends dt{constructor(t,r,i){super(),D(this,"nodeType",10),D(this,"RRNodeType",V.DocumentType),D(this,"name"),D(this,"publicId"),D(this,"systemId"),D(this,"textContent",null),this.name=t,this.publicId=r,this.systemId=i,this.nodeName=t}toString(){return"RRDocumentType"}}class ys extends dt{constructor(t){super(),D(this,"nodeType",1),D(this,"RRNodeType",V.Element),D(this,"tagName"),D(this,"attributes",{}),D(this,"shadowRoot",null),D(this,"scrollLeft"),D(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 Dp(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?Cp(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(i,s,n)=>{if(r.test(i))return;const o=ro(i);s?t[o]=s:delete t[o],n==="important"&&(t[o]+=" !important"),this.attributes.style=Tl(t)},t.removeProperty=i=>{if(r.test(i))return"";const s=ro(i),n=t[s]||"";return delete t[s],this.attributes.style=Tl(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 Vo(this,t)}insertBefore(t,r){return _c(this,t,r)}removeChild(t){return Sc(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),D(this,"currentTime"),D(this,"volume"),D(this,"paused"),D(this,"muted"),D(this,"playbackRate"),D(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 Ap extends ys{constructor(){super(...arguments),D(this,"tagName","DIALOG"),D(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 yc extends dt{constructor(t){super(),D(this,"nodeType",3),D(this,"nodeName","#text"),D(this,"RRNodeType",V.Text),D(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 wc extends dt{constructor(t){super(),D(this,"nodeType",8),D(this,"nodeName","#comment"),D(this,"RRNodeType",V.Comment),D(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 bc extends dt{constructor(t){super(),D(this,"nodeName","#cdata-section"),D(this,"nodeType",4),D(this,"RRNodeType",V.CDATA),D(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 Dp{constructor(t,r){if(D(this,"onChange"),D(this,"classes",[]),D(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(" "))}),D(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 _c(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 Sc(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/"},Tp={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 yt=null;function Vi(e,t,r,i=t.mirror||t.ownerDocument.mirror){e=kp(e,t,r,i),Ec(e,t,r,i),Pp(e,t,r)}function kp(e,t,r,i){var s;if(r.afterAppend&&!yt&&(yt=new WeakSet,setTimeout(()=>{yt=null},0)),!Go(e,t)){const n=Gi(t,r.mirror,i);(s=e.parentNode)==null||s.replaceChild(n,e),e=n}switch(t.RRNodeType){case V.Document:{if(!br(e,t,r.mirror,i)){const n=i.getMeta(t);n&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,n),yt==null||yt.add(e))}break}case V.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"}),Ec(n.shadowRoot,o.shadowRoot,r,i)),Ip(n,o,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,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 a=s.getContext("2d");a&&a.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,a=o.open,c=o.matches("dialog:modal"),l=u.open,h=u.isModal,f=c!==h,d=a!==l;if((f||a&&d)&&o.close(),l&&(d||f))try{h?o.showModal():o.show()}catch(m){console.warn(m)}break}}break}case V.Text:case V.Comment:case V.CDATA:{e.textContent!==t.data&&(e.textContent=t.data);break}}yt!=null&&yt.has(e)&&(yt.delete(e),(i=r.afterAppend)==null||i.call(r,e,r.mirror.getId(e)))}function Ip(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 a=document.createElement("img");a.src=o,a.onload=()=>{const c=e.getContext("2d");c&&c.drawImage(a,0,0,a.width,a.height)}}else{if(t.tagName==="IFRAME"&&n==="srcdoc")continue;try{e.setAttribute(n,o)}catch(a){console.warn(a)}}}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 Ec(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,a=0,c=n.length-1,l=s[o],h=s[u],f=n[a],d=n[c],m,p;for(;o<=u&&a<=c;)if(l===void 0)l=s[++o];else if(h===void 0)h=s[--u];else if(br(l,f,r.mirror,i))l=s[++o],f=n[++a];else if(br(h,d,r.mirror,i))h=s[--u],d=n[--c];else if(br(l,d,r.mirror,i)){try{e.insertBefore(l,h.nextSibling)}catch(w){console.warn(w)}l=s[++o],d=n[--c]}else if(br(h,f,r.mirror,i)){try{e.insertBefore(h,l)}catch(w){console.warn(w)}h=s[--u],f=n[++a]}else{if(!m){m={};for(let _=o;_<=u;_++){const E=s[_];E&&r.mirror.hasNode(E)&&(m[r.mirror.getId(E)]=_)}}p=m[i.getId(f)];const w=s[p];if(p!==void 0&&w&&br(w,f,r.mirror,i)){try{e.insertBefore(w,l)}catch(_){console.warn(_)}s[p]=void 0}else{const _=Gi(f,r.mirror,i);e.nodeName==="#document"&&l&&(_.nodeType===_.DOCUMENT_TYPE_NODE&&l.nodeType===l.DOCUMENT_TYPE_NODE||_.nodeType===_.ELEMENT_NODE&&l.nodeType===l.ELEMENT_NODE)&&(e.removeChild(l),r.mirror.removeNodeFromMap(l),l=s[++o]);try{e.insertBefore(_,l||null)}catch(E){console.warn(E)}}f=n[++a]}if(o>u){const w=n[c+1];let _=null;for(w&&(_=r.mirror.getNode(i.getId(w)));a<=c;++a){const E=Gi(n[a],r.mirror,i);try{e.insertBefore(E,_)}catch(y){console.warn(y)}}}else if(a>c)for(;o<=u;o++){const w=s[o];if(!(!w||w.parentNode!==e))try{e.removeChild(w),r.mirror.removeNodeFromMap(w)}catch(_){console.warn(_)}}let g=e.firstChild,v=t.firstChild;for(;g!==null&&v!==null;)Vi(g,v,r,i),g=g.nextSibling,v=v.nextSibling}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&&Go(n,e))return n;switch(e.RRNodeType){case V.Document:n=new Document;break;case V.DocumentType:n=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case V.Element:{let o=e.tagName.toLowerCase();o=Tp[o]||o,s&&"isSVG"in s&&(s!=null&&s.isSVG)?n=document.createElementNS(io.svg,o):n=document.createElement(e.tagName);break}case V.Text:n=document.createTextNode(e.data);break;case V.Comment:n=document.createComment(e.data);break;case V.CDATA:n=document.createCDATASection(e.data);break}s&&t.add(n,G({},s));try{yt==null||yt.add(n)}catch(o){}return n}function Go(e,t){return e.nodeType!==t.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName}function br(e,t,r,i){const s=r.getId(e),n=i.getId(t);return s===-1||s!==n?!1:Go(e,t)}class zr extends jo{constructor(t){super(),D(this,"UNSERIALIZED_STARTING_ID",-2),D(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),D(this,"mirror",Hp()),D(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,i){return new zr}createDocumentType(t,r,i){const s=new Lp(t,r,i);return s.ownerDocument=this,s}createElement(t){const r=t.toUpperCase();let i;switch(r){case"AUDIO":case"VIDEO":i=new Fp(r);break;case"IFRAME":i=new Wp(r,this.mirror);break;case"CANVAS":i=new Bp(r);break;case"STYLE":i=new $p(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 qp(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new jp(t);return r.ownerDocument=this,r}createTextNode(t){const r=new zp(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 Lp=vc;class ws extends ys{constructor(){super(...arguments),D(this,"inputData",null),D(this,"scrollData",null)}}class Fp extends Op{}class Up extends Ap{}class Bp extends ws{constructor(){super(...arguments),D(this,"rr_dataURL",null),D(this,"canvasMutations",[])}getContext(){return null}}class $p extends ws{constructor(){super(...arguments),D(this,"rules",[])}}class Wp extends ws{constructor(t,r){super(t),D(this,"contentDocument",new zr),this.contentDocument.mirror=r}}const zp=yc,qp=wc,jp=bc;function Vp(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function Cc(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=Vp(o);s=t.createElement(u);const a=s;for(const{name:c,value:l}of Array.from(o.attributes))a.attributes[c]=l;o.scrollLeft&&(a.scrollLeft=o.scrollLeft),o.scrollTop&&(a.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 zr&&(n||(n=so(s,t.unserializedId),r.add(e,n)),t.mirror.add(s,G({},n))),s}function Gp(e,t=cp(),r=new zr){function i(s,n){const o=Cc(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 Hp(){return new Yp}class Yp{constructor(){D(this,"idNodeMap",new Map),D(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 kl={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Pl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ri={};function Jp(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(Ri[e])return Ri[e];const t=Jp(e)||globalThis[e],r=t.prototype,i=e in kl?kl[e]:void 0,s=!!(i&&i.every(u=>{var a,c;return!!((c=(a=Object.getOwnPropertyDescriptor(r,u))==null?void 0:a.get)!=null&&c.toString().includes("[native code]"))})),n=e in Pl?Pl[e]:void 0,o=!!(n&&n.every(u=>{var a;return typeof r[u]=="function"&&((a=r[u])==null?void 0:a.toString().includes("[native code]"))}));if(s&&o)return Ri[e]=t.prototype,t.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const a=u.contentWindow;if(!a)return t.prototype;const c=a[e].prototype;return document.body.removeChild(u),c?Ri[e]=c:r}catch(u){return r}}const Mn={};function Xt(e,t,r){var i;const s=`${e}.${String(r)}`;if(Mn[s])return Mn[s].call(t);const n=Ho(e),o=(i=Object.getOwnPropertyDescriptor(n,r))==null?void 0:i.get;return o?(Mn[s]=o,o.call(t)):t[r]}const On={};function xc(e,t,r){const i=`${e}.${String(r)}`;if(On[i])return On[i].bind(t);const n=Ho(e)[r];return typeof n!="function"?t[r]:(On[i]=n,n.bind(t))}function Xp(e){return Xt("Node",e,"childNodes")}function Kp(e){return Xt("Node",e,"parentNode")}function Qp(e){return Xt("Node",e,"parentElement")}function Zp(e){return Xt("Node",e,"textContent")}function em(e,t){return xc("Node",e,"contains")(t)}function tm(e){return xc("Node",e,"getRootNode")()}function rm(e){return!e||!("host"in e)?null:Xt("ShadowRoot",e,"host")}function im(e){return e.styleSheets}function sm(e){return!e||!("shadowRoot"in e)?null:Xt("Element",e,"shadowRoot")}function nm(e,t){return Xt("Element",e,"querySelector")(t)}function om(e,t){return Xt("Element",e,"querySelectorAll")(t)}function am(){return Ho("MutationObserver").constructor}const lm={childNodes:Xp,parentNode:Kp,parentElement:Qp,textContent:Zp,contains:em,getRootNode:tm,host:rm,styleSheets:im,shadowRoot:sm,querySelector:nm,querySelectorAll:om,mutationObserver:am},_r=`Please stop import mirror directly. Instead of that,\r
|
|
68
68
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
69
|
-
or you can use record.mirror to access the mirror instance during recording.`;let
|
|
69
|
+
or you can use record.mirror to access the mirror instance during recording.`;let Il={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&&(Il=new Proxy(Il,{get(e,t,r){return t==="map"&&console.error(_r),Reflect.get(e,t,r)}}));Date.now().toString();function um(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 cm(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 a=u.parent.children.indexOf(u);u.parent.children.splice(a,0,r(s,u.parent))}else{const a=i.indexOf(u);i.splice(a,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 Rc(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)Rc(e.children[r],t)}function An(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Nc(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=Nc(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 Ni(e){return e?e instanceof dt&&"shadowRoot"in e?!!e.shadowRoot:!!lm.shadowRoot(e):!1}function Qr(e,t){const r=e[t[0]];return t.length===1?r:Qr(r.cssRules[t[1]].cssRules,t.slice(2))}function Ll(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function fm(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 hm{constructor(){I(this,"id",1),I(this,"styleIDMap",new WeakMap),I(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 le=(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))(le||{}),Q=(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))(Q||{}),_e=(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))(_e||{}),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||{}),Ft=(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))(Ft||{}),Fl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zr=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var Mi=0;Mi<Fl.length;Mi++)Zr[Fl.charCodeAt(Mi)]=Mi;var dm=function(e){var t=e.length*.75,r=e.length,i,s=0,n,o,u,a;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var c=new ArrayBuffer(t),l=new Uint8Array(c);for(i=0;i<r;i+=4)n=Zr[e.charCodeAt(i)],o=Zr[e.charCodeAt(i+1)],u=Zr[e.charCodeAt(i+2)],a=Zr[e.charCodeAt(i+3)],l[s++]=n<<2|o>>4,l[s++]=(o&15)<<4|u>>2,l[s++]=(u&3)<<6|a&63;return c};const pm=`(function() {
|
|
70
70
|
"use strict";
|
|
71
71
|
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
72
72
|
var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
|
|
@@ -141,7 +141,7 @@ or you can use record.mirror to access the mirror instance during recording.`;le
|
|
|
141
141
|
};
|
|
142
142
|
})();
|
|
143
143
|
//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
|
|
144
|
-
`;typeof self!="undefined"&&self.Blob&&new Blob([
|
|
144
|
+
`;typeof self!="undefined"&&self.Blob&&new Blob([pm],{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 mm{constructor(t=10){I(this,"entries",[]),I(this,"maxEntries"),this.maxEntries=t}add(t,r,i){const s={type:le.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 a=o+u>>>1;this.entries[a].timestamp<=t?o=a+1:u=a-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 Mc(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 gm=Object.freeze(Object.defineProperty({__proto__:null,default:Mc},Symbol.toStringTag,{value:"Module"}));function vm(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||a,scrollIntoView:r.prototype.scrollIntoView},n=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function o(v){const w=["MSIE ","Trident/","Edge/"];return new RegExp(w.join("|")).test(v)}const u=o(e.navigator.userAgent)?1:0;function a(v,w){this.scrollLeft=v,this.scrollTop=w}function c(v){return .5*(1-Math.cos(Math.PI*v))}function l(v){if(v===null||typeof v!="object"||v.behavior===void 0||v.behavior==="auto"||v.behavior==="instant")return!0;if(typeof v=="object"&&v.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+v.behavior+" is not a valid value for enumeration ScrollBehavior.")}function h(v,w){if(w==="Y")return v.clientHeight+u<v.scrollHeight;if(w==="X")return v.clientWidth+u<v.scrollWidth}function f(v,w){const _=e.getComputedStyle(v,null)["overflow"+w];return _==="auto"||_==="scroll"}function d(v){const w=h(v,"Y")&&f(v,"Y"),_=h(v,"X")&&f(v,"X");return w||_}function m(v){for(;v!==t.body&&d(v)===!1;)v=v.parentNode||v.host;return v}function p(v){const w=n();let _,E,y,b=(w-v.startTime)/i;b=b>1?1:b,_=c(b),E=v.startX+(v.x-v.startX)*_,y=v.startY+(v.y-v.startY)*_,v.method.call(v.scrollable,E,y),(E!==v.x||y!==v.y)&&e.requestAnimationFrame(p.bind(e,v))}function g(v,w,_){let E,y,b,S;const C=n();v===t.body?(E=e,y=e.scrollX||e.pageXOffset,b=e.scrollY||e.pageYOffset,S=s.scroll):(E=v,y=v.scrollLeft,b=v.scrollTop,S=a),p({scrollable:E,method:S,startTime:C,startX:y,startY:b,x:w,y:_})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(l(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(l(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(l(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 v=arguments[0].left,w=arguments[0].top;g.call(this,this,typeof v=="undefined"?this.scrollLeft:~~v,typeof w=="undefined"?this.scrollTop:~~w)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(l(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(l(arguments[0])===!0){s.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const v=m(this),w=v.getBoundingClientRect(),_=this.getBoundingClientRect();v!==t.body?(g.call(this,v,v.scrollLeft+_.left-w.left,v.scrollTop+_.top-w.top),e.getComputedStyle(v).position!=="fixed"&&e.scrollBy({left:w.left,top:w.top,behavior:"smooth"})):e.scrollBy({left:_.left,top:_.top,behavior:"smooth"})}}class ym{constructor(t=[],r){I(this,"timeOffset",0),I(this,"speed"),I(this,"actions"),I(this,"raf",null),I(this,"lastTimestamp"),this.actions=t,this.speed=r.speed}addAction(t){const r=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=t.delay)this.actions.push(t);else{const 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.actions.length;){const r=this.actions[0];if(this.timeOffset>=r.delay)this.actions.shift(),r.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(this.raf!==!0&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(t){this.speed=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,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===le.IncrementalSnapshot&&e.data.source===Q.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}/*! *****************************************************************************
|
|
145
145
|
Copyright (c) Microsoft Corporation.
|
|
146
146
|
|
|
147
147
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -154,7 +154,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
154
154
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
155
155
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
156
156
|
PERFORMANCE OF THIS SOFTWARE.
|
|
157
|
-
***************************************************************************** */function dl(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 Er;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Er||(Er={}));var ic={type:"xstate.init"};function yn(e){return e===void 0?[]:[].concat(e)}function yr(e){return{type:"xstate.assign",assignment:e}}function pl(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 Ui(e){return function(t){return e===t}}function sc(e){return typeof e=="string"?{type:e}:e}function ml(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Ui(e)}}function gl(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 nc(e,t){t===void 0&&(t={});var r=dl(gl(yn(e.states[e.initial].entry).map((function(o){return pl(o,t.actions)})),e.context,ic),2),i=r[0],s=r[1],n={config:e,_options:t,initialState:{value:e.initial,actions:i,context:s,matches:Ui(e.initial)},transition:function(o,u){var l,c,a=typeof o=="string"?{value:o,context:e.context}:o,d=a.value,f=a.context,h=sc(u),m=e.states[d];if(m.on){var p=yn(m.on[h.type]);try{for(var g=(function(F){var se=typeof Symbol=="function"&&Symbol.iterator,Re=se&&F[se],j=0;if(Re)return Re.call(F);if(F&&typeof F.length=="number")return{next:function(){return F&&j>=F.length&&(F=void 0),{value:F&&F[j++],done:!F}}};throw new TypeError(se?"Object is not iterable.":"Symbol.iterator is not defined.")})(p),y=g.next();!y.done;y=g.next()){var b=y.value;if(b===void 0)return ml(d,f);var _=typeof b=="string"?{target:b}:b,S=_.target,v=_.actions,w=v===void 0?[]:v,E=_.cond,C=E===void 0?function(){return!0}:E,A=S===void 0,N=S!=null?S:d,U=e.states[N];if(C(f,h)){var T=dl(gl((A?yn(w):[].concat(m.exit,w,U.entry).filter((function(F){return F}))).map((function(F){return pl(F,n._options.actions)})),f,h),3),x=T[0],me=T[1],ve=T[2],ie=S!=null?S:d;return{value:ie,context:me,actions:x,changed:S!==d||x.length>0||ve,matches:Ui(ie)}}}}catch(F){l={error:F}}finally{try{y&&!y.done&&(c=g.return)&&c.call(g)}finally{if(l)throw l.error}}}return ml(d,f)}};return n}var vl=function(e,t){return e.actions.forEach((function(r){var i=r.exec;return i&&i(e.context,t)}))};function oc(e){var t=e.initialState,r=Er.NotStarted,i=new Set,s={_machine:e,send:function(n){r===Er.Running&&(t=e.transition(t,n),vl(t,sc(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:Ui(o.value)}}return r=Er.Running,vl(t,ic),s},stop:function(){return r=Er.Stopped,i.clear(),s},get state(){return t},get status(){return r}};return s}function wn(e,t){return e===t?!0:e.timestamp===t.timestamp&&e.type===t.type?JSON.stringify(e)===JSON.stringify(t):!1}function Qd(e,t){for(let r=e.length-1;r>=0;r--){const i=e[r];if(i.type===ue.Meta&&i.timestamp<=t)return e.slice(r)}return e}function Kd(e,{getCastFn:t,applyEventsSynchronously:r,emitter:i}){const s=nc({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:yr({lastPlayedEvent:(n,o)=>o.type==="CAST_EVENT"?o.payload.event:n.lastPlayedEvent}),recordTimeOffset:yr((n,o)=>{let u=n.timeOffset;return"payload"in o&&"timeOffset"in o.payload&&(u=o.payload.timeOffset),ge(H({},n),{timeOffset:u,baselineTime:n.events[0].timestamp+u})}),play(n){var o;const{timer:u,events:l,baselineTime:c,lastPlayedEvent:a}=n;u.clear();for(const m of l)hl(m,c);const d=Qd(l,c);let f=a==null?void 0:a.timestamp;(a==null?void 0:a.type)===ue.IncrementalSnapshot&&a.data.source===Y.MouseMove&&(f=a.timestamp+((o=a.data.positions[0])==null?void 0:o.timeOffset)),c<(f||0)&&i.emit(Q.PlayBack);const h=new Array;for(const m of d)if(!(f&&f<c&&(m.timestamp<=f||m===a)))if(m.timestamp<c)h.push(m);else{const p=t(m,!1);u.addAction({doAction:()=>{p()},delay:m.delay})}r(h),i.emit(Q.Flush),u.start()},pause(n){n.timer.clear()},resetLastPlayedEvent:yr(n=>ge(H({},n),{lastPlayedEvent:null})),startLive:yr({baselineTime:(n,o)=>(n.timer.start(),o.type==="TO_LIVE"&&o.payload.baselineTime?o.payload.baselineTime:Date.now())}),addEvent:yr((n,o)=>{const{baselineTime:u,timer:l,events:c}=n;if(o.type==="ADD_EVENT"){const{event:a}=o.payload;hl(a,u);let d=c.length-1;if(!c[d]||c[d].timestamp<=a.timestamp){if(c[d]&&wn(c[d],a))return ge(H({},n),{events:c});c.push(a)}else{let m=-1,p=0;for(;p<=d;){const g=Math.floor((p+d)/2);c[g].timestamp<=a.timestamp?p=g+1:d=g-1}m===-1&&(m=p);for(let g=m-1;g>=0&&c[g].timestamp===a.timestamp;g--)if(wn(c[g],a))return ge(H({},n),{events:c});for(let g=m;g<c.length&&c[g].timestamp===a.timestamp;g++)if(wn(c[g],a))return ge(H({},n),{events:c});c.splice(m,0,a)}const f=a.timestamp<u,h=t(a,f);f?h():l.isActive()&&l.addAction({doAction:()=>{h()},delay:a.delay})}return ge(H({},n),{events:c})})}});return oc(s)}function Zd(e){const t=nc({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:yr({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return oc(t)}const yl=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],wl=new Map;function ac(e,t){let r=wl.get(e);return r||(r=new Map,wl.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function Wt(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 Wt(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 ac(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(Wt(e,t,r))))}else{if("base64"in i)return Gd(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(Wt(e,t,r)));return new Blob(s,{type:i.type})}}else if(Array.isArray(i))return await Promise.all(i.map(Wt(e,t,r)));return i}}function ep(e,t){try{return t===Fi.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch(r){return null}}const tp=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function rp(e,t){if(!(t!=null&&t.constructor))return;const{name:r}=t.constructor;if(!tp.includes(r))return;const i=ac(e,r);i.includes(t)||i.push(t)}async function ip({mutation:e,target:t,type:r,imageMap:i,errorHandler:s}){try{const n=ep(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(Wt(i,n))),l=o.apply(n,u);rp(n,l);const c=!1}catch(n){s(e,n)}}async function sp({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 l=>Promise.all(l.args.map(Wt(i,n))));(await Promise.all(o)).forEach((l,c)=>{const a=t[c];try{if(a.setter){n[a.property]=a.args[0];return}const d=n[a.property];a.property==="drawImage"&&typeof a.args[0]=="string"?(i.get(e),d.apply(n,a.args)):d.apply(n,l)}catch(d){s(a,d)}})}async function bl({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([Fi.WebGL,Fi.WebGL2].includes(t.type)){for(let l=0;l<u.length;l++){const c=u[l];await ip({mutation:c,type:t.type,target:r,imageMap:i,errorHandler:n})}return}await sp({event:e,mutations:u,target:r,imageMap:i,errorHandler:n})}catch(o){n(t,o)}}class np{constructor(t){I(this,"mediaMap",new Map),I(this,"warn"),I(this,"service"),I(this,"speedService"),I(this,"emitter"),I(this,"getCurrentTime"),I(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(Q.Start,this.start.bind(this)),this.emitter.on(Q.SkipStart,this.start.bind(this)),this.emitter.on(Q.Pause,this.pause.bind(this)),this.emitter.on(Q.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 h,m,p,g,y;const s=this.mediaMap.get(t),{type:n,playbackRate:o,currentTime:u,muted:l,volume:c,loop:a}=i;return{isPlaying:n===$n.Play||n!==$n.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:(m=o!=null?o:s==null?void 0:s.playbackRate)!=null?m:1,volume:(p=c!=null?c:s==null?void 0:s.volume)!=null?p:1,muted:(g=l!=null?l:s==null?void 0:s.muted)!=null?g:t.getAttribute("muted")===null,loop:(y=a!=null?a:s==null?void 0:s.loop)!=null?y: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"),l=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!==l&&(t.playbackRate=l),o&&!u?t.play():t.pause()}catch(c){this.warn(`Failed to replay media interactions: ${c.message||c}`)}}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 l=!1;u.rr_mediaState?l=u.rr_mediaState==="played":l=s.getAttribute("autoplay")!==null,l&&o&&s.pause();let c=1;typeof u.rr_mediaPlaybackRate=="number"&&(c=u.rr_mediaPlaybackRate);let a=!1;typeof u.rr_mediaMuted=="boolean"?a=u.rr_mediaMuted:a=s.getAttribute("muted")!==null;let d=!1;typeof u.rr_mediaLoop=="boolean"?d=u.rr_mediaLoop:d=s.getAttribute("loop")!==null;let f=1;typeof u.rr_mediaVolume=="number"&&(f=u.rr_mediaVolume);let h=0;typeof u.rr_mediaCurrentTime=="number"&&(h=u.rr_mediaCurrentTime),this.mediaMap.set(s,{isPlaying:l,currentTimeAtLastInteraction:h,lastInteractionTimeOffset:r,playbackRate:c,volume:f,muted:a,loop:d}),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 bi(e,t){if(e.nodeName!=="DIALOG"||e instanceof ft)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 op(e,t){if(e.nodeName!=="DIALOG"||e instanceof ft)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 ap=rc||Yd,_l="[replayer]",_i="__rrweb-injected-style__",bn={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Sl(e){return e.type==ue.IncrementalSnapshot&&(e.data.source==Y.TouchMove||e.data.source==Y.MouseInteraction&&e.data.type==we.TouchStart)}class lp{constructor(t,r){if(I(this,"wrapper"),I(this,"iframe"),I(this,"service"),I(this,"speedService"),I(this,"config"),I(this,"usingVirtualDom",!1),I(this,"virtualDom",new Fr),I(this,"mouse"),I(this,"mouseTail",null),I(this,"tailPositions",[]),I(this,"emitter",ap()),I(this,"nextUserInteractionEvent"),I(this,"legacy_missingNodeRetryMap",{}),I(this,"cache",Oa()),I(this,"imageMap",new Map),I(this,"canvasEventMap",new Map),I(this,"mirror",Au()),I(this,"styleMirror",new jd),I(this,"mediaManager"),I(this,"firstFullSnapshot",null),I(this,"newDocumentQueue",[]),I(this,"mousePos",null),I(this,"touchActive",null),I(this,"lastMouseDownEvent",null),I(this,"lastHoveredRootNode"),I(this,"lastSelectionData",null),I(this,"constructedStyleMutations",[]),I(this,"adoptedStyleSheets",[]),I(this,"handleResize",u=>{this.iframe.style.display="inherit";for(const l of[this.mouseTail,this.iframe])l&&(l.setAttribute("width",String(u.width)),l.setAttribute("height",String(u.height)))}),I(this,"applyEventsSynchronously",u=>{for(const l of u){switch(l.type){case ue.DomContentLoaded:case ue.Load:case ue.Custom:continue;case ue.FullSnapshot:case ue.Meta:case ue.Plugin:case ue.IncrementalSnapshot:break}this.getCastFn(l,!0)()}}),I(this,"getCastFn",(u,l=!1)=>{let c;switch(u.type){case ue.DomContentLoaded:case ue.Load:break;case ue.Custom:c=()=>{this.emitter.emit(Q.CustomEvent,u)};break;case ue.Meta:c=()=>this.emitter.emit(Q.Resize,{width:u.data.width,height:u.data.height});break;case ue.FullSnapshot:c=()=>{var d;if(this.firstFullSnapshot){if(this.firstFullSnapshot===u){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(u,l),(d=this.iframe.contentWindow)==null||d.scrollTo(u.data.initialOffset)};break;case ue.IncrementalSnapshot:c=()=>{if(this.applyIncremental(u,l),!l&&this.config.skipInactive&&!this.nextUserInteractionEvent){for(const d of this.service.state.context.events)if(!(d.timestamp<=u.timestamp)&&this.isUserInteraction(d)){d.delay-u.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=d);break}if(this.nextUserInteractionEvent){const d=this.nextUserInteractionEvent.delay-u.delay;this.play(this.getCurrentTime()+d),this.nextUserInteractionEvent=null}}};break}return()=>{c&&c();for(const f of this.config.plugins||[])f.handler&&f.handler(u,l,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:u}});const d=this.service.state.context.events.length-1;if(!this.config.liveMode&&u===this.service.state.context.events[d]){const f=()=>{d<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(Q.Finish))};let h=50;u.type===ue.IncrementalSnapshot&&u.data.source===Y.MouseMove&&u.data.positions.length&&(h+=Math.max(0,-u.data.positions[0].timeOffset)),setTimeout(f,h)}this.emitter.emit(Q.EventCast,u)}}),!(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:bn,useVirtualDom:!0,logger:console};this.config=Object.assign({},i,r),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(Q.Resize,this.handleResize),this.setupDom();for(const u of this.config.plugins||[])u.getMirror&&u.getMirror({nodeMirror:this.mirror});this.emitter.on(Q.Flush,()=>{if(this.usingVirtualDom){const u={mirror:this.mirror,applyCanvas:(l,c,a)=>{bl({event:l,mutation:c,target:a,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(l,c)=>{l.source===Y.StyleSheetRule?this.applyStyleSheetRule(l,c):l.source===Y.StyleDeclaration&&this.applyStyleDeclaration(l,c)},afterAppend:(l,c)=>{for(const a of this.config.plugins||[])a.onBuild&&a.onBuild(l,{id:c,replayer:this})}};if(this.iframe.contentDocument)try{Ii(this.iframe.contentDocument,this.virtualDom,u,this.virtualDom.mirror)}catch(l){console.warn(l)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(const l in this.legacy_missingNodeRetryMap)try{const c=this.legacy_missingNodeRetryMap[l],a=Li(c.node,this.mirror,this.virtualDom.mirror);Ii(a,c.node,u,this.virtualDom.mirror),c.node=a}catch(c){this.warn(c)}this.constructedStyleMutations.forEach(l=>{this.applyStyleSheetMutation(l)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(l=>{this.applyAdoptedStyleSheet(l)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),this.touchActive===!0?this.mouse.classList.add("touch-active"):this.touchActive===!1&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){const[u,l]=this.lastMouseDownEvent;u.dispatchEvent(l)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(Q.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});const s=new Xd([],{speed:this.config.speed});this.service=Kd({events:t.map(u=>r&&r.unpackFn?r.unpackFn(u):u).sort((u,l)=>u.timestamp-l.timestamp),timer:s,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(u=>{this.emitter.emit(Q.StateChange,{player:u})}),this.speedService=Zd({normalSpeed:-1,timer:s}),this.speedService.start(),this.speedService.subscribe(u=>{this.emitter.emit(Q.StateChange,{speed:u})}),this.mediaManager=new np({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});const n=this.service.state.context.events.find(u=>u.type===ue.Meta),o=this.service.state.context.events.find(u=>u.type===ue.FullSnapshot);if(n){const{width:u,height:l}=n.data;setTimeout(()=>{this.emitter.emit(Q.Resize,{width:u,height:l})},0)}o&&setTimeout(()=>{var u;this.firstFullSnapshot||(this.firstFullSnapshot=o,this.rebuildFullSnapshot(o),(u=this.iframe.contentWindow)==null||u.scrollTo(o.data.initialOffset))},1),this.service.state.context.events.find(Sl)&&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){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(Q.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(Q.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(Q.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(Q.Destroy)}startLive(t){this.service.send({type:"TO_LIVE",payload:{baselineTime:t}})}addEvent(t){const r=this.config.unpackFn?this.config.unpackFn(t):t;Sl(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=Oa()}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&&(Jd(this.iframe.contentWindow,this.iframe.contentDocument),zd(this.iframe.contentWindow))}rebuildFullSnapshot(t,r=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};const i=[],s=new Set,n=(l,c)=>{if(l.nodeName==="DIALOG"&&s.add(l),this.collectIframeAndAttachDocument(i,l),this.mediaManager.isSupportedMediaElement(l)){const{events:a}=this.service.state.context;this.mediaManager.addMediaElements(l,t.timestamp-a[0].timestamp,this.mirror)}for(const a of this.config.plugins||[])a.onBuild&&a.onBuild(l,{id:c,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),Fh(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:l,builtNode:c}of i)this.attachDocumentToIframe(l,c),this.newDocumentQueue=this.newDocumentQueue.filter(a=>a!==l);const{documentElement:o,head:u}=this.iframe.contentDocument;this.insertStyleRules(o,u),s.forEach(l=>bi(l)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(Q.FullsnapshotRebuilded,t),r||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(t,r){var i;const s=yl(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,zn(n,this.virtualDom.unserializedId)),t.insertBefore(n,r),n.rules.push({source:Y.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=yl(this.config.blockClass).concat(this.config.insertStyleRules);if(i.length){if(this.usingVirtualDom&&t.getAttribute("id")!==_i){const n=this.virtualDom.createElement("style");this.virtualDom.mirror.add(n,zn(n,this.virtualDom.unserializedId)),n.setAttribute("id",_i),t.insertBefore(n,t.firstChild||null),n.rules.push({source:Y.StyleSheetRule,adds:i.map((o,u)=>({rule:o,index:u}))})}else if(this.isShadowRoot(t)&&!t.getElementById(_i)){const n=document.createElement("style");n.id=_i,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=(u,l)=>{u.nodeName==="DIALOG"&&n.add(u),this.collectIframeAndAttachDocument(s,u);const c=i.getMeta(u);if((c==null?void 0:c.type)===It.Element&&(c==null?void 0:c.tagName.toUpperCase())==="HTML"){const{documentElement:a,head:d}=r.contentDocument;this.insertStyleRules(a,d)}if(!this.usingVirtualDom)for(const a of this.config.plugins||[])a.onBuild&&a.onBuild(u,{id:l,replayer:this})};Qr(t.node,{doc:r.contentDocument,mirror:i,hackCss:!0,skipChild:!1,afterAppend:o,cache:this.cache}),o(r.contentDocument,t.node.id);for(const{mutationInQueue:u,builtNode:l}of s)this.attachDocumentToIframe(u,l),this.newDocumentQueue=this.newDocumentQueue.filter(c=>c!==u);n.forEach(u=>bi(u))}collectIframeAndAttachDocument(t,r){if(vn(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(Q.Start,o),this.emitter.on(Q.Pause,o);const u=()=>{this.emitter.off(Q.Start,o),this.emitter.off(Q.Pause,o)};r.querySelectorAll('link[rel="stylesheet"]').forEach(l=>{l.sheet||(i.add(l),l.addEventListener("load",()=>{i.delete(l),i.size===0&&s!==-1&&(n.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(Q.LoadStylesheetEnd),s&&clearTimeout(s),u())}))}),i.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(Q.LoadStylesheetStart),s=setTimeout(()=>{n.matches("playing")&&this.play(this.getCurrentTime()),s=-1,u()},this.config.loadTimeout))}}async preloadAllImages(){const t=[];for(const r of this.service.state.context.events)r.type===ue.IncrementalSnapshot&&r.data.source===Y.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);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(Wt(this.imageMap,null,i)));return ge(H({},n),{args:o})}));i.isUnchanged===!1&&this.canvasEventMap.set(r,ge(H({},t),{commands:s}))}else{const s=await Promise.all(t.args.map(Wt(this.imageMap,null,i)));i.isUnchanged===!1&&this.canvasEventMap.set(r,ge(H({},t),{args:s}))}}}applyIncremental(t,r){var i,s,n;const{data:o}=t;switch(o.source){case Y.Mutation:{try{this.applyMutation(o,r)}catch(u){this.warn(`Exception in mutation ${u.message||u}`,o)}break}case Y.Drag:case Y.TouchMove:case Y.MouseMove:if(r){const u=o.positions[o.positions.length-1];this.mousePos={x:u.x,y:u.y,id:u.id,debugData:o}}else o.positions.forEach(u=>{const l={doAction:()=>{this.moveAndHover(u.x,u.y,u.id,r,o)},delay:u.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(l)}),this.timer.addAction({doAction(){},delay:t.delay-((i=o.positions[0])==null?void 0:i.timeOffset)});break;case Y.MouseInteraction:{if(o.id===-1)break;const u=new Event(hh(we[o.type])),l=this.mirror.getNode(o.id);if(!l)return this.debugNodeNotFound(o,o.id);this.emitter.emit(Q.MouseInteraction,{type:o.type,target:l});const{triggerFocus:c}=this.config;switch(o.type){case we.Blur:"blur"in l&&l.blur();break;case we.Focus:c&&l.focus&&l.focus({preventScroll:!0});break;case we.Click:case we.TouchStart:case we.TouchEnd:case we.MouseDown:case we.MouseUp:r?(o.type===we.TouchStart?this.touchActive=!0:o.type===we.TouchEnd&&(this.touchActive=!1),o.type===we.MouseDown?this.lastMouseDownEvent=[l,u]:o.type===we.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:o.x||0,y:o.y||0,id:o.id,debugData:o}):(o.type===we.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x||0,o.y||0,o.id,r,o),o.type===we.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===we.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===we.TouchEnd?this.mouse.classList.remove("touch-active"):l.dispatchEvent(u));break;case we.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:l.dispatchEvent(u)}break}case Y.Scroll:{if(o.id===-1)break;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);u.scrollData=o;break}this.applyScroll(o,r);break}case Y.ViewportResize:this.emitter.emit(Q.Resize,{width:o.width,height:o.height});break;case Y.Input:{if(o.id===-1)break;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);u.inputData=o;break}this.applyInput(o);break}case Y.MediaInteraction:{const u=this.usingVirtualDom?this.virtualDom.mirror.getNode(o.id):this.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);const l=u,{events:c}=this.service.state.context;this.mediaManager.mediaMutation({target:l,timeOffset:t.timestamp-c[0].timestamp,mutation:o});break}case Y.StyleSheetRule:case Y.StyleDeclaration:{this.usingVirtualDom?o.styleId?this.constructedStyleMutations.push(o):o.id&&((s=this.virtualDom.mirror.getNode(o.id))==null||s.rules.push(o)):this.applyStyleSheetMutation(o);break}case Y.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);u.canvasMutations.push({event:t,mutation:o})}else{const u=this.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);bl({event:t,mutation:o,target:u,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case Y.Font:{try{const u=new FontFace(o.family,o.buffer?new Uint8Array(JSON.parse(o.fontSource)):o.fontSource,o.descriptors);(n=this.iframe.contentDocument)==null||n.fonts.add(u)}catch(u){this.warn(u)}break}case Y.Selection:{if(r){this.lastSelectionData=o;break}this.applySelection(o);break}case Y.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(o):this.applyAdoptedStyleSheet(o);break}}}applyMutation(t,r){if(this.config.useVirtualDom&&!this.usingVirtualDom&&r&&(this.usingVirtualDom=!0,xd(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(const c in this.legacy_missingNodeRetryMap)try{const a=this.legacy_missingNodeRetryMap[c],d=Ku(a.node,this.virtualDom,this.mirror);d&&(a.node=d)}catch(a){this.warn(a)}const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(c=>i.getNode(c.id)?!0:(this.warnNodeNotFound(t,c.id),!1)),t.removes.forEach(c=>{var a;const d=i.getNode(c.id);if(!d)return;let f=i.getNode(c.parentId);if(!f)return this.warnNodeNotFound(t,c.parentId);if(c.isShadow&&yi(f)&&(f=f.shadowRoot),i.removeNodeFromMap(d),f)try{f.removeChild(d),this.usingVirtualDom&&d.nodeName==="#text"&&f.nodeName==="STYLE"&&((a=f.rules)==null?void 0:a.length)>0&&(f.rules=[])}catch(h){if(h instanceof DOMException)this.warn("parent could not remove child in mutation",f,d,t);else throw h}});const s=H({},this.legacy_missingNodeRetryMap),n=[],o=c=>{let a=null;return c.nextId&&(a=i.getNode(c.nextId)),c.nextId!==null&&c.nextId!==void 0&&c.nextId!==-1&&!a},u=c=>{var a,d;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let f=i.getNode(c.parentId);if(!f)return c.node.type===It.Document?this.newDocumentQueue.push(c):n.push(c);c.node.isShadow&&(yi(f)||f.attachShadow({mode:"open"}),f=f.shadowRoot,this.insertStyleRulesIntoShadowRoot(f));let h=null,m=null;if(c.previousId&&(h=i.getNode(c.previousId)),c.nextId&&(m=i.getNode(c.nextId)),o(c))return n.push(c);if(c.node.rootId&&!i.getNode(c.node.rootId))return;const p=c.node.rootId?i.getNode(c.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(vn(f,i)){this.attachDocumentToIframe(c,f);return}const g=(_,S)=>{if(!this.usingVirtualDom){bi(_);for(const v of this.config.plugins||[])v.onBuild&&v.onBuild(_,{id:S,replayer:this})}},y=Qr(c.node,{doc:p,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:g});if(c.previousId===-1||c.nextId===-1){s[c.node.id]={node:y,mutation:c};return}const b=i.getMeta(f);if(b&&b.type===It.Element&&c.node.type===It.Text){const _=Array.isArray(f.childNodes)?f.childNodes:Array.from(f.childNodes);if(b.tagName==="textarea")for(const S of _)S.nodeType===f.TEXT_NODE&&f.removeChild(S);else if(b.tagName==="style"&&_.length===1)for(const S of _)S.nodeType===f.TEXT_NODE&&!i.hasNode(S)&&(y.textContent=S.textContent,f.removeChild(S))}else if((b==null?void 0:b.type)===It.Document){const _=f;c.node.type===It.DocumentType&&((a=_.childNodes[0])==null?void 0:a.nodeType)===Node.DOCUMENT_TYPE_NODE&&_.removeChild(_.childNodes[0]),y.nodeName==="HTML"&&_.documentElement&&_.removeChild(_.documentElement)}if(h&&h.nextSibling&&h.nextSibling.parentNode?f.insertBefore(y,h.nextSibling):m&&m.parentNode?f.contains(m)?f.insertBefore(y,m):f.insertBefore(y,null):f.appendChild(y),g(y,c.node.id),this.usingVirtualDom&&y.nodeName==="#text"&&f.nodeName==="STYLE"&&((d=f.rules)==null?void 0:d.length)>0&&(f.rules=[]),vn(y,this.mirror)){const _=this.mirror.getId(y),S=this.newDocumentQueue.find(v=>v.parentId===_);S&&(this.attachDocumentToIframe(S,y),this.newDocumentQueue=this.newDocumentQueue.filter(v=>v!==S))}(c.previousId||c.nextId)&&this.legacy_resolveMissingNode(s,f,y,c)};t.adds.forEach(c=>{u(c)});const l=Date.now();for(;n.length;){const c=$d(n);if(n.length=0,Date.now()-l>500){this.warn("Timeout in the loop, please check the resolve tree data:",c);break}for(const a of c)i.getNode(a.value.parentId)?ec(a,f=>{u(f)}):this.debug("Drop resolve tree since there is no parent for the root node.",a)}Object.keys(s).length&&Object.assign(this.legacy_missingNodeRetryMap,s),Vd(t.texts).forEach(c=>{var a;const d=i.getNode(c.id);if(!d)return t.removes.find(h=>h.id===c.id)?void 0:this.warnNodeNotFound(t,c.id);const f=d.parentElement;if(c.value&&f&&f.tagName==="STYLE"?d.textContent=rs(c.value,this.cache):d.textContent=c.value,this.usingVirtualDom){const h=d.parentNode;((a=h==null?void 0:h.rules)==null?void 0:a.length)>0&&(h.rules=[])}}),t.attributes.forEach(c=>{var a;const d=i.getNode(c.id);if(!d)return t.removes.find(f=>f.id===c.id)?void 0:this.warnNodeNotFound(t,c.id);for(const f in c.attributes)if(typeof f=="string"){const h=c.attributes[f];if(h===null)d.removeAttribute(f),f==="open"&&op(d,c);else if(typeof h=="string")try{if(f==="_cssText"&&(d.nodeName==="LINK"||d.nodeName==="STYLE"))try{const m=i.getMeta(d);Object.assign(m.attributes,c.attributes);const p=Qr(m,{doc:d.ownerDocument,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache}),g=d.nextSibling,y=d.parentNode;if(p&&y){y.removeChild(d),y.insertBefore(p,g),i.replace(c.id,p);break}}catch(m){}if(f==="value"&&d.nodeName==="TEXTAREA"){const m=d;m.childNodes.forEach(g=>m.removeChild(g));const p=(a=d.ownerDocument)==null?void 0:a.createTextNode(h);p&&m.appendChild(p)}else d.setAttribute(f,h);f==="rr_open_mode"&&d.nodeName==="DIALOG"&&bi(d,c)}catch(m){this.warn("An error occurred may due to the checkout feature.",m)}else if(f==="style"){const m=h,p=d;for(const g in m)if(m[g]===!1)p.style.removeProperty(g);else if(m[g]instanceof Array){const y=m[g];p.style.setProperty(g,y[0],y[1])}else{const y=m[g];p.style.setProperty(g,y)}}}})}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)===It.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 l=this.mirror.getNode(s),c=this.mirror.getNode(o);if(!l||!c)return;const a=new Range;a.setStart(l,n),a.setEnd(c,u);const d=l.ownerDocument,f=d==null?void 0:d.getSelection();return f&&r.add(f),{range:a,selection:f}});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===Y.StyleSheetRule?this.applyStyleSheetRule(t,i):t.source===Y.StyleDeclaration&&this.applyStyleDeclaration(t,i))}applyStyleSheetRule(t,r){var i,s,n,o;if((i=t.adds)==null||i.forEach(({rule:u,index:l})=>{try{if(Array.isArray(l)){const{positions:c,index:a}=cl(l);Gr(r.cssRules,c).insertRule(u,a)}else{const c=l===void 0?void 0:Math.min(l,r.cssRules.length);r==null||r.insertRule(u,c)}}catch(c){}}),(s=t.removes)==null||s.forEach(({index:u})=>{try{if(Array.isArray(u)){const{positions:l,index:c}=cl(u);Gr(r.cssRules,l).deleteRule(c||0)}else r==null||r.deleteRule(u)}catch(l){}}),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){t.set&&Gr(r.rules,t.index).style.setProperty(t.set.property,t.set.value,t.set.priority),t.remove&&Gr(r.rules,t.index).style.removeProperty(t.remove.property)}applyAdoptedStyleSheet(t){var r;const i=this.mirror.getNode(t.id);if(!i)return;(r=t.styles)==null||r.forEach(u=>{var l;let c=null,a=null;if(yi(i)?a=((l=i.ownerDocument)==null?void 0:l.defaultView)||null:i.nodeName==="#document"&&(a=i.defaultView),!!a)try{c=new a.CSSStyleSheet,this.styleMirror.add(c,u.styleId),this.applyStyleSheetRule({source:Y.StyleSheetRule,adds:u.rules},c)}catch(d){}});const s=10;let n=0;const o=(u,l)=>{const c=l.map(a=>this.styleMirror.getStyle(a)).filter(a=>a!==null);yi(u)?u.shadowRoot.adoptedStyleSheets=c:u.nodeName==="#document"&&(u.adoptedStyleSheets=c),c.length!==l.length&&n<s&&(setTimeout(()=>o(u,l),0+100*n),n++)};o(i,t.styleIds)}legacy_resolveMissingNode(t,r,i,s){const{previousId:n,nextId:o}=s,u=n&&t[n],l=o&&t[o];if(u){const{node:c,mutation:a}=u;r.insertBefore(c,i),delete t[a.node.id],delete this.legacy_missingNodeRetryMap[a.node.id],(a.previousId||a.nextId)&&this.legacy_resolveMissingNode(t,r,c,a)}if(l){const{node:c,mutation:a}=l;r.insertBefore(c,i.nextSibling),delete t[a.node.id],delete this.legacy_missingNodeRetryMap[a.node.id],(a.previousId||a.nextId)&&this.legacy_resolveMissingNode(t,r,c,a)}}moveAndHover(t,r,i,s,n){const o=this.mirror.getNode(i);if(!o)return this.debugNodeNotFound(n,i);const u=tc(o,this.iframe),l=t*u.absoluteScale+u.x,c=r*u.absoluteScale+u.y;this.mouse.style.left=`${l}px`,this.mouse.style.top=`${c}px`,s||this.drawMouseTail({x:l,y:c}),this.hoverElements(o)}drawMouseTail(t){if(!this.mouseTail)return;const{lineCap:r,lineWidth:i,strokeStyle:s,duration:n}=this.config.mouseTail===!0?bn:Object.assign({},bn,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(l=>u.lineTo(l.x,l.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!==ue.IncrementalSnapshot?!1:t.data.source>Y.Mutation&&t.data.source<=Y.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(Q.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(_l,...t)}debug(...t){this.config.showDebug&&this.config.logger.log(_l,...t)}}var Je=Uint8Array,qt=Uint16Array,Vn=Uint32Array,lc=new Je([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 Je([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]),up=new Je([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),cc=function(e,t){for(var r=new qt(31),i=0;i<31;++i)r[i]=t+=1<<e[i-1];for(var s=new Vn(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]},fc=cc(lc,2),hc=fc[0],cp=fc[1];hc[28]=258,cp[258]=28;var fp=cc(uc,0),hp=fp[0],jn=new qt(32768);for(var ae=0;ae<32768;++ae){var Pt=(ae&43690)>>>1|(ae&21845)<<1;Pt=(Pt&52428)>>>2|(Pt&13107)<<2,Pt=(Pt&61680)>>>4|(Pt&3855)<<4,jn[ae]=((Pt&65280)>>>8|(Pt&255)<<8)>>>1}var Kr=(function(e,t,r){for(var i=e.length,s=0,n=new qt(t);s<i;++s)++n[e[s]-1];var o=new qt(t);for(s=0;s<t;++s)o[s]=o[s-1]+n[s-1]<<1;var u;if(r){u=new qt(1<<t);var l=15-t;for(s=0;s<i;++s)if(e[s])for(var c=s<<4|e[s],a=t-e[s],d=o[e[s]-1]++<<a,f=d|(1<<a)-1;d<=f;++d)u[jn[d]>>>l]=c}else for(u=new qt(i),s=0;s<i;++s)u[s]=jn[o[e[s]-1]++]>>>15-e[s];return u}),li=new Je(288);for(var ae=0;ae<144;++ae)li[ae]=8;for(var ae=144;ae<256;++ae)li[ae]=9;for(var ae=256;ae<280;++ae)li[ae]=7;for(var ae=280;ae<288;++ae)li[ae]=8;var dc=new Je(32);for(var ae=0;ae<32;++ae)dc[ae]=5;var dp=Kr(li,9,1),pp=Kr(dc,5,1),_n=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},et=function(e,t,r){var i=t/8>>0;return(e[i]|e[i+1]<<8)>>>(t&7)&r},Sn=function(e,t){var r=t/8>>0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>>(t&7)},mp=function(e){return(e/8>>0)+(e&7&&1)},pc=function(e,t,r){(r==null||r>e.length)&&(r=e.length);var i=new(e instanceof qt?qt:e instanceof Vn?Vn:Je)(r-t);return i.set(e.subarray(t,r)),i},gp=function(e,t,r){var i=e.length,s=!t||r,n=!r||r.i;r||(r={}),t||(t=new Je(i*3));var o=function(B){var X=t.length;if(B>X){var k=new Je(Math.max(X*2,B));k.set(t),t=k}},u=r.f||0,l=r.p||0,c=r.b||0,a=r.l,d=r.d,f=r.m,h=r.n,m=i*8;do{if(!a){r.f=u=et(e,l,1);var p=et(e,l+1,3);if(l+=3,p)if(p==1)a=dp,d=pp,f=9,h=5;else if(p==2){var _=et(e,l,31)+257,S=et(e,l+10,15)+4,v=_+et(e,l+5,31)+1;l+=14;for(var w=new Je(v),E=new Je(19),C=0;C<S;++C)E[up[C]]=et(e,l+C*3,7);l+=S*3;var A=_n(E),N=(1<<A)-1;if(!n&&l+v*(A+7)>m)break;for(var U=Kr(E,A,1),C=0;C<v;){var T=U[et(e,l,N)];l+=T&15;var g=T>>>4;if(g<16)w[C++]=g;else{var x=0,me=0;for(g==16?(me=3+et(e,l,3),l+=2,x=w[C-1]):g==17?(me=3+et(e,l,7),l+=3):g==18&&(me=11+et(e,l,127),l+=7);me--;)w[C++]=x}}var ve=w.subarray(0,_),ie=w.subarray(_);f=_n(ve),h=_n(ie),a=Kr(ve,f,1),d=Kr(ie,h,1)}else throw"invalid block type";else{var g=mp(l)+4,y=e[g-4]|e[g-3]<<8,b=g+y;if(b>i){if(n)throw"unexpected EOF";break}s&&o(c+y),t.set(e.subarray(g,b),c),r.b=c+=y,r.p=l=b*8;continue}if(l>m)throw"unexpected EOF"}s&&o(c+131072);for(var F=(1<<f)-1,se=(1<<h)-1,Re=f+h+18;n||l+Re<m;){var x=a[Sn(e,l)&F],j=x>>>4;if(l+=x&15,l>m)throw"unexpected EOF";if(!x)throw"invalid length/literal";if(j<256)t[c++]=j;else if(j==256){a=null;break}else{var G=j-254;if(j>264){var C=j-257,Se=lc[C];G=et(e,l,(1<<Se)-1)+hc[C],l+=Se}var O=d[Sn(e,l)&se],ye=O>>>4;if(!O)throw"invalid distance";l+=O&15;var ie=hp[ye];if(ye>3){var Se=uc[ye];ie+=Sn(e,l)&(1<<Se)-1,l+=Se}if(l>m)throw"unexpected EOF";s&&o(c+131072);for(var P=c+G;c<P;c+=4)t[c]=t[c-ie],t[c+1]=t[c+1-ie],t[c+2]=t[c+2-ie],t[c+3]=t[c+3-ie];c=P}}r.l=a,r.p=l,r.b=c,a&&(u=1,r.m=f,r.d=d,r.n=h)}while(!u);return c==t.length?t:pc(t,0,c)},vp=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 yp(e,t){return gp((vp(e),e.subarray(2,-4)),t)}function wp(e,t){for(var r=e.length,i=new Je(e.length+(e.length>>>1)),s=0,n=function(c){i[s++]=c},o=0;o<r;++o){if(s+5>i.length){var u=new Je(s+8+(r-o<<1));u.set(i),i=u}var l=e.charCodeAt(o);n(l)}return pc(i,0,s)}function bp(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 El="v1",_p=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(bp(yp(wp(e,!0))));if(t.v===El)return t;throw new Error(`These events were packed with packer ${t.v} which is incompatible with current packer ${El}.`)}catch(t){throw console.error(t),new Error("Unknown data format.")}};function Cl(e){let t="";return Object.keys(e).forEach(r=>{t+=`${r}: ${e[r]};`}),t}function qr(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 mc=1e3,Gn=60*mc,xl=60*Gn;function Si(e){if(e<=0)return"00:00";const t=Math.floor(e/xl);e=e%xl;const r=Math.floor(e/Gn);e=e%Gn;const i=Math.floor(e/mc);return t?`${qr(t)}:${qr(r)}:${qr(i)}`:`${qr(r)}:${qr(i)}`}function Sp(e){return e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():Promise.resolve()}function Ep(){return document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():Promise.resolve()}function Rl(){let e=!1;return["fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement"].forEach(t=>{t in document&&(e=e||!!document[t])}),e}function Cp(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 Ml(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 xp(e){return e.type!==ue.IncrementalSnapshot?!1:e.data.source>Y.Mutation&&e.data.source<=Y.Input}function Rp(e,t){const r=[];let i=e[0].timestamp;for(const s of e)xp(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||{}),Mp=Lr('<div><input type="checkbox" class="svelte-184lr04"/> <label class="svelte-184lr04"></label> <span class="label svelte-184lr04"> </span></div>');function Np(e,t){let r=ce(t,"disabled",8),i=ce(t,"checked",12),s=ce(t,"id",8),n=ce(t,"label",8);var o=Mp();let u;var l=it(o);Kf(l);var c=Ve(l,2),a=Ve(c,2),d=it(a,!0);rt(a),rt(o),_r(()=>{u=Bn(o,1,"switch svelte-184lr04",null,u,{disabled:r()}),rr(l,"id",s()),l.disabled=r(),rr(c,"for",s()),Mi(d,n())}),th(l,i),St(e,o)}var Op=Lr("<div></div>"),Ap=Lr("<div></div>"),Dp=Eu(`<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
|
|
157
|
+
***************************************************************************** */function Bl(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 Mr;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Mr||(Mr={}));var Oc={type:"xstate.init"};function Dn(e){return e===void 0?[]:[].concat(e)}function Sr(e){return{type:"xstate.assign",assignment:e}}function $l(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 Ac(e){return typeof e=="string"?{type:e}:e}function Wl(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Yi(e)}}function zl(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 Dc(e,t){t===void 0&&(t={});var r=Bl(zl(Dn(e.states[e.initial].entry).map((function(o){return $l(o,t.actions)})),e.context,Oc),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 a,c,l=typeof o=="string"?{value:o,context:e.context}:o,h=l.value,f=l.context,d=Ac(u),m=e.states[h];if(m.on){var p=Dn(m.on[d.type]);try{for(var g=(function(U){var $=typeof Symbol=="function"&&Symbol.iterator,ge=$&&U[$],q=0;if(ge)return ge.call(U);if(U&&typeof U.length=="number")return{next:function(){return U&&q>=U.length&&(U=void 0),{value:U&&U[q++],done:!U}}};throw new TypeError($?"Object is not iterable.":"Symbol.iterator is not defined.")})(p),v=g.next();!v.done;v=g.next()){var w=v.value;if(w===void 0)return Wl(h,f);var _=typeof w=="string"?{target:w}:w,E=_.target,y=_.actions,b=y===void 0?[]:y,S=_.cond,C=S===void 0?function(){return!0}:S,O=E===void 0,N=E!=null?E:h,F=e.states[N];if(C(f,d)){var T=Bl(zl((O?Dn(b):[].concat(m.exit,b,F.entry).filter((function(U){return U}))).map((function(U){return $l(U,n._options.actions)})),f,d),3),x=T[0],oe=T[1],L=T[2],te=E!=null?E:h;return{value:te,context:oe,actions:x,changed:E!==h||x.length>0||L,matches:Yi(te)}}}}catch(U){a={error:U}}finally{try{v&&!v.done&&(c=g.return)&&c.call(g)}finally{if(a)throw a.error}}}return Wl(h,f)}};return n}var ql=function(e,t){return e.actions.forEach((function(r){var i=r.exec;return i&&i(e.context,t)}))};function Tc(e){var t=e.initialState,r=Mr.NotStarted,i=new Set,s={_machine:e,send:function(n){r===Mr.Running&&(t=e.transition(t,n),ql(t,Ac(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=Mr.Running,ql(t,Oc),s},stop:function(){return r=Mr.Stopped,i.clear(),s},get state(){return t},get status(){return r}};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 wm(e,t){let r=0,i=e.length-1,s=-1;for(;r<=i;){const n=r+i>>>1;e[n].timestamp<=t?(s=n,r=n+1):i=n-1}for(let n=s;n>=0;n--)if(e[n].type===le.Meta)return e.slice(n);return e}function bm(e,{getCastFn:t,applyEventsSynchronously:r,emitter:i}){const s=Dc({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:Sr({lastPlayedEvent:(n,o)=>o.type==="CAST_EVENT"?o.payload.event:n.lastPlayedEvent}),recordTimeOffset:Sr((n,o)=>{let u=n.timeOffset;return"payload"in o&&"timeOffset"in o.payload&&(u=o.payload.timeOffset),we(G({},n),{timeOffset:u,baselineTime:n.events[0].timestamp+u})}),play(n){var g;var o;const{timer:u,events:a,baselineTime:c,lastPlayedEvent:l}=n;u.clear();const h=wm(a,c);let f=l==null?void 0:l.timestamp;(l==null?void 0:l.type)===le.IncrementalSnapshot&&l.data.source===Q.MouseMove&&(f=l.timestamp+((o=l.data.positions[0])==null?void 0:o.timeOffset)),c<(f||0)&&i.emit(H.PlayBack);let d=h.length;{let v=0,w=h.length;for(;v<w;){const _=v+w>>>1;h[_].timestamp<c?v=_+1:w=_}d=v}let m=0;if(f&&f<c){let v=0,w=d;for(;v<w;){const _=v+w>>>1;h[_].timestamp<=f?v=_+1:w=_}m=v,m<d&&h[m]===l&&m++}for(let v=d;v<h.length;v++)Ul(h[v],c);const p=h.slice(m,d);for(let v=d;v<h.length;v++){const w=h[v],_=t(w,!1);u.addAction({doAction:()=>{_()},delay:(g=w.delay)!=null?g:0})}r(p),i.emit(H.Flush),u.start()},pause(n){n.timer.clear()},resetLastPlayedEvent:Sr(n=>we(G({},n),{lastPlayedEvent:null})),startLive:Sr({baselineTime:(n,o)=>(n.timer.start(),o.type==="TO_LIVE"&&o.payload.baselineTime?o.payload.baselineTime:Date.now())}),addEvent:Sr((n,o)=>{var l;const{baselineTime:u,timer:a,events:c}=n;if(o.type==="ADD_EVENT"){const{event:h}=o.payload;Ul(h,u);let f=c.length-1;if(!c[f]||c[f].timestamp<=h.timestamp){if(c[f]&&Tn(c[f],h))return we(G({},n),{events:c});c.push(h)}else{let p=-1,g=0;for(;g<=f;){const v=Math.floor((g+f)/2);c[v].timestamp<=h.timestamp?g=v+1:f=v-1}p===-1&&(p=g);for(let v=p-1;v>=0&&c[v].timestamp===h.timestamp;v--)if(Tn(c[v],h))return we(G({},n),{events:c});for(let v=p;v<c.length&&c[v].timestamp===h.timestamp;v++)if(Tn(c[v],h))return we(G({},n),{events:c});c.splice(p,0,h)}const d=h.timestamp<u,m=t(h,d);d?m():a.isActive()&&a.addAction({doAction:()=>{m()},delay:(l=h.delay)!=null?l:0})}return we(G({},n),{events:c})})}});return Tc(s)}function _m(e){const t=Dc({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:Sr({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return Tc(t)}const jl=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Vl=new Map;function kc(e,t){let r=Vl.get(e);return r||(r=new Map,Vl.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function zt(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 zt(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 kc(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(zt(e,t,r))))}else{if("base64"in i)return dm(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(zt(e,t,r)));return new Blob(s,{type:i.type})}}else if(Array.isArray(i))return await Promise.all(i.map(zt(e,t,r)));return i}}function Sm(e,t){try{return t===Hi.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch(r){return null}}const Em=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function Cm(e,t){if(!(t!=null&&t.constructor))return;const{name:r}=t.constructor;if(!Em.includes(r))return;const i=kc(e,r);i.includes(t)||i.push(t)}async function xm({mutation:e,target:t,type:r,imageMap:i,errorHandler:s}){try{const n=Sm(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(zt(i,n))),a=o.apply(n,u);Cm(n,a);const c=!1}catch(n){s(e,n)}}async function Rm({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 a=>Promise.all(a.args.map(zt(i,n))));(await Promise.all(o)).forEach((a,c)=>{const l=t[c];try{if(l.setter){n[l.property]=l.args[0];return}const h=n[l.property];l.property==="drawImage"&&typeof l.args[0]=="string"?(i.get(e),h.apply(n,l.args)):h.apply(n,a)}catch(h){s(l,h)}})}async function Gl({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 a=0;a<u.length;a++){const c=u[a];await xm({mutation:c,type:t.type,target:r,imageMap:i,errorHandler:n})}return}await Rm({event:e,mutations:u,target:r,imageMap:i,errorHandler:n})}catch(o){n(t,o)}}class Nm{constructor(t){I(this,"mediaMap",new Map),I(this,"warn"),I(this,"service"),I(this,"speedService"),I(this,"emitter"),I(this,"getCurrentTime"),I(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 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 d,m,p,g,v;const s=this.mediaMap.get(t),{type:n,playbackRate:o,currentTime:u,muted:a,volume:c,loop:l}=i;return{isPlaying:n===no.Play||n!==no.Pause&&((s==null?void 0:s.isPlaying)||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:(d=u!=null?u:s==null?void 0:s.currentTimeAtLastInteraction)!=null?d:0,lastInteractionTimeOffset:r,playbackRate:(m=o!=null?o:s==null?void 0:s.playbackRate)!=null?m:1,volume:(p=c!=null?c:s==null?void 0:s.volume)!=null?p:1,muted:(g=a!=null?a:s==null?void 0:s.muted)!=null?g:t.getAttribute("muted")===null,loop:(v=l!=null?l:s==null?void 0:s.loop)!=null?v: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"),a=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!==a&&(t.playbackRate=a),o&&!u?t.play():t.pause()}catch(c){this.warn(`Failed to replay media interactions: ${c.message||c}`)}}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 a=!1;u.rr_mediaState?a=u.rr_mediaState==="played":a=s.getAttribute("autoplay")!==null,a&&o&&s.pause();let c=1;typeof u.rr_mediaPlaybackRate=="number"&&(c=u.rr_mediaPlaybackRate);let l=!1;typeof u.rr_mediaMuted=="boolean"?l=u.rr_mediaMuted:l=s.getAttribute("muted")!==null;let h=!1;typeof u.rr_mediaLoop=="boolean"?h=u.rr_mediaLoop:h=s.getAttribute("loop")!==null;let f=1;typeof u.rr_mediaVolume=="number"&&(f=u.rr_mediaVolume);let d=0;typeof u.rr_mediaCurrentTime=="number"&&(d=u.rr_mediaCurrentTime),this.mediaMap.set(s,{isPlaying:a,currentTimeAtLastInteraction:d,lastInteractionTimeOffset:r,playbackRate:c,volume:f,muted:l,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 Oi(e,t){if(e.nodeName!=="DIALOG"||e instanceof dt)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 Mm(e,t){if(e.nodeName!=="DIALOG"||e instanceof dt)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 Om=Mc||gm,Hl="[replayer]",Ai="__rrweb-injected-style__",kn={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Yl(e){return e.type==le.IncrementalSnapshot&&(e.data.source==Q.TouchMove||e.data.source==Q.MouseInteraction&&e.data.type==_e.TouchStart)}class Am{constructor(t,r){if(I(this,"wrapper"),I(this,"iframe"),I(this,"service"),I(this,"speedService"),I(this,"config"),I(this,"usingVirtualDom",!1),I(this,"virtualDom",new zr),I(this,"mouse"),I(this,"mouseTail",null),I(this,"tailPositions",[]),I(this,"emitter",Om()),I(this,"nextUserInteractionEvent"),I(this,"legacy_missingNodeRetryMap",{}),I(this,"cache",tl()),I(this,"imageMap",new Map),I(this,"canvasEventMap",new Map),I(this,"mirror",eo()),I(this,"styleMirror",new hm),I(this,"mediaManager"),I(this,"firstFullSnapshot",null),I(this,"seekCache"),I(this,"newDocumentQueue",[]),I(this,"mousePos",null),I(this,"touchActive",null),I(this,"seekInProgress",!1),I(this,"pendingCaptureTimer",null),I(this,"lastMouseDownEvent",null),I(this,"lastHoveredRootNode"),I(this,"lastSelectionData",null),I(this,"constructedStyleMutations",[]),I(this,"adoptedStyleSheets",[]),I(this,"handleResize",u=>{this.iframe.style.display="inherit";for(const a of[this.mouseTail,this.iframe])a&&(a.setAttribute("width",String(u.width)),a.setAttribute("height",String(u.height)))}),I(this,"applyEventsSynchronously",u=>{var a;let c=0;if(this.config.useSeekCache&&u.length>0){const l=u.find(h=>h.type===le.FullSnapshot);if(l){const h=u[u.length-1].timestamp,f=this.seekCache.findBestFor(h,l.timestamp);if(f){const d=u.find(g=>g.type===le.Meta);d&&this.getCastFn(d,!0)(),this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(f.event,!0),this.firstFullSnapshot=!0,(a=this.iframe.contentWindow)==null||a.scrollTo(f.event.data.initialOffset);let m=0,p=u.length;for(;m<p;){const g=m+p>>>1;u[g].timestamp<=f.timestamp?m=g+1:p=g}c=m}}}for(let l=c;l<u.length;l++){const h=u[l];switch(h.type){case le.DomContentLoaded:case le.Load:case le.Custom:continue;case le.FullSnapshot:case le.Meta:case le.Plugin:case le.IncrementalSnapshot:break}this.getCastFn(h,!0)()}}),I(this,"getCastFn",(u,a=!1)=>{let c;switch(u.type){case le.DomContentLoaded:case le.Load:break;case le.Custom:c=()=>{this.emitter.emit(H.CustomEvent,u)};break;case le.Meta:c=()=>this.emitter.emit(H.Resize,{width:u.data.width,height:u.data.height});break;case le.FullSnapshot:c=()=>{var h;if(this.firstFullSnapshot){if(this.firstFullSnapshot===u){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(u,a),(h=this.iframe.contentWindow)==null||h.scrollTo(u.data.initialOffset)};break;case le.IncrementalSnapshot:c=()=>{if(this.applyIncremental(u,a),!a&&this.config.skipInactive&&!this.nextUserInteractionEvent){for(const h of this.service.state.context.events)if(!(h.timestamp<=u.timestamp)&&this.isUserInteraction(h)){h.delay-u.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=h);break}if(this.nextUserInteractionEvent){const h=this.nextUserInteractionEvent.delay-u.delay;this.playInternal(this.getCurrentTime()+h),this.nextUserInteractionEvent=null}}};break}return()=>{c&&c();for(const f of this.config.plugins||[])f.handler&&f.handler(u,a,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:u}});const h=this.service.state.context.events.length-1;if(!this.config.liveMode&&u===this.service.state.context.events[h]){const f=()=>{h<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(H.Finish))};let d=50;u.type===le.IncrementalSnapshot&&u.data.source===Q.MouseMove&&u.data.positions.length&&(d+=Math.max(0,-u.data.positions[0].timeOffset)),setTimeout(f,d)}this.emitter.emit(H.EventCast,u)}}),!(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 mm(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 u of this.config.plugins||[])u.getMirror&&u.getMirror({nodeMirror:this.mirror});this.emitter.on(H.Flush,()=>{if(this.usingVirtualDom){const u={mirror:this.mirror,applyCanvas:(a,c,l)=>{Gl({event:a,mutation:c,target:l,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(a,c)=>{a.source===Q.StyleSheetRule?this.applyStyleSheetRule(a,c):a.source===Q.StyleDeclaration&&this.applyStyleDeclaration(a,c)},afterAppend:(a,c)=>{for(const l of this.config.plugins||[])l.onBuild&&l.onBuild(a,{id:c,replayer:this})}};if(this.iframe.contentDocument)try{Vi(this.iframe.contentDocument,this.virtualDom,u,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 c=this.legacy_missingNodeRetryMap[a],l=Gi(c.node,this.mirror,this.virtualDom.mirror);Vi(l,c.node,u,this.virtualDom.mirror),c.node=l}catch(c){this.warn(c)}this.constructedStyleMutations.forEach(a=>{this.applyStyleSheetMutation(a)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(a=>{this.applyAdoptedStyleSheet(a)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),this.touchActive===!0?this.mouse.classList.add("touch-active"):this.touchActive===!1&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){const[u,a]=this.lastMouseDownEvent;u.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 u=this.getTimeOffset();this.emitter.emit(H.SeekEnd,{timeOffset:u})}if(this.config.useSeekCache){const u=this.service.state.context.baselineTime;this.pendingCaptureTimer!==null&&clearTimeout(this.pendingCaptureTimer),this.pendingCaptureTimer=setTimeout(()=>{this.pendingCaptureTimer=null,this.captureSeekCacheEntry(u)},0)}});const s=new ym([],{speed:this.config.speed});this.service=bm({events:t.map(u=>r&&r.unpackFn?r.unpackFn(u):u).sort((u,a)=>u.timestamp-a.timestamp),timer:s,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(u=>{this.emitter.emit(H.StateChange,{player:u})}),this.speedService=_m({normalSpeed:-1,timer:s}),this.speedService.start(),this.speedService.subscribe(u=>{this.emitter.emit(H.StateChange,{speed:u})}),this.mediaManager=new Nm({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});const n=this.service.state.context.events.find(u=>u.type===le.Meta),o=this.service.state.context.events.find(u=>u.type===le.FullSnapshot);if(n){const{width:u,height:a}=n.data;setTimeout(()=>{this.emitter.emit(H.Resize,{width:u,height:a})},0)}o&&setTimeout(()=>{var u;this.firstFullSnapshot||(this.firstFullSnapshot=o,this.rebuildFullSnapshot(o),(u=this.iframe.contentWindow)==null||u.scrollTo(o.data.initialOffset))},1),this.service.state.context.events.find(Yl)&&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;Yl(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=tl()}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&&(vm(this.iframe.contentWindow,this.iframe.contentDocument),um(this.iframe.contentWindow))}captureSeekCacheEntry(t){var o,u;if(!this.iframe.contentDocument||t<=0)return;const r=eo();this.mirror.getIds().forEach(a=>{const c=this.mirror.getNode(a);if(!c)return;const l=this.mirror.getMeta(c);l&&r.add(c,l)});const i=Pd(this.iframe.contentDocument,{mirror:r,blockClass:this.config.blockClass,inlineStylesheet:!0});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=(a,c)=>{if(a.nodeName==="DIALOG"&&s.add(a),this.collectIframeAndAttachDocument(i,a),this.mediaManager.isSupportedMediaElement(a)){const{events:l}=this.service.state.context;this.mediaManager.addMediaElements(a,t.timestamp-l[0].timestamp,this.mirror)}for(const l of this.config.plugins||[])l.onBuild&&l.onBuild(a,{id:c,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),sp(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:a,builtNode:c}of i)this.attachDocumentToIframe(a,c),this.newDocumentQueue=this.newDocumentQueue.filter(l=>l!==a);const{documentElement:o,head:u}=this.iframe.contentDocument;this.insertStyleRules(o,u),s.forEach(a=>Oi(a)),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=jl(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,so(n,this.virtualDom.unserializedId)),t.insertBefore(n,r),n.rules.push({source:Q.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=jl(this.config.blockClass).concat(this.config.insertStyleRules);if(i.length){if(this.usingVirtualDom&&t.getAttribute("id")!==Ai){const n=this.virtualDom.createElement("style");this.virtualDom.mirror.add(n,so(n,this.virtualDom.unserializedId)),n.setAttribute("id",Ai),t.insertBefore(n,t.firstChild||null),n.rules.push({source:Q.StyleSheetRule,adds:i.map((o,u)=>({rule:o,index:u}))})}else if(this.isShadowRoot(t)&&!t.getElementById(Ai)){const n=document.createElement("style");n.id=Ai,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=(a,c)=>{a.nodeName==="DIALOG"&&n.add(a),this.collectIframeAndAttachDocument(s,a);const l=i.getMeta(a);if((l==null?void 0:l.type)===Ft.Element&&(l==null?void 0:l.tagName.toUpperCase())==="HTML"){if(!r.contentDocument)return;const{documentElement:h,head:f}=r.contentDocument;this.insertStyleRules(h,f)}if(!this.usingVirtualDom)for(const h of this.config.plugins||[])h.onBuild&&h.onBuild(a,{id:c,replayer:this})},u=r.contentDocument;if(u){ii(t.node,{doc:u,mirror:i,hackCss:!0,skipChild:!1,afterAppend:o,cache:this.cache}),o(u,t.node.id);for(const{mutationInQueue:a,builtNode:c}of s)this.attachDocumentToIframe(a,c),this.newDocumentQueue=this.newDocumentQueue.filter(l=>l!==a);n.forEach(a=>Oi(a))}}collectIframeAndAttachDocument(t,r){if(An(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(H.Start,o),this.emitter.on(H.Pause,o);const u=()=>{this.emitter.off(H.Start,o),this.emitter.off(H.Pause,o)};r.querySelectorAll('link[rel="stylesheet"]').forEach(a=>{a.sheet||(i.add(a),a.addEventListener("load",()=>{i.delete(a),i.size===0&&s!==-1&&(n.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(()=>{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===le.IncrementalSnapshot&&r.data.source===Q.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(zt(this.imageMap,null,i)));return we(G({},n),{args:o})}));i.isUnchanged===!1&&this.canvasEventMap.set(r,we(G({},t),{commands:s}))}else{const s=await Promise.all(t.args.map(zt(this.imageMap,null,i)));i.isUnchanged===!1&&this.canvasEventMap.set(r,we(G({},t),{args:s}))}}}applyIncremental(t,r){var i,s,n;const{data:o}=t;switch(o.source){case Q.Mutation:{try{this.applyMutation(o,r)}catch(u){this.warn(`Exception in mutation ${u.message||u}`,o)}break}case Q.Drag:case Q.TouchMove:case Q.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 a={doAction:()=>{this.moveAndHover(u.x,u.y,u.id,r,o)},delay:u.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(a)}),this.timer.addAction({doAction(){},delay:t.delay-((i=o.positions[0])==null?void 0:i.timeOffset)});break;case Q.MouseInteraction:{if(o.id===-1)break;const u=new Event(hi(_e[o.type])),a=this.mirror.getNode(o.id);if(!a)return this.debugNodeNotFound(o,o.id);this.emitter.emit(H.MouseInteraction,{type:o.type,target:a});const{triggerFocus:c}=this.config;switch(o.type){case _e.Blur:"blur"in a&&a.blur();break;case _e.Focus:c&&a.focus&&a.focus({preventScroll:!0});break;case _e.Click:case _e.TouchStart:case _e.TouchEnd:case _e.MouseDown:case _e.MouseUp:r?(o.type===_e.TouchStart?this.touchActive=!0:o.type===_e.TouchEnd&&(this.touchActive=!1),o.type===_e.MouseDown?this.lastMouseDownEvent=[a,u]:o.type===_e.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:o.x||0,y:o.y||0,id:o.id,debugData:o}):(o.type===_e.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x||0,o.y||0,o.id,r,o),o.type===_e.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===_e.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===_e.TouchEnd?this.mouse.classList.remove("touch-active"):a.dispatchEvent(u));break;case _e.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:a.dispatchEvent(u)}break}case Q.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 Q.ViewportResize:this.emitter.emit(H.Resize,{width:o.width,height:o.height});break;case Q.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 Q.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 a=u,{events:c}=this.service.state.context;this.mediaManager.mediaMutation({target:a,timeOffset:t.timestamp-c[0].timestamp,mutation:o});break}case Q.StyleSheetRule:case Q.StyleDeclaration:{this.usingVirtualDom?o.styleId?this.constructedStyleMutations.push(o):o.id&&((s=this.virtualDom.mirror.getNode(o.id))==null||s.rules.push(o)):this.applyStyleSheetMutation(o);break}case Q.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);Gl({event:t,mutation:o,target:u,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case Q.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 Q.Selection:{if(r){this.lastSelectionData=o;break}this.applySelection(o);break}case Q.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(Gp(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length)for(const c in this.legacy_missingNodeRetryMap)try{const l=this.legacy_missingNodeRetryMap[c],h=Cc(l.node,this.virtualDom,this.mirror);h&&(l.node=h)}catch(l){this.warn(l)}}const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(c=>i.getNode(c.id)?!0:(this.warnNodeNotFound(t,c.id),!1)),t.removes.forEach(c=>{var l;const h=i.getNode(c.id);if(!h)return;let f=i.getNode(c.parentId);if(!f)return this.warnNodeNotFound(t,c.parentId);if(c.isShadow&&Ni(f)&&(f=f.shadowRoot),i.removeNodeFromMap(h),f)try{f.removeChild(h),this.usingVirtualDom&&h.nodeName==="#text"&&f.nodeName==="STYLE"&&((l=f.rules)==null?void 0:l.length)>0&&(f.rules=[])}catch(d){if(d instanceof DOMException)this.warn("parent could not remove child in mutation",f,h,t);else throw d}});const s=G({},this.legacy_missingNodeRetryMap),n=[],o=c=>{let l=null;return c.nextId&&(l=i.getNode(c.nextId)),c.nextId!==null&&c.nextId!==void 0&&c.nextId!==-1&&!l},u=c=>{var l,h;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let f=i.getNode(c.parentId);if(!f)return c.node.type===Ft.Document?this.newDocumentQueue.push(c):n.push(c);c.node.isShadow&&(Ni(f)||f.attachShadow({mode:"open"}),f=f.shadowRoot,this.insertStyleRulesIntoShadowRoot(f));let d=null,m=null;if(c.previousId&&(d=i.getNode(c.previousId)),c.nextId&&(m=i.getNode(c.nextId)),o(c))return n.push(c);if(c.node.rootId&&!i.getNode(c.node.rootId))return;const p=c.node.rootId?i.getNode(c.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(An(f,i)){this.attachDocumentToIframe(c,f);return}const g=(_,E)=>{if(!this.usingVirtualDom){Oi(_);for(const y of this.config.plugins||[])y.onBuild&&y.onBuild(_,{id:E,replayer:this})}},v=ii(c.node,{doc:p,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:g});if(c.previousId===-1||c.nextId===-1){s[c.node.id]={node:v,mutation:c};return}const w=i.getMeta(f);if(w&&w.type===Ft.Element&&c.node.type===Ft.Text){const _=Array.isArray(f.childNodes)?f.childNodes:Array.from(f.childNodes);if(w.tagName==="textarea")for(const E of _)E.nodeType===f.TEXT_NODE&&f.removeChild(E);else if(w.tagName==="style"&&_.length===1)for(const E of _)E.nodeType===f.TEXT_NODE&&!i.hasNode(E)&&(v.textContent=E.textContent,f.removeChild(E))}else if((w==null?void 0:w.type)===Ft.Document){const _=f;c.node.type===Ft.DocumentType&&((l=_.childNodes[0])==null?void 0:l.nodeType)===Node.DOCUMENT_TYPE_NODE&&_.removeChild(_.childNodes[0]),v.nodeName==="HTML"&&_.documentElement&&_.removeChild(_.documentElement)}if(d&&d.nextSibling&&d.nextSibling.parentNode?f.insertBefore(v,d.nextSibling):m&&m.parentNode?f.contains(m)?f.insertBefore(v,m):f.insertBefore(v,null):f.appendChild(v),g(v,c.node.id),this.usingVirtualDom&&v.nodeName==="#text"&&f.nodeName==="STYLE"&&((h=f.rules)==null?void 0:h.length)>0&&(f.rules=[]),An(v,this.mirror)){const _=this.mirror.getId(v),E=this.newDocumentQueue.find(y=>y.parentId===_);E&&(this.attachDocumentToIframe(E,v),this.newDocumentQueue=this.newDocumentQueue.filter(y=>y!==E))}(c.previousId||c.nextId)&&this.legacy_resolveMissingNode(s,f,v,c)};t.adds.forEach(c=>{u(c)});const a=Date.now();for(;n.length;){const c=cm(n);if(n.length=0,Date.now()-a>500){this.warn("Timeout in the loop, please check the resolve tree data:",c);break}for(const l of c)i.getNode(l.value.parentId)?Rc(l,f=>{u(f)}):this.debug("Drop resolve tree since there is no parent for the root node.",l)}Object.keys(s).length&&Object.assign(this.legacy_missingNodeRetryMap,s),fm(t.texts).forEach(c=>{var l;const h=i.getNode(c.id);if(!h)return t.removes.find(d=>d.id===c.id)?void 0:this.warnNodeNotFound(t,c.id);const f=h.parentElement;if(c.value&&f&&f.tagName==="STYLE"?h.textContent=hs(c.value,this.cache):h.textContent=c.value,this.usingVirtualDom){const d=h.parentNode;((l=d==null?void 0:d.rules)==null?void 0:l.length)>0&&(d.rules=[])}}),t.attributes.forEach(c=>{var l;const h=i.getNode(c.id);if(!h)return t.removes.find(f=>f.id===c.id)?void 0:this.warnNodeNotFound(t,c.id);for(const f in c.attributes)if(typeof f=="string"){const d=c.attributes[f];if(d===null)h.removeAttribute(f),f==="open"&&Mm(h,c);else if(typeof d=="string")try{if(f==="_cssText"&&(h.nodeName==="LINK"||h.nodeName==="STYLE"))try{const m=i.getMeta(h);Object.assign(m.attributes,c.attributes);const p=ii(m,{doc:h.ownerDocument,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache}),g=h.nextSibling,v=h.parentNode;if(p&&v){v.removeChild(h),v.insertBefore(p,g),i.replace(c.id,p);break}}catch(m){}if(f==="value"&&h.nodeName==="TEXTAREA"){const m=h;m.childNodes.forEach(g=>m.removeChild(g));const p=(l=h.ownerDocument)==null?void 0:l.createTextNode(d);p&&m.appendChild(p)}else h.setAttribute(f,d);f==="rr_open_mode"&&h.nodeName==="DIALOG"&&Oi(h,c)}catch(m){this.warn("An error occurred may due to the checkout feature.",m)}else if(f==="style"){const m=d,p=h;for(const g in m)if(m[g]===!1)p.style.removeProperty(g);else if(m[g]instanceof Array){const v=m[g];p.style.setProperty(g,v[0],v[1])}else{const v=m[g];p.style.setProperty(g,v)}}}})}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)===Ft.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 a=this.mirror.getNode(s),c=this.mirror.getNode(o);if(!a||!c)return;const l=new Range;l.setStart(a,n),l.setEnd(c,u);const h=a.ownerDocument,f=h==null?void 0:h.getSelection();return f&&r.add(f),{range:l,selection:f}});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===Q.StyleSheetRule?this.applyStyleSheetRule(t,i):t.source===Q.StyleDeclaration&&this.applyStyleDeclaration(t,i))}applyStyleSheetRule(t,r){var i,s,n,o;if((i=t.adds)==null||i.forEach(({rule:u,index:a})=>{try{if(Array.isArray(a)){const{positions:c,index:l}=Ll(a);Qr(r.cssRules,c).insertRule(u,l)}else{const c=a===void 0?void 0:Math.min(a,r.cssRules.length);r==null||r.insertRule(u,c)}}catch(c){}}),(s=t.removes)==null||s.forEach(({index:u})=>{try{if(Array.isArray(u)){const{positions:a,index:c}=Ll(u);Qr(r.cssRules,a).deleteRule(c||0)}else r==null||r.deleteRule(u)}catch(a){}}),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){t.set&&Qr(r.rules,t.index).style.setProperty(t.set.property,t.set.value,t.set.priority),t.remove&&Qr(r.rules,t.index).style.removeProperty(t.remove.property)}applyAdoptedStyleSheet(t){var r;const i=this.mirror.getNode(t.id);if(!i)return;(r=t.styles)==null||r.forEach(u=>{var a;let c=null,l=null;if(Ni(i)?l=((a=i.ownerDocument)==null?void 0:a.defaultView)||null:i.nodeName==="#document"&&(l=i.defaultView),!!l)try{c=new l.CSSStyleSheet,this.styleMirror.add(c,u.styleId),this.applyStyleSheetRule({source:Q.StyleSheetRule,adds:u.rules},c)}catch(h){}});const s=10;let n=0;const o=(u,a)=>{const c=a.map(l=>this.styleMirror.getStyle(l)).filter(l=>l!==null);Ni(u)?u.shadowRoot.adoptedStyleSheets=c:u.nodeName==="#document"&&(u.adoptedStyleSheets=c),c.length!==a.length&&n<s&&(setTimeout(()=>o(u,a),0+100*n),n++)};o(i,t.styleIds)}legacy_resolveMissingNode(t,r,i,s){const{previousId:n,nextId:o}=s,u=n&&t[n],a=o&&t[o];if(u){const{node:c,mutation:l}=u;r.insertBefore(c,i),delete t[l.node.id],delete this.legacy_missingNodeRetryMap[l.node.id],(l.previousId||l.nextId)&&this.legacy_resolveMissingNode(t,r,c,l)}if(a){const{node:c,mutation:l}=a;r.insertBefore(c,i.nextSibling),delete t[l.node.id],delete this.legacy_missingNodeRetryMap[l.node.id],(l.previousId||l.nextId)&&this.legacy_resolveMissingNode(t,r,c,l)}}moveAndHover(t,r,i,s,n){const o=this.mirror.getNode(i);if(!o)return this.debugNodeNotFound(n,i);const u=Nc(o,this.iframe),a=t*u.absoluteScale+u.x,c=r*u.absoluteScale+u.y;this.mouse.style.left=`${a}px`,this.mouse.style.top=`${c}px`,s||this.drawMouseTail({x:a,y:c}),this.hoverElements(o)}drawMouseTail(t){if(!this.mouseTail)return;const{lineCap:r,lineWidth:i,strokeStyle:s,duration:n}=this.config.mouseTail===!0?kn:Object.assign({},kn,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(a=>u.lineTo(a.x,a.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!==le.IncrementalSnapshot?!1:t.data.source>Q.Mutation&&t.data.source<=Q.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(Hl,...t)}debug(...t){this.config.showDebug&&this.config.logger.log(Hl,...t)}}var Ke=Uint8Array,qt=Uint16Array,oo=Uint32Array,Pc=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]),Ic=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]),Dm=new Ke([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Lc=function(e,t){for(var r=new qt(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 n=r[i];n<r[i+1];++n)s[n]=n-r[i]<<5|i;return[r,s]},Fc=Lc(Pc,2),Uc=Fc[0],Tm=Fc[1];Uc[28]=258,Tm[258]=28;var km=Lc(Ic,0),Pm=km[0],ao=new qt(32768);for(var he=0;he<32768;++he){var It=(he&43690)>>>1|(he&21845)<<1;It=(It&52428)>>>2|(It&13107)<<2,It=(It&61680)>>>4|(It&3855)<<4,ao[he]=((It&65280)>>>8|(It&255)<<8)>>>1}var si=(function(e,t,r){for(var i=e.length,s=0,n=new qt(t);s<i;++s)++n[e[s]-1];var o=new qt(t);for(s=0;s<t;++s)o[s]=o[s-1]+n[s-1]<<1;var u;if(r){u=new qt(1<<t);var a=15-t;for(s=0;s<i;++s)if(e[s])for(var c=s<<4|e[s],l=t-e[s],h=o[e[s]-1]++<<l,f=h|(1<<l)-1;h<=f;++h)u[ao[h]>>>a]=c}else for(u=new qt(i),s=0;s<i;++s)u[s]=ao[o[e[s]-1]++]>>>15-e[s];return u}),mi=new Ke(288);for(var he=0;he<144;++he)mi[he]=8;for(var he=144;he<256;++he)mi[he]=9;for(var he=256;he<280;++he)mi[he]=7;for(var he=280;he<288;++he)mi[he]=8;var Bc=new Ke(32);for(var he=0;he<32;++he)Bc[he]=5;var Im=si(mi,9,1),Lm=si(Bc,5,1),Pn=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},rt=function(e,t,r){var i=t/8>>0;return(e[i]|e[i+1]<<8)>>>(t&7)&r},In=function(e,t){var r=t/8>>0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>>(t&7)},Fm=function(e){return(e/8>>0)+(e&7&&1)},$c=function(e,t,r){(r==null||r>e.length)&&(r=e.length);var i=new(e instanceof qt?qt:e instanceof oo?oo:Ke)(r-t);return i.set(e.subarray(t,r)),i},Um=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(j){var ee=t.length;if(j>ee){var P=new Ke(Math.max(ee*2,j));P.set(t),t=P}},u=r.f||0,a=r.p||0,c=r.b||0,l=r.l,h=r.d,f=r.m,d=r.n,m=i*8;do{if(!l){r.f=u=rt(e,a,1);var p=rt(e,a+1,3);if(a+=3,p)if(p==1)l=Im,h=Lm,f=9,d=5;else if(p==2){var _=rt(e,a,31)+257,E=rt(e,a+10,15)+4,y=_+rt(e,a+5,31)+1;a+=14;for(var b=new Ke(y),S=new Ke(19),C=0;C<E;++C)S[Dm[C]]=rt(e,a+C*3,7);a+=E*3;var O=Pn(S),N=(1<<O)-1;if(!n&&a+y*(O+7)>m)break;for(var F=si(S,O,1),C=0;C<y;){var T=F[rt(e,a,N)];a+=T&15;var g=T>>>4;if(g<16)b[C++]=g;else{var x=0,oe=0;for(g==16?(oe=3+rt(e,a,3),a+=2,x=b[C-1]):g==17?(oe=3+rt(e,a,7),a+=3):g==18&&(oe=11+rt(e,a,127),a+=7);oe--;)b[C++]=x}}var L=b.subarray(0,_),te=b.subarray(_);f=Pn(L),d=Pn(te),l=si(L,f,1),h=si(te,d,1)}else throw"invalid block type";else{var g=Fm(a)+4,v=e[g-4]|e[g-3]<<8,w=g+v;if(w>i){if(n)throw"unexpected EOF";break}s&&o(c+v),t.set(e.subarray(g,w),c),r.b=c+=v,r.p=a=w*8;continue}if(a>m)throw"unexpected EOF"}s&&o(c+131072);for(var U=(1<<f)-1,$=(1<<d)-1,ge=f+d+18;n||a+ge<m;){var x=l[In(e,a)&U],q=x>>>4;if(a+=x&15,a>m)throw"unexpected EOF";if(!x)throw"invalid length/literal";if(q<256)t[c++]=q;else if(q==256){l=null;break}else{var W=q-254;if(q>264){var C=q-257,Ce=Pc[C];W=rt(e,a,(1<<Ce)-1)+Uc[C],a+=Ce}var A=h[In(e,a)&$],be=A>>>4;if(!A)throw"invalid distance";a+=A&15;var te=Pm[be];if(be>3){var Ce=Ic[be];te+=In(e,a)&(1<<Ce)-1,a+=Ce}if(a>m)throw"unexpected EOF";s&&o(c+131072);for(var k=c+W;c<k;c+=4)t[c]=t[c-te],t[c+1]=t[c+1-te],t[c+2]=t[c+2-te],t[c+3]=t[c+3-te];c=k}}r.l=l,r.p=a,r.b=c,l&&(u=1,r.m=f,r.d=h,r.n=d)}while(!u);return c==t.length?t:$c(t,0,c)},Bm=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 $m(e,t){return Um((Bm(e),e.subarray(2,-4)),t)}function Wm(e,t){for(var r=e.length,i=new Ke(e.length+(e.length>>>1)),s=0,n=function(c){i[s++]=c},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 a=e.charCodeAt(o);n(a)}return $c(i,0,s)}function zm(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 Jl="v1",qm=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(zm($m(Wm(e,!0))));if(t.v===Jl)return t;throw new Error(`These events were packed with packer ${t.v} which is incompatible with current packer ${Jl}.`)}catch(t){throw console.error(t),new Error("Unknown data format.")}};function Xl(e){let t="";return Object.keys(e).forEach(r=>{t+=`${r}: ${e[r]};`}),t}function Gr(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 Wc=1e3,lo=60*Wc,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/Wc);return t?`${Gr(t)}:${Gr(r)}:${Gr(i)}`:`${Gr(r)}:${Gr(i)}`}function jm(e){return e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():Promise.resolve()}function Vm(){return document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():Promise.resolve()}function Ql(){let e=!1;return["fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement"].forEach(t=>{t in document&&(e=e||!!document[t])}),e}function Gm(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 Zl(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 Hm(e){return e.type!==le.IncrementalSnapshot?!1:e.data.source>Q.Mutation&&e.data.source<=Q.Input}function Ym(e,t){const r=[];let i=e[0].timestamp;for(const s of e)Hm(s)&&(s.timestamp-i>t&&r.push([i,s.timestamp]),i=s.timestamp);return r}var zc=(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))(zc||{}),Jm=Wr('<div><input type="checkbox" class="svelte-184lr04"/> <label class="svelte-184lr04"></label> <span class="label svelte-184lr04"> </span></div>');function Xm(e,t){let r=pe(t,"disabled",8),i=pe(t,"checked",12),s=pe(t,"id",8),n=pe(t,"label",8);var o=Jm();let u;var a=nt(o);Ch(a);var c=Ge(a,2),l=Ge(c,2),h=nt(l,!0);st(l),st(o),xr(()=>{u=Qn(o,1,"switch svelte-184lr04",null,u,{disabled:r()}),nr(a,"id",s()),a.disabled=r(),nr(c,"for",s()),Li(h,n())}),Nh(a,i),Ct(e,o)}var Km=Wr("<div></div>"),Qm=Wr("<div></div>"),Zm=Ju(`<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
|
|
158
158
|
512q0 53.00224-37.49888 90.50112t-90.50112
|
|
159
159
|
37.49888-90.50112-37.49888-37.49888-90.50112l0-512q0-53.00224
|
|
160
160
|
37.49888-90.50112t90.50112-37.49888zM341.34016 128q53.00224 0
|
|
@@ -167,25 +167,25 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
167
167
|
12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928zM682.65984
|
|
168
168
|
213.34016q-17.67424 0-30.16704 12.4928t-12.4928 30.16704l0 512q0
|
|
169
169
|
17.67424 12.4928 30.16704t30.16704 12.4928 30.16704-12.4928
|
|
170
|
-
12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z"></path></svg>`),
|
|
171
|
-
512l-388.66944-233.32864 0 466.65728z"></path></svg>`),
|
|
170
|
+
12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z"></path></svg>`),eg=Ju(`<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
|
|
171
|
+
512l-388.66944-233.32864 0 466.65728z"></path></svg>`),tg=Wr("<button> </button>"),rg=Wr(`<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
|
|
172
172
|
18.4-48.8 18.4-68 0-18.4-18.4-18.4-48.8 0-68L800 156 692 156c-26.4
|
|
173
173
|
0-48-21.6-48-48 0-26.4 21.6-48 48-48l224 0c26.4 0 48 21.6 48 48l0
|
|
174
174
|
224C964 358.4 942.4 380 916 380zM231.2 860l108.8 0c26.4 0 48 21.6 48
|
|
175
175
|
48s-21.6 48-48 48l-224 0c-26.4 0-48-21.6-48-48l0-224c0-26.4 21.6-48
|
|
176
176
|
48-48 26.4 0 48 21.6 48 48L164 792l253.6-253.6c18.4-18.4 48.8-18.4
|
|
177
|
-
68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg></button></div></div>`);function
|
|
178
|
-
${(
|
|
179
|
-
2px;transform: translate(-50%, -50%);background: ${(
|
|
180
|
-
${(
|
|
177
|
+
68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg></button></div></div>`);function ig(e,t){wo(t,!1);const r=mh();let i=pe(t,"replayer",8),s=pe(t,"showController",8),n=pe(t,"autoPlay",8),o=pe(t,"skipInactive",12),u=pe(t,"speedOption",8),a=pe(t,"speed",28,()=>u().length?u()[0]:1),c=pe(t,"tags",24,()=>({})),l=pe(t,"inactiveColor",8),h=Ae(0),f=null,d=Ae(),m=Ae(),p=Ae(),g,v=!1,w=null,_=null,E=Ae(),y=Ae();function b(k,j,ee){const P=j-k;return(100-(j-ee)/P*100).toFixed(2)}let S=Ae(),C=Ae();const O=()=>{N();function k(){re(h,i().getCurrentTime()),v&&M(h)>=v&&(_?L(_.start,_.end,!0,void 0):(i().pause(),w&&(w(),w=null))),M(h)<M(E).totalTime&&(f=requestAnimationFrame(k))}f=requestAnimationFrame(k)},N=()=>{f&&(cancelAnimationFrame(f),f=null)},F=()=>{switch(M(d)){case"playing":x();break;case"paused":T();break}},T=()=>{M(d)==="paused"&&(g?(i().play(),g=!1):i().play(M(h)))},x=()=>{M(d)==="playing"&&(i().pause(),v=!1)},oe=(k,j)=>{re(h,k),v=!1,g=!1,(typeof j=="boolean"?j:M(d)==="playing")?i().play(k):i().pause(k)},L=(k,j,ee=!1,P=void 0)=>{ee?_={start:k,end:j}:_=null,re(h,k),v=j,w=P||null,i().play(k)},te=k=>{if(M(m)==="skipping")return;const j=M(p).getBoundingClientRect();let P=(k.clientX-j.left)/j.width;P<0?P=0:P>1&&(P=1);const fe=M(E).totalTime*P;oe(fe)},U=k=>{M(m)!=="skipping"&&(k.key==="ArrowLeft"?oe(M(h)-5):k.key==="ArrowRight"&&oe(M(h)+5))},$=k=>{let j=M(d)==="playing";a(k),j&&i().pause(),i().setConfig({speed:a()}),j&&i().play(M(h))},ge=()=>{o(!o())},q=()=>Promise.resolve().then(()=>{re(E,i().getMetaData())});xo(()=>{re(d,i().service.state.value),re(m,i().speedService.state.value),i().on("state-change",k=>{const{player:j,speed:ee}=k;if(j!=null&&j.value&&M(d)!==j.value)switch(re(d,j.value),M(d)){case"playing":O();break;case"paused":N();break}ee!=null&&ee.value&&M(m)!==ee.value&&re(m,ee.value)}),i().on("finish",()=>{g=!0,w&&(w(),w=null)}),n()&&i().play()}),gh(()=>{o()!==i().config.skipInactive&&i().setConfig({skipInactive:o()})}),Qu(()=>{i().pause(),N()}),$t(()=>M(h),()=>{r("ui-update-current-time",{payload:M(h)})}),$t(()=>M(d),()=>{r("ui-update-player-state",{payload:M(d)})}),$t(()=>$e(i()),()=>{re(E,i().getMetaData())}),$t(()=>(M(h),M(E)),()=>{const k=Math.min(1,M(h)/M(E).totalTime);re(y,`${100*k}%`),r("ui-update-progress",{payload:k})}),$t(()=>($e(i()),$e(c())),()=>{re(S,(()=>{const{context:k}=i().service.state,j=k.events.length,ee=k.events[0].timestamp,P=k.events[j-1].timestamp,fe=[];return k.events.forEach(ue=>{if(ue.type===zc.Custom){const ie={name:ue.data.tag,background:c()[ue.data.tag]||"rgb(73, 80, 246)",position:`${b(ee,P,ue.timestamp)}%`};fe.push(ie)}}),fe})())}),$t(()=>($e(i()),$e(l())),()=>{re(C,(()=>{try{const{context:k}=i().service.state,j=k.events.length,ee=k.events[0].timestamp,P=k.events[j-1].timestamp,fe=Ym(k.events,i().config.inactivePeriodThreshold),ue=(ie,ke,pt,gi)=>{const bs=ke-ie;return((gi-pt)/bs*100).toFixed(2)};return fe.map(ie=>({name:"inactive period",background:l(),position:`${b(ee,P,ie[0])}%`,width:`${ue(ee,P,ie[0],ie[1])}%`}))}catch(k){return[]}})())}),Iu();var W={toggle:F,play:T,pause:x,goto:oe,playRange:L,setSpeed:$,toggleSkipInactive:ge,triggerUpdateMeta:q};ec();var Ce=lh(),A=Gf(Ce);{var be=k=>{var j=rg(),ee=nt(j),P=nt(ee),fe=nt(P,!0);st(P);var ue=Ge(P,2);let ie;var ke=nt(ue),pt=Ge(ke,2);Es(pt,1,()=>M(C),Ss,(Se,ae)=>{var Me=Km();xr(()=>{var tt,mt,qr;nr(Me,"title",(M(ae),Ee(()=>M(ae).name))),Rr(Me,`width: ${(tt=(M(ae),Ee(()=>M(ae).width)))!=null?tt:""};height: 4px;position: absolute;background: ${(mt=(M(ae),Ee(()=>M(ae).background)))!=null?mt:""};left:
|
|
178
|
+
${(qr=(M(ae),Ee(()=>M(ae).position)))!=null?qr:""};`)}),Ct(Se,Me)});var gi=Ge(pt,2);Es(gi,1,()=>M(S),Ss,(Se,ae)=>{var Me=Qm();xr(()=>{var tt,mt;nr(Me,"title",(M(ae),Ee(()=>M(ae).name))),Rr(Me,`width: 10px;height: 5px;position: absolute;top:
|
|
179
|
+
2px;transform: translate(-50%, -50%);background: ${(tt=(M(ae),Ee(()=>M(ae).background)))!=null?tt:""};left:
|
|
180
|
+
${(mt=(M(ae),Ee(()=>M(ae).position)))!=null?mt:""};`)}),Ct(Se,Me)});var bs=Ge(gi,2);st(ue),Fi(ue,Se=>re(p,Se),()=>M(p));var _s=Ge(ue,2),Yo=nt(_s,!0);st(_s),st(ee);var Jo=Ge(ee,2),vi=nt(Jo),jc=nt(vi);{var Vc=Se=>{var ae=Zm();Ct(Se,ae)},Gc=Se=>{var ae=eg();Ct(Se,ae)};Xn(jc,Se=>{M(d)==="playing"?Se(Vc):Se(Gc,!1)})}st(vi);var Xo=Ge(vi,2);Es(Xo,1,u,Ss,(Se,ae)=>{var Me=tg();let tt;var mt=nt(Me);st(Me),xr(()=>{var qr;Me.disabled=M(m)==="skipping",tt=Qn(Me,1,"svelte-14v7dbr",null,tt,{active:M(ae)===a()&&M(m)!=="skipping"}),Li(mt,`${(qr=M(ae))!=null?qr:""}x`)}),Vr("click",Me,()=>$(M(ae))),Ct(Se,Me)});var Ko=Ge(Xo,2);{let Se=ns(()=>M(m)==="skipping");Xm(Ko,{id:"skip",get disabled(){return M(Se)},label:"skip inactive",get checked(){return o()},set checked(ae){o(ae)},$$legacy:!0})}var Hc=Ge(Ko,2);st(Jo),st(j),xr((Se,ae,Me)=>{var tt,mt;Li(fe,Se),ie=Qn(ue,1,"rr-progress svelte-14v7dbr",null,ie,{disabled:M(m)==="skipping"}),nr(ue,"aria-valuenow",ae),Rr(ke,`width: ${(tt=M(y))!=null?tt:""}`),Rr(bs,`left: ${(mt=M(y))!=null?mt:""}`),Li(Yo,Me)},[()=>($e(Di),M(h),Ee(()=>Di(M(h)))),()=>(M(y),Ee(()=>parseFloat(M(y)))),()=>($e(Di),M(E),Ee(()=>Di(M(E).totalTime)))]),Vr("click",ue,te),Vr("keydown",ue,U),Vr("click",vi,F),Vr("click",Hc,()=>r("fullscreen")),Ct(k,j)};Xn(A,k=>{s()&&k(be)})}return Ct(e,Ce),ve(t,"toggle",F),ve(t,"play",T),ve(t,"pause",x),ve(t,"goto",oe),ve(t,"playRange",L),ve(t,"setSpeed",$),ve(t,"toggleSkipInactive",ge),ve(t,"triggerUpdateMeta",q),bo(W)}var sg=Wr('<div class="rr-player svelte-1qub0ki"><div class="rr-player__frame svelte-1qub0ki"></div> <!></div>');function ng(e,t){const r=Ah(t,["children","$$slots","$$events","$$legacy"]);wo(t,!1);let i=pe(t,"width",12,1024),s=pe(t,"height",12,576),n=pe(t,"maxScale",8,1),o=pe(t,"events",8),u=pe(t,"skipInactive",8,!0),a=pe(t,"autoPlay",8,!0),c=pe(t,"speedOption",24,()=>[1,2,4,8]),l=pe(t,"speed",8,1),h=pe(t,"showController",8,!0),f=pe(t,"tags",24,()=>({})),d=pe(t,"inactiveColor",8,"#D4D4D4"),m=Ae();const p=()=>M(m).getMirror(),g=80;let v=Ae(),w=Ae(),_,E=i(),y=s(),b=Ae(),S=Ae(),C=Ae();const O=(P,fe)=>{const ue=i()/fe.width,ie=s()/fe.height,ke=[ue,ie];n()&&ke.push(n()),P.style.transform=`scale(${Math.min(...ke)})translate(-50%, -50%)`},N=()=>{O(M(m).wrapper,{width:M(m).iframe.offsetWidth,height:M(m).iframe.offsetHeight})},F=()=>{M(v)&&(Ql()?Vm():jm(M(v)))},T=(P,fe)=>{switch(M(m).on(P,fe),P){case"ui-update-current-time":case"ui-update-progress":case"ui-update-player-state":M(b).$on(P,({detail:ue})=>fe(ue))}},x=P=>{M(m).addEvent(P),M(b).triggerUpdateMeta()},oe=()=>M(m).getMetaData(),L=()=>M(m),te=()=>{M(b).toggle()},U=P=>{M(b).setSpeed(P)},$=()=>{M(b).toggleSkipInactive()},ge=()=>{M(b).play()},q=()=>{M(b).pause()},W=(P,fe)=>{M(b).goto(P,fe)},Ce=(P,fe,ue=!1,ie=void 0)=>{M(b).playRange(P,fe,ue,ie)};xo(()=>{if(c()!==void 0&&Zl(c())!=="array")throw new Error("speedOption must be array");if(c().forEach(P=>{if(Zl(P)!=="number")throw new Error("item of speedOption must be number")}),c().indexOf(l())<0)throw new Error(`speed must be one of speedOption,
|
|
181
181
|
current config:
|
|
182
182
|
{
|
|
183
183
|
...
|
|
184
|
-
speed: ${
|
|
184
|
+
speed: ${l()},
|
|
185
185
|
speedOption: [${c().toString()}]
|
|
186
186
|
...
|
|
187
187
|
}
|
|
188
|
-
`);
|
|
188
|
+
`);re(m,new Am(o(),G({speed:l(),root:M(w),unpackFn:qm},r))),M(m).on("resize",P=>{O(M(m).wrapper,P)}),_=Gm(()=>{Ql()?setTimeout(()=>{E=i(),y=s(),i(M(v).offsetWidth),s(M(v).offsetHeight-(h()?g:0)),O(M(m).wrapper,{width:M(m).iframe.offsetWidth,height:M(m).iframe.offsetHeight})},0):(i(E),s(y),O(M(m).wrapper,{width:M(m).iframe.offsetWidth,height:M(m).iframe.offsetHeight}))})}),Qu(()=>{_&&_()}),$t(()=>($e(i()),$e(s())),()=>{re(S,Xl({width:`${i()}px`,height:`${s()}px`}))}),$t(()=>($e(i()),$e(s()),$e(h())),()=>{re(C,Xl({width:`${i()}px`,height:`${s()+(h()?g:0)}px`}))}),Iu();var A={getMirror:p,triggerResize:N,toggleFullscreen:F,addEventListener:T,addEvent:x,getMetaData:oe,getReplayer:L,toggle:te,setSpeed:U,toggleSkipInactive:$,play:ge,pause:q,goto:W,playRange:Ce};ec();var be=sg(),k=nt(be);Fi(k,P=>re(w,P),()=>M(w));var j=Ge(k,2);{var ee=P=>{Fi(ig(P,{get replayer(){return M(m)},get showController(){return h()},get autoPlay(){return a()},get speedOption(){return c()},get skipInactive(){return u()},get tags(){return f()},get inactiveColor(){return d()},$$events:{fullscreen:()=>F()},$$legacy:!0}),fe=>re(b,fe),()=>M(b))};Xn(j,P=>{M(m)&&P(ee)})}return st(be),Fi(be,P=>re(v,P),()=>M(v)),xr(()=>{Rr(be,M(C)),Rr(k,M(S))}),Ct(e,be),ve(t,"getMirror",p),ve(t,"triggerResize",N),ve(t,"toggleFullscreen",F),ve(t,"addEventListener",T),ve(t,"addEvent",x),ve(t,"getMetaData",oe),ve(t,"getReplayer",L),ve(t,"toggle",te),ve(t,"setSpeed",U),ve(t,"toggleSkipInactive",$),ve(t,"play",ge),ve(t,"pause",q),ve(t,"goto",W),ve(t,"playRange",Ce),bo(A)}const og=Dh(ng);class qc extends og{constructor(t){var r;super({target:t.target,props:(r=t.data)!=null?r:t.props})}}exports.Player=qc;exports.default=qc;
|
|
189
189
|
if (typeof module.exports == "object" && typeof exports == "object") {
|
|
190
190
|
var __cp = (to, from, except, desc) => {
|
|
191
191
|
if ((from && typeof from === "object") || typeof from === "function") {
|