1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8701],{85380:function(e,t,r){r.d(t,{_:function(){return ie}});var s,n,i,o,a,l,h,u,c,p,d,f,m,g,y,w,b,v,S,C,I,x,k,M,O,A,R,E,N,T,D,L,P,F,_,U,B,j=r(29421).lW,z=r(32608);function W(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}var V="lucent_session_id",G="lucent_session_last_activity",Z="lucent_session_start";function Y(){try{return"undefined"!=typeof sessionStorage?sessionStorage:null}catch{return null}}var J=class{constructor(){this._windowId=W();let e=this.restoreOrCreate();this._sessionId=e.sessionId,this._startedAt=e.startedAt,this._lastActivityAt=Date.now()}restoreOrCreate(){let e=Y();if(e){let t=e.getItem(V),r=Number(e.getItem(G)||"0"),s=Number(e.getItem(Z)||"0"),n=Date.now();if(t&&n-r<18e5&&n-s<864e5)return{sessionId:t,startedAt:s}}let t=W(),r=Date.now();return this.persist(t,r),{sessionId:t,startedAt:r}}persist(e,t){let r=Y();if(r)try{r.setItem(V,e),r.setItem(Z,String(t)),r.setItem(G,String(Date.now()))}catch{}}touch(){let e=Date.now(),t=e-this._lastActivityAt>18e5,r=e-this._startedAt>864e5;return(t||r)&&(this._sessionId=W(),this._windowId=W(),this._startedAt=e),this._lastActivityAt=e,this.persist(this._sessionId,this._startedAt),t||r}get sessionId(){return this._sessionId}get windowId(){return this._windowId}get startedAt(){return this._startedAt}get lastActivityAt(){return this._lastActivityAt}},$="lucent_anonymous_id",X="lucent_user_id";function H(){try{return"undefined"!=typeof localStorage?localStorage:null}catch{return null}}var K=class{constructor(){this._user={},this._anonymousId=this.restoreOrCreateAnonymousId()}restoreOrCreateAnonymousId(){let e=H();if(e){let t=e.getItem($);if(t)return t}let t=W();try{e?.setItem($,t)}catch{}return t}identify(e){this._user={...e};let t=H();if(t&&e.id)try{t.setItem(X,e.id)}catch{}}resetIdentity(){this._user={};let e=H();try{e?.removeItem(X)}catch{}this._anonymousId=W();try{e?.setItem($,this._anonymousId)}catch{}}get anonymousId(){return this._anonymousId}get user(){return this._user}get userId(){return this._user.id}},q=class{constructor(e,t){this.buffer=[],this.bufferBytes=0,this.sequence=0,this.flushTimer=null,this.config=e,this.onFlush=t}start(){this.flushTimer||(this.flushTimer=setInterval(()=>{this.flush(!1)},this.config.flushIntervalMs))}stop(){this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null)}push(e){let t=Q(e);this.buffer.push(e),this.bufferBytes+=t,(this.buffer.length>=this.config.maxEventsPerBatch||this.bufferBytes>=this.config.maxBatchBytes)&&this.flush(!1)}async flush(e){if(0===this.buffer.length)return;let t=this.buffer,r=this.sequence;this.buffer=[],this.bufferBytes=0,this.sequence++;try{await this.onFlush(t,r,e)}catch(n){let e=4*this.config.maxBatchBytes,r=t.reduce((e,t)=>e+Q(t),0),s=r+this.bufferBytes;this.sequence--,s>e?console.warn(`[lucent-sdk] Flush failed and buffer at cap (${(s/1024/1024).toFixed(1)}MB) \u2014 dropping ${t.length} events:`,n):(this.buffer=[...t,...this.buffer],this.bufferBytes+=r,console.warn("[lucent-sdk] Flush failed, events re-queued:",n))}}get pending(){return this.buffer.length}};function Q(e){if("string"==typeof e)return e.length;if("number"==typeof e||"boolean"==typeof e)return 8;if(null==e)return 4;if(Array.isArray(e))return 2+e.reduce((e,t)=>e+Q(t)+1,0);if("object"==typeof e){let t=2;for(let[r,s]of Object.entries(e))t+=r.length+3+Q(s)+1;return t}return 16}var ee=class{constructor(e,t,r){this.retryDelayMs=1e3,this.config=e,this.session=t,this.identity=r}async send(e,t,r){let s=this.buildPayload(e,t,r),n=`${this.config.ingestBaseUrl}/api/sdk/replay`,i=JSON.stringify(s);if(r&&"undefined"!=typeof navigator&&navigator.sendBeacon){let e=`${n}?api_key=${encodeURIComponent(this.config.publicKey)}`,t=new Blob([i],{type:"application/json"});if(navigator.sendBeacon(e,t))return}let o=await er(i),a={"X-Lucent-Api-Key":this.config.publicKey,"Content-Type":"application/json",...o?{"Content-Encoding":"gzip"}:{}},l=o??i,h=await this.fetchWithRetry(n,{method:"POST",headers:a,body:l,keepalive:r});if(!h.ok){let e=await h.text().catch(()=>"");throw Error(`[lucent-sdk] Ingestion failed: ${h.status} ${e}`)}}async fetchWithRetry(e,t,r=3){for(let s=0;s<r;s++)try{let n=await fetch(e,t);if(429===n.status){let e=n.headers.get("Retry-After"),t=e?1e3*parseInt(e,10):this.retryDelayMs*Math.pow(2,s);await et(t);continue}if(n.status>=500&&s<r-1){await et(this.retryDelayMs*Math.pow(2,s));continue}return n}catch(e){if(s===r-1)throw e;await et(this.retryDelayMs*Math.pow(2,s))}throw Error("[lucent-sdk] All retry attempts exhausted")}buildPayload(e,t,r){return{session:{id:this.session.sessionId,windowId:this.session.windowId,startedAt:this.session.startedAt,lastActivityAt:this.session.lastActivityAt,url:"undefined"!=typeof location?location.href:""},user:{id:this.identity.userId??null,anonymousId:this.identity.anonymousId,properties:this.identity.user.properties??null},page:{url:"undefined"!=typeof location?location.href:"",referrer:"undefined"!=typeof document&&document.referrer||null,viewport:"undefined"!=typeof window?{width:window.innerWidth,height:window.innerHeight}:null},replay:{events:e,sequence:t},metadata:{userAgent:"undefined"!=typeof navigator?navigator.userAgent:null,language:"undefined"!=typeof navigator?navigator.language:null},flush:r?"final":"normal"}}};function et(e){return new Promise(t=>setTimeout(t,e))}async function er(e){if("undefined"==typeof CompressionStream)return null;try{let t=new Blob([e]).stream().pipeThrough(new CompressionStream("gzip"));return new Uint8Array(await new Response(t).arrayBuffer())}catch{return null}}var es=Object.defineProperty,en=(e,t,r)=>t in e?es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ei=(e,t,r)=>en(e,"symbol"!=typeof t?t+"":t,r),eo=Object.defineProperty,ea=(e,t,r)=>t in e?eo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,el=(e,t,r)=>ea(e,"symbol"!=typeof t?t+"":t,r),eh=((s=eh||{})[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s),eu={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ec={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ep={},ed=()=>!!globalThis.Zone,ef={};function em(e,t,r){var s;let n=`${e}.${String(r)}`;if(ef[n])return ef[n].call(t);let i=null==(s=Object.getOwnPropertyDescriptor(function(e){if(ep[e])return ep[e];let t=globalThis[e],r=t.prototype,s=e in eu?eu[e]:void 0,n=!!(s&&s.every(e=>{var t,s;return!!(null==(s=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:s.toString().includes("[native code]"))})),i=e in ec?ec[e]:void 0,o=!!(i&&i.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(n&&o&&!ed())return ep[e]=t.prototype,t.prototype;try{let s=document.createElement("iframe");document.body.appendChild(s);let n=s.contentWindow;if(!n)return t.prototype;let i=n[e].prototype;if(document.body.removeChild(s),!i)return r;return ep[e]=i}catch{return r}}(e),r))?void 0:s.get;return i?(ef[n]=i,i.call(t)):t[r]}var eg={childNodes:function(e){return em("Node",e,"childNodes")},parentNode:function(e){return em("Node",e,"parentNode")},parentElement:function(e){return em("Node",e,"parentElement")},textContent:function(e){return em("Node",e,"textContent")},host:function(e){return e&&"host"in e?em("ShadowRoot",e,"host"):null},shadowRoot:function(e){return e&&"shadowRoot"in e?em("Element",e,"shadowRoot"):null}};
1function ey(e){return e.nodeType===e.ELEMENT_NODE}function ew(e){let t=e&&"host"in e&&"mode"in e&&eg.host(e)||null;return!!(t&&"shadowRoot"in t&&eg.shadowRoot(t)===e)}function eb(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function ev(e){try{var t;let r=e.rules||e.cssRules;if(!r)return null;let s=e.href;return!s&&e.ownerNode&&(s=e.ownerNode.baseURI),(t=Array.from(r,e=>eS(e,s)).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}catch(e){return null}}function eS(e,t){if("styleSheet"in e){let t;try{t=ev(e.styleSheet)||function(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(" ")+";"}(e)}catch(r){t=e.cssText}return e.styleSheet.href?eT(t,e.styleSheet.href):t}{let r=e.cssText;return("selectorText"in e&&e.selectorText.includes(":")&&(r=r.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t)?eT(r,t):r}}var eC=class{constructor(){el(this,"idNodeMap",new Map),el(this,"nodeMetaMap",new WeakMap)}getId(e){var t;return e?(null==(t=this.getMeta(e))?void 0:t.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function eI({element:e,maskInputOptions:t,tagName:r,type:s,value:n,maskInputFn:i}){let o=n||"",a=s&&ex(s);return(t[r.toLowerCase()]||a&&t[a])&&(o=i?i(o,e):"*".repeat(o.length)),o}function ex(e){return e.toLowerCase()}var ek="__rrweb_original__";function eM(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ex(t):null}function eO(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}let s=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==s?void 0:s[1])??null}var eA=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,eR=/^(?:[a-z+]+:)?\/\//i,eE=/^www\..*/i,eN=/^(data:)([^,]*),(.*)/i;function eT(e,t){return(e||"").replace(eA,(e,r,s,n,i,o)=>{let a=s||i||o,l=r||n||"";if(!a)return e;if(eR.test(a)||eE.test(a)||eN.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a}${l})`;let h=t.split("/"),u=a.split("/");for(let e of(h.pop(),u))"."!==e&&(".."===e?h.pop():h.push(e));return`url(${l}${h.join("/")}${l})`})}function eD(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var eL=1,eP=RegExp("[^a-z0-9-_:]");function eF(){return eL++}var e_=/^[^ \t\n\r\u000c]+/,eU=/^[, \t\n\r\u000c]+/,eB=new WeakMap;function ej(e,t){return t&&""!==t.trim()?ez(e,t):t}function ez(e,t){let r=eB.get(e);if(r||(r=e.createElement("a"),eB.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function eW(e,t,r,s){return s?"src"===r||"href"===r&&!("use"===t&&"#"===s[0])||"xlink:href"===r&&"#"!==s[0]||"background"===r&&["table","td","th"].includes(t)?ej(e,s):"srcset"===r?function(e,t){if(""===t.trim())return t;let r=0;function s(e){let s;let n=e.exec(t.substring(r));return n?(s=n[0],r+=s.length,s):""}let n=[];for(;s(eU),!(r>=t.length);){let i=s(e_);if(","===i.slice(-1))i=ej(e,i.substring(0,i.length-1)),n.push(i);else{let s="";i=ej(e,i);let o=!1;for(;;){let e=t.charAt(r);if(""===e){n.push((i+s).trim());break}if(o)")"===e&&(o=!1);else{if(","===e){r+=1,n.push((i+s).trim());break}"("===e&&(o=!0)}s+=e,r+=1}}}return n.join(", ")}(e,s):"style"===r?eT(s,ez(e)):"object"===t&&"data"===r?ej(e,s):s:s}function eV(e,t,r){return["video","audio"].includes(e)&&"autoplay"===t}function eG(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&eG(eg.parentNode(e),t,r);for(let r=e.classList.length;r--;){let s=e.classList[r];if(t.test(s))return!0}return!!r&&eG(eg.parentNode(e),t,r)}function eZ(e,t,r,s){let n;if(ey(e)){if(n=e,!eg.childNodes(n).length)return!1}else{if(null===eg.parentElement(e))return!1;n=eg.parentElement(e)}
1try{if("string"==typeof t){if(s){if(n.closest(`.${t}`))return!0}else if(n.classList.contains(t))return!0}else if(eG(n,t,s))return!0;if(r){if(s){if(n.closest(r))return!0}else if(n.matches(r))return!0}}catch(e){}return!1}function eY(e){return null==e?"":e.toLowerCase()}function eJ(e){return!0===e||"all"===e?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===e,headMetaDescKeywords:"all"===e,headTitleMutations:"all"===e}:e||{}}function e$(e,t){let r;let{doc:s,mirror:n,blockClass:i,blockSelector:o,maskTextClass:a,maskTextSelector:l,skipChild:h=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:p,maskInputFn:d,slimDOMOptions:f,dataURLOptions:m={},inlineImages:w=!1,recordCanvas:b=!1,onSerialize:v,onIframeLoad:S,iframeLoadTimeout:C=5e3,onStylesheetLoad:I,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:k=()=>!1,newlyAddedElement:M=!1,cssCaptured:O=!1}=t,{needsMask:A}=t,{preserveWhiteSpace:R=!0}=t;A||(A=eZ(e,a,l,void 0===A));let E=function(e,t){let{doc:r,mirror:s,blockClass:n,blockSelector:i,needsMask:o,inlineStylesheet:a,maskInputOptions:l={},maskTextFn:h,maskInputFn:u,dataURLOptions:c={},inlineImages:p,recordCanvas:d,keepIframeSrcFn:f,newlyAddedElement:m=!1,cssCaptured:w=!1}=t,b=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(r,s);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:eh.Document,childNodes:[],compatMode:e.compatMode};return{type:eh.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:eh.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:b};case e.ELEMENT_NODE:return function(e,t){let r;let{doc:s,blockClass:n,blockSelector:i,inlineStylesheet:o,maskInputOptions:a={},maskInputFn:l,dataURLOptions:h={},inlineImages:u,recordCanvas:c,keepIframeSrcFn:p,newlyAddedElement:d=!1,rootId:f}=t,m=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let s=e.classList[r];if(t.test(s))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,n,i),w=function(e){if(e instanceof HTMLFormElement)return"form";let t=ex(e.tagName);return eP.test(t)?"div":t}(e),b={},v=e.attributes.length;for(let t=0;t<v;t++){let r=e.attributes[t];
1eV(w,r.name,r.value)||(b[r.name]=eW(s,w,ex(r.name),r.value))}if("link"===w&&o){let t=Array.from(s.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=ev(t)),r&&(delete b.rel,delete b.href,b._cssText=r)}if("style"===w&&e.sheet){let t=ev(e.sheet);t&&(e.childNodes.length>1&&(t=(function(e,t,r=!1){let s=Array.from(t.childNodes),n=[],i=0;if(s.length>1&&e&&"string"==typeof e){let t=eD(e,r),o=t.length/e.length;for(let a=1;a<s.length;a++)if(s[a].textContent&&"string"==typeof s[a].textContent){let l=eD(s[a].textContent,r),h=3;for(;h<l.length&&(l[h].match(/[a-zA-Z0-9]/)||-1!==l.indexOf(l.substring(0,h),1));h++);for(;h<l.length;h++){let u=l.substring(0,h),c=t.split(u),p=-1;if(2===c.length)p=c[0].length;else if(c.length>2&&""===c[0]&&""!==s[a-1].textContent)p=t.indexOf(u,1);else if(1===c.length){if(u=u.substring(0,u.length-1),(c=t.split(u)).length<=1)return n.push(e),n;h=101}else h===l.length-1&&(p=t.indexOf(u));if(c.length>=2&&h>100){let e=s[a-1].textContent;if(e&&"string"==typeof e){let r=eD(e).length;p=t.indexOf(u,r)}-1===p&&(p=c[0].length)}if(-1!==p){let a=Math.floor(p/o);for(;a>0&&a<e.length;){if((i+=1)>50*s.length)return n.push(e),n;let l=eD(e.substring(0,a),r);if(l.length===p){n.push(e.substring(0,a)),e=e.substring(a),t=t.substring(p);break}l.length<p?a+=Math.max(1,Math.floor((p-l.length)/o)):a-=Math.max(1,Math.floor((l.length-p)*o))}break}}}}return n.push(e),n})(t,e).join("/* rr_split */")),b._cssText=t)}if(["input","textarea","select"].includes(w)){let t=e.value,r=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&t?b.value=eI({element:e,type:eM(e),tagName:w,value:t,maskInputOptions:a,maskInputFn:l}):r&&(b.checked=r)}if("option"===w&&(e.selected&&!a.select?b.selected=!0:delete b.selected),"dialog"===w&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===w&&c){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let s=0;s<e.height;s+=50){let n=t.getImageData;if(new Uint32Array((ek in n?n[ek]:n).call(t,r,s,Math.min(50,e.width-r),Math.min(50,e.height-s)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(b.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){let t=e.toDataURL(h.type,h.quality),r=s.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(h.type,h.quality)&&(b.rr_dataURL=t)}}if("img"===w&&u){g||(y=(g=s.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",r=e.crossOrigin,n=()=>{e.removeEventListener("load",n);try{g.width=e.naturalWidth,g.height=e.naturalHeight,y.drawImage(e,0,0),b.rr_dataURL=g.toDataURL(h.type,h.quality)}catch(r){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?n():e.addEventListener("load",n);return}console.warn(`Cannot inline img src=${t}! Error: ${r}`)}"anonymous"===e.crossOrigin&&(r?b.crossOrigin=r:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?n():e.addEventListener("load",n)}if(["audio","video"].includes(w)){let t=b;t.rr_mediaState=e.paused?"paused":"played",t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume}if(!d&&(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),m){let{width:t,height:r}=e.getBoundingClientRect();b={class:b.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==w||p(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(w)&&(r=!0)}catch(e){}return{type:eh.Element,tagName:w,attributes:b,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:m,rootId:f,isCustom:r}}(e,{doc:r,blockClass:n,blockSelector:i,inlineStylesheet:a,maskInputOptions:l,maskInputFn:u,dataURLOptions:c,inlineImages:p,recordCanvas:d,keepIframeSrcFn:f,newlyAddedElement:m,rootId:b});case e.TEXT_NODE:return function(e,t){let{needsMask:r,maskTextFn:s,rootId:n,cssCaptured:i}=t,o=eg.parentNode(e),a=o&&o.tagName,l="",h="STYLE"===a||void 0,u="SCRIPT"===a||void 0;return u?l="SCRIPT_PLACEHOLDER":!i&&(l=eg.textContent(e),h&&l&&(l=eT(l,ez(t.doc)))),!h&&!u&&l&&r&&(l=s?s(l,eg.parentElement(e)):l.replace(/[\S]/g,"*")),{type:eh.Text,textContent:l||"",rootId:n}}
1(e,{doc:r,needsMask:o,maskTextFn:h,rootId:b,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:eh.CDATA,textContent:"",rootId:b};case e.COMMENT_NODE:return{type:eh.Comment,textContent:eg.textContent(e)||"",rootId:b};default:return!1}}(e,{doc:s,mirror:n,blockClass:i,blockSelector:o,needsMask:A,inlineStylesheet:u,maskInputOptions:c,maskTextFn:p,maskInputFn:d,dataURLOptions:m,inlineImages:w,recordCanvas:b,keepIframeSrcFn:k,newlyAddedElement:M,cssCaptured:O});if(!E)return console.warn(e,"not serialized"),null;r=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===eh.Comment)return!0;if(e.type===eh.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===eO(e.attributes.href))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(eY(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===eY(e.attributes.name)||"icon"===eY(e.attributes.rel)||"apple-touch-icon"===eY(e.attributes.rel)||"shortcut icon"===eY(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&eY(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(eY(e.attributes.property).match(/^(og|twitter|fb):/)||eY(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===eY(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===eY(e.attributes.name)||"googlebot"===eY(e.attributes.name)||"bingbot"===eY(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===eY(e.attributes.name)||"generator"===eY(e.attributes.name)||"framework"===eY(e.attributes.name)||"publisher"===eY(e.attributes.name)||"progid"===eY(e.attributes.name)||eY(e.attributes.property).match(/^article:/)||eY(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===eY(e.attributes.name)||"yandex-verification"===eY(e.attributes.name)||"csrf-token"===eY(e.attributes.name)||"p:domain_verify"===eY(e.attributes.name)||"verify-v1"===eY(e.attributes.name)||"verification"===eY(e.attributes.name)||"shopify-checkout-api-token"===eY(e.attributes.name)))return!0}}return!1}(E,f)&&(R||E.type!==eh.Text||E.textContent.replace(/^\s+|\s+$/gm,"").length)?eF():-2;let N=Object.assign(E,{id:r});if(n.add(e,N),-2===r)return null;v&&v(e);let T=!h;if(N.type===eh.Element){T=T&&!N.needBlock,delete N.needBlock;let t=eg.shadowRoot(e);t&&eb(t)&&(N.isShadowHost=!0)}if((N.type===eh.Document||N.type===eh.Element)&&T){f.headWhitespace&&N.type===eh.Element&&"head"===N.tagName&&(R=!1);let t={doc:s,mirror:n,blockClass:i,blockSelector:o,needsMask:A,maskTextClass:a,maskTextSelector:l,skipChild:h,inlineStylesheet:u,maskInputOptions:c,maskTextFn:p,maskInputFn:d,slimDOMOptions:f,dataURLOptions:m,inlineImages:w,recordCanvas:b,preserveWhiteSpace:R,onSerialize:v,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:I,stylesheetLoadTimeout:x,keepIframeSrcFn:k,cssCaptured:!1};if(N.type===eh.Element&&"textarea"===N.tagName&&void 0!==N.attributes.value);else for(let r of(N.type===eh.Element&&void 0!==N.attributes._cssText&&"string"==typeof N.attributes._cssText&&(t.cssCaptured=!0),Array.from(eg.childNodes(e)))){let e=e$(r,t);e&&N.childNodes.push(e)}let r=null;if(ey(e)&&(r=eg.shadowRoot(e)))for(let e of Array.from(eg.childNodes(r))){let s=e$(e,t);s&&(eb(r)&&(s.isShadow=!0),N.childNodes.push(s))}}let D=eg.parentNode(e);return D&&ew(D)&&eb(D)&&(N.isShadow=!0),N.type===eh.Element&&"iframe"===N.tagName&&function(e,t,r){let s;let n=e.contentWindow;if(!n)return;let i=!1;try{s=n.document.readyState}catch(e){return}if("complete"!==s){let s=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(s),i=!0,t()});return}let o="about:blank";if(n.location.href!==o||e.src===o||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=e.contentDocument;if(t&&S){let r=e$(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:A,maskTextClass:a,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:p,maskInputFn:d,slimDOMOptions:f,dataURLOptions:m,inlineImages:w,recordCanvas:b,preserveWhiteSpace:R,onSerialize:v,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:I,stylesheetLoadTimeout:x,keepIframeSrcFn:k});r&&S(e,r)}},C),N.type===eh.Element&&"link"===N.tagName&&"string"==typeof N.attributes.rel&&("stylesheet"===N.attributes.rel||"preload"===N.attributes.rel&&"string"==typeof N.attributes.href&&"css"===eO(N.attributes.href))&&function(e,t,r){let s,n=!1;
1try{s=e.sheet}catch(e){return}if(s)return;let i=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(i),n=!0,t()})}(e,()=>{if(I){let t=e$(e,{doc:s,mirror:n,blockClass:i,blockSelector:o,needsMask:A,maskTextClass:a,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:p,maskInputFn:d,slimDOMOptions:f,dataURLOptions:m,inlineImages:w,recordCanvas:b,preserveWhiteSpace:R,onSerialize:v,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:I,stylesheetLoadTimeout:x,keepIframeSrcFn:k});t&&I(e,t)}},x),N}var eX={exports:{}},eH=String,eK=function(){return{isColorSupported:!1,reset:eH,bold:eH,dim:eH,italic:eH,underline:eH,inverse:eH,hidden:eH,strikethrough:eH,black:eH,red:eH,green:eH,yellow:eH,blue:eH,magenta:eH,cyan:eH,white:eH,gray:eH,bgBlack:eH,bgRed:eH,bgGreen:eH,bgYellow:eH,bgBlue:eH,bgMagenta:eH,bgCyan:eH,bgWhite:eH}};eX.exports=eK(),eX.exports.createColors=eK;var eq=eX.exports,eQ=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?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(t){var s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),e0=class e extends Error{constructor(t,r,s,n,i,o){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),void 0!==r&&void 0!==s&&("number"==typeof r?(this.line=r,this.column=s):(this.line=r.line,this.column=r.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){let t,r;if(!this.source)return"";let s=this.source;null==e&&(e=eq.isColorSupported),eQ&&e&&(s=eQ(s));let n=s.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),a=String(o).length;if(e){let{bold:e,gray:s,red:n}=eq.createColors(!0);t=t=>e(n(t)),r=e=>s(e)}else t=r=e=>e;return n.slice(i,o).map((e,s)=>{let n=i+1+s,o=" "+(" "+n).slice(-a)+" | ";if(n===this.line){let s=r(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+r(o)+e+"\n "+s+t("^")}return" "+r(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};e0.default=e0;var e1={};e1.isClean=Symbol("isClean"),e1.my=Symbol("my");var e2={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},e3=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+s+n,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let s=e.parent,n=0;for(;s&&"root"!==s.type;)n+=1,s=s.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<n;e++)r+=t}return r}block(e,t){let r,s=this.raw(e,"between","beforeOpen");this.builder(t+s+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let n=e.nodes[s],i=this.raw(n,"before");i&&this.builder(i),this.stringify(n,t!==s||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),s=e.prop+r+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,t,r){let s;if(r||(r=t),t&&void 0!==(s=e.raws[t]))return s;let n=e.parent;if("before"===r&&(!n||"root"===n.type&&n.first===e||n&&"document"===n.type))return"";if(!n)return e2[r];let i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{var o;let n="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[n]?s=this[n](i,e):i.walk(e=>{if(void 0!==(s=e.raws[t]))return!1})}return void 0===s&&(s=e2[r]),i.rawCache[r]=s,s}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}rawIndent(e){let t;return e.raws.indent?e.raws.indent:(e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=(t=e[e.length-1]).replace(/\S/g,""),!1}}),t)}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}rawValue(e,t){let r=e[t],s=e.raws[t];return s&&s.value===r?s.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};function e9(e,t){new e3(t).stringify(e)}e3.default=e3,e9.default=e9;var{isClean:e4,my:e5}=e1,e6=class{constructor(e={}){for(let t in this.raws={},this[e4]=!1,this[e5]=!0,e)if("nodes"===t)for(let r of(this.nodes=[],e[t]))"function"==typeof r.clone?this.append(r.clone()):this.append(r);else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=function e(t,r){let s=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||"proxyCache"===n)continue;let i=t[n],o=typeof i;"parent"===n&&"object"===o?r&&(s[n]=r):"source"===n?s[n]=i:Array.isArray(i)?s[n]=i.map(t=>e(t,s)):("object"===o&&null!==i&&(i=e(i)),s[n]=i)}return s}(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}
1error(e,t={}){if(this.source){let{end:r,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new e0(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}markDirty(){if(this[e4]){this[e4]=!1;let e=this;for(;e=e.parent;)e[e4]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let s=(t=this.toString()).indexOf(e.word);-1!==s&&(r=this.positionInside(s,t))}return r}positionInside(e,t){let r=t||this.toString(),s=this.source.start.column,n=this.source.start.line;for(let t=0;t<e;t++)"\n"===r[t]?(s=1,n+=1):s+=1;return{column:s,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s=this.toString(),n=s.indexOf(e.word);-1!==n&&(t=this.positionInside(n,s),r=this.positionInside(n+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new e3().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let s of e)s===this?r=!0:r?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},s=null==t;t=t||new Map;let n=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||"parent"===e||"proxyCache"===e)continue;let s=this[e];if(Array.isArray(s))r[e]=s.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof s&&s.toJSON)r[e]=s.toJSON(null,t);else if("source"===e){let i=t.get(s.input);null==i&&(i=n,t.set(s.input,n),n++),r[e]={end:s.end,inputId:i,start:s.start}}else r[e]=s}return s&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=e9){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let s={node:this};for(let e in r)s[e]=r[e];return e.warn(t,s)}get proxyOf(){return this}};e6.default=e6;var e8=e6,e7=class extends e8{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};e7.default=e7;var{SourceMapConsumer:te,SourceMapGenerator:tt}=eQ,{existsSync:tr,readFileSync:ts}=eQ,{dirname:tn,join:ti}=eQ,to=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,s=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=tn(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new te(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),j?j.from(t,"base64").toString():window.atob(t)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);
1if(!t)return;let r=e.lastIndexOf(t.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}loadFile(e){if(this.root=tn(e),tr(e))return this.mapFile=e,ts(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"==typeof t){let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw Error("Unable to load previous source map: "+r.toString());return e}}else if(t instanceof te)return tt.fromSourceMap(t).toString();else if(t instanceof tt)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;return e&&(t=ti(tn(e),t)),this.loadFile(t)}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};to.default=to;var{SourceMapConsumer:ta,SourceMapGenerator:tl}=eQ,{fileURLToPath:th,pathToFileURL:tu}=eQ,{isAbsolute:tc,resolve:tp}=eQ,{nanoid:td}={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let s="",n=r;for(;n--;)s+=e[Math.random()*e.length|0];return s}}
1,tf=Symbol("fromOffsetCache"),tm=!!(ta&&tl),tg=!!(tp&&tc),ty=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!tg||/^\w+:\/\//.test(t.from)||tc(t.from)?this.file=t.from:this.file=tp(t.from)),tg&&tm){let e=new to(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+td(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,s={}){let n,i,o;if(t&&"object"==typeof t){let e=t,s=r;if("number"==typeof e.offset){let s=this.fromOffset(e.offset);t=s.line,r=s.col}else t=e.line,r=e.column;if("number"==typeof s.offset){let e=this.fromOffset(s.offset);i=e.line,o=e.col}else i=s.line,o=s.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,i,o);return(n=a?new e0(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,s.plugin):new e0(e,void 0===i?t:{column:r,line:t},void 0===i?r:{column:o,line:i},this.css,this.file,s.plugin)).input={column:r,endColumn:o,endLine:i,line:t,source:this.css},this.file&&(tu&&(n.input.url=tu(this.file).toString()),n.input.file=this.file),n}fromOffset(e){let t,r;if(this[tf])r=this[tf];else{let e=this.css.split("\n");r=Array(e.length);let t=0;for(let s=0,n=e.length;s<n;s++)r[s]=t,t+=e[s].length+1;this[tf]=r}t=r[r.length-1];let s=0;if(e>=t)s=r.length-1;else{let t,n=r.length-2;for(;s<n;)if(e<r[t=s+(n-s>>1)])n=t-1;else if(e>=r[t+1])s=t+1;else{s=t;break}}return{col:e-r[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:tp(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,s){let n,i;if(!this.map)return!1;let o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(n=o.originalPositionFor({column:s,line:r})),i=tc(a.source)?tu(a.source):new URL(a.source,this.map.consumer().sourceRoot||tu(this.map.mapFile));let l={column:a.column,endColumn:n&&n.column,endLine:n&&n.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(th)l.file=th(i);else throw Error("file: protocol is not available in this PostCSS build")}let h=o.sourceContentFor(a.source);return h&&(l.source=h),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};ty.default=ty,eQ&&eQ.registerInput&&eQ.registerInput(ty);var{SourceMapConsumer:tw,SourceMapGenerator:tb}=eQ,{dirname:tv,relative:tS,resolve:tC,sep:tI}=eQ,{pathToFileURL:tx}=eQ,tk=!!(tw&&tb),tM=!!(tv&&tC&&tS&&tI),tO=class{constructor(e,t,r,s){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),s=e.root||tv(e.file);!1===this.mapOpts.sourcesContent?(t=new tw(e.text)).sourcesContent&&(t.sourcesContent=null):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(s)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation){if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}}generate(){if(this.clearAnnotation(),tM&&tk&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=tb.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new tb({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(){let e,t;this.css="",this.map=new tb({file:this.outputFile(),ignoreInvalidMapping:!0});let r=1,s=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(i.generated.line=r,i.generated.column=s-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1):(i.source=n,i.original.line=1,i.original.column=0),this.map.addMapping(i)),(e=o.match(/\n/g))?(r+=e.length,t=o.lastIndexOf("\n"),s=o.length-t):s+=o.length,a&&"start"!==l){let e=a.parent||{raws:{}};(!("decl"===a.type||"atrule"===a.type&&!a.nodes)||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=r,i.generated.column=s-2):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=r,i.generated.column=s-1),this.map.addMapping(i))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?tv(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=tv(tC(r,this.mapOpts.annotation)));let s=tS(r,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new ty(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let s=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return j?j.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(tx){let t=tx(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===tI&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},tA=e6,tR=class extends tA{constructor(e){super(e),this.type="comment"}};tR.default=tR;var{isClean:tE,my:tN}=e1,tT=e6,tD=class e extends tT{append(...e){for(let t of e)for(let e of this.normalize(t,this.last))this.proxyOf.nodes.push(e);return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){let t,r;if(!this.proxyOf.nodes)return;let s=this.getIterator();for(;this.indexes[s]<this.proxyOf.nodes.length&&(t=this.indexes[s],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[s]+=1;return delete this.indexes[s],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e));if("every"===t||"some"===t)return r=>e[t]((e,...t)=>r(e.toProxy(),...t));if("root"===t)return()=>
1e.root().toProxy();if("nodes"===t)return e.nodes.map(e=>e.toProxy());if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:(e,t,r)=>e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,s=this.index(e),n=this.normalize(t,this.proxyOf.nodes[s]).reverse();for(let t of(s=this.index(e),n))this.proxyOf.nodes.splice(s+1,0,t);for(let e in this.indexes)s<(r=this.indexes[e])&&(this.indexes[e]=r+n.length);return this.markDirty(),this}insertBefore(e,t){let r,s=this.index(e),n=0===s&&"prepend",i=this.normalize(t,this.proxyOf.nodes[s],n).reverse();for(let t of(s=this.index(e),i))this.proxyOf.nodes.splice(s,0,t);for(let e in this.indexes)s<=(r=this.indexes[e])&&(this.indexes[e]=r+i.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(w(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t))for(let e of t=t.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if("root"===t.type&&"document"!==this.type)for(let e of t=t.nodes.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new e7(t)]}else if(t.selector)t=[new b(t)];else if(t.name)t=[new v(t)];else if(t.text)t=[new tR(t)];else throw Error("Unknown node type in node creation");return t.map(t=>(t[tN]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[tE]&&function e(t){if(t[tE]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e(r)}(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){for(let t of e=e.reverse()){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;for(let r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(s=>{(!t.props||t.props.includes(s.prop))&&(!t.fast||s.value.includes(t.fast))&&(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let s;try{s=e(t,r)}catch(e){throw t.addToError(e)}return!1!==s&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("atrule"===r.type&&e.test(r.name))return t(r,s)}):this.walk((r,s)=>{if("atrule"===r.type&&r.name===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("decl"===r.type&&e.test(r.prop))return t(r,s)}):this.walk((r,s)=>{if("decl"===r.type&&r.prop===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("rule"===r.type&&e.test(r.selector))return t(r,s)}):this.walk((r,s)=>{if("rule"===r.type&&r.selector===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}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]}};tD.registerParse=e=>{w=e},tD.registerRule=e=>{b=e},tD.registerAtRule=e=>{v=e},tD.registerRoot=e=>{S=e},tD.default=tD,tD.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,v.prototype):"rule"===e.type?Object.setPrototypeOf(e,b.prototype):"decl"===e.type?Object.setPrototypeOf(e,e7.prototype):"comment"===e.type?Object.setPrototypeOf(e,tR.prototype):"root"===e.type&&Object.setPrototypeOf(e,S.prototype),e[tN]=!0,e.nodes&&e.nodes.forEac
1h(e=>{tD.rebuild(e)})};var tL=tD,tP=class extends tL{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new C(new I,this,e).stringify()}};tP.registerLazyResult=e=>{C=e},tP.registerProcessor=e=>{I=e},tP.default=tP;var tF=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}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}};tF.default=tF;var t_=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new tF(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};t_.default=t_;var tU=/[\t\n\f\r "#'()/;[\\\]{}]/g,tB=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,tj=/.[\r\n"'(/\\]/,tz=/[\da-f]/i,tW=tD,tV=class extends tW{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};tV.default=tV,tW.registerAtRule(tV);var tG=tD,tZ=class extends tG{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let s=super.normalize(e);if(t){if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of s)e.raws.before=t.raws.before}return s}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new x(new k,this,e).stringify()}};tZ.registerLazyResult=e=>{x=e},tZ.registerProcessor=e=>{k=e},tZ.default=tZ,tG.registerRoot(tZ);var tY={comma:e=>tY.split(e,[","],!0),space:e=>tY.split(e,[" ","\n"," "]),split(e,t,r){let s=[],n="",i=!1,o=0,a=!1,l="",h=!1;for(let r of e)h?h=!1:"\\"===r?h=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&t.includes(r)&&(i=!0),i?(""!==n&&s.push(n.trim()),n="",i=!1):n+=r;return(r||""!==n)&&s.push(n.trim()),s}};tY.default=tY;var tJ=tD,t$=class extends tJ{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return tY.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};t$.default=t$,tJ.registerRule(t$);var tX=function(e,t={}){let r,s,n,i,o,a,l,h,u,c,p=e.css.valueOf(),d=t.ignoreErrors,f=p.length,m=0,g=[],y=[];function w(t){throw e.error("Unclosed "+t,m)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&m>=f},nextToken:function(e){if(y.length)return y.pop();if(m>=f)return;let t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(m)){case 10:case 32:case 9:case 13:case 12:s=m;do s+=1,r=p.charCodeAt(s);while(32===r||10===r||9===r||13===r||12===r);c=["space",p.slice(m,s)],m=s-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(r);c=[e,e,m];break}case 40:if(h=g.length?g.pop()[1]:"",u=p.charCodeAt(m+1),"url"===h&&39!==u&&34!==u&&32!==u&&10!==u&&9!==u&&12!==u&&13!==u){s=m;do{if(a=!1,-1===(s=p.indexOf(")",s+1))){if(d||t){s=m;break}w("bracket")}for(l=s;
192===p.charCodeAt(l-1);)l-=1,a=!a}while(a);c=["brackets",p.slice(m,s+1),m,s],m=s}else s=p.indexOf(")",m+1),i=p.slice(m,s+1),-1===s||tj.test(i)?c=["(","(",m]:(c=["brackets",i,m,s],m=s);break;case 39:case 34:n=39===r?"'":'"',s=m;do{if(a=!1,-1===(s=p.indexOf(n,s+1))){if(d||t){s=m+1;break}w("string")}for(l=s;92===p.charCodeAt(l-1);)l-=1,a=!a}while(a);c=["string",p.slice(m,s+1),m,s],m=s;break;case 64:tU.lastIndex=m+1,tU.test(p),s=0===tU.lastIndex?p.length-1:tU.lastIndex-2,c=["at-word",p.slice(m,s+1),m,s],m=s;break;case 92:for(s=m,o=!0;92===p.charCodeAt(s+1);)s+=1,o=!o;if(r=p.charCodeAt(s+1),o&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(s+=1,tz.test(p.charAt(s)))){for(;tz.test(p.charAt(s+1));)s+=1;32===p.charCodeAt(s+1)&&(s+=1)}c=["word",p.slice(m,s+1),m,s],m=s;break;default:47===r&&42===p.charCodeAt(m+1)?(0===(s=p.indexOf("*/",m+2)+1)&&(d||t?s=p.length:w("comment")),c=["comment",p.slice(m,s+1),m,s]):(tB.lastIndex=m+1,tB.test(p),s=0===tB.lastIndex?p.length-1:tB.lastIndex-2,c=["word",p.slice(m,s+1),m,s],g.push(c)),m=s}return m++,c},position:function(){return m}}},tH={empty:!0,space:!0},tK=class{constructor(e){this.input=e,this.root=new tZ,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,s,n=new tV;n.name=e[1].slice(1),""===n.name&&this.unnamedAtrule(n,e),this.init(n,e[2]);let i=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){n.source.end=this.getPosition(e[2]),n.source.end.offset++,this.semicolon=!0;break}if("{"===t){o=!0;break}if("}"===t){if(a.length>0){for(s=a.length-1,r=a[s];r&&"space"===r[0];)r=a[--s];r&&(n.source.end=this.getPosition(r[3]||r[2]),n.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(n.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(n,"params",a),i&&(e=a[a.length-1],n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),o&&(n.nodes=[],this.current=n)}checkMissedSemicolon(e){let t,r=this.colon(e);if(!1===r)return;let s=0;for(let n=r-1;n>=0&&("space"===(t=e[n])[0]||2!==(s+=1));n--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}colon(e){let t,r,s=0;for(let[n,i]of e.entries()){if("("===(t=i[0])&&(s+=1),")"===t&&(s-=1),0===s&&":"===t){if(r){if("word"===r[0]&&"progid"===r[1])continue;return n}this.doubleColon(i)}r=i}return!1}comment(e){let t=new tR;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=tX(this.input)}decl(e,t){let r,s,n=new e7;this.init(n,e[0][2]);let i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],s=r[3]||r[2];if(s)return s}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(":"===(r=e.shift())[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}("_"===n.prop[0]||"*"===n.prop[0])&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[];for(;e.length&&("space"===(s=e[0][0])||"comment"===s);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if("!important"===(r=e[t])[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);" !important"!==(r=this.spacesFromEnd(e)+r)&&(n.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),s="";for(let e=t;e>0;e--){let t=r[e][0];if(0===s.trim().indexOf("!")&&"space"!==t)break;s=r.pop()[1]+s}0===s.trim().indexOf("!")&&(n.important=!0,n.raws.important=s,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(n.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new t$;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,s=!1,n=null,i=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)n||(n=l),i.push("("===r?")":"]");else if(o&&s&&"{"===r)n||(n=l),i.push("}");else if(0===i.length){if(";"===r){if(s){this.decl(a,o);return}break}if("{"===r){this.rule(a);return}if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(s=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(n=null));l=this.tokenizer.nextToken()}
1if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(n),t&&s){if(!o)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let n,i,o,a;let l=r.length,h="",u=!0;for(let e=0;e<l;e+=1)"space"!==(i=(n=r[e])[0])||e!==l-1||s?"comment"===i?(a=r[e-1]?r[e-1][0]:"empty",o=r[e+1]?r[e+1][0]:"empty",tH[a]||tH[o]?u=!1:","===h.slice(-1)?u=!1:h+=n[1]):h+=n[1]:u=!1;if(!u){let s=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:s,value:h}}e[t]=h}rule(e){e.pop();let t=new t$;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t;let r="";for(;e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t;let r="";for(;e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t="";for(;e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){let r="";for(let s=t;s<e.length;s++)r+=e[s][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};function tq(e,t){let r=new tK(new ty(e,t));try{r.parse()}catch(e){throw e}return r.root}tq.default=tq,tD.registerParse(tq);var{isClean:tQ,my:t0}=e1,t1={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},t2={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},t3={Once:!0,postcssPlugin:!0,prepare:!0};function t9(e){return"object"==typeof e&&"function"==typeof e.then}function t4(e){let t=!1,r=t1[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function t5(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:t4(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function t6(e){return e[tQ]=!1,e.nodes&&e.nodes.forEach(e=>t6(e)),e}var t8={},t7=class e{constructor(t,r,s){let n;if(this.stringified=!1,this.processed=!1,"object"==typeof r&&null!==r&&("root"===r.type||"document"===r.type))n=t6(r);else if(r instanceof e||r instanceof t_)n=t6(r.root),r.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=r.map);else{let e=tq;s.syntax&&(e=s.syntax.parse),s.parser&&(e=s.parser),e.parse&&(e=e.parse);try{n=e(r,s)}catch(e){this.processed=!0,this.error=e}n&&!n[t0]&&tD.rebuild(n)}this.result=new t_(t,n,s),this.helpers={...t8,postcss:t8,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!t2[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}
1. Try to update PostCSS (${this.processor.version} now).`);if(!t3[r]){if("object"==typeof t[r])for(let s in t[r])e(t,"*"===s?r:r+"-"+s.toLowerCase(),t[r][s]);else"function"==typeof t[r]&&e(t,r,t[r])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(t9(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[tQ];){e[tQ]=!0;let t=[t5(e)];for(;t.length>0;){let e=this.visitTick(t);if(t9(e))try{await e}catch(r){let e=t[t.length-1].node;throw this.handleError(r,e)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>r(e,this.helpers));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));if(t9(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=e9;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new tO(t,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 e of this.plugins)if(t9(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[tQ];)e[tQ]=!0,this.walkSync(e);if(this.listeners.OnceExit){if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,s]of e){let e;this.result.lastPlugin=r;try{e=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(t9(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:s}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[e,n]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return n(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){let s,n=t.iterator;for(;s=r.nodes[r.indexes[n]];)if(r.indexes[n]+=1,!s[tQ]){s[tQ]=!0,e.push(t5(s));return}t.iterator=0,delete r.indexes[n]}let n=t.events;for(;t.eventIndex<n.length;){let e=n[t.eventIndex];if(t.eventIndex+=1,0===e){r.nodes&&r.nodes.length&&(r[tQ]=!0,t.iterator=r.getIterator());return}if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){for(let t of(e[tQ]=!0,t4(e)))if(0===t)e.nodes&&e.each(e=>{e[tQ]||this.walkSync(e)});else{let r=this.listeners[t];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};t7.registerPostcss=e=>{t8=e},t7.default=t7,tZ.registerLazyResult(t7),tP.registerLazyResult(t7);var re=class{constructor(e,t,r){let s;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new t_(this._processor,s,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});let i=new tO(e9,s,this._opts,t);
1if(i.isMap()){let[e,t]=i.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else i.clearAnnotation(),this.result.css=i.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){let e;if(this._root)return this._root;try{e=tq(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}get[Symbol.toStringTag](){return"NoWorkResult"}};re.default=re;var rt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"==typeof r&&(r.parse||r.stringify));else throw Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new t7(this,e,t):new re(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};function rr(e,t){if(Array.isArray(e))return e.map(e=>rr(e));let{inputs:r,...s}=e;if(r)for(let e of(t=[],r)){let r={...e,__proto__:ty.prototype};r.map&&(r.map={...r.map,__proto__:to.prototype}),t.push(r)}if(s.nodes&&(s.nodes=e.nodes.map(e=>rr(e,t))),s.source){let{inputId:e,...r}=s.source;s.source=r,null!=e&&(s.source.input=t[e])}if("root"===s.type)return new tZ(s);if("decl"===s.type)return new e7(s);if("rule"===s.type)return new t$(s);if("comment"===s.type)return new tR(s);if("atrule"===s.type)return new tV(s);throw Error("Unknown node type: "+e.type)}function rs(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new rt(e)}rt.default=rt,tZ.registerProcessor(rt),tP.registerProcessor(rt),rr.default=rr,rs.plugin=function(e,t){let r,s=!1;function n(...r){console&&console.warn&&!s&&(s=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),z.env.LANG&&z.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=new rt().version,i}return Object.defineProperty(n,"postcss",{get:()=>(r||(r=n()),r)}),n.process=function(e,t,r){return rs([n(r)]).process(e,t)},n},rs.stringify=e9,rs.parse=tq,rs.fromJSON=rr,rs.list=tY,rs.comment=e=>new tR(e),rs.atRule=e=>new tV(e),rs.decl=e=>new e7(e),rs.rule=e=>new t$(e),rs.root=e=>new tZ(e),rs.document=e=>new tP(e),rs.CssSyntaxError=e0,rs.Declaration=e7,rs.Container=tD,rs.Processor=rt,rs.Document=tP,rs.Comment=tR,rs.Warning=tF,rs.AtRule=tV,rs.Result=t_,rs.Input=ty,rs.Rule=t$,rs.Root=tZ,rs.Node=e6,t7.registerPostcss(rs),rs.default=rs;var rn=rs&&rs.__esModule&&Object.prototype.hasOwnProperty.call(rs,"default")?rs.default:rs;rn.stringify,rn.fromJSON,rn.plugin,rn.parse,rn.list,rn.document,rn.comment,rn.atRule,rn.rule,rn.decl,rn.root,rn.CssSyntaxError,rn.Declaration,rn.Container,rn.Processor,rn.Document,rn.Comment,rn.Warning,rn.AtRule,rn.Result,rn.Input,rn.Rule,rn.Root,rn.Node;var ri=Object.defineProperty,ro=(e,t,r)=>t in e?ri(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ra=(e,t,r)=>ro(e,"symbol"!=typeof t?t+"":t,r),rl={exports:{}},rh=String,ru=function(){return{isColorSupported:!1,reset:rh,bold:rh,dim:rh,italic:rh,underline:rh,inverse:rh,hidden:rh,strikethrough:rh,black:rh,red:rh,green:rh,yellow:rh,blue:rh,magenta:rh,cyan:rh,white:rh,gray:rh,bgBlack:rh,bgRed:rh,bgGreen:rh,bgYellow:rh,bgBlue:rh,bgMagenta:rh,bgCyan:rh,bgWhite:rh}};rl.exports=ru(),rl.exports.createColors=ru;var rc=rl.exports,rp=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};
1return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),rd=class e extends Error{constructor(t,r,s,n,i,o){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),void 0!==r&&void 0!==s&&("number"==typeof r?(this.line=r,this.column=s):(this.line=r.line,this.column=r.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){let t,r;if(!this.source)return"";let s=this.source;null==e&&(e=rc.isColorSupported),rp&&e&&(s=rp(s));let n=s.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),a=String(o).length;if(e){let{bold:e,gray:s,red:n}=rc.createColors(!0);t=t=>e(n(t)),r=e=>s(e)}else t=r=e=>e;return n.slice(i,o).map((e,s)=>{let n=i+1+s,o=" "+(" "+n).slice(-a)+" | ";if(n===this.line){let s=r(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+r(o)+e+"\n "+s+t("^")}return" "+r(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};rd.default=rd;var rf={};rf.isClean=Symbol("isClean"),rf.my=Symbol("my");var rm={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},rg=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+s+n,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let s=e.parent,n=0;for(;s&&"root"!==s.type;)n+=1,s=s.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<n;e++)r+=t}return r}block(e,t){let r,s=this.raw(e,"between","beforeOpen");this.builder(t+s+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let n=e.nodes[s],i=this.raw(n,"before");i&&this.builder(i),this.stringify(n,t!==s||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),s=e.prop+r+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,t,r){let s;if(r||(r=t),t&&void 0!==(s=e.raws[t]))return s;let n=e.parent;if("before"===r&&(!n||"root"===n.type&&n.first===e||n&&"document"===n.type))return"";if(!n)return rm[r];let i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{var o;let n="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[n]?s=this[n](i,e):i.walk(e=>{if(void 0!==(s=e.raws[t]))return!1})}return void 0===s&&(s=rm[r]),i.rawCache[r]=s,s}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}rawIndent(e){let t;return e.raws.indent?e.raws.indent:(e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=(t=e[e.length-1]).replace(/\S/g,""),!1}}),t)}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}rawValue(e,t){let r=e[t],s=e.raws[t];return s&&s.value===r?s.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};function ry(e,t){new rg(t).stringify(e)}rg.default=rg,ry.default=ry;var{isClean:rw,my:rb}=rf,rv=class{constructor(e={}){for(let t in this.raws={},this[rw]=!1,this[rb]=!0,e)if("nodes"===t)for(let r of(this.nodes=[],e[t]))"function"==typeof r.clone?this.append(r.clone()):this.append(r);else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=function e(t,r){let s=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||"proxyCache"===n)continue;let i=t[n],o=typeof i;"parent"===n&&"object"===o?r&&(s[n]=r):"source"===n?s[n]=i:Array.isArray(i)?s[n]=i.map(t=>e(t,s)):("object"===o&&null!==i&&(i=e(i)),s[n]=i)}return s}(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}
1error(e,t={}){if(this.source){let{end:r,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new rd(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}markDirty(){if(this[rw]){this[rw]=!1;let e=this;for(;e=e.parent;)e[rw]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let s=(t=this.toString()).indexOf(e.word);-1!==s&&(r=this.positionInside(s,t))}return r}positionInside(e,t){let r=t||this.toString(),s=this.source.start.column,n=this.source.start.line;for(let t=0;t<e;t++)"\n"===r[t]?(s=1,n+=1):s+=1;return{column:s,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s=this.toString(),n=s.indexOf(e.word);-1!==n&&(t=this.positionInside(n,s),r=this.positionInside(n+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new rg().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let s of e)s===this?r=!0:r?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},s=null==t;t=t||new Map;let n=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||"parent"===e||"proxyCache"===e)continue;let s=this[e];if(Array.isArray(s))r[e]=s.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof s&&s.toJSON)r[e]=s.toJSON(null,t);else if("source"===e){let i=t.get(s.input);null==i&&(i=n,t.set(s.input,n),n++),r[e]={end:s.end,inputId:i,start:s.start}}else r[e]=s}return s&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=ry){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let s={node:this};for(let e in r)s[e]=r[e];return e.warn(t,s)}get proxyOf(){return this}};rv.default=rv;var rS=rv,rC=class extends rS{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};rC.default=rC;var{SourceMapConsumer:rI,SourceMapGenerator:rx}=rp,{existsSync:rk,readFileSync:rM}=rp,{dirname:rO,join:rA}=rp,rR=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,s=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=rO(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new rI(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),j?j.from(t,"base64").toString():window.atob(t)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);
1if(!t)return;let r=e.lastIndexOf(t.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}loadFile(e){if(this.root=rO(e),rk(e))return this.mapFile=e,rM(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"==typeof t){let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw Error("Unable to load previous source map: "+r.toString());return e}}else if(t instanceof rI)return rx.fromSourceMap(t).toString();else if(t instanceof rx)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;return e&&(t=rA(rO(e),t)),this.loadFile(t)}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};rR.default=rR;var{SourceMapConsumer:rE,SourceMapGenerator:rN}=rp,{fileURLToPath:rT,pathToFileURL:rD}=rp,{isAbsolute:rL,resolve:rP}=rp,{nanoid:rF}={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let s="",n=r;for(;n--;)s+=e[Math.random()*e.length|0];return s}}
1,r_=Symbol("fromOffsetCache"),rU=!!(rE&&rN),rB=!!(rP&&rL),rj=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!rB||/^\w+:\/\//.test(t.from)||rL(t.from)?this.file=t.from:this.file=rP(t.from)),rB&&rU){let e=new rR(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+rF(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,s={}){let n,i,o;if(t&&"object"==typeof t){let e=t,s=r;if("number"==typeof e.offset){let s=this.fromOffset(e.offset);t=s.line,r=s.col}else t=e.line,r=e.column;if("number"==typeof s.offset){let e=this.fromOffset(s.offset);i=e.line,o=e.col}else i=s.line,o=s.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,i,o);return(n=a?new rd(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,s.plugin):new rd(e,void 0===i?t:{column:r,line:t},void 0===i?r:{column:o,line:i},this.css,this.file,s.plugin)).input={column:r,endColumn:o,endLine:i,line:t,source:this.css},this.file&&(rD&&(n.input.url=rD(this.file).toString()),n.input.file=this.file),n}fromOffset(e){let t,r;if(this[r_])r=this[r_];else{let e=this.css.split("\n");r=Array(e.length);let t=0;for(let s=0,n=e.length;s<n;s++)r[s]=t,t+=e[s].length+1;this[r_]=r}t=r[r.length-1];let s=0;if(e>=t)s=r.length-1;else{let t,n=r.length-2;for(;s<n;)if(e<r[t=s+(n-s>>1)])n=t-1;else if(e>=r[t+1])s=t+1;else{s=t;break}}return{col:e-r[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:rP(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,s){let n,i;if(!this.map)return!1;let o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(n=o.originalPositionFor({column:s,line:r})),i=rL(a.source)?rD(a.source):new URL(a.source,this.map.consumer().sourceRoot||rD(this.map.mapFile));let l={column:a.column,endColumn:n&&n.column,endLine:n&&n.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(rT)l.file=rT(i);else throw Error("file: protocol is not available in this PostCSS build")}let h=o.sourceContentFor(a.source);return h&&(l.source=h),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};rj.default=rj,rp&&rp.registerInput&&rp.registerInput(rj);var{SourceMapConsumer:rz,SourceMapGenerator:rW}=rp,{dirname:rV,relative:rG,resolve:rZ,sep:rY}=rp,{pathToFileURL:rJ}=rp,r$=!!(rz&&rW),rX=!!(rV&&rZ&&rG&&rY),rH=class{constructor(e,t,r,s){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),s=e.root||rV(e.file);!1===this.mapOpts.sourcesContent?(t=new rz(e.text)).sourcesContent&&(t.sourcesContent=null):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(s)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation){if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}}generate(){if(this.clearAnnotation(),rX&&r$&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=rW.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new rW({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(){let e,t;this.css="",this.map=new rW({file:this.outputFile(),ignoreInvalidMapping:!0});let r=1,s=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(i.generated.line=r,i.generated.column=s-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1):(i.source=n,i.original.line=1,i.original.column=0),this.map.addMapping(i)),(e=o.match(/\n/g))?(r+=e.length,t=o.lastIndexOf("\n"),s=o.length-t):s+=o.length,a&&"start"!==l){let e=a.parent||{raws:{}};(!("decl"===a.type||"atrule"===a.type&&!a.nodes)||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=r,i.generated.column=s-2):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=r,i.generated.column=s-1),this.map.addMapping(i))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?rV(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=rV(rZ(r,this.mapOpts.annotation)));let s=rG(r,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new rj(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let s=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return j?j.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(rJ){let t=rJ(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===rY&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},rK=rv,rq=class extends rK{constructor(e){super(e),this.type="comment"}};rq.default=rq;var{isClean:rQ,my:r0}=rf,r1=rv,r2=class e extends r1{append(...e){for(let t of e)for(let e of this.normalize(t,this.last))this.proxyOf.nodes.push(e);return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){let t,r;if(!this.proxyOf.nodes)return;let s=this.getIterator();for(;this.indexes[s]<this.proxyOf.nodes.length&&(t=this.indexes[s],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[s]+=1;return delete this.indexes[s],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e));if("every"===t||"some"===t)return r=>e[t]((e,...t)=>r(e.toProxy(),...t));if("root"===t)return()=>
1e.root().toProxy();if("nodes"===t)return e.nodes.map(e=>e.toProxy());if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:(e,t,r)=>e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,s=this.index(e),n=this.normalize(t,this.proxyOf.nodes[s]).reverse();for(let t of(s=this.index(e),n))this.proxyOf.nodes.splice(s+1,0,t);for(let e in this.indexes)s<(r=this.indexes[e])&&(this.indexes[e]=r+n.length);return this.markDirty(),this}insertBefore(e,t){let r,s=this.index(e),n=0===s&&"prepend",i=this.normalize(t,this.proxyOf.nodes[s],n).reverse();for(let t of(s=this.index(e),i))this.proxyOf.nodes.splice(s,0,t);for(let e in this.indexes)s<=(r=this.indexes[e])&&(this.indexes[e]=r+i.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(M(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t))for(let e of t=t.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if("root"===t.type&&"document"!==this.type)for(let e of t=t.nodes.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new rC(t)]}else if(t.selector)t=[new O(t)];else if(t.name)t=[new A(t)];else if(t.text)t=[new rq(t)];else throw Error("Unknown node type in node creation");return t.map(t=>(t[r0]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[rQ]&&function e(t){if(t[rQ]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e(r)}(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){for(let t of e=e.reverse()){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;for(let r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(s=>{(!t.props||t.props.includes(s.prop))&&(!t.fast||s.value.includes(t.fast))&&(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let s;try{s=e(t,r)}catch(e){throw t.addToError(e)}return!1!==s&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("atrule"===r.type&&e.test(r.name))return t(r,s)}):this.walk((r,s)=>{if("atrule"===r.type&&r.name===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("decl"===r.type&&e.test(r.prop))return t(r,s)}):this.walk((r,s)=>{if("decl"===r.type&&r.prop===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("rule"===r.type&&e.test(r.selector))return t(r,s)}):this.walk((r,s)=>{if("rule"===r.type&&r.selector===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}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]}};r2.registerParse=e=>{M=e},r2.registerRule=e=>{O=e},r2.registerAtRule=e=>{A=e},r2.registerRoot=e=>{R=e},r2.default=r2,r2.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,A.prototype):"rule"===e.type?Object.setPrototypeOf(e,O.prototype):"decl"===e.type?Object.setPrototypeOf(e,rC.prototype):"comment"===e.type?Object.setPrototypeOf(e,rq.prototype):"root"===e.type&&Object.setPrototypeOf(e,R.prototype),e[r0]=!0,e.nodes&&e.nodes.forEac
1h(e=>{r2.rebuild(e)})};var r3=r2,r9=class extends r3{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new E(new N,this,e).stringify()}};r9.registerLazyResult=e=>{E=e},r9.registerProcessor=e=>{N=e},r9.default=r9;var r4=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}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}};r4.default=r4;var r5=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new r4(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};r5.default=r5;var r6=/[\t\n\f\r "#'()/;[\\\]{}]/g,r8=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,r7=/.[\r\n"'(/\\]/,se=/[\da-f]/i,st=r2,sr=class extends st{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};sr.default=sr,st.registerAtRule(sr);var ss=r2,sn=class extends ss{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let s=super.normalize(e);if(t){if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of s)e.raws.before=t.raws.before}return s}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new T(new D,this,e).stringify()}};sn.registerLazyResult=e=>{T=e},sn.registerProcessor=e=>{D=e},sn.default=sn,ss.registerRoot(sn);var si={comma:e=>si.split(e,[","],!0),space:e=>si.split(e,[" ","\n"," "]),split(e,t,r){let s=[],n="",i=!1,o=0,a=!1,l="",h=!1;for(let r of e)h?h=!1:"\\"===r?h=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&t.includes(r)&&(i=!0),i?(""!==n&&s.push(n.trim()),n="",i=!1):n+=r;return(r||""!==n)&&s.push(n.trim()),s}};si.default=si;var so=r2,sa=class extends so{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return si.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};sa.default=sa,so.registerRule(sa);var sl=function(e,t={}){let r,s,n,i,o,a,l,h,u,c,p=e.css.valueOf(),d=t.ignoreErrors,f=p.length,m=0,g=[],y=[];function w(t){throw e.error("Unclosed "+t,m)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&m>=f},nextToken:function(e){if(y.length)return y.pop();if(m>=f)return;let t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(m)){case 10:case 32:case 9:case 13:case 12:s=m;do s+=1,r=p.charCodeAt(s);while(32===r||10===r||9===r||13===r||12===r);c=["space",p.slice(m,s)],m=s-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(r);c=[e,e,m];break}case 40:if(h=g.length?g.pop()[1]:"",u=p.charCodeAt(m+1),"url"===h&&39!==u&&34!==u&&32!==u&&10!==u&&9!==u&&12!==u&&13!==u){s=m;do{if(a=!1,-1===(s=p.indexOf(")",s+1))){if(d||t){s=m;break}w("bracket")}for(l=s;
192===p.charCodeAt(l-1);)l-=1,a=!a}while(a);c=["brackets",p.slice(m,s+1),m,s],m=s}else s=p.indexOf(")",m+1),i=p.slice(m,s+1),-1===s||r7.test(i)?c=["(","(",m]:(c=["brackets",i,m,s],m=s);break;case 39:case 34:n=39===r?"'":'"',s=m;do{if(a=!1,-1===(s=p.indexOf(n,s+1))){if(d||t){s=m+1;break}w("string")}for(l=s;92===p.charCodeAt(l-1);)l-=1,a=!a}while(a);c=["string",p.slice(m,s+1),m,s],m=s;break;case 64:r6.lastIndex=m+1,r6.test(p),s=0===r6.lastIndex?p.length-1:r6.lastIndex-2,c=["at-word",p.slice(m,s+1),m,s],m=s;break;case 92:for(s=m,o=!0;92===p.charCodeAt(s+1);)s+=1,o=!o;if(r=p.charCodeAt(s+1),o&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(s+=1,se.test(p.charAt(s)))){for(;se.test(p.charAt(s+1));)s+=1;32===p.charCodeAt(s+1)&&(s+=1)}c=["word",p.slice(m,s+1),m,s],m=s;break;default:47===r&&42===p.charCodeAt(m+1)?(0===(s=p.indexOf("*/",m+2)+1)&&(d||t?s=p.length:w("comment")),c=["comment",p.slice(m,s+1),m,s]):(r8.lastIndex=m+1,r8.test(p),s=0===r8.lastIndex?p.length-1:r8.lastIndex-2,c=["word",p.slice(m,s+1),m,s],g.push(c)),m=s}return m++,c},position:function(){return m}}},sh={empty:!0,space:!0},su=class{constructor(e){this.input=e,this.root=new sn,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,s,n=new sr;n.name=e[1].slice(1),""===n.name&&this.unnamedAtrule(n,e),this.init(n,e[2]);let i=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){n.source.end=this.getPosition(e[2]),n.source.end.offset++,this.semicolon=!0;break}if("{"===t){o=!0;break}if("}"===t){if(a.length>0){for(s=a.length-1,r=a[s];r&&"space"===r[0];)r=a[--s];r&&(n.source.end=this.getPosition(r[3]||r[2]),n.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(n.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(n,"params",a),i&&(e=a[a.length-1],n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),o&&(n.nodes=[],this.current=n)}checkMissedSemicolon(e){let t,r=this.colon(e);if(!1===r)return;let s=0;for(let n=r-1;n>=0&&("space"===(t=e[n])[0]||2!==(s+=1));n--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}colon(e){let t,r,s=0;for(let[n,i]of e.entries()){if("("===(t=i[0])&&(s+=1),")"===t&&(s-=1),0===s&&":"===t){if(r){if("word"===r[0]&&"progid"===r[1])continue;return n}this.doubleColon(i)}r=i}return!1}comment(e){let t=new rq;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=sl(this.input)}decl(e,t){let r,s,n=new rC;this.init(n,e[0][2]);let i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],s=r[3]||r[2];if(s)return s}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(":"===(r=e.shift())[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}("_"===n.prop[0]||"*"===n.prop[0])&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[];for(;e.length&&("space"===(s=e[0][0])||"comment"===s);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if("!important"===(r=e[t])[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);" !important"!==(r=this.spacesFromEnd(e)+r)&&(n.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),s="";for(let e=t;e>0;e--){let t=r[e][0];if(0===s.trim().indexOf("!")&&"space"!==t)break;s=r.pop()[1]+s}0===s.trim().indexOf("!")&&(n.important=!0,n.raws.important=s,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(n.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new sa;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,s=!1,n=null,i=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)n||(n=l),i.push("("===r?")":"]");else if(o&&s&&"{"===r)n||(n=l),i.push("}");else if(0===i.length){if(";"===r){if(s){this.decl(a,o);return}break}if("{"===r){this.rule(a);return}if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(s=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(n=null));l=this.tokenizer.nextToken()}
1if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(n),t&&s){if(!o)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let n,i,o,a;let l=r.length,h="",u=!0;for(let e=0;e<l;e+=1)"space"!==(i=(n=r[e])[0])||e!==l-1||s?"comment"===i?(a=r[e-1]?r[e-1][0]:"empty",o=r[e+1]?r[e+1][0]:"empty",sh[a]||sh[o]?u=!1:","===h.slice(-1)?u=!1:h+=n[1]):h+=n[1]:u=!1;if(!u){let s=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:s,value:h}}e[t]=h}rule(e){e.pop();let t=new sa;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t;let r="";for(;e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t;let r="";for(;e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t="";for(;e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){let r="";for(let s=t;s<e.length;s++)r+=e[s][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};function sc(e,t){let r=new su(new rj(e,t));try{r.parse()}catch(e){throw e}return r.root}sc.default=sc,r2.registerParse(sc);var{isClean:sp,my:sd}=rf,sf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},sm={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},sg={Once:!0,postcssPlugin:!0,prepare:!0};function sy(e){return"object"==typeof e&&"function"==typeof e.then}function sw(e){let t=!1,r=sf[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function sb(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:sw(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function sv(e){return e[sp]=!1,e.nodes&&e.nodes.forEach(e=>sv(e)),e}var sS={},sC=class e{constructor(t,r,s){let n;if(this.stringified=!1,this.processed=!1,"object"==typeof r&&null!==r&&("root"===r.type||"document"===r.type))n=sv(r);else if(r instanceof e||r instanceof r5)n=sv(r.root),r.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=r.map);else{let e=sc;s.syntax&&(e=s.syntax.parse),s.parser&&(e=s.parser),e.parse&&(e=e.parse);try{n=e(r,s)}catch(e){this.processed=!0,this.error=e}n&&!n[sd]&&r2.rebuild(n)}this.result=new r5(t,n,s),this.helpers={...sS,postcss:sS,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!sm[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}
1. Try to update PostCSS (${this.processor.version} now).`);if(!sg[r]){if("object"==typeof t[r])for(let s in t[r])e(t,"*"===s?r:r+"-"+s.toLowerCase(),t[r][s]);else"function"==typeof t[r]&&e(t,r,t[r])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(sy(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[sp];){e[sp]=!0;let t=[sb(e)];for(;t.length>0;){let e=this.visitTick(t);if(sy(e))try{await e}catch(r){let e=t[t.length-1].node;throw this.handleError(r,e)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>r(e,this.helpers));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));if(sy(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=ry;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new rH(t,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 e of this.plugins)if(sy(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[sp];)e[sp]=!0,this.walkSync(e);if(this.listeners.OnceExit){if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,s]of e){let e;this.result.lastPlugin=r;try{e=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(sy(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:s}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[e,n]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return n(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){let s,n=t.iterator;for(;s=r.nodes[r.indexes[n]];)if(r.indexes[n]+=1,!s[sp]){s[sp]=!0,e.push(sb(s));return}t.iterator=0,delete r.indexes[n]}let n=t.events;for(;t.eventIndex<n.length;){let e=n[t.eventIndex];if(t.eventIndex+=1,0===e){r.nodes&&r.nodes.length&&(r[sp]=!0,t.iterator=r.getIterator());return}if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){for(let t of(e[sp]=!0,sw(e)))if(0===t)e.nodes&&e.each(e=>{e[sp]||this.walkSync(e)});else{let r=this.listeners[t];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};sC.registerPostcss=e=>{sS=e},sC.default=sC,sn.registerLazyResult(sC),r9.registerLazyResult(sC);var sI=class{constructor(e,t,r){let s;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new r5(this._processor,s,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});let i=new rH(ry,s,this._opts,t);
1if(i.isMap()){let[e,t]=i.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else i.clearAnnotation(),this.result.css=i.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){let e;if(this._root)return this._root;try{e=sc(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}get[Symbol.toStringTag](){return"NoWorkResult"}};sI.default=sI;var sx=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"==typeof r&&(r.parse||r.stringify));else throw Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new sC(this,e,t):new sI(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};function sk(e,t){if(Array.isArray(e))return e.map(e=>sk(e));let{inputs:r,...s}=e;if(r)for(let e of(t=[],r)){let r={...e,__proto__:rj.prototype};r.map&&(r.map={...r.map,__proto__:rR.prototype}),t.push(r)}if(s.nodes&&(s.nodes=e.nodes.map(e=>sk(e,t))),s.source){let{inputId:e,...r}=s.source;s.source=r,null!=e&&(s.source.input=t[e])}if("root"===s.type)return new sn(s);if("decl"===s.type)return new rC(s);if("rule"===s.type)return new sa(s);if("comment"===s.type)return new rq(s);if("atrule"===s.type)return new sr(s);throw Error("Unknown node type: "+e.type)}function sM(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new sx(e)}sx.default=sx,sn.registerProcessor(sx),r9.registerProcessor(sx),sk.default=sk,sM.plugin=function(e,t){let r,s=!1;function n(...r){console&&console.warn&&!s&&(s=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),z.env.LANG&&z.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=new sx().version,i}return Object.defineProperty(n,"postcss",{get:()=>(r||(r=n()),r)}),n.process=function(e,t,r){return sM([n(r)]).process(e,t)},n},sM.stringify=ry,sM.parse=sc,sM.fromJSON=sk,sM.list=si,sM.comment=e=>new rq(e),sM.atRule=e=>new sr(e),sM.decl=e=>new rC(e),sM.rule=e=>new sa(e),sM.root=e=>new sn(e),sM.document=e=>new r9(e),sM.CssSyntaxError=rd,sM.Declaration=rC,sM.Container=r2,sM.Processor=sx,sM.Document=r9,sM.Comment=rq,sM.Warning=r4,sM.AtRule=sr,sM.Result=r5,sM.Input=rj,sM.Rule=sa,sM.Root=sn,sM.Node=rv,sC.registerPostcss(sM),sM.default=sM;var sO=sM&&sM.__esModule&&Object.prototype.hasOwnProperty.call(sM,"default")?sM.default:sM;sO.stringify,sO.fromJSON,sO.plugin,sO.parse,sO.list,sO.document,sO.comment,sO.atRule,sO.rule,sO.decl,sO.root,sO.CssSyntaxError,sO.Declaration,sO.Container,sO.Processor,sO.Document,sO.Comment,sO.Warning,sO.AtRule,sO.Result,sO.Input,sO.Rule,sO.Root,sO.Node;var sA=class e{constructor(...e){ra(this,"parentElement",null),ra(this,"parentNode",null),ra(this,"ownerDocument"),ra(this,"firstChild",null),ra(this,"lastChild",null),ra(this,"previousSibling",null),ra(this,"nextSibling",null),ra(this,"ELEMENT_NODE",1),ra(this,"TEXT_NODE",3),ra(this,"nodeType"),ra(this,"nodeName"),ra(this,"RRNodeType")}get childNodes(){let e=[],t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(t){if(!(t instanceof e)||t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(e){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}},sR={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},sE={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},sN={},sT=()=>!!globalThis.Zone;function sD(e){if(sN[e])return sN[e];let t=globalThis[e],r=t.prototype,s=e in sR?sR[e]:void 0,n=!!(s&&s.every(e=>{var t,s;return!!(null==(s=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:s.toString().includes("[native code]"))})),i=e in sE?sE[e]:void 0,o=!!(i&&i.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(n&&o&&!sT())return sN[e]=t.prototype,t.prototype;try{let s=document.createElement("iframe");document.body.appendChild(s);let n=s.contentWindow;if(!n)return t.prototype;let i=n[e].prototype;if(document.body.removeChild(s),!i)return r;return sN[e]=i}catch{return r}}var sL={};function sP(e,t,r){var s;let n=`${e}.${String(r)}`;if(sL[n])return sL[n].call(t);let i=null==(s=Object.getOwnPropertyDescriptor(sD(e),r))?void 0:s.get;return i?(sL[n]=i,i.call(t)):t[r]}var sF={};function s_(e,t,r){let s=`${e}.${String(r)}`;
1if(sF[s])return sF[s].bind(t);let n=sD(e)[r];return"function"!=typeof n?t[r]:(sF[s]=n,n.bind(t))}function sU(e,t,r){try{if(!(t in e))return()=>{};let s=e[t],n=r(s);return"function"==typeof n&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=n,()=>{e[t]=s}}catch{return()=>{}}}var sB={ownerDocument:function(e){return sP("Node",e,"ownerDocument")},childNodes:function(e){return sP("Node",e,"childNodes")},parentNode:function(e){return sP("Node",e,"parentNode")},parentElement:function(e){return sP("Node",e,"parentElement")},textContent:function(e){return sP("Node",e,"textContent")},contains:function(e,t){return s_("Node",e,"contains")(t)},getRootNode:function(e){return s_("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?sP("ShadowRoot",e,"host"):null},shadowRoot:function(e){return e&&"shadowRoot"in e?sP("Element",e,"shadowRoot"):null}};function sj(e,t,r=document){let s={capture:!0,passive:!0};return r.addEventListener(e,t,s),()=>r.removeEventListener(e,t,s)}var sz="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",sW={map:{},getId:()=>(console.error(sz),-1),getNode:()=>(console.error(sz),null),removeNodeFromMap(){console.error(sz)},has:()=>(console.error(sz),!1),reset(){console.error(sz)}};function sV(e,t,r={}){let s=null,n=0;return function(...i){let o=Date.now();n||!1!==r.leading||(n=o);let a=t-(o-n),l=this;a<=0||a>t?(s&&(clearTimeout(s),s=null),n=o,e.apply(l,i)):s||!1===r.trailing||(s=setTimeout(()=>{n=!1===r.leading?0:Date.now(),s=null,e.apply(l,i)},a))}}function sG(e,t,r,s,n=window){let i=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,s?r:{set(e){setTimeout(()=>{r.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>sG(e,t,i||{},!0)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(sW=new Proxy(sW,{get:(e,t,r)=>("map"===t&&console.error(sz),Reflect.get(e,t,r))}));var sZ=Date.now;function sY(e){var t,r,s,n;let i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:i.documentElement.scrollLeft||(null==i?void 0:i.body)&&(null==(t=sB.parentElement(i.body))?void 0:t.scrollLeft)||(null==(r=null==i?void 0:i.body)?void 0:r.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==i?void 0:i.documentElement.scrollTop)||(null==i?void 0:i.body)&&(null==(s=sB.parentElement(i.body))?void 0:s.scrollTop)||(null==(n=null==i?void 0:i.body)?void 0:n.scrollTop)||0}}function sJ(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function s$(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function sX(e){return e?e.nodeType===e.ELEMENT_NODE?e:sB.parentElement(e):null}function sH(e,t,r,s){if(!e)return!1;let n=sX(e);if(!n)return!1;try{if("string"==typeof t){if(n.classList.contains(t)||s&&null!==n.closest("."+t))return!0}else if(eG(n,t,s))return!0}catch(e){}return!!(r&&(n.matches(r)||s&&null!==n.closest(r)))}function sK(e,t,r){return"TITLE"===e.tagName&&!!r.headTitleMutations||-2===t.getId(e)}function sq(e){return!!e.changedTouches}function sQ(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function s0(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function s1(e){return!!e&&(e instanceof sA&&"shadowRoot"in e?!!e.shadowRoot:!!sB.shadowRoot(e))}/[1-9][0-9]{12}/.test(Date.now().toString())||(sZ=()=>new Date().getTime());var s2=class{constructor(){ei(this,"id",1),ei(this,"styleIDMap",new WeakMap),ei(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function s3(e){var t;let r=null;return"getRootNode"in e&&(null==(t=sB.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&sB.host(sB.getRootNode(e))&&(r=sB.host(sB.getRootNode(e))),r}function s9(e){let t=sB.ownerDocument(e);return!!t&&(sB.contains(t,e)||function(e){let t=sB.ownerDocument(e);
1if(!t)return!1;let r=function(e){let t,r=e;for(;t=s3(r);)r=t;return r}(e);return sB.contains(t,r)}(e))}var s4=((n=s4||{})[n.DomContentLoaded=0]="DomContentLoaded",n[n.Load=1]="Load",n[n.FullSnapshot=2]="FullSnapshot",n[n.IncrementalSnapshot=3]="IncrementalSnapshot",n[n.Meta=4]="Meta",n[n.Custom=5]="Custom",n[n.Plugin=6]="Plugin",n),s5=((i=s5||{})[i.Mutation=0]="Mutation",i[i.MouseMove=1]="MouseMove",i[i.MouseInteraction=2]="MouseInteraction",i[i.Scroll=3]="Scroll",i[i.ViewportResize=4]="ViewportResize",i[i.Input=5]="Input",i[i.TouchMove=6]="TouchMove",i[i.MediaInteraction=7]="MediaInteraction",i[i.StyleSheetRule=8]="StyleSheetRule",i[i.CanvasMutation=9]="CanvasMutation",i[i.Font=10]="Font",i[i.Log=11]="Log",i[i.Drag=12]="Drag",i[i.StyleDeclaration=13]="StyleDeclaration",i[i.Selection=14]="Selection",i[i.AdoptedStyleSheet=15]="AdoptedStyleSheet",i[i.CustomElement=16]="CustomElement",i),s6=((o=s6||{})[o.MouseUp=0]="MouseUp",o[o.MouseDown=1]="MouseDown",o[o.Click=2]="Click",o[o.ContextMenu=3]="ContextMenu",o[o.DblClick=4]="DblClick",o[o.Focus=5]="Focus",o[o.Blur=6]="Blur",o[o.TouchStart=7]="TouchStart",o[o.TouchMove_Departed=8]="TouchMove_Departed",o[o.TouchEnd=9]="TouchEnd",o[o.TouchCancel=10]="TouchCancel",o),s8=((a=s8||{})[a.Mouse=0]="Mouse",a[a.Pen=1]="Pen",a[a.Touch=2]="Touch",a),s7=((l=s7||{})[l["2D"]=0]="2D",l[l.WebGL=1]="WebGL",l[l.WebGL2=2]="WebGL2",l),ne=((h=ne||{})[h.Play=0]="Play",h[h.Pause=1]="Pause",h[h.Seeked=2]="Seeked",h[h.VolumeChange=3]="VolumeChange",h[h.RateChange=4]="RateChange",h),nt=((u=nt||{})[u.Document=0]="Document",u[u.DocumentType=1]="DocumentType",u[u.Element=2]="Element",u[u.Text=3]="Text",u[u.CDATA=4]="CDATA",u[u.Comment=5]="Comment",u),nr=class{constructor(){ei(this,"length",0),ei(this,"head",null),ei(this,"tail",null)}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}},ns=(e,t)=>`${e}@${t}`,nn=class{constructor(){ei(this,"frozen",!1),ei(this,"locked",!1),ei(this,"texts",[]),ei(this,"attributes",[]),ei(this,"attributeMap",new WeakMap),ei(this,"removes",[]),ei(this,"mapRemoves",[]),ei(this,"movedMap",{}),ei(this,"addedSet",new Set),ei(this,"movedSet",new Set),ei(this,"droppedSet",new Set),ei(this,"removesSubTreeCache",new Set),ei(this,"mutationCb"),ei(this,"blockClass"),ei(this,"blockSelector"),ei(this,"maskTextClass"),ei(this,"maskTextSelector"),ei(this,"inlineStylesheet"),ei(this,"maskInputOptions"),ei(this,"maskTextFn"),ei(this,"maskInputFn"),ei(this,"keepIframeSrcFn"),ei(this,"recordCanvas"),ei(this,"inlineImages"),ei(this,"slimDOMOptions"),ei(this,"dataURLOptions"),ei(this,"doc"),ei(this,"mirror"),ei(this,"iframeManager"),ei(this,"stylesheetManager"),ei(this,"shadowDomManager"),ei(this,"canvasManager"),ei(this,"processedNodeManager"),ei(this,"unattachedDoc"),ei(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),ei(this,"emit",()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new nr,s=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},n=n=>{let i=sB.parentNode(n);if(!i||!s9(n))return;let o=!1;if(n.nodeType===Node.TEXT_NODE){let e=i.tagName;if("TEXTAREA"===e)return;"STYLE"===e&&this.addedSet.has(i)&&(o=!0)}let a=ew(i)?this.mirror.getId(s3(n)):this.mirror.getId(i),l=s(n);if(-1===a||-1===l)return r.addNode(n);let h=e$(n,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inl
1ineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{sQ(e,this.mirror)&&this.iframeManager.addIframe(e),s0(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),s1(n)&&this.shadowDomManager.addShadowRoot(sB.shadowRoot(n),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},cssCaptured:o});h&&(e.push({parentId:a,nextId:l,node:h}),t.add(h.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!no(this.removesSubTreeCache,e,this.mirror)||this.movedSet.has(sB.parentNode(e)))&&n(e);for(let e of this.addedSet)na(this.droppedSet,e)||no(this.removesSubTreeCache,e,this.mirror)?na(this.movedSet,e)?n(e):this.droppedSet.add(e):n(e);let i=null;for(;r.length;){let e=null;if(i){let t=this.mirror.getId(sB.parentNode(i.value)),r=s(i.value);-1!==t&&-1!==r&&(e=i)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(sB.parentNode(r.value));if(-1===s(r.value))continue;if(-1!==t){e=r;break}{let t=r.value,s=sB.parentNode(t);if(s&&s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let t=sB.host(s);if(-1!==this.mirror.getId(t)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}i=e.previous,r.removeNode(e.value),n(e.value)}let o={texts:this.texts.map(e=>{let t=e.node,r=sB.parentNode(t);return r&&"TEXTAREA"===r.tagName&&this.genTextAreaValueMutation(r),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),s=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+s).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.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(o))}),ei(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));let r=Array.from(sB.childNodes(e),e=>sB.textContent(e)||"").join("");t.attributes.value=eI({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:eM(e),value:r,maskInputFn:this.maskInputFn})}),ei(this,"processMutation",e=>{if(!sK(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{let t=sB.textContent(e.target);sH(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:eZ(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,sX(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,s=e.target.getAttribute(r);if("value"===r){let e=eM(t);s=eI({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:s,maskInputFn:this.maskInputFn})}if(sH(e.target,this.blockClass,this.blockSelector,!1)||s===e.oldValue)return;let n=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(s)){if(t.contentDocument)return;r="rr_src"}if(n||(n={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(e.target,n)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!eV(t.tagName,r)){if(n.attributes[r]=eW(this.doc,ex(t.tagName),ex(r),s),"style"===r){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let s of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(s),i=t.style.getPropertyPriority(s);e!==r.style.getPropertyValue(s)||i!==r.style.getPropertyPriority(s)?""===i?n.styleDiff[s]=e:n.styleDiff[s]=[e,i]:n._unchangedStyles[s]=[e,i]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(n.styleDiff[e]=!1)}else"open"===r&&"DIALOG"===t.tagName&&(t.matches("dialog:modal")?n.attributes.rr_open_mode="modal":n.attributes.rr_open_mode="non-modal")}break}case"childList":if(sH(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName){this.genTextAreaValueMutation(e.target);return}
1e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),s=ew(e.target)?this.mirror.getId(sB.host(e.target)):this.mirror.getId(e.target);sH(e.target,this.blockClass,this.blockSelector,!1)||sK(t,this.mirror,this.slimDOMOptions)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(ni(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(ew(t))return!1;let s=r.getId(t);if(!r.has(s))return!0;let n=sB.parentNode(t);return(!n||n.nodeType!==t.DOCUMENT_NODE)&&(!n||e(n,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[ns(r,s)]?ni(this.movedSet,t):(this.removes.push({parentId:s,id:r,isShadow:!!(ew(e.target)&&eb(e.target))||void 0}),function(e,t){let r=[e];for(;r.length;){let e=r.pop();t.has(e)||(t.add(e),sB.childNodes(e).forEach(e=>r.push(e)))}}(t,this.removesSubTreeCache))),this.mapRemoves.push(t))})}}),ei(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(sK(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[ns(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!sH(e,this.blockClass,this.blockSelector,!1)&&(sB.childNodes(e).forEach(e=>
1this.genAdds(e)),s1(e)&&sB.childNodes(sB.shadowRoot(e)).forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}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 ni(e,t){e.delete(t),sB.childNodes(t).forEach(t=>ni(e,t))}function no(e,t,r){return 0!==e.size&&function(e,t,r){let s=sB.parentNode(t);return!!s&&e.has(s)}(e,t)}function na(e,t){return 0!==e.size&&function e(t,r){let s=sB.parentNode(r);return!!s&&(!!t.has(s)||e(t,s))}(e,t)}var nl=e=>L?(...t)=>{try{return e(...t)}catch(e){if(L&&!0===L(e))return;throw e}}:e,nh=[];function nu(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 nc(e,t){let r=new nn;nh.push(r),r.init(e);let s=new(sD("MutationObserver")).constructor(nl(r.processMutations.bind(r)));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function np({scrollCb:e,doc:t,mirror:r,blockClass:s,blockSelector:n,sampling:i}){return sj("scroll",nl(sV(nl(i=>{let o=nu(i);if(!o||sH(o,s,n,!0))return;let a=r.getId(o);if(o===t&&t.defaultView){let r=sY(t.defaultView);e({id:a,x:r.left,y:r.top})}else e({id:a,x:o.scrollLeft,y:o.scrollTop})}),i.scroll||100)),t)}var nd=["INPUT","TEXTAREA","SELECT"],nf=new WeakMap;function nm(e){var t;return t=[],nb("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||nb("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||nb("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||nb("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?t.unshift(Array.from(e.parentRule.cssRules).indexOf(e)):e.parentStyleSheet&&t.unshift(Array.from(e.parentStyleSheet.cssRules).indexOf(e)),t}function ng(e,t,r){let s,n;return e?(e.ownerNode?s=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:s}):{}}function ny({mirror:e,stylesheetManager:t},r){var s,n,i;let o=null;o="#document"===r.nodeName?e.getId(r):e.getId(sB.host(r));let a="#document"===r.nodeName?null==(s=r.defaultView)?void 0:s.Document:null==(i=null==(n=r.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,l=(null==a?void 0:a.prototype)?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&a&&l?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null==(e=l.get)?void 0:e.call(this)},set(e){var r;let s=null==(r=l.set)?void 0:r.call(this,e);if(null!==o&&-1!==o)try{t.adoptStyleSheets(e,o)}catch(e){}return s}}),nl(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})})):()=>{}}function nw(e,t={}){let r;let s=e.doc.defaultView;if(!s)return()=>{};!function(e,t){let{mutationCb:r,mousemoveCb:s,mouseInteractionCb:n,scrollCb:i,viewportResizeCb:o,inputCb:a,mediaInteractionCb:l,styleSheetRuleCb:h,styleDeclarationCb:u,canvasMutationCb:c,fontCb:p,selectionCb:d,customElementCb:f}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),r(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),s(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),n(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),i(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),o(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),a(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),l(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),h(...e)}
1,e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),u(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),c(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),p(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),d(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),f(...e)}}(e,t),e.recordDOM&&(r=nc(e,e.doc));let n=function({mousemoveCb:e,sampling:t,doc:r,mirror:s}){let n;if(!1===t.mousemove)return()=>{};let i="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,a=[],l=sV(nl(t=>{let r=Date.now()-n;e(a.map(e=>(e.timeOffset-=r,e)),t),a=[],n=null}),o),h=nl(sV(nl(e=>{let t=nu(e),{clientX:r,clientY:i}=sq(e)?e.changedTouches[0]:e;n||(n=sZ()),a.push({x:r,y:i,id:s.getId(t),timeOffset:sZ()-n}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?s5.Drag:e instanceof MouseEvent?s5.MouseMove:s5.TouchMove)}),i,{trailing:!1})),u=[sj("mousemove",h,r),sj("touchmove",h,r),sj("drag",h,r)];return nl(()=>{u.forEach(e=>e())})}(e),i=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:s,blockSelector:n,sampling:i}){if(!1===i.mouseInteraction)return()=>{};let o=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,a=[],l=null,h=t=>i=>{let o=nu(i);if(sH(o,s,n,!0))return;let a=null,h=t;if("pointerType"in i){switch(i.pointerType){case"mouse":a=s8.Mouse;break;case"touch":a=s8.Touch;break;case"pen":a=s8.Pen}a===s8.Touch?s6[t]===s6.MouseDown?h="TouchStart":s6[t]===s6.MouseUp&&(h="TouchEnd"):s8.Pen}else sq(i)&&(a=s8.Touch);null!==a?(l=a,(h.startsWith("Touch")&&a===s8.Touch||h.startsWith("Mouse")&&a===s8.Mouse)&&(a=null)):s6[t]===s6.Click&&(a=l,l=null);let u=sq(i)?i.changedTouches[0]:i;if(!u)return;let c=r.getId(o),{clientX:p,clientY:d}=u;nl(e)({type:s6[h],id:c,x:p,y:d,...null!==a&&{pointerType:a}})};return Object.keys(s6).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e]).forEach(e=>{let r=ex(e),s=h(e);if(window.PointerEvent)switch(s6[e]){case s6.MouseDown:case s6.MouseUp:r=r.replace("mouse","pointer");break;case s6.TouchStart:case s6.TouchEnd:return}a.push(sj(r,s,t))}),nl(()=>{a.forEach(e=>e())})}(e),o=np(e),a=function({viewportResizeCb:e},{win:t}){let r=-1,s=-1;return sj("resize",nl(sV(nl(()=>{let t=sJ(),n=s$();(r!==t||s!==n)&&(e({width:Number(n),height:Number(t)}),r=t,s=n)}),200)),t)}(e,{win:s}),l=function({inputCb:e,doc:t,mirror:r,blockClass:s,blockSelector:n,ignoreClass:i,ignoreSelector:o,maskInputOptions:a,maskInputFn:l,sampling:h,userTriggeredOnInput:u}){function c(e){let r=nu(e),h=e.isTrusted,c=r&&r.tagName;if(r&&"OPTION"===c&&(r=sB.parentElement(r)),!r||!c||0>nd.indexOf(c)||sH(r,s,n,!0)||r.classList.contains(i)||o&&r.matches(o))return;let d=r.value,f=!1,m=eM(r)||"";"radio"===m||"checkbox"===m?f=r.checked:(a[c.toLowerCase()]||a[m])&&(d=eI({element:r,maskInputOptions:a,tagName:c,type:m,value:d,maskInputFn:l})),p(r,u?{text:d,isChecked:f,userTriggered:h}:{text:d,isChecked:f});let g=r.name;"radio"===m&&g&&f&&t.querySelectorAll(`input[type="radio"][name="${g}"]`).forEach(e=>{if(e!==r){let t=e.value;p(e,u?{text:t,isChecked:!f,userTriggered:!1}:{text:t,isChecked:!f})}})}function p(t,s){let n=nf.get(t);if(!n||n.text!==s.text||n.isChecked!==s.isChecked){nf.set(t,s);let n=r.getId(t);nl(e)({...s,id:n})}}let d=("last"===h.input?["change"]:["input","change"]).map(e=>sj(e,nl(c),t)),f=t.defaultView;if(!f)return()=>{d.forEach(e=>e())};let m=f.Object.getOwnPropertyDescriptor(f.HTMLInputElement.prototype,"value"),g=[[f.HTMLInputElement.prototype,"value"],[f.HTMLInputElement.prototype,"checked"],[f.HTMLSelectElement.prototype,"value"],[f.HTMLTextAreaElement.prototype,"value"],[f.HTMLSelectElement.prototype,"selectedIndex"],[f.HTMLOptionElement.prototype,"selected"]];return m&&m.set&&d.push(...g.map(e=>sG(e[0],e[1],{set(){nl(c)({target:this,isTrusted:!1})}},!1,f))),nl(()=>{d.forEach(e=>e())})}(e),h=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:s,sampling:n,doc:i}){let o=nl(i=>sV(nl(n=>{let o=nu(n);if(!o||sH(o,t,r,!0))return;let{currentTime:a,volume:l,muted:h,playbackRate:u,loop:c}=o;e({type:i,id:s.getId(o),currentTime:a,volume:l,muted:h,playbackRate:u,loop:c})}),n.media||500)),a=[sj("play",o(ne.Play),i),sj("pause",o(ne.Pause),i),sj("seeked",o(ne.Seeked),i),sj("volumechange",o(ne.VolumeChange),i),sj("ratechange",o(ne.RateChange),i)];return nl(()=>
1{a.forEach(e=>e())})}(e),u=()=>{},c=()=>{},p=()=>{},d=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:s}){let n,i;if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return()=>{};let o=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:nl((s,n,i)=>{let[o,a]=i,{id:l,styleId:h}=ng(n,t,r.styleMirror);return(l&&-1!==l||h&&-1!==h)&&e({id:l,styleId:h,adds:[{rule:o,index:a}]}),s.apply(n,i)})}),s.CSSStyleSheet.prototype.addRule=function(e,t,r=this.cssRules.length){let n=`${e} { ${t} }`;return s.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};let a=s.CSSStyleSheet.prototype.deleteRule;s.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:nl((s,n,i)=>{let[o]=i,{id:a,styleId:l}=ng(n,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:o}]}),s.apply(n,i)})}),s.CSSStyleSheet.prototype.removeRule=function(e){return s.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},s.CSSStyleSheet.prototype.replace&&(n=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(n,{apply:nl((s,n,i)=>{let[o]=i,{id:a,styleId:l}=ng(n,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:o}),s.apply(n,i)})})),s.CSSStyleSheet.prototype.replaceSync&&(i=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(i,{apply:nl((s,n,i)=>{let[o]=i,{id:a,styleId:l}=ng(n,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:o}),s.apply(n,i)})}));let l={};nv("CSSGroupingRule")?l.CSSGroupingRule=s.CSSGroupingRule:(nv("CSSMediaRule")&&(l.CSSMediaRule=s.CSSMediaRule),nv("CSSConditionRule")&&(l.CSSConditionRule=s.CSSConditionRule),nv("CSSSupportsRule")&&(l.CSSSupportsRule=s.CSSSupportsRule));let h={};return Object.entries(l).forEach(([s,n])=>{h[s]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=new Proxy(h[s].insertRule,{apply:nl((s,n,i)=>{let[o,a]=i,{id:l,styleId:h}=ng(n.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||h&&-1!==h)&&e({id:l,styleId:h,adds:[{rule:o,index:[...nm(n),a||0]}]}),s.apply(n,i)})}),n.prototype.deleteRule=new Proxy(h[s].deleteRule,{apply:nl((s,n,i)=>{let[o]=i,{id:a,styleId:l}=ng(n.parentStyleSheet,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...nm(n),o]}]}),s.apply(n,i)})})}),nl(()=>{s.CSSStyleSheet.prototype.insertRule=o,s.CSSStyleSheet.prototype.deleteRule=a,n&&(s.CSSStyleSheet.prototype.replace=n),i&&(s.CSSStyleSheet.prototype.replaceSync=i),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=h[e].insertRule,t.prototype.deleteRule=h[e].deleteRule})})}(e,{win:s}),c=ny(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:s},{win:n}){let i=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:nl((n,o,a)=>{var l;let[h,u,c]=a;if(r.has(h))return i.apply(o,[h,u,c]);let{id:p,styleId:d}=ng(null==(l=o.parentRule)?void 0:l.parentStyleSheet,t,s.styleMirror);return(p&&-1!==p||d&&-1!==d)&&e({id:p,styleId:d,set:{property:h,value:u,priority:c},index:nm(o.parentRule)}),n.apply(o,a)})});let o=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:nl((n,i,a)=>{var l;let[h]=a;if(r.has(h))return o.apply(i,[h]);let{id:u,styleId:c}=ng(null==(l=i.parentRule)?void 0:l.parentStyleSheet,t,s.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,remove:{property:h},index:nm(i.parentRule)}),n.apply(i,a)})}),nl(()=>{n.CSSStyleDeclaration.prototype.setProperty=i,n.CSSStyleDeclaration.prototype.removeProperty=o})}(e,{win:s}),e.collectFonts&&(d=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let s=[],n=new WeakMap,i=r.FontFace;r.FontFace=function(e,t,r){let s=new i(e,t,r);return n.set(s,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),s};let o=sU(t.fonts,"add",function(t){return function(r){return setTimeout(nl(()=>{let t=n.get(r);t&&(e(t),n.delete(r))}),0),t.apply(this,[r])}});return s.push(()=>{r.FontFace=i}),s.push(o),nl(()=>
1{s.forEach(e=>e())})}(e)));let f=function(e){let{doc:t,mirror:r,blockClass:s,blockSelector:n,selectionCb:i}=e,o=!0,a=nl(()=>{let e=t.getSelection();if(!e||o&&(null==e?void 0:e.isCollapsed))return;o=e.isCollapsed||!1;let a=[],l=e.rangeCount||0;for(let t=0;t<l;t++){let{startContainer:i,startOffset:o,endContainer:l,endOffset:h}=e.getRangeAt(t);sH(i,s,n,!0)||sH(l,s,n,!0)||a.push({start:r.getId(i),startOffset:o,end:r.getId(l),endOffset:h})}i({ranges:a})});return a(),sj("selectionchange",a)}(e),m=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?sU(r.customElements,"define",function(e){return function(r,s,n){try{t({define:{name:r}})}catch(e){console.warn(`Custom element callback failed for ${r}`)}return e.apply(this,[r,s,n])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,s,t.options));return nl(()=>{nh.forEach(e=>e.reset()),null==r||r.disconnect(),n(),i(),o(),a(),l(),h(),u(),c(),p(),d(),f(),m(),g.forEach(e=>e())})}function nb(e){return void 0!==window[e]}function nv(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var nS=class{constructor(e){ei(this,"iframeIdToRemoteIdMap",new WeakMap),ei(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,r,s){let n=r||this.getIdToRemoteIdMap(e),i=s||this.getRemoteIdToIdMap(e),o=n.get(t);return o||(o=this.generateIdFn(),n.set(t,o),i.set(o,t)),o}getIds(e,t){let r=this.getIdToRemoteIdMap(e),s=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,s))}getRemoteId(e,t,r){let s=r||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:s.get(t)||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}},nC=class{constructor(e){ei(this,"iframes",new WeakMap),ei(this,"crossOriginIframeMap",new WeakMap),ei(this,"crossOriginIframeMirror",new nS(eF)),ei(this,"crossOriginIframeStyleMirror"),ei(this,"crossOriginIframeRootIdMap",new WeakMap),ei(this,"mirror"),ei(this,"mutationCb"),ei(this,"wrappedEmit"),ei(this,"loadListener"),ei(this,"stylesheetManager"),ei(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new nS(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(s=this.loadListener)||s.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case s4.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:s4.IncrementalSnapshot,data:{source:s5.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case s4.Meta:case s4.Load:case s4.DomContentLoaded:break;case s4.Plugin:return t;case s4.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case s4.IncrementalSnapshot:switch(t.data.source){case s5.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}
1),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case s5.Drag:case s5.TouchMove:case s5.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case s5.ViewportResize:return!1;case s5.MediaInteraction:case s5.MouseInteraction:case s5.Scroll:case s5.CanvasMutation:case s5.Input:return this.replaceIds(t.data,e,["id"]),t;case s5.StyleSheetRule:case s5.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case s5.Font:return t;case s5.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case s5.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,s){for(let n of s)(Array.isArray(t[n])||"number"==typeof t[n])&&(Array.isArray(t[n])?t[n]=e.getIds(r,t[n]):t[n]=e.getId(r,t[n]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===nt.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}},nI=class{constructor(e){ei(this,"shadowDoms",new WeakSet),ei(this,"mutationCb"),ei(this,"scrollCb"),ei(this,"bypassOptions"),ei(this,"mirror"),ei(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!eb(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let r=nc({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(np({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(sB.host(e))),this.restoreHandlers.push(ny({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(sU(e.prototype,"attachShadow",function(e){return function(s){let n=e.call(this,s),i=sB.shadowRoot(this);return i&&s9(this)&&r.addShadowRoot(i,t),n}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},nx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nk="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(P=0;P<nx.length;P++)nk[nx.charCodeAt(P)]=P;var nM=function(e){var t,r=new Uint8Array(e),s=r.length,n="";for(t=0;t<s;t+=3)n+=nx[r[t]>>2]+nx[(3&r[t])<<4|r[t+1]>>4]+nx[(15&r[t+1])<<2|r[t+2]>>6]+nx[63&r[t+2]];return s%3==2?n=n.substring(0,n.length-1)+"=":s%3==1&&(n=n.substring(0,n.length-2)+"=="),n},nO=new Map,nA=(e,t,r)=>{let s;if(!e||!(nE(e,t)||"object"==typeof e))return;let n=e.constructor.name,i=((s=nO.get(r))||(s=new Map,nO.set(r,s)),s.has(n)||s.set(n,[]),s.get(n)),o=i.indexOf(e);return -1===o&&(o=i.length,i.push(e)),o},nR=(e,t,r)=>e.map(e=>(function e(t,r,s){if(t instanceof Array)return t.map(t=>e(t,r,s));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:nM(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,r,s),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:r}=t;return{rr_type:e,src:r}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,r,s),t.width,t.height]};else if(nE(t,r)||"object"==typeof t)return{rr_type:t.constructor.name,index:nA(t,r,s)};return t})(e,t,r)),nE=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(r=>e instanceof t[r]);function nN(e,t,r,s){let n=[];try{let i=sU(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(n,...i){if(!sH(this,t,r,!0)){let e="experimental-webgl"===n?"webgl":n;if("__context"in this||(this.__context=e),s&&["webgl","webgl2"].includes(e)){if(i[0]&&"object"==typeof i[0]){let e=i[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}}return e.apply(this,[n,...i])}});n.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>
1{n.forEach(e=>e())}}function nT(e,t,r,s,n,i){let o=[];for(let a of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if("function"!=typeof e[a])continue;let l=sU(e,a,function(e){return function(...o){let l=e.apply(this,o);if(nA(l,i,this),"tagName"in this.canvas&&!sH(this.canvas,s,n,!0)){let e=nR(o,i,this),s={type:t,property:a,args:e};r(this.canvas,s)}return l}});o.push(l)}catch{let s=sG(e,a,{set(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});o.push(s)}return o}var nD="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3B
1hcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",nL="undefined"!=typeof window&&window.Blob&&new Blob([Uint8Array.from(atob(nD),e=>e.charCodeAt(0))],{type:"text/javascript;charset=utf-8"});function nP(e){let t;try{if(!(t=nL&&(window.URL||window.webkitURL).createObjectURL(nL)))throw"";let r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(t){return new Worker("data:text/javascript;base64,"+nD,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var nF=class{constructor(e){ei(this,"pendingCanvasMutations",new Map),ei(this,"rafStamps",{latestId:0,invokeId:null}),ei(this,"mirror"),ei(this,"mutationCb"),ei(this,"resetObservers"),ei(this,"frozen",!1),ei(this,"locked",!1),ei(this,"processMutation",(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});let{sampling:t="all",win:r,blockClass:s,blockSelector:n,recordCanvas:i,dataURLOptions:o}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&"all"===t&&this.initCanvasMutationObserver(r,s,n),i&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,s,n,{dataURLOptions:o})}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(e,t,r,s,n){let i;let o=nN(t,r,s,!0),a=new Map,l=new nP;l.onmessage=e=>{let{id:t}=e.data;if(a.set(t,!1),!("base64"in e.data))return;let{base64:r,type:s,width:n,height:i}=e.data;this.mutationCb({id:t,type:s7["2D"],commands:[{property:"clearRect",args:[0,0,n,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:s}]},0,0]}]})};let h=1e3/e,u=0,c=()=>{let e=[];return t.document.querySelectorAll("canvas").forEach(t=>{sH(t,r,s,!0)||e.push(t)}),e},p=e=>{if(u&&e-u<h){i=requestAnimationFrame(p);return}
1u=e,c().forEach(async e=>{var t;let r=this.mirror.getId(e);if(a.get(r)||0===e.width||0===e.height)return;if(a.set(r,!0),["webgl","webgl2"].includes(e.__context)){let r=e.getContext(e.__context);(null==(t=null==r?void 0:r.getContextAttributes())?void 0:t.preserveDrawingBuffer)===!1&&r.clear(r.COLOR_BUFFER_BIT)}let s=await createImageBitmap(e);l.postMessage({id:r,bitmap:s,width:e.width,height:e.height,dataURLOptions:n.dataURLOptions},[s])}),i=requestAnimationFrame(p)};i=requestAnimationFrame(p),this.resetObservers=()=>{o(),cancelAnimationFrame(i)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let s=nN(e,t,r,!1),n=function(e,t,r,s){let n=[];for(let i of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[i])continue;let o=sU(t.CanvasRenderingContext2D.prototype,i,function(n){return function(...o){return sH(this.canvas,r,s,!0)||setTimeout(()=>{let r=nR(o,t,this);e(this.canvas,{type:s7["2D"],property:i,args:r})},0),n.apply(this,o)}});n.push(o)}catch{let r=sG(t.CanvasRenderingContext2D.prototype,i,{set(t){e(this.canvas,{type:s7["2D"],property:i,args:[t],setter:!0})}});n.push(r)}return()=>{n.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r),i=function(e,t,r,s){let n=[];return n.push(...nT(t.WebGLRenderingContext.prototype,s7.WebGL,e,r,s,t)),void 0!==t.WebGL2RenderingContext&&n.push(...nT(t.WebGL2RenderingContext.prototype,s7.WebGL2,e,r,s,t)),()=>{n.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r);this.resetObservers=()=>{s(),n(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;let s=r.map(e=>{let{type:t,...r}=e;return r}),{type:n}=r[0];this.mutationCb({id:t,type:n,commands:s}),this.pendingCanvasMutations.delete(e)}},n_=class{constructor(e){ei(this,"trackedLinkElements",new WeakSet),ei(this,"mutationCb"),ei(this,"adoptedStyleSheetCb"),ei(this,"styleMirror",new s2),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let r={id:t,styleIds:[]},s=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),s.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,r)=>({rule:eS(e,t.href),index:r}))})),r.styleIds.push(e)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},nU=class{constructor(){ei(this,"nodeMap",new WeakMap),ei(this,"active",!1)}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}},nB=!1;try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(m=e.contentWindow)?void 0:m.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var nj=new eC;function nz(e={}){let t;let{emit:r,checkoutEveryNms:s,checkoutEveryNth:n,blockClass:i="rr-block",blockSelector:o=null,ignoreClass:a="rr-ignore",ignoreSelector:l=null,maskTextClass:h="rr-mask",maskTextSelector:u=null,inlineStylesheet:c=!0,maskAllInputs:p,maskInputOptions:d,slimDOMOptions:f,maskInputFn:m,maskTextFn:g,hooks:y,packFn:w,sampling:b={},dataURLOptions:v={},mousemoveWait:S,recordDOM:C=!0,recordCanvas:I=!1,recordCrossOriginIframes:x=!1,recordAfter:k="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:O=!1,inlineImages:A=!1,plugins:R,keepIframeSrcFn:E=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:T}=e;L=T;let D=!x||window.parent===window,P=!1;if(!D)try{window.parent.document&&(P=!1)}catch(e){P=!0}if(D&&!r)throw Error("emit function is required");if(!D&&!P)return()=>{};void 0!==S&&void 0===b.mousemove&&(b.mousemove=S),nj.reset();let B=!0===p?{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}:void 0!==d?d:{password:!0},j=eJ(f);!function(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)}();let z=0,W=e=>{for(let t of R||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!P&&(e=w(e)),e};F=(e,i)=>{var o;if(e.timestamp=sZ(),(null==(o=nh[0])?void 0:o.isFrozen())&&e.type!==s4.FullSnapshot&&!(e.type===s4.IncrementalSnapshot&&e.data.source===s5.Mutation)&&nh.forEac
1h(e=>e.unfreeze()),D)null==r||r(W(e),i);else if(P){let t={type:"rrweb",event:W(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(t,"*")}if(e.type===s4.FullSnapshot)t=e,z=0;else if(e.type===s4.IncrementalSnapshot){if(e.data.source===s5.Mutation&&e.data.isAttachIframe)return;z++;let r=n&&z>=n,i=s&&e.timestamp-t.timestamp>s;(r||i)&&_(!0)}};let V=e=>{F({type:s4.IncrementalSnapshot,data:{source:s5.Mutation,...e}})},G=e=>F({type:s4.IncrementalSnapshot,data:{source:s5.Scroll,...e}}),Z=e=>F({type:s4.IncrementalSnapshot,data:{source:s5.CanvasMutation,...e}}),Y=new n_({mutationCb:V,adoptedStyleSheetCb:e=>F({type:s4.IncrementalSnapshot,data:{source:s5.AdoptedStyleSheet,...e}})}),J=new nC({mirror:nj,mutationCb:V,stylesheetManager:Y,recordCrossOriginIframes:x,wrappedEmit:F});for(let e of R||[])e.getMirror&&e.getMirror({nodeMirror:nj,crossOriginIframeMirror:J.crossOriginIframeMirror,crossOriginIframeStyleMirror:J.crossOriginIframeStyleMirror});let $=new nU;U=new nF({recordCanvas:I,mutationCb:Z,win:window,blockClass:i,blockSelector:o,mirror:nj,sampling:b.canvas,dataURLOptions:v});let X=new nI({mutationCb:V,scrollCb:G,bypassOptions:{blockClass:i,blockSelector:o,maskTextClass:h,maskTextSelector:u,inlineStylesheet:c,maskInputOptions:B,dataURLOptions:v,maskTextFn:g,maskInputFn:m,recordCanvas:I,inlineImages:A,sampling:b,slimDOMOptions:j,iframeManager:J,stylesheetManager:Y,canvasManager:U,keepIframeSrcFn:E,processedNodeManager:$},mirror:nj});_=(e=!1)=>{if(!C)return;F({type:s4.Meta,data:{href:window.location.href,width:s$(),height:sJ()}}
1,e),Y.reset(),X.init(),nh.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new eC,blockClass:s="rr-block",blockSelector:n=null,maskTextClass:i="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:h=!1,maskAllInputs:u=!1,maskTextFn:c,maskInputFn:p,slimDOM:d=!1,dataURLOptions:f,preserveWhiteSpace:m,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:v,keepIframeSrcFn:S=()=>!1}=t||{};return e$(e,{doc:e,mirror:r,blockClass:s,blockSelector:n,maskTextClass:i,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===u?{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}:!1===u?{password:!0}:u,maskTextFn:c,maskInputFn:p,slimDOMOptions:eJ(d),dataURLOptions:f,inlineImages:l,recordCanvas:h,preserveWhiteSpace:m,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:v,keepIframeSrcFn:S,newlyAddedElement:!1})}(document,{mirror:nj,blockClass:i,blockSelector:o,maskTextClass:h,maskTextSelector:u,inlineStylesheet:c,maskAllInputs:B,maskTextFn:g,maskInputFn:m,slimDOM:j,dataURLOptions:v,recordCanvas:I,inlineImages:A,onSerialize:e=>{sQ(e,nj)&&J.addIframe(e),s0(e,nj)&&Y.trackLinkElement(e),s1(e)&&X.addShadowRoot(sB.shadowRoot(e),document)},onIframeLoad:(e,t)=>{J.attachIframe(e,t),X.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Y.attachLinkElement(e,t)},keepIframeSrcFn:E});if(!t)return console.warn("Failed to snapshot the document");F({type:s4.FullSnapshot,data:{node:t,initialOffset:sY(window)}},e),nh.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Y.adoptStyleSheets(document.adoptedStyleSheets,nj.getId(document))};try{let e=[],t=e=>{var t;return nl(nw)({mutationCb:V,mousemoveCb:(e,t)=>F({type:s4.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>F({type:s4.IncrementalSnapshot,data:{source:s5.MouseInteraction,...e}}),scrollCb:G,viewportResizeCb:e=>F({type:s4.IncrementalSnapshot,data:{source:s5.ViewportResize,...e}}),inputCb:e=>F({type:s4.IncrementalSnapshot,data:{source:s5.Input,...e}}),mediaInteractionCb:e=>F({type:s4.IncrementalSnapshot,data:{source:s5.MediaInteraction,...e}}),styleSheetRuleCb:e=>F({type:s4.IncrementalSnapshot,data:{source:s5.StyleSheetRule,...e}}),styleDeclarationCb:e=>F({type:s4.IncrementalSnapshot,data:{source:s5.StyleDeclaration,...e}}),canvasMutationCb:Z,fontCb:e=>F({type:s4.IncrementalSnapshot,data:{source:s5.Font,...e}}),selectionCb:e=>{F({type:s4.IncrementalSnapshot,data:{source:s5.Selection,...e}})},customElementCb:e=>{F({type:s4.IncrementalSnapshot,data:{source:s5.CustomElement,...e}})},blockClass:i,ignoreClass:a,ignoreSelector:l,maskTextClass:h,maskTextSelector:u,maskInputOptions:B,inlineStylesheet:c,sampling:b,recordDOM:C,recordCanvas:I,inlineImages:A,userTriggeredOnInput:M,collectFonts:O,doc:e,maskInputFn:m,maskTextFn:g,keepIframeSrcFn:E,blockSelector:o,slimDOMOptions:j,dataURLOptions:v,mirror:nj,iframeManager:J,stylesheetManager:Y,shadowDomManager:X,processedNodeManager:$,canvasManager:U,ignoreCSSAttributes:N,plugins:(null==(t=null==R?void 0:R.filter(e=>e.observer))?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>F({type:s4.Plugin,data:{plugin:e.name,payload:t}})})))||[]},y)};J.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{_(),e.push(t(document)),nB=!0};return["interactive","complete"].includes(document.readyState)?r():(e.push(sj("DOMContentLoaded",()=>{F({type:s4.DomContentLoaded,data:{}}),"DOMContentLoaded"===k&&r()})),e.push(sj("load",()=>{F({type:s4.Load,data:{}}),"load"===k&&r()},window))),()=>{e.forEach(e=>{try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),$.destroy(),nB=!1,L=void 0}}catch(e){console.warn(e)}}nz.addCustomEvent=(e,t)=>{if(!nB)throw Error("please add custom event after start recording");F({type:s4.Custom,data:{tag:e,payload:t}})},nz.freezePage=()=>{nh.forEach(e=>e.freeze())},nz.takeFullSnapshot=e=>{if(!nB)throw Error("please take full snapshot after start recording");_(e)},nz.mirror=nj,(c=B||(B={}
1))[c.NotStarted=0]="NotStarted",c[c.Running=1]="Running",c[c.Stopped=2]="Stopped";var nW=Object.defineProperty,nV=(e,t,r)=>t in e?nW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nG=(e,t,r)=>nV(e,"symbol"!=typeof t?t+"":t,r),nZ=class{constructor(e){nG(this,"fileName"),nG(this,"functionName"),nG(this,"lineNumber"),nG(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}toString(){let e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?`${this.functionName} (${this.fileName}:${e}:${t})`:`${this.fileName}:${e}:${t}`}},nY=/(^|@)\S+:\d+/,nJ=/^\s*at .*(\S+:\d+|\(native\))/m,n$=/^(eval@)?(\[native code])?$/,nX={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(nJ)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw Error(`Cannot parse given url: ${e}`);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(nJ)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));let t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),s=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),n=this.extractLocation(r?r[1]:s.pop());return new nZ({functionName:s.join(" ")||void 0,fileName:["eval","<anonymous>"].indexOf(n[0])>-1?void 0:n[0],lineNumber:n[1],columnNumber:n[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(n$)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new nZ({functionName:e});{let t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),s=r&&r[1]?r[1]:void 0,n=this.extractLocation(e.replace(t,""));return new nZ({functionName:s,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})}},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){let t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),s=[];for(let e=2,n=r.length;e<n;e+=2){let n=t.exec(r[e]);n&&s.push(new nZ({fileName:n[2],lineNumber:parseFloat(n[1])}))}return s},parseOpera10:function(e){let t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),s=[];for(let e=0,n=r.length;e<n;e+=2){let n=t.exec(r[e]);n&&s.push(new nZ({functionName:n[3]||void 0,fileName:n[2],lineNumber:parseFloat(n[1])}))}return s},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(nY)&&!e.match(/^Error created at/)},this).map(function(e){let t=e.split("@"),r=this.extractLocation(t.pop());return new nZ({functionName:(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function nH(e){return"[object Object]"===Object.prototype.toString.call(e)}function nK(e,t){let r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);let s=[],n=[];return JSON.stringify(e,function(e,t){var i;if(s.length>0){let r=s.indexOf(this);~r?s.splice(r+1):s.push(this),~r?n.splice(r,1/0,e):n.push(e),~s.indexOf(t)&&(t=s[0]===t?"[Circular ~]":"[Circular ~."+n.slice(0,s.indexOf(t)).join(".")+"]")}else s.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(nH(i=t)&&Object.keys(i).length>r.numOfKeysLimit||"function"==typeof i||nH(i)&&function e(t,r){if(0===r)return!0;for(let s of Object.keys(t))if(nH(t[s])&&e(t[s],r-1))return!0;return!1}(i,r.depthOfLimit)){let e;return e=t.toString(),r.stringLengthLimit&&e.length>r.stringLengthLimit&&(e=`${e.slice(0,r.stringLengthLimit)}...`),e}if("bigint"==typeof t)return t.toString()+"n";if(t instanceof Event){let e={};for(let r in t){let s=t[r];Array.isArray(s)?e[r]=function(e){if(!e||!e.outerHTML)return"";let t="";for(;e.parentElement;){let r=e.localName;if(!r)break;r=r.toLowerCase();let s=e.parentElement,n=[];if(s.children&&s.children.length>0)for(let e=0;e<s.children.length;e++){let t=s.children[e];t.localName&&t.localName.toLowerCase&&t.localName.toLowerCase()===r&&n.push(t)}n.length>1&&(r+=`:eq(${n.indexOf(e)})`),t=r+(t?">"+t:""),e=s}return t}(s.length?s[0]:null):e[r]=s}return e}return t instanceof Node?t instanceof HTMLElement?t?t.outerHTML:"":t.nodeName:t instanceof Error?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}var nq={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","t
1ime","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function nQ(e,t,r){let s;let n=r?Object.assign({},nq,r):nq,i=n.logger;if(!i)return()=>{};s="string"==typeof i?t[i]:i;let o=0,a=!1,l=[];if(n.level.includes("error")){let r=t=>{let r=t.message,s=t.error;e({level:"error",trace:nX.parse(s).map(e=>e.toString()),payload:[nK(r,n.stringifyOptions)]})};t.addEventListener("error",r),l.push(()=>{t.removeEventListener("error",r)});let s=t=>{let r,s;t.reason instanceof Error?(r=t.reason,s=[nK(`Uncaught (in promise) ${r.name}: ${r.message}`,n.stringifyOptions)]):(r=Error(),s=[nK("Uncaught (in promise)",n.stringifyOptions),nK(t.reason,n.stringifyOptions)]),e({level:"error",trace:nX.parse(r).map(e=>e.toString()),payload:s})};t.addEventListener("unhandledrejection",s),l.push(()=>{t.removeEventListener("unhandledrejection",s)})}for(let t of n.level)l.push(function(t,r){return t[r]?function(e,t,r){try{if(!(t in e))return()=>{};let s=e[t],n=r(s);return"function"==typeof n&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=n,()=>{e[t]=s}}catch{return()=>{}}}(t,r,t=>(...s)=>{if(t.apply(this,s),("assert"!==r||!s[0])&&!a){a=!0;try{let t=nX.parse(Error()).map(e=>e.toString()).splice(1),i=("assert"===r?s.slice(1):s).map(e=>nK(e,n.stringifyOptions));++o<n.lengthThreshold?e({level:r,trace:t,payload:i}):o===n.lengthThreshold&&e({level:"warn",trace:[],payload:[nK("The number of log records reached the threshold.")]})}catch(e){t("rrweb logger error:",e,...s)}finally{a=!1}
1}}):()=>{}}(s,t));return()=>{l.forEach(e=>e())}}var n0=e=>({name:"rrweb/console@1",observer:nQ,options:e}),n1=((p=n1||{})[p.DomContentLoaded=0]="DomContentLoaded",p[p.Load=1]="Load",p[p.FullSnapshot=2]="FullSnapshot",p[p.IncrementalSnapshot=3]="IncrementalSnapshot",p[p.Meta=4]="Meta",p[p.Custom=5]="Custom",p[p.Plugin=6]="Plugin",p),n2=((d=n2||{})[d.Mutation=0]="Mutation",d[d.MouseMove=1]="MouseMove",d[d.MouseInteraction=2]="MouseInteraction",d[d.Scroll=3]="Scroll",d[d.ViewportResize=4]="ViewportResize",d[d.Input=5]="Input",d[d.TouchMove=6]="TouchMove",d[d.MediaInteraction=7]="MediaInteraction",d[d.StyleSheetRule=8]="StyleSheetRule",d[d.CanvasMutation=9]="CanvasMutation",d[d.Font=10]="Font",d[d.Log=11]="Log",d[d.Drag=12]="Drag",d[d.StyleDeclaration=13]="StyleDeclaration",d[d.Selection=14]="Selection",d[d.AdoptedStyleSheet=15]="AdoptedStyleSheet",d[d.CustomElement=16]="CustomElement",d),n3=((f=n3||{})[f.MouseUp=0]="MouseUp",f[f.MouseDown=1]="MouseDown",f[f.Click=2]="Click",f[f.ContextMenu=3]="ContextMenu",f[f.DblClick=4]="DblClick",f[f.Focus=5]="Focus",f[f.Blur=6]="Blur",f[f.TouchStart=7]="TouchStart",f[f.TouchMove_Departed=8]="TouchMove_Departed",f[f.TouchEnd=9]="TouchEnd",f[f.TouchCancel=10]="TouchCancel",f);function n9(e){try{let t=new URL(e,"undefined"!=typeof window?window.location.href:void 0);return t.search="",t.toString()}catch{return e.split("?")[0]}}var n4=null,n5=null;async function n6(e){if(n4)return;let{config:t,onEvent:r}=e,s=[...t.privacy.redactSelectors,"[data-lucent-redact]"].join(","),n=[...t.privacy.blockSelectors,"[data-lucent-block]"].join(",")||void 0,i=[];t.capture.console&&i.push(n0({level:t.capture.consoleLogLevels,lengthThreshold:1e3})),t.capture.network&&"undefined"!=typeof window&&(n5=function(e){let{config:t,emit:r}=e,s=[/\/api\/sdk\//,...t.capture.networkIgnoreUrls];function n(e){for(let t of s)if("string"==typeof t){if(e.includes(t))return!0}else if(t.test(e))return!0;return!1}function i(e){r({type:n1.Plugin,timestamp:Date.now(),data:{plugin:"rrweb/network@1",payload:{requests:[e]}}})}let o=window.fetch;function a(e,t){let r="string"==typeof e?e:e instanceof URL?e.href:e.url,s=t?.method??"GET";if(n(r))return o(e,t);let a=performance.now();return o(e,t).then(e=>{let t=Math.round(performance.now()-a),n=e.headers.get("content-length");return i({method:s.toUpperCase(),name:n9(r),status:e.status,duration:t,transferSize:n?parseInt(n,10):null,initiatorType:"fetch"}),e},e=>{let t=Math.round(performance.now()-a);throw i({method:s.toUpperCase(),name:n9(r),status:0,duration:t,transferSize:null,initiatorType:"fetch"}),e})}let l=XMLHttpRequest.prototype.open,h=XMLHttpRequest.prototype.send,u=new WeakMap;return{start:function(){window.fetch=a,XMLHttpRequest.prototype.open=function(e,t,...r){return u.set(this,{method:e,url:"string"==typeof t?t:t.toString()}),l.call(this,e,t,...r)},XMLHttpRequest.prototype.send=function(e){let t=u.get(this);if(!t||n(t.url))return h.call(this,e);let r=performance.now(),s=this,o=()=>{let e=Math.round(performance.now()-r),n=s.getResponseHeader("content-length");i({method:t.method.toUpperCase(),name:n9(t.url),status:s.status,duration:e,transferSize:n?parseInt(n,10):null,initiatorType:"xmlhttprequest"}),s.removeEventListener("loadend",o)};return s.addEventListener("loadend",o),h.call(this,e)}},stop:function(){window.fetch=o,XMLHttpRequest.prototype.open=l,XMLHttpRequest.prototype.send=h}}}({config:t,emit:r})).start(),n4=nz({emit:r,maskAllInputs:t.privacy.maskAllInputs,maskTextSelector:s,blockSelector:n,maskInputOptions:{password:!0,text:!0,email:!0,tel:!0,url:!0},recordCanvas:t.capture.canvas,collectFonts:!1,checkoutEveryNms:3e5,plugins:i})??null}function n8(e,t){return{type:5,timestamp:Date.now(),data:{tag:`lucent:${e}`,payload:t??{}}}}var n7=class{constructor(e){this.recentClicks=[],this.pendingDeadClicks=new Map,this.options=e}processEvent(e){if(e.type!==n1.IncrementalSnapshot)return;let t=e.data;(t.source===n2.MouseInteraction||t.source===n2.Mutation)&&(t.source===n2.MouseInteraction&&t.type===n3.Click?this.handleClick(t.id??0,t.x??0,t.y??0,e.timestamp):t.source===n2.Mutation&&this.handleMutation(e.data))}destroy(){for(let e of this.pendingDeadClicks.values())clearTimeout(e.timer);
1this.pendingDeadClicks.clear(),this.recentClicks=[]}handleClick(e,t,r,s){if(0===e)return;this.recentClicks.push({nodeId:e,x:t,y:r,timestamp:s});let n=s-1e3,i=[],o=0;for(let t of this.recentClicks)t.timestamp>=n&&(i.push(t),t.nodeId===e&&o++);this.recentClicks=i,o>=this.options.rageClickThreshold&&(this.options.onDetection({type:5,timestamp:s,data:{tag:"lucent:rage_click",payload:{nodeId:e,x:t,y:r,clickCount:o,windowMs:1e3}}}),this.recentClicks=this.recentClicks.filter(t=>t.nodeId!==e));let a=this.pendingDeadClicks.get(e);a&&clearTimeout(a.timer);let l=setTimeout(()=>{this.pendingDeadClicks.delete(e),this.options.onDetection({type:5,timestamp:Date.now(),data:{tag:"lucent:dead_click",payload:{nodeId:e,x:t,y:r}}})},this.options.deadClickTimeoutMs);this.pendingDeadClicks.set(e,{nodeId:e,x:t,y:r,timestamp:s,timer:l})}handleMutation(e){let t=this.pendingDeadClicks;if(0===t.size)return;let r=new Set;for(let t of e.adds??[])null!=t.parentId&&r.add(t.parentId),t.node?.id!=null&&r.add(t.node.id);for(let t of e.removes??[])null!=t.parentId&&r.add(t.parentId),null!=t.id&&r.add(t.id);for(let t of e.attributes??[])null!=t.id&&r.add(t.id);for(let t of e.texts??[])null!=t.id&&r.add(t.id);for(let e of r){let r=t.get(e);r&&(clearTimeout(r.timer),t.delete(e))}}},ie=class{constructor(e){this.started=!1,this.stopNavigation=null,this.handleUnload=()=>{this.queue.flush(!0)},this.handleVisibilityChange=()=>{"hidden"===document.visibilityState&&this.queue.flush(!1)},this.config={publicKey:e.publicKey,ingestBaseUrl:e.ingestBaseUrl??"https://batch-jobs-lucent.onrender.com",environment:e.environment??"production",autoStart:e.autoStart??!0,sampling:{sessionReplay:e.sampling?.sessionReplay??1},privacy:{mode:e.privacy?.mode??"privacy-first",redactSelectors:e.privacy?.redactSelectors??[],unredactSelectors:e.privacy?.unredactSelectors??[],maskAllInputs:e.privacy?.maskAllInputs??!0,maskTextSelectors:e.privacy?.maskTextSelectors??[],blockSelectors:e.privacy?.blockSelectors??[]},capture:{clicks:e.capture?.clicks??!0,inputs:e.capture?.inputs??!0,forms:e.capture?.forms??!0,canvas:e.capture?.canvas??!1,console:e.capture?.console??!0,consoleLogLevels:e.capture?.consoleLogLevels??["log","warn","error","info","debug","assert"],network:e.capture?.network??!0,networkIgnoreUrls:e.capture?.networkIgnoreUrls??[]},batching:{flushIntervalMs:e.batching?.flushIntervalMs??1e4,maxEventsPerBatch:e.batching?.maxEventsPerBatch??500,maxBatchBytes:e.batching?.maxBatchBytes??1048576},detection:{rageClickThreshold:e.detection?.rageClickThreshold??3,deadClickTimeoutMs:e.detection?.deadClickTimeoutMs??500},metadata:{app:e.metadata?.app,version:e.metadata?.version,release:e.metadata?.release}},this.session=new J,this.identity=new K,this.transport=new ee({publicKey:this.config.publicKey,ingestBaseUrl:this.config.ingestBaseUrl},this.session,this.identity),this.queue=new q(this.config.batching,(e,t,r)=>this.transport.send(e,t,r)),this.clickDetector=new n7({rageClickThreshold:this.config.detection.rageClickThreshold,deadClickTimeoutMs:this.config.detection.deadClickTimeoutMs,onDetection:e=>{this.started&&this.queue.push(e)}}),this.sampled=Math.random()<this.config.sampling.sessionReplay,this.config.autoStart&&"undefined"!=typeof window&&this.start()}async start(){!this.started&&this.sampled&&(this.started=!0,this.queue.start(),await n6({config:this.config,onEvent:e=>{this.session.touch()&&this.queue.flush(!0),this.clickDetector.processEvent(e),this.queue.push(e)}}),this.stopNavigation=function(e){if("undefined"==typeof window)return()=>{};let t=location.href;function r(r,s){r!==s&&(e({type:5,timestamp:Date.now(),data:{tag:"lucent:navigation",payload:{from:r,to:s}}}),t=s)}let s=history.pushState.bind(history);history.pushState=function(...e){let t=location.href;s(...e),r(t,location.href)};let n=history.replaceState.bind(history);history.replaceState=function(...e){let t=location.href;n(...e),r(t,location.href)};let i=()=>{r(t,location.href)};return window.addEventListener("popstate",i),()=>{history.pushState=s,history.replaceState=n,window.removeEventListener("popstate",i)}}(e=>{this.queue.push(e)}),"undefined"!=typeof window&&(window.addEventListener("beforeunload",this.handleUnload),document.addEventListener("visibilitychange",this.handleVisibilityChange)))}async stop(){this.started&&(this.started=!1,n5&&(n5.stop(),n5=null),n4&&(n4(),n4=null),this.clickDetector.destroy(),this.queue.stop(),this.stopNavigation&&(this.stopNavigation(),this.stopNavigation=null),await this.queue.flush(!0),"undefined"!=typeof window&&(window.removeEventListener("beforeunload",this.handleUnload),document.removeEventListener("visibilitychange",this.handleVisibilityChange)))}identify(e){this.identity.identify(e)}resetIdentity(){this.identity.resetIdentity()}track(e,t){this.started&&this.queue.push(n8(e,t))}setSessionProperties(e){this.started&&this.queue.push(n8("session_properties",e))}setUserProperties(e){this.started&&this.queue.push(n8("user_properties",e))}async flush(){await this.queue.flush(!1)}getSessionInfo(){return{sessionId:this.session.sessionId,windowId:this.session.windowId,recordingEnabled:this.started&&this.sampled}}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.