@posthog/rrweb-snapshot 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rrweb-snapshot.cjs +3181 -3382
- package/dist/rrweb-snapshot.cjs.map +1 -1
- package/dist/rrweb-snapshot.js +3181 -3382
- package/dist/rrweb-snapshot.js.map +1 -1
- package/dist/rrweb-snapshot.umd.cjs +3185 -3381
- package/dist/rrweb-snapshot.umd.cjs.map +3 -3
- package/dist/rrweb-snapshot.umd.min.cjs +21 -21
- package/dist/rrweb-snapshot.umd.min.cjs.map +3 -3
- package/package.json +2 -2
|
@@ -11,33 +11,33 @@
|
|
|
11
11
|
}(this, () => {
|
|
12
12
|
var exports = {};
|
|
13
13
|
var module = { exports };
|
|
14
|
-
"use strict";var Mr=Object.defineProperty,_r=Object.defineProperties;var Pr=Object.getOwnPropertyDescriptors;var re=Object.getOwnPropertySymbols;var dt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable;var pt=(e,t,o)=>t in e?Mr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,B=(e,t)=>{for(var o in t||(t={}))dt.call(t,o)&&pt(e,o,t[o]);if(re)for(var o of re(t))mt.call(t,o)&&pt(e,o,t[o]);return e},Q=(e,t)=>_r(e,Pr(t));var Ce=(e,t)=>{var o={};for(var a in e)dt.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&re)for(var a of re(e))t.indexOf(a)<0&&mt.call(e,a)&&(o[a]=e[a]);return o};var kr=Object.defineProperty,Ir=(e,t,o)=>t in e?kr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,gt=(e,t,o)=>Ir(e,typeof t!="symbol"?t+"":t,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var M=(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))(M||{});const yt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},wt={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ie={};function Lr(e){var t,o;const a=(o=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:o.call(t,e);if(a&&globalThis[a])return globalThis[a]}function et(e){if(ie[e])return ie[e];const t=Lr(e)||globalThis[e],o=t.prototype,a=e in yt?yt[e]:void 0,i=!!(a&&a.every(d=>{var n,u;return!!((u=(n=Object.getOwnPropertyDescriptor(o,d))==null?void 0:n.get)!=null&&u.toString().includes("[native code]"))})),p=e in wt?wt[e]:void 0,f=!!(p&&p.every(d=>{var n;return typeof o[d]=="function"&&((n=o[d])==null?void 0:n.toString().includes("[native code]"))}));if(i&&f)return ie[e]=t.prototype,t.prototype;try{const d=document.createElement("iframe");document.body.appendChild(d);const n=d.contentWindow;if(!n)return t.prototype;const u=n[e].prototype;return document.body.removeChild(d),u?ie[e]=u:o}catch(d){return o}}const ve={};function j(e,t,o){var a;const i=`${e}.${String(o)}`;if(ve[i])return ve[i].call(t);const p=et(e),f=(a=Object.getOwnPropertyDescriptor(p,o))==null?void 0:a.get;return f?(ve[i]=f,f.call(t)):t[o]}const xe={};function er(e,t,o){const a=`${e}.${String(o)}`;if(xe[a])return xe[a].bind(t);const p=et(e)[o];return typeof p!="function"?t[o]:(xe[a]=p,p.bind(t))}function Dr(e){return j("Node",e,"childNodes")}function Tr(e){return j("Node",e,"parentNode")}function Ur(e){return j("Node",e,"parentElement")}function Fr(e){return j("Node",e,"textContent")}function zr(e,t){return er("Node",e,"contains")(t)}function qr(e){return er("Node",e,"getRootNode")()}function Br(e){return!e||!("host"in e)?null:j("ShadowRoot",e,"host")}function Wr(e){return e.styleSheets}function jr(e){return!e||!("shadowRoot"in e)?null:j("Element",e,"shadowRoot")}function $r(e,t){return j("Element",e,"querySelector")(t)}function Vr(e,t){return j("Element",e,"querySelectorAll")(t)}function Gr(){return et("MutationObserver").constructor}function Hr(e,t,o){try{if(!(t in e))return()=>{};const a=e[t],i=o(a);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:a}})),e[t]=i,()=>{e[t]=a}}catch(a){return()=>{}}}const D={childNodes:Dr,parentNode:Tr,parentElement:Ur,textContent:Fr,contains:zr,getRootNode:qr,host:Br,styleSheets:Wr,shadowRoot:jr,querySelector:$r,querySelectorAll:Vr,mutationObserver:Gr,patch:Hr};function fe(e){return e.nodeType===e.ELEMENT_NODE}function tr(e){const t=e&&"host"in e&&"mode"in e&&D.host(e)||null;return!!(t&&"shadowRoot"in t&&D.shadowRoot(t)===e)}function oe(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Jr(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function rr(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const o=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?o.push("layer"):e.layerName&&o.push(`layer(${e.layerName})`),e.supportsText&&o.push(`supports(${e.supportsText})`),e.media.length&&o.push(e.media.mediaText),o.join(" ")+";"}function ae(e){try{const t=e.rules||e.cssRules;if(!t)return null;let o=e.href;!o&&e.ownerNode&&e.ownerNode.ownerDocument&&(o=e.ownerNode.ownerDocument.location.href);const a=Array.from(t,i=>ir(i,o)).join("");return Jr(a)}catch(t){return null}}function ir(e,t){if(nr(e)){let o;try{o=ae(e.styleSheet)||rr(e)}catch(a){o=e.cssText}return e.styleSheet.href?Z(o,e.styleSheet.href):o}else{let o=e.cssText;return or(e)&&e.selectorText.includes(":")&&(o=sr(o)),t?Z(o,t):o}}function sr(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function nr(e){return"styleSheet"in e}function or(e){return"selectorText"in e}class ce{constructor(){gt(this,"idNodeMap",new Map),gt(this,"nodeMetaMap",new WeakMap)}getId(t){var o;if(!t)return-1;const a=(o=this.getMeta(t))==null?void 0:o.id;return a!=null?a:-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 o=this.getId(t);this.idNodeMap.delete(o),t.childNodes&&t.childNodes.forEach(a=>this.removeNodeFromMap(a))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,o){const a=o.id;this.idNodeMap.set(a,t),this.nodeMetaMap.set(t,o)}replace(t,o){const a=this.getNode(t);if(a){const i=this.nodeMetaMap.get(a);i&&this.nodeMetaMap.set(o,i)}this.idNodeMap.set(t,o)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Yr(){return new ce}function lr({element:e,maskInputOptions:t,tagName:o,type:a,value:i,maskInputFn:p}){let f=i||"";const d=a&&X(a);return(t[o.toLowerCase()]||d&&t[d])&&(p?f=p(f,e):f="*".repeat(f.length)),f}function X(e){return e.toLowerCase()}const bt="__rrweb_original__";function ar(e){const t=e.getContext("2d");if(!t)return!0;const o=50;for(let a=0;a<e.width;a+=o)for(let i=0;i<e.height;i+=o){const p=t.getImageData,f=bt in p?p[bt]:p;if(new Uint32Array(f.call(t,a,i,Math.min(o,e.width-a),Math.min(o,e.height-i)).data.buffer).some(n=>n!==0))return!1}return!0}function ur(e,t){return!e||!t||e.type!==t.type?!1:e.type===M.Document?e.compatMode===t.compatMode:e.type===M.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===M.Comment||e.type===M.Text||e.type===M.CDATA?e.textContent===t.textContent:e.type===M.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function fr(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?X(t):null}function tt(e,t){var p;let o;try{o=new URL(e,t!=null?t:window.location.href)}catch(f){return null}const a=/\.([0-9a-z]+)(?:$)/i,i=o.pathname.match(a);return(p=i==null?void 0:i[1])!=null?p:null}function Kr(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}const Qr=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Zr=/^(?:[a-z+]+:)?\/\//i,Xr=/^www\..*/i,ei=/^(data:)([^,]*),(.*)/i;function Z(e,t){return(e||"").replace(Qr,(o,a,i,p,f,d)=>{const n=i||f||d,u=a||p||"";if(!n)return o;if(Zr.test(n)||Xr.test(n))return`url(${u}${n}${u})`;if(ei.test(n))return`url(${u}${n}${u})`;if(n[0]==="/")return`url(${u}${Kr(t)+n}${u})`;const r=t.split("/"),c=n.split("/");r.pop();for(const l of c)l!=="."&&(l===".."?r.pop():r.push(l));return`url(${u}${r.join("/")}${u})`})}const Ee=new Map,Re=new Map;function le(e){if(!Ee.has(e)){const t=e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"");Ee.set(e,t)}return Ee.get(e)}function cr(e,t){const o=e;if(Re.has(e))return Re.get(e);const a=Array.from(t.childNodes),i=[];let p=0;if(a.length>1&&e&&typeof e=="string"){let f=le(e);const d=f.length/e.length;for(let n=1;n<a.length;n++)if(a[n].textContent&&typeof a[n].textContent=="string"){const u=le(a[n].textContent);let r=3;for(;r<u.length&&(u[r].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,r),1)!==-1);r++);for(;r<u.length;r++){const c=u.substring(0,r),l=f.split(c);let s=-1;if(l.length===2?s=f.indexOf(c):l.length>2&&l[0]===""&&a[n-1].textContent!==""&&(s=f.indexOf(c,1)),s!==-1){let m=Math.floor(s/d);for(;m>0&&m<e.length;){if(p+=1,p>50*a.length)return i.push(e),i;const h=le(e.substring(0,m));if(h.length===s){i.push(e.substring(0,m)),e=e.substring(m),f=f.substring(s);break}else h.length<s?m+=Math.max(1,Math.floor((s-h.length)/d)):m-=Math.max(1,Math.floor((h.length-s)*d))}break}}}}return i.push(e),o&&Re.set(o,i),i}function hr(e,t){return cr(e,t).join("/* rr_split */")}let pr=1;const ti=new RegExp("[^a-z0-9-_:]"),Xe=-2;function dr(){return pr++}function ri(e){if(e instanceof HTMLFormElement)return"form";const t=X(e.tagName);return ti.test(t)?"div":t}let J,St;const ii=/^[^ \t\n\r\u000c]+/,si=/^[, \t\n\r\u000c]+/;function ni(e,t){if(t.trim()==="")return t;let o=0;function a(p){let f;const d=p.exec(t.substring(o));return d?(f=d[0],o+=f.length,f):""}const i=[];for(;a(si),!(o>=t.length);){let p=a(ii);if(p.slice(-1)===",")p=Y(e,p.substring(0,p.length-1)),i.push(p);else{let f="";p=Y(e,p);let d=!1;for(;;){const n=t.charAt(o);if(n===""){i.push((p+f).trim());break}else if(d)n===")"&&(d=!1);else if(n===","){o+=1,i.push((p+f).trim());break}else n==="("&&(d=!0);f+=n,o+=1}}}return i.join(", ")}const Ct=new WeakMap;function Y(e,t){return!t||t.trim()===""?t:rt(e,t)}function oi(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function rt(e,t){let o=Ct.get(e);if(o||(o=e.createElement("a"),Ct.set(e,o)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return o.setAttribute("href",t),o.href}function mr(e,t,o,a){return a&&(o==="src"||o==="href"&&!(t==="use"&&a[0]==="#")||o==="xlink:href"&&a[0]!=="#"||o==="background"&&(t==="table"||t==="td"||t==="th")?Y(e,a):o==="srcset"?ni(e,a):o==="style"?Z(a,rt(e)):t==="object"&&o==="data"?Y(e,a):a)}function gr(e,t,o){return(e==="video"||e==="audio")&&t==="autoplay"}function li(e,t,o){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let a=e.classList.length;a--;){const i=e.classList[a];if(t.test(i))return!0}if(o)return e.matches(o)}catch(a){}return!1}function ue(e,t,o){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return o?ue(D.parentNode(e),t,o):!1;for(let a=e.classList.length;a--;){const i=e.classList[a];if(t.test(i))return!0}return o?ue(D.parentNode(e),t,o):!1}function yr(e,t,o,a){let i;if(fe(e)){if(i=e,!D.childNodes(i).length)return!1}else{if(D.parentElement(e)===null)return!1;i=D.parentElement(e)}try{if(typeof t=="string"){if(a){if(i.closest(`.${t}`))return!0}else if(i.classList.contains(t))return!0}else if(ue(i,t,a))return!0;if(o){if(a){if(i.closest(o))return!0}else if(i.matches(o))return!0}}catch(p){}return!1}function ai(e,t,o){const a=e.contentWindow;if(!a)return;let i=!1,p;try{p=a.document.readyState}catch(d){return}if(p!=="complete"){const d=setTimeout(()=>{i||(t(),i=!0)},o);e.addEventListener("load",()=>{clearTimeout(d),i=!0,t()});return}const f="about:blank";if(a.location.href!==f||e.src===f||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function ui(e,t,o){let a=!1,i;try{i=e.sheet}catch(f){return}if(i)return;const p=setTimeout(()=>{a||(t(),a=!0)},o);e.addEventListener("load",()=>{clearTimeout(p),a=!0,t()})}function fi(e,t){const{doc:o,mirror:a,blockClass:i,blockSelector:p,needsMask:f,inlineStylesheet:d,maskInputOptions:n={},maskTextFn:u,maskInputFn:r,dataURLOptions:c={},inlineImages:l,recordCanvas:s,keepIframeSrcFn:m,newlyAddedElement:h=!1,cssCaptured:g=!1}=t,C=ci(o,a);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:M.Document,childNodes:[],compatMode:e.compatMode}:{type:M.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:M.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return di(e,{doc:o,blockClass:i,blockSelector:p,inlineStylesheet:d,maskInputOptions:n,maskInputFn:r,dataURLOptions:c,inlineImages:l,recordCanvas:s,keepIframeSrcFn:m,newlyAddedElement:h,rootId:C});case e.TEXT_NODE:return hi(e,{doc:o,needsMask:f,maskTextFn:u,rootId:C,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:M.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:M.Comment,textContent:D.textContent(e)||"",rootId:C};default:return!1}}function ci(e,t){if(!t.hasNode(e))return;const o=t.getId(e);return o===1?void 0:o}function hi(e,t){const{needsMask:o,maskTextFn:a,rootId:i,cssCaptured:p}=t,f=D.parentNode(e),d=f&&f.tagName;let n="";const u=d==="STYLE"?!0:void 0,r=d==="SCRIPT"?!0:void 0;return r?n="SCRIPT_PLACEHOLDER":p||(n=D.textContent(e),u&&n&&(n=Z(n,rt(t.doc)))),!u&&!r&&n&&o&&(n=a?a(n,D.parentElement(e)):n.replace(/[\S]/g,"*")),{type:M.Text,textContent:n||"",rootId:i}}function vt(e,t){return Array.from(e.styleSheets).find(o=>o.href===t)}function pi(e){return e.href}function di(e,t){const{doc:o,blockClass:a,blockSelector:i,inlineStylesheet:p,maskInputOptions:f={},maskInputFn:d,dataURLOptions:n={},inlineImages:u,recordCanvas:r,keepIframeSrcFn:c,newlyAddedElement:l=!1,rootId:s}=t,m=li(e,a,i),h=ri(e);let g={};const C=e.attributes.length;for(let y=0;y<C;y++){const v=e.attributes[y];gr(h,v.name,v.value)||(g[v.name]=mr(o,h,X(v.name),v.value))}if(h==="link"&&p){const y=pi(e);if(y){let v=vt(o,y);if(!v&&y.includes(".css")){const w=window.location.origin,x=y.replace(window.location.href,""),R=w+"/"+x;v=vt(o,R)}let b=null;v&&(b=ae(v)),b&&(delete g.rel,delete g.href,g._cssText=b)}}if(h==="style"&&e.sheet){let y=ae(e.sheet);y&&(e.childNodes.length>1&&(y=hr(y,e)),g._cssText=y)}if(h==="input"||h==="textarea"||h==="select"){const y=e.value,v=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&y?g.value=lr({element:e,type:fr(e),tagName:h,value:y,maskInputOptions:f,maskInputFn:d}):v&&(g.checked=v)}if(h==="option"&&(e.selected&&!f.select?g.selected=!0:delete g.selected),h==="dialog"&&e.open)try{g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"}catch(y){g.rr_open_mode="modal",g.ph_rr_could_not_detect_modal=!0}if(h==="canvas"&&r){if(e.__context==="2d")ar(e)||(g.rr_dataURL=e.toDataURL(n.type,n.quality));else if(!("__context"in e)){const y=e.toDataURL(n.type,n.quality),v=o.createElement("canvas");v.width=e.width,v.height=e.height;const b=v.toDataURL(n.type,n.quality);y!==b&&(g.rr_dataURL=y)}}if(h==="img"&&u){J||(J=o.createElement("canvas"),St=J.getContext("2d"));const y=e,v=y.currentSrc||y.getAttribute("src")||"<unknown-src>",b=y.crossOrigin,w=()=>{y.removeEventListener("load",w);try{J.width=y.naturalWidth,J.height=y.naturalHeight,St.drawImage(y,0,0),g.rr_dataURL=J.toDataURL(n.type,n.quality)}catch(x){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?w():y.addEventListener("load",w);return}else console.warn(`Cannot inline img src=${v}! Error: ${x}`)}y.crossOrigin==="anonymous"&&(b?g.crossOrigin=b:y.removeAttribute("crossorigin"))};y.complete&&y.naturalWidth!==0?w():y.addEventListener("load",w)}if(h==="audio"||h==="video"){const y=g;y.rr_mediaState=e.paused?"paused":"played",y.rr_mediaCurrentTime=e.currentTime,y.rr_mediaPlaybackRate=e.playbackRate,y.rr_mediaMuted=e.muted,y.rr_mediaLoop=e.loop,y.rr_mediaVolume=e.volume}if(l||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),m){const{width:y,height:v}=e.getBoundingClientRect();g={class:g.class,rr_width:`${y}px`,rr_height:`${v}px`}}h==="iframe"&&!c(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let S;try{customElements.get(h)&&(S=!0)}catch(y){}return{type:M.Element,tagName:h,attributes:g,childNodes:[],isSVG:oi(e)||void 0,needBlock:m,rootId:s,isCustom:S}}function P(e){return e==null?"":e.toLowerCase()}function mi(e,t){if(t.comment&&e.type===M.Comment)return!0;if(e.type===M.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&tt(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(P(e.attributes.name).match(/^msapplication-tile(image|color)$/)||P(e.attributes.name)==="application-name"||P(e.attributes.rel)==="icon"||P(e.attributes.rel)==="apple-touch-icon"||P(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&P(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(P(e.attributes.property).match(/^(og|twitter|fb):/)||P(e.attributes.name).match(/^(og|twitter):/)||P(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(P(e.attributes.name)==="robots"||P(e.attributes.name)==="googlebot"||P(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(P(e.attributes.name)==="author"||P(e.attributes.name)==="generator"||P(e.attributes.name)==="framework"||P(e.attributes.name)==="publisher"||P(e.attributes.name)==="progid"||P(e.attributes.property).match(/^article:/)||P(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(P(e.attributes.name)==="google-site-verification"||P(e.attributes.name)==="yandex-verification"||P(e.attributes.name)==="csrf-token"||P(e.attributes.name)==="p:domain_verify"||P(e.attributes.name)==="verify-v1"||P(e.attributes.name)==="verification"||P(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function K(e,t){const{doc:o,mirror:a,blockClass:i,blockSelector:p,maskTextClass:f,maskTextSelector:d,skipChild:n=!1,inlineStylesheet:u=!0,maskInputOptions:r={},maskTextFn:c,maskInputFn:l,slimDOMOptions:s,dataURLOptions:m={},inlineImages:h=!1,recordCanvas:g=!1,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:y=5e3,onStylesheetLoad:v,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:w=()=>!1,newlyAddedElement:x=!1,cssCaptured:R=!1}=t;let{needsMask:N}=t,{preserveWhiteSpace:O=!0}=t;N||(N=yr(e,f,d,N===void 0));const I=fi(e,{doc:o,mirror:a,blockClass:i,blockSelector:p,needsMask:N,inlineStylesheet:u,maskInputOptions:r,maskTextFn:c,maskInputFn:l,dataURLOptions:m,inlineImages:h,recordCanvas:g,keepIframeSrcFn:w,newlyAddedElement:x,cssCaptured:R});if(!I)return console.warn(e,"not serialized"),null;let _;a.hasNode(e)?_=a.getId(e):mi(I,s)||!O&&I.type===M.Text&&!I.textContent.replace(/^\s+|\s+$/gm,"").length?_=Xe:_=dr();const E=Object.assign(I,{id:_});if(a.add(e,E),_===Xe)return null;C&&C(e);let G=!n;if(E.type===M.Element){G=G&&!E.needBlock,delete E.needBlock;const L=D.shadowRoot(e);L&&oe(L)&&(E.isShadowHost=!0)}if((E.type===M.Document||E.type===M.Element)&&G){s.headWhitespace&&E.type===M.Element&&E.tagName==="head"&&(O=!1);const L={doc:o,mirror:a,blockClass:i,blockSelector:p,needsMask:N,maskTextClass:f,maskTextSelector:d,skipChild:n,inlineStylesheet:u,maskInputOptions:r,maskTextFn:c,maskInputFn:l,slimDOMOptions:s,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:O,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:y,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:w,cssCaptured:!1};if(!(E.type===M.Element&&E.tagName==="textarea"&&E.attributes.value!==void 0)){E.type===M.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText=="string"&&(L.cssCaptured=!0);for(const z of Array.from(D.childNodes(e))){const q=K(z,L);q&&E.childNodes.push(q)}}let T=null;if(fe(e)&&(T=D.shadowRoot(e)))for(const z of Array.from(D.childNodes(T))){const q=K(z,L);q&&(oe(T)&&(q.isShadow=!0),E.childNodes.push(q))}}const $=D.parentNode(e);return $&&tr($)&&oe($)&&(E.isShadow=!0),E.type===M.Element&&E.tagName==="iframe"&&ai(e,()=>{const L=e.contentDocument;if(L&&S){const T=K(L,{doc:L,mirror:a,blockClass:i,blockSelector:p,needsMask:N,maskTextClass:f,maskTextSelector:d,skipChild:!1,inlineStylesheet:u,maskInputOptions:r,maskTextFn:c,maskInputFn:l,slimDOMOptions:s,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:O,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:y,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:w});T&&S(e,T)}},y),E.type===M.Element&&E.tagName==="link"&&typeof E.attributes.rel=="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href=="string"&&tt(E.attributes.href)==="css")&&ui(e,()=>{if(v){const L=K(e,{doc:o,mirror:a,blockClass:i,blockSelector:p,needsMask:N,maskTextClass:f,maskTextSelector:d,skipChild:!1,inlineStylesheet:u,maskInputOptions:r,maskTextFn:c,maskInputFn:l,slimDOMOptions:s,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:O,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:y,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:w});L&&v(e,L)}},b),E}function gi(e,t){const{mirror:o=new ce,blockClass:a="rr-block",blockSelector:i=null,maskTextClass:p="rr-mask",maskTextSelector:f=null,inlineStylesheet:d=!0,inlineImages:n=!1,recordCanvas:u=!1,maskAllInputs:r=!1,maskTextFn:c,maskInputFn:l,slimDOM:s=!1,dataURLOptions:m,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:S,onStylesheetLoad:y,stylesheetLoadTimeout:v,keepIframeSrcFn:b=()=>!1}=t||{};return K(e,{doc:e,mirror:o,blockClass:a,blockSelector:i,maskTextClass:p,maskTextSelector:f,skipChild:!1,inlineStylesheet:d,maskInputOptions:r===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:r===!1?{password:!0}:r,maskTextFn:c,maskInputFn:l,slimDOMOptions:s===!0||s==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:s==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:s===!1?{}:s,dataURLOptions:m,inlineImages:n,recordCanvas:u,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:S,onStylesheetLoad:y,stylesheetLoadTimeout:v,keepIframeSrcFn:b,newlyAddedElement:!1})}function yi(e,t){function o(a){t(a),(a.type===M.Document||a.type===M.Element)&&a.childNodes.forEach(o)}o(e)}function wi(){pr=1}const bi=/(max|min)-device-(width|height)/,xt=new RegExp(bi.source,"g"),Si={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(xt)&&(e.params=e.params.replace(xt,"$1-$2"))}}}},Ci={postcssPlugin:"postcss-hover-classes",prepare:function(){const e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(o){o.includes(":hover")&&(t.selector+=`,
|
|
15
|
-
`+
|
|
16
|
-
`+
|
|
17
|
-
`)}toString(){let
|
|
14
|
+
"use strict";var Xr=Object.defineProperty,ei=Object.defineProperties;var ti=Object.getOwnPropertyDescriptors;var ae=Object.getOwnPropertySymbols;var Rt=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable;var Ot=(i,e,t)=>e in i?Xr(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,L=(i,e)=>{for(var t in e||(e={}))Rt.call(e,t)&&Ot(i,t,e[t]);if(ae)for(var t of ae(e))Nt.call(e,t)&&Ot(i,t,e[t]);return i},Q=(i,e)=>ei(i,ti(e));var ze=(i,e)=>{var t={};for(var r in i)Rt.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&ae)for(var r of ae(i))e.indexOf(r)<0&&Nt.call(i,r)&&(t[r]=i[r]);return t};var ri=Object.defineProperty,ii=(i,e,t)=>e in i?ri(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Mt=(i,e,t)=>ii(i,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var g=(i=>(i[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment",i))(g||{});const At={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},_t={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ue={};function si(i){var e,t;const r=(t=(e=globalThis==null?void 0:globalThis.Zone)==null?void 0:e.__symbol__)==null?void 0:t.call(e,i);if(r&&globalThis[r])return globalThis[r]}function ct(i){if(ue[i])return ue[i];const e=si(i)||globalThis[i],t=e.prototype,r=i in At?At[i]:void 0,s=!!(r&&r.every(l=>{var a,u;return!!((u=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&u.toString().includes("[native code]"))})),o=i in _t?_t[i]:void 0,n=!!(o&&o.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(s&&n)return ue[i]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const a=l.contentWindow;if(!a)return e.prototype;const u=a[i].prototype;return document.body.removeChild(l),u?ue[i]=u:t}catch(l){return t}}const Be={};function F(i,e,t){var r;const s=`${i}.${String(t)}`;if(Be[s])return Be[s].call(e);const o=ct(i),n=(r=Object.getOwnPropertyDescriptor(o,t))==null?void 0:r.get;return n?(Be[s]=n,n.call(e)):e[t]}const je={};function Xt(i,e,t){const r=`${i}.${String(t)}`;if(je[r])return je[r].bind(e);const o=ct(i)[t];return typeof o!="function"?e[t]:(je[r]=o,o.bind(e))}function ni(i){return F("Node",i,"childNodes")}function oi(i){return F("Node",i,"parentNode")}function li(i){return F("Node",i,"parentElement")}function ai(i){return F("Node",i,"textContent")}function ui(i,e){return Xt("Node",i,"contains")(e)}function fi(i){return Xt("Node",i,"getRootNode")()}function ci(i){return!i||!("host"in i)?null:F("ShadowRoot",i,"host")}function hi(i){return i.styleSheets}function pi(i){return!i||!("shadowRoot"in i)?null:F("Element",i,"shadowRoot")}function di(i,e){return F("Element",i,"querySelector")(e)}function mi(i,e){return F("Element",i,"querySelectorAll")(e)}function gi(){return ct("MutationObserver").constructor}function yi(i,e,t){try{if(!(e in i))return()=>{};const r=i[e],s=t(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),i[e]=s,()=>{i[e]=r}}catch(r){return()=>{}}}const N={childNodes:ni,parentNode:oi,parentElement:li,textContent:ai,contains:ui,getRootNode:fi,host:ci,styleSheets:hi,shadowRoot:pi,querySelector:di,querySelectorAll:mi,mutationObserver:gi,patch:yi};function Ae(i){return i.nodeType===i.ELEMENT_NODE}function er(i){const e=i&&"host"in i&&"mode"in i&&N.host(i)||null;return!!(e&&"shadowRoot"in e&&N.shadowRoot(e)===i)}function be(i){return Object.prototype.toString.call(i)==="[object ShadowRoot]"}function wi(i){return i.includes(" background-clip: text;")&&!i.includes(" -webkit-background-clip: text;")&&(i=i.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),i}function tr(i){const{cssText:e}=i;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(i.href)})`];return i.layerName===""?t.push("layer"):i.layerName&&t.push(`layer(${i.layerName})`),i.supportsText&&t.push(`supports(${i.supportsText})`),i.media.length&&t.push(i.media.mediaText),t.join(" ")+";"}function ve(i){try{const e=i.rules||i.cssRules;if(!e)return null;let t=i.href;!t&&i.ownerNode&&i.ownerNode.ownerDocument&&(t=i.ownerNode.ownerDocument.location.href);const r=Array.from(e,s=>rr(s,t)).join("");return wi(r)}catch(e){return null}}function rr(i,e){if(sr(i)){let t;try{t=ve(i.styleSheet)||tr(i)}catch(r){t=i.cssText}return i.styleSheet.href?ee(t,i.styleSheet.href):t}else{let t=i.cssText;return nr(i)&&i.selectorText.includes(":")&&(t=ir(t)),e?ee(t,e):t}}function ir(i){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return i.replace(e,"$1\\$2")}function sr(i){return"styleSheet"in i}function nr(i){return"selectorText"in i}class _e{constructor(){Mt(this,"idNodeMap",new Map),Mt(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(t,s)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function bi(){return new _e}function or({element:i,maskInputOptions:e,tagName:t,type:r,value:s,maskInputFn:o}){let n=s||"";const l=r&&ne(r);return(e[t.toLowerCase()]||l&&e[l])&&(o?n=o(n,i):n="*".repeat(n.length)),n}function ne(i){return i.toLowerCase()}const kt="__rrweb_original__";function lr(i){const e=i.getContext("2d");if(!e)return!0;const t=50;for(let r=0;r<i.width;r+=t)for(let s=0;s<i.height;s+=t){const o=e.getImageData,n=kt in o?o[kt]:o;if(new Uint32Array(n.call(e,r,s,Math.min(t,i.width-r),Math.min(t,i.height-s)).data.buffer).some(a=>a!==0))return!1}return!0}function ar(i,e){return!i||!e||i.type!==e.type?!1:i.type===g.Document?i.compatMode===e.compatMode:i.type===g.DocumentType?i.name===e.name&&i.publicId===e.publicId&&i.systemId===e.systemId:i.type===g.Comment||i.type===g.Text||i.type===g.CDATA?i.textContent===e.textContent:i.type===g.Element?i.tagName===e.tagName&&JSON.stringify(i.attributes)===JSON.stringify(e.attributes)&&i.isSVG===e.isSVG&&i.needBlock===e.needBlock:!1}function ur(i){const e=i.type;return i.hasAttribute("data-rr-is-password")?"password":e?ne(e):null}function ht(i,e){var o;let t;try{t=new URL(i,e!=null?e:window.location.href)}catch(n){return null}const r=/\.([0-9a-z]+)(?:$)/i,s=t.pathname.match(r);return(o=s==null?void 0:s[1])!=null?o:null}function Si(i){let e="";return i.indexOf("//")>-1?e=i.split("/").slice(0,3).join("/"):e=i.split("/")[0],e=e.split("?")[0],e}const Ci=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,xi=/^(?:[a-z+]+:)?\/\//i,vi=/^www\..*/i,Ei=/^(data:)([^,]*),(.*)/i;function ee(i,e){return(i||"").replace(Ci,(t,r,s,o,n,l)=>{const a=s||n||l,u=r||o||"";if(!a)return t;if(xi.test(a)||vi.test(a))return`url(${u}${a}${u})`;if(Ei.test(a))return`url(${u}${a}${u})`;if(a[0]==="/")return`url(${u}${Si(e)+a}${u})`;const f=e.split("/"),h=a.split("/");f.pop();for(const d of h)d!=="."&&(d===".."?f.pop():f.push(d));return`url(${u}${f.join("/")}${u})`})}const We=new Map,Ve=new Map;function Se(i){if(!We.has(i)){const e=i.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"");We.set(i,e)}return We.get(i)}function fr(i,e){const t=i;if(Ve.has(i))return Ve.get(i);const r=Array.from(e.childNodes),s=[];let o=0;if(r.length>1&&i&&typeof i=="string"){let n=Se(i);const l=n.length/i.length;for(let a=1;a<r.length;a++)if(r[a].textContent&&typeof r[a].textContent=="string"){const u=Se(r[a].textContent);let f=3;for(;f<u.length&&(u[f].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,f),1)!==-1);f++);for(;f<u.length;f++){const h=u.substring(0,f),d=n.split(h);let m=-1;if(d.length===2?m=n.indexOf(h):d.length>2&&d[0]===""&&r[a-1].textContent!==""&&(m=n.indexOf(h,1)),m!==-1){let y=Math.floor(m/l);for(;y>0&&y<i.length;){if(o+=1,o>50*r.length)return s.push(i),s;const w=Se(i.substring(0,y));if(w.length===m){s.push(i.substring(0,y)),i=i.substring(y),n=n.substring(m);break}else w.length<m?y+=Math.max(1,Math.floor((m-w.length)/l)):y-=Math.max(1,Math.floor((w.length-m)*l))}break}}}}return s.push(i),t&&Ve.set(t,s),s}function cr(i,e){return fr(i,e).join("/* rr_split */")}let hr=1;const Oi=new RegExp("[^a-z0-9-_:]"),Ye=-2;function pr(){return hr++}function Ri(i){if(i instanceof HTMLFormElement)return"form";const e=ne(i.tagName);return Oi.test(e)?"div":e}let W,Pt;const Ni=/^[^ \t\n\r\u000c]+/,Mi=/^[, \t\n\r\u000c]+/;function Ai(i,e){if(e.trim()==="")return e;let t=0;function r(o){let n;const l=o.exec(e.substring(t));return l?(n=l[0],t+=n.length,n):""}const s=[];for(;r(Mi),!(t>=e.length);){let o=r(Ni);if(o.slice(-1)===",")o=V(i,o.substring(0,o.length-1)),s.push(o);else{let n="";o=V(i,o);let l=!1;for(;;){const a=e.charAt(t);if(a===""){s.push((o+n).trim());break}else if(l)a===")"&&(l=!1);else if(a===","){t+=1,s.push((o+n).trim());break}else a==="("&&(l=!0);n+=a,t+=1}}}return s.join(", ")}const It=new WeakMap;function V(i,e){return!e||e.trim()===""?e:pt(i,e)}function _i(i){return!!(i.tagName==="svg"||i.ownerSVGElement)}function pt(i,e){let t=It.get(i);if(t||(t=i.createElement("a"),It.set(i,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function dr(i,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?V(i,r):t==="srcset"?Ai(i,r):t==="style"?ee(r,pt(i)):e==="object"&&t==="data"?V(i,r):r)}function mr(i,e,t){return(i==="video"||i==="audio")&&e==="autoplay"}function ki(i,e,t){try{if(typeof e=="string"){if(i.classList.contains(e))return!0}else for(let r=i.classList.length;r--;){const s=i.classList[r];if(e.test(s))return!0}if(t)return i.matches(t)}catch(r){}return!1}function Ee(i,e,t){if(!i)return!1;if(i.nodeType!==i.ELEMENT_NODE)return t?Ee(N.parentNode(i),e,t):!1;for(let r=i.classList.length;r--;){const s=i.classList[r];if(e.test(s))return!0}return t?Ee(N.parentNode(i),e,t):!1}function gr(i,e,t,r){let s;if(Ae(i)){if(s=i,!N.childNodes(s).length)return!1}else{if(N.parentElement(i)===null)return!1;s=N.parentElement(i)}try{if(typeof e=="string"){if(r){if(s.closest(`.${e}`))return!0}else if(s.classList.contains(e))return!0}else if(Ee(s,e,r))return!0;if(t){if(r){if(s.closest(t))return!0}else if(s.matches(t))return!0}}catch(o){}return!1}function Pi(i,e,t){const r=i.contentWindow;if(!r)return;let s=!1,o;try{o=r.document.readyState}catch(l){return}if(o!=="complete"){const l=setTimeout(()=>{s||(e(),s=!0)},t);i.addEventListener("load",()=>{clearTimeout(l),s=!0,e()});return}const n="about:blank";if(r.location.href!==n||i.src===n||i.src==="")return setTimeout(e,0),i.addEventListener("load",e);i.addEventListener("load",e)}function Ii(i,e,t){let r=!1,s;try{s=i.sheet}catch(n){return}if(s)return;const o=setTimeout(()=>{r||(e(),r=!0)},t);i.addEventListener("load",()=>{clearTimeout(o),r=!0,e()})}function $i(i,e){const{doc:t,mirror:r,blockClass:s,blockSelector:o,needsMask:n,inlineStylesheet:l,maskInputOptions:a={},maskTextFn:u,maskInputFn:f,dataURLOptions:h={},inlineImages:d,recordCanvas:m,keepIframeSrcFn:y,newlyAddedElement:w=!1,cssCaptured:c=!1}=e,O=Li(t,r);switch(i.nodeType){case i.DOCUMENT_NODE:return i.compatMode!=="CSS1Compat"?{type:g.Document,childNodes:[],compatMode:i.compatMode}:{type:g.Document,childNodes:[]};case i.DOCUMENT_TYPE_NODE:return{type:g.DocumentType,name:i.name,publicId:i.publicId,systemId:i.systemId,rootId:O};case i.ELEMENT_NODE:return Ui(i,{doc:t,blockClass:s,blockSelector:o,inlineStylesheet:l,maskInputOptions:a,maskInputFn:f,dataURLOptions:h,inlineImages:d,recordCanvas:m,keepIframeSrcFn:y,newlyAddedElement:w,rootId:O});case i.TEXT_NODE:return Di(i,{doc:t,needsMask:n,maskTextFn:u,rootId:O,cssCaptured:c});case i.CDATA_SECTION_NODE:return{type:g.CDATA,textContent:"",rootId:O};case i.COMMENT_NODE:return{type:g.Comment,textContent:N.textContent(i)||"",rootId:O};default:return!1}}function Li(i,e){if(!e.hasNode(i))return;const t=e.getId(i);return t===1?void 0:t}function Di(i,e){const{needsMask:t,maskTextFn:r,rootId:s,cssCaptured:o}=e,n=N.parentNode(i),l=n&&n.tagName;let a="";const u=l==="STYLE"?!0:void 0,f=l==="SCRIPT"?!0:void 0;return f?a="SCRIPT_PLACEHOLDER":o||(a=N.textContent(i),u&&a&&(a=ee(a,pt(e.doc)))),!u&&!f&&a&&t&&(a=r?r(a,N.parentElement(i)):a.replace(/[\S]/g,"*")),{type:g.Text,textContent:a||"",rootId:s}}function $t(i,e){return Array.from(i.styleSheets).find(t=>t.href===e)}function Ti(i){return i.href}function Ui(i,e){const{doc:t,blockClass:r,blockSelector:s,inlineStylesheet:o,maskInputOptions:n={},maskInputFn:l,dataURLOptions:a={},inlineImages:u,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:d=!1,rootId:m}=e,y=ki(i,r,s),w=Ri(i);let c={};const O=i.attributes.length;for(let p=0;p<O;p++){const b=i.attributes[p];mr(w,b.name,b.value)||(c[b.name]=dr(t,w,ne(b.name),b.value))}if(w==="link"&&o){const p=Ti(i);if(p){let b=$t(t,p);if(!b&&p.includes(".css")){const A=window.location.origin,T=p.replace(window.location.href,""),I=A+"/"+T;b=$t(t,I)}let R=null;b&&(R=ve(b)),R&&(delete c.rel,delete c.href,c._cssText=R)}}if(w==="style"&&i.sheet){let p=ve(i.sheet);p&&(i.childNodes.length>1&&(p=cr(p,i)),c._cssText=p)}if(w==="input"||w==="textarea"||w==="select"){const p=i.value,b=i.checked;c.type!=="radio"&&c.type!=="checkbox"&&c.type!=="submit"&&c.type!=="button"&&p?c.value=or({element:i,type:ur(i),tagName:w,value:p,maskInputOptions:n,maskInputFn:l}):b&&(c.checked=b)}if(w==="option"&&(i.selected&&!n.select?c.selected=!0:delete c.selected),w==="dialog"&&i.open)try{c.rr_open_mode=i.matches("dialog:modal")?"modal":"non-modal"}catch(p){c.rr_open_mode="modal",c.ph_rr_could_not_detect_modal=!0}if(w==="canvas"&&f){if(i.__context==="2d")lr(i)||(c.rr_dataURL=i.toDataURL(a.type,a.quality));else if(!("__context"in i)){const p=i.toDataURL(a.type,a.quality),b=t.createElement("canvas");b.width=i.width,b.height=i.height;const R=b.toDataURL(a.type,a.quality);p!==R&&(c.rr_dataURL=p)}}if(w==="img"&&u){W||(W=t.createElement("canvas"),Pt=W.getContext("2d"));const p=i,b=p.currentSrc||p.getAttribute("src")||"<unknown-src>",R=p.crossOrigin,A=()=>{p.removeEventListener("load",A);try{W.width=p.naturalWidth,W.height=p.naturalHeight,Pt.drawImage(p,0,0),c.rr_dataURL=W.toDataURL(a.type,a.quality)}catch(T){if(p.crossOrigin!=="anonymous"){p.crossOrigin="anonymous",p.complete&&p.naturalWidth!==0?A():p.addEventListener("load",A);return}else console.warn(`Cannot inline img src=${b}! Error: ${T}`)}p.crossOrigin==="anonymous"&&(R?c.crossOrigin=R:p.removeAttribute("crossorigin"))};p.complete&&p.naturalWidth!==0?A():p.addEventListener("load",A)}if(w==="audio"||w==="video"){const p=c;p.rr_mediaState=i.paused?"paused":"played",p.rr_mediaCurrentTime=i.currentTime,p.rr_mediaPlaybackRate=i.playbackRate,p.rr_mediaMuted=i.muted,p.rr_mediaLoop=i.loop,p.rr_mediaVolume=i.volume}if(d||(i.scrollLeft&&(c.rr_scrollLeft=i.scrollLeft),i.scrollTop&&(c.rr_scrollTop=i.scrollTop)),y){const{width:p,height:b}=i.getBoundingClientRect();c={class:c.class,rr_width:`${p}px`,rr_height:`${b}px`}}w==="iframe"&&!h(c.src)&&(i.contentDocument||(c.rr_src=c.src),delete c.src);let M;try{customElements.get(w)&&(M=!0)}catch(p){}return{type:g.Element,tagName:w,attributes:c,childNodes:[],isSVG:_i(i)||void 0,needBlock:y,rootId:m,isCustom:M}}function x(i){return i==null?"":i.toLowerCase()}function Fi(i,e){if(e.comment&&i.type===g.Comment)return!0;if(i.type===g.Element){if(e.script&&(i.tagName==="script"||i.tagName==="link"&&(i.attributes.rel==="preload"||i.attributes.rel==="modulepreload")&&i.attributes.as==="script"||i.tagName==="link"&&i.attributes.rel==="prefetch"&&typeof i.attributes.href=="string"&&ht(i.attributes.href)==="js"))return!0;if(e.headFavicon&&(i.tagName==="link"&&i.attributes.rel==="shortcut icon"||i.tagName==="meta"&&(x(i.attributes.name).match(/^msapplication-tile(image|color)$/)||x(i.attributes.name)==="application-name"||x(i.attributes.rel)==="icon"||x(i.attributes.rel)==="apple-touch-icon"||x(i.attributes.rel)==="shortcut icon")))return!0;if(i.tagName==="meta"){if(e.headMetaDescKeywords&&x(i.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(x(i.attributes.property).match(/^(og|twitter|fb):/)||x(i.attributes.name).match(/^(og|twitter):/)||x(i.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(x(i.attributes.name)==="robots"||x(i.attributes.name)==="googlebot"||x(i.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&i.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(x(i.attributes.name)==="author"||x(i.attributes.name)==="generator"||x(i.attributes.name)==="framework"||x(i.attributes.name)==="publisher"||x(i.attributes.name)==="progid"||x(i.attributes.property).match(/^article:/)||x(i.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(x(i.attributes.name)==="google-site-verification"||x(i.attributes.name)==="yandex-verification"||x(i.attributes.name)==="csrf-token"||x(i.attributes.name)==="p:domain_verify"||x(i.attributes.name)==="verify-v1"||x(i.attributes.name)==="verification"||x(i.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function G(i,e){const{doc:t,mirror:r,blockClass:s,blockSelector:o,maskTextClass:n,maskTextSelector:l,skipChild:a=!1,inlineStylesheet:u=!0,maskInputOptions:f={},maskTextFn:h,maskInputFn:d,slimDOMOptions:m,dataURLOptions:y={},inlineImages:w=!1,recordCanvas:c=!1,onSerialize:O,onIframeLoad:M,iframeLoadTimeout:p=5e3,onStylesheetLoad:b,stylesheetLoadTimeout:R=5e3,keepIframeSrcFn:A=()=>!1,newlyAddedElement:T=!1,cssCaptured:I=!1}=e;let{needsMask:k}=e,{preserveWhiteSpace:U=!0}=e;k||(k=gr(i,n,l,k===void 0));const Y=$i(i,{doc:t,mirror:r,blockClass:s,blockSelector:o,needsMask:k,inlineStylesheet:u,maskInputOptions:f,maskTextFn:h,maskInputFn:d,dataURLOptions:y,inlineImages:w,recordCanvas:c,keepIframeSrcFn:A,newlyAddedElement:T,cssCaptured:I});if(!Y)return console.warn(i,"not serialized"),null;let K;r.hasNode(i)?K=r.getId(i):Fi(Y,m)||!U&&Y.type===g.Text&&!Y.textContent.replace(/^\s+|\s+$/gm,"").length?K=Ye:K=pr();const C=Object.assign(Y,{id:K});if(r.add(i,C),K===Ye)return null;O&&O(i);let Te=!a;if(C.type===g.Element){Te=Te&&!C.needBlock,delete C.needBlock;const _=N.shadowRoot(i);_&&be(_)&&(C.isShadowHost=!0)}if((C.type===g.Document||C.type===g.Element)&&Te){m.headWhitespace&&C.type===g.Element&&C.tagName==="head"&&(U=!1);const _={doc:t,mirror:r,blockClass:s,blockSelector:o,needsMask:k,maskTextClass:n,maskTextSelector:l,skipChild:a,inlineStylesheet:u,maskInputOptions:f,maskTextFn:h,maskInputFn:d,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:c,preserveWhiteSpace:U,onSerialize:O,onIframeLoad:M,iframeLoadTimeout:p,onStylesheetLoad:b,stylesheetLoadTimeout:R,keepIframeSrcFn:A,cssCaptured:!1};if(!(C.type===g.Element&&C.tagName==="textarea"&&C.attributes.value!==void 0)){C.type===g.Element&&C.attributes._cssText!==void 0&&typeof C.attributes._cssText=="string"&&(_.cssCaptured=!0);for(const Fe of Array.from(N.childNodes(i))){const j=G(Fe,_);j&&C.childNodes.push(j)}}let B=null;if(Ae(i)&&(B=N.shadowRoot(i)))for(const Fe of Array.from(N.childNodes(B))){const j=G(Fe,_);j&&(be(B)&&(j.isShadow=!0),C.childNodes.push(j))}}const Ue=N.parentNode(i);return Ue&&er(Ue)&&be(Ue)&&(C.isShadow=!0),C.type===g.Element&&C.tagName==="iframe"&&Pi(i,()=>{const _=i.contentDocument;if(_&&M){const B=G(_,{doc:_,mirror:r,blockClass:s,blockSelector:o,needsMask:k,maskTextClass:n,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:f,maskTextFn:h,maskInputFn:d,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:c,preserveWhiteSpace:U,onSerialize:O,onIframeLoad:M,iframeLoadTimeout:p,onStylesheetLoad:b,stylesheetLoadTimeout:R,keepIframeSrcFn:A});B&&M(i,B)}},p),C.type===g.Element&&C.tagName==="link"&&typeof C.attributes.rel=="string"&&(C.attributes.rel==="stylesheet"||C.attributes.rel==="preload"&&typeof C.attributes.href=="string"&&ht(C.attributes.href)==="css")&&Ii(i,()=>{if(b){const _=G(i,{doc:t,mirror:r,blockClass:s,blockSelector:o,needsMask:k,maskTextClass:n,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:f,maskTextFn:h,maskInputFn:d,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:c,preserveWhiteSpace:U,onSerialize:O,onIframeLoad:M,iframeLoadTimeout:p,onStylesheetLoad:b,stylesheetLoadTimeout:R,keepIframeSrcFn:A});_&&b(i,_)}},R),C}function zi(i,e){const{mirror:t=new _e,blockClass:r="rr-block",blockSelector:s=null,maskTextClass:o="rr-mask",maskTextSelector:n=null,inlineStylesheet:l=!0,inlineImages:a=!1,recordCanvas:u=!1,maskAllInputs:f=!1,maskTextFn:h,maskInputFn:d,slimDOM:m=!1,dataURLOptions:y,preserveWhiteSpace:w,onSerialize:c,onIframeLoad:O,iframeLoadTimeout:M,onStylesheetLoad:p,stylesheetLoadTimeout:b,keepIframeSrcFn:R=()=>!1}=e||{};return G(i,{doc:i,mirror:t,blockClass:r,blockSelector:s,maskTextClass:o,maskTextSelector:n,skipChild:!1,inlineStylesheet:l,maskInputOptions:f===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:f===!1?{password:!0}:f,maskTextFn:h,maskInputFn:d,slimDOMOptions:m===!0||m==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:m==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:m===!1?{}:m,dataURLOptions:y,inlineImages:a,recordCanvas:u,preserveWhiteSpace:w,onSerialize:c,onIframeLoad:O,iframeLoadTimeout:M,onStylesheetLoad:p,stylesheetLoadTimeout:b,keepIframeSrcFn:R,newlyAddedElement:!1})}function Bi(i,e){function t(r){e(r),(r.type===g.Document||r.type===g.Element)&&r.childNodes.forEach(t)}t(i)}function ji(){hr=1}const Wi=/(max|min)-device-(width|height)/,Lt=new RegExp(Wi.source,"g"),Vi={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(i){i.params.match(Lt)&&(i.params=i.params.replace(Lt,"$1-$2"))}}}},Gi={postcssPlugin:"postcss-hover-classes",prepare:function(){const i=[];return{Rule:function(e){i.indexOf(e)===-1&&(i.push(e),e.selectors.forEach(function(t){t.includes(":hover")&&(e.selector+=`,
|
|
15
|
+
`+t.replace(/:hover/g,".\\:hover"))}))}}}};function Hi(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function qi(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(r){var s=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return i[r]}})}),t}var dt={exports:{}},v=String,yr=function(){return{isColorSupported:!1,reset:v,bold:v,dim:v,italic:v,underline:v,inverse:v,hidden:v,strikethrough:v,black:v,red:v,green:v,yellow:v,blue:v,magenta:v,cyan:v,white:v,gray:v,bgBlack:v,bgRed:v,bgGreen:v,bgYellow:v,bgBlue:v,bgMagenta:v,bgCyan:v,bgWhite:v}};dt.exports=yr();dt.exports.createColors=yr;var Ji=dt.exports;const Yi={},Ki=Object.freeze(Object.defineProperty({__proto__:null,default:Yi},Symbol.toStringTag,{value:"Module"})),P=qi(Ki);let Dt=Ji,Tt=P,Ke=class wr extends Error{constructor(e,t,r,s,o,n){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),s&&(this.source=s),n&&(this.plugin=n),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,wr)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Dt.isColorSupported),Tt&&e&&(t=Tt(t));let r=t.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,r.length),n=String(o).length,l,a;if(e){let{bold:u,gray:f,red:h}=Dt.createColors(!0);l=d=>u(h(d)),a=d=>f(d)}else l=a=u=>u;return r.slice(s,o).map((u,f)=>{let h=s+1+f,d=" "+(" "+h).slice(-n)+" | ";if(h===this.line){let m=a(d.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(d)+u+`
|
|
16
|
+
`+m+l("^")}return" "+a(d)+u}).join(`
|
|
17
|
+
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
18
18
|
|
|
19
|
-
`+
|
|
20
|
-
`),this.name+": "+this.message+
|
|
19
|
+
`+e+`
|
|
20
|
+
`),this.name+": "+this.message+e}};var mt=Ke;Ke.default=Ke;var oe={};oe.isClean=Symbol("isClean");oe.my=Symbol("my");const Ut={after:`
|
|
21
21
|
`,beforeClose:`
|
|
22
22
|
`,beforeComment:`
|
|
23
23
|
`,beforeDecl:`
|
|
24
24
|
`,beforeOpen:" ",beforeRule:`
|
|
25
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function
|
|
26
|
-
`)){let
|
|
27
|
-
`)&&(
|
|
28
|
-
`)&&(
|
|
29
|
-
`)&&(
|
|
30
|
-
`)&&(
|
|
31
|
-
`);return
|
|
32
|
-
`?(
|
|
33
|
-
`);
|
|
25
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Qi(i){return i[0].toUpperCase()+i.slice(1)}let Qe=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let o=(e.raws.between||"")+(t?";":"");this.builder(r+s+o,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let s=e.parent,o=0;for(;s&&s.type!=="root";)o+=1,s=s.parent;if(r.includes(`
|
|
26
|
+
`)){let n=this.raw(e,null,"indent");if(n.length)for(let l=0;l<o;l++)r+=n}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let o=e.nodes[s],n=this.raw(o,"before");n&&this.builder(n),this.stringify(o,t!==s||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),s=e.prop+r+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,t,r){let s;if(r||(r=t),t&&(s=e.raws[t],typeof s!="undefined"))return s;let o=e.parent;if(r==="before"&&(!o||o.type==="root"&&o.first===e||o&&o.type==="document"))return"";if(!o)return Ut[r];let n=e.root();if(n.rawCache||(n.rawCache={}),typeof n.rawCache[r]!="undefined")return n.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let l="raw"+Qi(r);this[l]?s=this[l](n,e):n.walk(a=>{if(s=a.raws[t],typeof s!="undefined")return!1})}return typeof s=="undefined"&&(s=Ut[r]),n.rawCache[r]=s,s}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after!="undefined")return t=r.raws.after,t.includes(`
|
|
27
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(s=>{if(typeof s.raws.before!="undefined")return r=s.raws.before,r.includes(`
|
|
28
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(s=>{if(typeof s.raws.before!="undefined")return r=s.raws.before,r.includes(`
|
|
29
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t!="undefined"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before!="undefined")return t=r.raws.before,t.includes(`
|
|
30
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between!="undefined")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t!="undefined"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof r.raws.before!="undefined"){let o=r.raws.before.split(`
|
|
31
|
+
`);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let r=e[t],s=e.raws[t];return s&&s.value===r?s.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var br=Qe;Qe.default=Qe;let Zi=br;function Ze(i,e){new Zi(e).stringify(i)}var ke=Ze;Ze.default=Ze;let{isClean:fe,my:Xi}=oe,es=mt,ts=br,rs=ke;function Xe(i,e){let t=new i.constructor;for(let r in i){if(!Object.prototype.hasOwnProperty.call(i,r)||r==="proxyCache")continue;let s=i[r],o=typeof s;r==="parent"&&o==="object"?e&&(t[r]=e):r==="source"?t[r]=s:Array.isArray(s)?t[r]=s.map(n=>Xe(n,t)):(o==="object"&&s!==null&&(s=Xe(s)),t[r]=s)}return t}let et=class{constructor(e={}){this.raws={},this[fe]=!1,this[Xi]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Xe(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new es(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[fe]){this[fe]=!1;let e=this;for(;e=e.parent;)e[fe]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();let s=t.indexOf(e.word);s!==-1&&(r=this.positionInside(s,t))}return r}positionInside(e,t){let r=t||this.toString(),s=this.source.start.column,o=this.source.start.line;for(let n=0;n<e;n++)r[n]===`
|
|
32
|
+
`?(s=1,o+=1):s+=1;return{column:s,line:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s=this.toString(),o=s.indexOf(e.word);o!==-1&&(t=this.positionInside(o,s),r=this.positionInside(o+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new ts().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let s of e)s===this?r=!0:r?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},s=t==null;t=t||new Map;let o=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let l=this[n];if(Array.isArray(l))r[n]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)r[n]=l.toJSON(null,t);else if(n==="source"){let a=t.get(l.input);a==null&&(a=o,t.set(l.input,o),o++),r[n]={end:l.end,inputId:a,start:l.start}}else r[n]=l}return s&&(r.inputs=[...t.keys()].map(n=>n.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=rs){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r){let s={node:this};for(let o in r)s[o]=r[o];return e.warn(t,s)}get proxyOf(){return this}};var Pe=et;et.default=et;let is=Pe,tt=class extends is{constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=Q(L({},e),{value:String(e.value)})),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var Ie=tt;tt.default=tt;let ss="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ns=(i,e=21)=>(t=e)=>{let r="",s=t;for(;s--;)r+=i[Math.random()*i.length|0];return r},os=(i=21)=>{let e="",t=i;for(;t--;)e+=ss[Math.random()*64|0];return e};var ls={nanoid:os,customAlphabet:ns};let{SourceMapConsumer:Ft,SourceMapGenerator:zt}=P,{existsSync:as,readFileSync:us}=P,{dirname:Ge,join:fs}=P;function cs(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}let rt=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,s=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ge(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new Ft(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(s.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return cs(e.substr(RegExp.lastMatch.length));let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}loadFile(e){if(this.root=Ge(e),as(e))return this.mapFile=e,us(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let s=this.loadFile(r);if(!s)throw new Error("Unable to load previous source map: "+r.toString());return s}}else{if(t instanceof Ft)return zt.fromSourceMap(t).toString();if(t instanceof zt)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 r=this.annotation;return e&&(r=fs(Ge(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Sr=rt;rt.default=rt;let{SourceMapConsumer:hs,SourceMapGenerator:ps}=P,{fileURLToPath:Bt,pathToFileURL:ce}=P,{isAbsolute:it,resolve:st}=P,{nanoid:ds}=ls,He=P,jt=mt,ms=Sr,qe=Symbol("fromOffsetCache"),gs=!!(hs&&ps),Wt=!!(st&&it),Oe=class{constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Wt||/^\w+:\/\//.test(t.from)||it(t.from)?this.file=t.from:this.file=st(t.from)),Wt&&gs){let r=new ms(this.css,t);if(r.text){this.map=r;let s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+ds(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,s={}){let o,n,l;if(t&&typeof t=="object"){let u=t,f=r;if(typeof u.offset=="number"){let h=this.fromOffset(u.offset);t=h.line,r=h.col}else t=u.line,r=u.column;if(typeof f.offset=="number"){let h=this.fromOffset(f.offset);n=h.line,l=h.col}else n=f.line,l=f.column}else if(!r){let u=this.fromOffset(t);t=u.line,r=u.col}let a=this.origin(t,r,n,l);return a?o=new jt(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,s.plugin):o=new jt(e,n===void 0?t:{column:r,line:t},n===void 0?r:{column:l,line:n},this.css,this.file,s.plugin),o.input={column:r,endColumn:l,endLine:n,line:t,source:this.css},this.file&&(ce&&(o.input.url=ce(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,r;if(this[qe])r=this[qe];else{let o=this.css.split(`
|
|
33
|
+
`);r=new Array(o.length);let n=0;for(let l=0,a=o.length;l<a;l++)r[l]=n,n+=o[l].length+1;this[qe]=r}t=r[r.length-1];let s=0;if(e>=t)s=r.length-1;else{let o=r.length-2,n;for(;s<o;)if(n=s+(o-s>>1),e<r[n])o=n-1;else if(e>=r[n+1])s=n+1;else{s=n;break}}return{col:e-r[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:st(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,s){if(!this.map)return!1;let o=this.map.consumer(),n=o.originalPositionFor({column:t,line:e});if(!n.source)return!1;let l;typeof r=="number"&&(l=o.originalPositionFor({column:s,line:r}));let a;it(n.source)?a=ce(n.source):a=new URL(n.source,this.map.consumer().sourceRoot||ce(this.map.mapFile));let u={column:n.column,endColumn:l&&l.column,endLine:l&&l.line,line:n.line,url:a.toString()};if(a.protocol==="file:")if(Bt)u.file=Bt(a);else throw new Error("file: protocol is not available in this PostCSS build");let f=o.sourceContentFor(n.source);return f&&(u.source=f),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=L({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var $e=Oe;Oe.default=Oe;He&&He.registerInput&&He.registerInput(Oe);let{SourceMapConsumer:Cr,SourceMapGenerator:Ce}=P,{dirname:xe,relative:xr,resolve:vr,sep:Er}=P,{pathToFileURL:Vt}=P,ys=$e,ws=!!(Cr&&Ce),bs=!!(xe&&vr&&xr&&Er),Ss=class{constructor(e,t,r,s){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
|
|
34
34
|
`;this.css.includes(`\r
|
|
35
|
-
`)&&(
|
|
36
|
-
`),this.css+=
|
|
37
|
-
`),s=S.length-C):s+=S.length,y&&v!=="start"){let b=y.parent||{raws:{}};(!(y.type==="decl"||y.type==="atrule"&&!y.nodes)||y!==b.last||b.raws.semicolon)&&(y.source&&y.source.end?(h.source=this.sourcePath(y),h.original.line=y.source.end.line,h.original.column=y.source.end.column-1,h.generated.line=l,h.generated.column=s-2,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,h.generated.line=l,h.generated.column=s-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(l=>l.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let l=this.mapOpts.annotation;return typeof l!="undefined"&&l!==!0?!1:this.previous().length?this.previous().some(s=>s.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(l=>l.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(l){if(this.mapOpts.absolute||l.charCodeAt(0)===60||/^\w+:\/\//.test(l))return l;let s=this.memoizedPaths.get(l);if(s)return s;let m=this.opts.to?o(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=o(i(m,this.mapOpts.annotation)));let h=a(m,l);return this.memoizedPaths.set(l,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(l=>{if(l.source&&l.source.input.map){let s=l.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let l=new d(this.originalCSS,this.opts);l.map&&this.previousMaps.push(l.map)}return this.previousMaps}setSourcesContent(){let l={};if(this.root)this.root.walk(s=>{if(s.source){let m=s.source.input.from;if(m&&!l[m]){l[m]=!0;let h=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(h,s.source.input.css)}}});else if(this.css){let s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}}sourcePath(l){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(l.source.input.from):this.toUrl(this.path(l.source.input.from))}toBase64(l){return Buffer?Buffer.from(l).toString("base64"):window.btoa(unescape(encodeURIComponent(l)))}toFileUrl(l){let s=this.memoizedFileURLs.get(l);if(s)return s;if(f){let m=f(l).toString();return this.memoizedFileURLs.set(l,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(l){let s=this.memoizedURLs.get(l);if(s)return s;p==="\\"&&(l=l.replace(/\\/g,"/"));let m=encodeURI(l).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(l,m),m}}return Le=r,Le}var De,Dt;function ge(){if(Dt)return De;Dt=1;let e=pe();class t extends e{constructor(a){super(a),this.type="comment"}}return De=t,t.default=t,De}var Te,Tt;function V(){if(Tt)return Te;Tt=1;let{isClean:e,my:t}=st(),o=de(),a=ge(),i=pe(),p,f,d,n;function u(l){return l.map(s=>(s.nodes&&(s.nodes=u(s.nodes)),delete s.source,s))}function r(l){if(l[e]=!1,l.proxyOf.nodes)for(let s of l.proxyOf.nodes)r(s)}class c extends i{append(...s){for(let m of s){let h=this.normalize(m,this.last);for(let g of h)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let m of this.nodes)m.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let m=this.getIterator(),h,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(h=this.indexes[m],g=s(this.proxyOf.nodes[h],h),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(s){return this.nodes.every(s)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach;return this.indexes[s]=0,s}getProxyProcessor(){return{get(s,m){return m==="proxyOf"?s:s[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...h)=>s[m](...h.map(g=>typeof g=="function"?(C,S)=>g(C.toProxy(),S):g)):m==="every"||m==="some"?h=>s[m]((g,...C)=>h(g.toProxy(),...C)):m==="root"?()=>s.root().toProxy():m==="nodes"?s.nodes.map(h=>h.toProxy()):m==="first"||m==="last"?s[m].toProxy():s[m]:s[m]},set(s,m,h){return s[m]===h||(s[m]=h,(m==="name"||m==="params"||m==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,m){let h=this.index(s),g=this.normalize(m,this.proxyOf.nodes[h]).reverse();h=this.index(s);for(let S of g)this.proxyOf.nodes.splice(h+1,0,S);let C;for(let S in this.indexes)C=this.indexes[S],h<C&&(this.indexes[S]=C+g.length);return this.markDirty(),this}insertBefore(s,m){let h=this.index(s),g=h===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[h],g).reverse();h=this.index(s);for(let y of C)this.proxyOf.nodes.splice(h,0,y);let S;for(let y in this.indexes)S=this.indexes[y],h<=S&&(this.indexes[y]=S+C.length);return this.markDirty(),this}normalize(s,m){if(typeof s=="string")s=u(p(s).nodes);else if(typeof s=="undefined")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type)s=[s];else if(s.prop){if(typeof s.value=="undefined")throw new Error("Value field is missed in node creation");typeof s.value!="string"&&(s.value=String(s.value)),s=[new o(s)]}else if(s.selector)s=[new f(s)];else if(s.name)s=[new d(s)];else if(s.text)s=[new a(s)];else throw new Error("Unknown node type in node creation");return s.map(g=>(g[t]||c.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&r(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(...s){s=s.reverse();for(let m of s){let h=this.normalize(m,this.first,"prepend").reverse();for(let g of h)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+h.length}return this.markDirty(),this}push(s){return s.parent=this,this.proxyOf.nodes.push(s),this}removeAll(){for(let s of this.proxyOf.nodes)s.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(s){s=this.index(s),this.proxyOf.nodes[s].parent=void 0,this.proxyOf.nodes.splice(s,1);let m;for(let h in this.indexes)m=this.indexes[h],m>=s&&(this.indexes[h]=m-1);return this.markDirty(),this}replaceValues(s,m,h){return h||(h=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(s,h))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((m,h)=>{let g;try{g=s(m,h)}catch(C){throw m.addToError(C)}return g!==!1&&m.walk&&(g=m.walk(s)),g})}walkAtRules(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="atrule"&&s.test(h.name))return m(h,g)}):this.walk((h,g)=>{if(h.type==="atrule"&&h.name===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="atrule")return m(h,g)}))}walkComments(s){return this.walk((m,h)=>{if(m.type==="comment")return s(m,h)})}walkDecls(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="decl"&&s.test(h.prop))return m(h,g)}):this.walk((h,g)=>{if(h.type==="decl"&&h.prop===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="decl")return m(h,g)}))}walkRules(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="rule"&&s.test(h.selector))return m(h,g)}):this.walk((h,g)=>{if(h.type==="rule"&&h.selector===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="rule")return m(h,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 c.registerParse=l=>{p=l},c.registerRule=l=>{f=l},c.registerAtRule=l=>{d=l},c.registerRoot=l=>{n=l},Te=c,c.default=c,c.rebuild=l=>{l.type==="atrule"?Object.setPrototypeOf(l,d.prototype):l.type==="rule"?Object.setPrototypeOf(l,f.prototype):l.type==="decl"?Object.setPrototypeOf(l,o.prototype):l.type==="comment"?Object.setPrototypeOf(l,a.prototype):l.type==="root"&&Object.setPrototypeOf(l,n.prototype),l[t]=!0,l.nodes&&l.nodes.forEach(s=>{c.rebuild(s)})},Te}var Ue,Ut;function nt(){if(Ut)return Ue;Ut=1;let e=V(),t,o;class a extends e{constructor(p){super(B({type:"document"},p)),this.nodes||(this.nodes=[])}toResult(p={}){return new t(new o,this,p).stringify()}}return a.registerLazyResult=i=>{t=i},a.registerProcessor=i=>{o=i},Ue=a,a.default=a,Ue}var Fe,Ft;function Cr(){if(Ft)return Fe;Ft=1;let e={};return Fe=function(o){e[o]||(e[o]=!0,typeof console!="undefined"&&console.warn&&console.warn(o))},Fe}var ze,zt;function vr(){if(zt)return ze;zt=1;class e{constructor(o,a={}){if(this.type="warning",this.text=o,a.node&&a.node.source){let i=a.node.rangeBy(a);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in a)this[i]=a[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return ze=e,e.default=e,ze}var qe,qt;function ot(){if(qt)return qe;qt=1;let e=vr();class t{constructor(a,i,p){this.processor=a,this.messages=[],this.root=i,this.opts=p,this.css=void 0,this.map=void 0}toString(){return this.css}warn(a,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let p=new e(a,i);return this.messages.push(p),p}warnings(){return this.messages.filter(a=>a.type==="warning")}get content(){return this.css}}return qe=t,t.default=t,qe}var Be,Bt;function Ai(){if(Bt)return Be;Bt=1;const e=39,t=34,o=92,a=47,i=10,p=32,f=12,d=9,n=13,u=91,r=93,c=40,l=41,s=123,m=125,h=59,g=42,C=58,S=64,y=/[\t\n\f\r "#'()/;[\\\]{}]/g,v=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return Be=function(R,N={}){let O=R.css.valueOf(),I=N.ignoreErrors,_,E,G,$,L,T,z,q,W,U,ct=O.length,A=0,we=[],te=[];function Rr(){return A}function be(H){throw R.error("Unclosed "+H,A)}function Or(){return te.length===0&&A>=ct}function Nr(H){if(te.length)return te.pop();if(A>=ct)return;let Se=H?H.ignoreUnclosed:!1;switch(_=O.charCodeAt(A),_){case i:case p:case d:case n:case f:{E=A;do E+=1,_=O.charCodeAt(E);while(_===p||_===i||_===d||_===n||_===f);U=["space",O.slice(A,E)],A=E-1;break}case u:case r:case s:case m:case C:case h:case l:{let ht=String.fromCharCode(_);U=[ht,ht,A];break}case c:{if(q=we.length?we.pop()[1]:"",W=O.charCodeAt(A+1),q==="url"&&W!==e&&W!==t&&W!==p&&W!==i&&W!==d&&W!==f&&W!==n){E=A;do{if(T=!1,E=O.indexOf(")",E+1),E===-1)if(I||Se){E=A;break}else be("bracket");for(z=E;O.charCodeAt(z-1)===o;)z-=1,T=!T}while(T);U=["brackets",O.slice(A,E+1),A,E],A=E}else E=O.indexOf(")",A+1),$=O.slice(A,E+1),E===-1||b.test($)?U=["(","(",A]:(U=["brackets",$,A,E],A=E);break}case e:case t:{G=_===e?"'":'"',E=A;do{if(T=!1,E=O.indexOf(G,E+1),E===-1)if(I||Se){E=A+1;break}else be("string");for(z=E;O.charCodeAt(z-1)===o;)z-=1,T=!T}while(T);U=["string",O.slice(A,E+1),A,E],A=E;break}case S:{y.lastIndex=A+1,y.test(O),y.lastIndex===0?E=O.length-1:E=y.lastIndex-2,U=["at-word",O.slice(A,E+1),A,E],A=E;break}case o:{for(E=A,L=!0;O.charCodeAt(E+1)===o;)E+=1,L=!L;if(_=O.charCodeAt(E+1),L&&_!==a&&_!==p&&_!==i&&_!==d&&_!==n&&_!==f&&(E+=1,w.test(O.charAt(E)))){for(;w.test(O.charAt(E+1));)E+=1;O.charCodeAt(E+1)===p&&(E+=1)}U=["word",O.slice(A,E+1),A,E],A=E;break}default:{_===a&&O.charCodeAt(A+1)===g?(E=O.indexOf("*/",A+2)+1,E===0&&(I||Se?E=O.length:be("comment")),U=["comment",O.slice(A,E+1),A,E],A=E):(v.lastIndex=A+1,v.test(O),v.lastIndex===0?E=O.length-1:E=v.lastIndex-2,U=["word",O.slice(A,E+1),A,E],we.push(U),A=E);break}}return A++,U}function Ar(H){te.push(H)}return{back:Ar,endOfFile:Or,nextToken:Nr,position:Rr}},Be}var We,Wt;function lt(){if(Wt)return We;Wt=1;let e=V();class t extends e{constructor(a){super(a),this.type="atrule"}append(...a){return this.proxyOf.nodes||(this.nodes=[]),super.append(...a)}prepend(...a){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...a)}}return We=t,t.default=t,e.registerAtRule(t),We}var je,jt;function ee(){if(jt)return je;jt=1;let e=V(),t,o;class a extends e{constructor(p){super(p),this.type="root",this.nodes||(this.nodes=[])}normalize(p,f,d){let n=super.normalize(p);if(f){if(d==="prepend")this.nodes.length>1?f.raws.before=this.nodes[1].raws.before:delete f.raws.before;else if(this.first!==f)for(let u of n)u.raws.before=f.raws.before}return n}removeChild(p,f){let d=this.index(p);return!f&&d===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[d].raws.before),super.removeChild(p)}toResult(p={}){return new t(new o,this,p).stringify()}}return a.registerLazyResult=i=>{t=i},a.registerProcessor=i=>{o=i},je=a,a.default=a,e.registerRoot(a),je}var $e,$t;function xr(){if($t)return $e;$t=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let o=[" ",`
|
|
38
|
-
`," "];return e.split(t,o)},split(t,o,a){let i=[],p="",f=!1,d=0,n=!1,u="",r=!1;for(let c of t)r?r=!1:c==="\\"?r=!0:n?c===u&&(n=!1):c==='"'||c==="'"?(n=!0,u=c):c==="("?d+=1:c===")"?d>0&&(d-=1):d===0&&o.includes(c)&&(f=!0),f?(p!==""&&i.push(p.trim()),p="",f=!1):p+=c;return(a||p!=="")&&i.push(p.trim()),i}};return $e=e,e.default=e,$e}var Ve,Vt;function at(){if(Vt)return Ve;Vt=1;let e=V(),t=xr();class o extends e{constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(i){let p=this.selector?this.selector.match(/,\s*/):null,f=p?p[0]:","+this.raw("between","beforeOpen");this.selector=i.join(f)}}return Ve=o,o.default=o,e.registerRule(o),Ve}var Ge,Gt;function Mi(){if(Gt)return Ge;Gt=1;let e=de(),t=Ai(),o=ge(),a=lt(),i=ee(),p=at();const f={empty:!0,space:!0};function d(u){for(let r=u.length-1;r>=0;r--){let c=u[r],l=c[3]||c[2];if(l)return l}}class n{constructor(r){this.input=r,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:r,start:{column:1,line:1,offset:0}}}atrule(r){let c=new a;c.name=r[1].slice(1),c.name===""&&this.unnamedAtrule(c,r),this.init(c,r[2]);let l,s,m,h=!1,g=!1,C=[],S=[];for(;!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),l=r[0],l==="("||l==="["?S.push(l==="("?")":"]"):l==="{"&&S.length>0?S.push("}"):l===S[S.length-1]&&S.pop(),S.length===0)if(l===";"){c.source.end=this.getPosition(r[2]),c.source.end.offset++,this.semicolon=!0;break}else if(l==="{"){g=!0;break}else if(l==="}"){if(C.length>0){for(m=C.length-1,s=C[m];s&&s[0]==="space";)s=C[--m];s&&(c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++)}this.end(r);break}else C.push(r);else C.push(r);if(this.tokenizer.endOfFile()){h=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(c.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(c,"params",C),h&&(r=C[C.length-1],c.source.end=this.getPosition(r[3]||r[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),g&&(c.nodes=[],this.current=c)}checkMissedSemicolon(r){let c=this.colon(r);if(c===!1)return;let l=0,s;for(let m=c-1;m>=0&&(s=r[m],!(s[0]!=="space"&&(l+=1,l===2)));m--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(r){let c=0,l,s,m;for(let[h,g]of r.entries()){if(l=g,s=l[0],s==="("&&(c+=1),s===")"&&(c-=1),c===0&&s===":")if(!m)this.doubleColon(l);else{if(m[0]==="word"&&m[1]==="progid")continue;return h}m=l}return!1}comment(r){let c=new o;this.init(c,r[2]),c.source.end=this.getPosition(r[3]||r[2]),c.source.end.offset++;let l=r[1].slice(2,-2);if(/^\s*$/.test(l))c.text="",c.raws.left=l,c.raws.right="";else{let s=l.match(/^(\s*)([^]*\S)(\s*)$/);c.text=s[2],c.raws.left=s[1],c.raws.right=s[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(r,c){let l=new e;this.init(l,r[0][2]);let s=r[r.length-1];for(s[0]===";"&&(this.semicolon=!0,r.pop()),l.source.end=this.getPosition(s[3]||s[2]||d(r)),l.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),l.raws.before+=r.shift()[1];for(l.source.start=this.getPosition(r[0][2]),l.prop="";r.length;){let S=r[0][0];if(S===":"||S==="space"||S==="comment")break;l.prop+=r.shift()[1]}l.raws.between="";let m;for(;r.length;)if(m=r.shift(),m[0]===":"){l.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),l.raws.between+=m[1];(l.prop[0]==="_"||l.prop[0]==="*")&&(l.raws.before+=l.prop[0],l.prop=l.prop.slice(1));let h=[],g;for(;r.length&&(g=r[0][0],!(g!=="space"&&g!=="comment"));)h.push(r.shift());this.precheckMissedSemicolon(r);for(let S=r.length-1;S>=0;S--){if(m=r[S],m[1].toLowerCase()==="!important"){l.important=!0;let y=this.stringFrom(r,S);y=this.spacesFromEnd(r)+y,y!==" !important"&&(l.raws.important=y);break}else if(m[1].toLowerCase()==="important"){let y=r.slice(0),v="";for(let b=S;b>0;b--){let w=y[b][0];if(v.trim().indexOf("!")===0&&w!=="space")break;v=y.pop()[1]+v}v.trim().indexOf("!")===0&&(l.important=!0,l.raws.important=v,r=y)}if(m[0]!=="space"&&m[0]!=="comment")break}r.some(S=>S[0]!=="space"&&S[0]!=="comment")&&(l.raws.between+=h.map(S=>S[1]).join(""),h=[]),this.raw(l,"value",h.concat(r),c),l.value.includes(":")&&!c&&this.checkMissedSemicolon(r)}doubleColon(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})}emptyRule(r){let c=new p;this.init(c,r[2]),c.selector="",c.raws.between="",this.current=c}end(r){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(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)}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(r){if(this.spaces+=r[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(r){let c=this.input.fromOffset(r);return{column:c.col,line:c.line,offset:r}}init(r,c){this.current.push(r),r.source={input:this.input,start:this.getPosition(c)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)}other(r){let c=!1,l=null,s=!1,m=null,h=[],g=r[1].startsWith("--"),C=[],S=r;for(;S;){if(l=S[0],C.push(S),l==="("||l==="[")m||(m=S),h.push(l==="("?")":"]");else if(g&&s&&l==="{")m||(m=S),h.push("}");else if(h.length===0)if(l===";")if(s){this.decl(C,g);return}else break;else if(l==="{"){this.rule(C);return}else if(l==="}"){this.tokenizer.back(C.pop()),c=!0;break}else l===":"&&(s=!0);else l===h[h.length-1]&&(h.pop(),h.length===0&&(m=null));S=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),h.length>0&&this.unclosedBracket(m),c&&s){if(!g)for(;C.length&&(S=C[C.length-1][0],!(S!=="space"&&S!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,g)}else this.unknownWord(C)}parse(){let r;for(;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()}precheckMissedSemicolon(){}raw(r,c,l,s){let m,h,g=l.length,C="",S=!0,y,v;for(let b=0;b<g;b+=1)m=l[b],h=m[0],h==="space"&&b===g-1&&!s?S=!1:h==="comment"?(v=l[b-1]?l[b-1][0]:"empty",y=l[b+1]?l[b+1][0]:"empty",!f[v]&&!f[y]?C.slice(-1)===","?S=!1:C+=m[1]:S=!1):C+=m[1];if(!S){let b=l.reduce((w,x)=>w+x[1],"");r.raws[c]={raw:b,value:C}}r[c]=C}rule(r){r.pop();let c=new p;this.init(c,r[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(c,"selector",r),this.current=c}spacesAndCommentsFromEnd(r){let c,l="";for(;r.length&&(c=r[r.length-1][0],!(c!=="space"&&c!=="comment"));)l=r.pop()[1]+l;return l}spacesAndCommentsFromStart(r){let c,l="";for(;r.length&&(c=r[0][0],!(c!=="space"&&c!=="comment"));)l+=r.shift()[1];return l}spacesFromEnd(r){let c,l="";for(;r.length&&(c=r[r.length-1][0],c==="space");)l=r.pop()[1]+l;return l}stringFrom(r,c){let l="";for(let s=c;s<r.length;s++)l+=r[s][1];return r.splice(c,r.length-c),l}unclosedBlock(){let r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)}unclosedBracket(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})}unexpectedClose(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})}unknownWord(r){throw this.input.error("Unknown word",{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})}unnamedAtrule(r,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return Ge=n,Ge}var He,Ht;function ut(){if(Ht)return He;Ht=1;let e=V(),t=Mi(),o=me();function a(i,p){let f=new o(i,p),d=new t(f);try{d.parse()}catch(n){throw n}return d.root}return He=a,a.default=a,e.registerParse(a),He}var Je,Jt;function Er(){if(Jt)return Je;Jt=1;let{isClean:e,my:t}=st(),o=Sr(),a=he(),i=V(),p=nt(),f=Cr(),d=ot(),n=ut(),u=ee();const r={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},c={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},l={Once:!0,postcssPlugin:!0,prepare:!0},s=0;function m(v){return typeof v=="object"&&typeof v.then=="function"}function h(v){let b=!1,w=r[v.type];return v.type==="decl"?b=v.prop.toLowerCase():v.type==="atrule"&&(b=v.name.toLowerCase()),b&&v.append?[w,w+"-"+b,s,w+"Exit",w+"Exit-"+b]:b?[w,w+"-"+b,w+"Exit",w+"Exit-"+b]:v.append?[w,s,w+"Exit"]:[w,w+"Exit"]}function g(v){let b;return v.type==="document"?b=["Document",s,"DocumentExit"]:v.type==="root"?b=["Root",s,"RootExit"]:b=h(v),{eventIndex:0,events:b,iterator:0,node:v,visitorIndex:0,visitors:[]}}function C(v){return v[e]=!1,v.nodes&&v.nodes.forEach(b=>C(b)),v}let S={};class y{constructor(b,w,x){this.stringified=!1,this.processed=!1;let R;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))R=C(w);else if(w instanceof y||w instanceof d)R=C(w.root),w.map&&(typeof x.map=="undefined"&&(x.map={}),x.map.inline||(x.map.inline=!1),x.map.prev=w.map);else{let N=n;x.syntax&&(N=x.syntax.parse),x.parser&&(N=x.parser),N.parse&&(N=N.parse);try{R=N(w,x)}catch(O){this.processed=!0,this.error=O}R&&!R[t]&&i.rebuild(R)}this.result=new d(b,R,x),this.helpers=Q(B({},S),{postcss:S,result:this.result}),this.plugins=this.processor.plugins.map(N=>typeof N=="object"&&N.prepare?B(B({},N),N.prepare(this.result)):N)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,w){let x=this.result.lastPlugin;try{w&&w.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin?(b.plugin=x.postcssPlugin,b.setMessage()):x.postcssVersion}catch(R){console&&console.error&&console.error(R)}return b}prepareVisitors(){this.listeners={};let b=(w,x,R)=>{this.listeners[x]||(this.listeners[x]=[]),this.listeners[x].push([w,R])};for(let w of this.plugins)if(typeof w=="object")for(let x in w){if(!c[x]&&/^[A-Z]/.test(x))throw new Error(`Unknown event ${x} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!l[x])if(typeof w[x]=="object")for(let R in w[x])R==="*"?b(w,x,w[x][R]):b(w,x+"-"+R.toLowerCase(),w[x][R]);else typeof w[x]=="function"&&b(w,x,w[x])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let w=this.plugins[b],x=this.runOnRoot(w);if(m(x))try{await x}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];){b[e]=!0;let w=[g(b)];for(;w.length>0;){let x=this.visitTick(w);if(m(x))try{await x}catch(R){let N=w[w.length-1].node;throw this.handleError(R,N)}}}if(this.listeners.OnceExit)for(let[w,x]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(b.type==="document"){let R=b.nodes.map(N=>x(N,this.helpers));await Promise.all(R)}else await x(b,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(x=>b.Once(x,this.helpers));return m(w[0])?Promise.all(w):w}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(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 b=this.result.opts,w=a;b.syntax&&(w=b.syntax.stringify),b.stringifier&&(w=b.stringifier),w.stringify&&(w=w.stringify);let R=new o(w,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let b of this.plugins){let w=this.runOnRoot(b);if(m(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];)b[e]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let w of b.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,w){return this.async().then(b,w)}toString(){return this.css}visitSync(b,w){for(let[x,R]of b){this.result.lastPlugin=x;let N;try{N=R(w,this.helpers)}catch(O){throw this.handleError(O,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(m(N))throw this.getAsyncError()}}visitTick(b){let w=b[b.length-1],{node:x,visitors:R}=w;if(x.type!=="root"&&x.type!=="document"&&!x.parent){b.pop();return}if(R.length>0&&w.visitorIndex<R.length){let[O,I]=R[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===R.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=O;try{return I(x.toProxy(),this.helpers)}catch(_){throw this.handleError(_,x)}}if(w.iterator!==0){let O=w.iterator,I;for(;I=x.nodes[x.indexes[O]];)if(x.indexes[O]+=1,!I[e]){I[e]=!0,b.push(g(I));return}w.iterator=0,delete x.indexes[O]}let N=w.events;for(;w.eventIndex<N.length;){let O=N[w.eventIndex];if(w.eventIndex+=1,O===s){x.nodes&&x.nodes.length&&(x[e]=!0,w.iterator=x.getIterator());return}else if(this.listeners[O]){w.visitors=this.listeners[O];return}}b.pop()}walkSync(b){b[e]=!0;let w=h(b);for(let x of w)if(x===s)b.nodes&&b.each(R=>{R[e]||this.walkSync(R)});else{let R=this.listeners[x];if(R&&this.visitSync(R,b.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 y.registerPostcss=v=>{S=v},Je=y,y.default=y,u.registerLazyResult(y),p.registerLazyResult(y),Je}var Ye,Yt;function _i(){if(Yt)return Ye;Yt=1;let e=Sr(),t=he(),o=Cr(),a=ut();const i=ot();class p{constructor(d,n,u){n=n.toString(),this.stringified=!1,this._processor=d,this._css=n,this._opts=u,this._map=void 0;let r,c=t;this.result=new i(this._processor,r,this._opts),this.result.css=n;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let s=new e(c,r,this._opts,n);if(s.isMap()){let[m,h]=s.generate();m&&(this.result.css=m),h&&(this.result.map=h)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(d){return this.async().catch(d)}finally(d){return this.async().then(d,d)}sync(){if(this.error)throw this.error;return this.result}then(d,n){return this.async().then(d,n)}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 d,n=a;try{d=n(this._css,this._opts)}catch(u){this.error=u}if(this.error)throw this.error;return this._root=d,d}get[Symbol.toStringTag](){return"NoWorkResult"}}return Ye=p,p.default=p,Ye}var Ke,Kt;function Pi(){if(Kt)return Ke;Kt=1;let e=_i(),t=Er(),o=nt(),a=ee();class i{constructor(f=[]){this.version="8.4.38",this.plugins=this.normalize(f)}normalize(f){let d=[];for(let n of f)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))d=d.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)d.push(n);else if(typeof n=="function")d.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return d}process(f,d={}){return!this.plugins.length&&!d.parser&&!d.stringifier&&!d.syntax?new e(this,f,d):new t(this,f,d)}use(f){return this.plugins=this.plugins.concat(this.normalize([f])),this}}return Ke=i,i.default=i,a.registerProcessor(i),o.registerProcessor(i),Ke}var Qe,Qt;function ki(){if(Qt)return Qe;Qt=1;let e=de(),t=br(),o=ge(),a=lt(),i=me(),p=ee(),f=at();function d(n,u){if(Array.isArray(n))return n.map(m=>d(m));let l=n,{inputs:r}=l,c=Ce(l,["inputs"]);if(r){u=[];for(let m of r){let h=Q(B({},m),{__proto__:i.prototype});h.map&&(h.map=Q(B({},h.map),{__proto__:t.prototype})),u.push(h)}}if(c.nodes&&(c.nodes=n.nodes.map(m=>d(m,u))),c.source){let s=c.source,{inputId:m}=s,h=Ce(s,["inputId"]);c.source=h,m!=null&&(c.source.input=u[m])}if(c.type==="root")return new p(c);if(c.type==="decl")return new e(c);if(c.type==="rule")return new f(c);if(c.type==="comment")return new o(c);if(c.type==="atrule")return new a(c);throw new Error("Unknown node type: "+n.type)}return Qe=d,d.default=d,Qe}var Ze,Zt;function Ii(){if(Zt)return Ze;Zt=1;let e=it(),t=de(),o=Er(),a=V(),i=Pi(),p=he(),f=ki(),d=nt(),n=vr(),u=ge(),r=lt(),c=ot(),l=me(),s=ut(),m=xr(),h=at(),g=ee(),C=pe();function S(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new i(y)}return S.plugin=function(v,b){let w=!1;function x(...N){console&&console.warn&&!w&&(w=!0,console.warn(v+`: postcss.plugin was deprecated. Migration guide:
|
|
39
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(
|
|
40
|
-
https://www.w3ctech.com/topic/2226`));let
|
|
35
|
+
`)&&(t=`\r
|
|
36
|
+
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||xe(e.file),s;this.mapOpts.sourcesContent===!1?(s=new Cr(e.text),s.sourcesContent&&(s.sourcesContent=null)):s=e.consumer(),this.map.applySourceMap(s,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),bs&&ws&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Ce.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Ce({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 Ce({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,n;this.stringify(this.root,(l,a,u)=>{if(this.css+=l,a&&u!=="end"&&(s.generated.line=e,s.generated.column=t-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=r,s.original.line=1,s.original.column=0,this.map.addMapping(s))),o=l.match(/\n/g),o?(e+=o.length,n=l.lastIndexOf(`
|
|
37
|
+
`),t=l.length-n):t+=l.length,a&&u!=="start"){let f=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==f.last||f.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=r,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?xe(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=xe(vr(r,this.mapOpts.annotation)));let s=xr(r,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new ys(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let s=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Vt){let r=Vt(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Er==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var Or=Ss;let Cs=Pe,nt=class extends Cs{constructor(e){super(e),this.type="comment"}};var Le=nt;nt.default=nt;let{isClean:Rr,my:Nr}=oe,Mr=Ie,Ar=Le,xs=Pe,_r,gt,yt,kr;function Pr(i){return i.map(e=>(e.nodes&&(e.nodes=Pr(e.nodes)),delete e.source,e))}function Ir(i){if(i[Rr]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)Ir(e)}let D=class $r extends xs{append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let s of r)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],s=e(this.proxyOf.nodes[r],r),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(s=>typeof s=="function"?(o,n)=>s(o.toProxy(),n):s)):t==="every"||t==="some"?r=>e[t]((s,...o)=>r(s.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),s=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let n of s)this.proxyOf.nodes.splice(r+1,0,n);let o;for(let n in this.indexes)o=this.indexes[n],r<o&&(this.indexes[n]=o+s.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),s=r===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[r],s).reverse();r=this.index(e);for(let l of o)this.proxyOf.nodes.splice(r,0,l);let n;for(let l in this.indexes)n=this.indexes[l],r<=n&&(this.indexes[l]=n+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Pr(_r(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Mr(e)]}else if(e.selector)e=[new gt(e)];else if(e.name)e=[new yt(e)];else if(e.text)e=[new Ar(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[Nr]||$r.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Rr]&&Ir(s),typeof s.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let s of r)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let s;try{s=e(t,r)}catch(o){throw t.addToError(o)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,s)}):this.walk((r,s)=>{if(r.type==="atrule"&&r.name===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="atrule")return t(r,s)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,s)}):this.walk((r,s)=>{if(r.type==="decl"&&r.prop===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="decl")return t(r,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,s)}):this.walk((r,s)=>{if(r.type==="rule"&&r.selector===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="rule")return t(r,s)}))}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]}};D.registerParse=i=>{_r=i};D.registerRule=i=>{gt=i};D.registerAtRule=i=>{yt=i};D.registerRoot=i=>{kr=i};var z=D;D.default=D;D.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,yt.prototype):i.type==="rule"?Object.setPrototypeOf(i,gt.prototype):i.type==="decl"?Object.setPrototypeOf(i,Mr.prototype):i.type==="comment"?Object.setPrototypeOf(i,Ar.prototype):i.type==="root"&&Object.setPrototypeOf(i,kr.prototype),i[Nr]=!0,i.nodes&&i.nodes.forEach(e=>{D.rebuild(e)})};let vs=z,Lr,Dr,te=class extends vs{constructor(e){super(L({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new Lr(new Dr,this,e).stringify()}};te.registerLazyResult=i=>{Lr=i};te.registerProcessor=i=>{Dr=i};var wt=te;te.default=te;let ot=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Tr=ot;ot.default=ot;let Es=Tr,lt=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new Es(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var bt=lt;lt.default=lt;const Je=39,Gt=34,he=92,Ht=47,pe=10,Z=32,de=12,me=9,ge=13,Os=91,Rs=93,Ns=40,Ms=41,As=123,_s=125,ks=59,Ps=42,Is=58,$s=64,ye=/[\t\n\f\r "#'()/;[\\\]{}]/g,we=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ls=/.[\r\n"'(/\\]/,qt=/[\da-f]/i;var Ds=function(e,t={}){let r=e.css.valueOf(),s=t.ignoreErrors,o,n,l,a,u,f,h,d,m,y,w=r.length,c=0,O=[],M=[];function p(){return c}function b(I){throw e.error("Unclosed "+I,c)}function R(){return M.length===0&&c>=w}function A(I){if(M.length)return M.pop();if(c>=w)return;let k=I?I.ignoreUnclosed:!1;switch(o=r.charCodeAt(c),o){case pe:case Z:case me:case ge:case de:{n=c;do n+=1,o=r.charCodeAt(n);while(o===Z||o===pe||o===me||o===ge||o===de);y=["space",r.slice(c,n)],c=n-1;break}case Os:case Rs:case As:case _s:case Is:case ks:case Ms:{let U=String.fromCharCode(o);y=[U,U,c];break}case Ns:{if(d=O.length?O.pop()[1]:"",m=r.charCodeAt(c+1),d==="url"&&m!==Je&&m!==Gt&&m!==Z&&m!==pe&&m!==me&&m!==de&&m!==ge){n=c;do{if(f=!1,n=r.indexOf(")",n+1),n===-1)if(s||k){n=c;break}else b("bracket");for(h=n;r.charCodeAt(h-1)===he;)h-=1,f=!f}while(f);y=["brackets",r.slice(c,n+1),c,n],c=n}else n=r.indexOf(")",c+1),a=r.slice(c,n+1),n===-1||Ls.test(a)?y=["(","(",c]:(y=["brackets",a,c,n],c=n);break}case Je:case Gt:{l=o===Je?"'":'"',n=c;do{if(f=!1,n=r.indexOf(l,n+1),n===-1)if(s||k){n=c+1;break}else b("string");for(h=n;r.charCodeAt(h-1)===he;)h-=1,f=!f}while(f);y=["string",r.slice(c,n+1),c,n],c=n;break}case $s:{ye.lastIndex=c+1,ye.test(r),ye.lastIndex===0?n=r.length-1:n=ye.lastIndex-2,y=["at-word",r.slice(c,n+1),c,n],c=n;break}case he:{for(n=c,u=!0;r.charCodeAt(n+1)===he;)n+=1,u=!u;if(o=r.charCodeAt(n+1),u&&o!==Ht&&o!==Z&&o!==pe&&o!==me&&o!==ge&&o!==de&&(n+=1,qt.test(r.charAt(n)))){for(;qt.test(r.charAt(n+1));)n+=1;r.charCodeAt(n+1)===Z&&(n+=1)}y=["word",r.slice(c,n+1),c,n],c=n;break}default:{o===Ht&&r.charCodeAt(c+1)===Ps?(n=r.indexOf("*/",c+2)+1,n===0&&(s||k?n=r.length:b("comment")),y=["comment",r.slice(c,n+1),c,n],c=n):(we.lastIndex=c+1,we.test(r),we.lastIndex===0?n=r.length-1:n=we.lastIndex-2,y=["word",r.slice(c,n+1),c,n],O.push(y),c=n);break}}return c++,y}function T(I){M.push(I)}return{back:T,endOfFile:R,nextToken:A,position:p}};let Ur=z,Re=class extends Ur{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var St=Re;Re.default=Re;Ur.registerAtRule(Re);let Fr=z,zr,Br,H=class extends Fr{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let s=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of s)o.raws.before=t.raws.before}return s}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new zr(new Br,this,e).stringify()}};H.registerLazyResult=i=>{zr=i};H.registerProcessor=i=>{Br=i};var le=H;H.default=H;Fr.registerRoot(H);let re={comma(i){return re.split(i,[","],!0)},space(i){let e=[" ",`
|
|
38
|
+
`," "];return re.split(i,e)},split(i,e,t){let r=[],s="",o=!1,n=0,l=!1,a="",u=!1;for(let f of i)u?u=!1:f==="\\"?u=!0:l?f===a&&(l=!1):f==='"'||f==="'"?(l=!0,a=f):f==="("?n+=1:f===")"?n>0&&(n-=1):n===0&&e.includes(f)&&(o=!0),o?(s!==""&&r.push(s.trim()),s="",o=!1):s+=f;return(t||s!=="")&&r.push(s.trim()),r}};var jr=re;re.default=re;let Wr=z,Ts=jr,Ne=class extends Wr{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Ts.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var Ct=Ne;Ne.default=Ne;Wr.registerRule(Ne);let Us=Ie,Fs=Ds,zs=Le,Bs=St,js=le,Jt=Ct;const Yt={empty:!0,space:!0};function Ws(i){for(let e=i.length-1;e>=0;e--){let t=i[e],r=t[3]||t[2];if(r)return r}}let Vs=class{constructor(e){this.input=e,this.root=new js,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Bs;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,s,o,n=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(a.length>0){for(o=a.length-1,s=a[o];s&&s[0]==="space";)s=a[--o];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),n&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,s;for(let o=t-1;o>=0&&(s=e[o],!(s[0]!=="space"&&(r+=1,r===2)));o--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,r,s,o;for(let[n,l]of e.entries()){if(r=l,s=r[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!o)this.doubleColon(r);else{if(o[0]==="word"&&o[1]==="progid")continue;return n}o=r}return!1}comment(e){let t=new zs;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let s=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=Fs(this.input)}decl(e,t){let r=new Us;this.init(r,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||Ws(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){r.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let n=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)n.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(o=e[u],o[1].toLowerCase()==="!important"){r.important=!0;let f=this.stringFrom(e,u);f=this.spacesFromEnd(e)+f,f!==" !important"&&(r.raws.important=f);break}else if(o[1].toLowerCase()==="important"){let f=e.slice(0),h="";for(let d=u;d>0;d--){let m=f[d][0];if(h.trim().indexOf("!")===0&&m!=="space")break;h=f.pop()[1]+h}h.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=h,e=f)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(r.raws.between+=n.map(u=>u[1]).join(""),n=[]),this.raw(r,"value",n.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Jt;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,s=!1,o=null,n=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(r=u[0],a.push(u),r==="("||r==="[")o||(o=u),n.push(r==="("?")":"]");else if(l&&s&&r==="{")o||(o=u),n.push("}");else if(n.length===0)if(r===";")if(s){this.decl(a,l);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),t=!0;break}else r===":"&&(s=!0);else r===n[n.length-1]&&(n.pop(),n.length===0&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(o),t&&s){if(!l)for(;a.length&&(u=a[a.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let o,n,l=r.length,a="",u=!0,f,h;for(let d=0;d<l;d+=1)o=r[d],n=o[0],n==="space"&&d===l-1&&!s?u=!1:n==="comment"?(h=r[d-1]?r[d-1][0]:"empty",f=r[d+1]?r[d+1][0]:"empty",!Yt[h]&&!Yt[f]?a.slice(-1)===","?u=!1:a+=o[1]:u=!1):a+=o[1];if(!u){let d=r.reduce((m,y)=>m+y[1],"");e.raws[t]={raw:d,value:a}}e[t]=a}rule(e){e.pop();let t=new Jt;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let s=t;s<e.length;s++)r+=e[s][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Gs=Vs;let Hs=z,qs=Gs,Js=$e;function Me(i,e){let t=new Js(i,e),r=new qs(t);try{r.parse()}catch(s){throw s}return r.root}var xt=Me;Me.default=Me;Hs.registerParse(Me);let{isClean:$,my:Ys}=oe,Ks=Or,Qs=ke,Zs=z,Xs=wt;let Kt=bt,en=xt,tn=le;const rn={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},sn={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},nn={Once:!0,postcssPlugin:!0,prepare:!0},q=0;function X(i){return typeof i=="object"&&typeof i.then=="function"}function Vr(i){let e=!1,t=rn[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,q,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,q,t+"Exit"]:[t,t+"Exit"]}function Qt(i){let e;return i.type==="document"?e=["Document",q,"DocumentExit"]:i.type==="root"?e=["Root",q,"RootExit"]:e=Vr(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function at(i){return i[$]=!1,i.nodes&&i.nodes.forEach(e=>at(e)),i}let ut={},J=class Gr{constructor(e,t,r){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=at(t);else if(t instanceof Gr||t instanceof Kt)s=at(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let o=en;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{s=o(t,r)}catch(n){this.processed=!0,this.error=n}s&&!s[Ys]&&Zs.rebuild(s)}this.result=new Kt(e,s,r),this.helpers=Q(L({},ut),{postcss:ut,result:this.result}),this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?L(L({},o),o.prepare(this.result)):o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,r,s)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!sn[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!nn[r])if(typeof t[r]=="object")for(let s in t[r])s==="*"?e(t,r,t[r][s]):e(t,r+"-"+s.toLowerCase(),t[r][s]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(X(r))try{await r}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[$];){e[$]=!0;let t=[Qt(e)];for(;t.length>0;){let r=this.visitTick(t);if(X(r))try{await r}catch(s){let o=t[t.length-1].node;throw this.handleError(s,o)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(o=>r(o,this.helpers));await Promise.all(s)}else await r(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return X(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Qs;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new Ks(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(X(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[$];)e[$]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,s]of e){this.result.lastPlugin=r;let o;try{o=s(t,this.helpers)}catch(n){throw this.handleError(n,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(X(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:s}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[n,l]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=n;try{return l(r.toProxy(),this.helpers)}catch(a){throw this.handleError(a,r)}}if(t.iterator!==0){let n=t.iterator,l;for(;l=r.nodes[r.indexes[n]];)if(r.indexes[n]+=1,!l[$]){l[$]=!0,e.push(Qt(l));return}t.iterator=0,delete r.indexes[n]}let o=t.events;for(;t.eventIndex<o.length;){let n=o[t.eventIndex];if(t.eventIndex+=1,n===q){r.nodes&&r.nodes.length&&(r[$]=!0,t.iterator=r.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[$]=!0;let t=Vr(e);for(let r of t)if(r===q)e.nodes&&e.each(s=>{s[$]||this.walkSync(s)});else{let s=this.listeners[r];if(s&&this.visitSync(s,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};J.registerPostcss=i=>{ut=i};var Hr=J;J.default=J;tn.registerLazyResult(J);Xs.registerLazyResult(J);let on=Or,ln=ke;let an=xt;const un=bt;let ft=class{constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s,o=ln;this.result=new un(this._processor,s,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let l=new on(o,s,this._opts,t);if(l.isMap()){let[a,u]=l.generate();a&&(this.result.css=a),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=an;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var fn=ft;ft.default=ft;let cn=fn,hn=Hr,pn=wt,dn=le,ie=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new cn(this,e,t):new hn(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var mn=ie;ie.default=ie;dn.registerProcessor(ie);pn.registerProcessor(ie);let gn=Ie,yn=Sr,wn=Le,bn=St,Sn=$e,Cn=le,xn=Ct;function se(i,e){if(Array.isArray(i))return i.map(n=>se(n));let s=i,{inputs:t}=s,r=ze(s,["inputs"]);if(t){e=[];for(let n of t){let l=Q(L({},n),{__proto__:Sn.prototype});l.map&&(l.map=Q(L({},l.map),{__proto__:yn.prototype})),e.push(l)}}if(r.nodes&&(r.nodes=i.nodes.map(n=>se(n,e))),r.source){let o=r.source,{inputId:n}=o,l=ze(o,["inputId"]);r.source=l,n!=null&&(r.source.input=e[n])}if(r.type==="root")return new Cn(r);if(r.type==="decl")return new gn(r);if(r.type==="rule")return new xn(r);if(r.type==="comment")return new wn(r);if(r.type==="atrule")return new bn(r);throw new Error("Unknown node type: "+i.type)}var vn=se;se.default=se;let En=mt,qr=Ie,On=Hr,Rn=z,vt=mn,Nn=ke,Mn=vn,Jr=wt,An=Tr,Yr=Le,Kr=St,_n=bt,kn=$e,Pn=xt,In=jr,Qr=Ct,Zr=le,$n=Pe;function S(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new vt(i)}S.plugin=function(e,t){let r=!1;function s(...n){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
39
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
40
|
+
https://www.w3ctech.com/topic/2226`));let l=t(...n);return l.postcssPlugin=e,l.postcssVersion=new vt().version,l}let o;return Object.defineProperty(s,"postcss",{get(){return o||(o=s()),o}}),s.process=function(n,l,a){return S([s(a)]).process(n,l)},s};S.stringify=Nn;S.parse=Pn;S.fromJSON=Mn;S.list=In;S.comment=i=>new Yr(i);S.atRule=i=>new Kr(i);S.decl=i=>new qr(i);S.rule=i=>new Qr(i);S.root=i=>new Zr(i);S.document=i=>new Jr(i);S.CssSyntaxError=En;S.Declaration=qr;S.Container=Rn;S.Processor=vt;S.Document=Jr;S.Comment=Yr;S.Warning=An;S.AtRule=Kr;S.Result=_n;S.Input=kn;S.Rule=Qr;S.Root=Zr;S.Node=$n;On.registerPostcss(S);var Ln=S;S.default=S;const E=Hi(Ln);E.stringify;E.fromJSON;E.plugin;E.parse;E.list;E.document;E.comment;E.atRule;E.rule;E.decl;E.root;E.CssSyntaxError;E.Declaration;E.Container;E.Processor;E.Document;E.Comment;E.Warning;E.AtRule;E.Result;E.Input;E.Rule;E.Root;E.Node;const Zt={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 Dn(i){let e=Zt[i.tagName]?Zt[i.tagName]:i.tagName;return e==="link"&&i.attributes._cssText&&(e="style"),e}function De(i,e){const t=e==null?void 0:e.stylesWithHoverClass.get(i);if(t)return t;const s=E([Vi,Gi]).process(i).css;return e==null||e.stylesWithHoverClass.set(i,s),s}function Tn(){return{stylesWithHoverClass:new Map}}function Un(i,e,t,r){const s=[];for(const n of i.childNodes)n.type===g.Text&&s.push(n);const o=e.split("/* rr_split */");for(;o.length>1&&o.length>s.length;)o.splice(-2,2,o.slice(-2).join(""));for(let n=0;n<s.length;n++){const l=s[n],a=o[n];l&&a&&(l.textContent=t?De(a,r):a)}}function Fn(i,e,t,r){const{doc:s,hackCss:o,cache:n}=r;i.childNodes.length?Un(i,t,o,n):(o&&(t=De(t,n)),e.appendChild(s.createTextNode(t)))}function zn(i,e){var t;const{doc:r,hackCss:s,cache:o}=e;switch(i.type){case g.Document:return r.implementation.createDocument(null,"",null);case g.DocumentType:return r.implementation.createDocumentType(i.name||"html",i.publicId,i.systemId);case g.Element:{const n=Dn(i);let l;i.isSVG?l=r.createElementNS("http://www.w3.org/2000/svg",n):(i.isCustom&&((t=r.defaultView)!=null&&t.customElements)&&!r.defaultView.customElements.get(i.tagName)&&r.defaultView.customElements.define(i.tagName,class extends r.defaultView.HTMLElement{}),l=r.createElement(n));const a={};for(const u in i.attributes){if(!Object.prototype.hasOwnProperty.call(i.attributes,u))continue;let f=i.attributes[u];if(!(n==="option"&&u==="selected"&&f===!1)&&f!==null){if(f===!0&&(f=""),u.startsWith("rr_")){a[u]=f;continue}if(typeof f=="string"){if(n==="style"&&u==="_cssText"){Fn(i,l,f,e);continue}else if(n==="textarea"&&u==="value"){l.appendChild(r.createTextNode(f)),i.childNodes=[];continue}}try{if(i.isSVG&&u==="xlink:href")l.setAttributeNS("http://www.w3.org/1999/xlink",u,f.toString());else if(u==="onload"||u==="onclick"||u.substring(0,7)==="onmouse")l.setAttribute("_"+u,f.toString());else if(n==="meta"&&i.attributes["http-equiv"]==="Content-Security-Policy"&&u==="content"){l.setAttribute("csp-content",f.toString());continue}else n==="link"&&(i.attributes.rel==="preload"||i.attributes.rel==="modulepreload")&&i.attributes.as==="script"||n==="link"&&i.attributes.rel==="prefetch"&&typeof i.attributes.href=="string"&&i.attributes.href.endsWith(".js")||(n==="img"&&i.attributes.srcset&&i.attributes.rr_dataURL?l.setAttribute("rrweb-original-srcset",i.attributes.srcset):l.setAttribute(u,f.toString()))}catch(h){}}}for(const u in a){const f=a[u];if(n==="canvas"&&u==="rr_dataURL"){const h=r.createElement("img");h.onload=()=>{const d=l.getContext("2d");d&&d.drawImage(h,0,0,h.width,h.height)},h.src=f.toString(),l.RRNodeType&&(l.rr_dataURL=f.toString())}else if(n==="img"&&u==="rr_dataURL"){const h=l;h.currentSrc.startsWith("data:")||(h.setAttribute("rrweb-original-src",i.attributes.src),h.src=f.toString())}if(u==="rr_width")l.style.setProperty("width",f.toString());else if(u==="rr_height")l.style.setProperty("height",f.toString());else if(u==="rr_mediaCurrentTime"&&typeof f=="number")l.currentTime=f;else if(u==="rr_mediaState")switch(f){case"played":l.play().catch(h=>console.warn("media playback error",h));break;case"paused":l.pause();break}else u==="rr_mediaPlaybackRate"&&typeof f=="number"?l.playbackRate=f:u==="rr_mediaMuted"&&typeof f=="boolean"?l.muted=f:u==="rr_mediaLoop"&&typeof f=="boolean"?l.loop=f:u==="rr_mediaVolume"&&typeof f=="number"?l.volume=f:u==="rr_open_mode"&&l.setAttribute("rr_open_mode",f)}if(i.isShadowHost)if(!l.shadowRoot)l.attachShadow({mode:"open"});else for(;l.shadowRoot.firstChild;)l.shadowRoot.removeChild(l.shadowRoot.firstChild);return l}case g.Text:return i.isStyle&&s?r.createTextNode(De(i.textContent,o)):r.createTextNode(i.textContent);case g.CDATA:return r.createCDATASection(i.textContent);case g.Comment:return r.createComment(i.textContent);default:return null}}function Et(i,e){const{doc:t,mirror:r,skipChild:s=!1,hackCss:o=!0,afterAppend:n,cache:l}=e;if(r.has(i.id)){const u=r.getNode(i.id),f=r.getMeta(u);if(ar(f,i))return r.getNode(i.id)}let a=zn(i,{doc:t,hackCss:o,cache:l});if(!a)return null;if(i.rootId&&r.getNode(i.rootId)!==t&&r.replace(i.rootId,t),i.type===g.Document&&(t.close(),t.open(),i.compatMode==="BackCompat"&&i.childNodes&&i.childNodes[0].type!==g.DocumentType&&(i.childNodes[0].type===g.Element&&"xmlns"in i.childNodes[0].attributes&&i.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),a=t),r.add(a,i),(i.type===g.Document||i.type===g.Element)&&!s)for(const u of i.childNodes){const f=Et(u,{doc:t,mirror:r,skipChild:!1,hackCss:o,afterAppend:n,cache:l});if(!f){console.warn("Failed to rebuild",u);continue}if(u.isShadow&&Ae(a)&&a.shadowRoot)a.shadowRoot.appendChild(f);else if(i.type===g.Document&&u.type==g.Element){const h=f;let d=null;h.childNodes.forEach(m=>{m.nodeName==="BODY"&&(d=m)}),d?(h.removeChild(d),a.appendChild(f),h.appendChild(d)):a.appendChild(f)}else a.appendChild(f);n&&n(f,u.id)}return a}function Bn(i,e){function t(r){e(r)}for(const r of i.getIds())i.has(r)&&t(i.getNode(r))}function jn(i,e){const t=e.getMeta(i);if((t==null?void 0:t.type)!==g.Element)return;const r=i;for(const s in t.attributes){if(!(Object.prototype.hasOwnProperty.call(t.attributes,s)&&s.startsWith("rr_")))continue;const o=t.attributes[s];s==="rr_scrollLeft"&&(r.scrollLeft=o),s==="rr_scrollTop"&&(r.scrollTop=o)}}function Wn(i,e){const{doc:t,onVisit:r,hackCss:s=!0,afterAppend:o,cache:n,mirror:l=new _e}=e,a=Et(i,{doc:t,mirror:l,skipChild:!1,hackCss:s,afterAppend:o,cache:n});return Bn(l,u=>{r&&r(u),jn(u,l)}),a}exports.IGNORED_NODE=Ye;exports.Mirror=_e;exports.absolutifyURLs=ee;exports.adaptCssForReplay=De;exports.buildNodeWithSN=Et;exports.classMatchesRegex=Ee;exports.cleanupSnapshot=ji;exports.createCache=Tn;exports.createMirror=bi;exports.escapeImportStatement=tr;exports.extractFileExtension=ht;exports.fixSafariColons=ir;exports.genId=pr;exports.getInputType=ur;exports.ignoreAttribute=mr;exports.is2DCanvasBlank=lr;exports.isCSSImportRule=sr;exports.isCSSStyleRule=nr;exports.isElement=Ae;exports.isNativeShadowDom=be;exports.isNodeMetaEqual=ar;exports.isShadowRoot=er;exports.markCssSplits=cr;exports.maskInputValue=or;exports.needMaskingText=gr;exports.normalizeCssString=Se;exports.rebuild=Wn;exports.serializeNodeWithId=G;exports.snapshot=zi;exports.splitCssText=fr;exports.stringifyRule=rr;exports.stringifyStylesheet=ve;exports.toLowerCase=ne;exports.transformAttribute=dr;exports.visitSnapshot=Bi;
|
|
41
41
|
if (typeof module.exports == "object" && typeof exports == "object") {
|
|
42
42
|
var __cp = (to, from, except, desc) => {
|
|
43
43
|
if ((from && typeof from === "object") || typeof from === "function") {
|