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