@amplitude/rrweb-player 2.0.0-alpha.34 → 2.0.0-alpha.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,59 +11,62 @@
11
11
  }(this, () => {
12
12
  var exports = {};
13
13
  var module = { exports };
14
- "use strict";var Ai=Object.defineProperty,ki=Object.defineProperties;var Mi=Object.getOwnPropertyDescriptors;var Ie=Object.getOwnPropertySymbols;var Er=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable;var _r=(e,i,u)=>i in e?Ai(e,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[i]=u,Q=(e,i)=>{for(var u in i||(i={}))Er.call(i,u)&&_r(e,u,i[u]);if(Ie)for(var u of Ie(i))Ar.call(i,u)&&_r(e,u,i[u]);return e},ie=(e,i)=>ki(e,Mi(i));var Re=(e,i)=>{var u={};for(var d in e)Er.call(e,d)&&i.indexOf(d)<0&&(u[d]=e[d]);if(e!=null&&Ie)for(var d of Ie(e))i.indexOf(d)<0&&Ar.call(e,d)&&(u[d]=e[d]);return u};var Ni=Object.defineProperty,Ii=(e,i,u)=>i in e?Ni(e,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[i]=u,kr=(e,i,u)=>Ii(e,typeof i!="symbol"?i+"":i,u);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function _e(){}function Mr(e,i){for(const u in i)e[u]=i[u];return e}function ei(e){return e()}function Nr(){return Object.create(null)}function xe(e){e.forEach(ei)}function ti(e){return typeof e=="function"}function ar(e,i){return e!=e?i==i:e!==i||e&&typeof e=="object"||typeof e=="function"}function Li(e){return Object.keys(e).length===0}function Ir(e){const i={};for(const u in e)u[0]!=="$"&&(i[u]=e[u]);return i}function z(e,i){e.appendChild(i)}function oe(e,i,u){e.insertBefore(i,u||null)}function se(e){e.parentNode&&e.parentNode.removeChild(e)}function tt(e,i){for(let u=0;u<e.length;u+=1)e[u]&&e[u].d(i)}function H(e){return document.createElement(e)}function je(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function he(e){return document.createTextNode(e)}function ee(){return he(" ")}function Ui(){return he("")}function ye(e,i,u,d){return e.addEventListener(i,u,d),()=>e.removeEventListener(i,u,d)}function L(e,i,u){u==null?e.removeAttribute(i):e.getAttribute(i)!==u&&e.setAttribute(i,u)}function Di(e){return Array.from(e.childNodes)}function Te(e,i){i=""+i,e.data!==i&&(e.data=i)}function J(e,i,u,d){u==null?e.style.removeProperty(i):e.style.setProperty(i,u,"")}function ve(e,i,u){e.classList.toggle(i,!!u)}function Fi(e,i,{bubbles:u=!1,cancelable:d=!1}={}){return new CustomEvent(e,{detail:i,bubbles:u,cancelable:d})}let Ee;function Pe(e){Ee=e}function ri(){if(!Ee)throw new Error("Function called outside component initialization");return Ee}function si(e){ri().$$.on_destroy.push(e)}function zi(){const e=ri();return(i,u,{cancelable:d=!1}={})=>{const s=e.$$.callbacks[i];if(s){const c=Fi(i,u,{cancelable:d});return s.slice().forEach(p=>{p.call(e,c)}),!c.defaultPrevented}return!0}}const ge=[],fe=[];let be=[];const sr=[],qi=Promise.resolve();let ir=!1;function Bi(){ir||(ir=!0,qi.then(ii))}function nr(e){be.push(e)}function ji(e){sr.push(e)}const rt=new Set;let de=0;function ii(){if(de!==0)return;const e=Ee;do{try{for(;de<ge.length;){const i=ge[de];de++,Pe(i),Ti(i.$$)}}catch(i){throw ge.length=0,de=0,i}for(Pe(null),ge.length=0,de=0;fe.length;)fe.pop()();for(let i=0;i<be.length;i+=1){const u=be[i];rt.has(u)||(rt.add(u),u())}be.length=0}while(ge.length);for(;sr.length;)sr.pop()();ir=!1,rt.clear(),Pe(e)}function Ti(e){if(e.fragment!==null){e.update(),xe(e.before_update);const i=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,i),e.after_update.forEach(nr)}}function Wi(e){const i=[],u=[];be.forEach(d=>e.indexOf(d)===-1?i.push(d):u.push(d)),u.forEach(d=>d()),be=i}const Be=new Set;let ue;function ni(){ue={r:0,c:[],p:ue}}function oi(){ue.r||xe(ue.c),ue=ue.p}function ne(e,i){e&&e.i&&(Be.delete(e),e.i(i))}function Se(e,i,u,d){if(e&&e.o){if(Be.has(e))return;Be.add(e),ue.c.push(()=>{Be.delete(e),d&&(u&&e.d(1),d())}),e.o(i)}else d&&d()}function me(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function $i(e,i,u){const d=e.$$.props[i];d!==void 0&&(e.$$.bound[d]=u,u(e.$$.ctx[d]))}function li(e){e&&e.c()}function ur(e,i,u){const{fragment:d,after_update:s}=e.$$;d&&d.m(i,u),nr(()=>{const c=e.$$.on_mount.map(ei).filter(ti);e.$$.on_destroy?e.$$.on_destroy.push(...c):xe(c),e.$$.on_mount=[]}),s.forEach(nr)}function fr(e,i){const u=e.$$;u.fragment!==null&&(Wi(u.after_update),xe(u.on_destroy),u.fragment&&u.fragment.d(i),u.on_destroy=u.fragment=null,u.ctx=[])}function Vi(e,i){e.$$.dirty[0]===-1&&(ge.push(e),Bi(),e.$$.dirty.fill(0)),e.$$.dirty[i/31|0]|=1<<i%31}function hr(e,i,u,d,s,c,p=null,m=[-1]){const a=Ee;Pe(e);const h=e.$$={fragment:null,ctx:[],props:c,update:_e,not_equal:s,bound:Nr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(a?a.$$.context:[])),callbacks:Nr(),dirty:m,skip_bound:!1,root:i.target||a.$$.root};p&&p(h.root);let t=!1;if(h.ctx=u?u(e,i.props||{},(o,n,...r)=>{const f=r.length?r[0]:n;return h.ctx&&s(h.ctx[o],h.ctx[o]=f)&&(!h.skip_bound&&h.bound[o]&&h.bound[o](f),t&&Vi(e,o)),n}):[],h.update(),t=!0,xe(h.before_update),h.fragment=d?d(h.ctx):!1,i.target){if(i.hydrate){const o=Di(i.target);h.fragment&&h.fragment.l(o),o.forEach(se)}else h.fragment&&h.fragment.c();i.intro&&ne(e.$$.fragment),ur(e,i.target,i.anchor),ii()}Pe(a)}class cr{constructor(){kr(this,"$$"),kr(this,"$$set")}$destroy(){fr(this,1),this.$destroy=_e}$on(i,u){if(!ti(u))return _e;const d=this.$$.callbacks[i]||(this.$$.callbacks[i]=[]);return d.push(u),()=>{const s=d.indexOf(u);s!==-1&&d.splice(s,1)}}$set(i){this.$$set&&!Li(i)&&(this.$$.skip_bound=!0,this.$$set(i),this.$$.skip_bound=!1)}}const Gi="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Gi);var Lr,Ji=Object.defineProperty,Hi=(e,i,u)=>i in e?Ji(e,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[i]=u,Ur=(e,i,u)=>Hi(e,typeof i!="symbol"?i+"":i,u);class Yi{constructor(){Ur(this,"idNodeMap",new Map),Ur(this,"nodeMetaMap",new WeakMap)}getId(i){var u;if(!i)return-1;const d=(u=this.getMeta(i))==null?void 0:u.id;return d!=null?d:-1}getNode(i){return this.idNodeMap.get(i)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(i){return this.nodeMetaMap.get(i)||null}removeNodeFromMap(i){const u=this.getId(i);this.idNodeMap.delete(u),i.childNodes&&i.childNodes.forEach(d=>this.removeNodeFromMap(d))}has(i){return this.idNodeMap.has(i)}hasNode(i){return this.nodeMetaMap.has(i)}add(i,u){const d=u.id;this.idNodeMap.set(d,i),this.nodeMetaMap.set(i,u)}replace(i,u){const d=this.getNode(i);if(d){const s=this.nodeMetaMap.get(d);s&&this.nodeMetaMap.set(u,s)}this.idNodeMap.set(i,u)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Qi(){return new Yi}function Ki(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xi(e){if(e.__esModule)return e;var i=e.default;if(typeof i=="function"){var u=function d(){return this instanceof d?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};u.prototype=i.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(e).forEach(function(d){var s=Object.getOwnPropertyDescriptor(e,d);Object.defineProperty(u,d,s.get?s:{enumerable:!0,get:function(){return e[d]}})}),u}var Le={exports:{}},Dr;function Zi(){if(Dr)return Le.exports;Dr=1;var e=String,i=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return Le.exports=i(),Le.exports.createColors=i,Le.exports}const en={},tn=Object.freeze(Object.defineProperty({__proto__:null,default:en},Symbol.toStringTag,{value:"Module"})),te=Xi(tn);var st,Fr;function pr(){if(Fr)return st;Fr=1;let e=Zi(),i=te;class u extends Error{constructor(s,c,p,m,a,h){super(s),this.name="CssSyntaxError",this.reason=s,a&&(this.file=a),m&&(this.source=m),h&&(this.plugin=h),typeof c!="undefined"&&typeof p!="undefined"&&(typeof c=="number"?(this.line=c,this.column=p):(this.line=c.line,this.column=c.column,this.endLine=p.line,this.endColumn=p.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,u)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let c=this.source;s==null&&(s=e.isColorSupported),i&&s&&(c=i(c));let p=c.split(/\r?\n/),m=Math.max(this.line-3,0),a=Math.min(this.line+2,p.length),h=String(a).length,t,o;if(s){let{bold:n,gray:r,red:f}=e.createColors(!0);t=l=>n(f(l)),o=l=>r(l)}else t=o=n=>n;return p.slice(m,a).map((n,r)=>{let f=m+1+r,l=" "+(" "+f).slice(-h)+" | ";if(f===this.line){let g=o(l.replace(/\d/g," "))+n.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+o(l)+n+`
15
- `+g+t("^")}return" "+o(l)+n}).join(`
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&lt)===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&lt)!==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&lt&&(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&lt)!==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&lt)!==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&lt)!==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&lt)===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&lt)===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(l=>l.startsWith("https://svelte.dev/e/")))throw u;return u!==xr&&console.warn("Failed to hydrate: ",u),t.recover===!1&&Xc(),Pn(),su(r),Rt(!1),Cu(e,t)}finally{Rt(i),ze(s)}}const dr=new Map;function xu(e,{target:t,anchor:r,props:i={},events:s,context:n,intro:o=!0}){Pn();var u=new Set,l=d=>{for(var f=0;f<d.length;f++){var h=d[f];if(!u.has(h)){u.add(h);var m=Uf(h);t.addEventListener(h,Vr,{passive:m});var p=dr.get(h);p===void 0?(document.addEventListener(h,Vr,{passive:m}),dr.set(h,1)):dr.set(h,p+1)}}};l(Wi(Pf)),Vo.add(l);var c=void 0,a=Cf(()=>{var d=r!=null?r:t.appendChild(ut());return df(d,{pending:()=>{}},f=>{if(n){ro({});var h=te;h.c=n}if(s&&(i.$$events=s),J&&ar(f,null),c=e(f,i)||{},J&&(V.nodes.end=$,$===null||$.nodeType!==Pr||$.data!==Xn))throw ji(),xr;n&&io()}),()=>{var f;for(var h of u){t.removeEventListener(h,Vr);var m=dr.get(h);--m===0?(document.removeEventListener(h,Vr),dr.delete(h)):dr.set(h,m)}Vo.delete(l),d!==r&&((f=d.parentNode)==null||f.removeChild(d))}});return Ln.set(c,a),c}let Ln=new WeakMap;function Wf(e,t){const r=Ln.get(e);return r?(Ln.delete(e),r(t)):Promise.resolve()}class qf{constructor(t,r=!0){Ct(this,"anchor"),q(this,pt,new Map),q(this,_t,new Map),q(this,$e,new Map),q(this,mr,new Set),q(this,Ci,!0),q(this,xi,()=>{var i=ee;if(R(this,pt).has(i)){var s=R(this,pt).get(i),n=R(this,_t).get(s);if(n)ao(n),R(this,mr).delete(s);else{var o=R(this,$e).get(s);o&&(R(this,_t).set(s,o.effect),R(this,$e).delete(s),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),n=o.effect)}for(const[u,l]of R(this,pt)){if(R(this,pt).delete(u),u===i)break;const c=R(this,$e).get(l);c&&(ke(c.effect),R(this,$e).delete(l))}for(const[u,l]of R(this,_t)){if(u===s||R(this,mr).has(u))continue;const c=()=>{if(Array.from(R(this,pt).values()).includes(u)){var d=document.createDocumentFragment();mu(l,d),d.append(ut()),R(this,$e).set(u,{effect:l,fragment:d})}else ke(l);R(this,mr).delete(u),R(this,_t).delete(u)};R(this,Ci)||!n?(R(this,mr).add(u),ur(l,c,!1)):c()}}}),q(this,Rn,i=>{R(this,pt).delete(i);const s=Array.from(R(this,pt).values());for(const[n,o]of R(this,$e))s.includes(n)||(ke(o.effect),R(this,$e).delete(n))}),this.anchor=t,L(this,Ci,r)}ensure(t,r){var i=ee,s=nu();if(r&&!R(this,_t).has(t)&&!R(this,$e).has(t))if(s){var n=document.createDocumentFragment(),o=ut();n.append(o),R(this,$e).set(t,{effect:Xe(()=>r(o)),fragment:n})}else R(this,_t).set(t,Xe(()=>r(this.anchor)));if(R(this,pt).set(i,t),s){for(const[u,l]of R(this,_t))u===t?i.skipped_effects.delete(l):i.skipped_effects.add(l);for(const[u,l]of R(this,$e))u===t?i.skipped_effects.delete(l.effect):i.skipped_effects.add(l.effect);i.oncommit(R(this,xi)),i.ondiscard(R(this,Rn))}else J&&(this.anchor=$),R(this,xi).call(this)}}pt=new WeakMap;_t=new WeakMap;$e=new WeakMap;mr=new WeakMap;Ci=new WeakMap;xi=new WeakMap;Rn=new WeakMap;function lo(e){te===null&&Vi(),Dr&&te.l!==null?Mu(te).m.push(e):kn(()=>{const t=_e(e);if(typeof t=="function")return t})}function Ru(e){te===null&&Vi(),lo(()=>()=>_e(e))}function zf(e,t,{bubbles:r=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:i})}function $f(){const e=te;return e===null&&Vi(),(t,r,i)=>{var s;const n=(s=e.s.$$events)==null?void 0:s[t];if(n){const o=Qn(n)?n.slice():[n],u=zf(t,r,i);for(const l of o)l.call(e.x,u);return!u.defaultPrevented}return!0}}function Vf(e){te===null&&Vi(),te.l===null&&Qc(),Mu(te).a.push(e)}function Mu(e){var r;var t=e.l;return(r=t.u)!=null?r:t.u={a:[],b:[],m:[]}}function Fn(e,t,r=!1){J&&Gi();var i=new qf(e),s=r?Rr:0;function n(o,u){if(J){const c=$l(e)===Bi;if(o===c){var l=Di();ze(l),i.anchor=l,Rt(!1),i.ensure(o,u),Rt(!0);return}}i.ensure(o,u)}oo(()=>{var o=!1;t((u,l=!0)=>{o=!0,n(l,u)}),o||n(!1,null)},s)}function hs(e,t){return t}function jf(e,t,r){var d;for(var i=[],s=t.length,n,o=t.length,u=0;u<s;u++){let f=t[u];ur(f,()=>{if(n){if(n.pending.delete(f),n.done.add(f),n.pending.size===0){var h=e.outrogroups;Un(Wi(n.done)),h.delete(n),h.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var l=i.length===0&&r!==null;if(l){var c=r,a=c.parentNode;su(a),a.append(c),e.items.clear()}Un(t,!l)}else n={pending:new Set(t),done:new Set},((d=e.outrogroups)!=null?d:e.outrogroups=new Set).add(n)}function Un(e,t=!0){for(var r=0;r<e.length;r++)ke(e[r],t)}var Dt;function ds(e,t,r,i,s,n=null){var o=e,u=new Map;J&&Gi();var l=null,c=Ji(()=>{var p=r();return Qn(p)?p:p==null?[]:Wi(p)}),a,d=!0;function f(){m.fallback=l,Gf(m,a,o,t,i),l!==null&&(a.length===0?(l.f&Bt)===0?ao(l):(l.f^=Bt,jr(l,null,o)):ur(l,()=>{l=null}))}var h=oo(()=>{a=M(c);var p=a.length;let g=!1;if(J){var y=$l(o)===Bi;y!==(p===0)&&(o=Di(),ze(o),Rt(!1),g=!0)}for(var b=new Set,_=ee,S=nu(),v=0;v<p;v+=1){J&&$.nodeType===Pr&&$.data===Xn&&(o=$,g=!0,Rt(!1));var w=a[v],E=i(w,v),C=d?null:u.get(E);C?(C.v&&Or(C.v,w),C.i&&Or(C.i,v),S&&_.skipped_effects.delete(C.e)):(C=Hf(u,d?o:Dt!=null?Dt:Dt=ut(),w,E,v,s,t,r),d||(C.e.f|=Bt),u.set(E,C)),b.add(E)}if(p===0&&n&&!l&&(d?l=Xe(()=>n(o)):(l=Xe(()=>n(Dt!=null?Dt:Dt=ut())),l.f|=Bt)),J&&p>0&&ze(Di()),!d)if(S){for(const[A,N]of u)b.has(A)||_.skipped_effects.add(N.e);_.oncommit(f),_.ondiscard(()=>{})}else f();g&&Rt(!0),M(c)}),m={effect:h,items:u,outrogroups:null,fallback:l};d=!1,J&&(o=$)}function Gf(e,t,r,i,s){var n,o=t.length,u=e.items,l=e.effect.first,c,a=null,d=[],f=[],h,m,p,g;for(g=0;g<o;g+=1){if(h=t[g],m=s(h,g),p=u.get(m).e,e.outrogroups!==null)for(const A of e.outrogroups)A.pending.delete(p),A.done.delete(p);if((p.f&Bt)!==0)if(p.f^=Bt,p===l)jr(p,null,r);else{var y=a?a.next:l;p===e.effect.last&&(e.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),Tt(e,a,p),Tt(e,p,y),jr(p,y,r),a=p,d=[],f=[],l=a.next;continue}if((p.f&qe)!==0&&ao(p),p!==l){if(c!==void 0&&c.has(p)){if(d.length<f.length){var b=f[0],_;a=b.prev;var S=d[0],v=d[d.length-1];for(_=0;_<d.length;_+=1)jr(d[_],b,r);for(_=0;_<f.length;_+=1)c.delete(f[_]);Tt(e,S.prev,v.next),Tt(e,a,S),Tt(e,v,b),l=b,a=v,g-=1,d=[],f=[]}else c.delete(p),jr(p,l,r),Tt(e,p.prev,p.next),Tt(e,p,a===null?e.effect.first:a.next),Tt(e,a,p),a=p;continue}for(d=[],f=[];l!==null&&l!==p;)(c!=null?c:c=new Set).add(l),f.push(l),l=l.next;if(l===null)continue}(p.f&Bt)===0&&d.push(p),a=p,l=p.next}if(e.outrogroups!==null){for(const A of e.outrogroups)A.pending.size===0&&(Un(Wi(A.done)),(n=e.outrogroups)==null||n.delete(A));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||c!==void 0){var w=[];if(c!==void 0)for(p of c)(p.f&qe)===0&&w.push(p);for(;l!==null;)(l.f&qe)===0&&l!==e.fallback&&w.push(l),l=l.next;var E=w.length;if(E>0){var C=null;jf(e,w,C)}}}function Hf(e,t,r,i,s,n,o,u){var l=(o&Ac)!==0?(o&Tc)===0?Oe(r,!1,!1):Gt(r):null,c=(o&Dc)!==0?Gt(s):null;return{v:l,i:c,e:Xe(()=>(n(t,l!=null?l:r,c!=null?c:s,u),()=>{e.delete(i)}))}}function jr(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,n=t&&(t.f&Bt)===0?t.nodes.start:r;i!==null;){var o=yt(i);if(n.before(i),i===s)return;i=o}}function Tt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}const Go=[...`
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 vh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yh(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 di={exports:{}},Zo;function wh(){if(Zo)return di.exports;Zo=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 di.exports=t(),di.exports.createColors=t,di.exports}const bh={},_h=Object.freeze(Object.defineProperty({__proto__:null,default:bh},Symbol.toStringTag,{value:"Module"})),ot=yh(_h);var ps,ea;function uo(){if(ea)return ps;ea=1;let e=wh(),t=ot;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+`
18
+ `+g+a("^")}return" "+d(p)+f}).join(`
16
19
  `)}toString(){let s=this.showSourceCode();return s&&(s=`
17
20
 
18
21
  `+s+`
19
- `),this.name+": "+this.message+s}}return st=u,u.default=u,st}var Ue={},zr;function dr(){return zr||(zr=1,Ue.isClean=Symbol("isClean"),Ue.my=Symbol("my")),Ue}var it,qr;function ai(){if(qr)return it;qr=1;const e={after:`
22
+ `),this.name+": "+this.message+s}}return ps=r,r.default=r,ps}var pi={},ta;function co(){return ta||(ta=1,pi.isClean=Symbol("isClean"),pi.my=Symbol("my")),pi}var ms,ra;function Du(){if(ra)return ms;ra=1;const e={after:`
20
23
  `,beforeClose:`
21
24
  `,beforeComment:`
22
25
  `,beforeDecl:`
23
26
  `,beforeOpen:" ",beforeRule:`
24
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function i(d){return d[0].toUpperCase()+d.slice(1)}class u{constructor(s){this.builder=s}atrule(s,c){let p="@"+s.name,m=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName!="undefined"?p+=s.raws.afterName:m&&(p+=" "),s.nodes)this.block(s,p+m);else{let a=(s.raws.between||"")+(c?";":"");this.builder(p+m+a,s)}}beforeAfter(s,c){let p;s.type==="decl"?p=this.raw(s,null,"beforeDecl"):s.type==="comment"?p=this.raw(s,null,"beforeComment"):c==="before"?p=this.raw(s,null,"beforeRule"):p=this.raw(s,null,"beforeClose");let m=s.parent,a=0;for(;m&&m.type!=="root";)a+=1,m=m.parent;if(p.includes(`
25
- `)){let h=this.raw(s,null,"indent");if(h.length)for(let t=0;t<a;t++)p+=h}return p}block(s,c){let p=this.raw(s,"between","beforeOpen");this.builder(c+p+"{",s,"start");let m;s.nodes&&s.nodes.length?(this.body(s),m=this.raw(s,"after")):m=this.raw(s,"after","emptyBody"),m&&this.builder(m),this.builder("}",s,"end")}body(s){let c=s.nodes.length-1;for(;c>0&&s.nodes[c].type==="comment";)c-=1;let p=this.raw(s,"semicolon");for(let m=0;m<s.nodes.length;m++){let a=s.nodes[m],h=this.raw(a,"before");h&&this.builder(h),this.stringify(a,c!==m||p)}}comment(s){let c=this.raw(s,"left","commentLeft"),p=this.raw(s,"right","commentRight");this.builder("/*"+c+s.text+p+"*/",s)}decl(s,c){let p=this.raw(s,"between","colon"),m=s.prop+p+this.rawValue(s,"value");s.important&&(m+=s.raws.important||" !important"),c&&(m+=";"),this.builder(m,s)}document(s){this.body(s)}raw(s,c,p){let m;if(p||(p=c),c&&(m=s.raws[c],typeof m!="undefined"))return m;let a=s.parent;if(p==="before"&&(!a||a.type==="root"&&a.first===s||a&&a.type==="document"))return"";if(!a)return e[p];let h=s.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[p]!="undefined")return h.rawCache[p];if(p==="before"||p==="after")return this.beforeAfter(s,p);{let t="raw"+i(p);this[t]?m=this[t](h,s):h.walk(o=>{if(m=o.raws[c],typeof m!="undefined")return!1})}return typeof m=="undefined"&&(m=e[p]),h.rawCache[p]=m,m}rawBeforeClose(s){let c;return s.walk(p=>{if(p.nodes&&p.nodes.length>0&&typeof p.raws.after!="undefined")return c=p.raws.after,c.includes(`
26
- `)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawBeforeComment(s,c){let p;return s.walkComments(m=>{if(typeof m.raws.before!="undefined")return p=m.raws.before,p.includes(`
27
- `)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p=="undefined"?p=this.raw(c,null,"beforeDecl"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeDecl(s,c){let p;return s.walkDecls(m=>{if(typeof m.raws.before!="undefined")return p=m.raws.before,p.includes(`
28
- `)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p=="undefined"?p=this.raw(c,null,"beforeRule"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeOpen(s){let c;return s.walk(p=>{if(p.type!=="decl"&&(c=p.raws.between,typeof c!="undefined"))return!1}),c}rawBeforeRule(s){let c;return s.walk(p=>{if(p.nodes&&(p.parent!==s||s.first!==p)&&typeof p.raws.before!="undefined")return c=p.raws.before,c.includes(`
29
- `)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawColon(s){let c;return s.walkDecls(p=>{if(typeof p.raws.between!="undefined")return c=p.raws.between.replace(/[^\s:]/g,""),!1}),c}rawEmptyBody(s){let c;return s.walk(p=>{if(p.nodes&&p.nodes.length===0&&(c=p.raws.after,typeof c!="undefined"))return!1}),c}rawIndent(s){if(s.raws.indent)return s.raws.indent;let c;return s.walk(p=>{let m=p.parent;if(m&&m!==s&&m.parent&&m.parent===s&&typeof p.raws.before!="undefined"){let a=p.raws.before.split(`
30
- `);return c=a[a.length-1],c=c.replace(/\S/g,""),!1}}),c}rawSemicolon(s){let c;return s.walk(p=>{if(p.nodes&&p.nodes.length&&p.last.type==="decl"&&(c=p.raws.semicolon,typeof c!="undefined"))return!1}),c}rawValue(s,c){let p=s[c],m=s.raws[c];return m&&m.value===p?m.raw:p}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,c){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,c)}}return it=u,u.default=u,it}var nt,Br;function We(){if(Br)return nt;Br=1;let e=ai();function i(u,d){new e(d).stringify(u)}return nt=i,i.default=i,nt}var ot,jr;function $e(){if(jr)return ot;jr=1;let{isClean:e,my:i}=dr(),u=pr(),d=ai(),s=We();function c(m,a){let h=new m.constructor;for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t)||t==="proxyCache")continue;let o=m[t],n=typeof o;t==="parent"&&n==="object"?a&&(h[t]=a):t==="source"?h[t]=o:Array.isArray(o)?h[t]=o.map(r=>c(r,h)):(n==="object"&&o!==null&&(o=c(o)),h[t]=o)}return h}class p{constructor(a={}){this.raws={},this[e]=!1,this[i]=!0;for(let h in a)if(h==="nodes"){this.nodes=[];for(let t of a[h])typeof t.clone=="function"?this.append(t.clone()):this.append(t)}else this[h]=a[h]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let h=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${h.input.from}:${h.start.line}:${h.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let h in a)this[h]=a[h];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let h=c(this);for(let t in a)h[t]=a[t];return h}cloneAfter(a={}){let h=this.clone(a);return this.parent.insertAfter(this,h),h}cloneBefore(a={}){let h=this.clone(a);return this.parent.insertBefore(this,h),h}error(a,h={}){if(this.source){let{end:t,start:o}=this.rangeBy(h);return this.source.input.error(a,{column:o.column,line:o.line},{column:t.column,line:t.line},h)}return new u(a)}getProxyProcessor(){return{get(a,h){return h==="proxyOf"?a:h==="root"?()=>a.root().toProxy():a[h]},set(a,h,t){return a[h]===t||(a[h]=t,(h==="prop"||h==="value"||h==="name"||h==="params"||h==="important"||h==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,h){let t=this.source.start;if(a.index)t=this.positionInside(a.index,h);else if(a.word){h=this.toString();let o=h.indexOf(a.word);o!==-1&&(t=this.positionInside(o,h))}return t}positionInside(a,h){let t=h||this.toString(),o=this.source.start.column,n=this.source.start.line;for(let r=0;r<a;r++)t[r]===`
31
- `?(o=1,n+=1):o+=1;return{column:o,line:n}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let h={column:this.source.start.column,line:this.source.start.line},t=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:h.column+1,line:h.line};if(a.word){let o=this.toString(),n=o.indexOf(a.word);n!==-1&&(h=this.positionInside(n,o),t=this.positionInside(n+a.word.length,o))}else a.start?h={column:a.start.column,line:a.start.line}:a.index&&(h=this.positionInside(a.index)),a.end?t={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?t=this.positionInside(a.endIndex):a.index&&(t=this.positionInside(a.index+1));return(t.line<h.line||t.line===h.line&&t.column<=h.column)&&(t={column:h.column+1,line:h.line}),{end:t,start:h}}raw(a,h){return new d().raw(this,a,h)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let h=this,t=!1;for(let o of a)o===this?t=!0:t?(this.parent.insertAfter(h,o),h=o):this.parent.insertBefore(h,o);t||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,h){let t={},o=h==null;h=h||new Map;let n=0;for(let r in this){if(!Object.prototype.hasOwnProperty.call(this,r)||r==="parent"||r==="proxyCache")continue;let f=this[r];if(Array.isArray(f))t[r]=f.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,h):l);else if(typeof f=="object"&&f.toJSON)t[r]=f.toJSON(null,h);else if(r==="source"){let l=h.get(f.input);l==null&&(l=n,h.set(f.input,n),n++),t[r]={end:f.end,inputId:l,start:f.start}}else t[r]=f}return o&&(t.inputs=[...h.keys()].map(r=>r.toJSON())),t}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=s){a.stringify&&(a=a.stringify);let h="";return a(this,t=>{h+=t}),h}warn(a,h,t){let o={node:this};for(let n in t)o[n]=t[n];return a.warn(h,o)}get proxyOf(){return this}}return ot=p,p.default=p,ot}var lt,Tr;function Ve(){if(Tr)return lt;Tr=1;let e=$e();class i extends e{constructor(d){d&&typeof d.value!="undefined"&&typeof d.value!="string"&&(d=ie(Q({},d),{value:String(d.value)})),super(d),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return lt=i,i.default=i,lt}var at,Wr;function rn(){if(Wr)return at;Wr=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return at={nanoid:(d=21)=>{let s="",c=d;for(;c--;)s+=e[Math.random()*64|0];return s},customAlphabet:(d,s=21)=>(c=s)=>{let p="",m=c;for(;m--;)p+=d[Math.random()*d.length|0];return p}},at}var ut,$r;function ui(){if($r)return ut;$r=1;let{SourceMapConsumer:e,SourceMapGenerator:i}=te,{existsSync:u,readFileSync:d}=te,{dirname:s,join:c}=te;function p(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class m{constructor(h,t){if(t.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let o=t.map?t.map.prev:void 0,n=this.loadMap(t.from,o);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=s(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(h){let t=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,r=/^data:application\/json,/;if(n.test(h)||r.test(h))return decodeURIComponent(h.substr(RegExp.lastMatch.length));if(t.test(h)||o.test(h))return p(h.substr(RegExp.lastMatch.length));let f=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+f)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let t=h.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let o=h.lastIndexOf(t.pop()),n=h.indexOf("*/",o);o>-1&&n>-1&&(this.annotation=this.getAnnotationURL(h.substring(o,n)))}loadFile(h){if(this.root=s(h),u(h))return this.mapFile=h,d(h,"utf-8").toString().trim()}loadMap(h,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let o=t(h);if(o){let n=this.loadFile(o);if(!n)throw new Error("Unable to load previous source map: "+o.toString());return n}}else{if(t instanceof e)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let o=this.annotation;return h&&(o=c(s(h),o)),this.loadFile(o)}}}startWith(h,t){return h?h.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return ut=m,m.default=m,ut}var ft,Vr;function Ge(){if(Vr)return ft;Vr=1;let{SourceMapConsumer:e,SourceMapGenerator:i}=te,{fileURLToPath:u,pathToFileURL:d}=te,{isAbsolute:s,resolve:c}=te,{nanoid:p}=rn(),m=te,a=pr(),h=ui(),t=Symbol("fromOffsetCache"),o=!!(e&&i),n=!!(c&&s);class r{constructor(l,g={}){if(l===null||typeof l=="undefined"||typeof l=="object"&&!l.toString)throw new Error(`PostCSS received ${l} instead of CSS string`);if(this.css=l.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!n||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=c(g.from)),n&&o){let x=new h(this.css,g);if(x.text){this.map=x;let b=x.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+p(6)+">"),this.map&&(this.map.file=this.from)}error(l,g,x,b={}){let v,C,y;if(g&&typeof g=="object"){let S=g,P=x;if(typeof S.offset=="number"){let A=this.fromOffset(S.offset);g=A.line,x=A.col}else g=S.line,x=S.column;if(typeof P.offset=="number"){let A=this.fromOffset(P.offset);C=A.line,y=A.col}else C=P.line,y=P.column}else if(!x){let S=this.fromOffset(g);g=S.line,x=S.col}let w=this.origin(g,x,C,y);return w?v=new a(l,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,b.plugin):v=new a(l,C===void 0?g:{column:x,line:g},C===void 0?x:{column:y,line:C},this.css,this.file,b.plugin),v.input={column:x,endColumn:y,endLine:C,line:g,source:this.css},this.file&&(d&&(v.input.url=d(this.file).toString()),v.input.file=this.file),v}fromOffset(l){let g,x;if(this[t])x=this[t];else{let v=this.css.split(`
32
- `);x=new Array(v.length);let C=0;for(let y=0,w=v.length;y<w;y++)x[y]=C,C+=v[y].length+1;this[t]=x}g=x[x.length-1];let b=0;if(l>=g)b=x.length-1;else{let v=x.length-2,C;for(;b<v;)if(C=b+(v-b>>1),l<x[C])v=C-1;else if(l>=x[C+1])b=C+1;else{b=C;break}}return{col:l-x[b]+1,line:b+1}}mapResolve(l){return/^\w+:\/\//.test(l)?l:c(this.map.consumer().sourceRoot||this.map.root||".",l)}origin(l,g,x,b){if(!this.map)return!1;let v=this.map.consumer(),C=v.originalPositionFor({column:g,line:l});if(!C.source)return!1;let y;typeof x=="number"&&(y=v.originalPositionFor({column:b,line:x}));let w;s(C.source)?w=d(C.source):w=new URL(C.source,this.map.consumer().sourceRoot||d(this.map.mapFile));let S={column:C.column,endColumn:y&&y.column,endLine:y&&y.line,line:C.line,url:w.toString()};if(w.protocol==="file:")if(u)S.file=u(w);else throw new Error("file: protocol is not available in this PostCSS build");let P=v.sourceContentFor(C.source);return P&&(S.source=P),S}toJSON(){let l={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(l[g]=this[g]);return this.map&&(l.map=Q({},this.map),l.map.consumerCache&&(l.map.consumerCache=void 0)),l}get from(){return this.file||this.id}}return ft=r,r.default=r,m&&m.registerInput&&m.registerInput(r),ft}var ht,Gr;function fi(){if(Gr)return ht;Gr=1;let{SourceMapConsumer:e,SourceMapGenerator:i}=te,{dirname:u,relative:d,resolve:s,sep:c}=te,{pathToFileURL:p}=te,m=Ge(),a=!!(e&&i),h=!!(u&&s&&d&&c);class t{constructor(n,r,f,l){this.stringify=n,this.mapOpts=f.map||{},this.root=r,this.opts=f,this.css=l,this.originalCSS=l,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let n;this.isInline()?n="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?n=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?n=this.mapOpts.annotation(this.opts.to,this.root):n=this.outputFile()+".map";let r=`
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 l=(s.raws.between||"")+(n?";":"");this.builder(o+u+l,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,l=0;for(;u&&u.type!=="root";)l+=1,u=u.parent;if(o.includes(`
28
+ `)){let c=this.raw(s,null,"indent");if(c.length)for(let a=0;a<l;a++)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 l=s.nodes[u],c=this.raw(l,"before");c&&this.builder(c),this.stringify(l,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 l=s.parent;if(o==="before"&&(!l||l.type==="root"&&l.first===s||l&&l.type==="document"))return"";if(!l)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 a="raw"+t(o);this[a]?u=this[a](c,s):c.walk(d=>{if(u=d.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
+ `)&&(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
+ `)&&(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
+ `)&&(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 l=o.raws.before.split(`
33
+ `);return n=l[l.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 gs,ia;function Qi(){if(ia)return gs;ia=1;let e=Du();function t(r,i){new e(i).stringify(r)}return gs=t,t.default=t,gs}var vs,sa;function Ki(){if(sa)return vs;sa=1;let{isClean:e,my:t}=co(),r=uo(),i=Du(),s=Qi();function n(u,l){let c=new u.constructor;for(let a in u){if(!Object.prototype.hasOwnProperty.call(u,a)||a==="proxyCache")continue;let d=u[a],f=typeof d;a==="parent"&&f==="object"?l&&(c[a]=l):a==="source"?c[a]=d:Array.isArray(d)?c[a]=d.map(h=>n(h,c)):(f==="object"&&d!==null&&(d=n(d)),c[a]=d)}return c}class o{constructor(l={}){this.raws={},this[e]=!1,this[t]=!0;for(let c in l)if(c==="nodes"){this.nodes=[];for(let a of l[c])typeof a.clone=="function"?this.append(a.clone()):this.append(a)}else this[c]=l[c]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let c=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${c.input.from}:${c.start.line}:${c.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let c in l)this[c]=l[c];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let c=n(this);for(let a in l)c[a]=l[a];return c}cloneAfter(l={}){let c=this.clone(l);return this.parent.insertAfter(this,c),c}cloneBefore(l={}){let c=this.clone(l);return this.parent.insertBefore(this,c),c}error(l,c={}){if(this.source){let{end:a,start:d}=this.rangeBy(c);return this.source.input.error(l,{column:d.column,line:d.line},{column:a.column,line:a.line},c)}return new r(l)}getProxyProcessor(){return{get(l,c){return c==="proxyOf"?l:c==="root"?()=>l.root().toProxy():l[c]},set(l,c,a){return l[c]===a||(l[c]=a,(c==="prop"||c==="value"||c==="name"||c==="params"||c==="important"||c==="text")&&l.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let l=this;for(;l=l.parent;)l[e]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l,c){let a=this.source.start;if(l.index)a=this.positionInside(l.index,c);else if(l.word){c=this.toString();let d=c.indexOf(l.word);d!==-1&&(a=this.positionInside(d,c))}return a}positionInside(l,c){let a=c||this.toString(),d=this.source.start.column,f=this.source.start.line;for(let h=0;h<l;h++)a[h]===`
34
+ `?(d=1,f+=1):d+=1;return{column:d,line:f}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let c={column:this.source.start.column,line:this.source.start.line},a=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:c.column+1,line:c.line};if(l.word){let d=this.toString(),f=d.indexOf(l.word);f!==-1&&(c=this.positionInside(f,d),a=this.positionInside(f+l.word.length,d))}else l.start?c={column:l.start.column,line:l.start.line}:l.index&&(c=this.positionInside(l.index)),l.end?a={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?a=this.positionInside(l.endIndex):l.index&&(a=this.positionInside(l.index+1));return(a.line<c.line||a.line===c.line&&a.column<=c.column)&&(a={column:c.column+1,line:c.line}),{end:a,start:c}}raw(l,c){return new i().raw(this,l,c)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let c=this,a=!1;for(let d of l)d===this?a=!0:a?(this.parent.insertAfter(c,d),c=d):this.parent.insertBefore(c,d);a||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,c){let a={},d=c==null;c=c||new Map;let f=0;for(let h in this){if(!Object.prototype.hasOwnProperty.call(this,h)||h==="parent"||h==="proxyCache")continue;let m=this[h];if(Array.isArray(m))a[h]=m.map(p=>typeof p=="object"&&p.toJSON?p.toJSON(null,c):p);else if(typeof m=="object"&&m.toJSON)a[h]=m.toJSON(null,c);else if(h==="source"){let p=c.get(m.input);p==null&&(p=f,c.set(m.input,f),f++),a[h]={end:m.end,inputId:p,start:m.start}}else a[h]=m}return d&&(a.inputs=[...c.keys()].map(h=>h.toJSON())),a}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=s){l.stringify&&(l=l.stringify);let c="";return l(this,a=>{c+=a}),c}warn(l,c,a){let d={node:this};for(let f in a)d[f]=a[f];return l.warn(c,d)}get proxyOf(){return this}}return vs=o,o.default=o,vs}var ys,na;function Zi(){if(na)return ys;na=1;let e=Ki();class t extends e{constructor(i){i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=ge(H({},i),{value:String(i.value)})),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return ys=t,t.default=t,ys}var ws,oa;function Sh(){if(oa)return ws;oa=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return ws={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}},ws}var bs,aa;function Tu(){if(aa)return bs;aa=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ot,{existsSync:r,readFileSync:i}=ot,{dirname:s,join:n}=ot;function o(l){return Buffer?Buffer.from(l,"base64").toString():window.atob(l)}class u{constructor(c,a){if(a.map===!1)return;this.loadAnnotation(c),this.inline=this.startWith(this.annotation,"data:");let d=a.map?a.map.prev:void 0,f=this.loadMap(a.from,d);!this.mapFile&&a.from&&(this.mapFile=a.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 a=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/;if(f.test(c)||h.test(c))return decodeURIComponent(c.substr(RegExp.lastMatch.length));if(a.test(c)||d.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 a=c.match(/\/\*\s*# sourceMappingURL=/gm);if(!a)return;let d=c.lastIndexOf(a.pop()),f=c.indexOf("*/",d);d>-1&&f>-1&&(this.annotation=this.getAnnotationURL(c.substring(d,f)))}loadFile(c){if(this.root=s(c),r(c))return this.mapFile=c,i(c,"utf-8").toString().trim()}loadMap(c,a){if(a===!1)return!1;if(a){if(typeof a=="string")return a;if(typeof a=="function"){let d=a(c);if(d){let f=this.loadFile(d);if(!f)throw new Error("Unable to load previous source map: "+d.toString());return f}}else{if(a instanceof e)return t.fromSourceMap(a).toString();if(a instanceof t)return a.toString();if(this.isMap(a))return JSON.stringify(a);throw new Error("Unsupported previous source map format: "+a.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return c&&(d=n(s(c),d)),this.loadFile(d)}}}startWith(c,a){return c?c.substr(0,a.length)===a:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return bs=u,u.default=u,bs}var _s,la;function es(){if(la)return _s;la=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ot,{fileURLToPath:r,pathToFileURL:i}=ot,{isAbsolute:s,resolve:n}=ot,{nanoid:o}=Sh(),u=ot,l=uo(),c=Tu(),a=Symbol("fromOffsetCache"),d=!!(e&&t),f=!!(n&&s);class h{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&&d){let y=new c(this.css,g);if(y.text){this.map=y;let b=y.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(p,g,y,b={}){let _,S,v;if(g&&typeof g=="object"){let E=g,C=y;if(typeof E.offset=="number"){let A=this.fromOffset(E.offset);g=A.line,y=A.col}else g=E.line,y=E.column;if(typeof C.offset=="number"){let A=this.fromOffset(C.offset);S=A.line,v=A.col}else S=C.line,v=C.column}else if(!y){let E=this.fromOffset(g);g=E.line,y=E.col}let w=this.origin(g,y,S,v);return w?_=new l(p,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,b.plugin):_=new l(p,S===void 0?g:{column:y,line:g},S===void 0?y:{column:v,line:S},this.css,this.file,b.plugin),_.input={column:y,endColumn:v,endLine:S,line:g,source:this.css},this.file&&(i&&(_.input.url=i(this.file).toString()),_.input.file=this.file),_}fromOffset(p){let g,y;if(this[a])y=this[a];else{let _=this.css.split(`
35
+ `);y=new Array(_.length);let S=0;for(let v=0,w=_.length;v<w;v++)y[v]=S,S+=_[v].length+1;this[a]=y}g=y[y.length-1];let b=0;if(p>=g)b=y.length-1;else{let _=y.length-2,S;for(;b<_;)if(S=b+(_-b>>1),p<y[S])_=S-1;else if(p>=y[S+1])b=S+1;else{b=S;break}}return{col:p-y[b]+1,line:b+1}}mapResolve(p){return/^\w+:\/\//.test(p)?p:n(this.map.consumer().sourceRoot||this.map.root||".",p)}origin(p,g,y,b){if(!this.map)return!1;let _=this.map.consumer(),S=_.originalPositionFor({column:g,line:p});if(!S.source)return!1;let v;typeof y=="number"&&(v=_.originalPositionFor({column:b,line:y}));let w;s(S.source)?w=i(S.source):w=new URL(S.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let E={column:S.column,endColumn:v&&v.column,endLine:v&&v.line,line:S.line,url:w.toString()};if(w.protocol==="file:")if(r)E.file=r(w);else throw new Error("file: protocol is not available in this PostCSS build");let C=_.sourceContentFor(S.source);return C&&(E.source=C),E}toJSON(){let p={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(p[g]=this[g]);return this.map&&(p.map=H({},this.map),p.map.consumerCache&&(p.map.consumerCache=void 0)),p}get from(){return this.file||this.id}}return _s=h,h.default=h,u&&u.registerInput&&u.registerInput(h),_s}var Ss,ua;function Pu(){if(ua)return Ss;ua=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ot,{dirname:r,relative:i,resolve:s,sep:n}=ot,{pathToFileURL:o}=ot,u=es(),l=!!(e&&t),c=!!(r&&s&&i&&n);class a{constructor(f,h,m,p){this.stringify=f,this.mapOpts=m.map||{},this.root=h,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 h=`
33
36
  `;this.css.includes(`\r
34
- `)&&(r=`\r
35
- `),this.css+=r+"/*# sourceMappingURL="+n+" */"}applyPrevMaps(){for(let n of this.previous()){let r=this.toUrl(this.path(n.file)),f=n.root||u(n.file),l;this.mapOpts.sourcesContent===!1?(l=new e(n.text),l.sourcesContent&&(l.sourcesContent=null)):l=n.consumer(),this.map.applySourceMap(l,r,this.toUrl(this.path(f)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let n;for(let r=this.root.nodes.length-1;r>=0;r--)n=this.root.nodes[r],n.type==="comment"&&n.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&a&&this.isMap())return this.generateMap();{let n="";return this.stringify(this.root,r=>{n+=r}),[n]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let n=this.previous()[0].consumer();n.file=this.outputFile(),this.map=i.fromSourceMap(n,{ignoreInvalidMapping:!0})}else this.map=new i({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new i({file:this.outputFile(),ignoreInvalidMapping:!0});let n=1,r=1,f="<no source>",l={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,x;this.stringify(this.root,(b,v,C)=>{if(this.css+=b,v&&C!=="end"&&(l.generated.line=n,l.generated.column=r-1,v.source&&v.source.start?(l.source=this.sourcePath(v),l.original.line=v.source.start.line,l.original.column=v.source.start.column-1,this.map.addMapping(l)):(l.source=f,l.original.line=1,l.original.column=0,this.map.addMapping(l))),g=b.match(/\n/g),g?(n+=g.length,x=b.lastIndexOf(`
36
- `),r=b.length-x):r+=b.length,v&&C!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(l.source=this.sourcePath(v),l.original.line=v.source.end.line,l.original.column=v.source.end.column-1,l.generated.line=n,l.generated.column=r-2,this.map.addMapping(l)):(l.source=f,l.original.line=1,l.original.column=0,l.generated.line=n,l.generated.column=r-1,this.map.addMapping(l)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(n=>n.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let n=this.mapOpts.annotation;return typeof n!="undefined"&&n!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(n=>n.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(n){if(this.mapOpts.absolute||n.charCodeAt(0)===60||/^\w+:\/\//.test(n))return n;let r=this.memoizedPaths.get(n);if(r)return r;let f=this.opts.to?u(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=u(s(f,this.mapOpts.annotation)));let l=d(f,n);return this.memoizedPaths.set(n,l),l}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(n=>{if(n.source&&n.source.input.map){let r=n.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let n=new m(this.originalCSS,this.opts);n.map&&this.previousMaps.push(n.map)}return this.previousMaps}setSourcesContent(){let n={};if(this.root)this.root.walk(r=>{if(r.source){let f=r.source.input.from;if(f&&!n[f]){n[f]=!0;let l=this.usesFileUrls?this.toFileUrl(f):this.toUrl(this.path(f));this.map.setSourceContent(l,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(n){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(n.source.input.from):this.toUrl(this.path(n.source.input.from))}toBase64(n){return Buffer?Buffer.from(n).toString("base64"):window.btoa(unescape(encodeURIComponent(n)))}toFileUrl(n){let r=this.memoizedFileURLs.get(n);if(r)return r;if(p){let f=p(n).toString();return this.memoizedFileURLs.set(n,f),f}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(n){let r=this.memoizedURLs.get(n);if(r)return r;c==="\\"&&(n=n.replace(/\\/g,"/"));let f=encodeURI(n).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(n,f),f}}return ht=t,ht}var ct,Jr;function Je(){if(Jr)return ct;Jr=1;let e=$e();class i extends e{constructor(d){super(d),this.type="comment"}}return ct=i,i.default=i,ct}var pt,Hr;function ce(){if(Hr)return pt;Hr=1;let{isClean:e,my:i}=dr(),u=Ve(),d=Je(),s=$e(),c,p,m,a;function h(n){return n.map(r=>(r.nodes&&(r.nodes=h(r.nodes)),delete r.source,r))}function t(n){if(n[e]=!1,n.proxyOf.nodes)for(let r of n.proxyOf.nodes)t(r)}class o extends s{append(...r){for(let f of r){let l=this.normalize(f,this.last);for(let g of l)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(r){if(super.cleanRaws(r),this.nodes)for(let f of this.nodes)f.cleanRaws(r)}each(r){if(!this.proxyOf.nodes)return;let f=this.getIterator(),l,g;for(;this.indexes[f]<this.proxyOf.nodes.length&&(l=this.indexes[f],g=r(this.proxyOf.nodes[l],l),g!==!1);)this.indexes[f]+=1;return delete this.indexes[f],g}every(r){return this.nodes.every(r)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let r=this.lastEach;return this.indexes[r]=0,r}getProxyProcessor(){return{get(r,f){return f==="proxyOf"?r:r[f]?f==="each"||typeof f=="string"&&f.startsWith("walk")?(...l)=>r[f](...l.map(g=>typeof g=="function"?(x,b)=>g(x.toProxy(),b):g)):f==="every"||f==="some"?l=>r[f]((g,...x)=>l(g.toProxy(),...x)):f==="root"?()=>r.root().toProxy():f==="nodes"?r.nodes.map(l=>l.toProxy()):f==="first"||f==="last"?r[f].toProxy():r[f]:r[f]},set(r,f,l){return r[f]===l||(r[f]=l,(f==="name"||f==="params"||f==="selector")&&r.markDirty()),!0}}}index(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))}insertAfter(r,f){let l=this.index(r),g=this.normalize(f,this.proxyOf.nodes[l]).reverse();l=this.index(r);for(let b of g)this.proxyOf.nodes.splice(l+1,0,b);let x;for(let b in this.indexes)x=this.indexes[b],l<x&&(this.indexes[b]=x+g.length);return this.markDirty(),this}insertBefore(r,f){let l=this.index(r),g=l===0?"prepend":!1,x=this.normalize(f,this.proxyOf.nodes[l],g).reverse();l=this.index(r);for(let v of x)this.proxyOf.nodes.splice(l,0,v);let b;for(let v in this.indexes)b=this.indexes[v],l<=b&&(this.indexes[v]=b+x.length);return this.markDirty(),this}normalize(r,f){if(typeof r=="string")r=h(c(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new u(r)]}else if(r.selector)r=[new p(r)];else if(r.name)r=[new m(r)];else if(r.text)r=[new d(r)];else throw new Error("Unknown node type in node creation");return r.map(g=>(g[i]||o.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&t(g),typeof g.raws.before=="undefined"&&f&&typeof f.raws.before!="undefined"&&(g.raws.before=f.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...r){r=r.reverse();for(let f of r){let l=this.normalize(f,this.first,"prepend").reverse();for(let g of l)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+l.length}return this.markDirty(),this}push(r){return r.parent=this,this.proxyOf.nodes.push(r),this}removeAll(){for(let r of this.proxyOf.nodes)r.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);let f;for(let l in this.indexes)f=this.indexes[l],f>=r&&(this.indexes[l]=f-1);return this.markDirty(),this}replaceValues(r,f,l){return l||(l=f,f={}),this.walkDecls(g=>{f.props&&!f.props.includes(g.prop)||f.fast&&!g.value.includes(f.fast)||(g.value=g.value.replace(r,l))}),this.markDirty(),this}some(r){return this.nodes.some(r)}walk(r){return this.each((f,l)=>{let g;try{g=r(f,l)}catch(x){throw f.addToError(x)}return g!==!1&&f.walk&&(g=f.walk(r)),g})}walkAtRules(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="atrule"&&r.test(l.name))return f(l,g)}):this.walk((l,g)=>{if(l.type==="atrule"&&l.name===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="atrule")return f(l,g)}))}walkComments(r){return this.walk((f,l)=>{if(f.type==="comment")return r(f,l)})}walkDecls(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="decl"&&r.test(l.prop))return f(l,g)}):this.walk((l,g)=>{if(l.type==="decl"&&l.prop===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="decl")return f(l,g)}))}walkRules(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="rule"&&r.test(l.selector))return f(l,g)}):this.walk((l,g)=>{if(l.type==="rule"&&l.selector===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="rule")return f(l,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return o.registerParse=n=>{c=n},o.registerRule=n=>{p=n},o.registerAtRule=n=>{m=n},o.registerRoot=n=>{a=n},pt=o,o.default=o,o.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,m.prototype):n.type==="rule"?Object.setPrototypeOf(n,p.prototype):n.type==="decl"?Object.setPrototypeOf(n,u.prototype):n.type==="comment"?Object.setPrototypeOf(n,d.prototype):n.type==="root"&&Object.setPrototypeOf(n,a.prototype),n[i]=!0,n.nodes&&n.nodes.forEach(r=>{o.rebuild(r)})},pt}var dt,Yr;function mr(){if(Yr)return dt;Yr=1;let e=ce(),i,u;class d extends e{constructor(c){super(Q({type:"document"},c)),this.nodes||(this.nodes=[])}toResult(c={}){return new i(new u,this,c).stringify()}}return d.registerLazyResult=s=>{i=s},d.registerProcessor=s=>{u=s},dt=d,d.default=d,dt}var mt,Qr;function hi(){if(Qr)return mt;Qr=1;let e={};return mt=function(u){e[u]||(e[u]=!0,typeof console!="undefined"&&console.warn&&console.warn(u))},mt}var gt,Kr;function ci(){if(Kr)return gt;Kr=1;class e{constructor(u,d={}){if(this.type="warning",this.text=u,d.node&&d.node.source){let s=d.node.rangeBy(d);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in d)this[s]=d[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return gt=e,e.default=e,gt}var wt,Xr;function gr(){if(Xr)return wt;Xr=1;let e=ci();class i{constructor(d,s,c){this.processor=d,this.messages=[],this.root=s,this.opts=c,this.css=void 0,this.map=void 0}toString(){return this.css}warn(d,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let c=new e(d,s);return this.messages.push(c),c}warnings(){return this.messages.filter(d=>d.type==="warning")}get content(){return this.css}}return wt=i,i.default=i,wt}var yt,Zr;function sn(){if(Zr)return yt;Zr=1;const e=39,i=34,u=92,d=47,s=10,c=32,p=12,m=9,a=13,h=91,t=93,o=40,n=41,r=123,f=125,l=59,g=42,x=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,C=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return yt=function(P,A={}){let _=P.css.valueOf(),U=A.ignoreErrors,I,O,T,Y,q,$,k,j,D,M,K=_.length,R=0,E=[],F=[];function B(){return R}function N(Z){throw P.error("Unclosed "+Z,R)}function X(){return F.length===0&&R>=K}function Me(Z){if(F.length)return F.pop();if(R>=K)return;let ae=Z?Z.ignoreUnclosed:!1;switch(I=_.charCodeAt(R),I){case s:case c:case m:case a:case p:{O=R;do O+=1,I=_.charCodeAt(O);while(I===c||I===s||I===m||I===a||I===p);M=["space",_.slice(R,O)],R=O-1;break}case h:case t:case r:case f:case x:case l:case n:{let Ce=String.fromCharCode(I);M=[Ce,Ce,R];break}case o:{if(j=E.length?E.pop()[1]:"",D=_.charCodeAt(R+1),j==="url"&&D!==e&&D!==i&&D!==c&&D!==s&&D!==m&&D!==p&&D!==a){O=R;do{if($=!1,O=_.indexOf(")",O+1),O===-1)if(U||ae){O=R;break}else N("bracket");for(k=O;_.charCodeAt(k-1)===u;)k-=1,$=!$}while($);M=["brackets",_.slice(R,O+1),R,O],R=O}else O=_.indexOf(")",R+1),Y=_.slice(R,O+1),O===-1||y.test(Y)?M=["(","(",R]:(M=["brackets",Y,R,O],R=O);break}case e:case i:{T=I===e?"'":'"',O=R;do{if($=!1,O=_.indexOf(T,O+1),O===-1)if(U||ae){O=R+1;break}else N("string");for(k=O;_.charCodeAt(k-1)===u;)k-=1,$=!$}while($);M=["string",_.slice(R,O+1),R,O],R=O;break}case b:{v.lastIndex=R+1,v.test(_),v.lastIndex===0?O=_.length-1:O=v.lastIndex-2,M=["at-word",_.slice(R,O+1),R,O],R=O;break}case u:{for(O=R,q=!0;_.charCodeAt(O+1)===u;)O+=1,q=!q;if(I=_.charCodeAt(O+1),q&&I!==d&&I!==c&&I!==s&&I!==m&&I!==a&&I!==p&&(O+=1,w.test(_.charAt(O)))){for(;w.test(_.charAt(O+1));)O+=1;_.charCodeAt(O+1)===c&&(O+=1)}M=["word",_.slice(R,O+1),R,O],R=O;break}default:{I===d&&_.charCodeAt(R+1)===g?(O=_.indexOf("*/",R+2)+1,O===0&&(U||ae?O=_.length:N("comment")),M=["comment",_.slice(R,O+1),R,O],R=O):(C.lastIndex=R+1,C.test(_),C.lastIndex===0?O=_.length-1:O=C.lastIndex-2,M=["word",_.slice(R,O+1),R,O],E.push(M),R=O);break}}return R++,M}function Ne(Z){F.push(Z)}return{back:Ne,endOfFile:X,nextToken:Me,position:B}},yt}var bt,es;function wr(){if(es)return bt;es=1;let e=ce();class i extends e{constructor(d){super(d),this.type="atrule"}append(...d){return this.proxyOf.nodes||(this.nodes=[]),super.append(...d)}prepend(...d){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...d)}}return bt=i,i.default=i,e.registerAtRule(i),bt}var vt,ts;function Ae(){if(ts)return vt;ts=1;let e=ce(),i,u;class d extends e{constructor(c){super(c),this.type="root",this.nodes||(this.nodes=[])}normalize(c,p,m){let a=super.normalize(c);if(p){if(m==="prepend")this.nodes.length>1?p.raws.before=this.nodes[1].raws.before:delete p.raws.before;else if(this.first!==p)for(let h of a)h.raws.before=p.raws.before}return a}removeChild(c,p){let m=this.index(c);return!p&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(c)}toResult(c={}){return new i(new u,this,c).stringify()}}return d.registerLazyResult=s=>{i=s},d.registerProcessor=s=>{u=s},vt=d,d.default=d,e.registerRoot(d),vt}var St,rs;function pi(){if(rs)return St;rs=1;let e={comma(i){return e.split(i,[","],!0)},space(i){let u=[" ",`
37
- `," "];return e.split(i,u)},split(i,u,d){let s=[],c="",p=!1,m=0,a=!1,h="",t=!1;for(let o of i)t?t=!1:o==="\\"?t=!0:a?o===h&&(a=!1):o==='"'||o==="'"?(a=!0,h=o):o==="("?m+=1:o===")"?m>0&&(m-=1):m===0&&u.includes(o)&&(p=!0),p?(c!==""&&s.push(c.trim()),c="",p=!1):c+=o;return(d||c!=="")&&s.push(c.trim()),s}};return St=e,e.default=e,St}var xt,ss;function yr(){if(ss)return xt;ss=1;let e=ce(),i=pi();class u extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(s){let c=this.selector?this.selector.match(/,\s*/):null,p=c?c[0]:","+this.raw("between","beforeOpen");this.selector=s.join(p)}}return xt=u,u.default=u,e.registerRule(u),xt}var Ct,is;function nn(){if(is)return Ct;is=1;let e=Ve(),i=sn(),u=Je(),d=wr(),s=Ae(),c=yr();const p={empty:!0,space:!0};function m(h){for(let t=h.length-1;t>=0;t--){let o=h[t],n=o[3]||o[2];if(n)return n}}class a{constructor(t){this.input=t,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let o=new d;o.name=t[1].slice(1),o.name===""&&this.unnamedAtrule(o,t),this.init(o,t[2]);let n,r,f,l=!1,g=!1,x=[],b=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),n=t[0],n==="("||n==="["?b.push(n==="("?")":"]"):n==="{"&&b.length>0?b.push("}"):n===b[b.length-1]&&b.pop(),b.length===0)if(n===";"){o.source.end=this.getPosition(t[2]),o.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){g=!0;break}else if(n==="}"){if(x.length>0){for(f=x.length-1,r=x[f];r&&r[0]==="space";)r=x[--f];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(t);break}else x.push(t);else x.push(t);if(this.tokenizer.endOfFile()){l=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(o.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(o,"params",x),l&&(t=x[x.length-1],o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),g&&(o.nodes=[],this.current=o)}checkMissedSemicolon(t){let o=this.colon(t);if(o===!1)return;let n=0,r;for(let f=o-1;f>=0&&(r=t[f],!(r[0]!=="space"&&(n+=1,n===2)));f--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(t){let o=0,n,r,f;for(let[l,g]of t.entries()){if(n=g,r=n[0],r==="("&&(o+=1),r===")"&&(o-=1),o===0&&r===":")if(!f)this.doubleColon(n);else{if(f[0]==="word"&&f[1]==="progid")continue;return l}f=n}return!1}comment(t){let o=new u;this.init(o,t[2]),o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++;let n=t[1].slice(2,-2);if(/^\s*$/.test(n))o.text="",o.raws.left=n,o.raws.right="";else{let r=n.match(/^(\s*)([^]*\S)(\s*)$/);o.text=r[2],o.raws.left=r[1],o.raws.right=r[3]}}createTokenizer(){this.tokenizer=i(this.input)}decl(t,o){let n=new e;this.init(n,t[0][2]);let r=t[t.length-1];for(r[0]===";"&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(r[3]||r[2]||m(t)),n.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),n.raws.before+=t.shift()[1];for(n.source.start=this.getPosition(t[0][2]),n.prop="";t.length;){let b=t[0][0];if(b===":"||b==="space"||b==="comment")break;n.prop+=t.shift()[1]}n.raws.between="";let f;for(;t.length;)if(f=t.shift(),f[0]===":"){n.raws.between+=f[1];break}else f[0]==="word"&&/\w/.test(f[1])&&this.unknownWord([f]),n.raws.between+=f[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let l=[],g;for(;t.length&&(g=t[0][0],!(g!=="space"&&g!=="comment"));)l.push(t.shift());this.precheckMissedSemicolon(t);for(let b=t.length-1;b>=0;b--){if(f=t[b],f[1].toLowerCase()==="!important"){n.important=!0;let v=this.stringFrom(t,b);v=this.spacesFromEnd(t)+v,v!==" !important"&&(n.raws.important=v);break}else if(f[1].toLowerCase()==="important"){let v=t.slice(0),C="";for(let y=b;y>0;y--){let w=v[y][0];if(C.trim().indexOf("!")===0&&w!=="space")break;C=v.pop()[1]+C}C.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=C,t=v)}if(f[0]!=="space"&&f[0]!=="comment")break}t.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(n.raws.between+=l.map(b=>b[1]).join(""),l=[]),this.raw(n,"value",l.concat(t),o),n.value.includes(":")&&!o&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let o=new c;this.init(o,t[2]),o.selector="",o.raws.between="",this.current=o}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let o=this.current.nodes[this.current.nodes.length-1];o&&o.type==="rule"&&!o.raws.ownSemicolon&&(o.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let o=this.input.fromOffset(t);return{column:o.col,line:o.line,offset:t}}init(t,o){this.current.push(t),t.source={input:this.input,start:this.getPosition(o)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let o=!1,n=null,r=!1,f=null,l=[],g=t[1].startsWith("--"),x=[],b=t;for(;b;){if(n=b[0],x.push(b),n==="("||n==="[")f||(f=b),l.push(n==="("?")":"]");else if(g&&r&&n==="{")f||(f=b),l.push("}");else if(l.length===0)if(n===";")if(r){this.decl(x,g);return}else break;else if(n==="{"){this.rule(x);return}else if(n==="}"){this.tokenizer.back(x.pop()),o=!0;break}else n===":"&&(r=!0);else n===l[l.length-1]&&(l.pop(),l.length===0&&(f=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(o=!0),l.length>0&&this.unclosedBracket(f),o&&r){if(!g)for(;x.length&&(b=x[x.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,g)}else this.unknownWord(x)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,o,n,r){let f,l,g=n.length,x="",b=!0,v,C;for(let y=0;y<g;y+=1)f=n[y],l=f[0],l==="space"&&y===g-1&&!r?b=!1:l==="comment"?(C=n[y-1]?n[y-1][0]:"empty",v=n[y+1]?n[y+1][0]:"empty",!p[C]&&!p[v]?x.slice(-1)===","?b=!1:x+=f[1]:b=!1):x+=f[1];if(!b){let y=n.reduce((w,S)=>w+S[1],"");t.raws[o]={raw:y,value:x}}t[o]=x}rule(t){t.pop();let o=new c;this.init(o,t[0][2]),o.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(o,"selector",t),this.current=o}spacesAndCommentsFromEnd(t){let o,n="";for(;t.length&&(o=t[t.length-1][0],!(o!=="space"&&o!=="comment"));)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let o,n="";for(;t.length&&(o=t[0][0],!(o!=="space"&&o!=="comment"));)n+=t.shift()[1];return n}spacesFromEnd(t){let o,n="";for(;t.length&&(o=t[t.length-1][0],o==="space");)n=t.pop()[1]+n;return n}stringFrom(t,o){let n="";for(let r=o;r<t.length;r++)n+=t[r][1];return t.splice(o,t.length-o),n}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,o){throw this.input.error("At-rule without name",{offset:o[2]},{offset:o[2]+o[1].length})}}return Ct=a,Ct}var Rt,ns;function br(){if(ns)return Rt;ns=1;let e=ce(),i=nn(),u=Ge();function d(s,c){let p=new u(s,c),m=new i(p);try{m.parse()}catch(a){throw a}return m.root}return Rt=d,d.default=d,e.registerParse(d),Rt}var Ot,os;function di(){if(os)return Ot;os=1;let{isClean:e,my:i}=dr(),u=fi(),d=We(),s=ce(),c=mr(),p=hi(),m=gr(),a=br(),h=Ae();const t={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},o={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},n={Once:!0,postcssPlugin:!0,prepare:!0},r=0;function f(C){return typeof C=="object"&&typeof C.then=="function"}function l(C){let y=!1,w=t[C.type];return C.type==="decl"?y=C.prop.toLowerCase():C.type==="atrule"&&(y=C.name.toLowerCase()),y&&C.append?[w,w+"-"+y,r,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:C.append?[w,r,w+"Exit"]:[w,w+"Exit"]}function g(C){let y;return C.type==="document"?y=["Document",r,"DocumentExit"]:C.type==="root"?y=["Root",r,"RootExit"]:y=l(C),{eventIndex:0,events:y,iterator:0,node:C,visitorIndex:0,visitors:[]}}function x(C){return C[e]=!1,C.nodes&&C.nodes.forEach(y=>x(y)),C}let b={};class v{constructor(y,w,S){this.stringified=!1,this.processed=!1;let P;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))P=x(w);else if(w instanceof v||w instanceof m)P=x(w.root),w.map&&(typeof S.map=="undefined"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=w.map);else{let A=a;S.syntax&&(A=S.syntax.parse),S.parser&&(A=S.parser),A.parse&&(A=A.parse);try{P=A(w,S)}catch(_){this.processed=!0,this.error=_}P&&!P[i]&&s.rebuild(P)}this.result=new m(y,P,S),this.helpers=ie(Q({},b),{postcss:b,result:this.result}),this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?Q(Q({},A),A.prepare(this.result)):A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let S=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=S.postcssPlugin,y.setMessage()):S.postcssVersion}catch(P){console&&console.error&&console.error(P)}return y}prepareVisitors(){this.listeners={};let y=(w,S,P)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([w,P])};for(let w of this.plugins)if(typeof w=="object")for(let S in w){if(!o[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!n[S])if(typeof w[S]=="object")for(let P in w[S])P==="*"?y(w,S,w[S][P]):y(w,S+"-"+P.toLowerCase(),w[S][P]);else typeof w[S]=="function"&&y(w,S,w[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],S=this.runOnRoot(w);if(f(S))try{await S}catch(P){throw this.handleError(P)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];){y[e]=!0;let w=[g(y)];for(;w.length>0;){let S=this.visitTick(w);if(f(S))try{await S}catch(P){let A=w[w.length-1].node;throw this.handleError(P,A)}}}if(this.listeners.OnceExit)for(let[w,S]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let P=y.nodes.map(A=>S(A,this.helpers));await Promise.all(P)}else await S(y,this.helpers)}catch(P){throw this.handleError(P)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(S=>y.Once(S,this.helpers));return f(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,w=d;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let P=new u(w,this.result.root,this.result.opts).generate();return this.result.css=P[0],this.result.map=P[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let w=this.runOnRoot(y);if(f(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];)y[e]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[S,P]of y){this.result.lastPlugin=S;let A;try{A=P(w,this.helpers)}catch(_){throw this.handleError(_,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(f(A))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:S,visitors:P}=w;if(S.type!=="root"&&S.type!=="document"&&!S.parent){y.pop();return}if(P.length>0&&w.visitorIndex<P.length){let[_,U]=P[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===P.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=_;try{return U(S.toProxy(),this.helpers)}catch(I){throw this.handleError(I,S)}}if(w.iterator!==0){let _=w.iterator,U;for(;U=S.nodes[S.indexes[_]];)if(S.indexes[_]+=1,!U[e]){U[e]=!0,y.push(g(U));return}w.iterator=0,delete S.indexes[_]}let A=w.events;for(;w.eventIndex<A.length;){let _=A[w.eventIndex];if(w.eventIndex+=1,_===r){S.nodes&&S.nodes.length&&(S[e]=!0,w.iterator=S.getIterator());return}else if(this.listeners[_]){w.visitors=this.listeners[_];return}}y.pop()}walkSync(y){y[e]=!0;let w=l(y);for(let S of w)if(S===r)y.nodes&&y.each(P=>{P[e]||this.walkSync(P)});else{let P=this.listeners[S];if(P&&this.visitSync(P,y.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=C=>{b=C},Ot=v,v.default=v,h.registerLazyResult(v),c.registerLazyResult(v),Ot}var Pt,ls;function on(){if(ls)return Pt;ls=1;let e=fi(),i=We(),u=hi(),d=br();const s=gr();class c{constructor(m,a,h){a=a.toString(),this.stringified=!1,this._processor=m,this._css=a,this._opts=h,this._map=void 0;let t,o=i;this.result=new s(this._processor,t,this._opts),this.result.css=a;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let r=new e(o,t,this._opts,a);if(r.isMap()){let[f,l]=r.generate();f&&(this.result.css=f),l&&(this.result.map=l)}else r.clearAnnotation(),this.result.css=r.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(m){return this.async().catch(m)}finally(m){return this.async().then(m,m)}sync(){if(this.error)throw this.error;return this.result}then(m,a){return this.async().then(m,a)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let m,a=d;try{m=a(this._css,this._opts)}catch(h){this.error=h}if(this.error)throw this.error;return this._root=m,m}get[Symbol.toStringTag](){return"NoWorkResult"}}return Pt=c,c.default=c,Pt}var _t,as;function ln(){if(as)return _t;as=1;let e=on(),i=di(),u=mr(),d=Ae();class s{constructor(p=[]){this.version="8.4.38",this.plugins=this.normalize(p)}normalize(p){let m=[];for(let a of p)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))m=m.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)m.push(a);else if(typeof a=="function")m.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return m}process(p,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new e(this,p,m):new i(this,p,m)}use(p){return this.plugins=this.plugins.concat(this.normalize([p])),this}}return _t=s,s.default=s,d.registerProcessor(s),u.registerProcessor(s),_t}var Et,us;function an(){if(us)return Et;us=1;let e=Ve(),i=ui(),u=Je(),d=wr(),s=Ge(),c=Ae(),p=yr();function m(a,h){if(Array.isArray(a))return a.map(f=>m(f));let n=a,{inputs:t}=n,o=Re(n,["inputs"]);if(t){h=[];for(let f of t){let l=ie(Q({},f),{__proto__:s.prototype});l.map&&(l.map=ie(Q({},l.map),{__proto__:i.prototype})),h.push(l)}}if(o.nodes&&(o.nodes=a.nodes.map(f=>m(f,h))),o.source){let r=o.source,{inputId:f}=r,l=Re(r,["inputId"]);o.source=l,f!=null&&(o.source.input=h[f])}if(o.type==="root")return new c(o);if(o.type==="decl")return new e(o);if(o.type==="rule")return new p(o);if(o.type==="comment")return new u(o);if(o.type==="atrule")return new d(o);throw new Error("Unknown node type: "+a.type)}return Et=m,m.default=m,Et}var At,fs;function un(){if(fs)return At;fs=1;let e=pr(),i=Ve(),u=di(),d=ce(),s=ln(),c=We(),p=an(),m=mr(),a=ci(),h=Je(),t=wr(),o=gr(),n=Ge(),r=br(),f=pi(),l=yr(),g=Ae(),x=$e();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new s(v)}return b.plugin=function(C,y){let w=!1;function S(...A){console&&console.warn&&!w&&(w=!0,console.warn(C+`: postcss.plugin was deprecated. Migration guide:
38
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(C+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
39
- https://www.w3ctech.com/topic/2226`));let _=y(...A);return _.postcssPlugin=C,_.postcssVersion=new s().version,_}let P;return Object.defineProperty(S,"postcss",{get(){return P||(P=S()),P}}),S.process=function(A,_,U){return b([S(U)]).process(A,_)},S},b.stringify=c,b.parse=r,b.fromJSON=p,b.list=f,b.comment=v=>new h(v),b.atRule=v=>new t(v),b.decl=v=>new i(v),b.rule=v=>new l(v),b.root=v=>new g(v),b.document=v=>new m(v),b.CssSyntaxError=e,b.Declaration=i,b.Container=d,b.Processor=s,b.Document=m,b.Comment=h,b.Warning=a,b.AtRule=t,b.Result=o,b.Input=n,b.Rule=l,b.Root=g,b.Node=x,u.registerPostcss(b),At=b,b.default=b,At}var fn=un();const V=Ki(fn);V.stringify;V.fromJSON;V.plugin;V.parse;V.list;V.document;V.comment;V.atRule;V.rule;V.decl;V.root;V.CssSyntaxError;V.Declaration;V.Container;V.Processor;V.Document;V.Comment;V.Warning;V.AtRule;V.Result;V.Input;V.Rule;V.Root;V.Node;function hn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cn(e){if(e.__esModule)return e;var i=e.default;if(typeof i=="function"){var u=function d(){return this instanceof d?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};u.prototype=i.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(e).forEach(function(d){var s=Object.getOwnPropertyDescriptor(e,d);Object.defineProperty(u,d,s.get?s:{enumerable:!0,get:function(){return e[d]}})}),u}var De={exports:{}},hs;function pn(){if(hs)return De.exports;hs=1;var e=String,i=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return De.exports=i(),De.exports.createColors=i,De.exports}const dn={},mn=Object.freeze(Object.defineProperty({__proto__:null,default:dn},Symbol.toStringTag,{value:"Module"})),re=cn(mn);var kt,cs;function vr(){if(cs)return kt;cs=1;let e=pn(),i=re;class u extends Error{constructor(s,c,p,m,a,h){super(s),this.name="CssSyntaxError",this.reason=s,a&&(this.file=a),m&&(this.source=m),h&&(this.plugin=h),typeof c!="undefined"&&typeof p!="undefined"&&(typeof c=="number"?(this.line=c,this.column=p):(this.line=c.line,this.column=c.column,this.endLine=p.line,this.endColumn=p.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,u)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let c=this.source;s==null&&(s=e.isColorSupported),i&&s&&(c=i(c));let p=c.split(/\r?\n/),m=Math.max(this.line-3,0),a=Math.min(this.line+2,p.length),h=String(a).length,t,o;if(s){let{bold:n,gray:r,red:f}=e.createColors(!0);t=l=>n(f(l)),o=l=>r(l)}else t=o=n=>n;return p.slice(m,a).map((n,r)=>{let f=m+1+r,l=" "+(" "+f).slice(-h)+" | ";if(f===this.line){let g=o(l.replace(/\d/g," "))+n.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+o(l)+n+`
40
- `+g+t("^")}return" "+o(l)+n}).join(`
37
+ `)&&(h=`\r
38
+ `),this.css+=h+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let h=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,h,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let h=this.root.nodes.length-1;h>=0;h--)f=this.root.nodes[h],f.type==="comment"&&f.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(h)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&l&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,h=>{f+=h}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=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,h=1,m="<no source>",p={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,y;this.stringify(this.root,(b,_,S)=>{if(this.css+=b,_&&S!=="end"&&(p.generated.line=f,p.generated.column=h-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=b.match(/\n/g),g?(f+=g.length,y=b.lastIndexOf(`
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(S+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
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+a("^")}return" "+d(p)+f}).join(`
41
44
  `)}toString(){let s=this.showSourceCode();return s&&(s=`
42
45
 
43
46
  `+s+`
44
- `),this.name+": "+this.message+s}}return kt=u,u.default=u,kt}var Fe={},ps;function Sr(){return ps||(ps=1,Fe.isClean=Symbol("isClean"),Fe.my=Symbol("my")),Fe}var Mt,ds;function mi(){if(ds)return Mt;ds=1;const e={after:`
47
+ `),this.name+": "+this.message+s}}return qs=r,r.default=r,qs}var gi={},Pa;function yo(){return Pa||(Pa=1,gi.isClean=Symbol("isClean"),gi.my=Symbol("my")),gi}var zs,ka;function Uu(){if(ka)return zs;ka=1;const e={after:`
45
48
  `,beforeClose:`
46
49
  `,beforeComment:`
47
50
  `,beforeDecl:`
48
51
  `,beforeOpen:" ",beforeRule:`
49
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function i(d){return d[0].toUpperCase()+d.slice(1)}class u{constructor(s){this.builder=s}atrule(s,c){let p="@"+s.name,m=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName!="undefined"?p+=s.raws.afterName:m&&(p+=" "),s.nodes)this.block(s,p+m);else{let a=(s.raws.between||"")+(c?";":"");this.builder(p+m+a,s)}}beforeAfter(s,c){let p;s.type==="decl"?p=this.raw(s,null,"beforeDecl"):s.type==="comment"?p=this.raw(s,null,"beforeComment"):c==="before"?p=this.raw(s,null,"beforeRule"):p=this.raw(s,null,"beforeClose");let m=s.parent,a=0;for(;m&&m.type!=="root";)a+=1,m=m.parent;if(p.includes(`
50
- `)){let h=this.raw(s,null,"indent");if(h.length)for(let t=0;t<a;t++)p+=h}return p}block(s,c){let p=this.raw(s,"between","beforeOpen");this.builder(c+p+"{",s,"start");let m;s.nodes&&s.nodes.length?(this.body(s),m=this.raw(s,"after")):m=this.raw(s,"after","emptyBody"),m&&this.builder(m),this.builder("}",s,"end")}body(s){let c=s.nodes.length-1;for(;c>0&&s.nodes[c].type==="comment";)c-=1;let p=this.raw(s,"semicolon");for(let m=0;m<s.nodes.length;m++){let a=s.nodes[m],h=this.raw(a,"before");h&&this.builder(h),this.stringify(a,c!==m||p)}}comment(s){let c=this.raw(s,"left","commentLeft"),p=this.raw(s,"right","commentRight");this.builder("/*"+c+s.text+p+"*/",s)}decl(s,c){let p=this.raw(s,"between","colon"),m=s.prop+p+this.rawValue(s,"value");s.important&&(m+=s.raws.important||" !important"),c&&(m+=";"),this.builder(m,s)}document(s){this.body(s)}raw(s,c,p){let m;if(p||(p=c),c&&(m=s.raws[c],typeof m!="undefined"))return m;let a=s.parent;if(p==="before"&&(!a||a.type==="root"&&a.first===s||a&&a.type==="document"))return"";if(!a)return e[p];let h=s.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[p]!="undefined")return h.rawCache[p];if(p==="before"||p==="after")return this.beforeAfter(s,p);{let t="raw"+i(p);this[t]?m=this[t](h,s):h.walk(o=>{if(m=o.raws[c],typeof m!="undefined")return!1})}return typeof m=="undefined"&&(m=e[p]),h.rawCache[p]=m,m}rawBeforeClose(s){let c;return s.walk(p=>{if(p.nodes&&p.nodes.length>0&&typeof p.raws.after!="undefined")return c=p.raws.after,c.includes(`
51
- `)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawBeforeComment(s,c){let p;return s.walkComments(m=>{if(typeof m.raws.before!="undefined")return p=m.raws.before,p.includes(`
52
- `)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p=="undefined"?p=this.raw(c,null,"beforeDecl"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeDecl(s,c){let p;return s.walkDecls(m=>{if(typeof m.raws.before!="undefined")return p=m.raws.before,p.includes(`
53
- `)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p=="undefined"?p=this.raw(c,null,"beforeRule"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeOpen(s){let c;return s.walk(p=>{if(p.type!=="decl"&&(c=p.raws.between,typeof c!="undefined"))return!1}),c}rawBeforeRule(s){let c;return s.walk(p=>{if(p.nodes&&(p.parent!==s||s.first!==p)&&typeof p.raws.before!="undefined")return c=p.raws.before,c.includes(`
54
- `)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawColon(s){let c;return s.walkDecls(p=>{if(typeof p.raws.between!="undefined")return c=p.raws.between.replace(/[^\s:]/g,""),!1}),c}rawEmptyBody(s){let c;return s.walk(p=>{if(p.nodes&&p.nodes.length===0&&(c=p.raws.after,typeof c!="undefined"))return!1}),c}rawIndent(s){if(s.raws.indent)return s.raws.indent;let c;return s.walk(p=>{let m=p.parent;if(m&&m!==s&&m.parent&&m.parent===s&&typeof p.raws.before!="undefined"){let a=p.raws.before.split(`
55
- `);return c=a[a.length-1],c=c.replace(/\S/g,""),!1}}),c}rawSemicolon(s){let c;return s.walk(p=>{if(p.nodes&&p.nodes.length&&p.last.type==="decl"&&(c=p.raws.semicolon,typeof c!="undefined"))return!1}),c}rawValue(s,c){let p=s[c],m=s.raws[c];return m&&m.value===p?m.raw:p}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,c){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,c)}}return Mt=u,u.default=u,Mt}var Nt,ms;function He(){if(ms)return Nt;ms=1;let e=mi();function i(u,d){new e(d).stringify(u)}return Nt=i,i.default=i,Nt}var It,gs;function Ye(){if(gs)return It;gs=1;let{isClean:e,my:i}=Sr(),u=vr(),d=mi(),s=He();function c(m,a){let h=new m.constructor;for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t)||t==="proxyCache")continue;let o=m[t],n=typeof o;t==="parent"&&n==="object"?a&&(h[t]=a):t==="source"?h[t]=o:Array.isArray(o)?h[t]=o.map(r=>c(r,h)):(n==="object"&&o!==null&&(o=c(o)),h[t]=o)}return h}class p{constructor(a={}){this.raws={},this[e]=!1,this[i]=!0;for(let h in a)if(h==="nodes"){this.nodes=[];for(let t of a[h])typeof t.clone=="function"?this.append(t.clone()):this.append(t)}else this[h]=a[h]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let h=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${h.input.from}:${h.start.line}:${h.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let h in a)this[h]=a[h];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let h=c(this);for(let t in a)h[t]=a[t];return h}cloneAfter(a={}){let h=this.clone(a);return this.parent.insertAfter(this,h),h}cloneBefore(a={}){let h=this.clone(a);return this.parent.insertBefore(this,h),h}error(a,h={}){if(this.source){let{end:t,start:o}=this.rangeBy(h);return this.source.input.error(a,{column:o.column,line:o.line},{column:t.column,line:t.line},h)}return new u(a)}getProxyProcessor(){return{get(a,h){return h==="proxyOf"?a:h==="root"?()=>a.root().toProxy():a[h]},set(a,h,t){return a[h]===t||(a[h]=t,(h==="prop"||h==="value"||h==="name"||h==="params"||h==="important"||h==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,h){let t=this.source.start;if(a.index)t=this.positionInside(a.index,h);else if(a.word){h=this.toString();let o=h.indexOf(a.word);o!==-1&&(t=this.positionInside(o,h))}return t}positionInside(a,h){let t=h||this.toString(),o=this.source.start.column,n=this.source.start.line;for(let r=0;r<a;r++)t[r]===`
56
- `?(o=1,n+=1):o+=1;return{column:o,line:n}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let h={column:this.source.start.column,line:this.source.start.line},t=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:h.column+1,line:h.line};if(a.word){let o=this.toString(),n=o.indexOf(a.word);n!==-1&&(h=this.positionInside(n,o),t=this.positionInside(n+a.word.length,o))}else a.start?h={column:a.start.column,line:a.start.line}:a.index&&(h=this.positionInside(a.index)),a.end?t={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?t=this.positionInside(a.endIndex):a.index&&(t=this.positionInside(a.index+1));return(t.line<h.line||t.line===h.line&&t.column<=h.column)&&(t={column:h.column+1,line:h.line}),{end:t,start:h}}raw(a,h){return new d().raw(this,a,h)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let h=this,t=!1;for(let o of a)o===this?t=!0:t?(this.parent.insertAfter(h,o),h=o):this.parent.insertBefore(h,o);t||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,h){let t={},o=h==null;h=h||new Map;let n=0;for(let r in this){if(!Object.prototype.hasOwnProperty.call(this,r)||r==="parent"||r==="proxyCache")continue;let f=this[r];if(Array.isArray(f))t[r]=f.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,h):l);else if(typeof f=="object"&&f.toJSON)t[r]=f.toJSON(null,h);else if(r==="source"){let l=h.get(f.input);l==null&&(l=n,h.set(f.input,n),n++),t[r]={end:f.end,inputId:l,start:f.start}}else t[r]=f}return o&&(t.inputs=[...h.keys()].map(r=>r.toJSON())),t}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=s){a.stringify&&(a=a.stringify);let h="";return a(this,t=>{h+=t}),h}warn(a,h,t){let o={node:this};for(let n in t)o[n]=t[n];return a.warn(h,o)}get proxyOf(){return this}}return It=p,p.default=p,It}var Lt,ws;function Qe(){if(ws)return Lt;ws=1;let e=Ye();class i extends e{constructor(d){d&&typeof d.value!="undefined"&&typeof d.value!="string"&&(d=ie(Q({},d),{value:String(d.value)})),super(d),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Lt=i,i.default=i,Lt}var Ut,ys;function gn(){if(ys)return Ut;ys=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Ut={nanoid:(d=21)=>{let s="",c=d;for(;c--;)s+=e[Math.random()*64|0];return s},customAlphabet:(d,s=21)=>(c=s)=>{let p="",m=c;for(;m--;)p+=d[Math.random()*d.length|0];return p}},Ut}var Dt,bs;function gi(){if(bs)return Dt;bs=1;let{SourceMapConsumer:e,SourceMapGenerator:i}=re,{existsSync:u,readFileSync:d}=re,{dirname:s,join:c}=re;function p(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class m{constructor(h,t){if(t.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let o=t.map?t.map.prev:void 0,n=this.loadMap(t.from,o);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=s(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(h){let t=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,r=/^data:application\/json,/;if(n.test(h)||r.test(h))return decodeURIComponent(h.substr(RegExp.lastMatch.length));if(t.test(h)||o.test(h))return p(h.substr(RegExp.lastMatch.length));let f=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+f)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let t=h.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let o=h.lastIndexOf(t.pop()),n=h.indexOf("*/",o);o>-1&&n>-1&&(this.annotation=this.getAnnotationURL(h.substring(o,n)))}loadFile(h){if(this.root=s(h),u(h))return this.mapFile=h,d(h,"utf-8").toString().trim()}loadMap(h,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let o=t(h);if(o){let n=this.loadFile(o);if(!n)throw new Error("Unable to load previous source map: "+o.toString());return n}}else{if(t instanceof e)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let o=this.annotation;return h&&(o=c(s(h),o)),this.loadFile(o)}}}startWith(h,t){return h?h.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Dt=m,m.default=m,Dt}var Ft,vs;function Ke(){if(vs)return Ft;vs=1;let{SourceMapConsumer:e,SourceMapGenerator:i}=re,{fileURLToPath:u,pathToFileURL:d}=re,{isAbsolute:s,resolve:c}=re,{nanoid:p}=gn(),m=re,a=vr(),h=gi(),t=Symbol("fromOffsetCache"),o=!!(e&&i),n=!!(c&&s);class r{constructor(l,g={}){if(l===null||typeof l=="undefined"||typeof l=="object"&&!l.toString)throw new Error(`PostCSS received ${l} instead of CSS string`);if(this.css=l.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!n||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=c(g.from)),n&&o){let x=new h(this.css,g);if(x.text){this.map=x;let b=x.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+p(6)+">"),this.map&&(this.map.file=this.from)}error(l,g,x,b={}){let v,C,y;if(g&&typeof g=="object"){let S=g,P=x;if(typeof S.offset=="number"){let A=this.fromOffset(S.offset);g=A.line,x=A.col}else g=S.line,x=S.column;if(typeof P.offset=="number"){let A=this.fromOffset(P.offset);C=A.line,y=A.col}else C=P.line,y=P.column}else if(!x){let S=this.fromOffset(g);g=S.line,x=S.col}let w=this.origin(g,x,C,y);return w?v=new a(l,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,b.plugin):v=new a(l,C===void 0?g:{column:x,line:g},C===void 0?x:{column:y,line:C},this.css,this.file,b.plugin),v.input={column:x,endColumn:y,endLine:C,line:g,source:this.css},this.file&&(d&&(v.input.url=d(this.file).toString()),v.input.file=this.file),v}fromOffset(l){let g,x;if(this[t])x=this[t];else{let v=this.css.split(`
57
- `);x=new Array(v.length);let C=0;for(let y=0,w=v.length;y<w;y++)x[y]=C,C+=v[y].length+1;this[t]=x}g=x[x.length-1];let b=0;if(l>=g)b=x.length-1;else{let v=x.length-2,C;for(;b<v;)if(C=b+(v-b>>1),l<x[C])v=C-1;else if(l>=x[C+1])b=C+1;else{b=C;break}}return{col:l-x[b]+1,line:b+1}}mapResolve(l){return/^\w+:\/\//.test(l)?l:c(this.map.consumer().sourceRoot||this.map.root||".",l)}origin(l,g,x,b){if(!this.map)return!1;let v=this.map.consumer(),C=v.originalPositionFor({column:g,line:l});if(!C.source)return!1;let y;typeof x=="number"&&(y=v.originalPositionFor({column:b,line:x}));let w;s(C.source)?w=d(C.source):w=new URL(C.source,this.map.consumer().sourceRoot||d(this.map.mapFile));let S={column:C.column,endColumn:y&&y.column,endLine:y&&y.line,line:C.line,url:w.toString()};if(w.protocol==="file:")if(u)S.file=u(w);else throw new Error("file: protocol is not available in this PostCSS build");let P=v.sourceContentFor(C.source);return P&&(S.source=P),S}toJSON(){let l={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(l[g]=this[g]);return this.map&&(l.map=Q({},this.map),l.map.consumerCache&&(l.map.consumerCache=void 0)),l}get from(){return this.file||this.id}}return Ft=r,r.default=r,m&&m.registerInput&&m.registerInput(r),Ft}var zt,Ss;function wi(){if(Ss)return zt;Ss=1;let{SourceMapConsumer:e,SourceMapGenerator:i}=re,{dirname:u,relative:d,resolve:s,sep:c}=re,{pathToFileURL:p}=re,m=Ke(),a=!!(e&&i),h=!!(u&&s&&d&&c);class t{constructor(n,r,f,l){this.stringify=n,this.mapOpts=f.map||{},this.root=r,this.opts=f,this.css=l,this.originalCSS=l,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let n;this.isInline()?n="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?n=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?n=this.mapOpts.annotation(this.opts.to,this.root):n=this.outputFile()+".map";let r=`
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 l=(s.raws.between||"")+(n?";":"");this.builder(o+u+l,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,l=0;for(;u&&u.type!=="root";)l+=1,u=u.parent;if(o.includes(`
53
+ `)){let c=this.raw(s,null,"indent");if(c.length)for(let a=0;a<l;a++)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 l=s.nodes[u],c=this.raw(l,"before");c&&this.builder(c),this.stringify(l,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 l=s.parent;if(o==="before"&&(!l||l.type==="root"&&l.first===s||l&&l.type==="document"))return"";if(!l)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 a="raw"+t(o);this[a]?u=this[a](c,s):c.walk(d=>{if(u=d.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
+ `)&&(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
+ `)&&(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
+ `)&&(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 l=o.raws.before.split(`
58
+ `);return n=l[l.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 zs=r,r.default=r,zs}var $s,Ia;function is(){if(Ia)return $s;Ia=1;let e=Uu();function t(r,i){new e(i).stringify(r)}return $s=t,t.default=t,$s}var Vs,La;function ss(){if(La)return Vs;La=1;let{isClean:e,my:t}=yo(),r=vo(),i=Uu(),s=is();function n(u,l){let c=new u.constructor;for(let a in u){if(!Object.prototype.hasOwnProperty.call(u,a)||a==="proxyCache")continue;let d=u[a],f=typeof d;a==="parent"&&f==="object"?l&&(c[a]=l):a==="source"?c[a]=d:Array.isArray(d)?c[a]=d.map(h=>n(h,c)):(f==="object"&&d!==null&&(d=n(d)),c[a]=d)}return c}class o{constructor(l={}){this.raws={},this[e]=!1,this[t]=!0;for(let c in l)if(c==="nodes"){this.nodes=[];for(let a of l[c])typeof a.clone=="function"?this.append(a.clone()):this.append(a)}else this[c]=l[c]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let c=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${c.input.from}:${c.start.line}:${c.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let c in l)this[c]=l[c];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let c=n(this);for(let a in l)c[a]=l[a];return c}cloneAfter(l={}){let c=this.clone(l);return this.parent.insertAfter(this,c),c}cloneBefore(l={}){let c=this.clone(l);return this.parent.insertBefore(this,c),c}error(l,c={}){if(this.source){let{end:a,start:d}=this.rangeBy(c);return this.source.input.error(l,{column:d.column,line:d.line},{column:a.column,line:a.line},c)}return new r(l)}getProxyProcessor(){return{get(l,c){return c==="proxyOf"?l:c==="root"?()=>l.root().toProxy():l[c]},set(l,c,a){return l[c]===a||(l[c]=a,(c==="prop"||c==="value"||c==="name"||c==="params"||c==="important"||c==="text")&&l.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let l=this;for(;l=l.parent;)l[e]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l,c){let a=this.source.start;if(l.index)a=this.positionInside(l.index,c);else if(l.word){c=this.toString();let d=c.indexOf(l.word);d!==-1&&(a=this.positionInside(d,c))}return a}positionInside(l,c){let a=c||this.toString(),d=this.source.start.column,f=this.source.start.line;for(let h=0;h<l;h++)a[h]===`
59
+ `?(d=1,f+=1):d+=1;return{column:d,line:f}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let c={column:this.source.start.column,line:this.source.start.line},a=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:c.column+1,line:c.line};if(l.word){let d=this.toString(),f=d.indexOf(l.word);f!==-1&&(c=this.positionInside(f,d),a=this.positionInside(f+l.word.length,d))}else l.start?c={column:l.start.column,line:l.start.line}:l.index&&(c=this.positionInside(l.index)),l.end?a={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?a=this.positionInside(l.endIndex):l.index&&(a=this.positionInside(l.index+1));return(a.line<c.line||a.line===c.line&&a.column<=c.column)&&(a={column:c.column+1,line:c.line}),{end:a,start:c}}raw(l,c){return new i().raw(this,l,c)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let c=this,a=!1;for(let d of l)d===this?a=!0:a?(this.parent.insertAfter(c,d),c=d):this.parent.insertBefore(c,d);a||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,c){let a={},d=c==null;c=c||new Map;let f=0;for(let h in this){if(!Object.prototype.hasOwnProperty.call(this,h)||h==="parent"||h==="proxyCache")continue;let m=this[h];if(Array.isArray(m))a[h]=m.map(p=>typeof p=="object"&&p.toJSON?p.toJSON(null,c):p);else if(typeof m=="object"&&m.toJSON)a[h]=m.toJSON(null,c);else if(h==="source"){let p=c.get(m.input);p==null&&(p=f,c.set(m.input,f),f++),a[h]={end:m.end,inputId:p,start:m.start}}else a[h]=m}return d&&(a.inputs=[...c.keys()].map(h=>h.toJSON())),a}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=s){l.stringify&&(l=l.stringify);let c="";return l(this,a=>{c+=a}),c}warn(l,c,a){let d={node:this};for(let f in a)d[f]=a[f];return l.warn(c,d)}get proxyOf(){return this}}return Vs=o,o.default=o,Vs}var js,Fa;function ns(){if(Fa)return js;Fa=1;let e=ss();class t extends e{constructor(i){i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=ge(H({},i),{value:String(i.value)})),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return js=t,t.default=t,js}var Gs,Ua;function Jh(){if(Ua)return Gs;Ua=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Gs={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}},Gs}var Hs,Ba;function Bu(){if(Ba)return Hs;Ba=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=at,{existsSync:r,readFileSync:i}=at,{dirname:s,join:n}=at;function o(l){return Buffer?Buffer.from(l,"base64").toString():window.atob(l)}class u{constructor(c,a){if(a.map===!1)return;this.loadAnnotation(c),this.inline=this.startWith(this.annotation,"data:");let d=a.map?a.map.prev:void 0,f=this.loadMap(a.from,d);!this.mapFile&&a.from&&(this.mapFile=a.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 a=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/;if(f.test(c)||h.test(c))return decodeURIComponent(c.substr(RegExp.lastMatch.length));if(a.test(c)||d.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 a=c.match(/\/\*\s*# sourceMappingURL=/gm);if(!a)return;let d=c.lastIndexOf(a.pop()),f=c.indexOf("*/",d);d>-1&&f>-1&&(this.annotation=this.getAnnotationURL(c.substring(d,f)))}loadFile(c){if(this.root=s(c),r(c))return this.mapFile=c,i(c,"utf-8").toString().trim()}loadMap(c,a){if(a===!1)return!1;if(a){if(typeof a=="string")return a;if(typeof a=="function"){let d=a(c);if(d){let f=this.loadFile(d);if(!f)throw new Error("Unable to load previous source map: "+d.toString());return f}}else{if(a instanceof e)return t.fromSourceMap(a).toString();if(a instanceof t)return a.toString();if(this.isMap(a))return JSON.stringify(a);throw new Error("Unsupported previous source map format: "+a.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return c&&(d=n(s(c),d)),this.loadFile(d)}}}startWith(c,a){return c?c.substr(0,a.length)===a:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Hs=u,u.default=u,Hs}var Ys,Wa;function os(){if(Wa)return Ys;Wa=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=at,{fileURLToPath:r,pathToFileURL:i}=at,{isAbsolute:s,resolve:n}=at,{nanoid:o}=Jh(),u=at,l=vo(),c=Bu(),a=Symbol("fromOffsetCache"),d=!!(e&&t),f=!!(n&&s);class h{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&&d){let y=new c(this.css,g);if(y.text){this.map=y;let b=y.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(p,g,y,b={}){let _,S,v;if(g&&typeof g=="object"){let E=g,C=y;if(typeof E.offset=="number"){let A=this.fromOffset(E.offset);g=A.line,y=A.col}else g=E.line,y=E.column;if(typeof C.offset=="number"){let A=this.fromOffset(C.offset);S=A.line,v=A.col}else S=C.line,v=C.column}else if(!y){let E=this.fromOffset(g);g=E.line,y=E.col}let w=this.origin(g,y,S,v);return w?_=new l(p,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,b.plugin):_=new l(p,S===void 0?g:{column:y,line:g},S===void 0?y:{column:v,line:S},this.css,this.file,b.plugin),_.input={column:y,endColumn:v,endLine:S,line:g,source:this.css},this.file&&(i&&(_.input.url=i(this.file).toString()),_.input.file=this.file),_}fromOffset(p){let g,y;if(this[a])y=this[a];else{let _=this.css.split(`
60
+ `);y=new Array(_.length);let S=0;for(let v=0,w=_.length;v<w;v++)y[v]=S,S+=_[v].length+1;this[a]=y}g=y[y.length-1];let b=0;if(p>=g)b=y.length-1;else{let _=y.length-2,S;for(;b<_;)if(S=b+(_-b>>1),p<y[S])_=S-1;else if(p>=y[S+1])b=S+1;else{b=S;break}}return{col:p-y[b]+1,line:b+1}}mapResolve(p){return/^\w+:\/\//.test(p)?p:n(this.map.consumer().sourceRoot||this.map.root||".",p)}origin(p,g,y,b){if(!this.map)return!1;let _=this.map.consumer(),S=_.originalPositionFor({column:g,line:p});if(!S.source)return!1;let v;typeof y=="number"&&(v=_.originalPositionFor({column:b,line:y}));let w;s(S.source)?w=i(S.source):w=new URL(S.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let E={column:S.column,endColumn:v&&v.column,endLine:v&&v.line,line:S.line,url:w.toString()};if(w.protocol==="file:")if(r)E.file=r(w);else throw new Error("file: protocol is not available in this PostCSS build");let C=_.sourceContentFor(S.source);return C&&(E.source=C),E}toJSON(){let p={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(p[g]=this[g]);return this.map&&(p.map=H({},this.map),p.map.consumerCache&&(p.map.consumerCache=void 0)),p}get from(){return this.file||this.id}}return Ys=h,h.default=h,u&&u.registerInput&&u.registerInput(h),Ys}var Js,qa;function Wu(){if(qa)return Js;qa=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=at,{dirname:r,relative:i,resolve:s,sep:n}=at,{pathToFileURL:o}=at,u=os(),l=!!(e&&t),c=!!(r&&s&&i&&n);class a{constructor(f,h,m,p){this.stringify=f,this.mapOpts=m.map||{},this.root=h,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 h=`
58
61
  `;this.css.includes(`\r
59
- `)&&(r=`\r
60
- `),this.css+=r+"/*# sourceMappingURL="+n+" */"}applyPrevMaps(){for(let n of this.previous()){let r=this.toUrl(this.path(n.file)),f=n.root||u(n.file),l;this.mapOpts.sourcesContent===!1?(l=new e(n.text),l.sourcesContent&&(l.sourcesContent=null)):l=n.consumer(),this.map.applySourceMap(l,r,this.toUrl(this.path(f)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let n;for(let r=this.root.nodes.length-1;r>=0;r--)n=this.root.nodes[r],n.type==="comment"&&n.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&a&&this.isMap())return this.generateMap();{let n="";return this.stringify(this.root,r=>{n+=r}),[n]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let n=this.previous()[0].consumer();n.file=this.outputFile(),this.map=i.fromSourceMap(n,{ignoreInvalidMapping:!0})}else this.map=new i({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new i({file:this.outputFile(),ignoreInvalidMapping:!0});let n=1,r=1,f="<no source>",l={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,x;this.stringify(this.root,(b,v,C)=>{if(this.css+=b,v&&C!=="end"&&(l.generated.line=n,l.generated.column=r-1,v.source&&v.source.start?(l.source=this.sourcePath(v),l.original.line=v.source.start.line,l.original.column=v.source.start.column-1,this.map.addMapping(l)):(l.source=f,l.original.line=1,l.original.column=0,this.map.addMapping(l))),g=b.match(/\n/g),g?(n+=g.length,x=b.lastIndexOf(`
61
- `),r=b.length-x):r+=b.length,v&&C!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(l.source=this.sourcePath(v),l.original.line=v.source.end.line,l.original.column=v.source.end.column-1,l.generated.line=n,l.generated.column=r-2,this.map.addMapping(l)):(l.source=f,l.original.line=1,l.original.column=0,l.generated.line=n,l.generated.column=r-1,this.map.addMapping(l)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(n=>n.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let n=this.mapOpts.annotation;return typeof n!="undefined"&&n!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(n=>n.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(n){if(this.mapOpts.absolute||n.charCodeAt(0)===60||/^\w+:\/\//.test(n))return n;let r=this.memoizedPaths.get(n);if(r)return r;let f=this.opts.to?u(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=u(s(f,this.mapOpts.annotation)));let l=d(f,n);return this.memoizedPaths.set(n,l),l}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(n=>{if(n.source&&n.source.input.map){let r=n.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let n=new m(this.originalCSS,this.opts);n.map&&this.previousMaps.push(n.map)}return this.previousMaps}setSourcesContent(){let n={};if(this.root)this.root.walk(r=>{if(r.source){let f=r.source.input.from;if(f&&!n[f]){n[f]=!0;let l=this.usesFileUrls?this.toFileUrl(f):this.toUrl(this.path(f));this.map.setSourceContent(l,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(n){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(n.source.input.from):this.toUrl(this.path(n.source.input.from))}toBase64(n){return Buffer?Buffer.from(n).toString("base64"):window.btoa(unescape(encodeURIComponent(n)))}toFileUrl(n){let r=this.memoizedFileURLs.get(n);if(r)return r;if(p){let f=p(n).toString();return this.memoizedFileURLs.set(n,f),f}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(n){let r=this.memoizedURLs.get(n);if(r)return r;c==="\\"&&(n=n.replace(/\\/g,"/"));let f=encodeURI(n).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(n,f),f}}return zt=t,zt}var qt,xs;function Xe(){if(xs)return qt;xs=1;let e=Ye();class i extends e{constructor(d){super(d),this.type="comment"}}return qt=i,i.default=i,qt}var Bt,Cs;function pe(){if(Cs)return Bt;Cs=1;let{isClean:e,my:i}=Sr(),u=Qe(),d=Xe(),s=Ye(),c,p,m,a;function h(n){return n.map(r=>(r.nodes&&(r.nodes=h(r.nodes)),delete r.source,r))}function t(n){if(n[e]=!1,n.proxyOf.nodes)for(let r of n.proxyOf.nodes)t(r)}class o extends s{append(...r){for(let f of r){let l=this.normalize(f,this.last);for(let g of l)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(r){if(super.cleanRaws(r),this.nodes)for(let f of this.nodes)f.cleanRaws(r)}each(r){if(!this.proxyOf.nodes)return;let f=this.getIterator(),l,g;for(;this.indexes[f]<this.proxyOf.nodes.length&&(l=this.indexes[f],g=r(this.proxyOf.nodes[l],l),g!==!1);)this.indexes[f]+=1;return delete this.indexes[f],g}every(r){return this.nodes.every(r)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let r=this.lastEach;return this.indexes[r]=0,r}getProxyProcessor(){return{get(r,f){return f==="proxyOf"?r:r[f]?f==="each"||typeof f=="string"&&f.startsWith("walk")?(...l)=>r[f](...l.map(g=>typeof g=="function"?(x,b)=>g(x.toProxy(),b):g)):f==="every"||f==="some"?l=>r[f]((g,...x)=>l(g.toProxy(),...x)):f==="root"?()=>r.root().toProxy():f==="nodes"?r.nodes.map(l=>l.toProxy()):f==="first"||f==="last"?r[f].toProxy():r[f]:r[f]},set(r,f,l){return r[f]===l||(r[f]=l,(f==="name"||f==="params"||f==="selector")&&r.markDirty()),!0}}}index(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))}insertAfter(r,f){let l=this.index(r),g=this.normalize(f,this.proxyOf.nodes[l]).reverse();l=this.index(r);for(let b of g)this.proxyOf.nodes.splice(l+1,0,b);let x;for(let b in this.indexes)x=this.indexes[b],l<x&&(this.indexes[b]=x+g.length);return this.markDirty(),this}insertBefore(r,f){let l=this.index(r),g=l===0?"prepend":!1,x=this.normalize(f,this.proxyOf.nodes[l],g).reverse();l=this.index(r);for(let v of x)this.proxyOf.nodes.splice(l,0,v);let b;for(let v in this.indexes)b=this.indexes[v],l<=b&&(this.indexes[v]=b+x.length);return this.markDirty(),this}normalize(r,f){if(typeof r=="string")r=h(c(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new u(r)]}else if(r.selector)r=[new p(r)];else if(r.name)r=[new m(r)];else if(r.text)r=[new d(r)];else throw new Error("Unknown node type in node creation");return r.map(g=>(g[i]||o.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&t(g),typeof g.raws.before=="undefined"&&f&&typeof f.raws.before!="undefined"&&(g.raws.before=f.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...r){r=r.reverse();for(let f of r){let l=this.normalize(f,this.first,"prepend").reverse();for(let g of l)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+l.length}return this.markDirty(),this}push(r){return r.parent=this,this.proxyOf.nodes.push(r),this}removeAll(){for(let r of this.proxyOf.nodes)r.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);let f;for(let l in this.indexes)f=this.indexes[l],f>=r&&(this.indexes[l]=f-1);return this.markDirty(),this}replaceValues(r,f,l){return l||(l=f,f={}),this.walkDecls(g=>{f.props&&!f.props.includes(g.prop)||f.fast&&!g.value.includes(f.fast)||(g.value=g.value.replace(r,l))}),this.markDirty(),this}some(r){return this.nodes.some(r)}walk(r){return this.each((f,l)=>{let g;try{g=r(f,l)}catch(x){throw f.addToError(x)}return g!==!1&&f.walk&&(g=f.walk(r)),g})}walkAtRules(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="atrule"&&r.test(l.name))return f(l,g)}):this.walk((l,g)=>{if(l.type==="atrule"&&l.name===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="atrule")return f(l,g)}))}walkComments(r){return this.walk((f,l)=>{if(f.type==="comment")return r(f,l)})}walkDecls(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="decl"&&r.test(l.prop))return f(l,g)}):this.walk((l,g)=>{if(l.type==="decl"&&l.prop===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="decl")return f(l,g)}))}walkRules(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="rule"&&r.test(l.selector))return f(l,g)}):this.walk((l,g)=>{if(l.type==="rule"&&l.selector===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="rule")return f(l,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return o.registerParse=n=>{c=n},o.registerRule=n=>{p=n},o.registerAtRule=n=>{m=n},o.registerRoot=n=>{a=n},Bt=o,o.default=o,o.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,m.prototype):n.type==="rule"?Object.setPrototypeOf(n,p.prototype):n.type==="decl"?Object.setPrototypeOf(n,u.prototype):n.type==="comment"?Object.setPrototypeOf(n,d.prototype):n.type==="root"&&Object.setPrototypeOf(n,a.prototype),n[i]=!0,n.nodes&&n.nodes.forEach(r=>{o.rebuild(r)})},Bt}var jt,Rs;function xr(){if(Rs)return jt;Rs=1;let e=pe(),i,u;class d extends e{constructor(c){super(Q({type:"document"},c)),this.nodes||(this.nodes=[])}toResult(c={}){return new i(new u,this,c).stringify()}}return d.registerLazyResult=s=>{i=s},d.registerProcessor=s=>{u=s},jt=d,d.default=d,jt}var Tt,Os;function yi(){if(Os)return Tt;Os=1;let e={};return Tt=function(u){e[u]||(e[u]=!0,typeof console!="undefined"&&console.warn&&console.warn(u))},Tt}var Wt,Ps;function bi(){if(Ps)return Wt;Ps=1;class e{constructor(u,d={}){if(this.type="warning",this.text=u,d.node&&d.node.source){let s=d.node.rangeBy(d);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in d)this[s]=d[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Wt=e,e.default=e,Wt}var $t,_s;function Cr(){if(_s)return $t;_s=1;let e=bi();class i{constructor(d,s,c){this.processor=d,this.messages=[],this.root=s,this.opts=c,this.css=void 0,this.map=void 0}toString(){return this.css}warn(d,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let c=new e(d,s);return this.messages.push(c),c}warnings(){return this.messages.filter(d=>d.type==="warning")}get content(){return this.css}}return $t=i,i.default=i,$t}var Vt,Es;function wn(){if(Es)return Vt;Es=1;const e=39,i=34,u=92,d=47,s=10,c=32,p=12,m=9,a=13,h=91,t=93,o=40,n=41,r=123,f=125,l=59,g=42,x=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,C=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return Vt=function(P,A={}){let _=P.css.valueOf(),U=A.ignoreErrors,I,O,T,Y,q,$,k,j,D,M,K=_.length,R=0,E=[],F=[];function B(){return R}function N(Z){throw P.error("Unclosed "+Z,R)}function X(){return F.length===0&&R>=K}function Me(Z){if(F.length)return F.pop();if(R>=K)return;let ae=Z?Z.ignoreUnclosed:!1;switch(I=_.charCodeAt(R),I){case s:case c:case m:case a:case p:{O=R;do O+=1,I=_.charCodeAt(O);while(I===c||I===s||I===m||I===a||I===p);M=["space",_.slice(R,O)],R=O-1;break}case h:case t:case r:case f:case x:case l:case n:{let Ce=String.fromCharCode(I);M=[Ce,Ce,R];break}case o:{if(j=E.length?E.pop()[1]:"",D=_.charCodeAt(R+1),j==="url"&&D!==e&&D!==i&&D!==c&&D!==s&&D!==m&&D!==p&&D!==a){O=R;do{if($=!1,O=_.indexOf(")",O+1),O===-1)if(U||ae){O=R;break}else N("bracket");for(k=O;_.charCodeAt(k-1)===u;)k-=1,$=!$}while($);M=["brackets",_.slice(R,O+1),R,O],R=O}else O=_.indexOf(")",R+1),Y=_.slice(R,O+1),O===-1||y.test(Y)?M=["(","(",R]:(M=["brackets",Y,R,O],R=O);break}case e:case i:{T=I===e?"'":'"',O=R;do{if($=!1,O=_.indexOf(T,O+1),O===-1)if(U||ae){O=R+1;break}else N("string");for(k=O;_.charCodeAt(k-1)===u;)k-=1,$=!$}while($);M=["string",_.slice(R,O+1),R,O],R=O;break}case b:{v.lastIndex=R+1,v.test(_),v.lastIndex===0?O=_.length-1:O=v.lastIndex-2,M=["at-word",_.slice(R,O+1),R,O],R=O;break}case u:{for(O=R,q=!0;_.charCodeAt(O+1)===u;)O+=1,q=!q;if(I=_.charCodeAt(O+1),q&&I!==d&&I!==c&&I!==s&&I!==m&&I!==a&&I!==p&&(O+=1,w.test(_.charAt(O)))){for(;w.test(_.charAt(O+1));)O+=1;_.charCodeAt(O+1)===c&&(O+=1)}M=["word",_.slice(R,O+1),R,O],R=O;break}default:{I===d&&_.charCodeAt(R+1)===g?(O=_.indexOf("*/",R+2)+1,O===0&&(U||ae?O=_.length:N("comment")),M=["comment",_.slice(R,O+1),R,O],R=O):(C.lastIndex=R+1,C.test(_),C.lastIndex===0?O=_.length-1:O=C.lastIndex-2,M=["word",_.slice(R,O+1),R,O],E.push(M),R=O);break}}return R++,M}function Ne(Z){F.push(Z)}return{back:Ne,endOfFile:X,nextToken:Me,position:B}},Vt}var Gt,As;function Rr(){if(As)return Gt;As=1;let e=pe();class i extends e{constructor(d){super(d),this.type="atrule"}append(...d){return this.proxyOf.nodes||(this.nodes=[]),super.append(...d)}prepend(...d){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...d)}}return Gt=i,i.default=i,e.registerAtRule(i),Gt}var Jt,ks;function ke(){if(ks)return Jt;ks=1;let e=pe(),i,u;class d extends e{constructor(c){super(c),this.type="root",this.nodes||(this.nodes=[])}normalize(c,p,m){let a=super.normalize(c);if(p){if(m==="prepend")this.nodes.length>1?p.raws.before=this.nodes[1].raws.before:delete p.raws.before;else if(this.first!==p)for(let h of a)h.raws.before=p.raws.before}return a}removeChild(c,p){let m=this.index(c);return!p&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(c)}toResult(c={}){return new i(new u,this,c).stringify()}}return d.registerLazyResult=s=>{i=s},d.registerProcessor=s=>{u=s},Jt=d,d.default=d,e.registerRoot(d),Jt}var Ht,Ms;function vi(){if(Ms)return Ht;Ms=1;let e={comma(i){return e.split(i,[","],!0)},space(i){let u=[" ",`
62
- `," "];return e.split(i,u)},split(i,u,d){let s=[],c="",p=!1,m=0,a=!1,h="",t=!1;for(let o of i)t?t=!1:o==="\\"?t=!0:a?o===h&&(a=!1):o==='"'||o==="'"?(a=!0,h=o):o==="("?m+=1:o===")"?m>0&&(m-=1):m===0&&u.includes(o)&&(p=!0),p?(c!==""&&s.push(c.trim()),c="",p=!1):c+=o;return(d||c!=="")&&s.push(c.trim()),s}};return Ht=e,e.default=e,Ht}var Yt,Ns;function Or(){if(Ns)return Yt;Ns=1;let e=pe(),i=vi();class u extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(s){let c=this.selector?this.selector.match(/,\s*/):null,p=c?c[0]:","+this.raw("between","beforeOpen");this.selector=s.join(p)}}return Yt=u,u.default=u,e.registerRule(u),Yt}var Qt,Is;function yn(){if(Is)return Qt;Is=1;let e=Qe(),i=wn(),u=Xe(),d=Rr(),s=ke(),c=Or();const p={empty:!0,space:!0};function m(h){for(let t=h.length-1;t>=0;t--){let o=h[t],n=o[3]||o[2];if(n)return n}}class a{constructor(t){this.input=t,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let o=new d;o.name=t[1].slice(1),o.name===""&&this.unnamedAtrule(o,t),this.init(o,t[2]);let n,r,f,l=!1,g=!1,x=[],b=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),n=t[0],n==="("||n==="["?b.push(n==="("?")":"]"):n==="{"&&b.length>0?b.push("}"):n===b[b.length-1]&&b.pop(),b.length===0)if(n===";"){o.source.end=this.getPosition(t[2]),o.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){g=!0;break}else if(n==="}"){if(x.length>0){for(f=x.length-1,r=x[f];r&&r[0]==="space";)r=x[--f];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(t);break}else x.push(t);else x.push(t);if(this.tokenizer.endOfFile()){l=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(o.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(o,"params",x),l&&(t=x[x.length-1],o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),g&&(o.nodes=[],this.current=o)}checkMissedSemicolon(t){let o=this.colon(t);if(o===!1)return;let n=0,r;for(let f=o-1;f>=0&&(r=t[f],!(r[0]!=="space"&&(n+=1,n===2)));f--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(t){let o=0,n,r,f;for(let[l,g]of t.entries()){if(n=g,r=n[0],r==="("&&(o+=1),r===")"&&(o-=1),o===0&&r===":")if(!f)this.doubleColon(n);else{if(f[0]==="word"&&f[1]==="progid")continue;return l}f=n}return!1}comment(t){let o=new u;this.init(o,t[2]),o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++;let n=t[1].slice(2,-2);if(/^\s*$/.test(n))o.text="",o.raws.left=n,o.raws.right="";else{let r=n.match(/^(\s*)([^]*\S)(\s*)$/);o.text=r[2],o.raws.left=r[1],o.raws.right=r[3]}}createTokenizer(){this.tokenizer=i(this.input)}decl(t,o){let n=new e;this.init(n,t[0][2]);let r=t[t.length-1];for(r[0]===";"&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(r[3]||r[2]||m(t)),n.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),n.raws.before+=t.shift()[1];for(n.source.start=this.getPosition(t[0][2]),n.prop="";t.length;){let b=t[0][0];if(b===":"||b==="space"||b==="comment")break;n.prop+=t.shift()[1]}n.raws.between="";let f;for(;t.length;)if(f=t.shift(),f[0]===":"){n.raws.between+=f[1];break}else f[0]==="word"&&/\w/.test(f[1])&&this.unknownWord([f]),n.raws.between+=f[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let l=[],g;for(;t.length&&(g=t[0][0],!(g!=="space"&&g!=="comment"));)l.push(t.shift());this.precheckMissedSemicolon(t);for(let b=t.length-1;b>=0;b--){if(f=t[b],f[1].toLowerCase()==="!important"){n.important=!0;let v=this.stringFrom(t,b);v=this.spacesFromEnd(t)+v,v!==" !important"&&(n.raws.important=v);break}else if(f[1].toLowerCase()==="important"){let v=t.slice(0),C="";for(let y=b;y>0;y--){let w=v[y][0];if(C.trim().indexOf("!")===0&&w!=="space")break;C=v.pop()[1]+C}C.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=C,t=v)}if(f[0]!=="space"&&f[0]!=="comment")break}t.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(n.raws.between+=l.map(b=>b[1]).join(""),l=[]),this.raw(n,"value",l.concat(t),o),n.value.includes(":")&&!o&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let o=new c;this.init(o,t[2]),o.selector="",o.raws.between="",this.current=o}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let o=this.current.nodes[this.current.nodes.length-1];o&&o.type==="rule"&&!o.raws.ownSemicolon&&(o.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let o=this.input.fromOffset(t);return{column:o.col,line:o.line,offset:t}}init(t,o){this.current.push(t),t.source={input:this.input,start:this.getPosition(o)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let o=!1,n=null,r=!1,f=null,l=[],g=t[1].startsWith("--"),x=[],b=t;for(;b;){if(n=b[0],x.push(b),n==="("||n==="[")f||(f=b),l.push(n==="("?")":"]");else if(g&&r&&n==="{")f||(f=b),l.push("}");else if(l.length===0)if(n===";")if(r){this.decl(x,g);return}else break;else if(n==="{"){this.rule(x);return}else if(n==="}"){this.tokenizer.back(x.pop()),o=!0;break}else n===":"&&(r=!0);else n===l[l.length-1]&&(l.pop(),l.length===0&&(f=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(o=!0),l.length>0&&this.unclosedBracket(f),o&&r){if(!g)for(;x.length&&(b=x[x.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,g)}else this.unknownWord(x)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,o,n,r){let f,l,g=n.length,x="",b=!0,v,C;for(let y=0;y<g;y+=1)f=n[y],l=f[0],l==="space"&&y===g-1&&!r?b=!1:l==="comment"?(C=n[y-1]?n[y-1][0]:"empty",v=n[y+1]?n[y+1][0]:"empty",!p[C]&&!p[v]?x.slice(-1)===","?b=!1:x+=f[1]:b=!1):x+=f[1];if(!b){let y=n.reduce((w,S)=>w+S[1],"");t.raws[o]={raw:y,value:x}}t[o]=x}rule(t){t.pop();let o=new c;this.init(o,t[0][2]),o.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(o,"selector",t),this.current=o}spacesAndCommentsFromEnd(t){let o,n="";for(;t.length&&(o=t[t.length-1][0],!(o!=="space"&&o!=="comment"));)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let o,n="";for(;t.length&&(o=t[0][0],!(o!=="space"&&o!=="comment"));)n+=t.shift()[1];return n}spacesFromEnd(t){let o,n="";for(;t.length&&(o=t[t.length-1][0],o==="space");)n=t.pop()[1]+n;return n}stringFrom(t,o){let n="";for(let r=o;r<t.length;r++)n+=t[r][1];return t.splice(o,t.length-o),n}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,o){throw this.input.error("At-rule without name",{offset:o[2]},{offset:o[2]+o[1].length})}}return Qt=a,Qt}var Kt,Ls;function Pr(){if(Ls)return Kt;Ls=1;let e=pe(),i=yn(),u=Ke();function d(s,c){let p=new u(s,c),m=new i(p);try{m.parse()}catch(a){throw a}return m.root}return Kt=d,d.default=d,e.registerParse(d),Kt}var Xt,Us;function Si(){if(Us)return Xt;Us=1;let{isClean:e,my:i}=Sr(),u=wi(),d=He(),s=pe(),c=xr(),p=yi(),m=Cr(),a=Pr(),h=ke();const t={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},o={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},n={Once:!0,postcssPlugin:!0,prepare:!0},r=0;function f(C){return typeof C=="object"&&typeof C.then=="function"}function l(C){let y=!1,w=t[C.type];return C.type==="decl"?y=C.prop.toLowerCase():C.type==="atrule"&&(y=C.name.toLowerCase()),y&&C.append?[w,w+"-"+y,r,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:C.append?[w,r,w+"Exit"]:[w,w+"Exit"]}function g(C){let y;return C.type==="document"?y=["Document",r,"DocumentExit"]:C.type==="root"?y=["Root",r,"RootExit"]:y=l(C),{eventIndex:0,events:y,iterator:0,node:C,visitorIndex:0,visitors:[]}}function x(C){return C[e]=!1,C.nodes&&C.nodes.forEach(y=>x(y)),C}let b={};class v{constructor(y,w,S){this.stringified=!1,this.processed=!1;let P;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))P=x(w);else if(w instanceof v||w instanceof m)P=x(w.root),w.map&&(typeof S.map=="undefined"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=w.map);else{let A=a;S.syntax&&(A=S.syntax.parse),S.parser&&(A=S.parser),A.parse&&(A=A.parse);try{P=A(w,S)}catch(_){this.processed=!0,this.error=_}P&&!P[i]&&s.rebuild(P)}this.result=new m(y,P,S),this.helpers=ie(Q({},b),{postcss:b,result:this.result}),this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?Q(Q({},A),A.prepare(this.result)):A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let S=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=S.postcssPlugin,y.setMessage()):S.postcssVersion}catch(P){console&&console.error&&console.error(P)}return y}prepareVisitors(){this.listeners={};let y=(w,S,P)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([w,P])};for(let w of this.plugins)if(typeof w=="object")for(let S in w){if(!o[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!n[S])if(typeof w[S]=="object")for(let P in w[S])P==="*"?y(w,S,w[S][P]):y(w,S+"-"+P.toLowerCase(),w[S][P]);else typeof w[S]=="function"&&y(w,S,w[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],S=this.runOnRoot(w);if(f(S))try{await S}catch(P){throw this.handleError(P)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];){y[e]=!0;let w=[g(y)];for(;w.length>0;){let S=this.visitTick(w);if(f(S))try{await S}catch(P){let A=w[w.length-1].node;throw this.handleError(P,A)}}}if(this.listeners.OnceExit)for(let[w,S]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let P=y.nodes.map(A=>S(A,this.helpers));await Promise.all(P)}else await S(y,this.helpers)}catch(P){throw this.handleError(P)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(S=>y.Once(S,this.helpers));return f(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,w=d;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let P=new u(w,this.result.root,this.result.opts).generate();return this.result.css=P[0],this.result.map=P[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let w=this.runOnRoot(y);if(f(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];)y[e]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[S,P]of y){this.result.lastPlugin=S;let A;try{A=P(w,this.helpers)}catch(_){throw this.handleError(_,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(f(A))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:S,visitors:P}=w;if(S.type!=="root"&&S.type!=="document"&&!S.parent){y.pop();return}if(P.length>0&&w.visitorIndex<P.length){let[_,U]=P[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===P.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=_;try{return U(S.toProxy(),this.helpers)}catch(I){throw this.handleError(I,S)}}if(w.iterator!==0){let _=w.iterator,U;for(;U=S.nodes[S.indexes[_]];)if(S.indexes[_]+=1,!U[e]){U[e]=!0,y.push(g(U));return}w.iterator=0,delete S.indexes[_]}let A=w.events;for(;w.eventIndex<A.length;){let _=A[w.eventIndex];if(w.eventIndex+=1,_===r){S.nodes&&S.nodes.length&&(S[e]=!0,w.iterator=S.getIterator());return}else if(this.listeners[_]){w.visitors=this.listeners[_];return}}y.pop()}walkSync(y){y[e]=!0;let w=l(y);for(let S of w)if(S===r)y.nodes&&y.each(P=>{P[e]||this.walkSync(P)});else{let P=this.listeners[S];if(P&&this.visitSync(P,y.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=C=>{b=C},Xt=v,v.default=v,h.registerLazyResult(v),c.registerLazyResult(v),Xt}var Zt,Ds;function bn(){if(Ds)return Zt;Ds=1;let e=wi(),i=He(),u=yi(),d=Pr();const s=Cr();class c{constructor(m,a,h){a=a.toString(),this.stringified=!1,this._processor=m,this._css=a,this._opts=h,this._map=void 0;let t,o=i;this.result=new s(this._processor,t,this._opts),this.result.css=a;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let r=new e(o,t,this._opts,a);if(r.isMap()){let[f,l]=r.generate();f&&(this.result.css=f),l&&(this.result.map=l)}else r.clearAnnotation(),this.result.css=r.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(m){return this.async().catch(m)}finally(m){return this.async().then(m,m)}sync(){if(this.error)throw this.error;return this.result}then(m,a){return this.async().then(m,a)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let m,a=d;try{m=a(this._css,this._opts)}catch(h){this.error=h}if(this.error)throw this.error;return this._root=m,m}get[Symbol.toStringTag](){return"NoWorkResult"}}return Zt=c,c.default=c,Zt}var er,Fs;function vn(){if(Fs)return er;Fs=1;let e=bn(),i=Si(),u=xr(),d=ke();class s{constructor(p=[]){this.version="8.4.38",this.plugins=this.normalize(p)}normalize(p){let m=[];for(let a of p)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))m=m.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)m.push(a);else if(typeof a=="function")m.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return m}process(p,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new e(this,p,m):new i(this,p,m)}use(p){return this.plugins=this.plugins.concat(this.normalize([p])),this}}return er=s,s.default=s,d.registerProcessor(s),u.registerProcessor(s),er}var tr,zs;function Sn(){if(zs)return tr;zs=1;let e=Qe(),i=gi(),u=Xe(),d=Rr(),s=Ke(),c=ke(),p=Or();function m(a,h){if(Array.isArray(a))return a.map(f=>m(f));let n=a,{inputs:t}=n,o=Re(n,["inputs"]);if(t){h=[];for(let f of t){let l=ie(Q({},f),{__proto__:s.prototype});l.map&&(l.map=ie(Q({},l.map),{__proto__:i.prototype})),h.push(l)}}if(o.nodes&&(o.nodes=a.nodes.map(f=>m(f,h))),o.source){let r=o.source,{inputId:f}=r,l=Re(r,["inputId"]);o.source=l,f!=null&&(o.source.input=h[f])}if(o.type==="root")return new c(o);if(o.type==="decl")return new e(o);if(o.type==="rule")return new p(o);if(o.type==="comment")return new u(o);if(o.type==="atrule")return new d(o);throw new Error("Unknown node type: "+a.type)}return tr=m,m.default=m,tr}var rr,qs;function xn(){if(qs)return rr;qs=1;let e=vr(),i=Qe(),u=Si(),d=pe(),s=vn(),c=He(),p=Sn(),m=xr(),a=bi(),h=Xe(),t=Rr(),o=Cr(),n=Ke(),r=Pr(),f=vi(),l=Or(),g=ke(),x=Ye();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new s(v)}return b.plugin=function(C,y){let w=!1;function S(...A){console&&console.warn&&!w&&(w=!0,console.warn(C+`: postcss.plugin was deprecated. Migration guide:
63
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(C+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
64
- https://www.w3ctech.com/topic/2226`));let _=y(...A);return _.postcssPlugin=C,_.postcssVersion=new s().version,_}let P;return Object.defineProperty(S,"postcss",{get(){return P||(P=S()),P}}),S.process=function(A,_,U){return b([S(U)]).process(A,_)},S},b.stringify=c,b.parse=r,b.fromJSON=p,b.list=f,b.comment=v=>new h(v),b.atRule=v=>new t(v),b.decl=v=>new i(v),b.rule=v=>new l(v),b.root=v=>new g(v),b.document=v=>new m(v),b.CssSyntaxError=e,b.Declaration=i,b.Container=d,b.Processor=s,b.Document=m,b.Comment=h,b.Warning=a,b.AtRule=t,b.Result=o,b.Input=n,b.Rule=l,b.Root=g,b.Node=x,u.registerPostcss(b),rr=b,b.default=b,rr}var Cn=xn();const G=hn(Cn);G.stringify;G.fromJSON;G.plugin;G.parse;G.list;G.document;G.comment;G.atRule;G.rule;G.decl;G.root;G.CssSyntaxError;G.Declaration;G.Container;G.Processor;G.Document;G.Comment;G.Warning;G.AtRule;G.Result;G.Input;G.Rule;G.Root;G.Node;const we=`Please stop import mirror directly. Instead of that,\r
62
+ `)&&(h=`\r
63
+ `),this.css+=h+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let h=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,h,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let h=this.root.nodes.length-1;h>=0;h--)f=this.root.nodes[h],f.type==="comment"&&f.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(h)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&l&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,h=>{f+=h}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=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,h=1,m="<no source>",p={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,y;this.stringify(this.root,(b,_,S)=>{if(this.css+=b,_&&S!=="end"&&(p.generated.line=f,p.generated.column=h-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=b.match(/\n/g),g?(f+=g.length,y=b.lastIndexOf(`
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(S+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
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&&gt.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
65
68
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
66
- or you can use record.mirror to access the mirror instance during recording.`;let Bs={map:{},getId(){return console.error(we),-1},getNode(){return console.error(we),null},removeNodeFromMap(){console.error(we)},has(){return console.error(we),!1},reset(){console.error(we)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Bs=new Proxy(Bs,{get(e,i,u){return i==="map"&&console.error(we),Reflect.get(e,i,u)}}));Date.now().toString();var xi=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(xi||{}),or=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(or||{}),js="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rn=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var ze=0;ze<js.length;ze++)Rn[js.charCodeAt(ze)]=ze;const On=`(function() {
69
+ or you can use record.mirror to access the mirror instance during recording.`;let ul={map:{},getId(){return console.error(vr),-1},getNode(){return console.error(vr),null},removeNodeFromMap(){console.error(vr)},has(){return console.error(vr),!1},reset(){console.error(vr)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(ul=new Proxy(ul,{get(e,t,r){return t==="map"&&console.error(vr),Reflect.get(e,t,r)}}));Date.now().toString();function zd(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 $d(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 l=u.parent.children.indexOf(u);u.parent.children.splice(l,0,r(s,u.parent))}else{const l=i.indexOf(u);i.splice(l,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 ec(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)ec(e.children[r],t)}function vn(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function tc(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=tc(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 yi(e){return e?e instanceof ft&&"shadowRoot"in e?!!e.shadowRoot:!!qd.shadowRoot(e):!1}function Gr(e,t){const r=e[t[0]];return t.length===1?r:Gr(r.cssRules[t[1]].cssRules,t.slice(2))}function cl(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function Vd(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 jd{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 ue=(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))(ue||{}),Y=(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))(Y||{}),we=(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))(we||{}),Fi=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Fi||{}),$n=(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))($n||{}),Q=(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))(Q||{}),It=(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))(It||{}),fl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Hr=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var wi=0;wi<fl.length;wi++)Hr[fl.charCodeAt(wi)]=wi;var Gd=function(e){var t=e.length*.75,r=e.length,i,s=0,n,o,u,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var c=new ArrayBuffer(t),a=new Uint8Array(c);for(i=0;i<r;i+=4)n=Hr[e.charCodeAt(i)],o=Hr[e.charCodeAt(i+1)],u=Hr[e.charCodeAt(i+2)],l=Hr[e.charCodeAt(i+3)],a[s++]=n<<2|o>>4,a[s++]=(o&15)<<4|u>>2,a[s++]=(u&3)<<6|l&63;return c};const Hd=`(function() {
67
70
  "use strict";
68
71
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
69
72
  var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
@@ -138,14 +141,20 @@ or you can use record.mirror to access the mirror instance during recording.`;le
138
141
  };
139
142
  })();
140
143
  //# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
141
- `;typeof self!="undefined"&&self.Blob&&new Blob([On],{type:"text/javascript;charset=utf-8"});try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Lr=e.contentWindow)==null?void 0:Lr.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}Qi();var Ts;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Ts||(Ts={}));var Ze=Uint8Array,Ci=Uint16Array,Pn=Uint32Array,_n=new Ze([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),En=new Ze([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ri=function(e,i){for(var u=new Ci(31),d=0;d<31;++d)u[d]=i+=1<<e[d-1];for(var s=new Pn(u[30]),d=1;d<30;++d)for(var c=u[d];c<u[d+1];++c)s[c]=c-u[d]<<5|d;return[u,s]},Oi=Ri(_n,2),An=Oi[0],kn=Oi[1];An[28]=258,kn[258]=28;Ri(En,0);var Mn=new Ci(32768);for(var W=0;W<32768;++W){var le=(W&43690)>>>1|(W&21845)<<1;le=(le&52428)>>>2|(le&13107)<<2,le=(le&61680)>>>4|(le&3855)<<4,Mn[W]=((le&65280)>>>8|(le&255)<<8)>>>1}var et=new Ze(288);for(var W=0;W<144;++W)et[W]=8;for(var W=144;W<256;++W)et[W]=9;for(var W=256;W<280;++W)et[W]=7;for(var W=280;W<288;++W)et[W]=8;var Nn=new Ze(32);for(var W=0;W<32;++W)Nn[W]=5;function Ws(e){let i="";return Object.keys(e).forEach(u=>{i+=`${u}: ${e[u]};`}),i}function Oe(e,i=2){let u=String(e);const d=Math.pow(10,i-1);if(e<d)for(;String(d).length>u.length;)u=`0${e}`;return u}const Pi=1e3,lr=60*Pi,$s=60*lr;function qe(e){if(e<=0)return"00:00";const i=Math.floor(e/$s);e=e%$s;const u=Math.floor(e/lr);e=e%lr;const d=Math.floor(e/Pi);return i?`${Oe(i)}:${Oe(u)}:${Oe(d)}`:`${Oe(u)}:${Oe(d)}`}function In(e){return e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():Promise.resolve()}function Ln(){return document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():Promise.resolve()}function Un(){let e=!1;return["fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement"].forEach(i=>{i in document&&(e=e||!!document[i])}),e}function Dn(e){return e.type!==xi.IncrementalSnapshot?!1:e.data.source>or.Mutation&&e.data.source<=or.Input}function Fn(e,i){const u=[];let d=e[0].timestamp;for(const s of e)Dn(s)&&(s.timestamp-d>i&&u.push([d,s.timestamp]),d=s.timestamp);return u}var _i=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(_i||{});function zn(e){let i,u,d,s,c,p,m,a,h;return{c(){i=H("div"),u=H("input"),d=ee(),s=H("label"),c=ee(),p=H("span"),m=he(e[3]),L(u,"type","checkbox"),L(u,"id",e[2]),u.disabled=e[1],L(u,"class","svelte-a6h7w7"),L(s,"for",e[2]),L(s,"class","svelte-a6h7w7"),L(p,"class","label svelte-a6h7w7"),L(i,"class","switch svelte-a6h7w7"),ve(i,"disabled",e[1])},m(t,o){oe(t,i,o),z(i,u),u.checked=e[0],z(i,d),z(i,s),z(i,c),z(i,p),z(p,m),a||(h=ye(u,"change",e[4]),a=!0)},p(t,[o]){o&4&&L(u,"id",t[2]),o&2&&(u.disabled=t[1]),o&1&&(u.checked=t[0]),o&4&&L(s,"for",t[2]),o&8&&Te(m,t[3]),o&2&&ve(i,"disabled",t[1])},i:_e,o:_e,d(t){t&&se(i),a=!1,h()}}}function qn(e,i,u){let{disabled:d}=i,{checked:s}=i,{id:c}=i,{label:p}=i;function m(){s=this.checked,u(0,s)}return e.$$set=a=>{"disabled"in a&&u(1,d=a.disabled),"checked"in a&&u(0,s=a.checked),"id"in a&&u(2,c=a.id),"label"in a&&u(3,p=a.label)},[s,d,c,p,m]}class Bn extends cr{constructor(i){super(),hr(this,i,qn,zn,ar,{disabled:1,checked:0,id:2,label:3})}}function Vs(e,i,u){const d=e.slice();return d[38]=i[u],d}function Gs(e,i,u){const d=e.slice();return d[41]=i[u],d}function Js(e,i,u){const d=e.slice();return d[44]=i[u],d}function Hs(e){let i,u,d,s=qe(e[6])+"",c,p,m,a,h,t,o,n,r,f,l=qe(e[8].totalTime)+"",g,x,b,v,C,y,w,S,P,A,_,U,I,O=me(e[13]),T=[];for(let E=0;E<O.length;E+=1)T[E]=Ys(Js(e,O,E));let Y=me(e[9]),q=[];for(let E=0;E<Y.length;E+=1)q[E]=Qs(Gs(e,Y,E));function $(E,F){return E[7]==="playing"?Tn:jn}let k=$(e),j=k(e),D=me(e[3]),M=[];for(let E=0;E<D.length;E+=1)M[E]=Ks(Vs(e,D,E));function K(E){e[29](E)}let R={id:"skip",disabled:e[10]==="skipping",label:"skip inactive"};return e[0]!==void 0&&(R.checked=e[0]),w=new Bn({props:R}),fe.push(()=>$i(w,"checked",K)),{c(){i=H("div"),u=H("div"),d=H("span"),c=he(s),p=ee(),m=H("div"),a=H("div"),h=ee();for(let E=0;E<T.length;E+=1)T[E].c();t=ee();for(let E=0;E<q.length;E+=1)q[E].c();o=ee(),n=H("div"),r=ee(),f=H("span"),g=he(l),x=ee(),b=H("div"),v=H("button"),j.c(),C=ee();for(let E=0;E<M.length;E+=1)M[E].c();y=ee(),li(w.$$.fragment),P=ee(),A=H("button"),A.innerHTML=`<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M916 380c-26.4 0-48-21.6-48-48L868 223.2 613.6 477.6c-18.4
142
- 18.4-48.8 18.4-68 0-18.4-18.4-18.4-48.8 0-68L800 156 692 156c-26.4
143
- 0-48-21.6-48-48 0-26.4 21.6-48 48-48l224 0c26.4 0 48 21.6 48 48l0
144
- 224C964 358.4 942.4 380 916 380zM231.2 860l108.8 0c26.4 0 48 21.6 48
145
- 48s-21.6 48-48 48l-224 0c-26.4 0-48-21.6-48-48l0-224c0-26.4 21.6-48
146
- 48-48 26.4 0 48 21.6 48 48L164 792l253.6-253.6c18.4-18.4 48.8-18.4
147
- 68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg>`,L(d,"class","rr-timeline__time svelte-189zk2r"),L(a,"class","rr-progress__step svelte-189zk2r"),J(a,"width",e[12]),L(n,"class","rr-progress__handler svelte-189zk2r"),J(n,"left",e[12]),L(m,"class","rr-progress svelte-189zk2r"),ve(m,"disabled",e[10]==="skipping"),L(f,"class","rr-timeline__time svelte-189zk2r"),L(u,"class","rr-timeline svelte-189zk2r"),L(v,"class","svelte-189zk2r"),L(A,"class","svelte-189zk2r"),L(b,"class","rr-controller__btns svelte-189zk2r"),L(i,"class","rr-controller svelte-189zk2r")},m(E,F){oe(E,i,F),z(i,u),z(u,d),z(d,c),z(u,p),z(u,m),z(m,a),z(m,h);for(let B=0;B<T.length;B+=1)T[B]&&T[B].m(m,null);z(m,t);for(let B=0;B<q.length;B+=1)q[B]&&q[B].m(m,null);z(m,o),z(m,n),e[27](m),z(u,r),z(u,f),z(f,g),z(i,x),z(i,b),z(b,v),j.m(v,null),z(b,C);for(let B=0;B<M.length;B+=1)M[B]&&M[B].m(b,null);z(b,y),ur(w,b,null),z(b,P),z(b,A),_=!0,U||(I=[ye(m,"click",e[15]),ye(m,"keydown",e[16]),ye(v,"click",e[4]),ye(A,"click",e[30])],U=!0)},p(E,F){if((!_||F[0]&64)&&s!==(s=qe(E[6])+"")&&Te(c,s),(!_||F[0]&4096)&&J(a,"width",E[12]),F[0]&8192){O=me(E[13]);let N;for(N=0;N<O.length;N+=1){const X=Js(E,O,N);T[N]?T[N].p(X,F):(T[N]=Ys(X),T[N].c(),T[N].m(m,t))}for(;N<T.length;N+=1)T[N].d(1);T.length=O.length}if(F[0]&512){Y=me(E[9]);let N;for(N=0;N<Y.length;N+=1){const X=Gs(E,Y,N);q[N]?q[N].p(X,F):(q[N]=Qs(X),q[N].c(),q[N].m(m,o))}for(;N<q.length;N+=1)q[N].d(1);q.length=Y.length}if((!_||F[0]&4096)&&J(n,"left",E[12]),(!_||F[0]&1024)&&ve(m,"disabled",E[10]==="skipping"),(!_||F[0]&256)&&l!==(l=qe(E[8].totalTime)+"")&&Te(g,l),k!==(k=$(E))&&(j.d(1),j=k(E),j&&(j.c(),j.m(v,null))),F[0]&1066){D=me(E[3]);let N;for(N=0;N<D.length;N+=1){const X=Vs(E,D,N);M[N]?M[N].p(X,F):(M[N]=Ks(X),M[N].c(),M[N].m(b,y))}for(;N<M.length;N+=1)M[N].d(1);M.length=D.length}const B={};F[0]&1024&&(B.disabled=E[10]==="skipping"),!S&&F[0]&1&&(S=!0,B.checked=E[0],ji(()=>S=!1)),w.$set(B)},i(E){_||(ne(w.$$.fragment,E),_=!0)},o(E){Se(w.$$.fragment,E),_=!1},d(E){E&&se(i),tt(T,E),tt(q,E),e[27](null),j.d(),tt(M,E),fr(w),U=!1,xe(I)}}}function Ys(e){let i,u;return{c(){i=H("div"),L(i,"title",u=e[44].name),J(i,"width",e[44].width),J(i,"height","4px"),J(i,"position","absolute"),J(i,"background",e[44].background),J(i,"left",e[44].position)},m(d,s){oe(d,i,s)},p(d,s){s[0]&8192&&u!==(u=d[44].name)&&L(i,"title",u),s[0]&8192&&J(i,"width",d[44].width),s[0]&8192&&J(i,"background",d[44].background),s[0]&8192&&J(i,"left",d[44].position)},d(d){d&&se(i)}}}function Qs(e){let i,u;return{c(){i=H("div"),L(i,"title",u=e[41].name),J(i,"width","10px"),J(i,"height","5px"),J(i,"position","absolute"),J(i,"top","2px"),J(i,"transform","translate(-50%, -50%)"),J(i,"background",e[41].background),J(i,"left",e[41].position)},m(d,s){oe(d,i,s)},p(d,s){s[0]&512&&u!==(u=d[41].name)&&L(i,"title",u),s[0]&512&&J(i,"background",d[41].background),s[0]&512&&J(i,"left",d[41].position)},d(d){d&&se(i)}}}function jn(e){let i,u;return{c(){i=je("svg"),u=je("path"),L(u,"d",`M170.65984 896l0-768 640 384zM644.66944
148
- 512l-388.66944-233.32864 0 466.65728z`),L(i,"class","icon"),L(i,"viewBox","0 0 1024 1024"),L(i,"version","1.1"),L(i,"xmlns","http://www.w3.org/2000/svg"),L(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),L(i,"width","16"),L(i,"height","16")},m(d,s){oe(d,i,s),z(i,u)},d(d){d&&se(i)}}}function Tn(e){let i,u;return{c(){i=je("svg"),u=je("path"),L(u,"d",`M682.65984 128q53.00224 0 90.50112 37.49888t37.49888 90.50112l0
144
+ `;typeof self!="undefined"&&self.Blob&&new Blob([Hd],{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=((Xo=e.contentWindow)==null?void 0:Xo.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}Au();function rc(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 Yd=Object.freeze(Object.defineProperty({__proto__:null,default:rc},Symbol.toStringTag,{value:"Module"}));function Jd(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||l,scrollIntoView:r.prototype.scrollIntoView},n=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function o(y){const b=["MSIE ","Trident/","Edge/"];return new RegExp(b.join("|")).test(y)}const u=o(e.navigator.userAgent)?1:0;function l(y,b){this.scrollLeft=y,this.scrollTop=b}function c(y){return .5*(1-Math.cos(Math.PI*y))}function a(y){if(y===null||typeof y!="object"||y.behavior===void 0||y.behavior==="auto"||y.behavior==="instant")return!0;if(typeof y=="object"&&y.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+y.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(y,b){if(b==="Y")return y.clientHeight+u<y.scrollHeight;if(b==="X")return y.clientWidth+u<y.scrollWidth}function f(y,b){const _=e.getComputedStyle(y,null)["overflow"+b];return _==="auto"||_==="scroll"}function h(y){const b=d(y,"Y")&&f(y,"Y"),_=d(y,"X")&&f(y,"X");return b||_}function m(y){for(;y!==t.body&&h(y)===!1;)y=y.parentNode||y.host;return y}function p(y){const b=n();let _,S,v,w=(b-y.startTime)/i;w=w>1?1:w,_=c(w),S=y.startX+(y.x-y.startX)*_,v=y.startY+(y.y-y.startY)*_,y.method.call(y.scrollable,S,v),(S!==y.x||v!==y.y)&&e.requestAnimationFrame(p.bind(e,y))}function g(y,b,_){let S,v,w,E;const C=n();y===t.body?(S=e,v=e.scrollX||e.pageXOffset,w=e.scrollY||e.pageYOffset,E=s.scroll):(S=y,v=y.scrollLeft,w=y.scrollTop,E=l),p({scrollable:S,method:E,startTime:C,startX:v,startY:w,x:b,y:_})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(a(arguments[0])===!0){s.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}g.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(a(arguments[0])){s.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}g.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(a(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");s.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}const y=arguments[0].left,b=arguments[0].top;g.call(this,this,typeof y=="undefined"?this.scrollLeft:~~y,typeof b=="undefined"?this.scrollTop:~~b)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(a(arguments[0])===!0){s.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(a(arguments[0])===!0){s.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const y=m(this),b=y.getBoundingClientRect(),_=this.getBoundingClientRect();y!==t.body?(g.call(this,y,y.scrollLeft+_.left-b.left,y.scrollTop+_.top-b.top),e.getComputedStyle(y).position!=="fixed"&&e.scrollBy({left:b.left,top:b.top,behavior:"smooth"})):e.scrollBy({left:_.left,top:_.top,behavior:"smooth"})}}class Xd{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 hl(e,t){if(e.type===ue.IncrementalSnapshot&&e.data.source===Y.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
+ Copyright (c) Microsoft Corporation.
146
+
147
+ Permission to use, copy, modify, and/or distribute this software for any
148
+ purpose with or without fee is hereby granted.
149
+
150
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
151
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
152
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
153
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
154
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
155
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
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
149
158
  512q0 53.00224-37.49888 90.50112t-90.50112
150
159
  37.49888-90.50112-37.49888-37.49888-90.50112l0-512q0-53.00224
151
160
  37.49888-90.50112t90.50112-37.49888zM341.34016 128q53.00224 0
@@ -158,7 +167,25 @@ or you can use record.mirror to access the mirror instance during recording.`;le
158
167
  12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928zM682.65984
159
168
  213.34016q-17.67424 0-30.16704 12.4928t-12.4928 30.16704l0 512q0
160
169
  17.67424 12.4928 30.16704t30.16704 12.4928 30.16704-12.4928
161
- 12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z`),L(i,"class","icon"),L(i,"viewBox","0 0 1024 1024"),L(i,"version","1.1"),L(i,"xmlns","http://www.w3.org/2000/svg"),L(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),L(i,"width","16"),L(i,"height","16")},m(d,s){oe(d,i,s),z(i,u)},d(d){d&&se(i)}}}function Ks(e){let i,u=e[38]+"",d,s,c,p,m;function a(){return e[28](e[38])}return{c(){i=H("button"),d=he(u),s=he("x"),i.disabled=c=e[10]==="skipping",L(i,"class","svelte-189zk2r"),ve(i,"active",e[38]===e[1]&&e[10]!=="skipping")},m(h,t){oe(h,i,t),z(i,d),z(i,s),p||(m=ye(i,"click",a),p=!0)},p(h,t){e=h,t[0]&8&&u!==(u=e[38]+"")&&Te(d,u),t[0]&1024&&c!==(c=e[10]==="skipping")&&(i.disabled=c),t[0]&1034&&ve(i,"active",e[38]===e[1]&&e[10]!=="skipping")},d(h){h&&se(i),p=!1,m()}}}function Wn(e){let i,u,d=e[2]&&Hs(e);return{c(){d&&d.c(),i=Ui()},m(s,c){d&&d.m(s,c),oe(s,i,c),u=!0},p(s,c){s[2]?d?(d.p(s,c),c[0]&4&&ne(d,1)):(d=Hs(s),d.c(),ne(d,1),d.m(i.parentNode,i)):d&&(ni(),Se(d,1,1,()=>{d=null}),oi())},i(s){u||(ne(d),u=!0)},o(s){Se(d),u=!1},d(s){s&&se(i),d&&d.d(s)}}}function Xs(e,i,u){const d=i-e;return(100-(i-u)/d*100).toFixed(2)}function $n(e,i,u){const d=zi();let{replayer:s}=i,{showController:c}=i,{autoPlay:p}=i,{skipInactive:m}=i,{speedOption:a}=i,{speed:h=a.length?a[0]:1}=i,{tags:t={}}=i,{inactiveColor:o}=i,n=0,r,f,l,g,x,b,v;const C=()=>{},y=()=>{},w=()=>{},S=(k,j)=>{u(6,n=k),(typeof j=="boolean"?j:r==="playing")?s.play(k):s.pause(k)},P=(k,j,D=!1,M=void 0)=>{u(6,n=k),s.play(k)},A=k=>{const j=l.getBoundingClientRect();let M=(k.clientX-j.left)/j.width;M<0?M=0:M>1&&(M=1);const K=g.totalTime*M;S(K)},_=k=>{k.key==="ArrowLeft"?S(n-5):k.key==="ArrowRight"&&S(n+5)},U=k=>{u(1,h=k),s.setConfig({speed:h})},I=()=>{u(0,m=!m)},O=()=>Promise.resolve().then(()=>{u(8,g=s.getMetaData())});si(()=>{s.pause()});function T(k){fe[k?"unshift":"push"](()=>{l=k,u(11,l)})}const Y=k=>U(k);function q(k){m=k,u(0,m)}const $=()=>d("fullscreen");return e.$$set=k=>{"replayer"in k&&u(17,s=k.replayer),"showController"in k&&u(2,c=k.showController),"autoPlay"in k&&u(18,p=k.autoPlay),"skipInactive"in k&&u(0,m=k.skipInactive),"speedOption"in k&&u(3,a=k.speedOption),"speed"in k&&u(1,h=k.speed),"tags"in k&&u(19,t=k.tags),"inactiveColor"in k&&u(20,o=k.inactiveColor)},e.$$.update=()=>{if(e.$$.dirty[0]&64&&d("ui-update-current-time",{payload:n}),e.$$.dirty[0]&128&&d("ui-update-player-state",{payload:r}),e.$$.dirty[0]&131072&&u(8,g=s.getMetaData()),e.$$.dirty[0]&320){const k=Math.min(1,n/g.totalTime);u(12,x=`${100*k}%`),d("ui-update-progress",{payload:k})}e.$$.dirty[0]&655360&&u(9,b=(()=>{const{context:k}=s.service.state,j=k.events.length,D=k.events[0].timestamp,M=k.events[j-1].timestamp,K=[];return k.events.forEach(R=>{if(R.type===_i.Custom){const E={name:R.data.tag,background:t[R.data.tag]||"rgb(73, 80, 246)",position:`${Xs(D,M,R.timestamp)}%`};K.push(E)}}),K})()),e.$$.dirty[0]&1179648&&u(13,v=(()=>{try{const{context:k}=s.service.state,j=k.events.length,D=k.events[0].timestamp,M=k.events[j-1].timestamp,K=Fn(k.events,s.config.inactivePeriodThreshold),R=(E,F,B,N)=>{const X=F-E;return((N-B)/X*100).toFixed(2)};return K.map(E=>({name:"inactive period",background:o,position:`${Xs(D,M,E[0])}%`,width:`${R(D,M,E[0],E[1])}%`}))}catch(k){return[]}})())},[m,h,c,a,C,U,n,r,g,b,f,l,x,v,d,A,_,s,p,t,o,y,w,S,P,I,O,T,Y,q,$]}class Vn extends cr{constructor(i){super(),hr(this,i,$n,Wn,ar,{replayer:17,showController:2,autoPlay:18,skipInactive:0,speedOption:3,speed:1,tags:19,inactiveColor:20,toggle:4,play:21,pause:22,goto:23,playRange:24,setSpeed:5,toggleSkipInactive:25,triggerUpdateMeta:26},null,[-1,-1])}get toggle(){return this.$$.ctx[4]}get play(){return this.$$.ctx[21]}get pause(){return this.$$.ctx[22]}get goto(){return this.$$.ctx[23]}get playRange(){return this.$$.ctx[24]}get setSpeed(){return this.$$.ctx[5]}get toggleSkipInactive(){return this.$$.ctx[25]}get triggerUpdateMeta(){return this.$$.ctx[26]}}function Zs(e){let i,u,d={replayer:e[7],showController:e[3],autoPlay:e[1],speedOption:e[2],skipInactive:e[0],tags:e[4],inactiveColor:e[5]};return i=new Vn({props:d}),e[32](i),i.$on("fullscreen",e[33]),{c(){li(i.$$.fragment)},m(s,c){ur(i,s,c),u=!0},p(s,c){const p={};c[0]&128&&(p.replayer=s[7]),c[0]&8&&(p.showController=s[3]),c[0]&2&&(p.autoPlay=s[1]),c[0]&4&&(p.speedOption=s[2]),c[0]&1&&(p.skipInactive=s[0]),c[0]&16&&(p.tags=s[4]),c[0]&32&&(p.inactiveColor=s[5]),i.$set(p)},i(s){u||(ne(i.$$.fragment,s),u=!0)},o(s){Se(i.$$.fragment,s),u=!1},d(s){e[32](null),fr(i,s)}}}function Gn(e){let i,u,d,s,c=e[7]&&Zs(e);return{c(){i=H("div"),u=H("div"),d=ee(),c&&c.c(),L(u,"class","rr-player__frame"),L(u,"style",e[11]),L(i,"class","rr-player"),L(i,"style",e[12])},m(p,m){oe(p,i,m),z(i,u),e[31](u),z(i,d),c&&c.m(i,null),e[34](i),s=!0},p(p,m){(!s||m[0]&2048)&&L(u,"style",p[11]),p[7]?c?(c.p(p,m),m[0]&128&&ne(c,1)):(c=Zs(p),c.c(),ne(c,1),c.m(i,null)):c&&(ni(),Se(c,1,1,()=>{c=null}),oi()),(!s||m[0]&4096)&&L(i,"style",p[12])},i(p){s||(ne(c),s=!0)},o(p){Se(c),s=!1},d(p){p&&se(i),e[31](null),c&&c.d(),e[34](null)}}}const Jn=80;function Hn(e,i,u){let{width:d=1024}=i,{height:s=576}=i,{maxScale:c=1}=i,{events:p}=i,{skipInactive:m=!0}=i,{autoPlay:a=!0}=i,{speedOption:h=[1,2,4,8]}=i,{speed:t=1}=i,{showController:o=!0}=i,{tags:n={}}=i,{inactiveColor:r="#D4D4D4"}=i,f;const l=()=>f.getMirror();let g,x,b,v,C;const y=(R,E)=>{const F=d/E.width,B=s/E.height,N=[F,B];c&&N.push(c),R.style.transform=`scale(${Math.min(...N)})translate(-50%, -50%)`},w=()=>{y(f.wrapper,{width:f.iframe.offsetWidth,height:f.iframe.offsetHeight})},S=()=>{g&&(Un()?Ln():In(g))},P=(R,E)=>{switch(f.on(R,E),R){case"ui-update-current-time":case"ui-update-progress":case"ui-update-player-state":b.$on(R,({detail:F})=>E(F))}},A=R=>{f.addEvent(R),b.triggerUpdateMeta()},_=()=>f.getMetaData(),U=()=>f,I=()=>{b.toggle()},O=R=>{b.setSpeed(R)},T=()=>{b.toggleSkipInactive()},Y=()=>{b.play()},q=()=>{b.pause()},$=(R,E)=>{b.goto(R,E)},k=(R,E,F=!1,B=void 0)=>{b.playRange(R,E,F,B)};si(()=>{});function j(R){fe[R?"unshift":"push"](()=>{x=R,u(9,x)})}function D(R){fe[R?"unshift":"push"](()=>{b=R,u(10,b)})}const M=()=>S();function K(R){fe[R?"unshift":"push"](()=>{g=R,u(8,g)})}return e.$$set=R=>{u(39,i=Mr(Mr({},i),Ir(R))),"width"in R&&u(13,d=R.width),"height"in R&&u(14,s=R.height),"maxScale"in R&&u(15,c=R.maxScale),"events"in R&&u(16,p=R.events),"skipInactive"in R&&u(0,m=R.skipInactive),"autoPlay"in R&&u(1,a=R.autoPlay),"speedOption"in R&&u(2,h=R.speedOption),"speed"in R&&u(17,t=R.speed),"showController"in R&&u(3,o=R.showController),"tags"in R&&u(4,n=R.tags),"inactiveColor"in R&&u(5,r=R.inactiveColor)},e.$$.update=()=>{e.$$.dirty[0]&24576&&u(11,v=Ws({width:`${d}px`,height:`${s}px`})),e.$$.dirty[0]&24584&&u(12,C=Ws({width:`${d}px`,height:`${s+(o?Jn:0)}px`}))},i=Ir(i),[m,a,h,o,n,r,S,f,g,x,b,v,C,d,s,c,p,t,l,w,P,A,_,U,I,O,T,Y,q,$,k,j,D,M,K]}let Yn=class extends cr{constructor(i){super(),hr(this,i,Hn,Gn,ar,{width:13,height:14,maxScale:15,events:16,skipInactive:0,autoPlay:1,speedOption:2,speed:17,showController:3,tags:4,inactiveColor:5,getMirror:18,triggerResize:19,toggleFullscreen:6,addEventListener:20,addEvent:21,getMetaData:22,getReplayer:23,toggle:24,setSpeed:25,toggleSkipInactive:26,play:27,pause:28,goto:29,playRange:30},null,[-1,-1])}get getMirror(){return this.$$.ctx[18]}get triggerResize(){return this.$$.ctx[19]}get toggleFullscreen(){return this.$$.ctx[6]}get addEventListener(){return this.$$.ctx[20]}get addEvent(){return this.$$.ctx[21]}get getMetaData(){return this.$$.ctx[22]}get getReplayer(){return this.$$.ctx[23]}get toggle(){return this.$$.ctx[24]}get setSpeed(){return this.$$.ctx[25]}get toggleSkipInactive(){return this.$$.ctx[26]}get play(){return this.$$.ctx[27]}get pause(){return this.$$.ctx[28]}get goto(){return this.$$.ctx[29]}get playRange(){return this.$$.ctx[30]}};class Ei extends Yn{constructor(i){super({target:i.target,props:i.data||i.props})}}exports.Player=Ei;exports.default=Ei;
170
+ 12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z"></path></svg>`),Tp=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="Pause"><path d="M170.65984 896l0-768 640 384zM644.66944
171
+ 512l-388.66944-233.32864 0 466.65728z"></path></svg>`),Pp=Lr("<button> </button>"),kp=Lr(`<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
+ 18.4-48.8 18.4-68 0-18.4-18.4-18.4-48.8 0-68L800 156 692 156c-26.4
173
+ 0-48-21.6-48-48 0-26.4 21.6-48 48-48l224 0c26.4 0 48 21.6 48 48l0
174
+ 224C964 358.4 942.4 380 916 380zM231.2 860l108.8 0c26.4 0 48 21.6 48
175
+ 48s-21.6 48-48 48l-224 0c-26.4 0-48-21.6-48-48l0-224c0-26.4 21.6-48
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 Ip(e,t){ro(t,!1);const r=$f();let i=ce(t,"replayer",8),s=ce(t,"showController",8),n=ce(t,"autoPlay",8),o=ce(t,"skipInactive",12),u=ce(t,"speedOption",8),l=ce(t,"speed",28,()=>u().length?u()[0]:1),c=ce(t,"tags",24,()=>({})),a=ce(t,"inactiveColor",8),d=Oe(0),f=null,h=Oe(),m=Oe(),p=Oe(),g,y=!1,b=null,_=null,S=Oe(),v=Oe();function w(P,B,X){const k=B-P;return(100-(B-X)/k*100).toFixed(2)}let E=Oe(),C=Oe();const A=()=>{N();function P(){K(d,i().getCurrentTime()),y&&M(d)>=y&&(_?ve(_.start,_.end,!0,void 0):(i().pause(),b&&(b(),b=null))),M(d)<M(S).totalTime&&(f=requestAnimationFrame(P))}f=requestAnimationFrame(P)},N=()=>{f&&(cancelAnimationFrame(f),f=null)},U=()=>{switch(M(h)){case"playing":x();break;case"paused":T();break}},T=()=>{M(h)==="paused"&&(g?(i().play(),g=!1):i().play(M(d)))},x=()=>{M(h)==="playing"&&(i().pause(),y=!1)},me=(P,B)=>{K(d,P),y=!1,g=!1,(typeof B=="boolean"?B:M(h)==="playing")?i().play(P):i().pause(P)},ve=(P,B,X=!1,k=void 0)=>{X?_={start:P,end:B}:_=null,K(d,P),y=B,b=k||null,i().play(P)},ie=P=>{if(M(m)==="skipping")return;const B=M(p).getBoundingClientRect();let k=(P.clientX-B.left)/B.width;k<0?k=0:k>1&&(k=1);const oe=M(S).totalTime*k;me(oe)},F=P=>{M(m)!=="skipping"&&(P.key==="ArrowLeft"?me(M(d)-5):P.key==="ArrowRight"&&me(M(d)+5))},se=P=>{let B=M(h)==="playing";l(P),B&&i().pause(),i().setConfig({speed:l()}),B&&i().play(M(d))},Re=()=>{o(!o())},j=()=>Promise.resolve().then(()=>{K(S,i().getMetaData())});lo(()=>{K(h,i().service.state.value),K(m,i().speedService.state.value),i().on("state-change",P=>{const{player:B,speed:X}=P;if(B!=null&&B.value&&M(h)!==B.value)switch(K(h,B.value),M(h)){case"playing":A();break;case"paused":N();break}X!=null&&X.value&&M(m)!==X.value&&K(m,X.value)}),i().on("finish",()=>{g=!0,b&&(b(),b=null)}),n()&&i().play()}),Vf(()=>{o()!==i().config.skipInactive&&i().setConfig({skipInactive:o()})}),Ru(()=>{i().pause(),N()}),Ut(()=>M(d),()=>{r("ui-update-current-time",{payload:M(d)})}),Ut(()=>M(h),()=>{r("ui-update-player-state",{payload:M(h)})}),Ut(()=>Ue(i()),()=>{K(S,i().getMetaData())}),Ut(()=>(M(d),M(S)),()=>{const P=Math.min(1,M(d)/M(S).totalTime);K(v,`${100*P}%`),r("ui-update-progress",{payload:P})}),Ut(()=>(Ue(i()),Ue(c())),()=>{K(E,(()=>{const{context:P}=i().service.state,B=P.events.length,X=P.events[0].timestamp,k=P.events[B-1].timestamp,oe=[];return P.events.forEach(ne=>{if(ne.type===gc.Custom){const Z={name:ne.data.tag,background:c()[ne.data.tag]||"rgb(73, 80, 246)",position:`${w(X,k,ne.timestamp)}%`};oe.push(Z)}}),oe})())}),Ut(()=>(Ue(i()),Ue(a())),()=>{K(C,(()=>{try{const{context:P}=i().service.state,B=P.events.length,X=P.events[0].timestamp,k=P.events[B-1].timestamp,oe=Rp(P.events,i().config.inactivePeriodThreshold),ne=(Z,De,ht,ui)=>{const cs=De-Z;return((ui-ht)/cs*100).toFixed(2)};return oe.map(Z=>({name:"inactive period",background:a(),position:`${w(X,k,Z[0])}%`,width:`${ne(X,k,Z[0],Z[1])}%`}))}catch(P){return[]}})())}),uu();var G={toggle:U,play:T,pause:x,goto:me,playRange:ve,setSpeed:se,toggleSkipInactive:Re,triggerUpdateMeta:j};Nu();var Se=Lf(),O=bf(Se);{var ye=P=>{var B=kp(),X=it(B),k=it(X),oe=it(k,!0);rt(k);var ne=Ve(k,2);let Z;var De=it(ne),ht=Ve(De,2);ds(ht,1,()=>M(C),hs,(be,re)=>{var Me=Op();_r(()=>{var Ze,dt,Ur;rr(Me,"title",(M(re),_e(()=>M(re).name))),Sr(Me,`width: ${(Ze=(M(re),_e(()=>M(re).width)))!=null?Ze:""};height: 4px;position: absolute;background: ${(dt=(M(re),_e(()=>M(re).background)))!=null?dt:""};left:
178
+ ${(Ur=(M(re),_e(()=>M(re).position)))!=null?Ur:""};`)}),St(be,Me)});var ui=Ve(ht,2);ds(ui,1,()=>M(E),hs,(be,re)=>{var Me=Ap();_r(()=>{var Ze,dt;rr(Me,"title",(M(re),_e(()=>M(re).name))),Sr(Me,`width: 10px;height: 5px;position: absolute;top:
179
+ 2px;transform: translate(-50%, -50%);background: ${(Ze=(M(re),_e(()=>M(re).background)))!=null?Ze:""};left:
180
+ ${(dt=(M(re),_e(()=>M(re).position)))!=null?dt:""};`)}),St(be,Me)});var cs=Ve(ui,2);rt(ne),Ni(ne,be=>K(p,be),()=>M(p));var fs=Ve(ne,2),No=it(fs,!0);rt(fs),rt(X);var Oo=Ve(X,2),ci=it(Oo),yc=it(ci);{var wc=be=>{var re=Dp();St(be,re)},bc=be=>{var re=Tp();St(be,re)};Fn(yc,be=>{M(h)==="playing"?be(wc):be(bc,!1)})}rt(ci);var Ao=Ve(ci,2);ds(Ao,1,u,hs,(be,re)=>{var Me=Pp();let Ze;var dt=it(Me);rt(Me),_r(()=>{var Ur;Me.disabled=M(m)==="skipping",Ze=Bn(Me,1,"svelte-14v7dbr",null,Ze,{active:M(re)===l()&&M(m)!=="skipping"}),Mi(dt,`${(Ur=M(re))!=null?Ur:""}x`)}),Wr("click",Me,()=>se(M(re))),St(be,Me)});var Do=Ve(Ao,2);{let be=Ji(()=>M(m)==="skipping");Np(Do,{id:"skip",get disabled(){return M(be)},label:"skip inactive",get checked(){return o()},set checked(re){o(re)},$$legacy:!0})}var _c=Ve(Do,2);rt(Oo),rt(B),_r((be,re,Me)=>{var Ze,dt;Mi(oe,be),Z=Bn(ne,1,"rr-progress svelte-14v7dbr",null,Z,{disabled:M(m)==="skipping"}),rr(ne,"aria-valuenow",re),Sr(De,`width: ${(Ze=M(v))!=null?Ze:""}`),Sr(cs,`left: ${(dt=M(v))!=null?dt:""}`),Mi(No,Me)},[()=>(Ue(Si),M(d),_e(()=>Si(M(d)))),()=>(M(v),_e(()=>parseFloat(M(v)))),()=>(Ue(Si),M(S),_e(()=>Si(M(S).totalTime)))]),Wr("click",ne,ie),Wr("keydown",ne,F),Wr("click",ci,U),Wr("click",_c,()=>r("fullscreen")),St(P,B)};Fn(O,P=>{s()&&P(ye)})}return St(e,Se),he(t,"toggle",U),he(t,"play",T),he(t,"pause",x),he(t,"goto",me),he(t,"playRange",ve),he(t,"setSpeed",se),he(t,"toggleSkipInactive",Re),he(t,"triggerUpdateMeta",j),io(G)}var Lp=Lr('<div class="rr-player svelte-1qub0ki"><div class="rr-player__frame svelte-1qub0ki"></div> <!></div>');function Fp(e,t){const r=sh(t,["children","$$slots","$$events","$$legacy"]);ro(t,!1);let i=ce(t,"width",12,1024),s=ce(t,"height",12,576),n=ce(t,"maxScale",8,1),o=ce(t,"events",8),u=ce(t,"skipInactive",8,!0),l=ce(t,"autoPlay",8,!0),c=ce(t,"speedOption",24,()=>[1,2,4,8]),a=ce(t,"speed",8,1),d=ce(t,"showController",8,!0),f=ce(t,"tags",24,()=>({})),h=ce(t,"inactiveColor",8,"#D4D4D4"),m=Oe();const p=()=>M(m).getMirror(),g=80;let y=Oe(),b=Oe(),_,S=i(),v=s(),w=Oe(),E=Oe(),C=Oe();const A=(k,oe)=>{const ne=i()/oe.width,Z=s()/oe.height,De=[ne,Z];n()&&De.push(n()),k.style.transform=`scale(${Math.min(...De)})translate(-50%, -50%)`},N=()=>{A(M(m).wrapper,{width:M(m).iframe.offsetWidth,height:M(m).iframe.offsetHeight})},U=()=>{M(y)&&(Rl()?Ep():Sp(M(y)))},T=(k,oe)=>{switch(M(m).on(k,oe),k){case"ui-update-current-time":case"ui-update-progress":case"ui-update-player-state":M(w).$on(k,({detail:ne})=>oe(ne))}},x=k=>{M(m).addEvent(k),M(w).triggerUpdateMeta()},me=()=>M(m).getMetaData(),ve=()=>M(m),ie=()=>{M(w).toggle()},F=k=>{M(w).setSpeed(k)},se=()=>{M(w).toggleSkipInactive()},Re=()=>{M(w).play()},j=()=>{M(w).pause()},G=(k,oe)=>{M(w).goto(k,oe)},Se=(k,oe,ne=!1,Z=void 0)=>{M(w).playRange(k,oe,ne,Z)};lo(()=>{if(c()!==void 0&&Ml(c())!=="array")throw new Error("speedOption must be array");if(c().forEach(k=>{if(Ml(k)!=="number")throw new Error("item of speedOption must be number")}),c().indexOf(a())<0)throw new Error(`speed must be one of speedOption,
181
+ current config:
182
+ {
183
+ ...
184
+ speed: ${a()},
185
+ speedOption: [${c().toString()}]
186
+ ...
187
+ }
188
+ `);K(m,new lp(o(),H({speed:a(),root:M(b),unpackFn:_p},r))),M(m).on("resize",k=>{A(M(m).wrapper,k)}),_=Cp(()=>{Rl()?setTimeout(()=>{S=i(),v=s(),i(M(y).offsetWidth),s(M(y).offsetHeight-(d()?g:0)),A(M(m).wrapper,{width:M(m).iframe.offsetWidth,height:M(m).iframe.offsetHeight})},0):(i(S),s(v),A(M(m).wrapper,{width:M(m).iframe.offsetWidth,height:M(m).iframe.offsetHeight}))})}),Ru(()=>{_&&_()}),Ut(()=>(Ue(i()),Ue(s())),()=>{K(E,Cl({width:`${i()}px`,height:`${s()}px`}))}),Ut(()=>(Ue(i()),Ue(s()),Ue(d())),()=>{K(C,Cl({width:`${i()}px`,height:`${s()+(d()?g:0)}px`}))}),uu();var O={getMirror:p,triggerResize:N,toggleFullscreen:U,addEventListener:T,addEvent:x,getMetaData:me,getReplayer:ve,toggle:ie,setSpeed:F,toggleSkipInactive:se,play:Re,pause:j,goto:G,playRange:Se};Nu();var ye=Lp(),P=it(ye);Ni(P,k=>K(b,k),()=>M(b));var B=Ve(P,2);{var X=k=>{Ni(Ip(k,{get replayer(){return M(m)},get showController(){return d()},get autoPlay(){return l()},get speedOption(){return c()},get skipInactive(){return u()},get tags(){return f()},get inactiveColor(){return h()},$$events:{fullscreen:()=>U()},$$legacy:!0}),oe=>K(w,oe),()=>M(w))};Fn(B,k=>{M(m)&&k(X)})}return rt(ye),Ni(ye,k=>K(y,k),()=>M(y)),_r(()=>{Sr(ye,M(C)),Sr(P,M(E))}),St(e,ye),he(t,"getMirror",p),he(t,"triggerResize",N),he(t,"toggleFullscreen",U),he(t,"addEventListener",T),he(t,"addEvent",x),he(t,"getMetaData",me),he(t,"getReplayer",ve),he(t,"toggle",ie),he(t,"setSpeed",F),he(t,"toggleSkipInactive",se),he(t,"play",Re),he(t,"pause",j),he(t,"goto",G),he(t,"playRange",Se),io(O)}const Up=nh(Fp);class vc extends Up{constructor(t){var r;super({target:t.target,props:(r=t.data)!=null?r:t.props})}}exports.Player=vc;exports.default=vc;
162
189
  if (typeof module.exports == "object" && typeof exports == "object") {
163
190
  var __cp = (to, from, except, desc) => {
164
191
  if ((from && typeof from === "object") || typeof from === "function") {