@seanhogg/builderforce-insights 0.0.0-stage → 2026.11.31

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.
Files changed (58) hide show
  1. package/README.md +277 -2
  2. package/dist/assets/embed/v1.js +1 -0
  3. package/dist/assets/replay/manifest.json +16 -0
  4. package/dist/assets/replay/r/pagekit.ca1bd1d2c19b.js +1 -0
  5. package/dist/assets/replay/r/player.35d774f1c2e0.js +147 -0
  6. package/dist/assets/replay/r/player.64d720c3a896.css +79 -0
  7. package/dist/assets/replay/r/recorder.8e54021cf50e.js +148 -0
  8. package/dist/assets/replay/v1/loader.js +1 -0
  9. package/dist/chunk-B2H4MPZI.mjs +18 -0
  10. package/dist/chunk-B2H4MPZI.mjs.map +1 -0
  11. package/dist/chunk-S24NNQ7M.mjs +69 -0
  12. package/dist/chunk-S24NNQ7M.mjs.map +1 -0
  13. package/dist/chunk-YW7PF6RP.mjs +101 -0
  14. package/dist/chunk-YW7PF6RP.mjs.map +1 -0
  15. package/dist/embed.js +1 -0
  16. package/dist/errors.cjs +1154 -0
  17. package/dist/errors.cjs.map +1 -0
  18. package/dist/errors.d.cts +92 -0
  19. package/dist/errors.d.ts +92 -0
  20. package/dist/errors.global.js +1146 -0
  21. package/dist/errors.global.js.map +1 -0
  22. package/dist/errors.mjs +999 -0
  23. package/dist/errors.mjs.map +1 -0
  24. package/dist/feedback.cjs +424 -0
  25. package/dist/feedback.cjs.map +1 -0
  26. package/dist/feedback.d.cts +175 -0
  27. package/dist/feedback.d.ts +175 -0
  28. package/dist/feedback.global.js +409 -0
  29. package/dist/feedback.global.js.map +1 -0
  30. package/dist/feedback.mjs +369 -0
  31. package/dist/feedback.mjs.map +1 -0
  32. package/dist/index.cjs +19 -0
  33. package/dist/index.cjs.map +1 -0
  34. package/dist/index.d.cts +45 -0
  35. package/dist/index.d.ts +45 -0
  36. package/dist/index.mjs +1 -0
  37. package/dist/index.mjs.map +1 -0
  38. package/dist/loader.js +1 -0
  39. package/dist/pagekit.js +1 -0
  40. package/dist/player.js +147 -0
  41. package/dist/recorder.js +148 -0
  42. package/dist/replay.cjs +58 -0
  43. package/dist/replay.cjs.map +1 -0
  44. package/dist/replay.d.cts +80 -0
  45. package/dist/replay.d.ts +80 -0
  46. package/dist/replay.global.js +56 -0
  47. package/dist/replay.global.js.map +1 -0
  48. package/dist/replay.mjs +23 -0
  49. package/dist/replay.mjs.map +1 -0
  50. package/dist/server.cjs +145 -0
  51. package/dist/server.cjs.map +1 -0
  52. package/dist/server.d.cts +22 -0
  53. package/dist/server.d.ts +22 -0
  54. package/dist/server.mjs +20 -0
  55. package/dist/server.mjs.map +1 -0
  56. package/dist/types-BfQtGtbS.d.cts +68 -0
  57. package/dist/types-BfQtGtbS.d.ts +68 -0
  58. package/package.json +91 -4
@@ -0,0 +1,147 @@
1
+ "use strict";var BuilderforceReplayPlayer=(()=>{var Jt=Object.defineProperty;var Bo=Object.getOwnPropertyDescriptor;var $o=Object.getOwnPropertyNames;var Wo=Object.prototype.hasOwnProperty;var zo=(e,t)=>{for(var r in t)Jt(e,r,{get:t[r],enumerable:!0})},qo=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of $o(t))!Wo.call(e,s)&&s!==r&&Jt(e,s,{get:()=>t[s],enumerable:!(i=Bo(t,s))||i.enumerable});return e};var Vo=e=>qo(Jt({},"__esModule",{value:!0}),e);var nc={};zo(nc,{Replayer:()=>Lt});var jo=Object.defineProperty,Go=(e,t,r)=>t in e?jo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M=(e,t,r)=>Go(e,typeof t!="symbol"?t+"":t,r),Xs,Ho=Object.defineProperty,Yo=(e,t,r)=>t in e?Ho(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Js=(e,t,r)=>Yo(e,typeof t!="symbol"?t+"":t,r),U=(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))(U||{}),Qs={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Zs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},lt={},kn={},Xo=()=>!!globalThis.Zone;function Os(e){if(lt[e])return lt[e];let t=globalThis[e],r=t.prototype,i=e in Qs?Qs[e]:void 0,s=!!(i&&i.every(l=>{var u,h;return!!((h=(u=Object.getOwnPropertyDescriptor(r,l))==null?void 0:u.get)!=null&&h.toString().includes("[native code]"))})),a=e in Zs?Zs[e]:void 0,o=!!(a&&a.every(l=>{var u;return typeof r[l]=="function"&&((u=r[l])==null?void 0:u.toString().includes("[native code]"))}));if(s&&o&&!Xo())return lt[e]=t.prototype,t.prototype;try{let l=document.createElement("iframe");l.style.display="none",document.body.appendChild(l);let u=l.contentWindow;if(!u)return t.prototype;let h=u[e].prototype;if(!h)return l.remove(),r;let n=navigator.userAgent;return n.includes("Safari")&&!n.includes("Chrome")?(l.classList.add("rr-block"),l.setAttribute("__rrwebUntaintedMutationObserver",""),kn[e]=()=>l.remove()):l.remove(),lt[e]=h}catch{return r}}var Qt={};function ce(e,t,r){var i,s;let a=(i=Qt[e])==null?void 0:i[r];if(a)return a.call(t);let o=Os(e),l=(s=Object.getOwnPropertyDescriptor(o,r))==null?void 0:s.get;return l?((Qt[e]||(Qt[e]={}))[r]=l,l.call(t)):t[r]}var Zt={};function Pn(e,t,r){let i=`${e}.${String(r)}`;if(Zt[i])return Zt[i].bind(t);let a=Os(e)[r];return typeof a!="function"?t[r]:(Zt[i]=a,a.bind(t))}function Jo(e){return ce("Node",e,"ownerDocument")}function Qo(e){return ce("Node",e,"childNodes")}function Zo(e){return ce("Node",e,"parentNode")}function Ko(e){return ce("Node",e,"parentElement")}function ea(e){return ce("Node",e,"textContent")}function ta(e){return ce("Node",e,"firstChild")}function ra(e){return ce("Node",e,"lastChild")}function sa(e){return ce("Node",e,"nextSibling")}function ia(e){return ce("Node",e,"previousSibling")}function na(e,t){return Pn("Node",e,"contains")(t)}function oa(e){return Pn("Node",e,"getRootNode")()}function aa(e){return!e||!("host"in e)?null:ce("ShadowRoot",e,"host")}function la(e){return e.styleSheets}function ua(e){return!e||!("shadowRoot"in e)?null:ce("Element",e,"shadowRoot")}function ca(e,t){return ce("Element",e,"querySelector")(t)}function ha(e,t){return ce("Element",e,"querySelectorAll")(t)}function fa(){return[Os("MutationObserver").constructor,kn.MutationObserver??(()=>{})]}var Ln=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Ln=()=>new Date().getTime());function da(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],s=r(i);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=s,()=>{e[t]=i}}catch{return()=>{}}}var re={ownerDocument:Jo,childNodes:Qo,parentNode:Zo,parentElement:Ko,textContent:ea,firstChild:ta,lastChild:ra,nextSibling:sa,previousSibling:ia,contains:na,getRootNode:oa,host:aa,styleSheets:la,shadowRoot:ua,querySelector:ca,querySelectorAll:ha,nowTimestamp:Ln,mutationObserverCtor:fa,patch:da};function Is(e){return e.nodeType===e.ELEMENT_NODE}function Qe(e){let t=e&&"host"in e&&"mode"in e&&re.host(e)||null;return!!(t&&"shadowRoot"in t&&re.shadowRoot(t)===e)}function Ze(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function pa(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 ma(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function ns(e){try{let t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);let i=Array.from(t,s=>Fn(s,r)).join("");return pa(i)}catch{return null}}function Fn(e,t){if(ya(e)){let r;try{r=ns(e.styleSheet)||ma(e)}catch{r=e.cssText}return e.styleSheet.href?Ct(r,e.styleSheet.href):r}else{let r=e.cssText;return wa(e)&&e.selectorText.includes(":")&&(r=ga(r)),t?Ct(r,t):r}}function ga(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function ya(e){return"styleSheet"in e}function wa(e){return"selectorText"in e}var rt=class{constructor(){Js(this,"idNodeMap",new Map),Js(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){let i=this.getNode(t);if(i){let s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Un(){return new rt}function vt({element:e,maskInputOptions:t,tagName:r,type:i,value:s,maskInputFn:a}){let o=s||"",l=i&&Ce(i);return(t[r.toLowerCase()]||l&&t[l])&&(a?o=a(o,e):o="*".repeat(o.length)),o}function Ce(e){return e.toLowerCase()}var Ks="__rrweb_original__";function ba(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let i=0;i<e.width;i+=r)for(let s=0;s<e.height;s+=r){let a=t.getImageData,o=Ks in a?a[Ks]:a;if(new Uint32Array(o.call(t,i,s,Math.min(r,e.width-i),Math.min(r,e.height-s)).data.buffer).some(u=>u!==0))return!1}return!0}function va(e,t){return!e||!t||e.type!==t.type?!1:e.type===U.Document?e.compatMode===t.compatMode:e.type===U.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===U.Comment||e.type===U.Text||e.type===U.CDATA?e.textContent===t.textContent:e.type===U.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function St(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ce(t):null}function Ds(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}let i=/\.([0-9a-z]+)(?:$)/i,s=r.pathname.match(i);return s?.[1]??null}function Sa(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var Ca=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ea=/^(?:[a-z+]+:)?\/\//i,xa=/^www\..*/i,Ra=/^(data:)([^,]*),(.*)/i;function Ct(e,t){return(e||"").replace(Ca,(r,i,s,a,o,l)=>{let u=s||o||l,h=i||a||"";if(!u)return r;if(Ea.test(u)||xa.test(u))return`url(${h}${u}${h})`;if(Ra.test(u))return`url(${h}${u}${h})`;if(u[0]==="/")return`url(${h}${Sa(t)+u}${h})`;let n=u.split("#")[0],d=u.substring(n.length),c=t.split("#")[0].split("/"),f=n.split("/");c.pop();for(let m of f)m!=="."&&(m===".."?c.pop():c.push(m));return`url(${h}${c.join("/")}${d}${h})`})}var Bn="(?:/\\*[^*]*\\*/)|[\\s;]",Ma=new RegExp(`${Bn}|\\b(0)px?`,"g"),Na=new RegExp(Bn,"g");function ut(e,t=!1){return t?e.replace(Na,""):e.replace(Ma,"$1")}function Oa(e,t,r=!1){let i=Array.from(t.childNodes),s=[],a=0;if(i.length>1&&e&&typeof e=="string"){let o=ut(e,r),l=o.length/e.length;for(let u=1;u<i.length;u++)if(i[u].textContent&&typeof i[u].textContent=="string"){let h=ut(i[u].textContent,r),n=100,d=3;for(;d<h.length&&(h[d].match(/[a-zA-Z0-9]/)||h.indexOf(h.substring(0,d),1)!==-1);d++);for(;d<h.length;d++){let c=h.substring(0,d),f=o.split(c),m=-1;if(f.length===2)m=f[0].length;else if(f.length>2&&f[0]===""&&i[u-1].textContent!=="")m=o.indexOf(c,1);else if(f.length===1){if(c=c.substring(0,c.length-1),f=o.split(c),f.length<=1)return s.push(e),s;d=n+1}else d===h.length-1&&(m=o.indexOf(c));if(f.length>=2&&d>n){let p=i[u-1].textContent;if(p&&typeof p=="string"){let g=ut(p).length;m=o.indexOf(c,g)}m===-1&&(m=f[0].length)}if(m!==-1){let p=Math.floor(m/l);for(;p>0&&p<e.length;){if(a+=1,a>50*i.length)return s.push(e),s;let g=ut(e.substring(0,p),r);if(g.length===m){s.push(e.substring(0,p)),e=e.substring(p),o=o.substring(m);break}else g.length<m?p+=Math.max(1,Math.floor((m-g.length)/l)):p-=Math.max(1,Math.floor((g.length-m)*l))}break}}}}return s.push(e),s}function Ia(e,t){return Oa(e,t).join("/* rr_split */")}var Da=1,Aa=new RegExp("[^a-z0-9-_:]"),Et=-2;function $n(){return Da++}function Ta(e){if(e instanceof HTMLFormElement)return"form";let t=Ce(e.tagName);return Aa.test(t)?"div":t}var Le,ei,_a=/^[^ \t\n\r\u000c]+/,ka=/^[, \t\n\r\u000c]+/;function Pa(e,t){if(t.trim()==="")return t;let r=0;function i(a){let o,l=a.exec(t.substring(r));return l?(o=l[0],r+=o.length,o):""}let s=[];for(;i(ka),!(r>=t.length);){let a=i(_a);if(a.slice(-1)===",")a=$e(e,a.substring(0,a.length-1)),s.push(a);else{let o="";a=$e(e,a);let l=!1;for(;;){let u=t.charAt(r);if(u===""){s.push((a+o).trim());break}else if(l)u===")"&&(l=!1);else if(u===","){r+=1,s.push((a+o).trim());break}else u==="("&&(l=!0);o+=u,r+=1}}}return s.join(", ")}var ti=new WeakMap;function $e(e,t){return!t||t.trim()===""?t:As(e,t)}function La(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function As(e,t){let r=ti.get(e);if(r||(r=e.createElement("a"),ti.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function Wn(e,t,r,i){return i&&(r==="src"||r==="href"&&!(t==="use"&&i[0]==="#")||r==="xlink:href"&&i[0]!=="#"||r==="background"&&["table","td","th"].includes(t)?$e(e,i):r==="srcset"?Pa(e,i):r==="style"?Ct(i,As(e)):t==="object"&&r==="data"?$e(e,i):i)}function zn(e,t,r){return["video","audio"].includes(e)&&Ce(t)==="autoplay"}function Fa(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){let s=e.classList[i];if(t.test(s))return!0}if(r)return e.matches(r)}catch{}return!1}function xt(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?xt(re.parentNode(e),t,r):!1;for(let i=e.classList.length;i--;){let s=e.classList[i];if(t.test(s))return!0}return r?xt(re.parentNode(e),t,r):!1}function qn(e,t,r,i){let s;if(Is(e)){if(s=e,!re.childNodes(s).length)return!1}else{if(re.parentElement(e)===null)return!1;s=re.parentElement(e)}try{if(typeof t=="string"){if(i){if(s.closest(`.${t}`))return!0}else if(s.classList.contains(t))return!0}else if(xt(s,t,i))return!0;if(r){if(i){if(s.closest(r))return!0}else if(s.matches(r))return!0}}catch{}return!1}function Ua(e,t,r){let i=e.contentWindow;if(!i)return;let s=!1,a;try{a=i.document.readyState}catch{return}if(a!=="complete"){let l=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(l),s=!0,t()});return}let o="about:blank";if(i.location.href!==o||e.src===o||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Ba(e,t,r){let i=!1,s;try{s=e.sheet}catch{return}if(s)return;let a=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}function $a(e,t){let{doc:r,mirror:i,blockClass:s,blockSelector:a,needsMask:o,inlineStylesheet:l,maskInputOptions:u={},maskTextFn:h,maskInputFn:n,dataURLOptions:d={},inlineImages:c,recordCanvas:f,keepIframeSrcFn:m,newlyAddedElement:p=!1,cssCaptured:g=!1}=t,b=Wa(r,i);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:U.Document,childNodes:[],compatMode:e.compatMode}:{type:U.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:U.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:b};case e.ELEMENT_NODE:return qa(e,{doc:r,blockClass:s,blockSelector:a,inlineStylesheet:l,maskInputOptions:u,maskInputFn:n,dataURLOptions:d,inlineImages:c,recordCanvas:f,keepIframeSrcFn:m,newlyAddedElement:p,rootId:b});case e.TEXT_NODE:return za(e,{doc:r,needsMask:o,maskTextFn:h,rootId:b,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:U.CDATA,textContent:"",rootId:b};case e.COMMENT_NODE:return{type:U.Comment,textContent:re.textContent(e)||"",rootId:b};default:return!1}}function Wa(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function za(e,t){let{needsMask:r,maskTextFn:i,rootId:s,cssCaptured:a}=t,o=re.parentNode(e),l=o&&o.tagName,u="",h=l==="STYLE"?!0:void 0,n=l==="SCRIPT"?!0:void 0;return n?u="SCRIPT_PLACEHOLDER":a||(u=re.textContent(e),h&&u&&(u=Ct(u,As(t.doc)))),!h&&!n&&u&&r&&(u=i?i(u,re.parentElement(e)):u.replace(/[\S]/g,"*")),{type:U.Text,textContent:u||"",rootId:s}}function qa(e,t){let{doc:r,blockClass:i,blockSelector:s,inlineStylesheet:a,maskInputOptions:o={},maskInputFn:l,dataURLOptions:u={},inlineImages:h,recordCanvas:n,keepIframeSrcFn:d,newlyAddedElement:c=!1,rootId:f}=t,m=Fa(e,i,s),p=Ta(e),g={},b=e.attributes.length;for(let w=0;w<b;w++){let C=e.attributes[w];zn(p,C.name,C.value)||(g[C.name]=Wn(r,p,Ce(C.name),C.value))}if(p==="link"&&a){let w=Array.from(r.styleSheets).find(v=>v.href===e.href),C=null;w&&(C=ns(w)),C&&(delete g.rel,delete g.href,g._cssText=C)}if(p==="style"&&e.sheet){let w=ns(e.sheet);w&&(e.childNodes.length>1&&(w=Ia(w,e)),g._cssText=w)}if(["input","textarea","select"].includes(p)){let w=e.value,C=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&w?g.value=vt({element:e,type:St(e),tagName:p,value:w,maskInputOptions:o,maskInputFn:l}):C&&(g.checked=C)}if(p==="option"&&(e.selected&&!o.select?g.selected=!0:delete g.selected),p==="dialog"&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),p==="canvas"&&n){if(e.__context==="2d")ba(e)||(g.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){let w=e.toDataURL(u.type,u.quality),C=r.createElement("canvas");C.width=e.width,C.height=e.height;let v=C.toDataURL(u.type,u.quality);w!==v&&(g.rr_dataURL=w)}}if(p==="img"&&h){Le||(Le=r.createElement("canvas"),ei=Le.getContext("2d"));let w=e,C=w.currentSrc||w.getAttribute("src")||"<unknown-src>",v=w.crossOrigin,S=()=>{w.removeEventListener("load",S);try{Le.width=w.naturalWidth,Le.height=w.naturalHeight,ei.drawImage(w,0,0),g.rr_dataURL=Le.toDataURL(u.type,u.quality)}catch(E){if(w.crossOrigin!=="anonymous"){w.crossOrigin="anonymous",w.complete&&w.naturalWidth!==0?S():w.addEventListener("load",S);return}else console.warn(`Cannot inline img src=${C}! Error: ${E}`)}w.crossOrigin==="anonymous"&&(v?g.crossOrigin=v:w.removeAttribute("crossorigin"))};w.complete&&w.naturalWidth!==0?S():w.addEventListener("load",S)}if(["audio","video"].includes(p)){let w=g;w.rr_mediaState=e.paused?"paused":"played",w.rr_mediaCurrentTime=e.currentTime,w.rr_mediaPlaybackRate=e.playbackRate,w.rr_mediaMuted=e.muted,w.rr_mediaLoop=e.loop,w.rr_mediaVolume=e.volume}if(c||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),m){let{width:w,height:C}=e.getBoundingClientRect();g={class:g.class,rr_width:`${w}px`,rr_height:`${C}px`}}p==="iframe"&&!d(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let y;try{customElements.get(p)&&(y=!0)}catch{}return{type:U.Element,tagName:p,attributes:g,childNodes:[],isSVG:La(e)||void 0,needBlock:m,rootId:f,isCustom:y}}function H(e){return e==null?"":e.toLowerCase()}function Vn(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e||{}}function Va(e,t){if(t.comment&&e.type===U.Comment)return!0;if(e.type===U.Element){if(t.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"&&Ds(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(H(e.attributes.name).match(/^msapplication-tile(image|color)$/)||H(e.attributes.name)==="application-name"||H(e.attributes.rel)==="icon"||H(e.attributes.rel)==="apple-touch-icon"||H(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&H(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(H(e.attributes.property).match(/^(og|twitter|fb):/)||H(e.attributes.name).match(/^(og|twitter):/)||H(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(H(e.attributes.name)==="robots"||H(e.attributes.name)==="googlebot"||H(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(H(e.attributes.name)==="author"||H(e.attributes.name)==="generator"||H(e.attributes.name)==="framework"||H(e.attributes.name)==="publisher"||H(e.attributes.name)==="progid"||H(e.attributes.property).match(/^article:/)||H(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(H(e.attributes.name)==="google-site-verification"||H(e.attributes.name)==="yandex-verification"||H(e.attributes.name)==="csrf-token"||H(e.attributes.name)==="p:domain_verify"||H(e.attributes.name)==="verify-v1"||H(e.attributes.name)==="verification"||H(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function We(e,t){let{doc:r,mirror:i,blockClass:s,blockSelector:a,maskTextClass:o,maskTextSelector:l,skipChild:u=!1,inlineStylesheet:h=!0,maskInputOptions:n={},maskTextFn:d,maskInputFn:c,slimDOMOptions:f,dataURLOptions:m={},inlineImages:p=!1,recordCanvas:g=!1,onSerialize:b,onIframeLoad:y,iframeLoadTimeout:w=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:v=5e3,keepIframeSrcFn:S=()=>!1,newlyAddedElement:E=!1,cssCaptured:R=!1}=t,{needsMask:I}=t,{preserveWhiteSpace:N=!0}=t;I||(I=qn(e,o,l,I===void 0));let L=$a(e,{doc:r,mirror:i,blockClass:s,blockSelector:a,needsMask:I,inlineStylesheet:h,maskInputOptions:n,maskTextFn:d,maskInputFn:c,dataURLOptions:m,inlineImages:p,recordCanvas:g,keepIframeSrcFn:S,newlyAddedElement:E,cssCaptured:R});if(!L)return console.warn(e,"not serialized"),null;let T;i.hasNode(e)?T=i.getId(e):Va(L,f)||!N&&L.type===U.Text&&!L.textContent.replace(/^\s+|\s+$/gm,"").length?T=Et:T=$n();let x=Object.assign(L,{id:T});if(i.add(e,x),T===Et)return null;b&&b(e);let ae=!u;if(x.type===U.Element){ae=ae&&!x.needBlock,delete x.needBlock;let W=re.shadowRoot(e);W&&Ze(W)&&(x.isShadowHost=!0)}if((x.type===U.Document||x.type===U.Element)&&ae){f.headWhitespace&&x.type===U.Element&&x.tagName==="head"&&(N=!1);let W={doc:r,mirror:i,blockClass:s,blockSelector:a,needsMask:I,maskTextClass:o,maskTextSelector:l,skipChild:u,inlineStylesheet:h,maskInputOptions:n,maskTextFn:d,maskInputFn:c,slimDOMOptions:f,dataURLOptions:m,inlineImages:p,recordCanvas:g,preserveWhiteSpace:N,onSerialize:b,onIframeLoad:y,iframeLoadTimeout:w,onStylesheetLoad:C,stylesheetLoadTimeout:v,keepIframeSrcFn:S,cssCaptured:!1};if(!(x.type===U.Element&&x.tagName==="textarea"&&x.attributes.value!==void 0)){x.type===U.Element&&x.attributes._cssText!==void 0&&typeof x.attributes._cssText=="string"&&(W.cssCaptured=!0);for(let Y of Array.from(re.childNodes(e))){let ee=We(Y,W);ee&&x.childNodes.push(ee)}}let k=null;if(Is(e)&&(k=re.shadowRoot(e)))for(let Y of Array.from(re.childNodes(k))){let ee=We(Y,W);ee&&(Ze(k)&&(ee.isShadow=!0),x.childNodes.push(ee))}}let se=re.parentNode(e);return se&&Qe(se)&&Ze(se)&&(x.isShadow=!0),x.type===U.Element&&x.tagName==="iframe"&&Ua(e,()=>{let W=e.contentDocument;if(W&&y){let k=We(W,{doc:W,mirror:i,blockClass:s,blockSelector:a,needsMask:I,maskTextClass:o,maskTextSelector:l,skipChild:!1,inlineStylesheet:h,maskInputOptions:n,maskTextFn:d,maskInputFn:c,slimDOMOptions:f,dataURLOptions:m,inlineImages:p,recordCanvas:g,preserveWhiteSpace:N,onSerialize:b,onIframeLoad:y,iframeLoadTimeout:w,onStylesheetLoad:C,stylesheetLoadTimeout:v,keepIframeSrcFn:S});k&&y(e,k)}},w),x.type===U.Element&&x.tagName==="link"&&typeof x.attributes.rel=="string"&&(x.attributes.rel==="stylesheet"||x.attributes.rel==="preload"&&typeof x.attributes.href=="string"&&Ds(x.attributes.href)==="css")&&Ba(e,()=>{if(C){let W=We(e,{doc:r,mirror:i,blockClass:s,blockSelector:a,needsMask:I,maskTextClass:o,maskTextSelector:l,skipChild:!1,inlineStylesheet:h,maskInputOptions:n,maskTextFn:d,maskInputFn:c,slimDOMOptions:f,dataURLOptions:m,inlineImages:p,recordCanvas:g,preserveWhiteSpace:N,onSerialize:b,onIframeLoad:y,iframeLoadTimeout:w,onStylesheetLoad:C,stylesheetLoadTimeout:v,keepIframeSrcFn:S});W&&C(e,W)}},v),x}function ja(e,t){let{mirror:r=new rt,blockClass:i="rr-block",blockSelector:s=null,maskTextClass:a="rr-mask",maskTextSelector:o=null,inlineStylesheet:l=!0,inlineImages:u=!1,recordCanvas:h=!1,maskAllInputs:n=!1,maskTextFn:d,maskInputFn:c,slimDOM:f=!1,dataURLOptions:m,preserveWhiteSpace:p,onSerialize:g,onIframeLoad:b,iframeLoadTimeout:y,onStylesheetLoad:w,stylesheetLoadTimeout:C,keepIframeSrcFn:v=()=>!1}=t,S=n===!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}:n===!1?{password:!0}:n,E=Vn(f);return We(e,{doc:e,mirror:r,blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:o,skipChild:!1,inlineStylesheet:l,maskInputOptions:S,maskTextFn:d,maskInputFn:c,slimDOMOptions:E,dataURLOptions:m,inlineImages:u,recordCanvas:h,preserveWhiteSpace:p,onSerialize:g,onIframeLoad:b,iframeLoadTimeout:y,onStylesheetLoad:w,stylesheetLoadTimeout:C,keepIframeSrcFn:v,newlyAddedElement:!1})}var Ga=/(max|min)-device-(width|height)/,ri=new RegExp(Ga.source,"g"),Ha={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(ri)&&(e.params=e.params.replace(ri,"$1-$2"))}}}},Ya={postcssPlugin:"postcss-hover-classes",prepare:function(){let e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(r){r.includes(":hover")&&(t.selector+=`,
2
+ `+r.replace(/:hover/g,".\\:hover"))}))}}}};function Xa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ja(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),r}var ct={exports:{}},si;function Qa(){if(si)return ct.exports;si=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return ct.exports=t(),ct.exports.createColors=t,ct.exports}var Za={},Ka=Object.freeze(Object.defineProperty({__proto__:null,default:Za},Symbol.toStringTag,{value:"Module"})),me=Ja(Ka),Kt,ii;function Ts(){if(ii)return Kt;ii=1;let e=Qa(),t=me;class r extends Error{constructor(s,a,o,l,u,h){super(s),this.name="CssSyntaxError",this.reason=s,u&&(this.file=u),l&&(this.source=l),h&&(this.plugin=h),typeof a<"u"&&typeof o<"u"&&(typeof a=="number"?(this.line=a,this.column=o):(this.line=a.line,this.column=a.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let a=this.source;s==null&&(s=e.isColorSupported),t&&s&&(a=t(a));let o=a.split(/\r?\n/),l=Math.max(this.line-3,0),u=Math.min(this.line+2,o.length),h=String(u).length,n,d;if(s){let{bold:c,gray:f,red:m}=e.createColors(!0);n=p=>c(m(p)),d=p=>f(p)}else n=d=c=>c;return o.slice(l,u).map((c,f)=>{let m=l+1+f,p=" "+(" "+m).slice(-h)+" | ";if(m===this.line){let g=d(p.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+d(p)+c+`
3
+ `+g+n("^")}return" "+d(p)+c}).join(`
4
+ `)}toString(){let s=this.showSourceCode();return s&&(s=`
5
+
6
+ `+s+`
7
+ `),this.name+": "+this.message+s}}return Kt=r,r.default=r,Kt}var ht={},ni;function _s(){return ni||(ni=1,ht.isClean=Symbol("isClean"),ht.my=Symbol("my")),ht}var er,oi;function jn(){if(oi)return er;oi=1;let e={after:`
8
+ `,beforeClose:`
9
+ `,beforeComment:`
10
+ `,beforeDecl:`
11
+ `,beforeOpen:" ",beforeRule:`
12
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(s){this.builder=s}atrule(s,a){let o="@"+s.name,l=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName<"u"?o+=s.raws.afterName:l&&(o+=" "),s.nodes)this.block(s,o+l);else{let u=(s.raws.between||"")+(a?";":"");this.builder(o+l+u,s)}}beforeAfter(s,a){let o;s.type==="decl"?o=this.raw(s,null,"beforeDecl"):s.type==="comment"?o=this.raw(s,null,"beforeComment"):a==="before"?o=this.raw(s,null,"beforeRule"):o=this.raw(s,null,"beforeClose");let l=s.parent,u=0;for(;l&&l.type!=="root";)u+=1,l=l.parent;if(o.includes(`
13
+ `)){let h=this.raw(s,null,"indent");if(h.length)for(let n=0;n<u;n++)o+=h}return o}block(s,a){let o=this.raw(s,"between","beforeOpen");this.builder(a+o+"{",s,"start");let l;s.nodes&&s.nodes.length?(this.body(s),l=this.raw(s,"after")):l=this.raw(s,"after","emptyBody"),l&&this.builder(l),this.builder("}",s,"end")}body(s){let a=s.nodes.length-1;for(;a>0&&s.nodes[a].type==="comment";)a-=1;let o=this.raw(s,"semicolon");for(let l=0;l<s.nodes.length;l++){let u=s.nodes[l],h=this.raw(u,"before");h&&this.builder(h),this.stringify(u,a!==l||o)}}comment(s){let a=this.raw(s,"left","commentLeft"),o=this.raw(s,"right","commentRight");this.builder("/*"+a+s.text+o+"*/",s)}decl(s,a){let o=this.raw(s,"between","colon"),l=s.prop+o+this.rawValue(s,"value");s.important&&(l+=s.raws.important||" !important"),a&&(l+=";"),this.builder(l,s)}document(s){this.body(s)}raw(s,a,o){let l;if(o||(o=a),a&&(l=s.raws[a],typeof l<"u"))return l;let u=s.parent;if(o==="before"&&(!u||u.type==="root"&&u.first===s||u&&u.type==="document"))return"";if(!u)return e[o];let h=s.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[o]<"u")return h.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(s,o);{let n="raw"+t(o);this[n]?l=this[n](h,s):h.walk(d=>{if(l=d.raws[a],typeof l<"u")return!1})}return typeof l>"u"&&(l=e[o]),h.rawCache[o]=l,l}rawBeforeClose(s){let a;return s.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after<"u")return a=o.raws.after,a.includes(`
14
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawBeforeComment(s,a){let o;return s.walkComments(l=>{if(typeof l.raws.before<"u")return o=l.raws.before,o.includes(`
15
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(a,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(s,a){let o;return s.walkDecls(l=>{if(typeof l.raws.before<"u")return o=l.raws.before,o.includes(`
16
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(a,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(s){let a;return s.walk(o=>{if(o.type!=="decl"&&(a=o.raws.between,typeof a<"u"))return!1}),a}rawBeforeRule(s){let a;return s.walk(o=>{if(o.nodes&&(o.parent!==s||s.first!==o)&&typeof o.raws.before<"u")return a=o.raws.before,a.includes(`
17
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(s){let a;return s.walkDecls(o=>{if(typeof o.raws.between<"u")return a=o.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(s){let a;return s.walk(o=>{if(o.nodes&&o.nodes.length===0&&(a=o.raws.after,typeof a<"u"))return!1}),a}rawIndent(s){if(s.raws.indent)return s.raws.indent;let a;return s.walk(o=>{let l=o.parent;if(l&&l!==s&&l.parent&&l.parent===s&&typeof o.raws.before<"u"){let u=o.raws.before.split(`
18
+ `);return a=u[u.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(s){let a;return s.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(a=o.raws.semicolon,typeof a<"u"))return!1}),a}rawValue(s,a){let o=s[a],l=s.raws[a];return l&&l.value===o?l.raw:o}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,a){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,a)}}return er=r,r.default=r,er}var tr,ai;function Ft(){if(ai)return tr;ai=1;let e=jn();function t(r,i){new e(i).stringify(r)}return tr=t,t.default=t,tr}var rr,li;function Ut(){if(li)return rr;li=1;let{isClean:e,my:t}=_s(),r=Ts(),i=jn(),s=Ft();function a(l,u){let h=new l.constructor;for(let n in l){if(!Object.prototype.hasOwnProperty.call(l,n)||n==="proxyCache")continue;let d=l[n],c=typeof d;n==="parent"&&c==="object"?u&&(h[n]=u):n==="source"?h[n]=d:Array.isArray(d)?h[n]=d.map(f=>a(f,h)):(c==="object"&&d!==null&&(d=a(d)),h[n]=d)}return h}class o{constructor(u={}){this.raws={},this[e]=!1,this[t]=!0;for(let h in u)if(h==="nodes"){this.nodes=[];for(let n of u[h])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[h]=u[h]}addToError(u){if(u.postcssNode=this,u.stack&&this.source&&/\n\s{4}at /.test(u.stack)){let h=this.source;u.stack=u.stack.replace(/\n\s{4}at /,`$&${h.input.from}:${h.start.line}:${h.start.column}$&`)}return u}after(u){return this.parent.insertAfter(this,u),this}assign(u={}){for(let h in u)this[h]=u[h];return this}before(u){return this.parent.insertBefore(this,u),this}cleanRaws(u){delete this.raws.before,delete this.raws.after,u||delete this.raws.between}clone(u={}){let h=a(this);for(let n in u)h[n]=u[n];return h}cloneAfter(u={}){let h=this.clone(u);return this.parent.insertAfter(this,h),h}cloneBefore(u={}){let h=this.clone(u);return this.parent.insertBefore(this,h),h}error(u,h={}){if(this.source){let{end:n,start:d}=this.rangeBy(h);return this.source.input.error(u,{column:d.column,line:d.line},{column:n.column,line:n.line},h)}return new r(u)}getProxyProcessor(){return{get(u,h){return h==="proxyOf"?u:h==="root"?()=>u.root().toProxy():u[h]},set(u,h,n){return u[h]===n||(u[h]=n,(h==="prop"||h==="value"||h==="name"||h==="params"||h==="important"||h==="text")&&u.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let u=this;for(;u=u.parent;)u[e]=!1}}next(){if(!this.parent)return;let u=this.parent.index(this);return this.parent.nodes[u+1]}positionBy(u,h){let n=this.source.start;if(u.index)n=this.positionInside(u.index,h);else if(u.word){h=this.toString();let d=h.indexOf(u.word);d!==-1&&(n=this.positionInside(d,h))}return n}positionInside(u,h){let n=h||this.toString(),d=this.source.start.column,c=this.source.start.line;for(let f=0;f<u;f++)n[f]===`
19
+ `?(d=1,c+=1):d+=1;return{column:d,line:c}}prev(){if(!this.parent)return;let u=this.parent.index(this);return this.parent.nodes[u-1]}rangeBy(u){let h={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:h.column+1,line:h.line};if(u.word){let d=this.toString(),c=d.indexOf(u.word);c!==-1&&(h=this.positionInside(c,d),n=this.positionInside(c+u.word.length,d))}else u.start?h={column:u.start.column,line:u.start.line}:u.index&&(h=this.positionInside(u.index)),u.end?n={column:u.end.column,line:u.end.line}:typeof u.endIndex=="number"?n=this.positionInside(u.endIndex):u.index&&(n=this.positionInside(u.index+1));return(n.line<h.line||n.line===h.line&&n.column<=h.column)&&(n={column:h.column+1,line:h.line}),{end:n,start:h}}raw(u,h){return new i().raw(this,u,h)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...u){if(this.parent){let h=this,n=!1;for(let d of u)d===this?n=!0:n?(this.parent.insertAfter(h,d),h=d):this.parent.insertBefore(h,d);n||this.remove()}return this}root(){let u=this;for(;u.parent&&u.parent.type!=="document";)u=u.parent;return u}toJSON(u,h){let n={},d=h==null;h=h||new Map;let c=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let m=this[f];if(Array.isArray(m))n[f]=m.map(p=>typeof p=="object"&&p.toJSON?p.toJSON(null,h):p);else if(typeof m=="object"&&m.toJSON)n[f]=m.toJSON(null,h);else if(f==="source"){let p=h.get(m.input);p==null&&(p=c,h.set(m.input,c),c++),n[f]={end:m.end,inputId:p,start:m.start}}else n[f]=m}return d&&(n.inputs=[...h.keys()].map(f=>f.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(u=s){u.stringify&&(u=u.stringify);let h="";return u(this,n=>{h+=n}),h}warn(u,h,n){let d={node:this};for(let c in n)d[c]=n[c];return u.warn(h,d)}get proxyOf(){return this}}return rr=o,o.default=o,rr}var sr,ui;function Bt(){if(ui)return sr;ui=1;let e=Ut();class t extends e{constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return sr=t,t.default=t,sr}var ir,ci;function el(){if(ci)return ir;ci=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return ir={nanoid:(i=21)=>{let s="",a=i;for(;a--;)s+=e[Math.random()*64|0];return s},customAlphabet:(i,s=21)=>(a=s)=>{let o="",l=a;for(;l--;)o+=i[Math.random()*i.length|0];return o}},ir}var nr,hi;function Gn(){if(hi)return nr;hi=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=me,{existsSync:r,readFileSync:i}=me,{dirname:s,join:a}=me;function o(u){return Buffer?Buffer.from(u,"base64").toString():window.atob(u)}class l{constructor(h,n){if(n.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let d=n.map?n.map.prev:void 0,c=this.loadMap(n.from,d);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=s(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(h){let n=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,f=/^data:application\/json,/;if(c.test(h)||f.test(h))return decodeURIComponent(h.substr(RegExp.lastMatch.length));if(n.test(h)||d.test(h))return o(h.substr(RegExp.lastMatch.length));let m=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let n=h.match(/\/\*\s*# sourceMappingURL=/gm);if(!n)return;let d=h.lastIndexOf(n.pop()),c=h.indexOf("*/",d);d>-1&&c>-1&&(this.annotation=this.getAnnotationURL(h.substring(d,c)))}loadFile(h){if(this.root=s(h),r(h))return this.mapFile=h,i(h,"utf-8").toString().trim()}loadMap(h,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let d=n(h);if(d){let c=this.loadFile(d);if(!c)throw new Error("Unable to load previous source map: "+d.toString());return c}}else{if(n instanceof e)return t.fromSourceMap(n).toString();if(n instanceof t)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return h&&(d=a(s(h),d)),this.loadFile(d)}}}startWith(h,n){return h?h.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return nr=l,l.default=l,nr}var or,fi;function $t(){if(fi)return or;fi=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=me,{fileURLToPath:r,pathToFileURL:i}=me,{isAbsolute:s,resolve:a}=me,{nanoid:o}=el(),l=me,u=Ts(),h=Gn(),n=Symbol("fromOffsetCache"),d=!!(e&&t),c=!!(a&&s);class f{constructor(p,g={}){if(p===null||typeof p>"u"||typeof p=="object"&&!p.toString)throw new Error(`PostCSS received ${p} instead of CSS string`);if(this.css=p.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!c||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=a(g.from)),c&&d){let b=new h(this.css,g);if(b.text){this.map=b;let y=b.consumer().file;!this.file&&y&&(this.file=this.mapResolve(y))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(p,g,b,y={}){let w,C,v;if(g&&typeof g=="object"){let E=g,R=b;if(typeof E.offset=="number"){let I=this.fromOffset(E.offset);g=I.line,b=I.col}else g=E.line,b=E.column;if(typeof R.offset=="number"){let I=this.fromOffset(R.offset);C=I.line,v=I.col}else C=R.line,v=R.column}else if(!b){let E=this.fromOffset(g);g=E.line,b=E.col}let S=this.origin(g,b,C,v);return S?w=new u(p,S.endLine===void 0?S.line:{column:S.column,line:S.line},S.endLine===void 0?S.column:{column:S.endColumn,line:S.endLine},S.source,S.file,y.plugin):w=new u(p,C===void 0?g:{column:b,line:g},C===void 0?b:{column:v,line:C},this.css,this.file,y.plugin),w.input={column:b,endColumn:v,endLine:C,line:g,source:this.css},this.file&&(i&&(w.input.url=i(this.file).toString()),w.input.file=this.file),w}fromOffset(p){let g,b;if(this[n])b=this[n];else{let w=this.css.split(`
20
+ `);b=new Array(w.length);let C=0;for(let v=0,S=w.length;v<S;v++)b[v]=C,C+=w[v].length+1;this[n]=b}g=b[b.length-1];let y=0;if(p>=g)y=b.length-1;else{let w=b.length-2,C;for(;y<w;)if(C=y+(w-y>>1),p<b[C])w=C-1;else if(p>=b[C+1])y=C+1;else{y=C;break}}return{col:p-b[y]+1,line:y+1}}mapResolve(p){return/^\w+:\/\//.test(p)?p:a(this.map.consumer().sourceRoot||this.map.root||".",p)}origin(p,g,b,y){if(!this.map)return!1;let w=this.map.consumer(),C=w.originalPositionFor({column:g,line:p});if(!C.source)return!1;let v;typeof b=="number"&&(v=w.originalPositionFor({column:y,line:b}));let S;s(C.source)?S=i(C.source):S=new URL(C.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let E={column:C.column,endColumn:v&&v.column,endLine:v&&v.line,line:C.line,url:S.toString()};if(S.protocol==="file:")if(r)E.file=r(S);else throw new Error("file: protocol is not available in this PostCSS build");let R=w.sourceContentFor(C.source);return R&&(E.source=R),E}toJSON(){let p={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(p[g]=this[g]);return this.map&&(p.map={...this.map},p.map.consumerCache&&(p.map.consumerCache=void 0)),p}get from(){return this.file||this.id}}return or=f,f.default=f,l&&l.registerInput&&l.registerInput(f),or}var ar,di;function Hn(){if(di)return ar;di=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=me,{dirname:r,relative:i,resolve:s,sep:a}=me,{pathToFileURL:o}=me,l=$t(),u=!!(e&&t),h=!!(r&&s&&i&&a);class n{constructor(c,f,m,p){this.stringify=c,this.mapOpts=m.map||{},this.root=f,this.opts=m,this.css=p,this.originalCSS=p,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let f=`
21
+ `;this.css.includes(`\r
22
+ `)&&(f=`\r
23
+ `),this.css+=f+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let f=this.toUrl(this.path(c.file)),m=c.root||r(c.file),p;this.mapOpts.sourcesContent===!1?(p=new e(c.text),p.sourcesContent&&(p.sourcesContent=null)):p=c.consumer(),this.map.applySourceMap(p,f,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let f=this.root.nodes.length-1;f>=0;f--)c=this.root.nodes[f],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(f)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&u&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,f=>{c+=f}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=t.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,f=1,m="<no source>",p={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,b;this.stringify(this.root,(y,w,C)=>{if(this.css+=y,w&&C!=="end"&&(p.generated.line=c,p.generated.column=f-1,w.source&&w.source.start?(p.source=this.sourcePath(w),p.original.line=w.source.start.line,p.original.column=w.source.start.column-1,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,this.map.addMapping(p))),g=y.match(/\n/g),g?(c+=g.length,b=y.lastIndexOf(`
24
+ `),f=y.length-b):f+=y.length,w&&C!=="start"){let v=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==v.last||v.raws.semicolon)&&(w.source&&w.source.end?(p.source=this.sourcePath(w),p.original.line=w.source.end.line,p.original.column=w.source.end.column-1,p.generated.line=c,p.generated.column=f-2,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,p.generated.line=c,p.generated.column=f-1,this.map.addMapping(p)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(f=>f.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let f=this.memoizedPaths.get(c);if(f)return f;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(s(m,this.mapOpts.annotation)));let p=i(m,c);return this.memoizedPaths.set(c,p),p}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let f=c.source.input.map;this.previousMaps.includes(f)||this.previousMaps.push(f)}});else{let c=new l(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(f=>{if(f.source){let m=f.source.input.from;if(m&&!c[m]){c[m]=!0;let p=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(p,f.source.input.css)}}});else if(this.css){let f=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(f,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let f=this.memoizedFileURLs.get(c);if(f)return f;if(o){let m=o(c).toString();return this.memoizedFileURLs.set(c,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let f=this.memoizedURLs.get(c);if(f)return f;a==="\\"&&(c=c.replace(/\\/g,"/"));let m=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,m),m}}return ar=n,ar}var lr,pi;function Wt(){if(pi)return lr;pi=1;let e=Ut();class t extends e{constructor(i){super(i),this.type="comment"}}return lr=t,t.default=t,lr}var ur,mi;function Te(){if(mi)return ur;mi=1;let{isClean:e,my:t}=_s(),r=Bt(),i=Wt(),s=Ut(),a,o,l,u;function h(c){return c.map(f=>(f.nodes&&(f.nodes=h(f.nodes)),delete f.source,f))}function n(c){if(c[e]=!1,c.proxyOf.nodes)for(let f of c.proxyOf.nodes)n(f)}class d extends s{append(...f){for(let m of f){let p=this.normalize(m,this.last);for(let g of p)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(f){if(super.cleanRaws(f),this.nodes)for(let m of this.nodes)m.cleanRaws(f)}each(f){if(!this.proxyOf.nodes)return;let m=this.getIterator(),p,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(p=this.indexes[m],g=f(this.proxyOf.nodes[p],p),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(f){return this.nodes.every(f)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let f=this.lastEach;return this.indexes[f]=0,f}getProxyProcessor(){return{get(f,m){return m==="proxyOf"?f:f[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...p)=>f[m](...p.map(g=>typeof g=="function"?(b,y)=>g(b.toProxy(),y):g)):m==="every"||m==="some"?p=>f[m]((g,...b)=>p(g.toProxy(),...b)):m==="root"?()=>f.root().toProxy():m==="nodes"?f.nodes.map(p=>p.toProxy()):m==="first"||m==="last"?f[m].toProxy():f[m]:f[m]},set(f,m,p){return f[m]===p||(f[m]=p,(m==="name"||m==="params"||m==="selector")&&f.markDirty()),!0}}}index(f){return typeof f=="number"?f:(f.proxyOf&&(f=f.proxyOf),this.proxyOf.nodes.indexOf(f))}insertAfter(f,m){let p=this.index(f),g=this.normalize(m,this.proxyOf.nodes[p]).reverse();p=this.index(f);for(let y of g)this.proxyOf.nodes.splice(p+1,0,y);let b;for(let y in this.indexes)b=this.indexes[y],p<b&&(this.indexes[y]=b+g.length);return this.markDirty(),this}insertBefore(f,m){let p=this.index(f),g=p===0?"prepend":!1,b=this.normalize(m,this.proxyOf.nodes[p],g).reverse();p=this.index(f);for(let w of b)this.proxyOf.nodes.splice(p,0,w);let y;for(let w in this.indexes)y=this.indexes[w],p<=y&&(this.indexes[w]=y+b.length);return this.markDirty(),this}normalize(f,m){if(typeof f=="string")f=h(a(f).nodes);else if(typeof f>"u")f=[];else if(Array.isArray(f)){f=f.slice(0);for(let g of f)g.parent&&g.parent.removeChild(g,"ignore")}else if(f.type==="root"&&this.type!=="document"){f=f.nodes.slice(0);for(let g of f)g.parent&&g.parent.removeChild(g,"ignore")}else if(f.type)f=[f];else if(f.prop){if(typeof f.value>"u")throw new Error("Value field is missed in node creation");typeof f.value!="string"&&(f.value=String(f.value)),f=[new r(f)]}else if(f.selector)f=[new o(f)];else if(f.name)f=[new l(f)];else if(f.text)f=[new i(f)];else throw new Error("Unknown node type in node creation");return f.map(g=>(g[t]||d.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&n(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...f){f=f.reverse();for(let m of f){let p=this.normalize(m,this.first,"prepend").reverse();for(let g of p)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+p.length}return this.markDirty(),this}push(f){return f.parent=this,this.proxyOf.nodes.push(f),this}removeAll(){for(let f of this.proxyOf.nodes)f.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(f){f=this.index(f),this.proxyOf.nodes[f].parent=void 0,this.proxyOf.nodes.splice(f,1);let m;for(let p in this.indexes)m=this.indexes[p],m>=f&&(this.indexes[p]=m-1);return this.markDirty(),this}replaceValues(f,m,p){return p||(p=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(f,p))}),this.markDirty(),this}some(f){return this.nodes.some(f)}walk(f){return this.each((m,p)=>{let g;try{g=f(m,p)}catch(b){throw m.addToError(b)}return g!==!1&&m.walk&&(g=m.walk(f)),g})}walkAtRules(f,m){return m?f instanceof RegExp?this.walk((p,g)=>{if(p.type==="atrule"&&f.test(p.name))return m(p,g)}):this.walk((p,g)=>{if(p.type==="atrule"&&p.name===f)return m(p,g)}):(m=f,this.walk((p,g)=>{if(p.type==="atrule")return m(p,g)}))}walkComments(f){return this.walk((m,p)=>{if(m.type==="comment")return f(m,p)})}walkDecls(f,m){return m?f instanceof RegExp?this.walk((p,g)=>{if(p.type==="decl"&&f.test(p.prop))return m(p,g)}):this.walk((p,g)=>{if(p.type==="decl"&&p.prop===f)return m(p,g)}):(m=f,this.walk((p,g)=>{if(p.type==="decl")return m(p,g)}))}walkRules(f,m){return m?f instanceof RegExp?this.walk((p,g)=>{if(p.type==="rule"&&f.test(p.selector))return m(p,g)}):this.walk((p,g)=>{if(p.type==="rule"&&p.selector===f)return m(p,g)}):(m=f,this.walk((p,g)=>{if(p.type==="rule")return m(p,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return d.registerParse=c=>{a=c},d.registerRule=c=>{o=c},d.registerAtRule=c=>{l=c},d.registerRoot=c=>{u=c},ur=d,d.default=d,d.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,l.prototype):c.type==="rule"?Object.setPrototypeOf(c,o.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,i.prototype):c.type==="root"&&Object.setPrototypeOf(c,u.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(f=>{d.rebuild(f)})},ur}var cr,gi;function ks(){if(gi)return cr;gi=1;let e=Te(),t,r;class i extends e{constructor(a){super({type:"document",...a}),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},cr=i,i.default=i,cr}var hr,yi;function Yn(){if(yi)return hr;yi=1;let e={};return hr=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},hr}var fr,wi;function Xn(){if(wi)return fr;wi=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let s=i.node.rangeBy(i);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in i)this[s]=i[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return fr=e,e.default=e,fr}var dr,bi;function Ps(){if(bi)return dr;bi=1;let e=Xn();class t{constructor(i,s,a){this.processor=i,this.messages=[],this.root=s,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let a=new e(i,s);return this.messages.push(a),a}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return dr=t,t.default=t,dr}var pr,vi;function tl(){if(vi)return pr;vi=1;let e=39,t=34,r=92,i=47,s=10,a=32,o=12,l=9,u=13,h=91,n=93,d=40,c=41,f=123,m=125,p=59,g=42,b=58,y=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,C=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,S=/[\da-f]/i;return pr=function(R,I={}){let N=R.css.valueOf(),L=I.ignoreErrors,T,x,ae,se,W,k,Y,ee,Q,V,xe=N.length,O=0,we=[],fe=[];function He(){return O}function ie(P){throw R.error("Unclosed "+P,O)}function de(){return fe.length===0&&O>=xe}function Ie(P){if(fe.length)return fe.pop();if(O>=xe)return;let te=P?P.ignoreUnclosed:!1;switch(T=N.charCodeAt(O),T){case s:case a:case l:case u:case o:{x=O;do x+=1,T=N.charCodeAt(x);while(T===a||T===s||T===l||T===u||T===o);V=["space",N.slice(O,x)],O=x-1;break}case h:case n:case f:case m:case b:case p:case c:{let j=String.fromCharCode(T);V=[j,j,O];break}case d:{if(ee=we.length?we.pop()[1]:"",Q=N.charCodeAt(O+1),ee==="url"&&Q!==e&&Q!==t&&Q!==a&&Q!==s&&Q!==l&&Q!==o&&Q!==u){x=O;do{if(k=!1,x=N.indexOf(")",x+1),x===-1)if(L||te){x=O;break}else ie("bracket");for(Y=x;N.charCodeAt(Y-1)===r;)Y-=1,k=!k}while(k);V=["brackets",N.slice(O,x+1),O,x],O=x}else x=N.indexOf(")",O+1),se=N.slice(O,x+1),x===-1||v.test(se)?V=["(","(",O]:(V=["brackets",se,O,x],O=x);break}case e:case t:{ae=T===e?"'":'"',x=O;do{if(k=!1,x=N.indexOf(ae,x+1),x===-1)if(L||te){x=O+1;break}else ie("string");for(Y=x;N.charCodeAt(Y-1)===r;)Y-=1,k=!k}while(k);V=["string",N.slice(O,x+1),O,x],O=x;break}case y:{w.lastIndex=O+1,w.test(N),w.lastIndex===0?x=N.length-1:x=w.lastIndex-2,V=["at-word",N.slice(O,x+1),O,x],O=x;break}case r:{for(x=O,W=!0;N.charCodeAt(x+1)===r;)x+=1,W=!W;if(T=N.charCodeAt(x+1),W&&T!==i&&T!==a&&T!==s&&T!==l&&T!==u&&T!==o&&(x+=1,S.test(N.charAt(x)))){for(;S.test(N.charAt(x+1));)x+=1;N.charCodeAt(x+1)===a&&(x+=1)}V=["word",N.slice(O,x+1),O,x],O=x;break}default:{T===i&&N.charCodeAt(O+1)===g?(x=N.indexOf("*/",O+2)+1,x===0&&(L||te?x=N.length:ie("comment")),V=["comment",N.slice(O,x+1),O,x],O=x):(C.lastIndex=O+1,C.test(N),C.lastIndex===0?x=N.length-1:x=C.lastIndex-2,V=["word",N.slice(O,x+1),O,x],we.push(V),O=x);break}}return O++,V}function Re(P){fe.push(P)}return{back:Re,endOfFile:de,nextToken:Ie,position:He}},pr}var mr,Si;function Ls(){if(Si)return mr;Si=1;let e=Te();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return mr=t,t.default=t,e.registerAtRule(t),mr}var gr,Ci;function nt(){if(Ci)return gr;Ci=1;let e=Te(),t,r;class i extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,o,l){let u=super.normalize(a);if(o){if(l==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let h of u)h.raws.before=o.raws.before}return u}removeChild(a,o){let l=this.index(a);return!o&&l===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[l].raws.before),super.removeChild(a)}toResult(a={}){return new t(new r,this,a).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},gr=i,i.default=i,e.registerRoot(i),gr}var yr,Ei;function Jn(){if(Ei)return yr;Ei=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
25
+ `," "];return e.split(t,r)},split(t,r,i){let s=[],a="",o=!1,l=0,u=!1,h="",n=!1;for(let d of t)n?n=!1:d==="\\"?n=!0:u?d===h&&(u=!1):d==='"'||d==="'"?(u=!0,h=d):d==="("?l+=1:d===")"?l>0&&(l-=1):l===0&&r.includes(d)&&(o=!0),o?(a!==""&&s.push(a.trim()),a="",o=!1):a+=d;return(i||a!=="")&&s.push(a.trim()),s}};return yr=e,e.default=e,yr}var wr,xi;function Fs(){if(xi)return wr;xi=1;let e=Te(),t=Jn();class r extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(s){let a=this.selector?this.selector.match(/,\s*/):null,o=a?a[0]:","+this.raw("between","beforeOpen");this.selector=s.join(o)}}return wr=r,r.default=r,e.registerRule(r),wr}var br,Ri;function rl(){if(Ri)return br;Ri=1;let e=Bt(),t=tl(),r=Wt(),i=Ls(),s=nt(),a=Fs(),o={empty:!0,space:!0};function l(h){for(let n=h.length-1;n>=0;n--){let d=h[n],c=d[3]||d[2];if(c)return c}}class u{constructor(n){this.input=n,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:n,start:{column:1,line:1,offset:0}}}atrule(n){let d=new i;d.name=n[1].slice(1),d.name===""&&this.unnamedAtrule(d,n),this.init(d,n[2]);let c,f,m,p=!1,g=!1,b=[],y=[];for(;!this.tokenizer.endOfFile();){if(n=this.tokenizer.nextToken(),c=n[0],c==="("||c==="["?y.push(c==="("?")":"]"):c==="{"&&y.length>0?y.push("}"):c===y[y.length-1]&&y.pop(),y.length===0)if(c===";"){d.source.end=this.getPosition(n[2]),d.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(b.length>0){for(m=b.length-1,f=b[m];f&&f[0]==="space";)f=b[--m];f&&(d.source.end=this.getPosition(f[3]||f[2]),d.source.end.offset++)}this.end(n);break}else b.push(n);else b.push(n);if(this.tokenizer.endOfFile()){p=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(b),b.length?(d.raws.afterName=this.spacesAndCommentsFromStart(b),this.raw(d,"params",b),p&&(n=b[b.length-1],d.source.end=this.getPosition(n[3]||n[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(n){let d=this.colon(n);if(d===!1)return;let c=0,f;for(let m=d-1;m>=0&&(f=n[m],!(f[0]!=="space"&&(c+=1,c===2)));m--);throw this.input.error("Missed semicolon",f[0]==="word"?f[3]+1:f[2])}colon(n){let d=0,c,f,m;for(let[p,g]of n.entries()){if(c=g,f=c[0],f==="("&&(d+=1),f===")"&&(d-=1),d===0&&f===":")if(!m)this.doubleColon(c);else{if(m[0]==="word"&&m[1]==="progid")continue;return p}m=c}return!1}comment(n){let d=new r;this.init(d,n[2]),d.source.end=this.getPosition(n[3]||n[2]),d.source.end.offset++;let c=n[1].slice(2,-2);if(/^\s*$/.test(c))d.text="",d.raws.left=c,d.raws.right="";else{let f=c.match(/^(\s*)([^]*\S)(\s*)$/);d.text=f[2],d.raws.left=f[1],d.raws.right=f[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(n,d){let c=new e;this.init(c,n[0][2]);let f=n[n.length-1];for(f[0]===";"&&(this.semicolon=!0,n.pop()),c.source.end=this.getPosition(f[3]||f[2]||l(n)),c.source.end.offset++;n[0][0]!=="word";)n.length===1&&this.unknownWord(n),c.raws.before+=n.shift()[1];for(c.source.start=this.getPosition(n[0][2]),c.prop="";n.length;){let y=n[0][0];if(y===":"||y==="space"||y==="comment")break;c.prop+=n.shift()[1]}c.raws.between="";let m;for(;n.length;)if(m=n.shift(),m[0]===":"){c.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),c.raws.between+=m[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let p=[],g;for(;n.length&&(g=n[0][0],!(g!=="space"&&g!=="comment"));)p.push(n.shift());this.precheckMissedSemicolon(n);for(let y=n.length-1;y>=0;y--){if(m=n[y],m[1].toLowerCase()==="!important"){c.important=!0;let w=this.stringFrom(n,y);w=this.spacesFromEnd(n)+w,w!==" !important"&&(c.raws.important=w);break}else if(m[1].toLowerCase()==="important"){let w=n.slice(0),C="";for(let v=y;v>0;v--){let S=w[v][0];if(C.trim().indexOf("!")===0&&S!=="space")break;C=w.pop()[1]+C}C.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=C,n=w)}if(m[0]!=="space"&&m[0]!=="comment")break}n.some(y=>y[0]!=="space"&&y[0]!=="comment")&&(c.raws.between+=p.map(y=>y[1]).join(""),p=[]),this.raw(c,"value",p.concat(n),d),c.value.includes(":")&&!d&&this.checkMissedSemicolon(n)}doubleColon(n){throw this.input.error("Double colon",{offset:n[2]},{offset:n[2]+n[1].length})}emptyRule(n){let d=new a;this.init(d,n[2]),d.selector="",d.raws.between="",this.current=d}end(n){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(n[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(n)}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(n){if(this.spaces+=n[1],this.current.nodes){let d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(n){let d=this.input.fromOffset(n);return{column:d.col,line:d.line,offset:n}}init(n,d){this.current.push(n),n.source={input:this.input,start:this.getPosition(d)},n.raws.before=this.spaces,this.spaces="",n.type!=="comment"&&(this.semicolon=!1)}other(n){let d=!1,c=null,f=!1,m=null,p=[],g=n[1].startsWith("--"),b=[],y=n;for(;y;){if(c=y[0],b.push(y),c==="("||c==="[")m||(m=y),p.push(c==="("?")":"]");else if(g&&f&&c==="{")m||(m=y),p.push("}");else if(p.length===0)if(c===";")if(f){this.decl(b,g);return}else break;else if(c==="{"){this.rule(b);return}else if(c==="}"){this.tokenizer.back(b.pop()),d=!0;break}else c===":"&&(f=!0);else c===p[p.length-1]&&(p.pop(),p.length===0&&(m=null));y=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),p.length>0&&this.unclosedBracket(m),d&&f){if(!g)for(;b.length&&(y=b[b.length-1][0],!(y!=="space"&&y!=="comment"));)this.tokenizer.back(b.pop());this.decl(b,g)}else this.unknownWord(b)}parse(){let n;for(;!this.tokenizer.endOfFile();)switch(n=this.tokenizer.nextToken(),n[0]){case"space":this.spaces+=n[1];break;case";":this.freeSemicolon(n);break;case"}":this.end(n);break;case"comment":this.comment(n);break;case"at-word":this.atrule(n);break;case"{":this.emptyRule(n);break;default:this.other(n);break}this.endFile()}precheckMissedSemicolon(){}raw(n,d,c,f){let m,p,g=c.length,b="",y=!0,w,C;for(let v=0;v<g;v+=1)m=c[v],p=m[0],p==="space"&&v===g-1&&!f?y=!1:p==="comment"?(C=c[v-1]?c[v-1][0]:"empty",w=c[v+1]?c[v+1][0]:"empty",!o[C]&&!o[w]?b.slice(-1)===","?y=!1:b+=m[1]:y=!1):b+=m[1];if(!y){let v=c.reduce((S,E)=>S+E[1],"");n.raws[d]={raw:v,value:b}}n[d]=b}rule(n){n.pop();let d=new a;this.init(d,n[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(n),this.raw(d,"selector",n),this.current=d}spacesAndCommentsFromEnd(n){let d,c="";for(;n.length&&(d=n[n.length-1][0],!(d!=="space"&&d!=="comment"));)c=n.pop()[1]+c;return c}spacesAndCommentsFromStart(n){let d,c="";for(;n.length&&(d=n[0][0],!(d!=="space"&&d!=="comment"));)c+=n.shift()[1];return c}spacesFromEnd(n){let d,c="";for(;n.length&&(d=n[n.length-1][0],d==="space");)c=n.pop()[1]+c;return c}stringFrom(n,d){let c="";for(let f=d;f<n.length;f++)c+=n[f][1];return n.splice(d,n.length-d),c}unclosedBlock(){let n=this.current.source.start;throw this.input.error("Unclosed block",n.line,n.column)}unclosedBracket(n){throw this.input.error("Unclosed bracket",{offset:n[2]},{offset:n[2]+1})}unexpectedClose(n){throw this.input.error("Unexpected }",{offset:n[2]},{offset:n[2]+1})}unknownWord(n){throw this.input.error("Unknown word",{offset:n[0][2]},{offset:n[0][2]+n[0][1].length})}unnamedAtrule(n,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return br=u,br}var vr,Mi;function Us(){if(Mi)return vr;Mi=1;let e=Te(),t=rl(),r=$t();function i(s,a){let o=new r(s,a),l=new t(o);try{l.parse()}catch(u){throw u}return l.root}return vr=i,i.default=i,e.registerParse(i),vr}var Sr,Ni;function Qn(){if(Ni)return Sr;Ni=1;let{isClean:e,my:t}=_s(),r=Hn(),i=Ft(),s=Te(),a=ks(),o=Yn(),l=Ps(),u=Us(),h=nt(),n={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},f=0;function m(C){return typeof C=="object"&&typeof C.then=="function"}function p(C){let v=!1,S=n[C.type];return C.type==="decl"?v=C.prop.toLowerCase():C.type==="atrule"&&(v=C.name.toLowerCase()),v&&C.append?[S,S+"-"+v,f,S+"Exit",S+"Exit-"+v]:v?[S,S+"-"+v,S+"Exit",S+"Exit-"+v]:C.append?[S,f,S+"Exit"]:[S,S+"Exit"]}function g(C){let v;return C.type==="document"?v=["Document",f,"DocumentExit"]:C.type==="root"?v=["Root",f,"RootExit"]:v=p(C),{eventIndex:0,events:v,iterator:0,node:C,visitorIndex:0,visitors:[]}}function b(C){return C[e]=!1,C.nodes&&C.nodes.forEach(v=>b(v)),C}let y={};class w{constructor(v,S,E){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 w||S instanceof l)R=b(S.root),S.map&&(typeof E.map>"u"&&(E.map={}),E.map.inline||(E.map.inline=!1),E.map.prev=S.map);else{let I=u;E.syntax&&(I=E.syntax.parse),E.parser&&(I=E.parser),I.parse&&(I=I.parse);try{R=I(S,E)}catch(N){this.processed=!0,this.error=N}R&&!R[t]&&s.rebuild(R)}this.result=new l(v,R,E),this.helpers={...y,postcss:y,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,S){let E=this.result.lastPlugin;try{S&&S.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=E.postcssPlugin,v.setMessage()):E.postcssVersion}catch(R){console&&console.error&&console.error(R)}return v}prepareVisitors(){this.listeners={};let v=(S,E,R)=>{this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push([S,R])};for(let S of this.plugins)if(typeof S=="object")for(let E in S){if(!d[E]&&/^[A-Z]/.test(E))throw new Error(`Unknown event ${E} in ${S.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[E])if(typeof S[E]=="object")for(let R in S[E])R==="*"?v(S,E,S[E][R]):v(S,E+"-"+R.toLowerCase(),S[E][R]);else typeof S[E]=="function"&&v(S,E,S[E])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let S=this.plugins[v],E=this.runOnRoot(S);if(m(E))try{await E}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];){v[e]=!0;let S=[g(v)];for(;S.length>0;){let E=this.visitTick(S);if(m(E))try{await E}catch(R){let I=S[S.length-1].node;throw this.handleError(R,I)}}}if(this.listeners.OnceExit)for(let[S,E]of this.listeners.OnceExit){this.result.lastPlugin=S;try{if(v.type==="document"){let R=v.nodes.map(I=>E(I,this.helpers));await Promise.all(R)}else await E(v,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let S=this.result.root.nodes.map(E=>v.Once(E,this.helpers));return m(S[0])?Promise.all(S):S}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(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 v=this.result.opts,S=i;v.syntax&&(S=v.syntax.stringify),v.stringifier&&(S=v.stringifier),S.stringify&&(S=S.stringify);let R=new r(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 v of this.plugins){let S=this.runOnRoot(v);if(m(S))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];)v[e]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let S of v.nodes)this.visitSync(this.listeners.OnceExit,S);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,S){return this.async().then(v,S)}toString(){return this.css}visitSync(v,S){for(let[E,R]of v){this.result.lastPlugin=E;let I;try{I=R(S,this.helpers)}catch(N){throw this.handleError(N,S.proxyOf)}if(S.type!=="root"&&S.type!=="document"&&!S.parent)return!0;if(m(I))throw this.getAsyncError()}}visitTick(v){let S=v[v.length-1],{node:E,visitors:R}=S;if(E.type!=="root"&&E.type!=="document"&&!E.parent){v.pop();return}if(R.length>0&&S.visitorIndex<R.length){let[N,L]=R[S.visitorIndex];S.visitorIndex+=1,S.visitorIndex===R.length&&(S.visitors=[],S.visitorIndex=0),this.result.lastPlugin=N;try{return L(E.toProxy(),this.helpers)}catch(T){throw this.handleError(T,E)}}if(S.iterator!==0){let N=S.iterator,L;for(;L=E.nodes[E.indexes[N]];)if(E.indexes[N]+=1,!L[e]){L[e]=!0,v.push(g(L));return}S.iterator=0,delete E.indexes[N]}let I=S.events;for(;S.eventIndex<I.length;){let N=I[S.eventIndex];if(S.eventIndex+=1,N===f){E.nodes&&E.nodes.length&&(E[e]=!0,S.iterator=E.getIterator());return}else if(this.listeners[N]){S.visitors=this.listeners[N];return}}v.pop()}walkSync(v){v[e]=!0;let S=p(v);for(let E of S)if(E===f)v.nodes&&v.each(R=>{R[e]||this.walkSync(R)});else{let R=this.listeners[E];if(R&&this.visitSync(R,v.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return w.registerPostcss=C=>{y=C},Sr=w,w.default=w,h.registerLazyResult(w),a.registerLazyResult(w),Sr}var Cr,Oi;function sl(){if(Oi)return Cr;Oi=1;let e=Hn(),t=Ft(),r=Yn(),i=Us(),s=Ps();class a{constructor(l,u,h){u=u.toString(),this.stringified=!1,this._processor=l,this._css=u,this._opts=h,this._map=void 0;let n,d=t;this.result=new s(this._processor,n,this._opts),this.result.css=u;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let f=new e(d,n,this._opts,u);if(f.isMap()){let[m,p]=f.generate();m&&(this.result.css=m),p&&(this.result.map=p)}else f.clearAnnotation(),this.result.css=f.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}sync(){if(this.error)throw this.error;return this.result}then(l,u){return this.async().then(l,u)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let l,u=i;try{l=u(this._css,this._opts)}catch(h){this.error=h}if(this.error)throw this.error;return this._root=l,l}get[Symbol.toStringTag](){return"NoWorkResult"}}return Cr=a,a.default=a,Cr}var Er,Ii;function il(){if(Ii)return Er;Ii=1;let e=sl(),t=Qn(),r=ks(),i=nt();class s{constructor(o=[]){this.version="8.4.38",this.plugins=this.normalize(o)}normalize(o){let l=[];for(let u of o)if(u.postcss===!0?u=u():u.postcss&&(u=u.postcss),typeof u=="object"&&Array.isArray(u.plugins))l=l.concat(u.plugins);else if(typeof u=="object"&&u.postcssPlugin)l.push(u);else if(typeof u=="function")l.push(u);else if(!(typeof u=="object"&&(u.parse||u.stringify)))throw new Error(u+" is not a PostCSS plugin");return l}process(o,l={}){return!this.plugins.length&&!l.parser&&!l.stringifier&&!l.syntax?new e(this,o,l):new t(this,o,l)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return Er=s,s.default=s,i.registerProcessor(s),r.registerProcessor(s),Er}var xr,Di;function nl(){if(Di)return xr;Di=1;let e=Bt(),t=Gn(),r=Wt(),i=Ls(),s=$t(),a=nt(),o=Fs();function l(u,h){if(Array.isArray(u))return u.map(c=>l(c));let{inputs:n,...d}=u;if(n){h=[];for(let c of n){let f={...c,__proto__:s.prototype};f.map&&(f.map={...f.map,__proto__:t.prototype}),h.push(f)}}if(d.nodes&&(d.nodes=u.nodes.map(c=>l(c,h))),d.source){let{inputId:c,...f}=d.source;d.source=f,c!=null&&(d.source.input=h[c])}if(d.type==="root")return new a(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new o(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new i(d);throw new Error("Unknown node type: "+u.type)}return xr=l,l.default=l,xr}var Rr,Ai;function ol(){if(Ai)return Rr;Ai=1;let e=Ts(),t=Bt(),r=Qn(),i=Te(),s=il(),a=Ft(),o=nl(),l=ks(),u=Xn(),h=Wt(),n=Ls(),d=Ps(),c=$t(),f=Us(),m=Jn(),p=Fs(),g=nt(),b=Ut();function y(...w){return w.length===1&&Array.isArray(w[0])&&(w=w[0]),new s(w)}return y.plugin=function(C,v){let S=!1;function E(...I){console&&console.warn&&!S&&(S=!0,console.warn(C+`: postcss.plugin was deprecated. Migration guide:
26
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(C+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
27
+ https://www.w3ctech.com/topic/2226`));let N=v(...I);return N.postcssPlugin=C,N.postcssVersion=new s().version,N}let R;return Object.defineProperty(E,"postcss",{get(){return R||(R=E()),R}}),E.process=function(I,N,L){return y([E(L)]).process(I,N)},E},y.stringify=a,y.parse=f,y.fromJSON=o,y.list=m,y.comment=w=>new h(w),y.atRule=w=>new n(w),y.decl=w=>new t(w),y.rule=w=>new p(w),y.root=w=>new g(w),y.document=w=>new l(w),y.CssSyntaxError=e,y.Declaration=t,y.Container=i,y.Processor=s,y.Document=l,y.Comment=h,y.Warning=u,y.AtRule=n,y.Result=d,y.Input=c,y.Rule=p,y.Root=g,y.Node=b,r.registerPostcss(y),Rr=y,y.default=y,Rr}var al=ol(),X=Xa(al);X.stringify;X.fromJSON;X.plugin;X.parse;X.list;X.document;X.comment;X.atRule;X.rule;X.decl;X.root;X.CssSyntaxError;X.Declaration;X.Container;X.Processor;X.Document;X.Comment;X.Warning;X.AtRule;X.Result;X.Input;X.Rule;X.Root;X.Node;var Ti={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 ll(e){let t=Ti[e.tagName]?Ti[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function zt(e,t){let r=t?.stylesWithHoverClass.get(e);if(r)return r;let i=e;try{i=X([Ha,Ya]).process(e).css}catch(s){console.warn("Failed to adapt css for replay",s)}return t?.stylesWithHoverClass.set(e,i),i}function _i(){return{stylesWithHoverClass:new Map}}var ul="rrweb-snapshot.rebuild() cannot rebuild into an unprotected browser document. Use rebuildIntoSandboxedIframe() or set UNSAFE_allowUnprotectedRebuild: true only when you accept the script-execution risk.",ki="rrweb-snapshot.createSandboxedIframe() requires root to be connected to a document before creating a sandboxed iframe.",Zn=new WeakSet;function cl(e){if(!e||e.tagName!=="IFRAME"||!("sandbox"in e))return!1;let t=Array.from(e.sandbox);return t.length===1&&t[0]==="allow-same-origin"}function hl(e){if(e.UNSAFE_allowUnprotectedRebuild)return;let t=e.doc.defaultView;if(t&&!(Zn.has(e.doc)&&cl(t.frameElement)))throw new Error(ul)}function fl(e,t,r,i){let s=[];for(let h of e.childNodes)h.type===U.Text&&s.push(h);let a=t.split("/* rr_split */");for(;a.length>1&&a.length>s.length;)a.splice(-2,2,a.slice(-2).join(""));let o="";r&&(o=zt(a.join(""),i));let l=0,u=-1;for(let h=0;h<s.length&&h!==a.length;h++){let n=s[h],d=a[h],c=h<a.length-1?a[h+1]:null;if(r&&c){let f=l,m=c.length;m=Math.min(m,30);let p=!1;for(;m>2;m--){let g=c.substring(0,m),b=o.substring(l).indexOf(g);if(p=b!==-1,p){f+=b;break}}p||(f+=d.length),d=o.substring(l,f),l=f}else r&&(d=o.substring(l));u!==-1&&(d=d.substring(u)),c&&(u!==-1||d.endsWith("0p")&&c.startsWith("x"))&&(u=c.indexOf("}"),u!==-1&&(u+=1,d+=c.substring(0,u))),n.textContent=d}}function dl(e,t,r,i){let{doc:s,hackCss:a,cache:o}=i;e.childNodes.length?fl(e,r,a,o):(a&&(r=zt(r,o)),t.appendChild(s.createTextNode(r)))}function pl(e,t){var r;let{doc:i,hackCss:s,cache:a}=t;switch(e.type){case U.Document:return i.implementation.createDocument(null,"",null);case U.DocumentType:return i.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case U.Element:{let o=ll(e),l;e.isSVG?l=i.createElementNS("http://www.w3.org/2000/svg",o):(e.isCustom&&((r=i.defaultView)!=null&&r.customElements)&&!i.defaultView.customElements.get(e.tagName)&&i.defaultView.customElements.define(e.tagName,class extends i.defaultView.HTMLElement{}),l=i.createElement(o));let u={};for(let h in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,h))continue;let n=e.attributes[h];if(!(o==="option"&&h==="selected"&&n===!1)&&n!==null){if(n===!0&&(n=""),h.startsWith("rr_")){u[h]=n;continue}if(typeof n=="string"){if(o==="style"&&h==="_cssText"){dl(e,l,n,t);continue}else if(o==="textarea"&&h==="value"){l.appendChild(i.createTextNode(n)),e.childNodes=[];continue}}try{if(e.isSVG&&h==="xlink:href")l.setAttributeNS("http://www.w3.org/1999/xlink",h,n.toString());else if(h==="onload"||h==="onclick"||h.substring(0,7)==="onmouse")l.setAttribute("_"+h,n.toString());else if(o==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&h==="content"){l.setAttribute("csp-content",n.toString());continue}else o==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||o==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Ds(e.attributes.href)==="js"||(o==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?l.setAttribute("rrweb-original-srcset",e.attributes.srcset):l.setAttribute(h,n.toString()))}catch{}}}for(let h in u){let n=u[h];if(o==="canvas"&&h==="rr_dataURL"){let d=i.createElement("img");d.onload=()=>{let c=l.getContext("2d");c&&c.drawImage(d,0,0,d.width,d.height)},d.src=n.toString(),l.RRNodeType&&(l.rr_dataURL=n.toString())}else if(o==="img"&&h==="rr_dataURL"){let d=l;d.currentSrc.startsWith("data:")||(d.setAttribute("rrweb-original-src",e.attributes.src),d.src=n.toString())}if(h==="rr_width")l.style.setProperty("width",n.toString());else if(h==="rr_height")l.style.setProperty("height",n.toString());else if(h==="rr_mediaCurrentTime"&&typeof n=="number")l.currentTime=n;else if(h==="rr_mediaState")switch(n){case"played":l.play().catch(d=>console.warn("media playback error",d));break;case"paused":l.pause();break}else h==="rr_mediaPlaybackRate"&&typeof n=="number"?l.playbackRate=n:h==="rr_mediaMuted"&&typeof n=="boolean"?l.muted=n:h==="rr_mediaLoop"&&typeof n=="boolean"?l.loop=n:h==="rr_mediaVolume"&&typeof n=="number"?l.volume=n:h==="rr_open_mode"&&l.setAttribute("rr_open_mode",n)}if(e.isShadowHost)if(!l.shadowRoot)l.attachShadow({mode:"open"});else for(;l.shadowRoot.firstChild;)l.shadowRoot.removeChild(l.shadowRoot.firstChild);return(o==="input"||o==="textarea")&&l.setAttribute("autocomplete","off"),l}case U.Text:return e.isStyle&&s?i.createTextNode(zt(e.textContent,a)):i.createTextNode(e.textContent);case U.CDATA:return i.createCDATASection(e.textContent);case U.Comment:return i.createComment(e.textContent);default:return null}}function Ke(e,t){let{doc:r,mirror:i,skipChild:s=!1,hackCss:a=!0,afterAppend:o,cache:l}=t;if(i.has(e.id)){let h=i.getNode(e.id),n=i.getMeta(h);if(va(n,e))return i.getNode(e.id)}let u=pl(e,{doc:r,hackCss:a,cache:l});if(!u)return null;if(e.rootId&&i.getNode(e.rootId)!==r&&i.replace(e.rootId,r),e.type===U.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==U.DocumentType&&(e.childNodes[0].type===U.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),u=r),i.add(u,e),(e.type===U.Document||e.type===U.Element)&&!s)for(let h of e.childNodes){let n=Ke(h,{doc:r,mirror:i,skipChild:!1,hackCss:a,afterAppend:o,cache:l});if(!n){console.warn("Failed to rebuild",h);continue}if(h.isShadow&&Is(u)&&u.shadowRoot)u.shadowRoot.appendChild(n);else if(e.type===U.Document&&h.type==U.Element){let d=n,c=null;d.childNodes.forEach(f=>{f.nodeName==="BODY"&&(c=f)}),c?(d.removeChild(c),u.appendChild(n),d.appendChild(c)):u.appendChild(n)}else u.appendChild(n);o&&o(n,h.id)}return u}function ml(e,t){function r(i){t(i)}for(let i of e.getIds())e.has(i)&&r(e.getNode(i))}function gl(e,t){let r=t.getMeta(e);if(r?.type!==U.Element)return;let i=e;for(let s in r.attributes){if(!(Object.prototype.hasOwnProperty.call(r.attributes,s)&&s.startsWith("rr_")))continue;let a=r.attributes[s];s==="rr_scrollLeft"&&(i.scrollLeft=a),s==="rr_scrollTop"&&(i.scrollTop=a)}}function yl(e,t){hl(t);let{doc:r,onVisit:i,hackCss:s=!0,afterAppend:a,cache:o,mirror:l=new rt}=t,u=Ke(e,{doc:r,mirror:l,skipChild:!1,hackCss:s,afterAppend:a,cache:o});return ml(l,h=>{i&&i(h),gl(h,l)}),u}function wl(e){var t;if(!e.root.isConnected)throw new Error(ki);let r=e.root.ownerDocument.createElement("iframe");for(let[s,a]of Object.entries(e.iframeAttributes||{}))s!=="sandbox"&&r.setAttribute(s,a);r.setAttribute("sandbox","allow-same-origin"),e.root.appendChild(r);let i=r.contentDocument;if(!i||!r.contentWindow)throw(t=r.parentNode)==null||t.removeChild(r),new Error(ki);return Zn.add(i),r}var bl=Object.defineProperty,vl=(e,t,r)=>t in e?bl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,D=(e,t,r)=>vl(e,typeof t!="symbol"?t+"":t,r),Sl=Object.defineProperty,Cl=(e,t,r)=>t in e?Sl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pi=(e,t,r)=>Cl(e,typeof t!="symbol"?t+"":t,r);Date.now().toString();var El=class{constructor(){Pi(this,"idNodeMap",new Map),Pi(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){let i=this.getNode(t);if(i){let s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function xl(){return new El}function Rl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ml(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),r}var ft={exports:{}},Li;function Nl(){if(Li)return ft.exports;Li=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return ft.exports=t(),ft.exports.createColors=t,ft.exports}var Ol={},Il=Object.freeze(Object.defineProperty({__proto__:null,default:Ol},Symbol.toStringTag,{value:"Module"})),ge=Ml(Il),Mr,Fi;function Bs(){if(Fi)return Mr;Fi=1;let e=Nl(),t=ge;class r extends Error{constructor(s,a,o,l,u,h){super(s),this.name="CssSyntaxError",this.reason=s,u&&(this.file=u),l&&(this.source=l),h&&(this.plugin=h),typeof a<"u"&&typeof o<"u"&&(typeof a=="number"?(this.line=a,this.column=o):(this.line=a.line,this.column=a.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let a=this.source;s==null&&(s=e.isColorSupported),t&&s&&(a=t(a));let o=a.split(/\r?\n/),l=Math.max(this.line-3,0),u=Math.min(this.line+2,o.length),h=String(u).length,n,d;if(s){let{bold:c,gray:f,red:m}=e.createColors(!0);n=p=>c(m(p)),d=p=>f(p)}else n=d=c=>c;return o.slice(l,u).map((c,f)=>{let m=l+1+f,p=" "+(" "+m).slice(-h)+" | ";if(m===this.line){let g=d(p.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+d(p)+c+`
28
+ `+g+n("^")}return" "+d(p)+c}).join(`
29
+ `)}toString(){let s=this.showSourceCode();return s&&(s=`
30
+
31
+ `+s+`
32
+ `),this.name+": "+this.message+s}}return Mr=r,r.default=r,Mr}var dt={},Ui;function $s(){return Ui||(Ui=1,dt.isClean=Symbol("isClean"),dt.my=Symbol("my")),dt}var Nr,Bi;function Kn(){if(Bi)return Nr;Bi=1;let e={after:`
33
+ `,beforeClose:`
34
+ `,beforeComment:`
35
+ `,beforeDecl:`
36
+ `,beforeOpen:" ",beforeRule:`
37
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(s){this.builder=s}atrule(s,a){let o="@"+s.name,l=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName<"u"?o+=s.raws.afterName:l&&(o+=" "),s.nodes)this.block(s,o+l);else{let u=(s.raws.between||"")+(a?";":"");this.builder(o+l+u,s)}}beforeAfter(s,a){let o;s.type==="decl"?o=this.raw(s,null,"beforeDecl"):s.type==="comment"?o=this.raw(s,null,"beforeComment"):a==="before"?o=this.raw(s,null,"beforeRule"):o=this.raw(s,null,"beforeClose");let l=s.parent,u=0;for(;l&&l.type!=="root";)u+=1,l=l.parent;if(o.includes(`
38
+ `)){let h=this.raw(s,null,"indent");if(h.length)for(let n=0;n<u;n++)o+=h}return o}block(s,a){let o=this.raw(s,"between","beforeOpen");this.builder(a+o+"{",s,"start");let l;s.nodes&&s.nodes.length?(this.body(s),l=this.raw(s,"after")):l=this.raw(s,"after","emptyBody"),l&&this.builder(l),this.builder("}",s,"end")}body(s){let a=s.nodes.length-1;for(;a>0&&s.nodes[a].type==="comment";)a-=1;let o=this.raw(s,"semicolon");for(let l=0;l<s.nodes.length;l++){let u=s.nodes[l],h=this.raw(u,"before");h&&this.builder(h),this.stringify(u,a!==l||o)}}comment(s){let a=this.raw(s,"left","commentLeft"),o=this.raw(s,"right","commentRight");this.builder("/*"+a+s.text+o+"*/",s)}decl(s,a){let o=this.raw(s,"between","colon"),l=s.prop+o+this.rawValue(s,"value");s.important&&(l+=s.raws.important||" !important"),a&&(l+=";"),this.builder(l,s)}document(s){this.body(s)}raw(s,a,o){let l;if(o||(o=a),a&&(l=s.raws[a],typeof l<"u"))return l;let u=s.parent;if(o==="before"&&(!u||u.type==="root"&&u.first===s||u&&u.type==="document"))return"";if(!u)return e[o];let h=s.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[o]<"u")return h.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(s,o);{let n="raw"+t(o);this[n]?l=this[n](h,s):h.walk(d=>{if(l=d.raws[a],typeof l<"u")return!1})}return typeof l>"u"&&(l=e[o]),h.rawCache[o]=l,l}rawBeforeClose(s){let a;return s.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after<"u")return a=o.raws.after,a.includes(`
39
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawBeforeComment(s,a){let o;return s.walkComments(l=>{if(typeof l.raws.before<"u")return o=l.raws.before,o.includes(`
40
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(a,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(s,a){let o;return s.walkDecls(l=>{if(typeof l.raws.before<"u")return o=l.raws.before,o.includes(`
41
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(a,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(s){let a;return s.walk(o=>{if(o.type!=="decl"&&(a=o.raws.between,typeof a<"u"))return!1}),a}rawBeforeRule(s){let a;return s.walk(o=>{if(o.nodes&&(o.parent!==s||s.first!==o)&&typeof o.raws.before<"u")return a=o.raws.before,a.includes(`
42
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(s){let a;return s.walkDecls(o=>{if(typeof o.raws.between<"u")return a=o.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(s){let a;return s.walk(o=>{if(o.nodes&&o.nodes.length===0&&(a=o.raws.after,typeof a<"u"))return!1}),a}rawIndent(s){if(s.raws.indent)return s.raws.indent;let a;return s.walk(o=>{let l=o.parent;if(l&&l!==s&&l.parent&&l.parent===s&&typeof o.raws.before<"u"){let u=o.raws.before.split(`
43
+ `);return a=u[u.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(s){let a;return s.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(a=o.raws.semicolon,typeof a<"u"))return!1}),a}rawValue(s,a){let o=s[a],l=s.raws[a];return l&&l.value===o?l.raw:o}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,a){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,a)}}return Nr=r,r.default=r,Nr}var Or,$i;function qt(){if($i)return Or;$i=1;let e=Kn();function t(r,i){new e(i).stringify(r)}return Or=t,t.default=t,Or}var Ir,Wi;function Vt(){if(Wi)return Ir;Wi=1;let{isClean:e,my:t}=$s(),r=Bs(),i=Kn(),s=qt();function a(l,u){let h=new l.constructor;for(let n in l){if(!Object.prototype.hasOwnProperty.call(l,n)||n==="proxyCache")continue;let d=l[n],c=typeof d;n==="parent"&&c==="object"?u&&(h[n]=u):n==="source"?h[n]=d:Array.isArray(d)?h[n]=d.map(f=>a(f,h)):(c==="object"&&d!==null&&(d=a(d)),h[n]=d)}return h}class o{constructor(u={}){this.raws={},this[e]=!1,this[t]=!0;for(let h in u)if(h==="nodes"){this.nodes=[];for(let n of u[h])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[h]=u[h]}addToError(u){if(u.postcssNode=this,u.stack&&this.source&&/\n\s{4}at /.test(u.stack)){let h=this.source;u.stack=u.stack.replace(/\n\s{4}at /,`$&${h.input.from}:${h.start.line}:${h.start.column}$&`)}return u}after(u){return this.parent.insertAfter(this,u),this}assign(u={}){for(let h in u)this[h]=u[h];return this}before(u){return this.parent.insertBefore(this,u),this}cleanRaws(u){delete this.raws.before,delete this.raws.after,u||delete this.raws.between}clone(u={}){let h=a(this);for(let n in u)h[n]=u[n];return h}cloneAfter(u={}){let h=this.clone(u);return this.parent.insertAfter(this,h),h}cloneBefore(u={}){let h=this.clone(u);return this.parent.insertBefore(this,h),h}error(u,h={}){if(this.source){let{end:n,start:d}=this.rangeBy(h);return this.source.input.error(u,{column:d.column,line:d.line},{column:n.column,line:n.line},h)}return new r(u)}getProxyProcessor(){return{get(u,h){return h==="proxyOf"?u:h==="root"?()=>u.root().toProxy():u[h]},set(u,h,n){return u[h]===n||(u[h]=n,(h==="prop"||h==="value"||h==="name"||h==="params"||h==="important"||h==="text")&&u.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let u=this;for(;u=u.parent;)u[e]=!1}}next(){if(!this.parent)return;let u=this.parent.index(this);return this.parent.nodes[u+1]}positionBy(u,h){let n=this.source.start;if(u.index)n=this.positionInside(u.index,h);else if(u.word){h=this.toString();let d=h.indexOf(u.word);d!==-1&&(n=this.positionInside(d,h))}return n}positionInside(u,h){let n=h||this.toString(),d=this.source.start.column,c=this.source.start.line;for(let f=0;f<u;f++)n[f]===`
44
+ `?(d=1,c+=1):d+=1;return{column:d,line:c}}prev(){if(!this.parent)return;let u=this.parent.index(this);return this.parent.nodes[u-1]}rangeBy(u){let h={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:h.column+1,line:h.line};if(u.word){let d=this.toString(),c=d.indexOf(u.word);c!==-1&&(h=this.positionInside(c,d),n=this.positionInside(c+u.word.length,d))}else u.start?h={column:u.start.column,line:u.start.line}:u.index&&(h=this.positionInside(u.index)),u.end?n={column:u.end.column,line:u.end.line}:typeof u.endIndex=="number"?n=this.positionInside(u.endIndex):u.index&&(n=this.positionInside(u.index+1));return(n.line<h.line||n.line===h.line&&n.column<=h.column)&&(n={column:h.column+1,line:h.line}),{end:n,start:h}}raw(u,h){return new i().raw(this,u,h)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...u){if(this.parent){let h=this,n=!1;for(let d of u)d===this?n=!0:n?(this.parent.insertAfter(h,d),h=d):this.parent.insertBefore(h,d);n||this.remove()}return this}root(){let u=this;for(;u.parent&&u.parent.type!=="document";)u=u.parent;return u}toJSON(u,h){let n={},d=h==null;h=h||new Map;let c=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let m=this[f];if(Array.isArray(m))n[f]=m.map(p=>typeof p=="object"&&p.toJSON?p.toJSON(null,h):p);else if(typeof m=="object"&&m.toJSON)n[f]=m.toJSON(null,h);else if(f==="source"){let p=h.get(m.input);p==null&&(p=c,h.set(m.input,c),c++),n[f]={end:m.end,inputId:p,start:m.start}}else n[f]=m}return d&&(n.inputs=[...h.keys()].map(f=>f.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(u=s){u.stringify&&(u=u.stringify);let h="";return u(this,n=>{h+=n}),h}warn(u,h,n){let d={node:this};for(let c in n)d[c]=n[c];return u.warn(h,d)}get proxyOf(){return this}}return Ir=o,o.default=o,Ir}var Dr,zi;function jt(){if(zi)return Dr;zi=1;let e=Vt();class t extends e{constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Dr=t,t.default=t,Dr}var Ar,qi;function Dl(){if(qi)return Ar;qi=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Ar={nanoid:(i=21)=>{let s="",a=i;for(;a--;)s+=e[Math.random()*64|0];return s},customAlphabet:(i,s=21)=>(a=s)=>{let o="",l=a;for(;l--;)o+=i[Math.random()*i.length|0];return o}},Ar}var Tr,Vi;function eo(){if(Vi)return Tr;Vi=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ge,{existsSync:r,readFileSync:i}=ge,{dirname:s,join:a}=ge;function o(u){return Buffer?Buffer.from(u,"base64").toString():window.atob(u)}class l{constructor(h,n){if(n.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let d=n.map?n.map.prev:void 0,c=this.loadMap(n.from,d);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=s(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(h){let n=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,f=/^data:application\/json,/;if(c.test(h)||f.test(h))return decodeURIComponent(h.substr(RegExp.lastMatch.length));if(n.test(h)||d.test(h))return o(h.substr(RegExp.lastMatch.length));let m=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let n=h.match(/\/\*\s*# sourceMappingURL=/gm);if(!n)return;let d=h.lastIndexOf(n.pop()),c=h.indexOf("*/",d);d>-1&&c>-1&&(this.annotation=this.getAnnotationURL(h.substring(d,c)))}loadFile(h){if(this.root=s(h),r(h))return this.mapFile=h,i(h,"utf-8").toString().trim()}loadMap(h,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let d=n(h);if(d){let c=this.loadFile(d);if(!c)throw new Error("Unable to load previous source map: "+d.toString());return c}}else{if(n instanceof e)return t.fromSourceMap(n).toString();if(n instanceof t)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return h&&(d=a(s(h),d)),this.loadFile(d)}}}startWith(h,n){return h?h.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Tr=l,l.default=l,Tr}var _r,ji;function Gt(){if(ji)return _r;ji=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ge,{fileURLToPath:r,pathToFileURL:i}=ge,{isAbsolute:s,resolve:a}=ge,{nanoid:o}=Dl(),l=ge,u=Bs(),h=eo(),n=Symbol("fromOffsetCache"),d=!!(e&&t),c=!!(a&&s);class f{constructor(p,g={}){if(p===null||typeof p>"u"||typeof p=="object"&&!p.toString)throw new Error(`PostCSS received ${p} instead of CSS string`);if(this.css=p.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!c||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=a(g.from)),c&&d){let b=new h(this.css,g);if(b.text){this.map=b;let y=b.consumer().file;!this.file&&y&&(this.file=this.mapResolve(y))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(p,g,b,y={}){let w,C,v;if(g&&typeof g=="object"){let E=g,R=b;if(typeof E.offset=="number"){let I=this.fromOffset(E.offset);g=I.line,b=I.col}else g=E.line,b=E.column;if(typeof R.offset=="number"){let I=this.fromOffset(R.offset);C=I.line,v=I.col}else C=R.line,v=R.column}else if(!b){let E=this.fromOffset(g);g=E.line,b=E.col}let S=this.origin(g,b,C,v);return S?w=new u(p,S.endLine===void 0?S.line:{column:S.column,line:S.line},S.endLine===void 0?S.column:{column:S.endColumn,line:S.endLine},S.source,S.file,y.plugin):w=new u(p,C===void 0?g:{column:b,line:g},C===void 0?b:{column:v,line:C},this.css,this.file,y.plugin),w.input={column:b,endColumn:v,endLine:C,line:g,source:this.css},this.file&&(i&&(w.input.url=i(this.file).toString()),w.input.file=this.file),w}fromOffset(p){let g,b;if(this[n])b=this[n];else{let w=this.css.split(`
45
+ `);b=new Array(w.length);let C=0;for(let v=0,S=w.length;v<S;v++)b[v]=C,C+=w[v].length+1;this[n]=b}g=b[b.length-1];let y=0;if(p>=g)y=b.length-1;else{let w=b.length-2,C;for(;y<w;)if(C=y+(w-y>>1),p<b[C])w=C-1;else if(p>=b[C+1])y=C+1;else{y=C;break}}return{col:p-b[y]+1,line:y+1}}mapResolve(p){return/^\w+:\/\//.test(p)?p:a(this.map.consumer().sourceRoot||this.map.root||".",p)}origin(p,g,b,y){if(!this.map)return!1;let w=this.map.consumer(),C=w.originalPositionFor({column:g,line:p});if(!C.source)return!1;let v;typeof b=="number"&&(v=w.originalPositionFor({column:y,line:b}));let S;s(C.source)?S=i(C.source):S=new URL(C.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let E={column:C.column,endColumn:v&&v.column,endLine:v&&v.line,line:C.line,url:S.toString()};if(S.protocol==="file:")if(r)E.file=r(S);else throw new Error("file: protocol is not available in this PostCSS build");let R=w.sourceContentFor(C.source);return R&&(E.source=R),E}toJSON(){let p={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(p[g]=this[g]);return this.map&&(p.map={...this.map},p.map.consumerCache&&(p.map.consumerCache=void 0)),p}get from(){return this.file||this.id}}return _r=f,f.default=f,l&&l.registerInput&&l.registerInput(f),_r}var kr,Gi;function to(){if(Gi)return kr;Gi=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ge,{dirname:r,relative:i,resolve:s,sep:a}=ge,{pathToFileURL:o}=ge,l=Gt(),u=!!(e&&t),h=!!(r&&s&&i&&a);class n{constructor(c,f,m,p){this.stringify=c,this.mapOpts=m.map||{},this.root=f,this.opts=m,this.css=p,this.originalCSS=p,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let f=`
46
+ `;this.css.includes(`\r
47
+ `)&&(f=`\r
48
+ `),this.css+=f+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let f=this.toUrl(this.path(c.file)),m=c.root||r(c.file),p;this.mapOpts.sourcesContent===!1?(p=new e(c.text),p.sourcesContent&&(p.sourcesContent=null)):p=c.consumer(),this.map.applySourceMap(p,f,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let f=this.root.nodes.length-1;f>=0;f--)c=this.root.nodes[f],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(f)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&u&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,f=>{c+=f}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=t.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,f=1,m="<no source>",p={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,b;this.stringify(this.root,(y,w,C)=>{if(this.css+=y,w&&C!=="end"&&(p.generated.line=c,p.generated.column=f-1,w.source&&w.source.start?(p.source=this.sourcePath(w),p.original.line=w.source.start.line,p.original.column=w.source.start.column-1,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,this.map.addMapping(p))),g=y.match(/\n/g),g?(c+=g.length,b=y.lastIndexOf(`
49
+ `),f=y.length-b):f+=y.length,w&&C!=="start"){let v=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==v.last||v.raws.semicolon)&&(w.source&&w.source.end?(p.source=this.sourcePath(w),p.original.line=w.source.end.line,p.original.column=w.source.end.column-1,p.generated.line=c,p.generated.column=f-2,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,p.generated.line=c,p.generated.column=f-1,this.map.addMapping(p)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(f=>f.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let f=this.memoizedPaths.get(c);if(f)return f;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(s(m,this.mapOpts.annotation)));let p=i(m,c);return this.memoizedPaths.set(c,p),p}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let f=c.source.input.map;this.previousMaps.includes(f)||this.previousMaps.push(f)}});else{let c=new l(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(f=>{if(f.source){let m=f.source.input.from;if(m&&!c[m]){c[m]=!0;let p=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(p,f.source.input.css)}}});else if(this.css){let f=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(f,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let f=this.memoizedFileURLs.get(c);if(f)return f;if(o){let m=o(c).toString();return this.memoizedFileURLs.set(c,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let f=this.memoizedURLs.get(c);if(f)return f;a==="\\"&&(c=c.replace(/\\/g,"/"));let m=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,m),m}}return kr=n,kr}var Pr,Hi;function Ht(){if(Hi)return Pr;Hi=1;let e=Vt();class t extends e{constructor(i){super(i),this.type="comment"}}return Pr=t,t.default=t,Pr}var Lr,Yi;function _e(){if(Yi)return Lr;Yi=1;let{isClean:e,my:t}=$s(),r=jt(),i=Ht(),s=Vt(),a,o,l,u;function h(c){return c.map(f=>(f.nodes&&(f.nodes=h(f.nodes)),delete f.source,f))}function n(c){if(c[e]=!1,c.proxyOf.nodes)for(let f of c.proxyOf.nodes)n(f)}class d extends s{append(...f){for(let m of f){let p=this.normalize(m,this.last);for(let g of p)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(f){if(super.cleanRaws(f),this.nodes)for(let m of this.nodes)m.cleanRaws(f)}each(f){if(!this.proxyOf.nodes)return;let m=this.getIterator(),p,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(p=this.indexes[m],g=f(this.proxyOf.nodes[p],p),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(f){return this.nodes.every(f)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let f=this.lastEach;return this.indexes[f]=0,f}getProxyProcessor(){return{get(f,m){return m==="proxyOf"?f:f[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...p)=>f[m](...p.map(g=>typeof g=="function"?(b,y)=>g(b.toProxy(),y):g)):m==="every"||m==="some"?p=>f[m]((g,...b)=>p(g.toProxy(),...b)):m==="root"?()=>f.root().toProxy():m==="nodes"?f.nodes.map(p=>p.toProxy()):m==="first"||m==="last"?f[m].toProxy():f[m]:f[m]},set(f,m,p){return f[m]===p||(f[m]=p,(m==="name"||m==="params"||m==="selector")&&f.markDirty()),!0}}}index(f){return typeof f=="number"?f:(f.proxyOf&&(f=f.proxyOf),this.proxyOf.nodes.indexOf(f))}insertAfter(f,m){let p=this.index(f),g=this.normalize(m,this.proxyOf.nodes[p]).reverse();p=this.index(f);for(let y of g)this.proxyOf.nodes.splice(p+1,0,y);let b;for(let y in this.indexes)b=this.indexes[y],p<b&&(this.indexes[y]=b+g.length);return this.markDirty(),this}insertBefore(f,m){let p=this.index(f),g=p===0?"prepend":!1,b=this.normalize(m,this.proxyOf.nodes[p],g).reverse();p=this.index(f);for(let w of b)this.proxyOf.nodes.splice(p,0,w);let y;for(let w in this.indexes)y=this.indexes[w],p<=y&&(this.indexes[w]=y+b.length);return this.markDirty(),this}normalize(f,m){if(typeof f=="string")f=h(a(f).nodes);else if(typeof f>"u")f=[];else if(Array.isArray(f)){f=f.slice(0);for(let g of f)g.parent&&g.parent.removeChild(g,"ignore")}else if(f.type==="root"&&this.type!=="document"){f=f.nodes.slice(0);for(let g of f)g.parent&&g.parent.removeChild(g,"ignore")}else if(f.type)f=[f];else if(f.prop){if(typeof f.value>"u")throw new Error("Value field is missed in node creation");typeof f.value!="string"&&(f.value=String(f.value)),f=[new r(f)]}else if(f.selector)f=[new o(f)];else if(f.name)f=[new l(f)];else if(f.text)f=[new i(f)];else throw new Error("Unknown node type in node creation");return f.map(g=>(g[t]||d.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&n(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...f){f=f.reverse();for(let m of f){let p=this.normalize(m,this.first,"prepend").reverse();for(let g of p)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+p.length}return this.markDirty(),this}push(f){return f.parent=this,this.proxyOf.nodes.push(f),this}removeAll(){for(let f of this.proxyOf.nodes)f.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(f){f=this.index(f),this.proxyOf.nodes[f].parent=void 0,this.proxyOf.nodes.splice(f,1);let m;for(let p in this.indexes)m=this.indexes[p],m>=f&&(this.indexes[p]=m-1);return this.markDirty(),this}replaceValues(f,m,p){return p||(p=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(f,p))}),this.markDirty(),this}some(f){return this.nodes.some(f)}walk(f){return this.each((m,p)=>{let g;try{g=f(m,p)}catch(b){throw m.addToError(b)}return g!==!1&&m.walk&&(g=m.walk(f)),g})}walkAtRules(f,m){return m?f instanceof RegExp?this.walk((p,g)=>{if(p.type==="atrule"&&f.test(p.name))return m(p,g)}):this.walk((p,g)=>{if(p.type==="atrule"&&p.name===f)return m(p,g)}):(m=f,this.walk((p,g)=>{if(p.type==="atrule")return m(p,g)}))}walkComments(f){return this.walk((m,p)=>{if(m.type==="comment")return f(m,p)})}walkDecls(f,m){return m?f instanceof RegExp?this.walk((p,g)=>{if(p.type==="decl"&&f.test(p.prop))return m(p,g)}):this.walk((p,g)=>{if(p.type==="decl"&&p.prop===f)return m(p,g)}):(m=f,this.walk((p,g)=>{if(p.type==="decl")return m(p,g)}))}walkRules(f,m){return m?f instanceof RegExp?this.walk((p,g)=>{if(p.type==="rule"&&f.test(p.selector))return m(p,g)}):this.walk((p,g)=>{if(p.type==="rule"&&p.selector===f)return m(p,g)}):(m=f,this.walk((p,g)=>{if(p.type==="rule")return m(p,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return d.registerParse=c=>{a=c},d.registerRule=c=>{o=c},d.registerAtRule=c=>{l=c},d.registerRoot=c=>{u=c},Lr=d,d.default=d,d.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,l.prototype):c.type==="rule"?Object.setPrototypeOf(c,o.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,i.prototype):c.type==="root"&&Object.setPrototypeOf(c,u.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(f=>{d.rebuild(f)})},Lr}var Fr,Xi;function Ws(){if(Xi)return Fr;Xi=1;let e=_e(),t,r;class i extends e{constructor(a){super({type:"document",...a}),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},Fr=i,i.default=i,Fr}var Ur,Ji;function ro(){if(Ji)return Ur;Ji=1;let e={};return Ur=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},Ur}var Br,Qi;function so(){if(Qi)return Br;Qi=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let s=i.node.rangeBy(i);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in i)this[s]=i[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Br=e,e.default=e,Br}var $r,Zi;function zs(){if(Zi)return $r;Zi=1;let e=so();class t{constructor(i,s,a){this.processor=i,this.messages=[],this.root=s,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let a=new e(i,s);return this.messages.push(a),a}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return $r=t,t.default=t,$r}var Wr,Ki;function Al(){if(Ki)return Wr;Ki=1;let e=39,t=34,r=92,i=47,s=10,a=32,o=12,l=9,u=13,h=91,n=93,d=40,c=41,f=123,m=125,p=59,g=42,b=58,y=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,C=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,S=/[\da-f]/i;return Wr=function(R,I={}){let N=R.css.valueOf(),L=I.ignoreErrors,T,x,ae,se,W,k,Y,ee,Q,V,xe=N.length,O=0,we=[],fe=[];function He(){return O}function ie(P){throw R.error("Unclosed "+P,O)}function de(){return fe.length===0&&O>=xe}function Ie(P){if(fe.length)return fe.pop();if(O>=xe)return;let te=P?P.ignoreUnclosed:!1;switch(T=N.charCodeAt(O),T){case s:case a:case l:case u:case o:{x=O;do x+=1,T=N.charCodeAt(x);while(T===a||T===s||T===l||T===u||T===o);V=["space",N.slice(O,x)],O=x-1;break}case h:case n:case f:case m:case b:case p:case c:{let j=String.fromCharCode(T);V=[j,j,O];break}case d:{if(ee=we.length?we.pop()[1]:"",Q=N.charCodeAt(O+1),ee==="url"&&Q!==e&&Q!==t&&Q!==a&&Q!==s&&Q!==l&&Q!==o&&Q!==u){x=O;do{if(k=!1,x=N.indexOf(")",x+1),x===-1)if(L||te){x=O;break}else ie("bracket");for(Y=x;N.charCodeAt(Y-1)===r;)Y-=1,k=!k}while(k);V=["brackets",N.slice(O,x+1),O,x],O=x}else x=N.indexOf(")",O+1),se=N.slice(O,x+1),x===-1||v.test(se)?V=["(","(",O]:(V=["brackets",se,O,x],O=x);break}case e:case t:{ae=T===e?"'":'"',x=O;do{if(k=!1,x=N.indexOf(ae,x+1),x===-1)if(L||te){x=O+1;break}else ie("string");for(Y=x;N.charCodeAt(Y-1)===r;)Y-=1,k=!k}while(k);V=["string",N.slice(O,x+1),O,x],O=x;break}case y:{w.lastIndex=O+1,w.test(N),w.lastIndex===0?x=N.length-1:x=w.lastIndex-2,V=["at-word",N.slice(O,x+1),O,x],O=x;break}case r:{for(x=O,W=!0;N.charCodeAt(x+1)===r;)x+=1,W=!W;if(T=N.charCodeAt(x+1),W&&T!==i&&T!==a&&T!==s&&T!==l&&T!==u&&T!==o&&(x+=1,S.test(N.charAt(x)))){for(;S.test(N.charAt(x+1));)x+=1;N.charCodeAt(x+1)===a&&(x+=1)}V=["word",N.slice(O,x+1),O,x],O=x;break}default:{T===i&&N.charCodeAt(O+1)===g?(x=N.indexOf("*/",O+2)+1,x===0&&(L||te?x=N.length:ie("comment")),V=["comment",N.slice(O,x+1),O,x],O=x):(C.lastIndex=O+1,C.test(N),C.lastIndex===0?x=N.length-1:x=C.lastIndex-2,V=["word",N.slice(O,x+1),O,x],we.push(V),O=x);break}}return O++,V}function Re(P){fe.push(P)}return{back:Re,endOfFile:de,nextToken:Ie,position:He}},Wr}var zr,en;function qs(){if(en)return zr;en=1;let e=_e();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return zr=t,t.default=t,e.registerAtRule(t),zr}var qr,tn;function ot(){if(tn)return qr;tn=1;let e=_e(),t,r;class i extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,o,l){let u=super.normalize(a);if(o){if(l==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let h of u)h.raws.before=o.raws.before}return u}removeChild(a,o){let l=this.index(a);return!o&&l===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[l].raws.before),super.removeChild(a)}toResult(a={}){return new t(new r,this,a).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},qr=i,i.default=i,e.registerRoot(i),qr}var Vr,rn;function io(){if(rn)return Vr;rn=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
50
+ `," "];return e.split(t,r)},split(t,r,i){let s=[],a="",o=!1,l=0,u=!1,h="",n=!1;for(let d of t)n?n=!1:d==="\\"?n=!0:u?d===h&&(u=!1):d==='"'||d==="'"?(u=!0,h=d):d==="("?l+=1:d===")"?l>0&&(l-=1):l===0&&r.includes(d)&&(o=!0),o?(a!==""&&s.push(a.trim()),a="",o=!1):a+=d;return(i||a!=="")&&s.push(a.trim()),s}};return Vr=e,e.default=e,Vr}var jr,sn;function Vs(){if(sn)return jr;sn=1;let e=_e(),t=io();class r extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(s){let a=this.selector?this.selector.match(/,\s*/):null,o=a?a[0]:","+this.raw("between","beforeOpen");this.selector=s.join(o)}}return jr=r,r.default=r,e.registerRule(r),jr}var Gr,nn;function Tl(){if(nn)return Gr;nn=1;let e=jt(),t=Al(),r=Ht(),i=qs(),s=ot(),a=Vs(),o={empty:!0,space:!0};function l(h){for(let n=h.length-1;n>=0;n--){let d=h[n],c=d[3]||d[2];if(c)return c}}class u{constructor(n){this.input=n,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:n,start:{column:1,line:1,offset:0}}}atrule(n){let d=new i;d.name=n[1].slice(1),d.name===""&&this.unnamedAtrule(d,n),this.init(d,n[2]);let c,f,m,p=!1,g=!1,b=[],y=[];for(;!this.tokenizer.endOfFile();){if(n=this.tokenizer.nextToken(),c=n[0],c==="("||c==="["?y.push(c==="("?")":"]"):c==="{"&&y.length>0?y.push("}"):c===y[y.length-1]&&y.pop(),y.length===0)if(c===";"){d.source.end=this.getPosition(n[2]),d.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(b.length>0){for(m=b.length-1,f=b[m];f&&f[0]==="space";)f=b[--m];f&&(d.source.end=this.getPosition(f[3]||f[2]),d.source.end.offset++)}this.end(n);break}else b.push(n);else b.push(n);if(this.tokenizer.endOfFile()){p=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(b),b.length?(d.raws.afterName=this.spacesAndCommentsFromStart(b),this.raw(d,"params",b),p&&(n=b[b.length-1],d.source.end=this.getPosition(n[3]||n[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(n){let d=this.colon(n);if(d===!1)return;let c=0,f;for(let m=d-1;m>=0&&(f=n[m],!(f[0]!=="space"&&(c+=1,c===2)));m--);throw this.input.error("Missed semicolon",f[0]==="word"?f[3]+1:f[2])}colon(n){let d=0,c,f,m;for(let[p,g]of n.entries()){if(c=g,f=c[0],f==="("&&(d+=1),f===")"&&(d-=1),d===0&&f===":")if(!m)this.doubleColon(c);else{if(m[0]==="word"&&m[1]==="progid")continue;return p}m=c}return!1}comment(n){let d=new r;this.init(d,n[2]),d.source.end=this.getPosition(n[3]||n[2]),d.source.end.offset++;let c=n[1].slice(2,-2);if(/^\s*$/.test(c))d.text="",d.raws.left=c,d.raws.right="";else{let f=c.match(/^(\s*)([^]*\S)(\s*)$/);d.text=f[2],d.raws.left=f[1],d.raws.right=f[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(n,d){let c=new e;this.init(c,n[0][2]);let f=n[n.length-1];for(f[0]===";"&&(this.semicolon=!0,n.pop()),c.source.end=this.getPosition(f[3]||f[2]||l(n)),c.source.end.offset++;n[0][0]!=="word";)n.length===1&&this.unknownWord(n),c.raws.before+=n.shift()[1];for(c.source.start=this.getPosition(n[0][2]),c.prop="";n.length;){let y=n[0][0];if(y===":"||y==="space"||y==="comment")break;c.prop+=n.shift()[1]}c.raws.between="";let m;for(;n.length;)if(m=n.shift(),m[0]===":"){c.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),c.raws.between+=m[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let p=[],g;for(;n.length&&(g=n[0][0],!(g!=="space"&&g!=="comment"));)p.push(n.shift());this.precheckMissedSemicolon(n);for(let y=n.length-1;y>=0;y--){if(m=n[y],m[1].toLowerCase()==="!important"){c.important=!0;let w=this.stringFrom(n,y);w=this.spacesFromEnd(n)+w,w!==" !important"&&(c.raws.important=w);break}else if(m[1].toLowerCase()==="important"){let w=n.slice(0),C="";for(let v=y;v>0;v--){let S=w[v][0];if(C.trim().indexOf("!")===0&&S!=="space")break;C=w.pop()[1]+C}C.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=C,n=w)}if(m[0]!=="space"&&m[0]!=="comment")break}n.some(y=>y[0]!=="space"&&y[0]!=="comment")&&(c.raws.between+=p.map(y=>y[1]).join(""),p=[]),this.raw(c,"value",p.concat(n),d),c.value.includes(":")&&!d&&this.checkMissedSemicolon(n)}doubleColon(n){throw this.input.error("Double colon",{offset:n[2]},{offset:n[2]+n[1].length})}emptyRule(n){let d=new a;this.init(d,n[2]),d.selector="",d.raws.between="",this.current=d}end(n){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(n[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(n)}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(n){if(this.spaces+=n[1],this.current.nodes){let d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(n){let d=this.input.fromOffset(n);return{column:d.col,line:d.line,offset:n}}init(n,d){this.current.push(n),n.source={input:this.input,start:this.getPosition(d)},n.raws.before=this.spaces,this.spaces="",n.type!=="comment"&&(this.semicolon=!1)}other(n){let d=!1,c=null,f=!1,m=null,p=[],g=n[1].startsWith("--"),b=[],y=n;for(;y;){if(c=y[0],b.push(y),c==="("||c==="[")m||(m=y),p.push(c==="("?")":"]");else if(g&&f&&c==="{")m||(m=y),p.push("}");else if(p.length===0)if(c===";")if(f){this.decl(b,g);return}else break;else if(c==="{"){this.rule(b);return}else if(c==="}"){this.tokenizer.back(b.pop()),d=!0;break}else c===":"&&(f=!0);else c===p[p.length-1]&&(p.pop(),p.length===0&&(m=null));y=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),p.length>0&&this.unclosedBracket(m),d&&f){if(!g)for(;b.length&&(y=b[b.length-1][0],!(y!=="space"&&y!=="comment"));)this.tokenizer.back(b.pop());this.decl(b,g)}else this.unknownWord(b)}parse(){let n;for(;!this.tokenizer.endOfFile();)switch(n=this.tokenizer.nextToken(),n[0]){case"space":this.spaces+=n[1];break;case";":this.freeSemicolon(n);break;case"}":this.end(n);break;case"comment":this.comment(n);break;case"at-word":this.atrule(n);break;case"{":this.emptyRule(n);break;default:this.other(n);break}this.endFile()}precheckMissedSemicolon(){}raw(n,d,c,f){let m,p,g=c.length,b="",y=!0,w,C;for(let v=0;v<g;v+=1)m=c[v],p=m[0],p==="space"&&v===g-1&&!f?y=!1:p==="comment"?(C=c[v-1]?c[v-1][0]:"empty",w=c[v+1]?c[v+1][0]:"empty",!o[C]&&!o[w]?b.slice(-1)===","?y=!1:b+=m[1]:y=!1):b+=m[1];if(!y){let v=c.reduce((S,E)=>S+E[1],"");n.raws[d]={raw:v,value:b}}n[d]=b}rule(n){n.pop();let d=new a;this.init(d,n[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(n),this.raw(d,"selector",n),this.current=d}spacesAndCommentsFromEnd(n){let d,c="";for(;n.length&&(d=n[n.length-1][0],!(d!=="space"&&d!=="comment"));)c=n.pop()[1]+c;return c}spacesAndCommentsFromStart(n){let d,c="";for(;n.length&&(d=n[0][0],!(d!=="space"&&d!=="comment"));)c+=n.shift()[1];return c}spacesFromEnd(n){let d,c="";for(;n.length&&(d=n[n.length-1][0],d==="space");)c=n.pop()[1]+c;return c}stringFrom(n,d){let c="";for(let f=d;f<n.length;f++)c+=n[f][1];return n.splice(d,n.length-d),c}unclosedBlock(){let n=this.current.source.start;throw this.input.error("Unclosed block",n.line,n.column)}unclosedBracket(n){throw this.input.error("Unclosed bracket",{offset:n[2]},{offset:n[2]+1})}unexpectedClose(n){throw this.input.error("Unexpected }",{offset:n[2]},{offset:n[2]+1})}unknownWord(n){throw this.input.error("Unknown word",{offset:n[0][2]},{offset:n[0][2]+n[0][1].length})}unnamedAtrule(n,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return Gr=u,Gr}var Hr,on;function js(){if(on)return Hr;on=1;let e=_e(),t=Tl(),r=Gt();function i(s,a){let o=new r(s,a),l=new t(o);try{l.parse()}catch(u){throw u}return l.root}return Hr=i,i.default=i,e.registerParse(i),Hr}var Yr,an;function no(){if(an)return Yr;an=1;let{isClean:e,my:t}=$s(),r=to(),i=qt(),s=_e(),a=Ws(),o=ro(),l=zs(),u=js(),h=ot(),n={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},f=0;function m(C){return typeof C=="object"&&typeof C.then=="function"}function p(C){let v=!1,S=n[C.type];return C.type==="decl"?v=C.prop.toLowerCase():C.type==="atrule"&&(v=C.name.toLowerCase()),v&&C.append?[S,S+"-"+v,f,S+"Exit",S+"Exit-"+v]:v?[S,S+"-"+v,S+"Exit",S+"Exit-"+v]:C.append?[S,f,S+"Exit"]:[S,S+"Exit"]}function g(C){let v;return C.type==="document"?v=["Document",f,"DocumentExit"]:C.type==="root"?v=["Root",f,"RootExit"]:v=p(C),{eventIndex:0,events:v,iterator:0,node:C,visitorIndex:0,visitors:[]}}function b(C){return C[e]=!1,C.nodes&&C.nodes.forEach(v=>b(v)),C}let y={};class w{constructor(v,S,E){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 w||S instanceof l)R=b(S.root),S.map&&(typeof E.map>"u"&&(E.map={}),E.map.inline||(E.map.inline=!1),E.map.prev=S.map);else{let I=u;E.syntax&&(I=E.syntax.parse),E.parser&&(I=E.parser),I.parse&&(I=I.parse);try{R=I(S,E)}catch(N){this.processed=!0,this.error=N}R&&!R[t]&&s.rebuild(R)}this.result=new l(v,R,E),this.helpers={...y,postcss:y,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,S){let E=this.result.lastPlugin;try{S&&S.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=E.postcssPlugin,v.setMessage()):E.postcssVersion}catch(R){console&&console.error&&console.error(R)}return v}prepareVisitors(){this.listeners={};let v=(S,E,R)=>{this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push([S,R])};for(let S of this.plugins)if(typeof S=="object")for(let E in S){if(!d[E]&&/^[A-Z]/.test(E))throw new Error(`Unknown event ${E} in ${S.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[E])if(typeof S[E]=="object")for(let R in S[E])R==="*"?v(S,E,S[E][R]):v(S,E+"-"+R.toLowerCase(),S[E][R]);else typeof S[E]=="function"&&v(S,E,S[E])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let S=this.plugins[v],E=this.runOnRoot(S);if(m(E))try{await E}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];){v[e]=!0;let S=[g(v)];for(;S.length>0;){let E=this.visitTick(S);if(m(E))try{await E}catch(R){let I=S[S.length-1].node;throw this.handleError(R,I)}}}if(this.listeners.OnceExit)for(let[S,E]of this.listeners.OnceExit){this.result.lastPlugin=S;try{if(v.type==="document"){let R=v.nodes.map(I=>E(I,this.helpers));await Promise.all(R)}else await E(v,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let S=this.result.root.nodes.map(E=>v.Once(E,this.helpers));return m(S[0])?Promise.all(S):S}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(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 v=this.result.opts,S=i;v.syntax&&(S=v.syntax.stringify),v.stringifier&&(S=v.stringifier),S.stringify&&(S=S.stringify);let R=new r(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 v of this.plugins){let S=this.runOnRoot(v);if(m(S))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];)v[e]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let S of v.nodes)this.visitSync(this.listeners.OnceExit,S);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,S){return this.async().then(v,S)}toString(){return this.css}visitSync(v,S){for(let[E,R]of v){this.result.lastPlugin=E;let I;try{I=R(S,this.helpers)}catch(N){throw this.handleError(N,S.proxyOf)}if(S.type!=="root"&&S.type!=="document"&&!S.parent)return!0;if(m(I))throw this.getAsyncError()}}visitTick(v){let S=v[v.length-1],{node:E,visitors:R}=S;if(E.type!=="root"&&E.type!=="document"&&!E.parent){v.pop();return}if(R.length>0&&S.visitorIndex<R.length){let[N,L]=R[S.visitorIndex];S.visitorIndex+=1,S.visitorIndex===R.length&&(S.visitors=[],S.visitorIndex=0),this.result.lastPlugin=N;try{return L(E.toProxy(),this.helpers)}catch(T){throw this.handleError(T,E)}}if(S.iterator!==0){let N=S.iterator,L;for(;L=E.nodes[E.indexes[N]];)if(E.indexes[N]+=1,!L[e]){L[e]=!0,v.push(g(L));return}S.iterator=0,delete E.indexes[N]}let I=S.events;for(;S.eventIndex<I.length;){let N=I[S.eventIndex];if(S.eventIndex+=1,N===f){E.nodes&&E.nodes.length&&(E[e]=!0,S.iterator=E.getIterator());return}else if(this.listeners[N]){S.visitors=this.listeners[N];return}}v.pop()}walkSync(v){v[e]=!0;let S=p(v);for(let E of S)if(E===f)v.nodes&&v.each(R=>{R[e]||this.walkSync(R)});else{let R=this.listeners[E];if(R&&this.visitSync(R,v.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return w.registerPostcss=C=>{y=C},Yr=w,w.default=w,h.registerLazyResult(w),a.registerLazyResult(w),Yr}var Xr,ln;function _l(){if(ln)return Xr;ln=1;let e=to(),t=qt(),r=ro(),i=js(),s=zs();class a{constructor(l,u,h){u=u.toString(),this.stringified=!1,this._processor=l,this._css=u,this._opts=h,this._map=void 0;let n,d=t;this.result=new s(this._processor,n,this._opts),this.result.css=u;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let f=new e(d,n,this._opts,u);if(f.isMap()){let[m,p]=f.generate();m&&(this.result.css=m),p&&(this.result.map=p)}else f.clearAnnotation(),this.result.css=f.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}sync(){if(this.error)throw this.error;return this.result}then(l,u){return this.async().then(l,u)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let l,u=i;try{l=u(this._css,this._opts)}catch(h){this.error=h}if(this.error)throw this.error;return this._root=l,l}get[Symbol.toStringTag](){return"NoWorkResult"}}return Xr=a,a.default=a,Xr}var Jr,un;function kl(){if(un)return Jr;un=1;let e=_l(),t=no(),r=Ws(),i=ot();class s{constructor(o=[]){this.version="8.4.38",this.plugins=this.normalize(o)}normalize(o){let l=[];for(let u of o)if(u.postcss===!0?u=u():u.postcss&&(u=u.postcss),typeof u=="object"&&Array.isArray(u.plugins))l=l.concat(u.plugins);else if(typeof u=="object"&&u.postcssPlugin)l.push(u);else if(typeof u=="function")l.push(u);else if(!(typeof u=="object"&&(u.parse||u.stringify)))throw new Error(u+" is not a PostCSS plugin");return l}process(o,l={}){return!this.plugins.length&&!l.parser&&!l.stringifier&&!l.syntax?new e(this,o,l):new t(this,o,l)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return Jr=s,s.default=s,i.registerProcessor(s),r.registerProcessor(s),Jr}var Qr,cn;function Pl(){if(cn)return Qr;cn=1;let e=jt(),t=eo(),r=Ht(),i=qs(),s=Gt(),a=ot(),o=Vs();function l(u,h){if(Array.isArray(u))return u.map(c=>l(c));let{inputs:n,...d}=u;if(n){h=[];for(let c of n){let f={...c,__proto__:s.prototype};f.map&&(f.map={...f.map,__proto__:t.prototype}),h.push(f)}}if(d.nodes&&(d.nodes=u.nodes.map(c=>l(c,h))),d.source){let{inputId:c,...f}=d.source;d.source=f,c!=null&&(d.source.input=h[c])}if(d.type==="root")return new a(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new o(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new i(d);throw new Error("Unknown node type: "+u.type)}return Qr=l,l.default=l,Qr}var Zr,hn;function Ll(){if(hn)return Zr;hn=1;let e=Bs(),t=jt(),r=no(),i=_e(),s=kl(),a=qt(),o=Pl(),l=Ws(),u=so(),h=Ht(),n=qs(),d=zs(),c=Gt(),f=js(),m=io(),p=Vs(),g=ot(),b=Vt();function y(...w){return w.length===1&&Array.isArray(w[0])&&(w=w[0]),new s(w)}return y.plugin=function(C,v){let S=!1;function E(...I){console&&console.warn&&!S&&(S=!0,console.warn(C+`: postcss.plugin was deprecated. Migration guide:
51
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(C+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
52
+ https://www.w3ctech.com/topic/2226`));let N=v(...I);return N.postcssPlugin=C,N.postcssVersion=new s().version,N}let R;return Object.defineProperty(E,"postcss",{get(){return R||(R=E()),R}}),E.process=function(I,N,L){return y([E(L)]).process(I,N)},E},y.stringify=a,y.parse=f,y.fromJSON=o,y.list=m,y.comment=w=>new h(w),y.atRule=w=>new n(w),y.decl=w=>new t(w),y.rule=w=>new p(w),y.root=w=>new g(w),y.document=w=>new l(w),y.CssSyntaxError=e,y.Declaration=t,y.Container=i,y.Processor=s,y.Document=l,y.Comment=h,y.Warning=u,y.AtRule=n,y.Result=d,y.Input=c,y.Rule=p,y.Root=g,y.Node=b,r.registerPostcss(y),Zr=y,y.default=y,Zr}var Fl=Ll(),J=Rl(Fl);J.stringify;J.fromJSON;J.plugin;J.parse;J.list;J.document;J.comment;J.atRule;J.rule;J.decl;J.root;J.CssSyntaxError;J.Declaration;J.Container;J.Processor;J.Document;J.Comment;J.Warning;J.AtRule;J.Result;J.Input;J.Rule;J.Root;J.Node;var B=(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))(B||{});function Ul(e){let t={},r=/;(?![^(]*\))/g,i=/:(.+)/,s=/\/\*.*?\*\//g;return e.replace(s,"").split(r).forEach(function(a){if(a){let o=a.split(i);o.length>1&&(t[os(o[0].trim())]=o[1].trim())}}),t}function fn(e){let t=[];for(let r in e){let i=e[r];if(typeof i!="string")continue;let s=zl(r);t.push(`${s}: ${i};`)}return t.join(" ")}var Bl=/-([a-z])/g,$l=/^--[a-zA-Z0-9-]+$/,os=e=>$l.test(e)?e:e.replace(Bl,(t,r)=>r?r.toUpperCase():""),Wl=/\B([A-Z])/g,zl=e=>e.replace(Wl,"-$1").toLowerCase(),ye=class e{constructor(...t){D(this,"parentElement",null),D(this,"parentNode",null),D(this,"ownerDocument"),D(this,"firstChild",null),D(this,"lastChild",null),D(this,"previousSibling",null),D(this,"nextSibling",null),D(this,"ELEMENT_NODE",1),D(this,"TEXT_NODE",3),D(this,"nodeType"),D(this,"nodeName"),D(this,"RRNodeType")}get childNodes(){let t=[],r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof e){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}},as=class e extends ye{constructor(...t){super(t),D(this,"nodeType",9),D(this,"nodeName","#document"),D(this,"compatMode","CSS1Compat"),D(this,"RRNodeType",B.Document),D(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(t=>t.RRNodeType===B.Element&&t.tagName==="HTML")||null}get body(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===B.Element&&r.tagName==="BODY"))||null}get head(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===B.Element&&r.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(t){let r=t.RRNodeType;if((r===B.Element||r===B.DocumentType)&&this.childNodes.some(s=>s.RRNodeType===r))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${r===B.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let i=Gs(this,t);return i.parentElement=null,i}insertBefore(t,r){let i=t.RRNodeType;if((i===B.Element||i===B.DocumentType)&&this.childNodes.some(a=>a.RRNodeType===i))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${i===B.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let s=oo(this,t,r);return s.parentElement=null,s}removeChild(t){return ao(this,t)}open(){this.firstChild=null,this.lastChild=null}close(){}write(t){let r;if(t==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?r="-//W3C//DTD XHTML 1.0 Transitional//EN":t==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(r="-//W3C//DTD HTML 4.0 Transitional//EN"),r){let i=this.createDocumentType("html",r,"");this.open(),this.appendChild(i)}}createDocument(t,r,i){return new e}createDocumentType(t,r,i){let s=new Rt(t,r,i);return s.ownerDocument=this,s}createElement(t){let r=new Ve(t);return r.ownerDocument=this,r}createElementNS(t,r){return this.createElement(r)}createTextNode(t){let r=new Mt(t);return r.ownerDocument=this,r}createComment(t){let r=new Nt(t);return r.ownerDocument=this,r}createCDATASection(t){let r=new Ot(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}},Rt=class extends ye{constructor(t,r,i){super(),D(this,"nodeType",10),D(this,"RRNodeType",B.DocumentType),D(this,"name"),D(this,"publicId"),D(this,"systemId"),D(this,"textContent",null),this.name=t,this.publicId=r,this.systemId=i,this.nodeName=t}toString(){return"RRDocumentType"}},Ve=class extends ye{constructor(t){super(),D(this,"nodeType",1),D(this,"RRNodeType",B.Element),D(this,"tagName"),D(this,"attributes",{}),D(this,"shadowRoot",null),D(this,"scrollLeft"),D(this,"scrollTop"),this.tagName=t.toUpperCase(),this.nodeName=t.toUpperCase()}get textContent(){let t="";return this.childNodes.forEach(r=>t+=r.textContent),t}set textContent(t){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(t))}get classList(){return new cs(this.attributes.class,t=>{this.attributes.class=t})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){let t=this.attributes.style?Ul(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(i,s,a)=>{if(r.test(i))return;let o=os(i);s?t[o]=s:delete t[o],a==="important"&&(t[o]+=" !important"),this.attributes.style=fn(t)},t.removeProperty=i=>{if(r.test(i))return"";let s=os(i),a=t[s]||"";return delete t[s],this.attributes.style=fn(t),a},t}getAttribute(t){return this.attributes[t]===void 0?null:this.attributes[t]}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,i){this.setAttribute(r,i)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return Gs(this,t)}insertBefore(t,r){return oo(this,t,r)}removeChild(t){return ao(this,t)}attachShadow(t){let r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(t){return!0}toString(){let t="";for(let r in this.attributes)t+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${t}`}},ls=class extends Ve{constructor(){super(...arguments),D(this,"currentTime"),D(this,"volume"),D(this,"paused"),D(this,"muted"),D(this,"playbackRate"),D(this,"loop")}attachShadow(t){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}},us=class extends Ve{constructor(){super(...arguments),D(this,"tagName","DIALOG"),D(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}},Mt=class extends ye{constructor(t){super(),D(this,"nodeType",3),D(this,"nodeName","#text"),D(this,"RRNodeType",B.Text),D(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}},Nt=class extends ye{constructor(t){super(),D(this,"nodeType",8),D(this,"nodeName","#comment"),D(this,"RRNodeType",B.Comment),D(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}},Ot=class extends ye{constructor(t){super(),D(this,"nodeName","#cdata-section"),D(this,"nodeType",4),D(this,"RRNodeType",B.CDATA),D(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}},cs=class{constructor(t,r){if(D(this,"onChange"),D(this,"classes",[]),D(this,"add",(...i)=>{for(let s of i){let a=String(s);this.classes.indexOf(a)>=0||this.classes.push(a)}this.onChange&&this.onChange(this.classes.join(" "))}),D(this,"remove",(...i)=>{this.classes=this.classes.filter(s=>i.indexOf(s)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),t){let i=t.trim().split(/\s+/);this.classes.push(...i)}this.onChange=r}};function Gs(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function oo(e,t,r){if(!r)return Gs(e,t);if(r.parentNode!==e)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return t===r||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=r.previousSibling,r.previousSibling=t,t.nextSibling=r,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function ao(e,t){if(t.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}var ue=(e=>(e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e))(ue||{}),hs={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},ql={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"},be=null;function It(e,t,r,i=t.mirror||t.ownerDocument.mirror){e=Vl(e,t,r,i),lo(e,t,r,i),jl(e,t,r)}function Vl(e,t,r,i){var s;if(r.afterAppend&&!be&&(be=new WeakSet,setTimeout(()=>{be=null},0)),!Hs(e,t)){let a=Dt(t,r.mirror,i);(s=e.parentNode)==null||s.replaceChild(a,e),e=a}switch(t.RRNodeType){case B.Document:{if(!Fe(e,t,r.mirror,i)){let a=i.getMeta(t);a&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,a),be?.add(e))}break}case B.Element:{let a=e,o=t;switch(o.tagName){case"IFRAME":{let l=e.contentDocument;if(!l)break;It(l,t.contentDocument,r,i);break}}o.shadowRoot&&(a.shadowRoot||a.attachShadow({mode:"open"}),lo(a.shadowRoot,o.shadowRoot,r,i)),Gl(a,o,i);break}}return e}function jl(e,t,r){var i;switch(t.RRNodeType){case B.Document:{let s=t.scrollData;s&&r.applyScroll(s,!0);break}case B.Element:{let s=e,a=t;switch(a.scrollData&&r.applyScroll(a.scrollData,!0),a.inputData&&r.applyInput(a.inputData),a.tagName){case"AUDIO":case"VIDEO":{let o=e,l=a;l.paused!==void 0&&(l.paused?o.pause():o.play()),l.muted!==void 0&&(o.muted=l.muted),l.volume!==void 0&&(o.volume=l.volume),l.currentTime!==void 0&&(o.currentTime=l.currentTime),l.playbackRate!==void 0&&(o.playbackRate=l.playbackRate),l.loop!==void 0&&(o.loop=l.loop);break}case"CANVAS":{let o=t;if(o.rr_dataURL!==null){let l=document.createElement("img");l.onload=()=>{let u=s.getContext("2d");u&&u.drawImage(l,0,0,l.width,l.height)},l.src=o.rr_dataURL}o.canvasMutations.forEach(l=>r.applyCanvas(l.event,l.mutation,e));break}case"STYLE":{let o=s.sheet;o&&t.rules.forEach(l=>r.applyStyleSheetMutation(l,o));break}case"DIALOG":{let o=s,l=a,u=o.open,h=o.matches("dialog:modal"),n=l.open,d=l.isModal,c=h!==d,f=u!==n;if((c||u&&f)&&o.close(),n&&(f||c))try{d?o.showModal():o.show()}catch(m){console.warn(m)}break}}break}case B.Text:case B.Comment:case B.CDATA:{e.textContent!==t.data&&(e.textContent=t.data);break}}be?.has(e)&&(be.delete(e),(i=r.afterAppend)==null||i.call(r,e,r.mirror.getId(e)))}function Gl(e,t,r){let i=e.attributes,s=t.attributes;for(let a in s){let o=s[a],l=r.getMeta(t);if(l?.isSVG&&hs[a])e.setAttributeNS(hs[a],a,o);else if(t.tagName==="CANVAS"&&a==="rr_dataURL"){let u=document.createElement("img");u.src=o,u.onload=()=>{let h=e.getContext("2d");h&&h.drawImage(u,0,0,u.width,u.height)}}else{if(t.tagName==="IFRAME"&&a==="srcdoc")continue;try{e.setAttribute(a,o)}catch(u){console.warn(u)}}}for(let{name:a}of Array.from(i))a in s||e.removeAttribute(a);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function lo(e,t,r,i){let s=Array.from(e.childNodes),a=t.childNodes;if(s.length===0&&a.length===0)return;let o=0,l=s.length-1,u=0,h=a.length-1,n=s[o],d=s[l],c=a[u],f=a[h],m,p;for(;o<=l&&u<=h;)if(n===void 0)n=s[++o];else if(d===void 0)d=s[--l];else if(Fe(n,c,r.mirror,i))n=s[++o],c=a[++u];else if(Fe(d,f,r.mirror,i))d=s[--l],f=a[--h];else if(Fe(n,f,r.mirror,i)){try{e.insertBefore(n,d.nextSibling)}catch(y){console.warn(y)}n=s[++o],f=a[--h]}else if(Fe(d,c,r.mirror,i)){try{e.insertBefore(d,n)}catch(y){console.warn(y)}d=s[--l],c=a[++u]}else{if(!m){m={};for(let w=o;w<=l;w++){let C=s[w];C&&r.mirror.hasNode(C)&&(m[r.mirror.getId(C)]=w)}}p=m[i.getId(c)];let y=s[p];if(p!==void 0&&y&&Fe(y,c,r.mirror,i)){try{e.insertBefore(y,n)}catch(w){console.warn(w)}s[p]=void 0}else{let w=Dt(c,r.mirror,i);e.nodeName==="#document"&&n&&(w.nodeType===w.DOCUMENT_TYPE_NODE&&n.nodeType===n.DOCUMENT_TYPE_NODE||w.nodeType===w.ELEMENT_NODE&&n.nodeType===n.ELEMENT_NODE)&&(e.removeChild(n),r.mirror.removeNodeFromMap(n),n=s[++o]);try{e.insertBefore(w,n||null)}catch(C){console.warn(C)}}c=a[++u]}if(o>l){let y=a[h+1],w=null;for(y&&(w=r.mirror.getNode(i.getId(y)));u<=h;++u){let C=Dt(a[u],r.mirror,i);try{e.insertBefore(C,w)}catch(v){console.warn(v)}}}else if(u>h)for(;o<=l;o++){let y=s[o];if(!(!y||y.parentNode!==e))try{e.removeChild(y),r.mirror.removeNodeFromMap(y)}catch(w){console.warn(w)}}let g=e.firstChild,b=t.firstChild;for(;g!==null&&b!==null;)It(g,b,r,i),g=g.nextSibling,b=b.nextSibling}function Dt(e,t,r){let i=r.getId(e),s=r.getMeta(e),a=null;if(i>-1&&(a=t.getNode(i)),a!==null&&Hs(a,e))return a;switch(e.RRNodeType){case B.Document:a=new Document;break;case B.DocumentType:a=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case B.Element:{let o=e.tagName.toLowerCase();o=ql[o]||o,s&&"isSVG"in s&&s?.isSVG?a=document.createElementNS(hs.svg,o):a=document.createElement(e.tagName);break}case B.Text:a=document.createTextNode(e.data);break;case B.Comment:a=document.createComment(e.data);break;case B.CDATA:a=document.createCDATASection(e.data);break}s&&t.add(a,{...s});try{be?.add(a)}catch{}return a}function Hs(e,t){return e.nodeType!==t.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName}function Fe(e,t,r,i){let s=r.getId(e),a=i.getId(t);return s===-1||s!==a?!1:Hs(e,t)}var je=class e extends as{constructor(t){super(),D(this,"UNSERIALIZED_STARTING_ID",-2),D(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),D(this,"mirror",Kl()),D(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,i){return new e}createDocumentType(t,r,i){let s=new Hl(t,r,i);return s.ownerDocument=this,s}createElement(t){let r=t.toUpperCase(),i;switch(r){case"AUDIO":case"VIDEO":i=new fs(r);break;case"IFRAME":i=new gs(r,this.mirror);break;case"CANVAS":i=new ps(r);break;case"STYLE":i=new ms(r);break;case"DIALOG":i=new ds(r);break;default:i=new Ge(r);break}return i.ownerDocument=this,i}createComment(t){let r=new Xl(t);return r.ownerDocument=this,r}createCDATASection(t){let r=new Jl(t);return r.ownerDocument=this,r}createTextNode(t){let r=new Yl(t);return r.ownerDocument=this,r}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}},Hl=Rt,Ge=class extends Ve{constructor(){super(...arguments),D(this,"inputData",null),D(this,"scrollData",null)}},fs=class extends ls{},ds=class extends us{},ps=class extends Ge{constructor(){super(...arguments),D(this,"rr_dataURL",null),D(this,"canvasMutations",[])}getContext(){return null}},ms=class extends Ge{constructor(){super(...arguments),D(this,"rules",[])}},gs=class extends Ge{constructor(t,r){super(t),D(this,"contentDocument",new je),this.contentDocument.mirror=r}},Yl=Mt,Xl=Nt,Jl=Ot;function Ql(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function uo(e,t,r,i){let s;switch(e.nodeType){case ue.DOCUMENT_NODE:i&&i.nodeName==="IFRAME"?s=i.contentDocument:(s=t,s.compatMode=e.compatMode);break;case ue.DOCUMENT_TYPE_NODE:{let o=e;s=t.createDocumentType(o.name,o.publicId,o.systemId);break}case ue.ELEMENT_NODE:{let o=e,l=Ql(o);s=t.createElement(l);let u=s;for(let{name:h,value:n}of Array.from(o.attributes))u.attributes[h]=n;o.scrollLeft&&(u.scrollLeft=o.scrollLeft),o.scrollTop&&(u.scrollTop=o.scrollTop);break}case ue.TEXT_NODE:s=t.createTextNode(e.textContent||"");break;case ue.CDATA_SECTION_NODE:s=t.createCDATASection(e.data);break;case ue.COMMENT_NODE:s=t.createComment(e.textContent||"");break;case ue.DOCUMENT_FRAGMENT_NODE:s=i.attachShadow({mode:"open"});break;default:return null}let a=r.getMeta(e);return t instanceof je&&(a||(a=co(s,t.unserializedId),r.add(e,a)),t.mirror.add(s,{...a})),s}function Zl(e,t=xl(),r=new je){function i(s,a){let o=uo(s,r,t,a);if(o!==null)if(a?.nodeName!=="IFRAME"&&s.nodeType!==ue.DOCUMENT_FRAGMENT_NODE&&(a?.appendChild(o),o.parentNode=a,o.parentElement=a),s.nodeName==="IFRAME"){let l=s.contentDocument;l&&i(l,o)}else(s.nodeType===ue.DOCUMENT_NODE||s.nodeType===ue.ELEMENT_NODE||s.nodeType===ue.DOCUMENT_FRAGMENT_NODE)&&(s.nodeType===ue.ELEMENT_NODE&&s.shadowRoot&&i(s.shadowRoot,o),s.childNodes.forEach(l=>i(l,o)))}return i(e,null),r}function Kl(){return new ys}var ys=class{constructor(){D(this,"idNodeMap",new Map),D(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){let i=this.getNode(t);if(i){let s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function co(e,t){switch(e.RRNodeType){case B.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case B.DocumentType:{let r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId}}case B.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case B.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case B.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case B.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}var dn={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},pn={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},pt={},ho={},eu=()=>!!globalThis.Zone;function Ys(e){if(pt[e])return pt[e];let t=globalThis[e],r=t.prototype,i=e in dn?dn[e]:void 0,s=!!(i&&i.every(l=>{var u,h;return!!((h=(u=Object.getOwnPropertyDescriptor(r,l))==null?void 0:u.get)!=null&&h.toString().includes("[native code]"))})),a=e in pn?pn[e]:void 0,o=!!(a&&a.every(l=>{var u;return typeof r[l]=="function"&&((u=r[l])==null?void 0:u.toString().includes("[native code]"))}));if(s&&o&&!eu())return pt[e]=t.prototype,t.prototype;try{let l=document.createElement("iframe");l.style.display="none",document.body.appendChild(l);let u=l.contentWindow;if(!u)return t.prototype;let h=u[e].prototype;if(!h)return l.remove(),r;let n=navigator.userAgent;return n.includes("Safari")&&!n.includes("Chrome")?(l.classList.add("rr-block"),l.setAttribute("__rrwebUntaintedMutationObserver",""),ho[e]=()=>l.remove()):l.remove(),pt[e]=h}catch{return r}}var Kr={};function he(e,t,r){var i,s;let a=(i=Kr[e])==null?void 0:i[r];if(a)return a.call(t);let o=Ys(e),l=(s=Object.getOwnPropertyDescriptor(o,r))==null?void 0:s.get;return l?((Kr[e]||(Kr[e]={}))[r]=l,l.call(t)):t[r]}var es={};function fo(e,t,r){let i=`${e}.${String(r)}`;if(es[i])return es[i].bind(t);let a=Ys(e)[r];return typeof a!="function"?t[r]:(es[i]=a,a.bind(t))}function tu(e){return he("Node",e,"ownerDocument")}function ru(e){return he("Node",e,"childNodes")}function su(e){return he("Node",e,"parentNode")}function iu(e){return he("Node",e,"parentElement")}function nu(e){return he("Node",e,"textContent")}function ou(e){return he("Node",e,"firstChild")}function au(e){return he("Node",e,"lastChild")}function lu(e){return he("Node",e,"nextSibling")}function uu(e){return he("Node",e,"previousSibling")}function cu(e,t){return fo("Node",e,"contains")(t)}function hu(e){return fo("Node",e,"getRootNode")()}function fu(e){return!e||!("host"in e)?null:he("ShadowRoot",e,"host")}function du(e){return e.styleSheets}function pu(e){return!e||!("shadowRoot"in e)?null:he("Element",e,"shadowRoot")}function mu(e,t){return he("Element",e,"querySelector")(t)}function gu(e,t){return he("Element",e,"querySelectorAll")(t)}function po(){return[Ys("MutationObserver").constructor,ho.MutationObserver??(()=>{})]}var st=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(st=()=>new Date().getTime());function ke(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],s=r(i);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=s,()=>{e[t]=i}}catch{return()=>{}}}var F={ownerDocument:tu,childNodes:ru,parentNode:su,parentElement:iu,textContent:nu,firstChild:ou,lastChild:au,nextSibling:lu,previousSibling:uu,contains:cu,getRootNode:hu,host:fu,styleSheets:du,shadowRoot:pu,querySelector:mu,querySelectorAll:gu,nowTimestamp:st,mutationObserverCtor:po,patch:ke};function ne(e,t,r=document){let i={capture:!0,passive:!0};return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}var Ue=`Please stop import mirror directly. Instead of that,\r
53
+ now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
54
+ or you can use record.mirror to access the mirror instance during recording.`,mn={map:{},getId(){return console.error(Ue),-1},getNode(){return console.error(Ue),null},removeNodeFromMap(){console.error(Ue)},has(){return console.error(Ue),!1},reset(){console.error(Ue)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(mn=new Proxy(mn,{get(e,t,r){return t==="map"&&console.error(Ue),Reflect.get(e,t,r)}}));function it(e,t,r={}){let i=null,s=0;return function(...a){let o=Date.now();!s&&r.leading===!1&&(s=o);let l=t-(o-s),u=this;l<=0||l>t?(i&&(clearTimeout(i),i=null),s=o,e.apply(u,a)):!i&&r.trailing!==!1&&(i=setTimeout(()=>{s=r.leading===!1?0:Date.now(),i=null,e.apply(u,a)},l))}}function Yt(e,t,r,i,s=window){let a=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,i?r:{set(o){setTimeout(()=>{r.set.call(this,o)},0),a&&a.set&&a.set.call(this,o)}}),()=>Yt(e,t,a||{},!0)}function mo(e){var t,r,i,s;let a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:a.documentElement.scrollLeft||a?.body&&((t=F.parentElement(a.body))==null?void 0:t.scrollLeft)||((r=a?.body)==null?void 0:r.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:a?.documentElement.scrollTop||a?.body&&((i=F.parentElement(a.body))==null?void 0:i.scrollTop)||((s=a?.body)==null?void 0:s.scrollTop)||0}}function go(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function yo(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function wo(e){return e?e.nodeType===e.ELEMENT_NODE?e:F.parentElement(e):null}function oe(e,t,r,i){if(!e)return!1;let s=wo(e);if(!s)return!1;try{if(typeof t=="string"){if(s.classList.contains(t)||i&&s.closest("."+t)!==null)return!0}else if(xt(s,t,i))return!0}catch{}return!!(r&&(s.matches(r)||i&&s.closest(r)!==null))}function yu(e,t){return t.getId(e)!==-1}function ts(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===Et}function bo(e,t){if(Qe(e))return!1;let r=t.getId(e);if(!t.has(r))return!0;let i=F.parentNode(e);return i&&i.nodeType===e.DOCUMENT_NODE?!1:i?bo(i,t):!0}function ws(e){return!!e.changedTouches}function vo(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function wu(e){let t={},r=(s,a)=>{let o={value:s,parent:a,children:[]};return t[s.node.id]=o,o},i=[];for(let s of e){let{nextId:a,parentId:o}=s;if(a&&a in t){let l=t[a];if(l.parent){let u=l.parent.children.indexOf(l);l.parent.children.splice(u,0,r(s,l.parent))}else{let u=i.indexOf(l);i.splice(u,0,r(s,null))}continue}if(o in t){let l=t[o];l.children.push(r(s,l));continue}i.push(r(s,null))}return i}function So(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)So(e.children[r],t)}function et(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Co(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Eo(e,t){var r,i;let s=(i=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:i.frameElement;if(!s||s===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};let a=s.getBoundingClientRect(),o=Eo(s,t),l=a.height/s.clientHeight;return{x:a.x*o.relativeScale+o.x,y:a.y*o.relativeScale+o.y,relativeScale:l,absoluteScale:o.absoluteScale*l}}function De(e){return e?e instanceof ye&&"shadowRoot"in e?!!e.shadowRoot:!!F.shadowRoot(e):!1}function Xe(e,t){let r=e?.[t[0]];return r?t.length===1?r:Xe(r.cssRules,t.slice(1)):null}function gn(e){let t=[...e],r=t.pop();return{positions:t,index:r}}function bu(e){let t=new Set,r=[];for(let i=e.length;i--;){let s=e[i];t.has(s.id)||(r.push(s),t.add(s.id))}return r}var At=class{constructor(){M(this,"id",1),M(this,"styleIDMap",new WeakMap),M(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let i;return r===void 0?i=this.id++:i=r,this.styleIDMap.set(t,i),this.idStyleMap.set(i,t),i}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function xo(e){var t;let r=null;return"getRootNode"in e&&((t=F.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&F.host(F.getRootNode(e))&&(r=F.host(F.getRootNode(e))),r}function vu(e){let t=e,r;for(;r=xo(t);)t=r;return t}function Su(e){let t=F.ownerDocument(e);if(!t)return!1;let r=vu(e);return F.contains(t,r)}function Ro(e){let t=F.ownerDocument(e);return t?F.contains(t,e)||Su(e):!1}var _=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(_||{}),A=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(A||{}),q=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(q||{}),ve=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ve||{}),Ee=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Ee||{}),Ne=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Ne||{}),z=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(z||{}),Se=(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))(Se||{}),yn=(e,t)=>`${e}@${t}`,bs=class{constructor(){M(this,"frozen",!1),M(this,"locked",!1),M(this,"texts",[]),M(this,"attributes",[]),M(this,"attributeMap",new WeakMap),M(this,"removes",[]),M(this,"mapRemoves",[]),M(this,"movedMap",{}),M(this,"addedSet",new Set),M(this,"movedSet",new Set),M(this,"droppedSet",new Set),M(this,"removesSubTreeCache",new Set),M(this,"mutationCb"),M(this,"blockClass"),M(this,"blockSelector"),M(this,"maskTextClass"),M(this,"maskTextSelector"),M(this,"inlineStylesheet"),M(this,"maskInputOptions"),M(this,"maskTextFn"),M(this,"maskInputFn"),M(this,"keepIframeSrcFn"),M(this,"recordCanvas"),M(this,"inlineImages"),M(this,"slimDOMOptions"),M(this,"dataURLOptions"),M(this,"doc"),M(this,"mirror"),M(this,"iframeManager"),M(this,"stylesheetManager"),M(this,"shadowDomManager"),M(this,"canvasManager"),M(this,"processedNodeManager"),M(this,"unattachedDoc"),M(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),M(this,"emit",()=>{if(this.frozen||this.locked)return;let t=[],r=new Set;for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let c of this.movedSet){let f=F.parentNode(c);this.removesSubTreeCache.has(f)&&!this.movedSet.has(f)||this.addedSet.add(c)}let i=null,s=null,a=-1,o=null,l=!1,u=new Set,h=this.addedSet.values(),n=h.next();for(;this.addedSet.size;){if(i!==null&&this.addedSet.has(F.previousSibling(i)))o=i,i=F.previousSibling(i);else{for(this.addedSet.has(n.value)||(n=h.next()),i=n.value;;){if(s=F.parentNode(i),this.addedSet.has(s)){i=s;continue}break}if(u.has(s))s=null;else if(s){if(Ro(s)?(l=wn(this.droppedSet,s)||this.removesSubTreeCache.has(s),l&&wn(this.movedSet,i)&&(l=!1)):l=!0,this.addedSet.has(F.lastChild(s)))i=F.lastChild(s),o=null;else for(;;){if(o=F.nextSibling(i),this.addedSet.has(o)){i=o;continue}break}if(a=Qe(s)?this.mirror.getId(xo(i)):this.mirror.getId(s),a===-1&&s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let p=F.host(s);a=this.mirror.getId(p)}}}if(this.addedSet.delete(i),!s||a===-1){u.add(i);continue}else if(l){this.droppedSet.add(i);continue}let c=!1;if(i.nodeType===Node.TEXT_NODE){let p=s.tagName;if(p==="TEXTAREA")continue;p==="STYLE"&&r.has(a)&&(c=!0)}let f=o?this.mirror.getId(o):null;for(;f===Et;)o=o&&F.nextSibling(o),f=o&&this.mirror.getId(o);if(f===-1){console.warn("Couldn't record new node. Couldn't find mirror id for nextSibling:",o),i=null;continue}let m=We(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:p=>{et(p,this.mirror)&&this.iframeManager.addIframe(p),Co(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),De(i)&&this.shadowDomManager.addShadowRoot(F.shadowRoot(i),this.doc)},onIframeLoad:(p,g)=>{this.iframeManager.attachIframe(p,g),this.shadowDomManager.observeAttachShadow(p)},onStylesheetLoad:(p,g)=>{this.stylesheetManager.attachLinkElement(p,g)},cssCaptured:c});m&&(t.push({parentId:a,nextId:f,node:m}),r.add(m.id))}let d={texts:this.texts.map(c=>{let f=c.node,m=F.parentNode(f);return m&&m.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(m),{id:this.mirror.getId(f),value:c.value}}).filter(c=>!r.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{let{attributes:f}=c;if(typeof f.style=="string"){let m=JSON.stringify(c.styleDiff),p=JSON.stringify(c._unchangedStyles);m.length<f.style.length&&(m+p).split("var(").length===f.style.split("var(").length&&(f.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:f}}).filter(c=>!r.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!d.texts.length&&!d.attributes.length&&!d.removes.length&&!d.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(d))}),M(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));let i=Array.from(F.childNodes(t),s=>F.textContent(s)||"").join("");r.attributes.value=vt({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:St(t),value:i,maskInputFn:this.maskInputFn})}),M(this,"processMutation",t=>{if(!ts(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{let r=F.textContent(t.target);!oe(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:qn(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,wo(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,i=Ce(r.tagName),s=t.attributeName,a=t.target.getAttribute(s);if(s==="value"){let l=St(r);a=vt({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:l,value:a,maskInputFn:this.maskInputFn})}if(oe(t.target,this.blockClass,this.blockSelector,!1)||a===t.oldValue)return;let o=this.attributeMap.get(t.target);if(i==="iframe"&&s==="src"&&!this.keepIframeSrcFn(a))if(!r.contentDocument)s="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),s==="type"&&i==="input"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!zn(i,s))if(o.attributes[s]=Wn(this.doc,i,Ce(s),a),s==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let l=this.unattachedDoc.createElement("span");t.oldValue&&l.setAttribute("style",t.oldValue);for(let u of Array.from(r.style)){let h=r.style.getPropertyValue(u),n=r.style.getPropertyPriority(u);h!==l.style.getPropertyValue(u)||n!==l.style.getPropertyPriority(u)?n===""?o.styleDiff[u]=h:o.styleDiff[u]=[h,n]:o._unchangedStyles[u]=[h,n]}for(let u of Array.from(l.style))r.style.getPropertyValue(u)===""&&(o.styleDiff[u]=!1)}else s==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?o.attributes.rr_open_mode="modal":o.attributes.rr_open_mode="non-modal");break}case"childList":{if(oe(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{let i=this.mirror.getId(r),s=Qe(t.target)?this.mirror.getId(F.host(t.target)):this.mirror.getId(t.target);oe(t.target,this.blockClass,this.blockSelector,!1)||ts(r,this.mirror,this.slimDOMOptions)||!yu(r,this.mirror)||(this.addedSet.has(r)?(vs(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&i===-1||bo(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[yn(i,s)]?vs(this.movedSet,r):(this.removes.push({parentId:s,id:i,isShadow:Qe(t.target)&&Ze(t.target)?!0:void 0}),Cu(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),M(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(ts(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let i=null;r&&this.mirror.hasNode(r)&&(i=this.mirror.getId(r)),i&&i!==-1&&(this.movedMap[yn(this.mirror.getId(t),i)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);oe(t,this.blockClass,this.blockSelector,!1)||(F.childNodes(t).forEach(i=>this.genAdds(i)),De(t)&&F.childNodes(F.shadowRoot(t)).forEach(i=>{this.processedNodeManager.add(i,this),this.genAdds(i,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function vs(e,t){e.delete(t),F.childNodes(t).forEach(r=>vs(e,r))}function Cu(e,t){let r=[e];for(;r.length;){let i=r.pop();t.has(i)||(t.add(i),F.childNodes(i).forEach(s=>r.push(s)))}}function wn(e,t){return e.size===0?!1:Mo(e,t)}function Mo(e,t){if(e.has(t))return!0;let r=F.parentNode(t);return r?Mo(e,r):!1}var tt;function Eu(e){tt=e}function xu(){tt=void 0}var $=e=>tt?(...r)=>{try{return e(...r)}catch(i){if(tt&&tt(i)===!0)return;throw i}}:e,Ae=[];function at(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function No(e,t){let r=new bs;Ae.push(r),r.init(e);let[i,s]=po(),a=new i($(r.processMutations.bind(r)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[a,s]}function Ru({mousemoveCb:e,sampling:t,doc:r,mirror:i}){if(t.mousemove===!1)return()=>{};let s=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,o=[],l,u=it($(d=>{let c=Date.now()-l;e(o.map(f=>(f.timeOffset-=c,f)),d),o=[],l=null}),a),h=$(it($(d=>{let c=at(d),{clientX:f,clientY:m}=ws(d)?d.changedTouches[0]:d;l||(l=st()),o.push({x:f,y:m,id:i.getId(c),timeOffset:st()-l}),u(typeof DragEvent<"u"&&d instanceof DragEvent?A.Drag:d instanceof MouseEvent?A.MouseMove:A.TouchMove)}),s,{trailing:!1})),n=[ne("mousemove",h,r),ne("touchmove",h,r),ne("drag",h,r)];return $(()=>{n.forEach(d=>d())})}function Mu({mouseInteractionCb:e,doc:t,mirror:r,blockClass:i,blockSelector:s,sampling:a}){if(a.mouseInteraction===!1)return()=>{};let o=a.mouseInteraction===!0||a.mouseInteraction===void 0?{}:a.mouseInteraction,l=[],u=null,h=n=>d=>{let c=at(d);if(oe(c,i,s,!0))return;let f=null,m=n;if("pointerType"in d){switch(d.pointerType){case"mouse":f=ve.Mouse;break;case"touch":f=ve.Touch;break;case"pen":f=ve.Pen;break}f===ve.Touch?q[n]===q.MouseDown?m="TouchStart":q[n]===q.MouseUp&&(m="TouchEnd"):ve.Pen}else ws(d)&&(f=ve.Touch);f!==null?(u=f,(m.startsWith("Touch")&&f===ve.Touch||m.startsWith("Mouse")&&f===ve.Mouse)&&(f=null)):q[n]===q.Click&&(f=u,u=null);let p=ws(d)?d.changedTouches[0]:d;if(!p)return;let g=r.getId(c),{clientX:b,clientY:y}=p;$(e)({type:q[m],id:g,x:b,y,...f!==null&&{pointerType:f}})};return Object.keys(q).filter(n=>Number.isNaN(Number(n))&&!n.endsWith("_Departed")&&o[n]!==!1).forEach(n=>{let d=Ce(n),c=h(n);if(window.PointerEvent)switch(q[n]){case q.MouseDown:case q.MouseUp:d=d.replace("mouse","pointer");break;case q.TouchStart:case q.TouchEnd:return}l.push(ne(d,c,t))}),$(()=>{l.forEach(n=>n())})}function Oo({scrollCb:e,doc:t,mirror:r,blockClass:i,blockSelector:s,sampling:a}){let o=$(it($(l=>{let u=at(l);if(!u||oe(u,i,s,!0))return;let h=r.getId(u);if(u===t&&t.defaultView){let n=mo(t.defaultView);e({id:h,x:n.left,y:n.top})}else e({id:h,x:u.scrollLeft,y:u.scrollTop})}),a.scroll||100));return ne("scroll",o,t)}function Nu({viewportResizeCb:e},{win:t}){let r=-1,i=-1,s=$(it($(()=>{let a=go(),o=yo();(r!==a||i!==o)&&(e({width:Number(o),height:Number(a)}),r=a,i=o)}),200));return ne("resize",s,t)}var Ou=["INPUT","TEXTAREA","SELECT"],bn=new WeakMap;function Iu({inputCb:e,doc:t,mirror:r,blockClass:i,blockSelector:s,ignoreClass:a,ignoreSelector:o,maskInputOptions:l,maskInputFn:u,sampling:h,userTriggeredOnInput:n}){function d(y){let w=at(y),C=y.isTrusted,v=w&&w.tagName;if(w&&v==="OPTION"&&(w=F.parentElement(w)),!w||!v||Ou.indexOf(v)<0||oe(w,i,s,!0)||w.classList.contains(a)||o&&w.matches(o))return;let S=w.value,E=!1,R=St(w)||"";R==="radio"||R==="checkbox"?E=w.checked:(l[v.toLowerCase()]||l[R])&&(S=vt({element:w,maskInputOptions:l,tagName:v,type:R,value:S,maskInputFn:u})),c(w,n?{text:S,isChecked:E,userTriggered:C}:{text:S,isChecked:E});let I=w.name;R==="radio"&&I&&E&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach(N=>{if(N!==w){let L=N.value;c(N,n?{text:L,isChecked:!E,userTriggered:!1}:{text:L,isChecked:!E})}})}function c(y,w){let C=bn.get(y);if(!C||C.text!==w.text||C.isChecked!==w.isChecked){bn.set(y,w);let v=r.getId(y);$(e)({...w,id:v})}}let m=(h.input==="last"?["change"]:["input","change"]).map(y=>ne(y,$(d),t)),p=t.defaultView;if(!p)return()=>{m.forEach(y=>y())};let g=p.Object.getOwnPropertyDescriptor(p.HTMLInputElement.prototype,"value"),b=[[p.HTMLInputElement.prototype,"value"],[p.HTMLInputElement.prototype,"checked"],[p.HTMLSelectElement.prototype,"value"],[p.HTMLTextAreaElement.prototype,"value"],[p.HTMLSelectElement.prototype,"selectedIndex"],[p.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...b.map(y=>Yt(y[0],y[1],{set(){$(d)({target:this,isTrusted:!1})}},!1,p))),$(()=>{m.forEach(y=>y())})}function Tt(e){let t=[];function r(i,s){if(mt("CSSGroupingRule")&&i.parentRule instanceof CSSGroupingRule||mt("CSSMediaRule")&&i.parentRule instanceof CSSMediaRule||mt("CSSSupportsRule")&&i.parentRule instanceof CSSSupportsRule||mt("CSSConditionRule")&&i.parentRule instanceof CSSConditionRule){let o=Array.from(i.parentRule.cssRules).indexOf(i);return s.unshift(o),r(i.parentRule,s)}else if(i.parentStyleSheet){let o=Array.from(i.parentStyleSheet.cssRules).indexOf(i);s.unshift(o)}return s}return r(e,t)}function Me(e,t,r){let i,s;return e?(e.ownerNode?i=t.getId(e.ownerNode):s=r.getId(e),{styleId:s,id:i}):{}}function Du({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};let s=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:$((n,d,c)=>{let[f,m]=c,{id:p,styleId:g}=Me(d,t,r.styleMirror);return(p&&p!==-1||g&&g!==-1)&&e({id:p,styleId:g,adds:[{rule:f,index:m}]}),n.apply(d,c)})}),i.CSSStyleSheet.prototype.addRule=function(n,d,c=this.cssRules.length){let f=`${n} { ${d} }`;return i.CSSStyleSheet.prototype.insertRule.apply(this,[f,c])};let a=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:$((n,d,c)=>{let[f]=c,{id:m,styleId:p}=Me(d,t,r.styleMirror);return(m&&m!==-1||p&&p!==-1)&&e({id:m,styleId:p,removes:[{index:f}]}),n.apply(d,c)})}),i.CSSStyleSheet.prototype.removeRule=function(n){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[n])};let o;i.CSSStyleSheet.prototype.replace&&(o=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:$((n,d,c)=>{let[f]=c,{id:m,styleId:p}=Me(d,t,r.styleMirror);return(m&&m!==-1||p&&p!==-1)&&e({id:m,styleId:p,replace:f}),n.apply(d,c)})}));let l;i.CSSStyleSheet.prototype.replaceSync&&(l=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:$((n,d,c)=>{let[f]=c,{id:m,styleId:p}=Me(d,t,r.styleMirror);return(m&&m!==-1||p&&p!==-1)&&e({id:m,styleId:p,replaceSync:f}),n.apply(d,c)})}));let u={};gt("CSSGroupingRule")?u.CSSGroupingRule=i.CSSGroupingRule:(gt("CSSMediaRule")&&(u.CSSMediaRule=i.CSSMediaRule),gt("CSSConditionRule")&&(u.CSSConditionRule=i.CSSConditionRule),gt("CSSSupportsRule")&&(u.CSSSupportsRule=i.CSSSupportsRule));let h={};return Object.entries(u).forEach(([n,d])=>{h[n]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(h[n].insertRule,{apply:$((c,f,m)=>{let[p,g]=m,{id:b,styleId:y}=Me(f.parentStyleSheet,t,r.styleMirror);return(b&&b!==-1||y&&y!==-1)&&e({id:b,styleId:y,adds:[{rule:p,index:[...Tt(f),g||0]}]}),c.apply(f,m)})}),d.prototype.deleteRule=new Proxy(h[n].deleteRule,{apply:$((c,f,m)=>{let[p]=m,{id:g,styleId:b}=Me(f.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||b&&b!==-1)&&e({id:g,styleId:b,removes:[{index:[...Tt(f),p]}]}),c.apply(f,m)})})}),$(()=>{i.CSSStyleSheet.prototype.insertRule=s,i.CSSStyleSheet.prototype.deleteRule=a,o&&(i.CSSStyleSheet.prototype.replace=o),l&&(i.CSSStyleSheet.prototype.replaceSync=l),Object.entries(u).forEach(([n,d])=>{d.prototype.insertRule=h[n].insertRule,d.prototype.deleteRule=h[n].deleteRule})})}function Io({mirror:e,stylesheetManager:t},r){var i,s,a;let o=null;r.nodeName==="#document"?o=e.getId(r):o=e.getId(F.host(r));let l=r.nodeName==="#document"?(i=r.defaultView)==null?void 0:i.Document:(a=(s=r.ownerDocument)==null?void 0:s.defaultView)==null?void 0:a.ShadowRoot,u=l?.prototype?Object.getOwnPropertyDescriptor(l?.prototype,"adoptedStyleSheets"):void 0;return o===null||o===-1||!l||!u?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get(){var h;return(h=u.get)==null?void 0:h.call(this)},set(h){var n;let d=(n=u.set)==null?void 0:n.call(this,h);if(o!==null&&o!==-1)try{t.adoptStyleSheets(h,o)}catch{}return d}}),$(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})}))}function Au({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:i},{win:s}){let a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:$((l,u,h)=>{var n;let[d,c,f]=h;if(r.has(d))return a.apply(u,[d,c,f]);let{id:m,styleId:p}=Me((n=u.parentRule)==null?void 0:n.parentStyleSheet,t,i.styleMirror);return(m&&m!==-1||p&&p!==-1)&&e({id:m,styleId:p,set:{property:d,value:c,priority:f},index:Tt(u.parentRule)}),l.apply(u,h)})});let o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:$((l,u,h)=>{var n;let[d]=h;if(r.has(d))return o.apply(u,[d]);let{id:c,styleId:f}=Me((n=u.parentRule)==null?void 0:n.parentStyleSheet,t,i.styleMirror);return(c&&c!==-1||f&&f!==-1)&&e({id:c,styleId:f,remove:{property:d},index:Tt(u.parentRule)}),l.apply(u,h)})}),$(()=>{s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=o})}function Tu({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:i,sampling:s,doc:a}){let o=$(u=>it($(h=>{let n=at(h);if(!n||oe(n,t,r,!0))return;let{currentTime:d,volume:c,muted:f,playbackRate:m,loop:p}=n;e({type:u,id:i.getId(n),currentTime:d,volume:c,muted:f,playbackRate:m,loop:p})}),s.media||500)),l=[ne("play",o(Ne.Play),a),ne("pause",o(Ne.Pause),a),ne("seeked",o(Ne.Seeked),a),ne("volumechange",o(Ne.VolumeChange),a),ne("ratechange",o(Ne.RateChange),a)];return $(()=>{l.forEach(u=>u())})}function _u({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let i=[],s=new WeakMap,a=r.FontFace;r.FontFace=function(u,h,n){let d=new a(u,h,n);return s.set(d,{family:u,buffer:typeof h!="string",descriptors:n,fontSource:typeof h=="string"?h:JSON.stringify(Array.from(new Uint8Array(h)))}),d};let o=ke(t.fonts,"add",function(l){return function(u){return setTimeout($(()=>{let h=s.get(u);h&&(e(h),s.delete(u))}),0),l.apply(this,[u])}});return i.push(()=>{r.FontFace=a}),i.push(o),$(()=>{i.forEach(l=>l())})}function ku(e){let{doc:t,mirror:r,blockClass:i,blockSelector:s,selectionCb:a}=e,o=!0,l=$(()=>{let u=t.getSelection();if(!u||o&&u?.isCollapsed)return;o=u.isCollapsed||!1;let h=[],n=u.rangeCount||0;for(let d=0;d<n;d++){let c=u.getRangeAt(d),{startContainer:f,startOffset:m,endContainer:p,endOffset:g}=c;oe(f,i,s,!0)||oe(p,i,s,!0)||h.push({start:r.getId(f),startOffset:m,end:r.getId(p),endOffset:g})}a({ranges:h})});return l(),ne("selectionchange",l)}function Pu({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:ke(r.customElements,"define",function(s){return function(a,o,l){try{t({define:{name:a}})}catch{console.warn(`Custom element callback failed for ${a}`)}return s.apply(this,[a,o,l])}})}function Lu(e,t){let{mutationCb:r,mousemoveCb:i,mouseInteractionCb:s,scrollCb:a,viewportResizeCb:o,inputCb:l,mediaInteractionCb:u,styleSheetRuleCb:h,styleDeclarationCb:n,canvasMutationCb:d,fontCb:c,selectionCb:f,customElementCb:m}=e;e.mutationCb=(...p)=>{t.mutation&&t.mutation(...p),r(...p)},e.mousemoveCb=(...p)=>{t.mousemove&&t.mousemove(...p),i(...p)},e.mouseInteractionCb=(...p)=>{t.mouseInteraction&&t.mouseInteraction(...p),s(...p)},e.scrollCb=(...p)=>{t.scroll&&t.scroll(...p),a(...p)},e.viewportResizeCb=(...p)=>{t.viewportResize&&t.viewportResize(...p),o(...p)},e.inputCb=(...p)=>{t.input&&t.input(...p),l(...p)},e.mediaInteractionCb=(...p)=>{t.mediaInteaction&&t.mediaInteaction(...p),u(...p)},e.styleSheetRuleCb=(...p)=>{t.styleSheetRule&&t.styleSheetRule(...p),h(...p)},e.styleDeclarationCb=(...p)=>{t.styleDeclaration&&t.styleDeclaration(...p),n(...p)},e.canvasMutationCb=(...p)=>{t.canvasMutation&&t.canvasMutation(...p),d(...p)},e.fontCb=(...p)=>{t.font&&t.font(...p),c(...p)},e.selectionCb=(...p)=>{t.selection&&t.selection(...p),f(...p)},e.customElementCb=(...p)=>{t.customElement&&t.customElement(...p),m(...p)}}function Fu(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};Lu(e,t);let i,s=()=>{};e.recordDOM&&([i,s]=No(e,e.doc));let a=Ru(e),o=Mu(e),l=Oo(e),u=Nu(e,{win:r}),h=Iu(e),n=Tu(e),d=()=>{},c=()=>{},f=()=>{},m=()=>{};e.recordDOM&&(d=Du(e,{win:r}),c=Io(e,e.doc),f=Au(e,{win:r}),e.collectFonts&&(m=_u(e)));let p=ku(e),g=Pu(e),b=[];for(let y of e.plugins)b.push(y.observer(y.callback,r,y.options));return $(()=>{Ae.forEach(y=>y.reset()),i?.disconnect(),s(),a(),o(),l(),u(),h(),n(),d(),c(),f(),m(),p(),g(),b.forEach(y=>y())})}function mt(e){return typeof window[e]<"u"}function gt(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var _t=class{constructor(t){M(this,"iframeIdToRemoteIdMap",new WeakMap),M(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,i,s){let a=i||this.getIdToRemoteIdMap(t),o=s||this.getRemoteIdToIdMap(t),l=a.get(r);return l||(l=this.generateIdFn(),a.set(r,l),o.set(l,r)),l}getIds(t,r){let i=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return r.map(a=>this.getId(t,a,i,s))}getRemoteId(t,r,i){let s=i||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let a=s.get(r);return a||-1}getRemoteIds(t,r){let i=this.getRemoteIdToIdMap(t);return r.map(s=>this.getRemoteId(t,s,i))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}},Ss=class{constructor(t){M(this,"iframes",new WeakMap),M(this,"crossOriginIframeMap",new WeakMap),M(this,"crossOriginIframeMirror",new _t($n)),M(this,"crossOriginIframeStyleMirror"),M(this,"crossOriginIframeRootIdMap",new WeakMap),M(this,"mirror"),M(this,"mutationCb"),M(this,"wrappedEmit"),M(this,"loadListener"),M(this,"stylesheetManager"),M(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new _t(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var i,s;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((i=t.contentWindow)==null||i.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){let r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;let s=this.crossOriginIframeMap.get(t.source);if(!s)return;let a=this.transformCrossOriginEvent(s,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}transformCrossOriginEvent(t,r){var i;switch(r.type){case _.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);let s=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,s),this.patchRootIdOnNode(r.data.node,s),{timestamp:r.timestamp,type:_.IncrementalSnapshot,data:{source:A.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case _.Meta:case _.Load:case _.DomContentLoaded:return!1;case _.Plugin:return r;case _.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case _.IncrementalSnapshot:switch(r.data.source){case A.Mutation:return r.data.adds.forEach(s=>{this.replaceIds(s,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(s.node,t);let a=this.crossOriginIframeRootIdMap.get(t);a&&this.patchRootIdOnNode(s.node,a)}),r.data.removes.forEach(s=>{this.replaceIds(s,t,["parentId","id"])}),r.data.attributes.forEach(s=>{this.replaceIds(s,t,["id"])}),r.data.texts.forEach(s=>{this.replaceIds(s,t,["id"])}),r;case A.Drag:case A.TouchMove:case A.MouseMove:return r.data.positions.forEach(s=>{this.replaceIds(s,t,["id"])}),r;case A.ViewportResize:return!1;case A.MediaInteraction:case A.MouseInteraction:case A.Scroll:case A.CanvasMutation:case A.Input:return this.replaceIds(r.data,t,["id"]),r;case A.StyleSheetRule:case A.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case A.Font:return r;case A.Selection:return r.data.ranges.forEach(s=>{this.replaceIds(s,t,["start","end"])}),r;case A.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(i=r.data.styles)==null||i.forEach(s=>{this.replaceStyleIds(s,t,["styleId"])}),r}}return!1}replace(t,r,i,s){for(let a of s)!Array.isArray(r[a])&&typeof r[a]!="number"||(Array.isArray(r[a])?r[a]=t.getIds(i,r[a]):r[a]=t.getId(i,r[a]));return r}replaceIds(t,r,i){return this.replace(this.crossOriginIframeMirror,t,r,i)}replaceStyleIds(t,r,i){return this.replace(this.crossOriginIframeStyleMirror,t,r,i)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(i=>{this.replaceIdOnNode(i,r)})}patchRootIdOnNode(t,r){t.type!==Se.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(i=>{this.patchRootIdOnNode(i,r)})}},Cs=class{constructor(t){M(this,"shadowDoms",new WeakSet),M(this,"mutationCb"),M(this,"scrollCb"),M(this,"bypassOptions"),M(this,"mirror"),M(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!Ze(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let[i]=No({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>i.disconnect()),this.restoreHandlers.push(Oo({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(F.host(t))),this.restoreHandlers.push(Io({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){let i=this;this.restoreHandlers.push(ke(t.prototype,"attachShadow",function(s){return function(a){let o=s.call(this,a),l=F.shadowRoot(this);return l&&Ro(this)&&i.addShadowRoot(l,r),o}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},ze="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Je=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(Ye=0;Ye<ze.length;Ye++)Je[ze.charCodeAt(Ye)]=Ye;var Ye,Uu=function(e){var t=new Uint8Array(e),r,i=t.length,s="";for(r=0;r<i;r+=3)s+=ze[t[r]>>2],s+=ze[(t[r]&3)<<4|t[r+1]>>4],s+=ze[(t[r+1]&15)<<2|t[r+2]>>6],s+=ze[t[r+2]&63];return i%3===2?s=s.substring(0,s.length-1)+"=":i%3===1&&(s=s.substring(0,s.length-2)+"=="),s},Bu=function(e){var t=e.length*.75,r=e.length,i,s=0,a,o,l,u;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var h=new ArrayBuffer(t),n=new Uint8Array(h);for(i=0;i<r;i+=4)a=Je[e.charCodeAt(i)],o=Je[e.charCodeAt(i+1)],l=Je[e.charCodeAt(i+2)],u=Je[e.charCodeAt(i+3)],n[s++]=a<<2|o>>4,n[s++]=(o&15)<<4|l>>2,n[s++]=(l&3)<<6|u&63;return h},vn=new Map;function $u(e,t){let r=vn.get(e);return r||(r=new Map,vn.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var Do=(e,t,r)=>{if(!e||!(To(e,t)||typeof e=="object"))return;let i=e.constructor.name,s=$u(r,i),a=s.indexOf(e);return a===-1&&(a=s.length,s.push(e)),a};function wt(e,t,r){if(e instanceof Array)return e.map(i=>wt(i,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let i=e.constructor.name,s=Uu(e);return{rr_type:i,base64:s}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[wt(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let i=e.constructor.name,{src:s}=e;return{rr_type:i,src:s}}else if(e instanceof HTMLCanvasElement){let i="HTMLImageElement",s=e.toDataURL();return{rr_type:i,src:s}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[wt(e.data,t,r),e.width,e.height]};if(To(e,t)||typeof e=="object"){let i=e.constructor.name,s=Do(e,t,r);return{rr_type:i,index:s}}}}return e}var Ao=(e,t,r)=>e.map(i=>wt(i,t,r)),To=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(s=>typeof t[s]=="function").find(s=>e instanceof t[s]);function Wu(e,t,r,i){let s=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let o of a)try{if(typeof t.CanvasRenderingContext2D.prototype[o]!="function")continue;let l=ke(t.CanvasRenderingContext2D.prototype,o,function(u){return function(...h){return oe(this.canvas,r,i,!0)||setTimeout(()=>{let n=Ao(h,t,this);e(this.canvas,{type:Ee["2D"],property:o,args:n})},0),u.apply(this,h)}});s.push(l)}catch{let l=Yt(t.CanvasRenderingContext2D.prototype,o,{set(u){e(this.canvas,{type:Ee["2D"],property:o,args:[u],setter:!0})}});s.push(l)}return()=>{s.forEach(o=>o())}}function zu(e){return e==="experimental-webgl"?"webgl":e}function Sn(e,t,r,i){let s=[];try{let a=ke(e.HTMLCanvasElement.prototype,"getContext",function(o){return function(l,...u){if(!oe(this,t,r,!0)){let h=zu(l);if("__context"in this||(this.__context=h),i&&["webgl","webgl2"].includes(h))if(u[0]&&typeof u[0]=="object"){let n=u[0];n.preserveDrawingBuffer||(n.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return o.apply(this,[l,...u])}});s.push(a)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(a=>a())}}function Cn(e,t,r,i,s,a){let o=[],l=Object.getOwnPropertyNames(e);for(let u of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u))try{if(typeof e[u]!="function")continue;let h=ke(e,u,function(n){return function(...d){let c=n.apply(this,d);if(Do(c,a,this),"tagName"in this.canvas&&!oe(this.canvas,i,s,!0)){let f=Ao(d,a,this),m={type:t,property:u,args:f};r(this.canvas,m)}return c}});o.push(h)}catch{let h=Yt(e,u,{set(n){r(this.canvas,{type:t,property:u,args:[n],setter:!0})}});o.push(h)}return o}function qu(e,t,r,i){let s=[];return typeof t.WebGLRenderingContext<"u"&&s.push(...Cn(t.WebGLRenderingContext.prototype,Ee.WebGL,e,r,i,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...Cn(t.WebGL2RenderingContext.prototype,Ee.WebGL2,e,r,i,t)),()=>{s.forEach(a=>a())}}var _o=`(function() {
55
+ "use strict";
56
+ var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
57
+ var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
58
+ for (var i = 0; i < chars.length; i++) {
59
+ lookup[chars.charCodeAt(i)] = i;
60
+ }
61
+ var encode = function(arraybuffer) {
62
+ var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";
63
+ for (i2 = 0; i2 < len; i2 += 3) {
64
+ base64 += chars[bytes[i2] >> 2];
65
+ base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];
66
+ base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];
67
+ base64 += chars[bytes[i2 + 2] & 63];
68
+ }
69
+ if (len % 3 === 2) {
70
+ base64 = base64.substring(0, base64.length - 1) + "=";
71
+ } else if (len % 3 === 1) {
72
+ base64 = base64.substring(0, base64.length - 2) + "==";
73
+ }
74
+ return base64;
75
+ };
76
+ const lastBlobMap = /* @__PURE__ */ new Map();
77
+ const transparentBlobMap = /* @__PURE__ */ new Map();
78
+ async function getTransparentBlobFor(width, height, dataURLOptions) {
79
+ const id = \`\${width}-\${height}\`;
80
+ if ("OffscreenCanvas" in globalThis) {
81
+ if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);
82
+ const offscreen = new OffscreenCanvas(width, height);
83
+ offscreen.getContext("2d");
84
+ const blob = await offscreen.convertToBlob(dataURLOptions);
85
+ const arrayBuffer = await blob.arrayBuffer();
86
+ const base64 = encode(arrayBuffer);
87
+ transparentBlobMap.set(id, base64);
88
+ return base64;
89
+ } else {
90
+ return "";
91
+ }
92
+ }
93
+ const worker = self;
94
+ worker.onmessage = async function(e) {
95
+ if ("OffscreenCanvas" in globalThis) {
96
+ const { id, bitmap, width, height, dataURLOptions } = e.data;
97
+ const transparentBase64 = getTransparentBlobFor(
98
+ width,
99
+ height,
100
+ dataURLOptions
101
+ );
102
+ const offscreen = new OffscreenCanvas(width, height);
103
+ const ctx = offscreen.getContext("2d");
104
+ ctx.drawImage(bitmap, 0, 0);
105
+ bitmap.close();
106
+ const blob = await offscreen.convertToBlob(dataURLOptions);
107
+ const type = blob.type;
108
+ const arrayBuffer = await blob.arrayBuffer();
109
+ const base64 = encode(arrayBuffer);
110
+ if (!lastBlobMap.has(id) && await transparentBase64 === base64) {
111
+ lastBlobMap.set(id, base64);
112
+ return worker.postMessage({ id });
113
+ }
114
+ if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });
115
+ worker.postMessage({
116
+ id,
117
+ type,
118
+ base64,
119
+ width,
120
+ height
121
+ });
122
+ lastBlobMap.set(id, base64);
123
+ } else {
124
+ return worker.postMessage({ id: e.data.id });
125
+ }
126
+ };
127
+ })();
128
+ //# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
129
+ `,En=typeof self<"u"&&self.Blob&&new Blob([_o],{type:"text/javascript;charset=utf-8"});function Vu(e){let t;try{if(t=En&&(self.URL||self.webkitURL).createObjectURL(En),!t)throw"";let r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(_o),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var Es=class{constructor(t){M(this,"pendingCanvasMutations",new Map),M(this,"rafStamps",{latestId:0,invokeId:null}),M(this,"mirror"),M(this,"mutationCb"),M(this,"resetObservers"),M(this,"frozen",!1),M(this,"locked",!1),M(this,"processMutation",(u,h)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(u)||this.pendingCanvasMutations.set(u,[]),this.pendingCanvasMutations.get(u).push(h)});let{sampling:r="all",win:i,blockClass:s,blockSelector:a,recordCanvas:o,dataURLOptions:l}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,o&&r==="all"&&this.initCanvasMutationObserver(i,s,a),o&&typeof r=="number"&&this.initCanvasFPSObserver(r,i,s,a,{dataURLOptions:l})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,i,s,a){let o=Sn(r,i,s,!0),l=new Map,u=new Vu;u.onmessage=m=>{let{id:p}=m.data;if(l.set(p,!1),!("base64"in m.data))return;let{base64:g,type:b,width:y,height:w}=m.data;this.mutationCb({id:p,type:Ee["2D"],commands:[{property:"clearRect",args:[0,0,y,w]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:b}]},0,0]}]})};let h=1e3/t,n=0,d,c=()=>{let m=[];return r.document.querySelectorAll("canvas").forEach(p=>{oe(p,i,s,!0)||m.push(p)}),m},f=m=>{if(n&&m-n<h){d=requestAnimationFrame(f);return}n=m,c().forEach(async p=>{var g;let b=this.mirror.getId(p);if(l.get(b)||p.width===0||p.height===0)return;if(l.set(b,!0),["webgl","webgl2"].includes(p.__context)){let w=p.getContext(p.__context);((g=w?.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&w.clear(w.COLOR_BUFFER_BIT)}let y=await createImageBitmap(p);u.postMessage({id:b,bitmap:y,width:p.width,height:p.height,dataURLOptions:a.dataURLOptions},[y])}),d=requestAnimationFrame(f)};d=requestAnimationFrame(f),this.resetObservers=()=>{o(),cancelAnimationFrame(d)}}initCanvasMutationObserver(t,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let s=Sn(t,r,i,!1),a=Wu(this.processMutation.bind(this),t,r,i),o=qu(this.processMutation.bind(this),t,r,i);this.resetObservers=()=>{s(),a(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{let i=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,i)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;let i=this.pendingCanvasMutations.get(t);if(!i||r===-1)return;let s=i.map(o=>{let{type:l,...u}=o;return u}),{type:a}=i[0];this.mutationCb({id:r,type:a,commands:s}),this.pendingCanvasMutations.delete(t)}},xs=class{constructor(t){M(this,"trackedLinkElements",new WeakSet),M(this,"mutationCb"),M(this,"adoptedStyleSheetCb"),M(this,"styleMirror",new At),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;let i={id:r,styleIds:[]},s=[];for(let a of t){let o;this.styleMirror.has(a)?o=this.styleMirror.getId(a):(o=this.styleMirror.add(a),s.push({styleId:o,rules:Array.from(a.rules||CSSRule,(l,u)=>({rule:Fn(l,a.href),index:u}))})),i.styleIds.push(o)}s.length>0&&(i.styles=s),this.adoptedStyleSheetCb(i)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},Rs=class{constructor(){M(this,"nodeMap",new WeakMap),M(this,"active",!1)}inOtherBuffer(t,r){let i=this.nodeMap.get(t);return i&&Array.from(i).some(s=>s!==r)}add(t,r){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}},K,bt,rs,kt=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Xs=e.contentWindow)==null?void 0:Xs.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var pe=Un();function Pe(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:s="rr-block",blockSelector:a=null,ignoreClass:o="rr-ignore",ignoreSelector:l=null,maskTextClass:u="rr-mask",maskTextSelector:h=null,inlineStylesheet:n=!0,maskAllInputs:d,maskInputOptions:c,slimDOMOptions:f,maskInputFn:m,maskTextFn:p,hooks:g,packFn:b,sampling:y={},dataURLOptions:w={},mousemoveWait:C,recordDOM:v=!0,recordCanvas:S=!1,recordCrossOriginIframes:E=!1,recordAfter:R=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:I=!1,collectFonts:N=!1,inlineImages:L=!1,plugins:T,keepIframeSrcFn:x=()=>!1,ignoreCSSAttributes:ae=new Set([]),errorHandler:se}=e;Eu(se);let W=E?window.parent===window:!0,k=!1;if(!W)try{window.parent.document&&(k=!1)}catch{k=!0}if(W&&!t)throw new Error("emit function is required");if(!W&&!k)return()=>{};C!==void 0&&y.mousemove===void 0&&(y.mousemove=C),pe.reset();let Y=d===!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}:c!==void 0?c:{password:!0},ee=Vn(f);vo();let Q,V=0,xe=P=>{for(let te of T||[])te.eventProcessor&&(P=te.eventProcessor(P));return b&&!k&&(P=b(P)),P};K=(P,te)=>{var j;let Z=P;if(Z.timestamp=st(),(j=Ae[0])!=null&&j.isFrozen()&&Z.type!==_.FullSnapshot&&!(Z.type===_.IncrementalSnapshot&&Z.data.source===A.Mutation)&&Ae.forEach(le=>le.unfreeze()),W)t?.(xe(Z),te);else if(k){let le={type:"rrweb",event:xe(Z),origin:window.location.origin,isCheckout:te};window.parent.postMessage(le,"*")}if(Z.type===_.FullSnapshot)Q=Z,V=0;else if(Z.type===_.IncrementalSnapshot){if(Z.data.source===A.Mutation&&Z.data.isAttachIframe)return;V++;let le=i&&V>=i,G=r&&Z.timestamp-Q.timestamp>r;(le||G)&&bt(!0)}};let O=P=>{K({type:_.IncrementalSnapshot,data:{source:A.Mutation,...P}})},we=P=>K({type:_.IncrementalSnapshot,data:{source:A.Scroll,...P}}),fe=P=>K({type:_.IncrementalSnapshot,data:{source:A.CanvasMutation,...P}}),He=P=>K({type:_.IncrementalSnapshot,data:{source:A.AdoptedStyleSheet,...P}}),ie=new xs({mutationCb:O,adoptedStyleSheetCb:He}),de=new Ss({mirror:pe,mutationCb:O,stylesheetManager:ie,recordCrossOriginIframes:E,wrappedEmit:K});for(let P of T||[])P.getMirror&&P.getMirror({nodeMirror:pe,crossOriginIframeMirror:de.crossOriginIframeMirror,crossOriginIframeStyleMirror:de.crossOriginIframeStyleMirror});let Ie=new Rs;rs=new Es({recordCanvas:S,mutationCb:fe,win:window,blockClass:s,blockSelector:a,mirror:pe,sampling:y.canvas,dataURLOptions:w});let Re=new Cs({mutationCb:O,scrollCb:we,bypassOptions:{blockClass:s,blockSelector:a,maskTextClass:u,maskTextSelector:h,inlineStylesheet:n,maskInputOptions:Y,dataURLOptions:w,maskTextFn:p,maskInputFn:m,recordCanvas:S,inlineImages:L,sampling:y,slimDOMOptions:ee,iframeManager:de,stylesheetManager:ie,canvasManager:rs,keepIframeSrcFn:x,processedNodeManager:Ie},mirror:pe});bt=(P=!1)=>{if(!v)return;K({type:_.Meta,data:{href:window.location.href,width:yo(),height:go()}},P),ie.reset(),Re.init(),Ae.forEach(j=>j.lock());let te=ja(document,{mirror:pe,blockClass:s,blockSelector:a,maskTextClass:u,maskTextSelector:h,inlineStylesheet:n,maskAllInputs:Y,maskTextFn:p,maskInputFn:m,slimDOM:ee,dataURLOptions:w,recordCanvas:S,inlineImages:L,onSerialize:j=>{et(j,pe)&&de.addIframe(j),Co(j,pe)&&ie.trackLinkElement(j),De(j)&&Re.addShadowRoot(F.shadowRoot(j),document)},onIframeLoad:(j,Z)=>{de.attachIframe(j,Z),Re.observeAttachShadow(j)},onStylesheetLoad:(j,Z)=>{ie.attachLinkElement(j,Z)},keepIframeSrcFn:x});if(!te)return console.warn("Failed to snapshot the document");K({type:_.FullSnapshot,data:{node:te,initialOffset:mo(window)}},P),Ae.forEach(j=>j.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ie.adoptStyleSheets(document.adoptedStyleSheets,pe.getId(document))};try{let P=[],te=Z=>{var le;return $(Fu)({mutationCb:O,mousemoveCb:(G,Xt)=>K({type:_.IncrementalSnapshot,data:{source:Xt,positions:G}}),mouseInteractionCb:G=>K({type:_.IncrementalSnapshot,data:{source:A.MouseInteraction,...G}}),scrollCb:we,viewportResizeCb:G=>K({type:_.IncrementalSnapshot,data:{source:A.ViewportResize,...G}}),inputCb:G=>K({type:_.IncrementalSnapshot,data:{source:A.Input,...G}}),mediaInteractionCb:G=>K({type:_.IncrementalSnapshot,data:{source:A.MediaInteraction,...G}}),styleSheetRuleCb:G=>K({type:_.IncrementalSnapshot,data:{source:A.StyleSheetRule,...G}}),styleDeclarationCb:G=>K({type:_.IncrementalSnapshot,data:{source:A.StyleDeclaration,...G}}),canvasMutationCb:fe,fontCb:G=>K({type:_.IncrementalSnapshot,data:{source:A.Font,...G}}),selectionCb:G=>{K({type:_.IncrementalSnapshot,data:{source:A.Selection,...G}})},customElementCb:G=>{K({type:_.IncrementalSnapshot,data:{source:A.CustomElement,...G}})},blockClass:s,ignoreClass:o,ignoreSelector:l,maskTextClass:u,maskTextSelector:h,maskInputOptions:Y,inlineStylesheet:n,sampling:y,recordDOM:v,recordCanvas:S,inlineImages:L,userTriggeredOnInput:I,collectFonts:N,doc:Z,maskInputFn:m,maskTextFn:p,keepIframeSrcFn:x,blockSelector:a,slimDOMOptions:ee,dataURLOptions:w,mirror:pe,iframeManager:de,stylesheetManager:ie,shadowDomManager:Re,processedNodeManager:Ie,canvasManager:rs,ignoreCSSAttributes:ae,plugins:((le=T?.filter(G=>G.observer))==null?void 0:le.map(G=>({observer:G.observer,options:G.options,callback:Xt=>K({type:_.Plugin,data:{plugin:G.name,payload:Xt}})})))||[]},g)};de.addLoadListener(Z=>{try{P.push(te(Z.contentDocument))}catch(le){console.warn(le)}});let j=()=>{bt(),P.push(te(document)),kt=!0};return["interactive","complete"].includes(document.readyState)?j():(P.push(ne("DOMContentLoaded",()=>{K({type:_.DomContentLoaded,data:{}}),R==="DOMContentLoaded"&&j()})),P.push(ne("load",()=>{K({type:_.Load,data:{}}),R==="load"&&j()},window))),()=>{P.forEach(Z=>{try{Z()}catch(le){String(le).toLowerCase().includes("cross-origin")||console.warn(le)}}),Ie.destroy(),kt=!1,xu()}}catch(P){console.warn(P)}}Pe.addCustomEvent=(e,t)=>{if(!kt)throw new Error("please add custom event after start recording");K({type:_.Custom,data:{tag:e,payload:t}})};Pe.freezePage=()=>{Ae.forEach(e=>e.freeze())};Pe.takeFullSnapshot=e=>{if(!kt)throw new Error("please take full snapshot after start recording");bt(e)};Pe.mirror=pe;function ju(e){return{all:e=e||new Map,on:function(t,r){var i=e.get(t);i?i.push(r):e.set(t,[r])},off:function(t,r){var i=e.get(t);i&&(r?i.splice(i.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var i=e.get(t);i&&i.slice().map(function(s){s(r)}),(i=e.get("*"))&&i.slice().map(function(s){s(t,r)})}}}function Gu(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;let r=e.HTMLElement||e.Element,i=468,s={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||u,scrollIntoView:r.prototype.scrollIntoView},a=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function o(b){let y=["MSIE ","Trident/","Edge/"];return new RegExp(y.join("|")).test(b)}let l=o(e.navigator.userAgent)?1:0;function u(b,y){this.scrollLeft=b,this.scrollTop=y}function h(b){return .5*(1-Math.cos(Math.PI*b))}function n(b){if(b===null||typeof b!="object"||b.behavior===void 0||b.behavior==="auto"||b.behavior==="instant")return!0;if(typeof b=="object"&&b.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+b.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(b,y){if(y==="Y")return b.clientHeight+l<b.scrollHeight;if(y==="X")return b.clientWidth+l<b.scrollWidth}function c(b,y){let w=e.getComputedStyle(b,null)["overflow"+y];return w==="auto"||w==="scroll"}function f(b){let y=d(b,"Y")&&c(b,"Y"),w=d(b,"X")&&c(b,"X");return y||w}function m(b){for(;b!==t.body&&f(b)===!1;)b=b.parentNode||b.host;return b}function p(b){let y=a(),w,C,v,S=(y-b.startTime)/i;S=S>1?1:S,w=h(S),C=b.startX+(b.x-b.startX)*w,v=b.startY+(b.y-b.startY)*w,b.method.call(b.scrollable,C,v),(C!==b.x||v!==b.y)&&e.requestAnimationFrame(p.bind(e,b))}function g(b,y,w){let C,v,S,E,R=a();b===t.body?(C=e,v=e.scrollX||e.pageXOffset,S=e.scrollY||e.pageYOffset,E=s.scroll):(C=b,v=b.scrollLeft,S=b.scrollTop,E=u),p({scrollable:C,method:E,startTime:R,startX:v,startY:S,x:y,y:w})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(n(arguments[0])===!0){s.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}g.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(n(arguments[0])){s.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}g.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(n(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");s.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}let b=arguments[0].left,y=arguments[0].top;g.call(this,this,typeof b>"u"?this.scrollLeft:~~b,typeof y>"u"?this.scrollTop:~~y)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(n(arguments[0])===!0){s.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(n(arguments[0])===!0){s.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}let b=m(this),y=b.getBoundingClientRect(),w=this.getBoundingClientRect();b!==t.body?(g.call(this,b,b.scrollLeft+w.left-y.left,b.scrollTop+w.top-y.top),e.getComputedStyle(b).position!=="fixed"&&e.scrollBy({left:y.left,top:y.top,behavior:"smooth"})):e.scrollBy({left:w.left,top:w.top,behavior:"smooth"})}}var Ms=class{constructor(t=[],r){M(this,"timeOffset",0),M(this,"speed"),M(this,"actions"),M(this,"raf",null),M(this,"lastTimestamp"),this.actions=t,this.speed=r.speed}addAction(t){let r=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=t.delay)this.actions.push(t);else{let i=this.findActionIndex(t);this.actions.splice(i,0,t)}r&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}updateLiveTime(){this.raf===!0&&this.rafCheck()}rafCheck(){let t=performance.now();for(this.timeOffset+=(t-this.lastTimestamp)*this.speed,this.lastTimestamp=t;this.actions.length;){let r=this.actions[0];if(this.timeOffset>=r.delay)this.actions.shift(),r.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(this.raf!==!0&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(t){this.speed=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,i=this.actions.length-1;for(;r<=i;){let s=Math.floor((r+i)/2);if(this.actions[s].delay<t.delay)r=s+1;else if(this.actions[s].delay>t.delay)i=s-1;else return s+1}return r}};function xn(e,t){if(e.type===_.IncrementalSnapshot&&e.data.source===A.MouseMove&&e.data.positions&&e.data.positions.length){let r=e.data.positions[0].timeOffset,i=e.timestamp+r;return e.delay=i-t,i-t}return e.delay=e.timestamp-t,e.delay}function Rn(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i,s,a=r.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(s)throw s.error}}return o}var qe;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(qe||(qe={}));var ko={type:"xstate.init"};function ss(e){return e===void 0?[]:[].concat(e)}function Be(e){return{type:"xstate.assign",assignment:e}}function Mn(e,t){return typeof(e=typeof e=="string"&&t&&t[e]?t[e]:e)=="string"?{type:e}:typeof e=="function"?{type:e.name,exec:e}:e}function Pt(e){return function(t){return e===t}}function Po(e){return typeof e=="string"?{type:e}:e}function Nn(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Pt(e)}}function On(e,t,r){var i=t,s=!1;return[e.filter(function(a){if(a.type==="xstate.assign"){s=!0;var o=Object.assign({},i);return typeof a.assignment=="function"?o=a.assignment(i,r):Object.keys(a.assignment).forEach(function(l){o[l]=typeof a.assignment[l]=="function"?a.assignment[l](i,r):a.assignment[l]}),i=o,!1}return!0}),i,s]}function Lo(e,t){t===void 0&&(t={});var r=Rn(On(ss(e.states[e.initial].entry).map(function(o){return Mn(o,t.actions)}),e.context,ko),2),i=r[0],s=r[1],a={config:e,_options:t,initialState:{value:e.initial,actions:i,context:s,matches:Pt(e.initial)},transition:function(o,l){var u,h,n=typeof o=="string"?{value:o,context:e.context}:o,d=n.value,c=n.context,f=Po(l),m=e.states[d];if(m.on){var p=ss(m.on[f.type]);try{for(var g=(function(k){var Y=typeof Symbol=="function"&&Symbol.iterator,ee=Y&&k[Y],Q=0;if(ee)return ee.call(k);if(k&&typeof k.length=="number")return{next:function(){return k&&Q>=k.length&&(k=void 0),{value:k&&k[Q++],done:!k}}};throw new TypeError(Y?"Object is not iterable.":"Symbol.iterator is not defined.")})(p),b=g.next();!b.done;b=g.next()){var y=b.value;if(y===void 0)return Nn(d,c);var w=typeof y=="string"?{target:y}:y,C=w.target,v=w.actions,S=v===void 0?[]:v,E=w.cond,R=E===void 0?function(){return!0}:E,I=C===void 0,N=C??d,L=e.states[N];if(R(c,f)){var T=Rn(On((I?ss(S):[].concat(m.exit,S,L.entry).filter(function(k){return k})).map(function(k){return Mn(k,a._options.actions)}),c,f),3),x=T[0],ae=T[1],se=T[2],W=C??d;return{value:W,context:ae,actions:x,changed:C!==d||x.length>0||se,matches:Pt(W)}}}}catch(k){u={error:k}}finally{try{b&&!b.done&&(h=g.return)&&h.call(g)}finally{if(u)throw u.error}}}return Nn(d,c)}};return a}var In=function(e,t){return e.actions.forEach(function(r){var i=r.exec;return i&&i(e.context,t)})};function Fo(e){var t=e.initialState,r=qe.NotStarted,i=new Set,s={_machine:e,send:function(a){r===qe.Running&&(t=e.transition(t,a),In(t,Po(a)),i.forEach(function(o){return o(t)}))},subscribe:function(a){return i.add(a),a(t),{unsubscribe:function(){return i.delete(a)}}},start:function(a){if(a){var o=typeof a=="object"?a:{context:e.config.context,value:a};t={value:o.value,actions:[],context:o.context,matches:Pt(o.value)}}return r=qe.Running,In(t,ko),s},stop:function(){return r=qe.Stopped,i.clear(),s},get state(){return t},get status(){return r}};return s}function Hu(e,t){for(let r=e.length-1;r>=0;r--){let i=e[r];if(i.type===_.Meta&&i.timestamp<=t)return e.slice(r)}return e}function Yu(e,{getCastFn:t,applyEventsSynchronously:r,emitter:i}){let s=Lo({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:Be({lastPlayedEvent:(a,o)=>o.type==="CAST_EVENT"?o.payload.event:a.lastPlayedEvent}),recordTimeOffset:Be((a,o)=>{let l=a.timeOffset;return"payload"in o&&"timeOffset"in o.payload&&(l=o.payload.timeOffset),{...a,timeOffset:l,baselineTime:a.events[0].timestamp+l}}),play(a){var o;let{timer:l,events:u,baselineTime:h,lastPlayedEvent:n}=a;l.clear();for(let m of u)xn(m,h);let d=Hu(u,h),c=n?.timestamp;n?.type===_.IncrementalSnapshot&&n.data.source===A.MouseMove&&(c=n.timestamp+((o=n.data.positions[0])==null?void 0:o.timeOffset)),h<(c||0)&&i.emit(z.PlayBack);let f=new Array;for(let m of d)if(!(c&&c<h&&(m.timestamp<=c||m===n)))if(m.timestamp<h)f.push(m);else{let p=t(m,!1);l.addAction({doAction:()=>{p()},delay:m.delay})}r(f),i.emit(z.Flush),l.start()},pause(a){a.timer.clear()},resetLastPlayedEvent:Be(a=>({...a,lastPlayedEvent:null})),startLive:Be({baselineTime:(a,o)=>(a.timer.start(),o.type==="TO_LIVE"&&o.payload.baselineTime?o.payload.baselineTime:Date.now())}),addEvent:Be((a,o)=>{let{baselineTime:l,timer:u,events:h}=a;if(o.type==="ADD_EVENT"){let{event:n}=o.payload;xn(n,l);let d=h.length-1;if(!h[d]||h[d].timestamp<=n.timestamp)h.push(n);else{let m=-1,p=0;for(;p<=d;){let g=Math.floor((p+d)/2);h[g].timestamp<=n.timestamp?p=g+1:d=g-1}m===-1&&(m=p),h.splice(m,0,n)}let c=n.timestamp<l,f=t(n,c);c?f():u.isActive()&&u.addAction({doAction:()=>{f()},delay:n.delay})}return{...a,events:h}})}});return Fo(s)}function Xu(e){let t=Lo({id:"speed",context:e,initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(r,i)=>{"payload"in i&&r.timer.setSpeed(i.payload.speed)},recordSpeed:Be({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return Fo(t)}var Ju=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Dn=new Map;function Uo(e,t){let r=Dn.get(e);return r||(r=new Map,Dn.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function Oe(e,t,r){return async i=>{if(i&&typeof i=="object"&&"rr_type"in i)if(r&&(r.isUnchanged=!1),i.rr_type==="ImageBitmap"&&"args"in i){let s=await Oe(e,t,r)(i.args);return await createImageBitmap.apply(null,s)}else if("index"in i){if(r||t===null)return i;let{rr_type:s,index:a}=i;return Uo(t,s)[a]}else if("args"in i){let{rr_type:s,args:a}=i,o=window[s];return new o(...await Promise.all(a.map(Oe(e,t,r))))}else{if("base64"in i)return Bu(i.base64);if("src"in i){let s=e.get(i.src);if(s)return s;{let a=new Image;return a.src=i.src,e.set(i.src,a),a}}else if("data"in i&&i.rr_type==="Blob"){let s=await Promise.all(i.data.map(Oe(e,t,r)));return new Blob(s,{type:i.type})}}else if(Array.isArray(i))return await Promise.all(i.map(Oe(e,t,r)));return i}}function Qu(e,t){try{return t===Ee.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch{return null}}var Zu=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function Ku(e,t){if(!t?.constructor)return;let{name:r}=t.constructor;if(!Zu.includes(r))return;let i=Uo(e,r);i.includes(t)||i.push(t)}async function ec({mutation:e,target:t,type:r,imageMap:i,errorHandler:s}){try{let a=Qu(t,r);if(!a)return;if(e.setter){a[e.property]=e.args[0];return}let o=a[e.property],l=await Promise.all(e.args.map(Oe(i,a))),u=o.apply(a,l);Ku(a,u);let h=!1}catch(a){s(e,a)}}async function tc({event:e,mutations:t,target:r,imageMap:i,errorHandler:s}){let a=r.getContext("2d");if(!a){s(t[0],new Error("Canvas context is null"));return}let o=t.map(async u=>Promise.all(u.args.map(Oe(i,a))));(await Promise.all(o)).forEach((u,h)=>{let n=t[h];try{if(n.setter){a[n.property]=n.args[0];return}let d=a[n.property];n.property==="drawImage"&&typeof n.args[0]=="string"?(i.get(e),d.apply(a,n.args)):d.apply(a,u)}catch(d){s(n,d)}})}async function An({event:e,mutation:t,target:r,imageMap:i,canvasEventMap:s,errorHandler:a}){try{let o=s.get(e)||t,l="commands"in o?o.commands:[o];if([Ee.WebGL,Ee.WebGL2].includes(t.type)){for(let u=0;u<l.length;u++){let h=l[u];await ec({mutation:h,type:t.type,target:r,imageMap:i,errorHandler:a})}return}await tc({event:e,mutations:l,target:r,imageMap:i,errorHandler:a})}catch(o){a(t,o)}}var Ns=class{constructor(t){M(this,"mediaMap",new Map),M(this,"warn"),M(this,"service"),M(this,"speedService"),M(this,"emitter"),M(this,"getCurrentTime"),M(this,"metadataCallbackMap",new Map),this.warn=t.warn,this.service=t.service,this.speedService=t.speedService,this.emitter=t.emitter,this.getCurrentTime=t.getCurrentTime,this.emitter.on(z.Start,this.start.bind(this)),this.emitter.on(z.SkipStart,this.start.bind(this)),this.emitter.on(z.Pause,this.pause.bind(this)),this.emitter.on(z.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(t={pause:!1}){this.mediaMap.forEach((r,i)=>{this.syncTargetWithState(i),t.pause&&i.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:t,target:r,mediaState:i}){if(i.isPlaying){let a=(t-i.lastInteractionTimeOffset)/1e3*i.playbackRate,o="duration"in r&&r.duration;if(Number.isNaN(o)){this.waitForMetadata(r);return}let l=i.currentTimeAtLastInteraction+a;r.loop&&o!==!1&&(l=l%o),r.currentTime=l}else r.pause(),r.currentTime=i.currentTimeAtLastInteraction}waitForMetadata(t){if(this.metadataCallbackMap.has(t)||!("addEventListener"in t))return;let r=()=>{this.metadataCallbackMap.delete(t);let i=this.mediaMap.get(t);i&&this.seekTo({time:this.getCurrentTime(),target:t,mediaState:i})};this.metadataCallbackMap.set(t,r),t.addEventListener("loadedmetadata",r,{once:!0})}getMediaStateFromMutation({target:t,timeOffset:r,mutation:i}){let s=this.mediaMap.get(t),{type:a,playbackRate:o,currentTime:l,muted:u,volume:h,loop:n}=i;return{isPlaying:a===Ne.Play||a!==Ne.Pause&&(s?.isPlaying||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:l??s?.currentTimeAtLastInteraction??0,lastInteractionTimeOffset:r,playbackRate:o??s?.playbackRate??1,volume:h??s?.volume??1,muted:u??s?.muted??t.getAttribute("muted")===null,loop:n??s?.loop??t.getAttribute("loop")===null}}syncTargetWithState(t){let r=this.mediaMap.get(t);if(!r)return;let{muted:i,loop:s,volume:a,isPlaying:o}=r,l=this.service.state.matches("paused"),u=r.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:t,mediaState:r}),t.volume!==a&&(t.volume=a),t.muted=i,t.loop=s,t.playbackRate!==u&&(t.playbackRate=u),o&&!l?t.play():t.pause()}catch(h){this.warn(`Failed to replay media interactions: ${h.message||h}`)}}addMediaElements(t,r,i){if(!["AUDIO","VIDEO"].includes(t.nodeName))return;let s=t,a=i.getMeta(s);if(!a||!("attributes"in a))return;let o=this.service.state.matches("paused"),l=a.attributes,u=!1;l.rr_mediaState?u=l.rr_mediaState==="played":u=s.getAttribute("autoplay")!==null,u&&o&&s.pause();let h=1;typeof l.rr_mediaPlaybackRate=="number"&&(h=l.rr_mediaPlaybackRate);let n=!1;typeof l.rr_mediaMuted=="boolean"?n=l.rr_mediaMuted:n=s.getAttribute("muted")!==null;let d=!1;typeof l.rr_mediaLoop=="boolean"?d=l.rr_mediaLoop:d=s.getAttribute("loop")!==null;let c=1;typeof l.rr_mediaVolume=="number"&&(c=l.rr_mediaVolume);let f=0;typeof l.rr_mediaCurrentTime=="number"&&(f=l.rr_mediaCurrentTime),this.mediaMap.set(s,{isPlaying:u,currentTimeAtLastInteraction:f,lastInteractionTimeOffset:r,playbackRate:h,volume:c,muted:n,loop:d}),this.syncTargetWithState(s)}mediaMutation({target:t,timeOffset:r,mutation:i}){this.mediaMap.set(t,this.getMediaStateFromMutation({target:t,timeOffset:r,mutation:i})),this.syncTargetWithState(t)}isSupportedMediaElement(t){return["AUDIO","VIDEO"].includes(t.nodeName)}reset(){this.mediaMap.clear()}};function yt(e,t){if(e.nodeName!=="DIALOG"||e instanceof ye)return;let r=e,i=r.open,s=i&&r.matches("dialog:modal"),a=r.getAttribute("rr_open_mode"),o=typeof t?.attributes.open=="string"||typeof r.getAttribute("open")=="string",l=a==="modal";if(!(i&&!(s&&a==="non-modal"||!s&&l))){if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}i&&r.close(),o&&(l?r.showModal():r.show())}}function rc(e,t){if(e.nodeName!=="DIALOG"||e instanceof ye)return;let r=e;if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}t.attributes.open===null&&(r.removeAttribute("open"),r.removeAttribute("rr_open_mode"))}var sc=5*1e3,ic=ju,Tn="[replayer]",is={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function _n(e){return e.type==_.IncrementalSnapshot&&(e.data.source==A.TouchMove||e.data.source==A.MouseInteraction&&e.data.type==q.TouchStart)}var Lt=class{constructor(t,r){if(M(this,"wrapper"),M(this,"iframe"),M(this,"UNSAFE_replayCanvas",!1),M(this,"service"),M(this,"speedService"),M(this,"config"),M(this,"usingVirtualDom",!1),M(this,"virtualDom",new je),M(this,"mouse"),M(this,"mouseTail",null),M(this,"tailPositions",[]),M(this,"emitter",ic()),M(this,"nextUserInteractionEvent"),M(this,"legacy_missingNodeRetryMap",{}),M(this,"cache",_i()),M(this,"imageMap",new Map),M(this,"canvasEventMap",new Map),M(this,"mirror",Un()),M(this,"styleMirror",new At),M(this,"mediaManager"),M(this,"firstFullSnapshot",null),M(this,"newDocumentQueue",[]),M(this,"mousePos",null),M(this,"touchActive",null),M(this,"lastMouseDownEvent",null),M(this,"lastHoveredRootNode"),M(this,"lastSelectionData",null),M(this,"constructedStyleMutations",[]),M(this,"adoptedStyleSheets",[]),M(this,"handleResize",l=>{this.iframe.style.display="inherit";for(let u of[this.mouseTail,this.iframe])u&&(u.setAttribute("width",String(l.width)),u.setAttribute("height",String(l.height)))}),M(this,"applyEventsSynchronously",l=>{for(let u of l){switch(u.type){case _.DomContentLoaded:case _.Load:continue;case _.FullSnapshot:case _.Meta:case _.Plugin:case _.IncrementalSnapshot:break}this.getCastFn(u,!0)()}}),M(this,"getCastFn",(l,u=!1)=>{let h;switch(l.type){case _.DomContentLoaded:case _.Load:break;case _.Custom:h=()=>{this.emitter.emit(z.CustomEvent,l)};break;case _.Meta:h=()=>this.emitter.emit(z.Resize,{width:l.data.width,height:l.data.height});break;case _.FullSnapshot:h=()=>{var d;if(this.firstFullSnapshot){if(this.firstFullSnapshot===l){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(l,u),(d=this.iframe.contentWindow)==null||d.scrollTo(l.data.initialOffset)};break;case _.IncrementalSnapshot:h=()=>{if(this.applyIncremental(l,u),!u&&(l===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(let d of this.service.state.context.events)if(!(d.timestamp<=l.timestamp)&&this.isUserInteraction(d)){d.delay-l.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=d);break}if(this.nextUserInteractionEvent){let d=this.nextUserInteractionEvent.delay-l.delay,c={speed:Math.min(Math.round(d/sc),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:c}),this.emitter.emit(z.SkipStart,c)}}};break}return()=>{h&&h();for(let c of this.config.plugins||[])c.handler&&c.handler(l,u,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:l}});let d=this.service.state.context.events.length-1;if(!this.config.liveMode&&l===this.service.state.context.events[d]){let c=()=>{d<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(z.Finish))},f=50;l.type===_.IncrementalSnapshot&&l.data.source===A.MouseMove&&l.data.positions.length&&(f+=Math.max(0,-l.data.positions[0].timeOffset)),setTimeout(c,f)}this.emitter.emit(z.EventCast,l)}}),!r?.liveMode&&t.length<2)throw new Error("Replayer need at least 2 events.");let i={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:10*1e3,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:is,useVirtualDom:!0,logger:console};this.config=Object.assign({},i,r),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(z.Resize,this.handleResize),this.setupDom();for(let l of this.config.plugins||[])l.getMirror&&l.getMirror({nodeMirror:this.mirror});this.emitter.on(z.Flush,()=>{if(this.usingVirtualDom){let l={mirror:this.mirror,applyCanvas:(u,h,n)=>{An({event:u,mutation:h,target:n,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(u,h)=>{u.source===A.StyleSheetRule?this.applyStyleSheetRule(u,h):u.source===A.StyleDeclaration&&this.applyStyleDeclaration(u,h)},afterAppend:(u,h)=>{for(let n of this.config.plugins||[])n.onBuild&&n.onBuild(u,{id:h,replayer:this})}};if(this.iframe.contentDocument)try{It(this.iframe.contentDocument,this.virtualDom,l,this.virtualDom.mirror)}catch(u){this.warn(u)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(let u in this.legacy_missingNodeRetryMap)try{let h=this.legacy_missingNodeRetryMap[u],n=Dt(h.node,this.mirror,this.virtualDom.mirror);It(n,h.node,l,this.virtualDom.mirror),h.node=n}catch(h){this.warn(h)}this.constructedStyleMutations.forEach(u=>{this.applyStyleSheetMutation(u)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(u=>{this.applyAdoptedStyleSheet(u)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),this.touchActive===!0?this.mouse.classList.add("touch-active"):this.touchActive===!1&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){let[l,u]=this.lastMouseDownEvent;l.dispatchEvent(u)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(z.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});let s=new Ms([],{speed:this.config.speed});this.service=Yu({events:t.map(l=>r&&r.unpackFn?r.unpackFn(l):l).sort((l,u)=>l.timestamp-u.timestamp),timer:s,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(l=>{this.emitter.emit(z.StateChange,{player:l})}),this.speedService=Xu({normalSpeed:-1,timer:s}),this.speedService.start(),this.speedService.subscribe(l=>{this.emitter.emit(z.StateChange,{speed:l})}),this.mediaManager=new Ns({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});let a=this.service.state.context.events.find(l=>l.type===_.Meta),o=this.service.state.context.events.find(l=>l.type===_.FullSnapshot);if(a){let{width:l,height:u}=a.data;setTimeout(()=>{this.emitter.emit(z.Resize,{width:l,height:u})},0)}o&&setTimeout(()=>{var l;this.firstFullSnapshot||(this.firstFullSnapshot=o,this.rebuildFullSnapshot(o),(l=this.iframe.contentWindow)==null||l.scrollTo(o.data.initialOffset))},1),this.service.state.context.events.find(_n)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(t,r){return this.emitter.on(t,r),this}off(t,r){return this.emitter.off(t,r),this}setConfig(t){Object.keys(t).forEach(r=>{t[r],this.config[r]=t[r]}),this.config.skipInactive||this.backToNormal(),typeof t.speed<"u"&&this.speedService.send({type:"SET_SPEED",payload:{speed:t.speed}}),typeof t.mouseTail<"u"&&(t.mouseTail===!1?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){let t=this.service.state.context.events[0],r=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:t.timestamp,endTime:r.timestamp,totalTime:r.timestamp-t.timestamp}}getCurrentTime(){return this.config.liveMode&&this.timer.updateLiveTime(),this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){let{baselineTime:t,events:r}=this.service.state.context;return t-r[0].timestamp}getMirror(){return this.mirror}play(t=0){var r,i;this.service.state.matches("paused")?this.service.send({type:"PLAY",payload:{timeOffset:t}}):(this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:t}})),(i=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||i.classList.remove("rrweb-paused"),this.emitter.emit(z.Start)}pause(t){var r,i;t===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof t=="number"&&(this.play(t),this.service.send({type:"PAUSE"})),(i=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||i.classList.add("rrweb-paused"),this.emitter.emit(z.Pause)}resume(t=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(t),this.emitter.emit(z.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(z.Destroy)}startLive(t){this.service.send({type:"TO_LIVE",payload:{baselineTime:t}})}addEvent(t){let r=this.config.unpackFn?this.config.unpackFn(t):t;_n(r)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:r}}))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=_i()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),this.config.mouseTail!==!1&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.config.UNSAFE_replayCanvas?(this.iframe=document.createElement("iframe"),this.iframe.setAttribute("sandbox","allow-same-origin allow-scripts"),this.wrapper.appendChild(this.iframe),this.UNSAFE_replayCanvas=!0):(this.iframe=wl({root:this.wrapper}),this.UNSAFE_replayCanvas=!1),this.iframe.style.display="none",this.disableInteract(),this.iframe.contentWindow&&this.iframe.contentDocument&&(Gu(this.iframe.contentWindow,this.iframe.contentDocument),vo(this.iframe.contentWindow))}rebuildFullSnapshot(t,r=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};let i=[],s=new Set,a=(u,h)=>{if(u.nodeName==="DIALOG"&&s.add(u),this.collectIframeAndAttachDocument(i,u),this.mediaManager.isSupportedMediaElement(u)){let{events:n}=this.service.state.context;this.mediaManager.addMediaElements(u,t.timestamp-n[0].timestamp,this.mirror)}for(let n of this.config.plugins||[])n.onBuild&&n.onBuild(u,{id:h,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),yl(t.data.node,{doc:this.iframe.contentDocument,afterAppend:a,cache:this.cache,mirror:this.mirror,UNSAFE_allowUnprotectedRebuild:this.UNSAFE_replayCanvas}),a(this.iframe.contentDocument,t.data.node.id);for(let{mutationInQueue:u,builtNode:h}of i)this.attachDocumentToIframe(u,h),this.newDocumentQueue=this.newDocumentQueue.filter(n=>n!==u);let{documentElement:o,head:l}=this.iframe.contentDocument;this.insertStyleRules(o,l),s.forEach(u=>yt(u)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(z.FullsnapshotRebuilded,t),r||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(t,r){var i;let s=Ju(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&s.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),!!s.length)if(this.usingVirtualDom){let a=this.virtualDom.createElement("style");this.virtualDom.mirror.add(a,co(a,this.virtualDom.unserializedId)),t.insertBefore(a,r),a.rules.push({source:A.StyleSheetRule,adds:s.map((o,l)=>({rule:o,index:l}))})}else{let a=document.createElement("style");t.insertBefore(a,r);for(let o=0;o<s.length;o++)(i=a.sheet)==null||i.insertRule(s[o],o)}}attachDocumentToIframe(t,r){let i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,s=[],a=new Set,o=(l,u)=>{l.nodeName==="DIALOG"&&a.add(l),this.collectIframeAndAttachDocument(s,l);let h=i.getMeta(l);if(h?.type===Se.Element&&h?.tagName.toUpperCase()==="HTML"){let{documentElement:n,head:d}=r.contentDocument;this.insertStyleRules(n,d)}if(!this.usingVirtualDom)for(let n of this.config.plugins||[])n.onBuild&&n.onBuild(l,{id:u,replayer:this})};Ke(t.node,{doc:r.contentDocument,mirror:i,hackCss:!0,skipChild:!1,afterAppend:o,cache:this.cache}),o(r.contentDocument,t.node.id);for(let{mutationInQueue:l,builtNode:u}of s)this.attachDocumentToIframe(l,u),this.newDocumentQueue=this.newDocumentQueue.filter(h=>h!==l);a.forEach(l=>yt(l))}collectIframeAndAttachDocument(t,r){if(et(r,this.mirror)){let i=this.newDocumentQueue.find(s=>s.parentId===this.mirror.getId(r));i&&t.push({mutationInQueue:i,builtNode:r})}}waitForStylesheetLoad(){var t;let r=(t=this.iframe.contentDocument)==null?void 0:t.head;if(r){let i=new Set,s,a=this.service.state,o=()=>{a=this.service.state};this.emitter.on(z.Start,o),this.emitter.on(z.Pause,o);let l=()=>{this.emitter.off(z.Start,o),this.emitter.off(z.Pause,o)};r.querySelectorAll('link[rel="stylesheet"]').forEach(u=>{u.sheet||(i.add(u),u.addEventListener("load",()=>{i.delete(u),i.size===0&&s!==-1&&(a.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(z.LoadStylesheetEnd),s&&clearTimeout(s),l())}))}),i.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(z.LoadStylesheetStart),s=setTimeout(()=>{a.matches("playing")&&this.play(this.getCurrentTime()),s=-1,l()},this.config.loadTimeout))}}async preloadAllImages(){let t=[];for(let r of this.service.state.context.events)r.type===_.IncrementalSnapshot&&r.data.source===A.CanvasMutation&&(t.push(this.deserializeAndPreloadCanvasEvents(r.data,r)),("commands"in r.data?r.data.commands:[r.data]).forEach(s=>{this.preloadImages(s,r)}));return Promise.all(t)}preloadImages(t,r){if(t.property==="drawImage"&&typeof t.args[0]=="string"&&!this.imageMap.has(r)){let i=document.createElement("canvas"),s=i.getContext("2d"),a=s?.createImageData(i.width,i.height);s?.putImageData(a,0,0)}}async deserializeAndPreloadCanvasEvents(t,r){if(!this.canvasEventMap.has(r)){let i={isUnchanged:!0};if("commands"in t){let s=await Promise.all(t.commands.map(async a=>{let o=await Promise.all(a.args.map(Oe(this.imageMap,null,i)));return{...a,args:o}}));i.isUnchanged===!1&&this.canvasEventMap.set(r,{...t,commands:s})}else{let s=await Promise.all(t.args.map(Oe(this.imageMap,null,i)));i.isUnchanged===!1&&this.canvasEventMap.set(r,{...t,args:s})}}}applyIncremental(t,r){var i,s,a;let{data:o}=t;switch(o.source){case A.Mutation:{try{this.applyMutation(o,r)}catch(l){this.warn(`Exception in mutation ${l.message||l}`,o)}break}case A.Drag:case A.TouchMove:case A.MouseMove:if(r){let l=o.positions[o.positions.length-1];this.mousePos={x:l.x,y:l.y,id:l.id,debugData:o}}else o.positions.forEach(l=>{let u={doAction:()=>{this.moveAndHover(l.x,l.y,l.id,r,o)},delay:l.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(u)}),this.timer.addAction({doAction(){},delay:t.delay-((i=o.positions[0])==null?void 0:i.timeOffset)});break;case A.MouseInteraction:{if(o.id===-1)break;let l=new Event(Ce(q[o.type])),u=this.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);this.emitter.emit(z.MouseInteraction,{type:o.type,target:u});let{triggerFocus:h}=this.config;switch(o.type){case q.Blur:"blur"in u&&u.blur();break;case q.Focus:h&&u.focus&&u.focus({preventScroll:!0});break;case q.Click:case q.TouchStart:case q.TouchEnd:case q.MouseDown:case q.MouseUp:r?(o.type===q.TouchStart?this.touchActive=!0:o.type===q.TouchEnd&&(this.touchActive=!1),o.type===q.MouseDown?this.lastMouseDownEvent=[u,l]:o.type===q.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:o.x||0,y:o.y||0,id:o.id,debugData:o}):(o.type===q.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x||0,o.y||0,o.id,r,o),o.type===q.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===q.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===q.TouchEnd?this.mouse.classList.remove("touch-active"):u.dispatchEvent(l));break;case q.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:u.dispatchEvent(l)}break}case A.Scroll:{if(o.id===-1)break;if(this.usingVirtualDom){let l=this.virtualDom.mirror.getNode(o.id);if(!l)return this.debugNodeNotFound(o,o.id);l.scrollData=o;break}this.applyScroll(o,r);break}case A.ViewportResize:this.emitter.emit(z.Resize,{width:o.width,height:o.height});break;case A.Input:{if(o.id===-1)break;if(this.usingVirtualDom){let l=this.virtualDom.mirror.getNode(o.id);if(!l)return this.debugNodeNotFound(o,o.id);l.inputData=o;break}this.applyInput(o);break}case A.MediaInteraction:{let l=this.usingVirtualDom?this.virtualDom.mirror.getNode(o.id):this.mirror.getNode(o.id);if(!l)return this.debugNodeNotFound(o,o.id);let u=l,{events:h}=this.service.state.context;this.mediaManager.mediaMutation({target:u,timeOffset:t.timestamp-h[0].timestamp,mutation:o});break}case A.StyleSheetRule:case A.StyleDeclaration:{this.usingVirtualDom?o.styleId?this.constructedStyleMutations.push(o):o.id&&((s=this.virtualDom.mirror.getNode(o.id))==null||s.rules.push(o)):this.applyStyleSheetMutation(o);break}case A.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){let l=this.virtualDom.mirror.getNode(o.id);if(!l)return this.debugNodeNotFound(o,o.id);l.canvasMutations.push({event:t,mutation:o})}else{let l=this.mirror.getNode(o.id);if(!l)return this.debugNodeNotFound(o,o.id);An({event:t,mutation:o,target:l,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case A.Font:{try{let l=new FontFace(o.family,o.buffer?new Uint8Array(JSON.parse(o.fontSource)):o.fontSource,o.descriptors);(a=this.iframe.contentDocument)==null||a.fonts.add(l)}catch(l){this.warn(l)}break}case A.Selection:{if(r){this.lastSelectionData=o;break}this.applySelection(o);break}case A.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(o):this.applyAdoptedStyleSheet(o);break}}}applyMutation(t,r){if(this.config.useVirtualDom&&!this.usingVirtualDom&&r&&(this.usingVirtualDom=!0,Zl(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(let h in this.legacy_missingNodeRetryMap)try{let n=this.legacy_missingNodeRetryMap[h],d=uo(n.node,this.virtualDom,this.mirror);d&&(n.node=d)}catch(n){this.warn(n)}let i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(h=>i.getNode(h.id)?!0:(this.warnNodeNotFound(t,h.id),!1)),t.removes.forEach(h=>{var n;let d=i.getNode(h.id);if(!d)return;let c=i.getNode(h.parentId);if(!c)return this.warnNodeNotFound(t,h.parentId);if(h.isShadow&&De(c)&&(c=c.shadowRoot),i.removeNodeFromMap(d),c)try{c.removeChild(d),this.usingVirtualDom&&d.nodeName==="#text"&&c.nodeName==="STYLE"&&((n=c.rules)==null?void 0:n.length)>0&&(c.rules=[])}catch(f){if(f instanceof DOMException)this.warn("parent could not remove child in mutation",c,d,t);else throw f}});let s={...this.legacy_missingNodeRetryMap},a=[],o=h=>{let n=null;return h.nextId&&(n=i.getNode(h.nextId)),h.nextId!==null&&h.nextId!==void 0&&h.nextId!==-1&&!n},l=h=>{var n,d;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let c=i.getNode(h.parentId);if(!c)return h.node.type===Se.Document?this.newDocumentQueue.push(h):a.push(h);h.node.isShadow&&(De(c)||c.attachShadow({mode:"open"}),c=c.shadowRoot);let f=null,m=null;if(h.previousId&&(f=i.getNode(h.previousId)),h.nextId&&(m=i.getNode(h.nextId)),o(h))return a.push(h);if(h.node.rootId&&!i.getNode(h.node.rootId))return;let p=h.node.rootId?i.getNode(h.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(et(c,i)){this.attachDocumentToIframe(h,c);return}let g=(w,C)=>{if(!this.usingVirtualDom){yt(w);for(let v of this.config.plugins||[])v.onBuild&&v.onBuild(w,{id:C,replayer:this})}},b=Ke(h.node,{doc:p,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:g});if(h.previousId===-1||h.nextId===-1){s[h.node.id]={node:b,mutation:h};return}let y=i.getMeta(c);if(y&&y.type===Se.Element&&h.node.type===Se.Text){let w=Array.isArray(c.childNodes)?c.childNodes:Array.from(c.childNodes);if(y.tagName==="textarea")for(let C of w)C.nodeType===c.TEXT_NODE&&c.removeChild(C);else if(y.tagName==="style"&&w.length===1)for(let C of w)C.nodeType===c.TEXT_NODE&&!i.hasNode(C)&&(b.textContent=C.textContent,c.removeChild(C))}else if(y?.type===Se.Document){let w=c;h.node.type===Se.DocumentType&&((n=w.childNodes[0])==null?void 0:n.nodeType)===Node.DOCUMENT_TYPE_NODE&&w.removeChild(w.childNodes[0]),b.nodeName==="HTML"&&w.documentElement&&w.removeChild(w.documentElement)}if(f&&f.nextSibling&&f.nextSibling.parentNode?c.insertBefore(b,f.nextSibling):m&&m.parentNode?c.contains(m)?c.insertBefore(b,m):c.insertBefore(b,null):c.appendChild(b),g(b,h.node.id),this.usingVirtualDom&&b.nodeName==="#text"&&c.nodeName==="STYLE"&&((d=c.rules)==null?void 0:d.length)>0&&(c.rules=[]),et(b,this.mirror)){let w=this.mirror.getId(b),C=this.newDocumentQueue.find(v=>v.parentId===w);C&&(this.attachDocumentToIframe(C,b),this.newDocumentQueue=this.newDocumentQueue.filter(v=>v!==C))}(h.previousId||h.nextId)&&this.legacy_resolveMissingNode(s,c,b,h)};t.adds.forEach(h=>{l(h)});let u=Date.now();for(;a.length;){let h=wu(a);if(a.length=0,Date.now()-u>500){this.warn("Timeout in the loop, please check the resolve tree data:",h);break}for(let n of h)i.getNode(n.value.parentId)?So(n,c=>{l(c)}):this.debug("Drop resolve tree since there is no parent for the root node.",n)}Object.keys(s).length&&Object.assign(this.legacy_missingNodeRetryMap,s),bu(t.texts).forEach(h=>{var n;let d=i.getNode(h.id);if(!d)return t.removes.find(f=>f.id===h.id)?void 0:this.warnNodeNotFound(t,h.id);let c=d.parentElement;if(h.value&&c&&c.tagName==="STYLE"?d.textContent=zt(h.value,this.cache):d.textContent=h.value,this.usingVirtualDom){let f=d.parentNode;((n=f?.rules)==null?void 0:n.length)>0&&(f.rules=[])}}),t.attributes.forEach(h=>{var n;let d=i.getNode(h.id);if(!d)return t.removes.find(c=>c.id===h.id)?void 0:this.warnNodeNotFound(t,h.id);for(let c in h.attributes)if(typeof c=="string"){let f=h.attributes[c];if(f===null)d.removeAttribute(c),c==="open"&&rc(d,h);else if(typeof f=="string")try{if(c==="_cssText"&&(d.nodeName==="LINK"||d.nodeName==="STYLE"))try{let m=i.getMeta(d),p=Ke({...m,attributes:{...m.attributes,...h.attributes}},{doc:d.ownerDocument,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(m.attributes,h.attributes);let g=d.nextSibling,b=d.parentNode;if(p&&b){b.removeChild(d),b.insertBefore(p,g),i.replace(h.id,p);break}}catch{}if(c==="value"&&d.nodeName==="TEXTAREA"){let m=d;m.childNodes.forEach(g=>m.removeChild(g));let p=(n=d.ownerDocument)==null?void 0:n.createTextNode(f);p&&m.appendChild(p)}else d.setAttribute(c,f);c==="rr_open_mode"&&d.nodeName==="DIALOG"&&yt(d,h)}catch(m){this.warn("An error occurred may due to the checkout feature.",m)}else if(c==="style"){let m=f,p=d;for(let g in m)if(m[g]===!1)p.style.removeProperty(g);else if(m[g]instanceof Array){let b=m[g];p.style.setProperty(g,b[0],b[1])}else{let b=m[g];p.style.setProperty(g,b)}}}})}applyScroll(t,r){var i,s;let a=this.mirror.getNode(t.id);if(!a)return this.debugNodeNotFound(t,t.id);let o=this.mirror.getMeta(a);if(a===this.iframe.contentDocument)(i=this.iframe.contentWindow)==null||i.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else if(o?.type===Se.Document)(s=a.defaultView)==null||s.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else try{a.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"})}catch{}}applyInput(t){let r=this.mirror.getNode(t.id);if(!r)return this.debugNodeNotFound(t,t.id);try{r.checked=t.isChecked,r.value=t.text}catch{}}applySelection(t){try{let r=new Set,i=t.ranges.map(({start:s,startOffset:a,end:o,endOffset:l})=>{let u=this.mirror.getNode(s),h=this.mirror.getNode(o);if(!u||!h)return;let n=new Range;n.setStart(u,a),n.setEnd(h,l);let d=u.ownerDocument,c=d?.getSelection();return c&&r.add(c),{range:n,selection:c}});r.forEach(s=>s.removeAllRanges()),i.forEach(s=>{var a;return s&&((a=s.selection)==null?void 0:a.addRange(s.range))})}catch{}}applyStyleSheetMutation(t){var r;let i=null;t.styleId?i=this.styleMirror.getStyle(t.styleId):t.id&&(i=((r=this.mirror.getNode(t.id))==null?void 0:r.sheet)||null),i&&(t.source===A.StyleSheetRule?this.applyStyleSheetRule(t,i):t.source===A.StyleDeclaration&&this.applyStyleDeclaration(t,i))}applyStyleSheetRule(t,r){var i,s,a,o;if((i=t.adds)==null||i.forEach(({rule:l,index:u})=>{try{if(Array.isArray(u)){let{positions:h,index:n}=gn(u),d=Xe(r.cssRules,h);d?.insertRule(l,n)}else{let h=u===void 0?void 0:Math.min(u,r.cssRules.length);r?.insertRule(l,h)}}catch{}}),(s=t.removes)==null||s.forEach(({index:l})=>{try{if(Array.isArray(l)){let{positions:u,index:h}=gn(l),n=Xe(r.cssRules,u);n?.deleteRule(h||0)}else r?.deleteRule(l)}catch{}}),typeof t.replace=="string")try{(a=r.replace)==null||a.call(r,t.replace)}catch{}if(typeof t.replaceSync=="string")try{(o=r.replaceSync)==null||o.call(r,t.replaceSync)}catch{}}applyStyleDeclaration(t,r){if(t.set){let i=Xe(r.rules,t.index);i?.style&&i.style.setProperty(t.set.property,t.set.value,t.set.priority)}if(t.remove){let i=Xe(r.rules,t.index);i?.style&&i.style.removeProperty(t.remove.property)}}applyAdoptedStyleSheet(t){var r;let i=this.mirror.getNode(t.id);if(!i)return;(r=t.styles)==null||r.forEach(l=>{var u;let h=null,n=null;if(De(i)?n=((u=i.ownerDocument)==null?void 0:u.defaultView)||null:i.nodeName==="#document"&&(n=i.defaultView),!!n)try{h=new n.CSSStyleSheet,this.styleMirror.add(h,l.styleId),this.applyStyleSheetRule({source:A.StyleSheetRule,adds:l.rules},h)}catch{}});let s=10,a=0,o=(l,u)=>{let h=u.map(n=>this.styleMirror.getStyle(n)).filter(n=>n!==null);De(l)?l.shadowRoot.adoptedStyleSheets=h:l.nodeName==="#document"&&(l.adoptedStyleSheets=h),h.length!==u.length&&a<s&&(setTimeout(()=>o(l,u),0+100*a),a++)};o(i,t.styleIds)}legacy_resolveMissingNode(t,r,i,s){let{previousId:a,nextId:o}=s,l=a&&t[a],u=o&&t[o];if(l){let{node:h,mutation:n}=l;r.insertBefore(h,i),delete t[n.node.id],delete this.legacy_missingNodeRetryMap[n.node.id],(n.previousId||n.nextId)&&this.legacy_resolveMissingNode(t,r,h,n)}if(u){let{node:h,mutation:n}=u;r.insertBefore(h,i.nextSibling),delete t[n.node.id],delete this.legacy_missingNodeRetryMap[n.node.id],(n.previousId||n.nextId)&&this.legacy_resolveMissingNode(t,r,h,n)}}moveAndHover(t,r,i,s,a){let o=this.mirror.getNode(i);if(!o)return this.debugNodeNotFound(a,i);let l=Eo(o,this.iframe),u=t*l.absoluteScale+l.x,h=r*l.absoluteScale+l.y;this.mouse.style.left=`${u}px`,this.mouse.style.top=`${h}px`,s||this.drawMouseTail({x:u,y:h}),this.hoverElements(o)}drawMouseTail(t){if(!this.mouseTail)return;let{lineCap:r,lineWidth:i,strokeStyle:s,duration:a}=this.config.mouseTail===!0?is:Object.assign({},is,this.config.mouseTail),o=()=>{if(!this.mouseTail)return;let l=this.mouseTail.getContext("2d");!l||!this.tailPositions.length||(l.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),l.beginPath(),l.lineWidth=i,l.lineCap=r,l.strokeStyle=s,l.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(u=>l.lineTo(u.x,u.y)),l.stroke())};this.tailPositions.push(t),o(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(l=>l!==t),o()},a/this.speedService.state.context.timer.speed)}hoverElements(t){var r;(r=this.lastHoveredRootNode||this.iframe.contentDocument)==null||r.querySelectorAll(".\\:hover").forEach(s=>{s.classList.remove(":hover")}),this.lastHoveredRootNode=t.getRootNode();let i=t;for(;i;)i.classList&&i.classList.add(":hover"),i=i.parentElement}isUserInteraction(t){return t.type!==_.IncrementalSnapshot?!1:t.data.source>A.Mutation&&t.data.source<=A.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(z.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(t,r){this.warn(`Node with id '${r}' not found. `,t)}warnCanvasMutationFailed(t,r){this.warn("Has error on canvas update",r,"canvas mutation:",t)}debugNodeNotFound(t,r){this.debug(`Node with id '${r}' not found. `,t)}warn(...t){this.config.showWarning&&this.config.logger.warn(Tn,...t)}debug(...t){this.config.showDebug&&this.config.logger.log(Tn,...t)}},{addCustomEvent:lc}=Pe,{freezePage:uc}=Pe,{takeFullSnapshot:cc}=Pe;return Vo(nc);})();
130
+ /*! Bundled license information:
131
+
132
+ rrweb/dist/rrweb.js:
133
+ (*! *****************************************************************************
134
+ Copyright (c) Microsoft Corporation.
135
+
136
+ Permission to use, copy, modify, and/or distribute this software for any
137
+ purpose with or without fee is hereby granted.
138
+
139
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
140
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
141
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
142
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
143
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
144
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
145
+ PERFORMANCE OF THIS SOFTWARE.
146
+ ***************************************************************************** *)
147
+ */