blocfeed 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-6HNU7ECD.js +885 -0
- package/dist/chunk-WKHX5Z3E.cjs +885 -0
- package/dist/{controller-D7yFqYcL.d.cts → controller-v9Hd8d5-.d.cts} +22 -0
- package/dist/{controller-D7yFqYcL.d.ts → controller-v9Hd8d5-.d.ts} +22 -0
- package/dist/engine.cjs +1 -1
- package/dist/engine.d.cts +2 -2
- package/dist/engine.d.ts +2 -2
- package/dist/engine.js +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.d.cts +2 -2
- package/dist/main.d.ts +2 -2
- package/dist/main.js +1 -1
- package/dist/passive.cjs +1 -1
- package/dist/passive.d.cts +2 -2
- package/dist/passive.d.ts +2 -2
- package/dist/passive.js +1 -1
- package/dist/script.js +27 -26
- package/package.json +1 -1
- package/dist/chunk-6JMBSCRM.cjs +0 -884
- package/dist/chunk-FYGPX2PH.js +0 -884
package/dist/script.js
CHANGED
|
@@ -1,57 +1,58 @@
|
|
|
1
|
-
var BlocFeedScript=(function(exports){'use strict';var oc=Object.defineProperty;var pe=(r,e)=>()=>(r&&(e=r(r=0)),e);var ac=(r,e)=>{for(var t in e)oc(r,t,{get:e[t],enumerable:true});};function El(r,e){if(r.match(/^[a-z]+:\/\//i))return r;if(r.match(/^\/\//))return window.location.protocol+r;if(r.match(/^[a-z]+:/i))return r;let t=document.implementation.createHTMLDocument(),n=t.createElement("base"),i=t.createElement("a");return t.head.appendChild(n),t.body.appendChild(i),e&&(n.href=e),i.href=r,i.href}function de(r){let e=[];for(let t=0,n=r.length;t<n;t++)e.push(r[t]);return e}function Qr(r={}){return Qe||(r.includeStyleProperties?(Qe=r.includeStyleProperties,Qe):(Qe=de(window.getComputedStyle(document.documentElement)),Qe))}function qr(r,e){let n=(r.ownerDocument.defaultView||window).getComputedStyle(r).getPropertyValue(e);return n?parseFloat(n.replace("px","")):0}function pm(r){let e=qr(r,"border-left-width"),t=qr(r,"border-right-width");return r.clientWidth+e+t}function mm(r){let e=qr(r,"border-top-width"),t=qr(r,"border-bottom-width");return r.clientHeight+e+t}function en(r,e={}){let t=e.width||pm(r),n=e.height||mm(r);return {width:t,height:n}}function xl(){let r,e;try{e=process;}catch(n){}let t=e&&e.env?e.env.devicePixelRatio:null;return t&&(r=parseInt(t,10),Number.isNaN(r)&&(r=1)),r||window.devicePixelRatio||1}function Rl(r){(r.width>ie||r.height>ie)&&(r.width>ie&&r.height>ie?r.width>r.height?(r.height*=ie/r.width,r.width=ie):(r.width*=ie/r.height,r.height=ie):r.width>ie?(r.height*=ie/r.width,r.width=ie):(r.width*=ie/r.height,r.height=ie));}function Ml(r,e={}){return r.toBlob?new Promise(t=>{r.toBlob(t,e.type?e.type:"image/png",e.quality?e.quality:1);}):new Promise(t=>{let n=window.atob(r.toDataURL(e.type?e.type:void 0,e.quality?e.quality:void 0).split(",")[1]),i=n.length,s=new Uint8Array(i);for(let o=0;o<i;o+=1)s[o]=n.charCodeAt(o);t(new Blob([s],{type:e.type?e.type:"image/png"}));})}function et(r){return new Promise((e,t)=>{let n=new Image;n.onload=()=>{n.decode().then(()=>{requestAnimationFrame(()=>e(n));});},n.onerror=t,n.crossOrigin="anonymous",n.decoding="async",n.src=r;})}async function gm(r){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(r)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function Tl(r,e,t){let n="http://www.w3.org/2000/svg",i=document.createElementNS(n,"svg"),s=document.createElementNS(n,"foreignObject");return i.setAttribute("width",`${e}`),i.setAttribute("height",`${t}`),i.setAttribute("viewBox",`0 0 ${e} ${t}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),i.appendChild(s),s.appendChild(r),gm(i)}var Il,Qe,ie,K,Le=pe(()=>{Il=(()=>{let r=0,e=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return ()=>(r+=1,`u${e()}${r}`)})();Qe=null;ie=16384;K=(r,e)=>{if(r instanceof e)return true;let t=Object.getPrototypeOf(r);return t===null?false:t.constructor.name===e.name||K(t,e)};});function ym(r){let e=r.getPropertyValue("content");return `${r.cssText} content: '${e.replace(/'|"/g,"")}';`}function bm(r,e){return Qr(e).map(t=>{let n=r.getPropertyValue(t),i=r.getPropertyPriority(t);return `${t}: ${n}${i?" !important":""};`}).join(" ")}function wm(r,e,t,n){let i=`.${r}:${e}`,s=t.cssText?ym(t):bm(t,n);return document.createTextNode(`${i}{${s}}`)}function Al(r,e,t,n){let i=window.getComputedStyle(r,t),s=i.getPropertyValue("content");if(s===""||s==="none")return;let o=Il();try{e.className=`${e.className} ${o}`;}catch(a){return}let l=document.createElement("style");l.appendChild(wm(o,t,i,n)),e.appendChild(l);}function kl(r,e,t){Al(r,e,":before",t),Al(r,e,":after",t);}var _l=pe(()=>{Le();});function Sm(r){let e=/\.([^./]*?)$/g.exec(r);return e?e[1]:""}function tt(r){let e=Sm(r).toLowerCase();return vm[e]||""}var Nl,Ol,vm,tn=pe(()=>{Nl="application/font-woff",Ol="image/jpeg",vm={woff:Nl,woff2:Nl,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Ol,jpeg:Ol,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};});function Cm(r){return r.split(/,/)[1]}function At(r){return r.search(/^(data:)/)!==-1}function zi(r,e){return `data:${e};base64,${r}`}async function Vi(r,e,t){let n=await fetch(r,e);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);let i=await n.blob();return new Promise((s,o)=>{let l=new FileReader;l.onerror=o,l.onloadend=()=>{try{s(t({res:n,result:l.result}));}catch(a){o(a);}},l.readAsDataURL(i);})}function Em(r,e,t){let n=r.replace(/\?.*/,"");return t&&(n=r),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),e?`[${e}]${n}`:n}async function rt(r,e,t){let n=Em(r,e,t.includeQueryParams);if(Hi[n]!=null)return Hi[n];t.cacheBust&&(r+=(/\?/.test(r)?"&":"?")+new Date().getTime());let i;try{let s=await Vi(r,t.fetchRequestInit,({res:o,result:l})=>(e||(e=o.headers.get("Content-Type")||""),Cm(l)));i=zi(s,e);}catch(s){i=t.imagePlaceholder||"";let o=`Failed to fetch resource: ${r}`;s&&(o=typeof s=="string"?s:s.message),o&&console.warn(o);}return Hi[n]=i,i}var Hi,kt=pe(()=>{Hi={};});async function Im(r){let e=r.toDataURL();return e==="data:,"?r.cloneNode(false):et(e)}async function xm(r,e){if(r.currentSrc){let s=document.createElement("canvas"),o=s.getContext("2d");s.width=r.clientWidth,s.height=r.clientHeight,o==null||o.drawImage(r,0,0,s.width,s.height);let l=s.toDataURL();return et(l)}let t=r.poster,n=tt(t),i=await rt(t,n,e);return et(i)}async function Rm(r,e){var t;try{if(!((t=r==null?void 0:r.contentDocument)===null||t===void 0)&&t.body)return await _t(r.contentDocument.body,e,!0)}catch(n){}return r.cloneNode(false)}async function Mm(r,e){return K(r,HTMLCanvasElement)?Im(r):K(r,HTMLVideoElement)?xm(r,e):K(r,HTMLIFrameElement)?Rm(r,e):r.cloneNode(Dl(r))}async function Am(r,e,t){var n,i;if(Dl(e))return e;let s=[];return Tm(r)&&r.assignedNodes?s=de(r.assignedNodes()):K(r,HTMLIFrameElement)&&(!((n=r.contentDocument)===null||n===void 0)&&n.body)?s=de(r.contentDocument.body.childNodes):s=de(((i=r.shadowRoot)!==null&&i!==void 0?i:r).childNodes),s.length===0||K(r,HTMLVideoElement)||await s.reduce((o,l)=>o.then(()=>_t(l,t)).then(a=>{a&&e.appendChild(a);}),Promise.resolve()),e}function km(r,e,t){let n=e.style;if(!n)return;let i=window.getComputedStyle(r);i.cssText?(n.cssText=i.cssText,n.transformOrigin=i.transformOrigin):Qr(t).forEach(s=>{let o=i.getPropertyValue(s);s==="font-size"&&o.endsWith("px")&&(o=`${Math.floor(parseFloat(o.substring(0,o.length-2)))-.1}px`),K(r,HTMLIFrameElement)&&s==="display"&&o==="inline"&&(o="block"),s==="d"&&e.getAttribute("d")&&(o=`path(${e.getAttribute("d")})`),n.setProperty(s,o,i.getPropertyPriority(s));});}function _m(r,e){K(r,HTMLTextAreaElement)&&(e.innerHTML=r.value),K(r,HTMLInputElement)&&e.setAttribute("value",r.value);}function Nm(r,e){if(K(r,HTMLSelectElement)){let n=Array.from(e.children).find(i=>r.value===i.getAttribute("value"));n&&n.setAttribute("selected","");}}function Om(r,e,t){return K(e,Element)&&(km(r,e,t),kl(r,e,t),_m(r,e),Nm(r,e)),e}async function Dm(r,e){let t=r.querySelectorAll?r.querySelectorAll("use"):[];if(t.length===0)return r;let n={};for(let s=0;s<t.length;s++){let l=t[s].getAttribute("xlink:href");if(l){let a=r.querySelector(l),c=document.querySelector(l);!a&&c&&!n[l]&&(n[l]=await _t(c,e,true));}}let i=Object.values(n);if(i.length){let s="http://www.w3.org/1999/xhtml",o=document.createElementNS(s,"svg");o.setAttribute("xmlns",s),o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.overflow="hidden",o.style.display="none";let l=document.createElementNS(s,"defs");o.appendChild(l);for(let a=0;a<i.length;a++)l.appendChild(i[a]);r.appendChild(o);}return r}async function _t(r,e,t){return !t&&e.filter&&!e.filter(r)?null:Promise.resolve(r).then(n=>Mm(n,e)).then(n=>Am(r,n,e)).then(n=>Om(r,n,e)).then(n=>Dm(n,e))}var Tm,Dl,Ll=pe(()=>{_l();Le();tn();kt();Tm=r=>r.tagName!=null&&r.tagName.toUpperCase()==="SLOT",Dl=r=>r.tagName!=null&&r.tagName.toUpperCase()==="SVG";});function Fm(r){let e=r.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function $m(r){let e=[];return r.replace(Pl,(t,n,i)=>(e.push(i),t)),e.filter(t=>!At(t))}async function Bm(r,e,t,n,i){try{let s=t?El(e,t):e,o=tt(e),l;if(i);else l=await rt(s,o,n);return r.replace(Fm(e),`$1${l}$3`)}catch(s){}return r}function Um(r,{preferredFontFormat:e}){return e?r.replace(Pm,t=>{for(;;){let[n,,i]=Lm.exec(t)||[];if(!i)return "";if(i===e)return `src: ${n};`}}):r}function Gi(r){return r.search(Pl)!==-1}async function rn(r,e,t){if(!Gi(r))return r;let n=Um(r,t);return $m(n).reduce((s,o)=>s.then(l=>Bm(l,o,e,t)),Promise.resolve(n))}var Pl,Lm,Pm,ji=pe(()=>{Le();tn();kt();Pl=/url\((['"]?)([^'"]+?)\1\)/g,Lm=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Pm=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;});async function nt(r,e,t){var n;let i=(n=e.style)===null||n===void 0?void 0:n.getPropertyValue(r);if(i){let s=await rn(i,null,t);return e.style.setProperty(r,s,e.style.getPropertyPriority(r)),true}return false}async function Wm(r,e){await nt("background",r,e)||await nt("background-image",r,e),await nt("mask",r,e)||await nt("-webkit-mask",r,e)||await nt("mask-image",r,e)||await nt("-webkit-mask-image",r,e);}async function Hm(r,e){let t=K(r,HTMLImageElement);if(!(t&&!At(r.src))&&!(K(r,SVGImageElement)&&!At(r.href.baseVal)))return;let n=t?r.src:r.href.baseVal,i=await rt(n,tt(n),e);await new Promise((s,o)=>{r.onload=s,r.onerror=e.onImageErrorHandler?(...a)=>{try{s(e.onImageErrorHandler(...a));}catch(c){o(c);}}:o;let l=r;l.decode&&(l.decode=s),l.loading==="lazy"&&(l.loading="eager"),t?(r.srcset="",r.src=i):r.href.baseVal=i;});}async function zm(r,e){let n=de(r.childNodes).map(i=>Yi(i,e));await Promise.all(n).then(()=>r);}async function Yi(r,e){K(r,Element)&&(await Wm(r,e),await Hm(r,e),await zm(r,e));}var Fl=pe(()=>{ji();Le();kt();tn();});function $l(r,e){let{style:t}=r;e.backgroundColor&&(t.backgroundColor=e.backgroundColor),e.width&&(t.width=`${e.width}px`),e.height&&(t.height=`${e.height}px`);let n=e.style;return n!=null&&Object.keys(n).forEach(i=>{t[i]=n[i];}),r}var Bl=pe(()=>{});async function Wl(r){let e=Ul[r];if(e!=null)return e;let n=await(await fetch(r)).text();return e={url:r,cssText:n},Ul[r]=e,e}async function Hl(r,e){let t=r.cssText,n=/url\(["']?([^"')]+)["']?\)/g,s=(t.match(/url\([^)]+\)/g)||[]).map(async o=>{let l=o.replace(n,"$1");return l.startsWith("https://")||(l=new URL(l,r.url).href),Vi(l,e.fetchRequestInit,({result:a})=>(t=t.replace(o,`url(${a})`),[o,a]))});return Promise.all(s).then(()=>t)}function zl(r){if(r==null)return [];let e=[],t=/(\/\*[\s\S]*?\*\/)/gi,n=r.replace(t,""),i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let a=i.exec(n);if(a===null)break;e.push(a[0]);}n=n.replace(i,"");let s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",l=new RegExp(o,"gi");for(;;){let a=s.exec(n);if(a===null){if(a=l.exec(n),a===null)break;s.lastIndex=l.lastIndex;}else l.lastIndex=s.lastIndex;e.push(a[0]);}return e}async function Vm(r,e){let t=[],n=[];return r.forEach(i=>{if("cssRules"in i)try{de(i.cssRules||[]).forEach((s,o)=>{if(s.type===CSSRule.IMPORT_RULE){let l=o+1,a=s.href,c=Wl(a).then(u=>Hl(u,e)).then(u=>zl(u).forEach(d=>{try{i.insertRule(d,d.startsWith("@import")?l+=1:i.cssRules.length);}catch(f){console.error("Error inserting rule from remote css",{rule:d,error:f});}})).catch(u=>{console.error("Error loading remote css",u.toString());});n.push(c);}});}catch(s){let o=r.find(l=>l.href==null)||document.styleSheets[0];i.href!=null&&n.push(Wl(i.href).then(l=>Hl(l,e)).then(l=>zl(l).forEach(a=>{o.insertRule(a,o.cssRules.length);})).catch(l=>{console.error("Error loading remote stylesheet",l);})),console.error("Error inlining remote css file",s);}}),Promise.all(n).then(()=>(r.forEach(i=>{if("cssRules"in i)try{de(i.cssRules||[]).forEach(s=>{t.push(s);});}catch(s){console.error(`Error while reading CSS rules from ${i.href}`,s);}}),t))}function Gm(r){return r.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>Gi(e.style.getPropertyValue("src")))}async function jm(r,e){if(r.ownerDocument==null)throw new Error("Provided element is not within a Document");let t=de(r.ownerDocument.styleSheets),n=await Vm(t,e);return Gm(n)}function Vl(r){return r.trim().replace(/["']/g,"")}function Ym(r){let e=new Set;function t(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(s=>{e.add(Vl(s));}),Array.from(n.children).forEach(s=>{s instanceof HTMLElement&&t(s);});}return t(r),e}async function Xi(r,e){let t=await jm(r,e),n=Ym(r);return (await Promise.all(t.filter(s=>n.has(Vl(s.style.fontFamily))).map(s=>{let o=s.parentStyleSheet?s.parentStyleSheet.href:null;return rn(s.cssText,o,e)}))).join(`
|
|
2
|
-
`)}async function Gl(r,e){let t=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:await Xi(r,e);if(t){let n=document.createElement("style"),i=document.createTextNode(t);n.appendChild(i),r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n);}}var Ul,jl=pe(()=>{Le();kt();ji();Ul={};});var Xl={};ac(Xl,{getFontEmbedCSS:()=>qm,toBlob:()=>Km,toCanvas:()=>Nt,toJpeg:()=>Jm,toPixelData:()=>Xm,toPng:()=>Zm,toSvg:()=>Yl});async function Yl(r,e={}){let{width:t,height:n}=en(r,e),i=await _t(r,e,true);return await Gl(i,e),await Yi(i,e),$l(i,e),await Tl(i,t,n)}async function Nt(r,e={}){let{width:t,height:n}=en(r,e),i=await Yl(r,e),s=await et(i),o=document.createElement("canvas"),l=o.getContext("2d"),a=e.pixelRatio||xl(),c=e.canvasWidth||t,u=e.canvasHeight||n;return o.width=c*a,o.height=u*a,e.skipAutoScale||Rl(o),o.style.width=`${c}`,o.style.height=`${u}`,e.backgroundColor&&(l.fillStyle=e.backgroundColor,l.fillRect(0,0,o.width,o.height)),l.drawImage(s,0,0,o.width,o.height),o}async function Xm(r,e={}){let{width:t,height:n}=en(r,e);return (await Nt(r,e)).getContext("2d").getImageData(0,0,t,n).data}async function Zm(r,e={}){return (await Nt(r,e)).toDataURL()}async function Jm(r,e={}){return (await Nt(r,e)).toDataURL("image/jpeg",e.quality||1)}async function Km(r,e={}){let t=await Nt(r,e);return await Ml(t)}async function qm(r,e={}){return Xi(r,e)}var Zl=pe(()=>{Ll();Fl();Bl();jl();Le();});var lc={enabled:true,sampling:1,ignoreSelectors:["[data-blocfeed-ui]","[data-blocfeed-ignore]"],rageClick:{enabled:true,threshold:3,windowMs:1e3,streakIdleMs:1500},httpFail:{enabled:true,statusCodes:[400,401,403,404,408,409,422,429,500,502,503,504],ignoreUrls:["/api/behavioral-events","/api/feedback"],treatJsonErrorAsFail:false},redirectLoop:{enabled:true,threshold:3,windowMs:2e3},formDataLoss:{enabled:true},deadClick:{enabled:true,observationWindowMs:300,rateLimitPerSelector:5},piiScrub:"default"};function os(r){var t,n,i,s,o,l,a,c,u;let e=lc;return {enabled:(t=r==null?void 0:r.enabled)!=null?t:e.enabled,sampling:(n=r==null?void 0:r.sampling)!=null?n:e.sampling,ignoreSelectors:(i=r==null?void 0:r.ignoreSelectors)!=null?i:e.ignoreSelectors,rageClick:{...e.rageClick,...(s=r==null?void 0:r.rageClick)!=null?s:{}},httpFail:{...e.httpFail,...(o=r==null?void 0:r.httpFail)!=null?o:{}},redirectLoop:{...e.redirectLoop,...(l=r==null?void 0:r.redirectLoop)!=null?l:{}},formDataLoss:{...e.formDataLoss,...(a=r==null?void 0:r.formDataLoss)!=null?a:{}},deadClick:{...e.deadClick,...(c=r==null?void 0:r.deadClick)!=null?c:{}},piiScrub:(u=r==null?void 0:r.piiScrub)!=null?u:e.piiScrub}}function as(r){let e=[];async function t(){if(e.length===0)return;let i=e.splice(0,50);try{await fetch(r.endpoint,{method:"POST",headers:{"Content-Type":"application/json","x-blocfeed-id":r.blocfeedId},body:JSON.stringify({events:i}),keepalive:!0});}catch(s){}}function n(){if(e.length===0)return;if(typeof navigator=="undefined"||typeof navigator.sendBeacon!="function"){t();return}let i=e.splice(0,50),s=new Blob([JSON.stringify({events:i})],{type:"application/json"}),o=`${r.endpoint}?_bfid=${encodeURIComponent(r.blocfeedId)}`;try{navigator.sendBeacon(o,s);}catch(l){}}return {enqueue(i){e.push(i);},flush:t,flushBeacon:n,size(){return e.length}}}function ls(r){let e=globalThis.CSS;return typeof(e==null?void 0:e.escape)=="function"?e.escape(r):r.replace(/[^a-zA-Z0-9_-]/g,t=>{let n=t.codePointAt(0);return n===void 0?"":`\\${n.toString(16)} `})}function cc(r){return r.replace(/\s+/g," ").trim()}function Pe(r,e=140){let t=r.textContent;if(!t)return;let n=cc(t);if(n)return n.length<=e?n:`${n.slice(0,e-1)}\u2026`}function uc(r){let e=1;for(let t=r.previousElementSibling;t;t=t.previousElementSibling)t.tagName===r.tagName&&(e+=1);return e}var cs=["data-testid","data-test-id","data-test","data-qa","data-cy"],un="data-blocfeed-component";function it(r){let e=r.closest(`[${un}]`);if(!e)return;let t=e.getAttribute(un),n=t==null?void 0:t.trim();return n||void 0}function Fe(r,e=5){let t=[],n=r,i=0;for(;n&&i<e*4;){let s=it(n);if(s&&t[t.length-1]!==s&&(t.push(s),t.length>=e))break;n=n.parentElement,i++;}return t}function $e(r,e=4){let t=r,n=0;for(;t&&n<e;){let i=t.getAttribute(un),s=i==null?void 0:i.trim();if(s)return `bf:component:${s}`;for(let a of cs){let c=t.getAttribute(a),u=c==null?void 0:c.trim();if(u)return `bf:testid:${u}`}let o=t.getAttribute("id"),l=o==null?void 0:o.trim();if(l&&!/^\d/.test(l))return `bf:id:${l}`;t=t.parentElement,n+=1;}return null}function fc(r){let e=r.tagName.toLowerCase(),t=r.getAttribute("id");if(t)return `#${ls(t)}`;for(let n of cs){let i=r.getAttribute(n);if(i)return `${e}[${n}="${ls(i)}"]`}return `${e}:nth-of-type(${uc(r)})`}function Be(r,e=10){let t=[],n=r;for(;n&&t.length<e;){let i=fc(n);if(t.unshift(i),i.startsWith("#"))break;n=n.parentElement;}return t.join(" > ")}var dc=new Set(["button","link","tab","menuitem"]);function us(r){var t;if(r.tagName==="BUTTON")return r.disabled?null:"button";if(r.tagName==="A"||r.tagName==="a"){let n=(t=r.getAttribute("href"))==null?void 0:t.trim();return !n||n==="#"||n.toLowerCase().startsWith("javascript:")?null:"link"}let e=r.getAttribute("role");if(e&&dc.has(e))return "role";try{if(window.getComputedStyle(r).cursor==="pointer")return "cursor_pointer"}catch(n){}return null}function Ft(r,e){if(e.length===0)return false;for(let t of e)try{if(r.matches(t)||r.closest(t))return !0}catch(n){}return false}var fs="bf_behavioral_session",$t=null;function Y(){try{let r=sessionStorage.getItem(fs);if(r)return r;let e=ds();return sessionStorage.setItem(fs,e),e}catch(r){return $t||($t=ds(),$t)}}function ds(){let r=Math.random().toString(36).slice(2,10).padEnd(8,"0");return `bf_${Date.now()}_${r}`}function Bt(r){let e=0;for(let t=0;t<r.length;t++)e=e*31+r.charCodeAt(t)|0;return Math.abs(e)}function hs(r,e){if(!r.rageClick.enabled)return ()=>{};let{threshold:t,windowMs:n,streakIdleMs:i}=r.rageClick,s=new Map;function o(d){var b,S;let f=d.target,g=f?hc(f):false,m=f&&(b=Pe(f,200))!=null?b:null,p=f?f.tagName.toLowerCase():"",h=f&&f.id||null,y=f&&(S=it(f))!=null?S:null,w=f?Fe(f,5):[];return {session_id:Y(),event_type:"rage_click",page_url:typeof window=="undefined"?"":window.location.href,selector:d.selector,element_text:m,event_data:{click_count:d.timestamps.length,window_ms:n,final:true,...g?{disabled:true}:{},tag_name:p,...h?{element_id:h}:{},...y?{component_name:y}:{},...w.length>0?{parent_components:w}:{}},created_at:new Date().toISOString(),stable_key:d.stableKey}}function l(d){let f=s.get(d);f&&(f.idleTimer&&(clearTimeout(f.idleTimer),f.idleTimer=null),f.reached&&e(o(f)),s.delete(d));}function a(d){let f=s.get(d);f&&(f.idleTimer&&clearTimeout(f.idleTimer),f.idleTimer=setTimeout(()=>{l(d);},i));}function c(d){try{let f=d.target;if(!f||!(f instanceof Element)||Ft(f,r.ignoreSelectors))return;let g=Be(f,4);if(!g)return;let m=$e(f),p=m!=null?m:g,h=Date.now(),y=s.get(p);y?(y.target=f,y.selector=g):(y={selector:g,stableKey:m,timestamps:[],reached:!1,idleTimer:null,target:f},s.set(p,y)),y.reached||(y.timestamps=y.timestamps.filter(w=>h-w<=n)),y.timestamps.push(h),a(p),!y.reached&&y.timestamps.length>=t&&(y.reached=!0);}catch(f){}}function u(){for(let d of Array.from(s.keys()))l(d);}return document.addEventListener("click",c,{capture:true,passive:true}),typeof window!="undefined"&&window.addEventListener("pagehide",u),()=>{document.removeEventListener("click",c,{capture:true}),typeof window!="undefined"&&window.removeEventListener("pagehide",u);for(let d of s.values())d.idleTimer&&clearTimeout(d.idleTimer);s.clear();}}function hc(r){if(r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true")return true;try{if(window.getComputedStyle(r).pointerEvents==="none")return !0}catch(e){}return false}var ps=0,ms=null,Wt=null,Ht=[],pc=1500;function mc(){function r(e){var t;try{let n=e.target;if(!n)return;let i=n.closest('button[type="submit"], input[type="submit"], [data-blocfeed-submit]');if(!i)return;ps=Date.now();let s=i.closest("form");ms=(s?Be(s,3):"")||null,Wt=(t=Pe(i,100))!=null?t:null,Ht=Fe(i,5);}catch(n){}}return document.addEventListener("click",r,{capture:true,passive:true}),()=>document.removeEventListener("click",r,{capture:true})}function gs(r,e){if(!r.httpFail.enabled)return ()=>{};let{statusCodes:t,ignoreUrls:n,treatJsonErrorAsFail:i}=r.httpFail,s=new Set(t),o=mc(),l=globalThis.fetch,a=async(f,g)=>{var y,w,b;let m=typeof f=="string"?f:f instanceof URL?f.toString():f.url,p=((w=(y=g==null?void 0:g.method)!=null?y:f.method)!=null?w:"GET").toUpperCase(),h;try{h=await l.call(globalThis,f,g);}catch(S){try{if(!Ut(m,n)){let E=S&&typeof S=="object"&&S.name==="AbortError"?"abort":"network";e(d(0,m,p,E));}}catch(E){}throw S}try{if(!Ut(m,n)&&s.has(h.status))e(d(h.status,m,p));else if(i&&!Ut(m,n)&&h.status>=200&&h.status<300){let S=(b=h.headers.get("content-type"))!=null?b:"";(S.includes("application/json")||S.includes("+json"))&&h.clone().json().then(E=>{if(gc(E))try{e(d(h.status,m,p,"json_error"));}catch(I){}}).catch(()=>{});}}catch(S){}return h};globalThis.fetch=a;let c=XMLHttpRequest.prototype.open,u=XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(f,g,...m){return this.__bf_url=g,this.__bf_method=f.toUpperCase(),c.call(this,f,g,...m)},XMLHttpRequest.prototype.send=function(f){let g=()=>{var m,p;try{let h=(m=this.__bf_url)!=null?m:"",y=(p=this.__bf_method)!=null?p:"GET";!Ut(h,n)&&s.has(this.status)&&e(d(this.status,h,y));}catch(h){}};return this.__bf_handler=g,this.addEventListener("loadend",g),u.call(this,f!=null?f:null)},()=>{globalThis.fetch=l,XMLHttpRequest.prototype.open=c,XMLHttpRequest.prototype.send=u,o(),Wt=null,Ht=[];};function d(f,g,m,p){let y=Date.now()-ps<pc;return {session_id:Y(),event_type:"error",page_url:typeof window=="undefined"?"":window.location.href,selector:null,element_text:null,event_data:{http_status:f,request_url:g,method:m,...p?{error_kind:p}:{},form_selector:y?ms:null,...y&&Wt?{button_text:Wt}:{},...y&&Ht.length>0?{parent_components:Ht}:{}},created_at:new Date().toISOString(),stable_key:null}}}function gc(r){if(!r||typeof r!="object")return false;let e=r;return e.ok===false||e.success===false||"error"in e&&e.error!=null&&e.error!==false}function Ut(r,e){if(e.length===0)return false;for(let t of e)if(r.includes(t))return true;return false}var yc=3e4;function ys(r,e){if(!r.redirectLoop.enabled)return ()=>{};if(typeof window=="undefined")return ()=>{};let{threshold:t,windowMs:n}=r.redirectLoop,i=new Map,s=new Map,o=history.pushState,l=history.replaceState;function a(u){var d,f;try{let g=Date.now(),m=(d=s.get(u))!=null?d:0;if(g<m)return;let h=((f=i.get(u))!=null?f:[]).filter(y=>g-y<=n);if(h.push(g),i.set(u,h),h.length>=t){let y={session_id:Y(),event_type:"thrashing",page_url:window.location.href,selector:null,element_text:null,event_data:{count:h.length,url:u,window_ms:n},created_at:new Date().toISOString(),stable_key:null};e(y),s.set(u,g+yc),i.set(u,[]);}}catch(g){}}function c(){let u=window.location.pathname+window.location.search;a(u);}return history.pushState=function(...u){let d=o.apply(this,u);return c(),d},history.replaceState=function(...u){let d=l.apply(this,u);return c(),d},window.addEventListener("popstate",c),()=>{history.pushState=o,history.replaceState=l,window.removeEventListener("popstate",c);}}var bc=6e4;function bs(r,e){if(!r.formDataLoss.enabled)return ()=>{};if(typeof window=="undefined")return ()=>{};let t=new Set,n=new Map,i=new Map,s=new Map;function o(p){let h=p.closest("form");return h?h.id?`#${h.id}`:"form":null}function l(){let p=0;for(let h of n.values())p+=h;return p}function a(p){t.delete(p),n.delete(p),s.delete(p);}function c(p){var h;try{let y=p.target;if(!y||!(y instanceof HTMLInputElement||y instanceof HTMLTextAreaElement||y instanceof HTMLSelectElement))return;let w=o(y);if(!w)return;t.add(w),n.set(w,((h=n.get(w))!=null?h:0)+1);let b=y.closest("form");b&&s.set(w,b);}catch(y){}}function u(p){try{let h=p.target;if(!h||!(h instanceof HTMLFormElement))return;let y=h.id?`#${h.id}`:"form";i.set(y,Date.now()),a(y);}catch(h){}}function d(p){try{let h=p.target;if(!h||!(h instanceof HTMLFormElement))return;let y=h.id?`#${h.id}`:"form";a(y);}catch(h){}}function f(p){var E,I;if(t.size===0)return;let h=Array.from(t),y=(E=h[0])!=null?E:null,w=y&&(I=s.get(y))!=null?I:null,b=w?$e(w):null,S={session_id:Y(),event_type:"form_abandonment",page_url:window.location.href,selector:y,element_text:null,event_data:{cause:p,field_count:l(),forms:h},created_at:new Date().toISOString(),stable_key:b};e(S);}function g(p){if(!p.persisted||t.size===0)return;let h=Date.now();for(let[,y]of i)if(h-y<bc)return;f("bfcache_restore");}function m(){f("beforeunload_after_edit");}return document.addEventListener("input",c,{capture:true,passive:true}),document.addEventListener("submit",u,{capture:true}),document.addEventListener("reset",d,{capture:true}),window.addEventListener("pageshow",g),window.addEventListener("beforeunload",m),()=>{document.removeEventListener("input",c,{capture:true}),document.removeEventListener("submit",u,{capture:true}),document.removeEventListener("reset",d,{capture:true}),window.removeEventListener("pageshow",g),window.removeEventListener("beforeunload",m);}}function wc(){let r={urlChangeCount:0,networkCount:0,filePickerCount:0,uninstall:()=>{}},e=history.pushState,t=history.replaceState;history.pushState=function(...l){return r.urlChangeCount+=1,e.apply(this,l)},history.replaceState=function(...l){return r.urlChangeCount+=1,t.apply(this,l)};let n=()=>{r.urlChangeCount+=1;};window.addEventListener("popstate",n);let i=globalThis.fetch;if(i){let l=(a,c)=>(r.networkCount+=1,i.call(globalThis,a,c));globalThis.fetch=l;}let s=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(l,a,...c){return r.networkCount+=1,s.call(this,l,a,...c)};let o=HTMLInputElement.prototype.click;return HTMLInputElement.prototype.click=function(){return this.type==="file"&&(r.filePickerCount+=1),o.call(this)},r.uninstall=()=>{history.pushState=e,history.replaceState=t,window.removeEventListener("popstate",n),i&&(globalThis.fetch=i),XMLHttpRequest.prototype.open=s,HTMLInputElement.prototype.click=o;},r}function ws(r,e){if(!r.deadClick.enabled)return ()=>{};if(typeof window=="undefined")return ()=>{};let{observationWindowMs:t,rateLimitPerSelector:n}=r.deadClick,i=new Map,s=wc();function o(l){var a,c;try{let u=l.target;if(!u||!(u instanceof Element)||l.button!==0||l.metaKey||l.ctrlKey||l.altKey||l.shiftKey||Ft(u,r.ignoreSelectors)||u.closest("label"))return;if(u instanceof HTMLInputElement){let D=u.type;if(D==="checkbox"||D==="radio"||D==="file")return}if(u instanceof HTMLSelectElement||u.closest("a[target='_blank'], a[download]")||u.closest('[contenteditable="true"]'))return;try{let D=window.getSelection();if(D&&D.toString().length>0)return}catch(D){}let d=us(u);if(!d)return;let f=Be(u,4);if(!f)return;let g=$e(u),m=g!=null?g:f,p=s.urlChangeCount,h=s.networkCount,y=s.filePickerCount,w=new Date().toISOString(),b=(a=Pe(u,200))!=null?a:null,S=u.tagName.toLowerCase(),E=u.id||null,I=(c=it(u))!=null?c:null,P=Fe(u,5),A=vc(u),F=0,$=null;if(A){$=new MutationObserver(()=>{F+=1;});try{$.observe(A,{childList:!0,attributes:!0,characterData:!0,subtree:!0});}catch(D){$=null;}}setTimeout(()=>{var C;if($)try{$.disconnect();}catch(re){}if(F>0||s.urlChangeCount!==p||s.networkCount!==h||s.filePickerCount!==y)return;let D=(C=i.get(m))!=null?C:0;if(D>=n)return;i.set(m,D+1);let q={session_id:Y(),event_type:"dead_click",page_url:typeof window=="undefined"?"":window.location.href,selector:f,element_text:b,event_data:{tag_name:S,...E?{element_id:E}:{},...I?{component_name:I}:{},...P.length>0?{parent_components:P}:{},clickable_reason:d},created_at:w,stable_key:g};e(q);},t);}catch(u){}}return document.addEventListener("click",o,{capture:true,passive:true}),()=>{document.removeEventListener("click",o,{capture:true}),s.uninstall();}}function vc(r){let e=r.closest('button, a, form, [role="button"]');return e||r.parentElement}var Sc=Object.defineProperty,Cc=(r,e,t)=>e in r?Sc(r,e,{enumerable:true,configurable:true,writable:true,value:t}):r[e]=t,v=(r,e,t)=>Cc(r,typeof e!="symbol"?e+"":e,t),vs,Ec=Object.defineProperty,Ic=(r,e,t)=>e in r?Ec(r,e,{enumerable:true,configurable:true,writable:true,value:t}):r[e]=t,Ss=(r,e,t)=>Ic(r,typeof e!="symbol"?e+"":e,t),Z=(r=>(r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r))(Z||{}),Cs={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Es={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},zt={},xc=()=>!!globalThis.Zone;function pi(r){if(zt[r])return zt[r];let e=globalThis[r],t=e.prototype,n=r in Cs?Cs[r]:void 0,i=!!(n&&n.every(l=>{var a,c;return !!((c=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&c.toString().includes("[native code]"))})),s=r in Es?Es[r]:void 0,o=!!(s&&s.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(i&&o&&!xc())return zt[r]=e.prototype,e.prototype;try{let l=document.createElement("iframe");document.body.appendChild(l);let a=l.contentWindow;if(!a)return e.prototype;let c=a[r].prototype;return document.body.removeChild(l),c?zt[r]=c:t}catch(l){return t}}var fn={};function ve(r,e,t){var n;let i=`${r}.${String(t)}`;if(fn[i])return fn[i].call(e);let s=pi(r),o=(n=Object.getOwnPropertyDescriptor(s,t))==null?void 0:n.get;return o?(fn[i]=o,o.call(e)):e[t]}var dn={};function wo(r,e,t){let n=`${r}.${String(t)}`;if(dn[n])return dn[n].bind(e);let s=pi(r)[t];return typeof s!="function"?e[t]:(dn[n]=s,s.bind(e))}function Rc(r){return ve("Node",r,"ownerDocument")}function Mc(r){return ve("Node",r,"childNodes")}function Tc(r){return ve("Node",r,"parentNode")}function Ac(r){return ve("Node",r,"parentElement")}function kc(r){return ve("Node",r,"textContent")}function _c(r,e){return wo("Node",r,"contains")(e)}function Nc(r){return wo("Node",r,"getRootNode")()}function Oc(r){return !r||!("host"in r)?null:ve("ShadowRoot",r,"host")}function Dc(r){return r.styleSheets}function Lc(r){return !r||!("shadowRoot"in r)?null:ve("Element",r,"shadowRoot")}function Pc(r,e){return ve("Element",r,"querySelector")(e)}function Fc(r,e){return ve("Element",r,"querySelectorAll")(e)}function $c(){return pi("MutationObserver").constructor}function Bc(r,e,t){try{if(!(e in r))return ()=>{};let n=r[e],i=t(n);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),r[e]=i,()=>{r[e]=n;}}catch(n){return ()=>{}}}var J={ownerDocument:Rc,childNodes:Mc,parentNode:Tc,parentElement:Ac,textContent:kc,contains:_c,getRootNode:Nc,host:Oc,styleSheets:Dc,shadowRoot:Lc,querySelector:Pc,querySelectorAll:Fc,mutationObserver:$c,patch:Bc};function vo(r){return r.nodeType===r.ELEMENT_NODE}function ut(r){let e=r&&"host"in r&&"mode"in r&&J.host(r)||null;return !!(e&&"shadowRoot"in e&&J.shadowRoot(e)===r)}function ft(r){return Object.prototype.toString.call(r)==="[object ShadowRoot]"}function Uc(r){return r.includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")&&(r=r.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),r}function Wc(r){let{cssText:e}=r;if(e.split('"').length<3)return e;let t=["@import",`url(${JSON.stringify(r.href)})`];return r.layerName===""?t.push("layer"):r.layerName&&t.push(`layer(${r.layerName})`),r.supportsText&&t.push(`supports(${r.supportsText})`),r.media.length&&t.push(r.media.mediaText),t.join(" ")+";"}function xn(r){try{let e=r.rules||r.cssRules;if(!e)return null;let t=r.href;!t&&r.ownerNode&&(t=r.ownerNode.baseURI);let n=Array.from(e,i=>So(i,t)).join("");return Uc(n)}catch(e){return null}}function So(r,e){if(zc(r)){let t;try{t=xn(r.styleSheet)||Wc(r);}catch(n){t=r.cssText;}return r.styleSheet.href?Sr(t,r.styleSheet.href):t}else {let t=r.cssText;return Vc(r)&&r.selectorText.includes(":")&&(t=Hc(t)),e?Sr(t,e):t}}function Hc(r){let e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return r.replace(e,"$1\\$2")}function zc(r){return "styleSheet"in r}function Vc(r){return "selectorText"in r}var br=class{constructor(){Ss(this,"idNodeMap",new Map),Ss(this,"nodeMetaMap",new WeakMap);}getId(e){var t;if(!e)return -1;let n=(t=this.getMeta(e))==null?void 0:t.id;return n!=null?n:-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(n=>this.removeNodeFromMap(n));}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t);}replace(e,t){let n=this.getNode(e);if(n){let i=this.nodeMetaMap.get(n);i&&this.nodeMetaMap.set(t,i);}this.idNodeMap.set(e,t);}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap;}};function Gc(){return new br}function wr({element:r,maskInputOptions:e,tagName:t,type:n,value:i,maskInputFn:s}){let o=i||"",l=n&&_e(n);return (e[t.toLowerCase()]||l&&e[l])&&(s?o=s(o,r):o="*".repeat(o.length)),o}function _e(r){return r.toLowerCase()}var Is="__rrweb_original__";function jc(r){let e=r.getContext("2d");if(!e)return true;let t=50;for(let n=0;n<r.width;n+=t)for(let i=0;i<r.height;i+=t){let s=e.getImageData,o=Is in s?s[Is]:s;if(new Uint32Array(o.call(e,n,i,Math.min(t,r.width-n),Math.min(t,r.height-i)).data.buffer).some(a=>a!==0))return false}return true}function vr(r){let e=r.type;return r.hasAttribute("data-rr-is-password")?"password":e?_e(e):null}function Co(r,e){var s;let t;try{t=new URL(r,e!=null?e:window.location.href);}catch(o){return null}let n=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(n);return (s=i==null?void 0:i[1])!=null?s:null}function Yc(r){let e="";return r.indexOf("//")>-1?e=r.split("/").slice(0,3).join("/"):e=r.split("/")[0],e=e.split("?")[0],e}var Xc=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Zc=/^(?:[a-z+]+:)?\/\//i,Jc=/^www\..*/i,Kc=/^(data:)([^,]*),(.*)/i;function Sr(r,e){return (r||"").replace(Xc,(t,n,i,s,o,l)=>{let a=i||o||l,c=n||s||"";if(!a)return t;if(Zc.test(a)||Jc.test(a))return `url(${c}${a}${c})`;if(Kc.test(a))return `url(${c}${a}${c})`;if(a[0]==="/")return `url(${c}${Yc(e)+a}${c})`;let u=e.split("/"),d=a.split("/");u.pop();for(let f of d)f!=="."&&(f===".."?u.pop():u.push(f));return `url(${c}${u.join("/")}${c})`})}function Vt(r,e=false){return e?r.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):r.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function qc(r,e,t=false){let n=Array.from(e.childNodes),i=[],s=0;if(n.length>1&&r&&typeof r=="string"){let o=Vt(r,t),l=o.length/r.length;for(let a=1;a<n.length;a++)if(n[a].textContent&&typeof n[a].textContent=="string"){let c=Vt(n[a].textContent,t),u=100,d=3;for(;d<c.length&&(c[d].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,d),1)!==-1);d++);for(;d<c.length;d++){let f=c.substring(0,d),g=o.split(f),m=-1;if(g.length===2)m=g[0].length;else if(g.length>2&&g[0]===""&&n[a-1].textContent!=="")m=o.indexOf(f,1);else if(g.length===1){if(f=f.substring(0,f.length-1),g=o.split(f),g.length<=1)return i.push(r),i;d=u+1;}else d===c.length-1&&(m=o.indexOf(f));if(g.length>=2&&d>u){let p=n[a-1].textContent;if(p&&typeof p=="string"){let h=Vt(p).length;m=o.indexOf(f,h);}m===-1&&(m=g[0].length);}if(m!==-1){let p=Math.floor(m/l);for(;p>0&&p<r.length;){if(s+=1,s>50*n.length)return i.push(r),i;let h=Vt(r.substring(0,p),t);if(h.length===m){i.push(r.substring(0,p)),r=r.substring(p),o=o.substring(m);break}else h.length<m?p+=Math.max(1,Math.floor((m-h.length)/l)):p-=Math.max(1,Math.floor((h.length-m)*l));}break}}}}return i.push(r),i}function Qc(r,e){return qc(r,e).join("/* rr_split */")}var eu=1,tu=new RegExp("[^a-z0-9-_:]"),ht=-2;function Eo(){return eu++}function ru(r){if(r instanceof HTMLFormElement)return "form";let e=_e(r.tagName);return tu.test(e)?"div":e}var Ue,xs,nu=/^[^ \t\n\r\u000c]+/,iu=/^[, \t\n\r\u000c]+/;function su(r,e){if(e.trim()==="")return e;let t=0;function n(s){let o,l=s.exec(e.substring(t));return l?(o=l[0],t+=o.length,o):""}let i=[];for(;n(iu),!(t>=e.length);){let s=n(nu);if(s.slice(-1)===",")s=ze(r,s.substring(0,s.length-1)),i.push(s);else {let o="";s=ze(r,s);let l=false;for(;;){let a=e.charAt(t);if(a===""){i.push((s+o).trim());break}else if(l)a===")"&&(l=false);else if(a===","){t+=1,i.push((s+o).trim());break}else a==="("&&(l=true);o+=a,t+=1;}}}return i.join(", ")}var Rs=new WeakMap;function ze(r,e){return !e||e.trim()===""?e:mi(r,e)}function ou(r){return !!(r.tagName==="svg"||r.ownerSVGElement)}function mi(r,e){let t=Rs.get(r);if(t||(t=r.createElement("a"),Rs.set(r,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function Io(r,e,t,n){return n&&(t==="src"||t==="href"&&!(e==="use"&&n[0]==="#")||t==="xlink:href"&&n[0]!=="#"||t==="background"&&["table","td","th"].includes(e)?ze(r,n):t==="srcset"?su(r,n):t==="style"?Sr(n,mi(r)):e==="object"&&t==="data"?ze(r,n):n)}function xo(r,e,t){return ["video","audio"].includes(r)&&e==="autoplay"}function au(r,e,t){try{if(typeof e=="string"){if(r.classList.contains(e))return !0}else for(let n=r.classList.length;n--;){let i=r.classList[n];if(e.test(i))return !0}if(t)return r.matches(t)}catch(n){}return false}function Cr(r,e,t){if(!r)return false;if(r.nodeType!==r.ELEMENT_NODE)return t?Cr(J.parentNode(r),e,t):false;for(let n=r.classList.length;n--;){let i=r.classList[n];if(e.test(i))return true}return t?Cr(J.parentNode(r),e,t):false}function Ro(r,e,t,n){let i;if(vo(r)){if(i=r,!J.childNodes(i).length)return false}else {if(J.parentElement(r)===null)return false;i=J.parentElement(r);}try{if(typeof e=="string"){if(n){if(i.closest(`.${e}`))return !0}else if(i.classList.contains(e))return !0}else if(Cr(i,e,n))return !0;if(t){if(n){if(i.closest(t))return !0}else if(i.matches(t))return !0}}catch(s){}return false}function lu(r,e,t){let n=r.contentWindow;if(!n)return;let i=false,s;try{s=n.document.readyState;}catch(l){return}if(s!=="complete"){let l=setTimeout(()=>{i||(e(),i=true);},t);r.addEventListener("load",()=>{clearTimeout(l),i=true,e();});return}let o="about:blank";if(n.location.href!==o||r.src===o||r.src==="")return setTimeout(e,0),r.addEventListener("load",e);r.addEventListener("load",e);}function cu(r,e,t){let n=false,i;try{i=r.sheet;}catch(o){return}if(i)return;let s=setTimeout(()=>{n||(e(),n=true);},t);r.addEventListener("load",()=>{clearTimeout(s),n=true,e();});}function uu(r,e){let{doc:t,mirror:n,blockClass:i,blockSelector:s,needsMask:o,inlineStylesheet:l,maskInputOptions:a={},maskTextFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:f,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:p=false,cssCaptured:h=false}=e,y=fu(t,n);switch(r.nodeType){case r.DOCUMENT_NODE:return r.compatMode!=="CSS1Compat"?{type:Z.Document,childNodes:[],compatMode:r.compatMode}:{type:Z.Document,childNodes:[]};case r.DOCUMENT_TYPE_NODE:return {type:Z.DocumentType,name:r.name,publicId:r.publicId,systemId:r.systemId,rootId:y};case r.ELEMENT_NODE:return hu(r,{doc:t,blockClass:i,blockSelector:s,inlineStylesheet:l,maskInputOptions:a,maskInputFn:u,dataURLOptions:d,inlineImages:f,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:p,rootId:y});case r.TEXT_NODE:return du(r,{doc:t,needsMask:o,maskTextFn:c,rootId:y,cssCaptured:h});case r.CDATA_SECTION_NODE:return {type:Z.CDATA,textContent:"",rootId:y};case r.COMMENT_NODE:return {type:Z.Comment,textContent:J.textContent(r)||"",rootId:y};default:return false}}function fu(r,e){if(!e.hasNode(r))return;let t=e.getId(r);return t===1?void 0:t}function du(r,e){let{needsMask:t,maskTextFn:n,rootId:i,cssCaptured:s}=e,o=J.parentNode(r),l=o&&o.tagName,a="",c=l==="STYLE"?true:void 0,u=l==="SCRIPT"?true:void 0;return u?a="SCRIPT_PLACEHOLDER":s||(a=J.textContent(r),c&&a&&(a=Sr(a,mi(e.doc)))),!c&&!u&&a&&t&&(a=n?n(a,J.parentElement(r)):a.replace(/[\S]/g,"*")),{type:Z.Text,textContent:a||"",rootId:i}}function hu(r,e){let{doc:t,blockClass:n,blockSelector:i,inlineStylesheet:s,maskInputOptions:o={},maskInputFn:l,dataURLOptions:a={},inlineImages:c,recordCanvas:u,keepIframeSrcFn:d,newlyAddedElement:f=false,rootId:g}=e,m=au(r,n,i),p=ru(r),h={},y=r.attributes.length;for(let b=0;b<y;b++){let S=r.attributes[b];xo(p,S.name,S.value)||(h[S.name]=Io(t,p,_e(S.name),S.value));}if(p==="link"&&s){let b=Array.from(t.styleSheets).find(E=>E.href===r.href),S=null;b&&(S=xn(b)),S&&(delete h.rel,delete h.href,h._cssText=S);}if(p==="style"&&r.sheet){let b=xn(r.sheet);b&&(r.childNodes.length>1&&(b=Qc(b,r)),h._cssText=b);}if(["input","textarea","select"].includes(p)){let b=r.value,S=r.checked;h.type!=="radio"&&h.type!=="checkbox"&&h.type!=="submit"&&h.type!=="button"&&b?h.value=wr({element:r,type:vr(r),tagName:p,value:b,maskInputOptions:o,maskInputFn:l}):S&&(h.checked=S);}if(p==="option"&&(r.selected&&!o.select?h.selected=true:delete h.selected),p==="dialog"&&r.open&&(h.rr_open_mode=r.matches("dialog:modal")?"modal":"non-modal"),p==="canvas"&&u){if(r.__context==="2d")jc(r)||(h.rr_dataURL=r.toDataURL(a.type,a.quality));else if(!("__context"in r)){let b=r.toDataURL(a.type,a.quality),S=t.createElement("canvas");S.width=r.width,S.height=r.height;let E=S.toDataURL(a.type,a.quality);b!==E&&(h.rr_dataURL=b);}}if(p==="img"&&c){Ue||(Ue=t.createElement("canvas"),xs=Ue.getContext("2d"));let b=r,S=b.currentSrc||b.getAttribute("src")||"<unknown-src>",E=b.crossOrigin,I=()=>{b.removeEventListener("load",I);try{Ue.width=b.naturalWidth,Ue.height=b.naturalHeight,xs.drawImage(b,0,0),h.rr_dataURL=Ue.toDataURL(a.type,a.quality);}catch(P){if(b.crossOrigin!=="anonymous"){b.crossOrigin="anonymous",b.complete&&b.naturalWidth!==0?I():b.addEventListener("load",I);return}else console.warn(`Cannot inline img src=${S}! Error: ${P}`);}b.crossOrigin==="anonymous"&&(E?h.crossOrigin=E:b.removeAttribute("crossorigin"));};b.complete&&b.naturalWidth!==0?I():b.addEventListener("load",I);}if(["audio","video"].includes(p)){let b=h;b.rr_mediaState=r.paused?"paused":"played",b.rr_mediaCurrentTime=r.currentTime,b.rr_mediaPlaybackRate=r.playbackRate,b.rr_mediaMuted=r.muted,b.rr_mediaLoop=r.loop,b.rr_mediaVolume=r.volume;}if(f||(r.scrollLeft&&(h.rr_scrollLeft=r.scrollLeft),r.scrollTop&&(h.rr_scrollTop=r.scrollTop)),m){let{width:b,height:S}=r.getBoundingClientRect();h={class:h.class,rr_width:`${b}px`,rr_height:`${S}px`};}p==="iframe"&&!d(h.src)&&(r.contentDocument||(h.rr_src=h.src),delete h.src);let w;try{customElements.get(p)&&(w=!0);}catch(b){}return {type:Z.Element,tagName:p,attributes:h,childNodes:[],isSVG:ou(r)||void 0,needBlock:m,rootId:g,isCustom:w}}function L(r){return r==null?"":r.toLowerCase()}function Mo(r){return r===true||r==="all"?{script:true,comment:true,headFavicon:true,headWhitespace:true,headMetaSocial:true,headMetaRobots:true,headMetaHttpEquiv:true,headMetaVerification:true,headMetaAuthorship:r==="all",headMetaDescKeywords:r==="all",headTitleMutations:r==="all"}:r||{}}function pu(r,e){if(e.comment&&r.type===Z.Comment)return true;if(r.type===Z.Element){if(e.script&&(r.tagName==="script"||r.tagName==="link"&&(r.attributes.rel==="preload"&&r.attributes.as==="script"||r.attributes.rel==="modulepreload")||r.tagName==="link"&&r.attributes.rel==="prefetch"&&typeof r.attributes.href=="string"&&Co(r.attributes.href)==="js"))return true;if(e.headFavicon&&(r.tagName==="link"&&r.attributes.rel==="shortcut icon"||r.tagName==="meta"&&(L(r.attributes.name).match(/^msapplication-tile(image|color)$/)||L(r.attributes.name)==="application-name"||L(r.attributes.rel)==="icon"||L(r.attributes.rel)==="apple-touch-icon"||L(r.attributes.rel)==="shortcut icon")))return true;if(r.tagName==="meta"){if(e.headMetaDescKeywords&&L(r.attributes.name).match(/^description|keywords$/))return true;if(e.headMetaSocial&&(L(r.attributes.property).match(/^(og|twitter|fb):/)||L(r.attributes.name).match(/^(og|twitter):/)||L(r.attributes.name)==="pinterest"))return true;if(e.headMetaRobots&&(L(r.attributes.name)==="robots"||L(r.attributes.name)==="googlebot"||L(r.attributes.name)==="bingbot"))return true;if(e.headMetaHttpEquiv&&r.attributes["http-equiv"]!==void 0)return true;if(e.headMetaAuthorship&&(L(r.attributes.name)==="author"||L(r.attributes.name)==="generator"||L(r.attributes.name)==="framework"||L(r.attributes.name)==="publisher"||L(r.attributes.name)==="progid"||L(r.attributes.property).match(/^article:/)||L(r.attributes.property).match(/^product:/)))return true;if(e.headMetaVerification&&(L(r.attributes.name)==="google-site-verification"||L(r.attributes.name)==="yandex-verification"||L(r.attributes.name)==="csrf-token"||L(r.attributes.name)==="p:domain_verify"||L(r.attributes.name)==="verify-v1"||L(r.attributes.name)==="verification"||L(r.attributes.name)==="shopify-checkout-api-token"))return true}}return false}function Ve(r,e){let{doc:t,mirror:n,blockClass:i,blockSelector:s,maskTextClass:o,maskTextSelector:l,skipChild:a=false,inlineStylesheet:c=true,maskInputOptions:u={},maskTextFn:d,maskInputFn:f,slimDOMOptions:g,dataURLOptions:m={},inlineImages:p=false,recordCanvas:h=false,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:E=5e3,keepIframeSrcFn:I=()=>false,newlyAddedElement:P=false,cssCaptured:A=false}=e,{needsMask:F}=e,{preserveWhiteSpace:$=true}=e;F||(F=Ro(r,o,l,F===void 0));let D=uu(r,{doc:t,mirror:n,blockClass:i,blockSelector:s,needsMask:F,inlineStylesheet:c,maskInputOptions:u,maskTextFn:d,maskInputFn:f,dataURLOptions:m,inlineImages:p,recordCanvas:h,keepIframeSrcFn:I,newlyAddedElement:P,cssCaptured:A});if(!D)return console.warn(r,"not serialized"),null;let q;n.hasNode(r)?q=n.getId(r):pu(D,g)||!$&&D.type===Z.Text&&!D.textContent.replace(/^\s+|\s+$/gm,"").length?q=ht:q=Eo();let C=Object.assign(D,{id:q});if(n.add(r,C),q===ht)return null;y&&y(r);let re=!a;if(C.type===Z.Element){re=re&&!C.needBlock,delete C.needBlock;let j=J.shadowRoot(r);j&&ft(j)&&(C.isShadowHost=true);}if((C.type===Z.Document||C.type===Z.Element)&&re){g.headWhitespace&&C.type===Z.Element&&C.tagName==="head"&&($=false);let j={doc:t,mirror:n,blockClass:i,blockSelector:s,needsMask:F,maskTextClass:o,maskTextSelector:l,skipChild:a,inlineStylesheet:c,maskInputOptions:u,maskTextFn:d,maskInputFn:f,slimDOMOptions:g,dataURLOptions:m,inlineImages:p,recordCanvas:h,preserveWhiteSpace:$,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:I,cssCaptured:false};if(!(C.type===Z.Element&&C.tagName==="textarea"&&C.attributes.value!==void 0)){C.type===Z.Element&&C.attributes._cssText!==void 0&&typeof C.attributes._cssText=="string"&&(j.cssCaptured=true);for(let Me of Array.from(J.childNodes(r))){let he=Ve(Me,j);he&&C.childNodes.push(he);}}let se=null;if(vo(r)&&(se=J.shadowRoot(r)))for(let Me of Array.from(J.childNodes(se))){let he=Ve(Me,j);he&&(ft(se)&&(he.isShadow=true),C.childNodes.push(he));}}let Re=J.parentNode(r);return Re&&ut(Re)&&ft(Re)&&(C.isShadow=true),C.type===Z.Element&&C.tagName==="iframe"&&lu(r,()=>{let j=r.contentDocument;if(j&&w){let se=Ve(j,{doc:j,mirror:n,blockClass:i,blockSelector:s,needsMask:F,maskTextClass:o,maskTextSelector:l,skipChild:false,inlineStylesheet:c,maskInputOptions:u,maskTextFn:d,maskInputFn:f,slimDOMOptions:g,dataURLOptions:m,inlineImages:p,recordCanvas:h,preserveWhiteSpace:$,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:I});se&&w(r,se);}},b),C.type===Z.Element&&C.tagName==="link"&&typeof C.attributes.rel=="string"&&(C.attributes.rel==="stylesheet"||C.attributes.rel==="preload"&&typeof C.attributes.href=="string"&&Co(C.attributes.href)==="css")&&cu(r,()=>{if(S){let j=Ve(r,{doc:t,mirror:n,blockClass:i,blockSelector:s,needsMask:F,maskTextClass:o,maskTextSelector:l,skipChild:false,inlineStylesheet:c,maskInputOptions:u,maskTextFn:d,maskInputFn:f,slimDOMOptions:g,dataURLOptions:m,inlineImages:p,recordCanvas:h,preserveWhiteSpace:$,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:I});j&&S(r,j);}},E),C}function mu(r,e){let{mirror:t=new br,blockClass:n="rr-block",blockSelector:i=null,maskTextClass:s="rr-mask",maskTextSelector:o=null,inlineStylesheet:l=true,inlineImages:a=false,recordCanvas:c=false,maskAllInputs:u=false,maskTextFn:d,maskInputFn:f,slimDOM:g=false,dataURLOptions:m,preserveWhiteSpace:p,onSerialize:h,onIframeLoad:y,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:S,keepIframeSrcFn:E=()=>false}=e||{},I=u===true?{color:true,date:true,"datetime-local":true,email:true,month:true,number:true,range:true,search:true,tel:true,text:true,time:true,url:true,week:true,textarea:true,select:true,password:true}:u===false?{password:true}:u,P=Mo(g);return Ve(r,{doc:r,mirror:t,blockClass:n,blockSelector:i,maskTextClass:s,maskTextSelector:o,skipChild:false,inlineStylesheet:l,maskInputOptions:I,maskTextFn:d,maskInputFn:f,slimDOMOptions:P,dataURLOptions:m,inlineImages:a,recordCanvas:c,preserveWhiteSpace:p,onSerialize:h,onIframeLoad:y,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:S,keepIframeSrcFn:E,newlyAddedElement:false})}function yu(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function bu(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype;}else t={};return Object.defineProperty(t,"__esModule",{value:true}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:true,get:function(){return r[n]}});}),t}var gi={exports:{}},B=String,To=function(){return {isColorSupported:false,reset:B,bold:B,dim:B,italic:B,underline:B,inverse:B,hidden:B,strikethrough:B,black:B,red:B,green:B,yellow:B,blue:B,magenta:B,cyan:B,white:B,gray:B,bgBlack:B,bgRed:B,bgGreen:B,bgYellow:B,bgBlue:B,bgMagenta:B,bgCyan:B,bgWhite:B}};gi.exports=To();gi.exports.createColors=To;var wu=gi.exports,vu={},Su=Object.freeze(Object.defineProperty({__proto__:null,default:vu},Symbol.toStringTag,{value:"Module"})),ue=bu(Su),Ms=wu,Ts=ue,Rn=class Ao extends Error{constructor(e,t,n,i,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),i&&(this.source=i),o&&(this.plugin=o),typeof t!="undefined"&&typeof n!="undefined"&&(typeof t=="number"?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Ao);}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason;}showSourceCode(e){if(!this.source)return "";let t=this.source;e==null&&(e=Ms.isColorSupported),Ts&&e&&(t=Ts(t));let n=t.split(/\r?\n/),i=Math.max(this.line-3,0),s=Math.min(this.line+2,n.length),o=String(s).length,l,a;if(e){let{bold:c,gray:u,red:d}=Ms.createColors(true);l=f=>c(d(f)),a=f=>u(f);}else l=a=c=>c;return n.slice(i,s).map((c,u)=>{let d=i+1+u,f=" "+(" "+d).slice(-o)+" | ";if(d===this.line){let g=a(f.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(f)+c+`
|
|
3
|
-
`+g+l("^")}return " "+a(f)+c}).join(`
|
|
1
|
+
var BlocFeedScript=(function(exports){'use strict';var ac=Object.defineProperty;var pe=(r,e)=>()=>(r&&(e=r(r=0)),e);var lc=(r,e)=>{for(var t in e)ac(r,t,{get:e[t],enumerable:true});};function Il(r,e){if(r.match(/^[a-z]+:\/\//i))return r;if(r.match(/^\/\//))return window.location.protocol+r;if(r.match(/^[a-z]+:/i))return r;let t=document.implementation.createHTMLDocument(),n=t.createElement("base"),i=t.createElement("a");return t.head.appendChild(n),t.body.appendChild(i),e&&(n.href=e),i.href=r,i.href}function de(r){let e=[];for(let t=0,n=r.length;t<n;t++)e.push(r[t]);return e}function Qr(r={}){return tt||(r.includeStyleProperties?(tt=r.includeStyleProperties,tt):(tt=de(window.getComputedStyle(document.documentElement)),tt))}function qr(r,e){let n=(r.ownerDocument.defaultView||window).getComputedStyle(r).getPropertyValue(e);return n?parseFloat(n.replace("px","")):0}function vm(r){let e=qr(r,"border-left-width"),t=qr(r,"border-right-width");return r.clientWidth+e+t}function Sm(r){let e=qr(r,"border-top-width"),t=qr(r,"border-bottom-width");return r.clientHeight+e+t}function en(r,e={}){let t=e.width||vm(r),n=e.height||Sm(r);return {width:t,height:n}}function Rl(){let r,e;try{e=process;}catch(n){}let t=e&&e.env?e.env.devicePixelRatio:null;return t&&(r=parseInt(t,10),Number.isNaN(r)&&(r=1)),r||window.devicePixelRatio||1}function Ml(r){(r.width>ie||r.height>ie)&&(r.width>ie&&r.height>ie?r.width>r.height?(r.height*=ie/r.width,r.width=ie):(r.width*=ie/r.height,r.height=ie):r.width>ie?(r.height*=ie/r.width,r.width=ie):(r.width*=ie/r.height,r.height=ie));}function Tl(r,e={}){return r.toBlob?new Promise(t=>{r.toBlob(t,e.type?e.type:"image/png",e.quality?e.quality:1);}):new Promise(t=>{let n=window.atob(r.toDataURL(e.type?e.type:void 0,e.quality?e.quality:void 0).split(",")[1]),i=n.length,s=new Uint8Array(i);for(let o=0;o<i;o+=1)s[o]=n.charCodeAt(o);t(new Blob([s],{type:e.type?e.type:"image/png"}));})}function rt(r){return new Promise((e,t)=>{let n=new Image;n.onload=()=>{n.decode().then(()=>{requestAnimationFrame(()=>e(n));});},n.onerror=t,n.crossOrigin="anonymous",n.decoding="async",n.src=r;})}async function Cm(r){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(r)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function Al(r,e,t){let n="http://www.w3.org/2000/svg",i=document.createElementNS(n,"svg"),s=document.createElementNS(n,"foreignObject");return i.setAttribute("width",`${e}`),i.setAttribute("height",`${t}`),i.setAttribute("viewBox",`0 0 ${e} ${t}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),i.appendChild(s),s.appendChild(r),Cm(i)}var xl,tt,ie,K,Pe=pe(()=>{xl=(()=>{let r=0,e=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return ()=>(r+=1,`u${e()}${r}`)})();tt=null;ie=16384;K=(r,e)=>{if(r instanceof e)return true;let t=Object.getPrototypeOf(r);return t===null?false:t.constructor.name===e.name||K(t,e)};});function Em(r){let e=r.getPropertyValue("content");return `${r.cssText} content: '${e.replace(/'|"/g,"")}';`}function Im(r,e){return Qr(e).map(t=>{let n=r.getPropertyValue(t),i=r.getPropertyPriority(t);return `${t}: ${n}${i?" !important":""};`}).join(" ")}function xm(r,e,t,n){let i=`.${r}:${e}`,s=t.cssText?Em(t):Im(t,n);return document.createTextNode(`${i}{${s}}`)}function kl(r,e,t,n){let i=window.getComputedStyle(r,t),s=i.getPropertyValue("content");if(s===""||s==="none")return;let o=xl();try{e.className=`${e.className} ${o}`;}catch(a){return}let l=document.createElement("style");l.appendChild(xm(o,t,i,n)),e.appendChild(l);}function _l(r,e,t){kl(r,e,":before",t),kl(r,e,":after",t);}var Nl=pe(()=>{Pe();});function Mm(r){let e=/\.([^./]*?)$/g.exec(r);return e?e[1]:""}function nt(r){let e=Mm(r).toLowerCase();return Rm[e]||""}var Ol,Dl,Rm,tn=pe(()=>{Ol="application/font-woff",Dl="image/jpeg",Rm={woff:Ol,woff2:Ol,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Dl,jpeg:Dl,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};});function Tm(r){return r.split(/,/)[1]}function kt(r){return r.search(/^(data:)/)!==-1}function zi(r,e){return `data:${e};base64,${r}`}async function Vi(r,e,t){let n=await fetch(r,e);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);let i=await n.blob();return new Promise((s,o)=>{let l=new FileReader;l.onerror=o,l.onloadend=()=>{try{s(t({res:n,result:l.result}));}catch(a){o(a);}},l.readAsDataURL(i);})}function Am(r,e,t){let n=r.replace(/\?.*/,"");return t&&(n=r),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),e?`[${e}]${n}`:n}async function it(r,e,t){let n=Am(r,e,t.includeQueryParams);if(Hi[n]!=null)return Hi[n];t.cacheBust&&(r+=(/\?/.test(r)?"&":"?")+new Date().getTime());let i;try{let s=await Vi(r,t.fetchRequestInit,({res:o,result:l})=>(e||(e=o.headers.get("Content-Type")||""),Tm(l)));i=zi(s,e);}catch(s){i=t.imagePlaceholder||"";let o=`Failed to fetch resource: ${r}`;s&&(o=typeof s=="string"?s:s.message),o&&console.warn(o);}return Hi[n]=i,i}var Hi,_t=pe(()=>{Hi={};});async function km(r){let e=r.toDataURL();return e==="data:,"?r.cloneNode(false):rt(e)}async function _m(r,e){if(r.currentSrc){let s=document.createElement("canvas"),o=s.getContext("2d");s.width=r.clientWidth,s.height=r.clientHeight,o==null||o.drawImage(r,0,0,s.width,s.height);let l=s.toDataURL();return rt(l)}let t=r.poster,n=nt(t),i=await it(t,n,e);return rt(i)}async function Nm(r,e){var t;try{if(!((t=r==null?void 0:r.contentDocument)===null||t===void 0)&&t.body)return await Nt(r.contentDocument.body,e,!0)}catch(n){}return r.cloneNode(false)}async function Om(r,e){return K(r,HTMLCanvasElement)?km(r):K(r,HTMLVideoElement)?_m(r,e):K(r,HTMLIFrameElement)?Nm(r,e):r.cloneNode(Ll(r))}async function Lm(r,e,t){var n,i;if(Ll(e))return e;let s=[];return Dm(r)&&r.assignedNodes?s=de(r.assignedNodes()):K(r,HTMLIFrameElement)&&(!((n=r.contentDocument)===null||n===void 0)&&n.body)?s=de(r.contentDocument.body.childNodes):s=de(((i=r.shadowRoot)!==null&&i!==void 0?i:r).childNodes),s.length===0||K(r,HTMLVideoElement)||await s.reduce((o,l)=>o.then(()=>Nt(l,t)).then(a=>{a&&e.appendChild(a);}),Promise.resolve()),e}function Pm(r,e,t){let n=e.style;if(!n)return;let i=window.getComputedStyle(r);i.cssText?(n.cssText=i.cssText,n.transformOrigin=i.transformOrigin):Qr(t).forEach(s=>{let o=i.getPropertyValue(s);s==="font-size"&&o.endsWith("px")&&(o=`${Math.floor(parseFloat(o.substring(0,o.length-2)))-.1}px`),K(r,HTMLIFrameElement)&&s==="display"&&o==="inline"&&(o="block"),s==="d"&&e.getAttribute("d")&&(o=`path(${e.getAttribute("d")})`),n.setProperty(s,o,i.getPropertyPriority(s));});}function Fm(r,e){K(r,HTMLTextAreaElement)&&(e.innerHTML=r.value),K(r,HTMLInputElement)&&e.setAttribute("value",r.value);}function $m(r,e){if(K(r,HTMLSelectElement)){let n=Array.from(e.children).find(i=>r.value===i.getAttribute("value"));n&&n.setAttribute("selected","");}}function Bm(r,e,t){return K(e,Element)&&(Pm(r,e,t),_l(r,e,t),Fm(r,e),$m(r,e)),e}async function Um(r,e){let t=r.querySelectorAll?r.querySelectorAll("use"):[];if(t.length===0)return r;let n={};for(let s=0;s<t.length;s++){let l=t[s].getAttribute("xlink:href");if(l){let a=r.querySelector(l),c=document.querySelector(l);!a&&c&&!n[l]&&(n[l]=await Nt(c,e,true));}}let i=Object.values(n);if(i.length){let s="http://www.w3.org/1999/xhtml",o=document.createElementNS(s,"svg");o.setAttribute("xmlns",s),o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.overflow="hidden",o.style.display="none";let l=document.createElementNS(s,"defs");o.appendChild(l);for(let a=0;a<i.length;a++)l.appendChild(i[a]);r.appendChild(o);}return r}async function Nt(r,e,t){return !t&&e.filter&&!e.filter(r)?null:Promise.resolve(r).then(n=>Om(n,e)).then(n=>Lm(r,n,e)).then(n=>Bm(r,n,e)).then(n=>Um(n,e))}var Dm,Ll,Pl=pe(()=>{Nl();Pe();tn();_t();Dm=r=>r.tagName!=null&&r.tagName.toUpperCase()==="SLOT",Ll=r=>r.tagName!=null&&r.tagName.toUpperCase()==="SVG";});function zm(r){let e=r.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function Vm(r){let e=[];return r.replace(Fl,(t,n,i)=>(e.push(i),t)),e.filter(t=>!kt(t))}async function Gm(r,e,t,n,i){try{let s=t?Il(e,t):e,o=nt(e),l;if(i);else l=await it(s,o,n);return r.replace(zm(e),`$1${l}$3`)}catch(s){}return r}function jm(r,{preferredFontFormat:e}){return e?r.replace(Hm,t=>{for(;;){let[n,,i]=Wm.exec(t)||[];if(!i)return "";if(i===e)return `src: ${n};`}}):r}function Gi(r){return r.search(Fl)!==-1}async function rn(r,e,t){if(!Gi(r))return r;let n=jm(r,t);return Vm(n).reduce((s,o)=>s.then(l=>Gm(l,o,e,t)),Promise.resolve(n))}var Fl,Wm,Hm,ji=pe(()=>{Pe();tn();_t();Fl=/url\((['"]?)([^'"]+?)\1\)/g,Wm=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Hm=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;});async function st(r,e,t){var n;let i=(n=e.style)===null||n===void 0?void 0:n.getPropertyValue(r);if(i){let s=await rn(i,null,t);return e.style.setProperty(r,s,e.style.getPropertyPriority(r)),true}return false}async function Ym(r,e){await st("background",r,e)||await st("background-image",r,e),await st("mask",r,e)||await st("-webkit-mask",r,e)||await st("mask-image",r,e)||await st("-webkit-mask-image",r,e);}async function Xm(r,e){let t=K(r,HTMLImageElement);if(!(t&&!kt(r.src))&&!(K(r,SVGImageElement)&&!kt(r.href.baseVal)))return;let n=t?r.src:r.href.baseVal,i=await it(n,nt(n),e);await new Promise((s,o)=>{r.onload=s,r.onerror=e.onImageErrorHandler?(...a)=>{try{s(e.onImageErrorHandler(...a));}catch(c){o(c);}}:o;let l=r;l.decode&&(l.decode=s),l.loading==="lazy"&&(l.loading="eager"),t?(r.srcset="",r.src=i):r.href.baseVal=i;});}async function Jm(r,e){let n=de(r.childNodes).map(i=>Yi(i,e));await Promise.all(n).then(()=>r);}async function Yi(r,e){K(r,Element)&&(await Ym(r,e),await Xm(r,e),await Jm(r,e));}var $l=pe(()=>{ji();Pe();_t();tn();});function Bl(r,e){let{style:t}=r;e.backgroundColor&&(t.backgroundColor=e.backgroundColor),e.width&&(t.width=`${e.width}px`),e.height&&(t.height=`${e.height}px`);let n=e.style;return n!=null&&Object.keys(n).forEach(i=>{t[i]=n[i];}),r}var Ul=pe(()=>{});async function Hl(r){let e=Wl[r];if(e!=null)return e;let n=await(await fetch(r)).text();return e={url:r,cssText:n},Wl[r]=e,e}async function zl(r,e){let t=r.cssText,n=/url\(["']?([^"')]+)["']?\)/g,s=(t.match(/url\([^)]+\)/g)||[]).map(async o=>{let l=o.replace(n,"$1");return l.startsWith("https://")||(l=new URL(l,r.url).href),Vi(l,e.fetchRequestInit,({result:a})=>(t=t.replace(o,`url(${a})`),[o,a]))});return Promise.all(s).then(()=>t)}function Vl(r){if(r==null)return [];let e=[],t=/(\/\*[\s\S]*?\*\/)/gi,n=r.replace(t,""),i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let a=i.exec(n);if(a===null)break;e.push(a[0]);}n=n.replace(i,"");let s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",l=new RegExp(o,"gi");for(;;){let a=s.exec(n);if(a===null){if(a=l.exec(n),a===null)break;s.lastIndex=l.lastIndex;}else l.lastIndex=s.lastIndex;e.push(a[0]);}return e}async function Zm(r,e){let t=[],n=[];return r.forEach(i=>{if("cssRules"in i)try{de(i.cssRules||[]).forEach((s,o)=>{if(s.type===CSSRule.IMPORT_RULE){let l=o+1,a=s.href,c=Hl(a).then(u=>zl(u,e)).then(u=>Vl(u).forEach(f=>{try{i.insertRule(f,f.startsWith("@import")?l+=1:i.cssRules.length);}catch(d){console.error("Error inserting rule from remote css",{rule:f,error:d});}})).catch(u=>{console.error("Error loading remote css",u.toString());});n.push(c);}});}catch(s){let o=r.find(l=>l.href==null)||document.styleSheets[0];i.href!=null&&n.push(Hl(i.href).then(l=>zl(l,e)).then(l=>Vl(l).forEach(a=>{o.insertRule(a,o.cssRules.length);})).catch(l=>{console.error("Error loading remote stylesheet",l);})),console.error("Error inlining remote css file",s);}}),Promise.all(n).then(()=>(r.forEach(i=>{if("cssRules"in i)try{de(i.cssRules||[]).forEach(s=>{t.push(s);});}catch(s){console.error(`Error while reading CSS rules from ${i.href}`,s);}}),t))}function Km(r){return r.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>Gi(e.style.getPropertyValue("src")))}async function qm(r,e){if(r.ownerDocument==null)throw new Error("Provided element is not within a Document");let t=de(r.ownerDocument.styleSheets),n=await Zm(t,e);return Km(n)}function Gl(r){return r.trim().replace(/["']/g,"")}function Qm(r){let e=new Set;function t(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(s=>{e.add(Gl(s));}),Array.from(n.children).forEach(s=>{s instanceof HTMLElement&&t(s);});}return t(r),e}async function Xi(r,e){let t=await qm(r,e),n=Qm(r);return (await Promise.all(t.filter(s=>n.has(Gl(s.style.fontFamily))).map(s=>{let o=s.parentStyleSheet?s.parentStyleSheet.href:null;return rn(s.cssText,o,e)}))).join(`
|
|
2
|
+
`)}async function jl(r,e){let t=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:await Xi(r,e);if(t){let n=document.createElement("style"),i=document.createTextNode(t);n.appendChild(i),r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n);}}var Wl,Yl=pe(()=>{Pe();_t();ji();Wl={};});var Jl={};lc(Jl,{getFontEmbedCSS:()=>ig,toBlob:()=>ng,toCanvas:()=>Ot,toJpeg:()=>rg,toPixelData:()=>eg,toPng:()=>tg,toSvg:()=>Xl});async function Xl(r,e={}){let{width:t,height:n}=en(r,e),i=await Nt(r,e,true);return await jl(i,e),await Yi(i,e),Bl(i,e),await Al(i,t,n)}async function Ot(r,e={}){let{width:t,height:n}=en(r,e),i=await Xl(r,e),s=await rt(i),o=document.createElement("canvas"),l=o.getContext("2d"),a=e.pixelRatio||Rl(),c=e.canvasWidth||t,u=e.canvasHeight||n;return o.width=c*a,o.height=u*a,e.skipAutoScale||Ml(o),o.style.width=`${c}`,o.style.height=`${u}`,e.backgroundColor&&(l.fillStyle=e.backgroundColor,l.fillRect(0,0,o.width,o.height)),l.drawImage(s,0,0,o.width,o.height),o}async function eg(r,e={}){let{width:t,height:n}=en(r,e);return (await Ot(r,e)).getContext("2d").getImageData(0,0,t,n).data}async function tg(r,e={}){return (await Ot(r,e)).toDataURL()}async function rg(r,e={}){return (await Ot(r,e)).toDataURL("image/jpeg",e.quality||1)}async function ng(r,e={}){let t=await Ot(r,e);return await Tl(t)}async function ig(r,e={}){return Xi(r,e)}var Zl=pe(()=>{Pl();$l();Ul();Yl();Pe();});var cc={enabled:true,sampling:1,ignoreSelectors:["[data-blocfeed-ui]","[data-blocfeed-ignore]"],rageClick:{enabled:true,threshold:3,windowMs:1e3,streakIdleMs:1500},httpFail:{enabled:true,statusCodes:[400,401,403,404,408,409,422,429,500,502,503,504],ignoreUrls:["/api/behavioral-events","/api/feedback"],treatJsonErrorAsFail:false},redirectLoop:{enabled:true,threshold:3,windowMs:2e3},formDataLoss:{enabled:true},deadClick:{enabled:true,observationWindowMs:300,rateLimitPerSelector:5},jsError:{enabled:true,sampling:1,ignorePatterns:[],rateLimitPerFingerprint:5,rateLimitWindowMs:6e4},piiScrub:"default"};function os(r){var t,n,i,s,o,l,a,c,u,f;let e=cc;return {enabled:(t=r==null?void 0:r.enabled)!=null?t:e.enabled,sampling:(n=r==null?void 0:r.sampling)!=null?n:e.sampling,ignoreSelectors:(i=r==null?void 0:r.ignoreSelectors)!=null?i:e.ignoreSelectors,rageClick:{...e.rageClick,...(s=r==null?void 0:r.rageClick)!=null?s:{}},httpFail:{...e.httpFail,...(o=r==null?void 0:r.httpFail)!=null?o:{}},redirectLoop:{...e.redirectLoop,...(l=r==null?void 0:r.redirectLoop)!=null?l:{}},formDataLoss:{...e.formDataLoss,...(a=r==null?void 0:r.formDataLoss)!=null?a:{}},deadClick:{...e.deadClick,...(c=r==null?void 0:r.deadClick)!=null?c:{}},jsError:{...e.jsError,...(u=r==null?void 0:r.jsError)!=null?u:{}},piiScrub:(f=r==null?void 0:r.piiScrub)!=null?f:e.piiScrub}}function as(r){let e=[];async function t(){if(e.length===0)return;let i=e.splice(0,50);try{await fetch(r.endpoint,{method:"POST",headers:{"Content-Type":"application/json","x-blocfeed-id":r.blocfeedId},body:JSON.stringify({events:i}),keepalive:!0});}catch(s){}}function n(){if(e.length===0)return;if(typeof navigator=="undefined"||typeof navigator.sendBeacon!="function"){t();return}let i=e.splice(0,50),s=new Blob([JSON.stringify({events:i})],{type:"application/json"}),o=`${r.endpoint}?_bfid=${encodeURIComponent(r.blocfeedId)}`;try{navigator.sendBeacon(o,s);}catch(l){}}return {enqueue(i){e.push(i);},flush:t,flushBeacon:n,size(){return e.length}}}function ls(r){let e=globalThis.CSS;return typeof(e==null?void 0:e.escape)=="function"?e.escape(r):r.replace(/[^a-zA-Z0-9_-]/g,t=>{let n=t.codePointAt(0);return n===void 0?"":`\\${n.toString(16)} `})}function uc(r){return r.replace(/\s+/g," ").trim()}function Fe(r,e=140){let t=r.textContent;if(!t)return;let n=uc(t);if(n)return n.length<=e?n:`${n.slice(0,e-1)}\u2026`}function fc(r){let e=1;for(let t=r.previousElementSibling;t;t=t.previousElementSibling)t.tagName===r.tagName&&(e+=1);return e}var cs=["data-testid","data-test-id","data-test","data-qa","data-cy"],un="data-blocfeed-component";function ot(r){let e=r.closest(`[${un}]`);if(!e)return;let t=e.getAttribute(un),n=t==null?void 0:t.trim();return n||void 0}function $e(r,e=5){let t=[],n=r,i=0;for(;n&&i<e*4;){let s=ot(n);if(s&&t[t.length-1]!==s&&(t.push(s),t.length>=e))break;n=n.parentElement,i++;}return t}function Be(r,e=4){let t=r,n=0;for(;t&&n<e;){let i=t.getAttribute(un),s=i==null?void 0:i.trim();if(s)return `bf:component:${s}`;for(let a of cs){let c=t.getAttribute(a),u=c==null?void 0:c.trim();if(u)return `bf:testid:${u}`}let o=t.getAttribute("id"),l=o==null?void 0:o.trim();if(l&&!/^\d/.test(l))return `bf:id:${l}`;t=t.parentElement,n+=1;}return null}function dc(r){let e=r.tagName.toLowerCase(),t=r.getAttribute("id");if(t)return `#${ls(t)}`;for(let n of cs){let i=r.getAttribute(n);if(i)return `${e}[${n}="${ls(i)}"]`}return `${e}:nth-of-type(${fc(r)})`}function Ue(r,e=10){let t=[],n=r;for(;n&&t.length<e;){let i=dc(n);if(t.unshift(i),i.startsWith("#"))break;n=n.parentElement;}return t.join(" > ")}var hc=new Set(["button","link","tab","menuitem"]);function us(r){var t;if(r.tagName==="BUTTON")return r.disabled?null:"button";if(r.tagName==="A"||r.tagName==="a"){let n=(t=r.getAttribute("href"))==null?void 0:t.trim();return !n||n==="#"||n.toLowerCase().startsWith("javascript:")?null:"link"}let e=r.getAttribute("role");if(e&&hc.has(e))return "role";try{if(window.getComputedStyle(r).cursor==="pointer")return "cursor_pointer"}catch(n){}return null}function $t(r,e){if(e.length===0)return false;for(let t of e)try{if(r.matches(t)||r.closest(t))return !0}catch(n){}return false}var fs="bf_behavioral_session",Bt=null;function G(){try{let r=sessionStorage.getItem(fs);if(r)return r;let e=ds();return sessionStorage.setItem(fs,e),e}catch(r){return Bt||(Bt=ds(),Bt)}}function ds(){let r=Math.random().toString(36).slice(2,10).padEnd(8,"0");return `bf_${Date.now()}_${r}`}function We(r){let e=0;for(let t=0;t<r.length;t++)e=e*31+r.charCodeAt(t)|0;return Math.abs(e)}function hs(r,e){if(!r.rageClick.enabled)return ()=>{};let{threshold:t,windowMs:n,streakIdleMs:i}=r.rageClick,s=new Map;function o(f){var b,v;let d=f.target,g=d?pc(d):false,m=d&&(b=Fe(d,200))!=null?b:null,p=d?d.tagName.toLowerCase():"",h=d&&d.id||null,y=d&&(v=ot(d))!=null?v:null,w=d?$e(d,5):[];return {session_id:G(),event_type:"rage_click",page_url:typeof window=="undefined"?"":window.location.href,selector:f.selector,element_text:m,event_data:{click_count:f.timestamps.length,window_ms:n,final:true,...g?{disabled:true}:{},tag_name:p,...h?{element_id:h}:{},...y?{component_name:y}:{},...w.length>0?{parent_components:w}:{}},created_at:new Date().toISOString(),stable_key:f.stableKey}}function l(f){let d=s.get(f);d&&(d.idleTimer&&(clearTimeout(d.idleTimer),d.idleTimer=null),d.reached&&e(o(d)),s.delete(f));}function a(f){let d=s.get(f);d&&(d.idleTimer&&clearTimeout(d.idleTimer),d.idleTimer=setTimeout(()=>{l(f);},i));}function c(f){try{let d=f.target;if(!d||!(d instanceof Element)||$t(d,r.ignoreSelectors))return;let g=Ue(d,4);if(!g)return;let m=Be(d),p=m!=null?m:g,h=Date.now(),y=s.get(p);y?(y.target=d,y.selector=g):(y={selector:g,stableKey:m,timestamps:[],reached:!1,idleTimer:null,target:d},s.set(p,y)),y.reached||(y.timestamps=y.timestamps.filter(w=>h-w<=n)),y.timestamps.push(h),a(p),!y.reached&&y.timestamps.length>=t&&(y.reached=!0);}catch(d){}}function u(){for(let f of Array.from(s.keys()))l(f);}return document.addEventListener("click",c,{capture:true,passive:true}),typeof window!="undefined"&&window.addEventListener("pagehide",u),()=>{document.removeEventListener("click",c,{capture:true}),typeof window!="undefined"&&window.removeEventListener("pagehide",u);for(let f of s.values())f.idleTimer&&clearTimeout(f.idleTimer);s.clear();}}function pc(r){if(r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true")return true;try{if(window.getComputedStyle(r).pointerEvents==="none")return !0}catch(e){}return false}var ps=0,ms=null,Wt=null,Ht=[],mc=1500;function gc(){function r(e){var t;try{let n=e.target;if(!n)return;let i=n.closest('button[type="submit"], input[type="submit"], [data-blocfeed-submit]');if(!i)return;ps=Date.now();let s=i.closest("form");ms=(s?Ue(s,3):"")||null,Wt=(t=Fe(i,100))!=null?t:null,Ht=$e(i,5);}catch(n){}}return document.addEventListener("click",r,{capture:true,passive:true}),()=>document.removeEventListener("click",r,{capture:true})}function gs(r,e){if(!r.httpFail.enabled)return ()=>{};let{statusCodes:t,ignoreUrls:n,treatJsonErrorAsFail:i}=r.httpFail,s=new Set(t),o=gc(),l=globalThis.fetch,a=async(d,g)=>{var y,w,b;let m=typeof d=="string"?d:d instanceof URL?d.toString():d.url,p=((w=(y=g==null?void 0:g.method)!=null?y:d.method)!=null?w:"GET").toUpperCase(),h;try{h=await l.call(globalThis,d,g);}catch(v){try{if(!Ut(m,n)){let C=v&&typeof v=="object"&&v.name==="AbortError"?"abort":"network";e(f(0,m,p,C));}}catch(C){}throw v}try{if(!Ut(m,n)&&s.has(h.status))e(f(h.status,m,p));else if(i&&!Ut(m,n)&&h.status>=200&&h.status<300){let v=(b=h.headers.get("content-type"))!=null?b:"";(v.includes("application/json")||v.includes("+json"))&&h.clone().json().then(C=>{if(yc(C))try{e(f(h.status,m,p,"json_error"));}catch(I){}}).catch(()=>{});}}catch(v){}return h};globalThis.fetch=a;let c=XMLHttpRequest.prototype.open,u=XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(d,g,...m){return this.__bf_url=g,this.__bf_method=d.toUpperCase(),c.call(this,d,g,...m)},XMLHttpRequest.prototype.send=function(d){let g=()=>{var m,p;try{let h=(m=this.__bf_url)!=null?m:"",y=(p=this.__bf_method)!=null?p:"GET";!Ut(h,n)&&s.has(this.status)&&e(f(this.status,h,y));}catch(h){}};return this.__bf_handler=g,this.addEventListener("loadend",g),u.call(this,d!=null?d:null)},()=>{globalThis.fetch=l,XMLHttpRequest.prototype.open=c,XMLHttpRequest.prototype.send=u,o(),Wt=null,Ht=[];};function f(d,g,m,p){let y=Date.now()-ps<mc;return {session_id:G(),event_type:"error",page_url:typeof window=="undefined"?"":window.location.href,selector:null,element_text:null,event_data:{http_status:d,request_url:g,method:m,...p?{error_kind:p}:{},form_selector:y?ms:null,...y&&Wt?{button_text:Wt}:{},...y&&Ht.length>0?{parent_components:Ht}:{}},created_at:new Date().toISOString(),stable_key:null}}}function yc(r){if(!r||typeof r!="object")return false;let e=r;return e.ok===false||e.success===false||"error"in e&&e.error!=null&&e.error!==false}function Ut(r,e){if(e.length===0)return false;for(let t of e)if(r.includes(t))return true;return false}var bc=3e4;function ys(r,e){if(!r.redirectLoop.enabled)return ()=>{};if(typeof window=="undefined")return ()=>{};let{threshold:t,windowMs:n}=r.redirectLoop,i=new Map,s=new Map,o=history.pushState,l=history.replaceState;function a(u){var f,d;try{let g=Date.now(),m=(f=s.get(u))!=null?f:0;if(g<m)return;let h=((d=i.get(u))!=null?d:[]).filter(y=>g-y<=n);if(h.push(g),i.set(u,h),h.length>=t){let y={session_id:G(),event_type:"thrashing",page_url:window.location.href,selector:null,element_text:null,event_data:{count:h.length,url:u,window_ms:n},created_at:new Date().toISOString(),stable_key:null};e(y),s.set(u,g+bc),i.set(u,[]);}}catch(g){}}function c(){let u=window.location.pathname+window.location.search;a(u);}return history.pushState=function(...u){let f=o.apply(this,u);return c(),f},history.replaceState=function(...u){let f=l.apply(this,u);return c(),f},window.addEventListener("popstate",c),()=>{history.pushState=o,history.replaceState=l,window.removeEventListener("popstate",c);}}var wc=6e4;function bs(r,e){if(!r.formDataLoss.enabled)return ()=>{};if(typeof window=="undefined")return ()=>{};let t=new Set,n=new Map,i=new Map,s=new Map;function o(p){let h=p.closest("form");return h?h.id?`#${h.id}`:"form":null}function l(){let p=0;for(let h of n.values())p+=h;return p}function a(p){t.delete(p),n.delete(p),s.delete(p);}function c(p){var h;try{let y=p.target;if(!y||!(y instanceof HTMLInputElement||y instanceof HTMLTextAreaElement||y instanceof HTMLSelectElement))return;let w=o(y);if(!w)return;t.add(w),n.set(w,((h=n.get(w))!=null?h:0)+1);let b=y.closest("form");b&&s.set(w,b);}catch(y){}}function u(p){try{let h=p.target;if(!h||!(h instanceof HTMLFormElement))return;let y=h.id?`#${h.id}`:"form";i.set(y,Date.now()),a(y);}catch(h){}}function f(p){try{let h=p.target;if(!h||!(h instanceof HTMLFormElement))return;let y=h.id?`#${h.id}`:"form";a(y);}catch(h){}}function d(p){var C,I;if(t.size===0)return;let h=Array.from(t),y=(C=h[0])!=null?C:null,w=y&&(I=s.get(y))!=null?I:null,b=w?Be(w):null,v={session_id:G(),event_type:"form_abandonment",page_url:window.location.href,selector:y,element_text:null,event_data:{cause:p,field_count:l(),forms:h},created_at:new Date().toISOString(),stable_key:b};e(v);}function g(p){if(!p.persisted||t.size===0)return;let h=Date.now();for(let[,y]of i)if(h-y<wc)return;d("bfcache_restore");}function m(){d("beforeunload_after_edit");}return document.addEventListener("input",c,{capture:true,passive:true}),document.addEventListener("submit",u,{capture:true}),document.addEventListener("reset",f,{capture:true}),window.addEventListener("pageshow",g),window.addEventListener("beforeunload",m),()=>{document.removeEventListener("input",c,{capture:true}),document.removeEventListener("submit",u,{capture:true}),document.removeEventListener("reset",f,{capture:true}),window.removeEventListener("pageshow",g),window.removeEventListener("beforeunload",m);}}function vc(){let r={urlChangeCount:0,networkCount:0,filePickerCount:0,uninstall:()=>{}},e=history.pushState,t=history.replaceState;history.pushState=function(...l){return r.urlChangeCount+=1,e.apply(this,l)},history.replaceState=function(...l){return r.urlChangeCount+=1,t.apply(this,l)};let n=()=>{r.urlChangeCount+=1;};window.addEventListener("popstate",n);let i=globalThis.fetch;if(i){let l=(a,c)=>(r.networkCount+=1,i.call(globalThis,a,c));globalThis.fetch=l;}let s=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(l,a,...c){return r.networkCount+=1,s.call(this,l,a,...c)};let o=HTMLInputElement.prototype.click;return HTMLInputElement.prototype.click=function(){return this.type==="file"&&(r.filePickerCount+=1),o.call(this)},r.uninstall=()=>{history.pushState=e,history.replaceState=t,window.removeEventListener("popstate",n),i&&(globalThis.fetch=i),XMLHttpRequest.prototype.open=s,HTMLInputElement.prototype.click=o;},r}function ws(r,e){if(!r.deadClick.enabled)return ()=>{};if(typeof window=="undefined")return ()=>{};let{observationWindowMs:t,rateLimitPerSelector:n}=r.deadClick,i=new Map,s=vc();function o(l){var a,c;try{let u=l.target;if(!u||!(u instanceof Element)||l.button!==0||l.metaKey||l.ctrlKey||l.altKey||l.shiftKey||$t(u,r.ignoreSelectors)||u.closest("label"))return;if(u instanceof HTMLInputElement){let P=u.type;if(P==="checkbox"||P==="radio"||P==="file")return}if(u instanceof HTMLSelectElement||u.closest("a[target='_blank'], a[download]")||u.closest('[contenteditable="true"]'))return;try{let P=window.getSelection();if(P&&P.toString().length>0)return}catch(P){}let f=us(u);if(!f)return;let d=Ue(u,4);if(!d)return;let g=Be(u),m=g!=null?g:d,p=s.urlChangeCount,h=s.networkCount,y=s.filePickerCount,w=new Date().toISOString(),b=(a=Fe(u,200))!=null?a:null,v=u.tagName.toLowerCase(),C=u.id||null,I=(c=ot(u))!=null?c:null,D=$e(u,5),A=Sc(u),L=0,$=null;if(A){$=new MutationObserver(()=>{L+=1;});try{$.observe(A,{childList:!0,attributes:!0,characterData:!0,subtree:!0});}catch(P){$=null;}}setTimeout(()=>{var E;if($)try{$.disconnect();}catch(re){}if(L>0||s.urlChangeCount!==p||s.networkCount!==h||s.filePickerCount!==y)return;let P=(E=i.get(m))!=null?E:0;if(P>=n)return;i.set(m,P+1);let q={session_id:G(),event_type:"dead_click",page_url:typeof window=="undefined"?"":window.location.href,selector:d,element_text:b,event_data:{tag_name:v,...C?{element_id:C}:{},...I?{component_name:I}:{},...D.length>0?{parent_components:D}:{},clickable_reason:f},created_at:w,stable_key:g};e(q);},t);}catch(u){}}return document.addEventListener("click",o,{capture:true,passive:true}),()=>{document.removeEventListener("click",o,{capture:true}),s.uninstall();}}function Sc(r){let e=r.closest('button, a, form, [role="button"]');return e||r.parentElement}var vs=[{name:"email",regex:/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,replacement:"[email]"},{name:"credit_card",regex:/\b(?:\d[ -]?){13,19}\b/g,replacement:"[card]"},{name:"ssn",regex:/\b\d{3}-\d{2}-\d{4}\b/g,replacement:"[ssn]"},{name:"phone",regex:/(?:\+?\d{1,3}[\s.-]?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}/g,replacement:"[phone]"}],Cc=[...vs,{name:"ipv4",regex:/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/g,replacement:"[ip]"},{name:"iban",regex:/\b[A-Z]{2}\d{2}[A-Z0-9]{11,30}\b/g,replacement:"[iban]"}],Ec=10;function Ic(r){return r==="strict"?Cc:r==="default"?vs:[]}function xc(r,e){let t=r;for(let n of e)t=t.replace(n.regex,n.replacement);return t}function fn(r,e,t){if(t>Ec||r==null)return r;if(typeof r=="string")return xc(r,e);if(typeof r=="number"||typeof r=="boolean")return r;if(Array.isArray(r))return r.map(n=>fn(n,e,t+1));if(typeof r=="object"){let n={};for(let i of Object.keys(r))n[i]=fn(r[i],e,t+1);return n}return r}function Ee(r,e){if(e==="off")return r;let t=Ic(e);return t.length===0?r:fn(r,t,0)}var Rc=[/^Script error\.?$/,/^ResizeObserver loop/,/^Non-Error promise rejection captured/];function Mc(r){var l,a;let e=r.trim();if(!e)return "";let t="",n=e,i=e.indexOf("@"),s=/^\s*at\s+(?:(.+?)\s+\()?(.+?)\)?$/.exec(e);i>-1&&!e.startsWith("at ")?(t=e.slice(0,i),n=e.slice(i+1)):s&&(t=(l=s[1])!=null?l:"",n=(a=s[2])!=null?a:""),n=n.replace(/^https?:\/\/[^/]+/,""),n=n.replace(/\?[^:]*(?=:\d|$)/,"");let o=n.split(":");return o.length>=3&&(n=o.slice(0,o.length-1).join(":")),t?`${t}@${n}`:n}function Tc(r,e,t){let n=e.slice(0,120),i=[];if(t){let o=t.split(`
|
|
3
|
+
`);for(let l of o){let a=Mc(l);if(a&&(i.push(a),i.length>=3))break}}let s=`${r}:${n}:${i.join("|")}`;return We(s).toString(16).padStart(8,"0").slice(0,8)}function Ac(r,e){for(let t of e)if(t.test(r))return true;return false}function Ss(r,e){if(!r.jsError.enabled)return ()=>{};if(typeof window=="undefined")return ()=>{};let{sampling:t,ignorePatterns:n,rateLimitPerFingerprint:i,rateLimitWindowMs:s}=r.jsError,o=[];for(let g of n)try{o.push(new RegExp(g));}catch(m){}let l=[...Rc,...o],a=r.piiScrub,c=new Map;function u(g,m,p,h,y,w,b){try{if(Ac(m,l))return;let v=Tc(g,m,p),C=Date.now(),I=c.get(v);if(I&&C-I.windowStart<s){if(I.count>=i)return;I.count+=1;}else c.set(v,{count:1,windowStart:C});if(t<1&&Math.random()>=t)return;let D=a==="off"?m:Ee(m,a),A=p==null?null:a==="off"?p:Ee(p,a),L={session_id:G(),event_type:"error",page_url:window.location.href,selector:null,element_text:null,event_data:{name:g,message:D,filename:h,lineno:y,colno:w,stack:A,fingerprint:v,source:b,error_kind:"js_error"},created_at:new Date().toISOString(),stable_key:null};e(L);}catch(v){}}function f(g){var w,b,v,C;let m=g.error,p=(w=m==null?void 0:m.name)!=null?w:"Error",h=(v=(b=g.message)!=null?b:m==null?void 0:m.message)!=null?v:"Error",y=(C=m==null?void 0:m.stack)!=null?C:null;u(p,h,y,g.filename||null,typeof g.lineno=="number"?g.lineno:null,typeof g.colno=="number"?g.colno:null,"window.onerror");}function d(g){var w;let m=g.reason,p="UnhandledRejection",h,y=null;if(m instanceof Error)p=m.name||"UnhandledRejection",h=m.message||String(m),y=(w=m.stack)!=null?w:null;else if(m&&typeof m=="object"){let b=m;typeof b.name=="string"&&(p=b.name),h=typeof b.message=="string"?b.message:kc(m),y=typeof b.stack=="string"?b.stack:null;}else h=String(m);u(p,h,y,null,null,null,"unhandledrejection");}return window.addEventListener("error",f,true),window.addEventListener("unhandledrejection",d),()=>{window.removeEventListener("error",f,true),window.removeEventListener("unhandledrejection",d),c.clear();}}function kc(r){try{return JSON.stringify(r)}catch(e){return String(r)}}var _c=Object.defineProperty,Nc=(r,e,t)=>e in r?_c(r,e,{enumerable:true,configurable:true,writable:true,value:t}):r[e]=t,S=(r,e,t)=>Nc(r,typeof e!="symbol"?e+"":e,t),Cs,Oc=Object.defineProperty,Dc=(r,e,t)=>e in r?Oc(r,e,{enumerable:true,configurable:true,writable:true,value:t}):r[e]=t,Es=(r,e,t)=>Dc(r,typeof e!="symbol"?e+"":e,t),J=(r=>(r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r))(J||{}),Is={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},xs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},zt={},Lc=()=>!!globalThis.Zone;function mi(r){if(zt[r])return zt[r];let e=globalThis[r],t=e.prototype,n=r in Is?Is[r]:void 0,i=!!(n&&n.every(l=>{var a,c;return !!((c=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&c.toString().includes("[native code]"))})),s=r in xs?xs[r]:void 0,o=!!(s&&s.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(i&&o&&!Lc())return zt[r]=e.prototype,e.prototype;try{let l=document.createElement("iframe");document.body.appendChild(l);let a=l.contentWindow;if(!a)return e.prototype;let c=a[r].prototype;return document.body.removeChild(l),c?zt[r]=c:t}catch(l){return t}}var dn={};function ve(r,e,t){var n;let i=`${r}.${String(t)}`;if(dn[i])return dn[i].call(e);let s=mi(r),o=(n=Object.getOwnPropertyDescriptor(s,t))==null?void 0:n.get;return o?(dn[i]=o,o.call(e)):e[t]}var hn={};function So(r,e,t){let n=`${r}.${String(t)}`;if(hn[n])return hn[n].bind(e);let s=mi(r)[t];return typeof s!="function"?e[t]:(hn[n]=s,s.bind(e))}function Pc(r){return ve("Node",r,"ownerDocument")}function Fc(r){return ve("Node",r,"childNodes")}function $c(r){return ve("Node",r,"parentNode")}function Bc(r){return ve("Node",r,"parentElement")}function Uc(r){return ve("Node",r,"textContent")}function Wc(r,e){return So("Node",r,"contains")(e)}function Hc(r){return So("Node",r,"getRootNode")()}function zc(r){return !r||!("host"in r)?null:ve("ShadowRoot",r,"host")}function Vc(r){return r.styleSheets}function Gc(r){return !r||!("shadowRoot"in r)?null:ve("Element",r,"shadowRoot")}function jc(r,e){return ve("Element",r,"querySelector")(e)}function Yc(r,e){return ve("Element",r,"querySelectorAll")(e)}function Xc(){return mi("MutationObserver").constructor}function Jc(r,e,t){try{if(!(e in r))return ()=>{};let n=r[e],i=t(n);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),r[e]=i,()=>{r[e]=n;}}catch(n){return ()=>{}}}var Z={ownerDocument:Pc,childNodes:Fc,parentNode:$c,parentElement:Bc,textContent:Uc,contains:Wc,getRootNode:Hc,host:zc,styleSheets:Vc,shadowRoot:Gc,querySelector:jc,querySelectorAll:Yc,mutationObserver:Xc,patch:Jc};function Co(r){return r.nodeType===r.ELEMENT_NODE}function dt(r){let e=r&&"host"in r&&"mode"in r&&Z.host(r)||null;return !!(e&&"shadowRoot"in e&&Z.shadowRoot(e)===r)}function ht(r){return Object.prototype.toString.call(r)==="[object ShadowRoot]"}function Zc(r){return r.includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")&&(r=r.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),r}function Kc(r){let{cssText:e}=r;if(e.split('"').length<3)return e;let t=["@import",`url(${JSON.stringify(r.href)})`];return r.layerName===""?t.push("layer"):r.layerName&&t.push(`layer(${r.layerName})`),r.supportsText&&t.push(`supports(${r.supportsText})`),r.media.length&&t.push(r.media.mediaText),t.join(" ")+";"}function Rn(r){try{let e=r.rules||r.cssRules;if(!e)return null;let t=r.href;!t&&r.ownerNode&&(t=r.ownerNode.baseURI);let n=Array.from(e,i=>Eo(i,t)).join("");return Zc(n)}catch(e){return null}}function Eo(r,e){if(Qc(r)){let t;try{t=Rn(r.styleSheet)||Kc(r);}catch(n){t=r.cssText;}return r.styleSheet.href?Sr(t,r.styleSheet.href):t}else {let t=r.cssText;return eu(r)&&r.selectorText.includes(":")&&(t=qc(t)),e?Sr(t,e):t}}function qc(r){let e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return r.replace(e,"$1\\$2")}function Qc(r){return "styleSheet"in r}function eu(r){return "selectorText"in r}var br=class{constructor(){Es(this,"idNodeMap",new Map),Es(this,"nodeMetaMap",new WeakMap);}getId(e){var t;if(!e)return -1;let n=(t=this.getMeta(e))==null?void 0:t.id;return n!=null?n:-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(n=>this.removeNodeFromMap(n));}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t);}replace(e,t){let n=this.getNode(e);if(n){let i=this.nodeMetaMap.get(n);i&&this.nodeMetaMap.set(t,i);}this.idNodeMap.set(e,t);}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap;}};function tu(){return new br}function wr({element:r,maskInputOptions:e,tagName:t,type:n,value:i,maskInputFn:s}){let o=i||"",l=n&&Ne(n);return (e[t.toLowerCase()]||l&&e[l])&&(s?o=s(o,r):o="*".repeat(o.length)),o}function Ne(r){return r.toLowerCase()}var Rs="__rrweb_original__";function ru(r){let e=r.getContext("2d");if(!e)return true;let t=50;for(let n=0;n<r.width;n+=t)for(let i=0;i<r.height;i+=t){let s=e.getImageData,o=Rs in s?s[Rs]:s;if(new Uint32Array(o.call(e,n,i,Math.min(t,r.width-n),Math.min(t,r.height-i)).data.buffer).some(a=>a!==0))return false}return true}function vr(r){let e=r.type;return r.hasAttribute("data-rr-is-password")?"password":e?Ne(e):null}function Io(r,e){var s;let t;try{t=new URL(r,e!=null?e:window.location.href);}catch(o){return null}let n=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(n);return (s=i==null?void 0:i[1])!=null?s:null}function nu(r){let e="";return r.indexOf("//")>-1?e=r.split("/").slice(0,3).join("/"):e=r.split("/")[0],e=e.split("?")[0],e}var iu=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,su=/^(?:[a-z+]+:)?\/\//i,ou=/^www\..*/i,au=/^(data:)([^,]*),(.*)/i;function Sr(r,e){return (r||"").replace(iu,(t,n,i,s,o,l)=>{let a=i||o||l,c=n||s||"";if(!a)return t;if(su.test(a)||ou.test(a))return `url(${c}${a}${c})`;if(au.test(a))return `url(${c}${a}${c})`;if(a[0]==="/")return `url(${c}${nu(e)+a}${c})`;let u=e.split("/"),f=a.split("/");u.pop();for(let d of f)d!=="."&&(d===".."?u.pop():u.push(d));return `url(${c}${u.join("/")}${c})`})}function Vt(r,e=false){return e?r.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):r.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function lu(r,e,t=false){let n=Array.from(e.childNodes),i=[],s=0;if(n.length>1&&r&&typeof r=="string"){let o=Vt(r,t),l=o.length/r.length;for(let a=1;a<n.length;a++)if(n[a].textContent&&typeof n[a].textContent=="string"){let c=Vt(n[a].textContent,t),u=100,f=3;for(;f<c.length&&(c[f].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,f),1)!==-1);f++);for(;f<c.length;f++){let d=c.substring(0,f),g=o.split(d),m=-1;if(g.length===2)m=g[0].length;else if(g.length>2&&g[0]===""&&n[a-1].textContent!=="")m=o.indexOf(d,1);else if(g.length===1){if(d=d.substring(0,d.length-1),g=o.split(d),g.length<=1)return i.push(r),i;f=u+1;}else f===c.length-1&&(m=o.indexOf(d));if(g.length>=2&&f>u){let p=n[a-1].textContent;if(p&&typeof p=="string"){let h=Vt(p).length;m=o.indexOf(d,h);}m===-1&&(m=g[0].length);}if(m!==-1){let p=Math.floor(m/l);for(;p>0&&p<r.length;){if(s+=1,s>50*n.length)return i.push(r),i;let h=Vt(r.substring(0,p),t);if(h.length===m){i.push(r.substring(0,p)),r=r.substring(p),o=o.substring(m);break}else h.length<m?p+=Math.max(1,Math.floor((m-h.length)/l)):p-=Math.max(1,Math.floor((h.length-m)*l));}break}}}}return i.push(r),i}function cu(r,e){return lu(r,e).join("/* rr_split */")}var uu=1,fu=new RegExp("[^a-z0-9-_:]"),mt=-2;function xo(){return uu++}function du(r){if(r instanceof HTMLFormElement)return "form";let e=Ne(r.tagName);return fu.test(e)?"div":e}var He,Ms,hu=/^[^ \t\n\r\u000c]+/,pu=/^[, \t\n\r\u000c]+/;function mu(r,e){if(e.trim()==="")return e;let t=0;function n(s){let o,l=s.exec(e.substring(t));return l?(o=l[0],t+=o.length,o):""}let i=[];for(;n(pu),!(t>=e.length);){let s=n(hu);if(s.slice(-1)===",")s=Ge(r,s.substring(0,s.length-1)),i.push(s);else {let o="";s=Ge(r,s);let l=false;for(;;){let a=e.charAt(t);if(a===""){i.push((s+o).trim());break}else if(l)a===")"&&(l=false);else if(a===","){t+=1,i.push((s+o).trim());break}else a==="("&&(l=true);o+=a,t+=1;}}}return i.join(", ")}var Ts=new WeakMap;function Ge(r,e){return !e||e.trim()===""?e:gi(r,e)}function gu(r){return !!(r.tagName==="svg"||r.ownerSVGElement)}function gi(r,e){let t=Ts.get(r);if(t||(t=r.createElement("a"),Ts.set(r,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function Ro(r,e,t,n){return n&&(t==="src"||t==="href"&&!(e==="use"&&n[0]==="#")||t==="xlink:href"&&n[0]!=="#"||t==="background"&&["table","td","th"].includes(e)?Ge(r,n):t==="srcset"?mu(r,n):t==="style"?Sr(n,gi(r)):e==="object"&&t==="data"?Ge(r,n):n)}function Mo(r,e,t){return ["video","audio"].includes(r)&&e==="autoplay"}function yu(r,e,t){try{if(typeof e=="string"){if(r.classList.contains(e))return !0}else for(let n=r.classList.length;n--;){let i=r.classList[n];if(e.test(i))return !0}if(t)return r.matches(t)}catch(n){}return false}function Cr(r,e,t){if(!r)return false;if(r.nodeType!==r.ELEMENT_NODE)return t?Cr(Z.parentNode(r),e,t):false;for(let n=r.classList.length;n--;){let i=r.classList[n];if(e.test(i))return true}return t?Cr(Z.parentNode(r),e,t):false}function To(r,e,t,n){let i;if(Co(r)){if(i=r,!Z.childNodes(i).length)return false}else {if(Z.parentElement(r)===null)return false;i=Z.parentElement(r);}try{if(typeof e=="string"){if(n){if(i.closest(`.${e}`))return !0}else if(i.classList.contains(e))return !0}else if(Cr(i,e,n))return !0;if(t){if(n){if(i.closest(t))return !0}else if(i.matches(t))return !0}}catch(s){}return false}function bu(r,e,t){let n=r.contentWindow;if(!n)return;let i=false,s;try{s=n.document.readyState;}catch(l){return}if(s!=="complete"){let l=setTimeout(()=>{i||(e(),i=true);},t);r.addEventListener("load",()=>{clearTimeout(l),i=true,e();});return}let o="about:blank";if(n.location.href!==o||r.src===o||r.src==="")return setTimeout(e,0),r.addEventListener("load",e);r.addEventListener("load",e);}function wu(r,e,t){let n=false,i;try{i=r.sheet;}catch(o){return}if(i)return;let s=setTimeout(()=>{n||(e(),n=true);},t);r.addEventListener("load",()=>{clearTimeout(s),n=true,e();});}function vu(r,e){let{doc:t,mirror:n,blockClass:i,blockSelector:s,needsMask:o,inlineStylesheet:l,maskInputOptions:a={},maskTextFn:c,maskInputFn:u,dataURLOptions:f={},inlineImages:d,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:p=false,cssCaptured:h=false}=e,y=Su(t,n);switch(r.nodeType){case r.DOCUMENT_NODE:return r.compatMode!=="CSS1Compat"?{type:J.Document,childNodes:[],compatMode:r.compatMode}:{type:J.Document,childNodes:[]};case r.DOCUMENT_TYPE_NODE:return {type:J.DocumentType,name:r.name,publicId:r.publicId,systemId:r.systemId,rootId:y};case r.ELEMENT_NODE:return Eu(r,{doc:t,blockClass:i,blockSelector:s,inlineStylesheet:l,maskInputOptions:a,maskInputFn:u,dataURLOptions:f,inlineImages:d,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:p,rootId:y});case r.TEXT_NODE:return Cu(r,{doc:t,needsMask:o,maskTextFn:c,rootId:y,cssCaptured:h});case r.CDATA_SECTION_NODE:return {type:J.CDATA,textContent:"",rootId:y};case r.COMMENT_NODE:return {type:J.Comment,textContent:Z.textContent(r)||"",rootId:y};default:return false}}function Su(r,e){if(!e.hasNode(r))return;let t=e.getId(r);return t===1?void 0:t}function Cu(r,e){let{needsMask:t,maskTextFn:n,rootId:i,cssCaptured:s}=e,o=Z.parentNode(r),l=o&&o.tagName,a="",c=l==="STYLE"?true:void 0,u=l==="SCRIPT"?true:void 0;return u?a="SCRIPT_PLACEHOLDER":s||(a=Z.textContent(r),c&&a&&(a=Sr(a,gi(e.doc)))),!c&&!u&&a&&t&&(a=n?n(a,Z.parentElement(r)):a.replace(/[\S]/g,"*")),{type:J.Text,textContent:a||"",rootId:i}}function Eu(r,e){let{doc:t,blockClass:n,blockSelector:i,inlineStylesheet:s,maskInputOptions:o={},maskInputFn:l,dataURLOptions:a={},inlineImages:c,recordCanvas:u,keepIframeSrcFn:f,newlyAddedElement:d=false,rootId:g}=e,m=yu(r,n,i),p=du(r),h={},y=r.attributes.length;for(let b=0;b<y;b++){let v=r.attributes[b];Mo(p,v.name,v.value)||(h[v.name]=Ro(t,p,Ne(v.name),v.value));}if(p==="link"&&s){let b=Array.from(t.styleSheets).find(C=>C.href===r.href),v=null;b&&(v=Rn(b)),v&&(delete h.rel,delete h.href,h._cssText=v);}if(p==="style"&&r.sheet){let b=Rn(r.sheet);b&&(r.childNodes.length>1&&(b=cu(b,r)),h._cssText=b);}if(["input","textarea","select"].includes(p)){let b=r.value,v=r.checked;h.type!=="radio"&&h.type!=="checkbox"&&h.type!=="submit"&&h.type!=="button"&&b?h.value=wr({element:r,type:vr(r),tagName:p,value:b,maskInputOptions:o,maskInputFn:l}):v&&(h.checked=v);}if(p==="option"&&(r.selected&&!o.select?h.selected=true:delete h.selected),p==="dialog"&&r.open&&(h.rr_open_mode=r.matches("dialog:modal")?"modal":"non-modal"),p==="canvas"&&u){if(r.__context==="2d")ru(r)||(h.rr_dataURL=r.toDataURL(a.type,a.quality));else if(!("__context"in r)){let b=r.toDataURL(a.type,a.quality),v=t.createElement("canvas");v.width=r.width,v.height=r.height;let C=v.toDataURL(a.type,a.quality);b!==C&&(h.rr_dataURL=b);}}if(p==="img"&&c){He||(He=t.createElement("canvas"),Ms=He.getContext("2d"));let b=r,v=b.currentSrc||b.getAttribute("src")||"<unknown-src>",C=b.crossOrigin,I=()=>{b.removeEventListener("load",I);try{He.width=b.naturalWidth,He.height=b.naturalHeight,Ms.drawImage(b,0,0),h.rr_dataURL=He.toDataURL(a.type,a.quality);}catch(D){if(b.crossOrigin!=="anonymous"){b.crossOrigin="anonymous",b.complete&&b.naturalWidth!==0?I():b.addEventListener("load",I);return}else console.warn(`Cannot inline img src=${v}! Error: ${D}`);}b.crossOrigin==="anonymous"&&(C?h.crossOrigin=C:b.removeAttribute("crossorigin"));};b.complete&&b.naturalWidth!==0?I():b.addEventListener("load",I);}if(["audio","video"].includes(p)){let b=h;b.rr_mediaState=r.paused?"paused":"played",b.rr_mediaCurrentTime=r.currentTime,b.rr_mediaPlaybackRate=r.playbackRate,b.rr_mediaMuted=r.muted,b.rr_mediaLoop=r.loop,b.rr_mediaVolume=r.volume;}if(d||(r.scrollLeft&&(h.rr_scrollLeft=r.scrollLeft),r.scrollTop&&(h.rr_scrollTop=r.scrollTop)),m){let{width:b,height:v}=r.getBoundingClientRect();h={class:h.class,rr_width:`${b}px`,rr_height:`${v}px`};}p==="iframe"&&!f(h.src)&&(r.contentDocument||(h.rr_src=h.src),delete h.src);let w;try{customElements.get(p)&&(w=!0);}catch(b){}return {type:J.Element,tagName:p,attributes:h,childNodes:[],isSVG:gu(r)||void 0,needBlock:m,rootId:g,isCustom:w}}function F(r){return r==null?"":r.toLowerCase()}function Ao(r){return r===true||r==="all"?{script:true,comment:true,headFavicon:true,headWhitespace:true,headMetaSocial:true,headMetaRobots:true,headMetaHttpEquiv:true,headMetaVerification:true,headMetaAuthorship:r==="all",headMetaDescKeywords:r==="all",headTitleMutations:r==="all"}:r||{}}function Iu(r,e){if(e.comment&&r.type===J.Comment)return true;if(r.type===J.Element){if(e.script&&(r.tagName==="script"||r.tagName==="link"&&(r.attributes.rel==="preload"&&r.attributes.as==="script"||r.attributes.rel==="modulepreload")||r.tagName==="link"&&r.attributes.rel==="prefetch"&&typeof r.attributes.href=="string"&&Io(r.attributes.href)==="js"))return true;if(e.headFavicon&&(r.tagName==="link"&&r.attributes.rel==="shortcut icon"||r.tagName==="meta"&&(F(r.attributes.name).match(/^msapplication-tile(image|color)$/)||F(r.attributes.name)==="application-name"||F(r.attributes.rel)==="icon"||F(r.attributes.rel)==="apple-touch-icon"||F(r.attributes.rel)==="shortcut icon")))return true;if(r.tagName==="meta"){if(e.headMetaDescKeywords&&F(r.attributes.name).match(/^description|keywords$/))return true;if(e.headMetaSocial&&(F(r.attributes.property).match(/^(og|twitter|fb):/)||F(r.attributes.name).match(/^(og|twitter):/)||F(r.attributes.name)==="pinterest"))return true;if(e.headMetaRobots&&(F(r.attributes.name)==="robots"||F(r.attributes.name)==="googlebot"||F(r.attributes.name)==="bingbot"))return true;if(e.headMetaHttpEquiv&&r.attributes["http-equiv"]!==void 0)return true;if(e.headMetaAuthorship&&(F(r.attributes.name)==="author"||F(r.attributes.name)==="generator"||F(r.attributes.name)==="framework"||F(r.attributes.name)==="publisher"||F(r.attributes.name)==="progid"||F(r.attributes.property).match(/^article:/)||F(r.attributes.property).match(/^product:/)))return true;if(e.headMetaVerification&&(F(r.attributes.name)==="google-site-verification"||F(r.attributes.name)==="yandex-verification"||F(r.attributes.name)==="csrf-token"||F(r.attributes.name)==="p:domain_verify"||F(r.attributes.name)==="verify-v1"||F(r.attributes.name)==="verification"||F(r.attributes.name)==="shopify-checkout-api-token"))return true}}return false}function je(r,e){let{doc:t,mirror:n,blockClass:i,blockSelector:s,maskTextClass:o,maskTextSelector:l,skipChild:a=false,inlineStylesheet:c=true,maskInputOptions:u={},maskTextFn:f,maskInputFn:d,slimDOMOptions:g,dataURLOptions:m={},inlineImages:p=false,recordCanvas:h=false,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b=5e3,onStylesheetLoad:v,stylesheetLoadTimeout:C=5e3,keepIframeSrcFn:I=()=>false,newlyAddedElement:D=false,cssCaptured:A=false}=e,{needsMask:L}=e,{preserveWhiteSpace:$=true}=e;L||(L=To(r,o,l,L===void 0));let P=vu(r,{doc:t,mirror:n,blockClass:i,blockSelector:s,needsMask:L,inlineStylesheet:c,maskInputOptions:u,maskTextFn:f,maskInputFn:d,dataURLOptions:m,inlineImages:p,recordCanvas:h,keepIframeSrcFn:I,newlyAddedElement:D,cssCaptured:A});if(!P)return console.warn(r,"not serialized"),null;let q;n.hasNode(r)?q=n.getId(r):Iu(P,g)||!$&&P.type===J.Text&&!P.textContent.replace(/^\s+|\s+$/gm,"").length?q=mt:q=xo();let E=Object.assign(P,{id:q});if(n.add(r,E),q===mt)return null;y&&y(r);let re=!a;if(E.type===J.Element){re=re&&!E.needBlock,delete E.needBlock;let Y=Z.shadowRoot(r);Y&&ht(Y)&&(E.isShadowHost=true);}if((E.type===J.Document||E.type===J.Element)&&re){g.headWhitespace&&E.type===J.Element&&E.tagName==="head"&&($=false);let Y={doc:t,mirror:n,blockClass:i,blockSelector:s,needsMask:L,maskTextClass:o,maskTextSelector:l,skipChild:a,inlineStylesheet:c,maskInputOptions:u,maskTextFn:f,maskInputFn:d,slimDOMOptions:g,dataURLOptions:m,inlineImages:p,recordCanvas:h,preserveWhiteSpace:$,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:C,keepIframeSrcFn:I,cssCaptured:false};if(!(E.type===J.Element&&E.tagName==="textarea"&&E.attributes.value!==void 0)){E.type===J.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText=="string"&&(Y.cssCaptured=true);for(let Te of Array.from(Z.childNodes(r))){let he=je(Te,Y);he&&E.childNodes.push(he);}}let se=null;if(Co(r)&&(se=Z.shadowRoot(r)))for(let Te of Array.from(Z.childNodes(se))){let he=je(Te,Y);he&&(ht(se)&&(he.isShadow=true),E.childNodes.push(he));}}let Me=Z.parentNode(r);return Me&&dt(Me)&&ht(Me)&&(E.isShadow=true),E.type===J.Element&&E.tagName==="iframe"&&bu(r,()=>{let Y=r.contentDocument;if(Y&&w){let se=je(Y,{doc:Y,mirror:n,blockClass:i,blockSelector:s,needsMask:L,maskTextClass:o,maskTextSelector:l,skipChild:false,inlineStylesheet:c,maskInputOptions:u,maskTextFn:f,maskInputFn:d,slimDOMOptions:g,dataURLOptions:m,inlineImages:p,recordCanvas:h,preserveWhiteSpace:$,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:C,keepIframeSrcFn:I});se&&w(r,se);}},b),E.type===J.Element&&E.tagName==="link"&&typeof E.attributes.rel=="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href=="string"&&Io(E.attributes.href)==="css")&&wu(r,()=>{if(v){let Y=je(r,{doc:t,mirror:n,blockClass:i,blockSelector:s,needsMask:L,maskTextClass:o,maskTextSelector:l,skipChild:false,inlineStylesheet:c,maskInputOptions:u,maskTextFn:f,maskInputFn:d,slimDOMOptions:g,dataURLOptions:m,inlineImages:p,recordCanvas:h,preserveWhiteSpace:$,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:C,keepIframeSrcFn:I});Y&&v(r,Y);}},C),E}function xu(r,e){let{mirror:t=new br,blockClass:n="rr-block",blockSelector:i=null,maskTextClass:s="rr-mask",maskTextSelector:o=null,inlineStylesheet:l=true,inlineImages:a=false,recordCanvas:c=false,maskAllInputs:u=false,maskTextFn:f,maskInputFn:d,slimDOM:g=false,dataURLOptions:m,preserveWhiteSpace:p,onSerialize:h,onIframeLoad:y,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:v,keepIframeSrcFn:C=()=>false}=e||{},I=u===true?{color:true,date:true,"datetime-local":true,email:true,month:true,number:true,range:true,search:true,tel:true,text:true,time:true,url:true,week:true,textarea:true,select:true,password:true}:u===false?{password:true}:u,D=Ao(g);return je(r,{doc:r,mirror:t,blockClass:n,blockSelector:i,maskTextClass:s,maskTextSelector:o,skipChild:false,inlineStylesheet:l,maskInputOptions:I,maskTextFn:f,maskInputFn:d,slimDOMOptions:D,dataURLOptions:m,inlineImages:a,recordCanvas:c,preserveWhiteSpace:p,onSerialize:h,onIframeLoad:y,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:v,keepIframeSrcFn:C,newlyAddedElement:false})}function Mu(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Tu(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype;}else t={};return Object.defineProperty(t,"__esModule",{value:true}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:true,get:function(){return r[n]}});}),t}var yi={exports:{}},B=String,ko=function(){return {isColorSupported:false,reset:B,bold:B,dim:B,italic:B,underline:B,inverse:B,hidden:B,strikethrough:B,black:B,red:B,green:B,yellow:B,blue:B,magenta:B,cyan:B,white:B,gray:B,bgBlack:B,bgRed:B,bgGreen:B,bgYellow:B,bgBlue:B,bgMagenta:B,bgCyan:B,bgWhite:B}};yi.exports=ko();yi.exports.createColors=ko;var Au=yi.exports,ku={},_u=Object.freeze(Object.defineProperty({__proto__:null,default:ku},Symbol.toStringTag,{value:"Module"})),ue=Tu(_u),As=Au,ks=ue,Mn=class _o extends Error{constructor(e,t,n,i,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),i&&(this.source=i),o&&(this.plugin=o),typeof t!="undefined"&&typeof n!="undefined"&&(typeof t=="number"?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,_o);}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason;}showSourceCode(e){if(!this.source)return "";let t=this.source;e==null&&(e=As.isColorSupported),ks&&e&&(t=ks(t));let n=t.split(/\r?\n/),i=Math.max(this.line-3,0),s=Math.min(this.line+2,n.length),o=String(s).length,l,a;if(e){let{bold:c,gray:u,red:f}=As.createColors(true);l=d=>c(f(d)),a=d=>u(d);}else l=a=c=>c;return n.slice(i,s).map((c,u)=>{let f=i+1+u,d=" "+(" "+f).slice(-o)+" | ";if(f===this.line){let g=a(d.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(d)+c+`
|
|
4
|
+
`+g+l("^")}return " "+a(d)+c}).join(`
|
|
4
5
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
5
6
|
|
|
6
7
|
`+e+`
|
|
7
|
-
`),this.name+": "+this.message+e}},
|
|
8
|
+
`),this.name+": "+this.message+e}},bi=Mn;Mn.default=Mn;var xt={};xt.isClean=Symbol("isClean");xt.my=Symbol("my");var _s={after:`
|
|
8
9
|
`,beforeClose:`
|
|
9
10
|
`,beforeComment:`
|
|
10
11
|
`,beforeDecl:`
|
|
11
12
|
`,beforeOpen:" ",beforeRule:`
|
|
12
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:false};function
|
|
13
|
-
`)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<s;l++)n+=o;}return n}block(e,t){let n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end");}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let n=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let s=e.nodes[i],o=this.raw(s,"before");o&&this.builder(o),this.stringify(s,t!==i||n);}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e);}decl(e,t){let n=this.raw(e,"between","colon"),i=e.prop+n+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e);}document(e){this.body(e);}raw(e,t,n){let i;if(n||(n=t),t&&(i=e.raws[t],typeof i!="undefined"))return i;let s=e.parent;if(n==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return "";if(!s)return
|
|
13
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:false};function Nu(r){return r[0].toUpperCase()+r.slice(1)}var Tn=class{constructor(e){this.builder=e;}atrule(e,t){let n="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i);else {let s=(e.raws.between||"")+(t?";":"");this.builder(n+i+s,e);}}beforeAfter(e,t){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let i=e.parent,s=0;for(;i&&i.type!=="root";)s+=1,i=i.parent;if(n.includes(`
|
|
14
|
+
`)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<s;l++)n+=o;}return n}block(e,t){let n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end");}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let n=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let s=e.nodes[i],o=this.raw(s,"before");o&&this.builder(o),this.stringify(s,t!==i||n);}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e);}decl(e,t){let n=this.raw(e,"between","colon"),i=e.prop+n+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e);}document(e){this.body(e);}raw(e,t,n){let i;if(n||(n=t),t&&(i=e.raws[t],typeof i!="undefined"))return i;let s=e.parent;if(n==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return "";if(!s)return _s[n];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[n]!="undefined")return o.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let l="raw"+Nu(n);this[l]?i=this[l](o,e):o.walk(a=>{if(i=a.raws[t],typeof i!="undefined")return false});}return typeof i=="undefined"&&(i=_s[n]),o.rawCache[n]=i,i}rawBeforeClose(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after!="undefined")return t=n.raws.after,t.includes(`
|
|
14
15
|
`)&&(t=t.replace(/[^\n]+$/,"")),false}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments(i=>{if(typeof i.raws.before!="undefined")return n=i.raws.before,n.includes(`
|
|
15
16
|
`)&&(n=n.replace(/[^\n]+$/,"")),false}),typeof n=="undefined"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(i=>{if(typeof i.raws.before!="undefined")return n=i.raws.before,n.includes(`
|
|
16
17
|
`)&&(n=n.replace(/[^\n]+$/,"")),false}),typeof n=="undefined"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk(n=>{if(n.type!=="decl"&&(t=n.raws.between,typeof t!="undefined"))return false}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before!="undefined")return t=n.raws.before,t.includes(`
|
|
17
18
|
`)&&(t=t.replace(/[^\n]+$/,"")),false}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(n=>{if(typeof n.raws.between!="undefined")return t=n.raws.between.replace(/[^\s:]/g,""),false}),t}rawEmptyBody(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t!="undefined"))return false}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let i=n.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof n.raws.before!="undefined"){let s=n.raws.before.split(`
|
|
18
|
-
`);return t=s[s.length-1],t=t.replace(/\S/g,""),false}}),t}rawSemicolon(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t!="undefined"))return false}),t}rawValue(e,t){let n=e[t],i=e.raws[t];return i&&i.value===n?i.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after);}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end");}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t);}},
|
|
19
|
-
`?(i=1,s+=1):i+=1;return {column:i,line:s}}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},n=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 i=this.toString(),s=i.indexOf(e.word);s!==-1&&(t=this.positionInside(s,i),n=this.positionInside(s+e.word.length,i));}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return (n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return new
|
|
20
|
-
`);n=new Array(s.length);let o=0;for(let l=0,a=s.length;l<a;l++)n[l]=o,o+=s[l].length+1;this[
|
|
19
|
+
`);return t=s[s.length-1],t=t.replace(/\S/g,""),false}}),t}rawSemicolon(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t!="undefined"))return false}),t}rawValue(e,t){let n=e[t],i=e.raws[t];return i&&i.value===n?i.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after);}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end");}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t);}},No=Tn;Tn.default=Tn;var Ou=No;function An(r,e){new Ou(e).stringify(r);}var Lr=An;An.default=An;var{isClean:Gt,my:Du}=xt,Lu=bi,Pu=No,Fu=Lr;function kn(r,e){let t=new r.constructor;for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n)||n==="proxyCache")continue;let i=r[n],s=typeof i;n==="parent"&&s==="object"?e&&(t[n]=e):n==="source"?t[n]=i:Array.isArray(i)?t[n]=i.map(o=>kn(o,t)):(s==="object"&&i!==null&&(i=kn(i)),t[n]=i);}return t}var _n=class{constructor(e={}){this.raws={},this[Gt]=false,this[Du]=true;for(let t in e)if(t==="nodes"){this.nodes=[];for(let n of e[t])typeof n.clone=="function"?this.append(n.clone()):this.append(n);}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=kn(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new Lu(e)}getProxyProcessor(){return {get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),true}}}markDirty(){if(this[Gt]){this[Gt]=false;let e=this;for(;e=e.parent;)e[Gt]=false;}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();let i=t.indexOf(e.word);i!==-1&&(n=this.positionInside(i,t));}return n}positionInside(e,t){let n=t||this.toString(),i=this.source.start.column,s=this.source.start.line;for(let o=0;o<e;o++)n[o]===`
|
|
20
|
+
`?(i=1,s+=1):i+=1;return {column:i,line:s}}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},n=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 i=this.toString(),s=i.indexOf(e.word);s!==-1&&(t=this.positionInside(s,i),n=this.positionInside(s+e.word.length,i));}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return (n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return new Pu().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,n=false;for(let i of e)i===this?n=true:n?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);n||this.remove();}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let n={},i=t==null;t=t||new Map;let s=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let l=this[o];if(Array.isArray(l))n[o]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)n[o]=l.toJSON(null,t);else if(o==="source"){let a=t.get(l.input);a==null&&(a=s,t.set(l.input,s),s++),n[o]={end:l.end,inputId:a,start:l.start};}else n[o]=l;}return i&&(n.inputs=[...t.keys()].map(o=>o.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Fu){e.stringify&&(e=e.stringify);let t="";return e(this,n=>{t+=n;}),t}warn(e,t,n){let i={node:this};for(let s in n)i[s]=n[s];return e.warn(t,i)}get proxyOf(){return this}},Pr=_n;_n.default=_n;var $u=Pr,Nn=class extends $u{constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl";}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},Fr=Nn;Nn.default=Nn;var Bu="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Wu=(r=21)=>{let e="",t=r;for(;t--;)e+=Bu[Math.random()*64|0];return e},Hu={nanoid:Wu},{SourceMapConsumer:Ns,SourceMapGenerator:Os}=ue,{existsSync:zu,readFileSync:Vu}=ue,{dirname:pn,join:Gu}=ue;function ju(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var On=class{constructor(e,t){if(t.map===false)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,i=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=pn(this.mapFile)),i&&(this.text=i);}consumer(){return this.consumerCache||(this.consumerCache=new Ns(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(i.test(e)||s.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return ju(e.substr(RegExp.lastMatch.length));let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?false:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)));}loadFile(e){if(this.root=pn(e),zu(e))return this.mapFile=e,Vu(e,"utf-8").toString().trim()}loadMap(e,t){if(t===false)return false;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let n=t(e);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else {if(t instanceof Ns)return Os.fromSourceMap(t).toString();if(t instanceof Os)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else {if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=Gu(pn(e),n)),this.loadFile(n)}}}startWith(e,t){return e?e.substr(0,t.length)===t:false}withContent(){return !!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},Oo=On;On.default=On;var{SourceMapConsumer:Yu,SourceMapGenerator:Xu}=ue,{fileURLToPath:Ds,pathToFileURL:jt}=ue,{isAbsolute:Dn,resolve:Ln}=ue,{nanoid:Ju}=Hu,mn=ue,Ls=bi,Zu=Oo,gn=Symbol("fromOffsetCache"),Ku=!!(Yu&&Xu),Ps=!!(Ln&&Dn),Er=class{constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=true,this.css=this.css.slice(1)):this.hasBOM=false,t.from&&(!Ps||/^\w+:\/\//.test(t.from)||Dn(t.from)?this.file=t.from:this.file=Ln(t.from)),Ps&&Ku){let n=new Zu(this.css,t);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i));}}this.file||(this.id="<input css "+Ju(6)+">"),this.map&&(this.map.file=this.from);}error(e,t,n,i={}){let s,o,l;if(t&&typeof t=="object"){let c=t,u=n;if(typeof c.offset=="number"){let f=this.fromOffset(c.offset);t=f.line,n=f.col;}else t=c.line,n=c.column;if(typeof u.offset=="number"){let f=this.fromOffset(u.offset);o=f.line,l=f.col;}else o=u.line,l=u.column;}else if(!n){let c=this.fromOffset(t);t=c.line,n=c.col;}let a=this.origin(t,n,o,l);return a?s=new Ls(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,i.plugin):s=new Ls(e,o===void 0?t:{column:n,line:t},o===void 0?n:{column:l,line:o},this.css,this.file,i.plugin),s.input={column:n,endColumn:l,endLine:o,line:t,source:this.css},this.file&&(jt&&(s.input.url=jt(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,n;if(this[gn])n=this[gn];else {let s=this.css.split(`
|
|
21
|
+
`);n=new Array(s.length);let o=0;for(let l=0,a=s.length;l<a;l++)n[l]=o,o+=s[l].length+1;this[gn]=n;}t=n[n.length-1];let i=0;if(e>=t)i=n.length-1;else {let s=n.length-2,o;for(;i<s;)if(o=i+(s-i>>1),e<n[o])s=o-1;else if(e>=n[o+1])i=o+1;else {i=o;break}}return {col:e-n[i]+1,line:i+1}}mapResolve(e){return /^\w+:\/\//.test(e)?e:Ln(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,i){if(!this.map)return false;let s=this.map.consumer(),o=s.originalPositionFor({column:t,line:e});if(!o.source)return false;let l;typeof n=="number"&&(l=s.originalPositionFor({column:i,line:n}));let a;Dn(o.source)?a=jt(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||jt(this.map.mapFile));let c={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Ds)c.file=Ds(a);else throw new Error("file: protocol is not available in this PostCSS build");let u=s.sourceContentFor(o.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of ["hasBOM","css","file","id"])this[t]!=null&&(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}},$r=Er;Er.default=Er;mn&&mn.registerInput&&mn.registerInput(Er);var{SourceMapConsumer:Do,SourceMapGenerator:dr}=ue,{dirname:hr,relative:Lo,resolve:Po,sep:Fo}=ue,{pathToFileURL:Fs}=ue,qu=$r,Qu=!!(Do&&dr),ef=!!(hr&&Po&&Lo&&Fo),tf=class{constructor(e,t,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map;}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
|
|
21
22
|
`;this.css.includes(`\r
|
|
22
23
|
`)&&(t=`\r
|
|
23
|
-
`),this.css+=t+"/*# sourceMappingURL="+e+" */";}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||hr(e.file),i;this.mapOpts.sourcesContent===false?(i=new
|
|
24
|
-
`),t=l.length-o):t+=l.length,a&&c!=="start"){let u=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==u.last||u.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=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)));}});}isAnnotation(){return this.isInline()?true:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):true}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==true?false:this.previous().length?this.previous().some(t=>t.inline):true}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):true}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?hr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=hr(Do(n,this.mapOpts.annotation)));let i=Oo(n,e);return this.memoizedPaths.set(e,i),i}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 Hu(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 n=t.source.input.from;if(n&&!e[n]){e[n]=true;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,t.source.input.css);}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css);}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Ls){let n=Ls(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Lo==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}},Po=Gu,ju=Pr,Ln=class extends ju{constructor(e){super(e),this.type="comment";}},Br=Ln;Ln.default=Ln;var{isClean:Fo,my:$o}=Et,Bo=Fr,Uo=Br,Yu=Pr,Wo,bi,wi,Ho;function zo(r){return r.map(e=>(e.nodes&&(e.nodes=zo(e.nodes)),delete e.source,e))}function Vo(r){if(r[Fo]=false,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)Vo(e);}var be=class Go extends Yu{append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let i of n)this.proxyOf.nodes.push(i);}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e);}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],i=e(this.proxyOf.nodes[n],n),i!==false);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return {get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...n)=>e[t](...n.map(i=>typeof i=="function"?(s,o)=>i(s.toProxy(),o):i)):t==="every"||t==="some"?n=>e[t]((i,...s)=>n(i.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),true}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],n<s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),i=n===0?"prepend":false,s=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let l of s)this.proxyOf.nodes.splice(n,0,l);let o;for(let l in this.indexes)o=this.indexes[l],n<=o&&(this.indexes[l]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=zo(Wo(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore");}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore");}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Bo(e)];}else if(e.selector)e=[new bi(e)];else if(e.name)e=[new wi(e)];else if(e.text)e=[new Uo(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[$o]||Go.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Fo]&&Vo(i),typeof i.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let n=this.normalize(t,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.length;}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,n));}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let i;try{i=e(t,n);}catch(s){throw t.addToError(s)}return i!==false&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="atrule")return t(n,i)}))}walkComments(e){return this.walk((t,n)=>{if(t.type==="comment")return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="decl")return t(n,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="rule")return t(n,i)}))}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]}};be.registerParse=r=>{Wo=r;};be.registerRule=r=>{bi=r;};be.registerAtRule=r=>{wi=r;};be.registerRoot=r=>{Ho=r;};var Ne=be;be.default=be;be.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,wi.prototype):r.type==="rule"?Object.setPrototypeOf(r,bi.prototype):r.type==="decl"?Object.setPrototypeOf(r,Bo.prototype):r.type==="comment"?Object.setPrototypeOf(r,Uo.prototype):r.type==="root"&&Object.setPrototypeOf(r,Ho.prototype),r[$o]=true,r.nodes&&r.nodes.forEach(e=>{be.rebuild(e);});};var Xu=Ne,jo,Yo,pt=class extends Xu{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[]);}toResult(e={}){return new jo(new Yo,this,e).stringify()}};pt.registerLazyResult=r=>{jo=r;};pt.registerProcessor=r=>{Yo=r;};var vi=pt;pt.default=pt;var Pn=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column;}for(let n in t)this[n]=t[n];}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}},Xo=Pn;Pn.default=Pn;var Zu=Xo,Fn=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,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 n=new Zu(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}},Si=Fn;Fn.default=Fn;var gn=39,Ps=34,Yt=92,Fs=47,Xt=10,st=32,Zt=12,Jt=9,Kt=13,Ju=91,Ku=93,qu=40,Qu=41,ef=123,tf=125,rf=59,nf=42,sf=58,of=64,qt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Qt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,af=/.[\r\n"'(/\\]/,$s=/[\da-f]/i,lf=function(e,t={}){let n=e.css.valueOf(),i=t.ignoreErrors,s,o,l,a,c,u,d,f,g,m,p=n.length,h=0,y=[],w=[];function b(){return h}function S(A){throw e.error("Unclosed "+A,h)}function E(){return w.length===0&&h>=p}function I(A){if(w.length)return w.pop();if(h>=p)return;let F=A?A.ignoreUnclosed:false;switch(s=n.charCodeAt(h),s){case Xt:case st:case Jt:case Kt:case Zt:{o=h;do o+=1,s=n.charCodeAt(o);while(s===st||s===Xt||s===Jt||s===Kt||s===Zt);m=["space",n.slice(h,o)],h=o-1;break}case Ju:case Ku:case ef:case tf:case sf:case rf:case Qu:{let $=String.fromCharCode(s);m=[$,$,h];break}case qu:{if(f=y.length?y.pop()[1]:"",g=n.charCodeAt(h+1),f==="url"&&g!==gn&&g!==Ps&&g!==st&&g!==Xt&&g!==Jt&&g!==Zt&&g!==Kt){o=h;do{if(u=false,o=n.indexOf(")",o+1),o===-1)if(i||F){o=h;break}else S("bracket");for(d=o;n.charCodeAt(d-1)===Yt;)d-=1,u=!u;}while(u);m=["brackets",n.slice(h,o+1),h,o],h=o;}else o=n.indexOf(")",h+1),a=n.slice(h,o+1),o===-1||af.test(a)?m=["(","(",h]:(m=["brackets",a,h,o],h=o);break}case gn:case Ps:{l=s===gn?"'":'"',o=h;do{if(u=false,o=n.indexOf(l,o+1),o===-1)if(i||F){o=h+1;break}else S("string");for(d=o;n.charCodeAt(d-1)===Yt;)d-=1,u=!u;}while(u);m=["string",n.slice(h,o+1),h,o],h=o;break}case of:{qt.lastIndex=h+1,qt.test(n),qt.lastIndex===0?o=n.length-1:o=qt.lastIndex-2,m=["at-word",n.slice(h,o+1),h,o],h=o;break}case Yt:{for(o=h,c=true;n.charCodeAt(o+1)===Yt;)o+=1,c=!c;if(s=n.charCodeAt(o+1),c&&s!==Fs&&s!==st&&s!==Xt&&s!==Jt&&s!==Kt&&s!==Zt&&(o+=1,$s.test(n.charAt(o)))){for(;$s.test(n.charAt(o+1));)o+=1;n.charCodeAt(o+1)===st&&(o+=1);}m=["word",n.slice(h,o+1),h,o],h=o;break}default:{s===Fs&&n.charCodeAt(h+1)===nf?(o=n.indexOf("*/",h+2)+1,o===0&&(i||F?o=n.length:S("comment")),m=["comment",n.slice(h,o+1),h,o],h=o):(Qt.lastIndex=h+1,Qt.test(n),Qt.lastIndex===0?o=n.length-1:o=Qt.lastIndex-2,m=["word",n.slice(h,o+1),h,o],y.push(m),h=o);break}}return h++,m}function P(A){w.push(A);}return {back:P,endOfFile:E,nextToken:I,position:b}},Zo=Ne,Ir=class extends Zo{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)}},Ci=Ir;Ir.default=Ir;Zo.registerAtRule(Ir);var Jo=Ne,Ko,qo,je=class extends Jo{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[]);}normalize(e,t,n){let i=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of i)s.raws.before=t.raws.before;}return i}removeChild(e,t){let n=this.index(e);return !t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Ko(new qo,this,e).stringify()}};je.registerLazyResult=r=>{Ko=r;};je.registerProcessor=r=>{qo=r;};var It=je;je.default=je;Jo.registerRoot(je);var mt={comma(r){return mt.split(r,[","],true)},space(r){let e=[" ",`
|
|
25
|
-
`," "];return mt.split(r,e)},split(r,e,t){let n=[],i="",s=false,o=0,l=false,a="",c=false;for(let u of r)c?c=false:u==="\\"?c=true:l?u===a&&(l=false):u==='"'||u==="'"?(l=true,a=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(s=true),s?(i!==""&&n.push(i.trim()),i="",s=false):i+=u;return (t||i!=="")&&n.push(i.trim()),n}},Qo=mt;mt.default=mt;var ea=Ne,cf=Qo,xr=class extends ea{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[]);}get selectors(){return cf.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n);}},Ei=xr;xr.default=xr;ea.registerRule(xr);var uf=Fr,ff=lf,df=Br,hf=Ci,pf=It,Bs=Ei,Us={empty:true,space:true};function mf(r){for(let e=r.length-1;e>=0;e--){let t=r[e],n=t[3]||t[2];if(n)return n}}var gf=class{constructor(e){this.input=e,this.root=new pf,this.current=this.root,this.spaces="",this.semicolon=false,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}};}atrule(e){let t=new hf;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,i,s,o=false,l=false,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=true;break}else if(n==="{"){l=true;break}else if(n==="}"){if(a.length>0){for(s=a.length-1,i=a[s];i&&i[0]==="space";)i=a[--s];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++);}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t);}checkMissedSemicolon(e){let t=this.colon(e);if(t===false)return;let n=0,i;for(let s=t-1;s>=0&&(i=e[s],!(i[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,n,i,s;for(let[o,l]of e.entries()){if(n=l,i=n[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!s)this.doubleColon(n);else {if(s[0]==="word"&&s[1]==="progid")continue;return o}s=n;}return false}comment(e){let t=new df;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else {let i=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3];}}createTokenizer(){this.tokenizer=ff(this.input);}decl(e,t){let n=new uf;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=true,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||mf(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1];}n.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){n.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(s=e[c],s[1].toLowerCase()==="!important"){n.important=true;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(n.raws.important=u);break}else if(s[1].toLowerCase()==="important"){let u=e.slice(0),d="";for(let f=c;f>0;f--){let g=u[f][0];if(d.trim().indexOf("!")===0&&g!=="space")break;d=u.pop()[1]+d;}d.trim().indexOf("!")===0&&(n.important=true,n.raws.important=d,e=u);}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=o.map(c=>c[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 Bs;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=false,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e);}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position());}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="");}}getPosition(e){let t=this.input.fromOffset(e);return {column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=false);}other(e){let t=false,n=null,i=false,s=null,o=[],l=e[1].startsWith("--"),a=[],c=e;for(;c;){if(n=c[0],a.push(c),n==="("||n==="[")s||(s=c),o.push(n==="("?")":"]");else if(l&&i&&n==="{")s||(s=c),o.push("}");else if(o.length===0)if(n===";")if(i){this.decl(a,l);return}else break;else if(n==="{"){this.rule(a);return}else if(n==="}"){this.tokenizer.back(a.pop()),t=true;break}else n===":"&&(i=true);else n===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));c=this.tokenizer.nextToken();}if(this.tokenizer.endOfFile()&&(t=true),o.length>0&&this.unclosedBracket(s),t&&i){if(!l)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l);}else this.unknownWord(a);}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case "space":this.spaces+=e[1];break;case ";":this.freeSemicolon(e);break;case "}":this.end(e);break;case "comment":this.comment(e);break;case "at-word":this.atrule(e);break;case "{":this.emptyRule(e);break;default:this.other(e);break}this.endFile();}precheckMissedSemicolon(){}raw(e,t,n,i){let s,o,l=n.length,a="",c=true,u,d;for(let f=0;f<l;f+=1)s=n[f],o=s[0],o==="space"&&f===l-1&&!i?c=false:o==="comment"?(d=n[f-1]?n[f-1][0]:"empty",u=n[f+1]?n[f+1][0]:"empty",!Us[d]&&!Us[u]?a.slice(-1)===","?c=false:a+=s[1]:c=false):a+=s[1];if(!c){let f=n.reduce((g,m)=>g+m[1],"");e.raws[t]={raw:f,value:a};}e[t]=a;}rule(e){e.pop();let t=new Bs;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t;}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let i=t;i<e.length;i++)n+=e[i][1];return e.splice(t,e.length-t),n}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})}},yf=gf,bf=Ne,wf=yf,vf=$r;function Rr(r,e){let t=new vf(r,e),n=new wf(t);try{n.parse();}catch(i){throw i}return n.root}var Ii=Rr;Rr.default=Rr;bf.registerParse(Rr);var{isClean:me,my:Sf}=Et,Cf=Po,Ef=Lr,If=Ne,xf=vi;var Ws=Si,Rf=Ii,Mf=It,Tf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Af={AtRule:true,AtRuleExit:true,Comment:true,CommentExit:true,Declaration:true,DeclarationExit:true,Document:true,DocumentExit:true,Once:true,OnceExit:true,postcssPlugin:true,prepare:true,Root:true,RootExit:true,Rule:true,RuleExit:true},kf={Once:true,postcssPlugin:true,prepare:true},Ye=0;function ot(r){return typeof r=="object"&&typeof r.then=="function"}function ta(r){let e=false,t=Tf[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,Ye,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,Ye,t+"Exit"]:[t,t+"Exit"]}function Hs(r){let e;return r.type==="document"?e=["Document",Ye,"DocumentExit"]:r.type==="root"?e=["Root",Ye,"RootExit"]:e=ta(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function $n(r){return r[me]=false,r.nodes&&r.nodes.forEach(e=>$n(e)),r}var Bn={},Xe=class ra{constructor(e,t,n){this.stringified=false,this.processed=false;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=$n(t);else if(t instanceof ra||t instanceof Ws)i=$n(t.root),t.map&&(typeof n.map=="undefined"&&(n.map={}),n.map.inline||(n.map.inline=false),n.map.prev=t.map);else {let s=Rf;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(t,n);}catch(o){this.processed=true,this.error=o;}i&&!i[Sf]&&If.rebuild(i);}this.result=new Ws(e,i,n),this.helpers={...Bn,postcss:Bn,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s);}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion;}catch(i){console&&console.error&&console.error(i);}return e}prepareVisitors(){this.listeners={};let e=(t,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,i]);};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!Af[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!kf[n])if(typeof t[n]=="object")for(let i in t[n])i==="*"?e(t,n,t[n][i]):e(t,n+"-"+i.toLowerCase(),t[n][i]);else typeof t[n]=="function"&&e(t,n,t[n]);}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],n=this.runOnRoot(t);if(ot(n))try{await n;}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[me];){e[me]=true;let t=[Hs(e)];for(;t.length>0;){let n=this.visitTick(t);if(ot(n))try{await n;}catch(i){let s=t[t.length-1].node;throw this.handleError(i,s)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(s=>n(s,this.helpers));await Promise.all(i);}else await n(e,this.helpers);}catch(i){throw this.handleError(i)}}}return this.processed=true,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return ot(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=true,this.sync();let e=this.result.opts,t=Ef;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new Cf(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=true,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(ot(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[me];)e[me]=true,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e);}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,i]of e){this.result.lastPlugin=n;let s;try{s=i(t,this.helpers);}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return true;if(ot(s))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(n.toProxy(),this.helpers)}catch(a){throw this.handleError(a,n)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!l[me]){l[me]=true,e.push(Hs(l));return}t.iterator=0,delete n.indexes[o];}let s=t.events;for(;t.eventIndex<s.length;){let o=s[t.eventIndex];if(t.eventIndex+=1,o===Ye){n.nodes&&n.nodes.length&&(n[me]=true,t.iterator=n.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop();}walkSync(e){e[me]=true;let t=ta(e);for(let n of t)if(n===Ye)e.nodes&&e.each(i=>{i[me]||this.walkSync(i);});else {let i=this.listeners[n];if(i&&this.visitSync(i,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"}};Xe.registerPostcss=r=>{Bn=r;};var na=Xe;Xe.default=Xe;Mf.registerLazyResult(Xe);xf.registerLazyResult(Xe);var _f=Po,Nf=Lr;var Of=Ii,Df=Si,Un=class{constructor(e,t,n){t=t.toString(),this.stringified=false,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i,s=Nf;this.result=new Df(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new _f(s,i,this._opts,t);if(l.isMap()){let[a,c]=l.generate();a&&(this.result.css=a),c&&(this.result.map=c);}else l.clearAnnotation(),this.result.css=l.css;}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return []}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return []}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Of;try{e=t(this._css,this._opts);}catch(n){this.error=n;}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return "NoWorkResult"}},Lf=Un;Un.default=Un;var Pf=Lf,Ff=na,$f=vi,Bf=It,gt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e);}normalize(e){let t=[];for(let n of e)if(n.postcss===true?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return t}process(e,t={}){return !this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Pf(this,e,t):new Ff(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}},Uf=gt;gt.default=gt;Bf.registerProcessor(gt);$f.registerProcessor(gt);var Wf=Fr,Hf=_o,zf=Br,Vf=Ci,Gf=$r,jf=It,Yf=Ei;function yt(r,e){if(Array.isArray(r))return r.map(i=>yt(i));let{inputs:t,...n}=r;if(t){e=[];for(let i of t){let s={...i,__proto__:Gf.prototype};s.map&&(s.map={...s.map,__proto__:Hf.prototype}),e.push(s);}}if(n.nodes&&(n.nodes=r.nodes.map(i=>yt(i,e))),n.source){let{inputId:i,...s}=n.source;n.source=s,i!=null&&(n.source.input=e[i]);}if(n.type==="root")return new jf(n);if(n.type==="decl")return new Wf(n);if(n.type==="rule")return new Yf(n);if(n.type==="comment")return new zf(n);if(n.type==="atrule")return new Vf(n);throw new Error("Unknown node type: "+r.type)}var Xf=yt;yt.default=yt;var Zf=yi,ia=Fr,Jf=na,Kf=Ne,xi=Uf,qf=Lr,Qf=Xf,sa=vi,ed=Xo,oa=Br,aa=Ci,td=Si,rd=$r,nd=Ii,id=Qo,la=Ei,ca=It,sd=Pr;function _(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new xi(r)}_.plugin=function(e,t){let n=false;function i(...o){console&&console.warn&&!n&&(n=true,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
24
|
+
`),this.css+=t+"/*# sourceMappingURL="+e+" */";}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||hr(e.file),i;this.mapOpts.sourcesContent===false?(i=new Do(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(n)));}}clearAnnotation(){if(this.mapOpts.annotation!==false)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t);}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""));}generate(){if(this.clearAnnotation(),ef&&Qu&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t;}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=dr.fromSourceMap(e,{ignoreInvalidMapping:true});}else this.map=new dr({file:this.outputFile(),ignoreInvalidMapping:true}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new dr({file:this.outputFile(),ignoreInvalidMapping:true});let e=1,t=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,o;this.stringify(this.root,(l,a,c)=>{if(this.css+=l,a&&c!=="end"&&(i.generated.line=e,i.generated.column=t-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,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),s=l.match(/\n/g),s?(e+=s.length,o=l.lastIndexOf(`
|
|
25
|
+
`),t=l.length-o):t+=l.length,a&&c!=="start"){let u=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==u.last||u.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=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)));}});}isAnnotation(){return this.isInline()?true:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):true}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==true?false:this.previous().length?this.previous().some(t=>t.inline):true}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):true}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?hr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=hr(Po(n,this.mapOpts.annotation)));let i=Lo(n,e);return this.memoizedPaths.set(e,i),i}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 qu(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 n=t.source.input.from;if(n&&!e[n]){e[n]=true;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,t.source.input.css);}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css);}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Fs){let n=Fs(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Fo==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}},$o=tf,rf=Pr,Pn=class extends rf{constructor(e){super(e),this.type="comment";}},Br=Pn;Pn.default=Pn;var{isClean:Bo,my:Uo}=xt,Wo=Fr,Ho=Br,nf=Pr,zo,wi,vi,Vo;function Go(r){return r.map(e=>(e.nodes&&(e.nodes=Go(e.nodes)),delete e.source,e))}function jo(r){if(r[Bo]=false,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)jo(e);}var be=class Yo extends nf{append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let i of n)this.proxyOf.nodes.push(i);}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e);}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],i=e(this.proxyOf.nodes[n],n),i!==false);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return {get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...n)=>e[t](...n.map(i=>typeof i=="function"?(s,o)=>i(s.toProxy(),o):i)):t==="every"||t==="some"?n=>e[t]((i,...s)=>n(i.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),true}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],n<s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),i=n===0?"prepend":false,s=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let l of s)this.proxyOf.nodes.splice(n,0,l);let o;for(let l in this.indexes)o=this.indexes[l],n<=o&&(this.indexes[l]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Go(zo(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore");}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore");}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Wo(e)];}else if(e.selector)e=[new wi(e)];else if(e.name)e=[new vi(e)];else if(e.text)e=[new Ho(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Uo]||Yo.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Bo]&&jo(i),typeof i.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let n=this.normalize(t,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.length;}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,n));}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let i;try{i=e(t,n);}catch(s){throw t.addToError(s)}return i!==false&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="atrule")return t(n,i)}))}walkComments(e){return this.walk((t,n)=>{if(t.type==="comment")return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="decl")return t(n,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="rule")return t(n,i)}))}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]}};be.registerParse=r=>{zo=r;};be.registerRule=r=>{wi=r;};be.registerAtRule=r=>{vi=r;};be.registerRoot=r=>{Vo=r;};var Oe=be;be.default=be;be.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,vi.prototype):r.type==="rule"?Object.setPrototypeOf(r,wi.prototype):r.type==="decl"?Object.setPrototypeOf(r,Wo.prototype):r.type==="comment"?Object.setPrototypeOf(r,Ho.prototype):r.type==="root"&&Object.setPrototypeOf(r,Vo.prototype),r[Uo]=true,r.nodes&&r.nodes.forEach(e=>{be.rebuild(e);});};var sf=Oe,Xo,Jo,gt=class extends sf{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[]);}toResult(e={}){return new Xo(new Jo,this,e).stringify()}};gt.registerLazyResult=r=>{Xo=r;};gt.registerProcessor=r=>{Jo=r;};var Si=gt;gt.default=gt;var Fn=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column;}for(let n in t)this[n]=t[n];}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}},Zo=Fn;Fn.default=Fn;var of=Zo,$n=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,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 n=new of(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}},Ci=$n;$n.default=$n;var yn=39,$s=34,Yt=92,Bs=47,Xt=10,at=32,Jt=12,Zt=9,Kt=13,af=91,lf=93,cf=40,uf=41,ff=123,df=125,hf=59,pf=42,mf=58,gf=64,qt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Qt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,yf=/.[\r\n"'(/\\]/,Us=/[\da-f]/i,bf=function(e,t={}){let n=e.css.valueOf(),i=t.ignoreErrors,s,o,l,a,c,u,f,d,g,m,p=n.length,h=0,y=[],w=[];function b(){return h}function v(A){throw e.error("Unclosed "+A,h)}function C(){return w.length===0&&h>=p}function I(A){if(w.length)return w.pop();if(h>=p)return;let L=A?A.ignoreUnclosed:false;switch(s=n.charCodeAt(h),s){case Xt:case at:case Zt:case Kt:case Jt:{o=h;do o+=1,s=n.charCodeAt(o);while(s===at||s===Xt||s===Zt||s===Kt||s===Jt);m=["space",n.slice(h,o)],h=o-1;break}case af:case lf:case ff:case df:case mf:case hf:case uf:{let $=String.fromCharCode(s);m=[$,$,h];break}case cf:{if(d=y.length?y.pop()[1]:"",g=n.charCodeAt(h+1),d==="url"&&g!==yn&&g!==$s&&g!==at&&g!==Xt&&g!==Zt&&g!==Jt&&g!==Kt){o=h;do{if(u=false,o=n.indexOf(")",o+1),o===-1)if(i||L){o=h;break}else v("bracket");for(f=o;n.charCodeAt(f-1)===Yt;)f-=1,u=!u;}while(u);m=["brackets",n.slice(h,o+1),h,o],h=o;}else o=n.indexOf(")",h+1),a=n.slice(h,o+1),o===-1||yf.test(a)?m=["(","(",h]:(m=["brackets",a,h,o],h=o);break}case yn:case $s:{l=s===yn?"'":'"',o=h;do{if(u=false,o=n.indexOf(l,o+1),o===-1)if(i||L){o=h+1;break}else v("string");for(f=o;n.charCodeAt(f-1)===Yt;)f-=1,u=!u;}while(u);m=["string",n.slice(h,o+1),h,o],h=o;break}case gf:{qt.lastIndex=h+1,qt.test(n),qt.lastIndex===0?o=n.length-1:o=qt.lastIndex-2,m=["at-word",n.slice(h,o+1),h,o],h=o;break}case Yt:{for(o=h,c=true;n.charCodeAt(o+1)===Yt;)o+=1,c=!c;if(s=n.charCodeAt(o+1),c&&s!==Bs&&s!==at&&s!==Xt&&s!==Zt&&s!==Kt&&s!==Jt&&(o+=1,Us.test(n.charAt(o)))){for(;Us.test(n.charAt(o+1));)o+=1;n.charCodeAt(o+1)===at&&(o+=1);}m=["word",n.slice(h,o+1),h,o],h=o;break}default:{s===Bs&&n.charCodeAt(h+1)===pf?(o=n.indexOf("*/",h+2)+1,o===0&&(i||L?o=n.length:v("comment")),m=["comment",n.slice(h,o+1),h,o],h=o):(Qt.lastIndex=h+1,Qt.test(n),Qt.lastIndex===0?o=n.length-1:o=Qt.lastIndex-2,m=["word",n.slice(h,o+1),h,o],y.push(m),h=o);break}}return h++,m}function D(A){w.push(A);}return {back:D,endOfFile:C,nextToken:I,position:b}},Ko=Oe,Ir=class extends Ko{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)}},Ei=Ir;Ir.default=Ir;Ko.registerAtRule(Ir);var qo=Oe,Qo,ea,Xe=class extends qo{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[]);}normalize(e,t,n){let i=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of i)s.raws.before=t.raws.before;}return i}removeChild(e,t){let n=this.index(e);return !t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Qo(new ea,this,e).stringify()}};Xe.registerLazyResult=r=>{Qo=r;};Xe.registerProcessor=r=>{ea=r;};var Rt=Xe;Xe.default=Xe;qo.registerRoot(Xe);var yt={comma(r){return yt.split(r,[","],true)},space(r){let e=[" ",`
|
|
26
|
+
`," "];return yt.split(r,e)},split(r,e,t){let n=[],i="",s=false,o=0,l=false,a="",c=false;for(let u of r)c?c=false:u==="\\"?c=true:l?u===a&&(l=false):u==='"'||u==="'"?(l=true,a=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(s=true),s?(i!==""&&n.push(i.trim()),i="",s=false):i+=u;return (t||i!=="")&&n.push(i.trim()),n}},ta=yt;yt.default=yt;var ra=Oe,wf=ta,xr=class extends ra{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[]);}get selectors(){return wf.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n);}},Ii=xr;xr.default=xr;ra.registerRule(xr);var vf=Fr,Sf=bf,Cf=Br,Ef=Ei,If=Rt,Ws=Ii,Hs={empty:true,space:true};function xf(r){for(let e=r.length-1;e>=0;e--){let t=r[e],n=t[3]||t[2];if(n)return n}}var Rf=class{constructor(e){this.input=e,this.root=new If,this.current=this.root,this.spaces="",this.semicolon=false,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}};}atrule(e){let t=new Ef;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,i,s,o=false,l=false,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=true;break}else if(n==="{"){l=true;break}else if(n==="}"){if(a.length>0){for(s=a.length-1,i=a[s];i&&i[0]==="space";)i=a[--s];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++);}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t);}checkMissedSemicolon(e){let t=this.colon(e);if(t===false)return;let n=0,i;for(let s=t-1;s>=0&&(i=e[s],!(i[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,n,i,s;for(let[o,l]of e.entries()){if(n=l,i=n[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!s)this.doubleColon(n);else {if(s[0]==="word"&&s[1]==="progid")continue;return o}s=n;}return false}comment(e){let t=new Cf;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else {let i=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3];}}createTokenizer(){this.tokenizer=Sf(this.input);}decl(e,t){let n=new vf;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=true,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||xf(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1];}n.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){n.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(s=e[c],s[1].toLowerCase()==="!important"){n.important=true;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(n.raws.important=u);break}else if(s[1].toLowerCase()==="important"){let u=e.slice(0),f="";for(let d=c;d>0;d--){let g=u[d][0];if(f.trim().indexOf("!")===0&&g!=="space")break;f=u.pop()[1]+f;}f.trim().indexOf("!")===0&&(n.important=true,n.raws.important=f,e=u);}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=o.map(c=>c[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 Ws;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=false,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e);}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position());}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="");}}getPosition(e){let t=this.input.fromOffset(e);return {column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=false);}other(e){let t=false,n=null,i=false,s=null,o=[],l=e[1].startsWith("--"),a=[],c=e;for(;c;){if(n=c[0],a.push(c),n==="("||n==="[")s||(s=c),o.push(n==="("?")":"]");else if(l&&i&&n==="{")s||(s=c),o.push("}");else if(o.length===0)if(n===";")if(i){this.decl(a,l);return}else break;else if(n==="{"){this.rule(a);return}else if(n==="}"){this.tokenizer.back(a.pop()),t=true;break}else n===":"&&(i=true);else n===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));c=this.tokenizer.nextToken();}if(this.tokenizer.endOfFile()&&(t=true),o.length>0&&this.unclosedBracket(s),t&&i){if(!l)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l);}else this.unknownWord(a);}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case "space":this.spaces+=e[1];break;case ";":this.freeSemicolon(e);break;case "}":this.end(e);break;case "comment":this.comment(e);break;case "at-word":this.atrule(e);break;case "{":this.emptyRule(e);break;default:this.other(e);break}this.endFile();}precheckMissedSemicolon(){}raw(e,t,n,i){let s,o,l=n.length,a="",c=true,u,f;for(let d=0;d<l;d+=1)s=n[d],o=s[0],o==="space"&&d===l-1&&!i?c=false:o==="comment"?(f=n[d-1]?n[d-1][0]:"empty",u=n[d+1]?n[d+1][0]:"empty",!Hs[f]&&!Hs[u]?a.slice(-1)===","?c=false:a+=s[1]:c=false):a+=s[1];if(!c){let d=n.reduce((g,m)=>g+m[1],"");e.raws[t]={raw:d,value:a};}e[t]=a;}rule(e){e.pop();let t=new Ws;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t;}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let i=t;i<e.length;i++)n+=e[i][1];return e.splice(t,e.length-t),n}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})}},Mf=Rf,Tf=Oe,Af=Mf,kf=$r;function Rr(r,e){let t=new kf(r,e),n=new Af(t);try{n.parse();}catch(i){throw i}return n.root}var xi=Rr;Rr.default=Rr;Tf.registerParse(Rr);var{isClean:me,my:_f}=xt,Nf=$o,Of=Lr,Df=Oe,Lf=Si;var zs=Ci,Pf=xi,Ff=Rt,$f={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Bf={AtRule:true,AtRuleExit:true,Comment:true,CommentExit:true,Declaration:true,DeclarationExit:true,Document:true,DocumentExit:true,Once:true,OnceExit:true,postcssPlugin:true,prepare:true,Root:true,RootExit:true,Rule:true,RuleExit:true},Uf={Once:true,postcssPlugin:true,prepare:true},Je=0;function lt(r){return typeof r=="object"&&typeof r.then=="function"}function na(r){let e=false,t=$f[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,Je,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,Je,t+"Exit"]:[t,t+"Exit"]}function Vs(r){let e;return r.type==="document"?e=["Document",Je,"DocumentExit"]:r.type==="root"?e=["Root",Je,"RootExit"]:e=na(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function Bn(r){return r[me]=false,r.nodes&&r.nodes.forEach(e=>Bn(e)),r}var Un={},Ze=class ia{constructor(e,t,n){this.stringified=false,this.processed=false;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=Bn(t);else if(t instanceof ia||t instanceof zs)i=Bn(t.root),t.map&&(typeof n.map=="undefined"&&(n.map={}),n.map.inline||(n.map.inline=false),n.map.prev=t.map);else {let s=Pf;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(t,n);}catch(o){this.processed=true,this.error=o;}i&&!i[_f]&&Df.rebuild(i);}this.result=new zs(e,i,n),this.helpers={...Un,postcss:Un,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s);}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion;}catch(i){console&&console.error&&console.error(i);}return e}prepareVisitors(){this.listeners={};let e=(t,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,i]);};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!Bf[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Uf[n])if(typeof t[n]=="object")for(let i in t[n])i==="*"?e(t,n,t[n][i]):e(t,n+"-"+i.toLowerCase(),t[n][i]);else typeof t[n]=="function"&&e(t,n,t[n]);}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],n=this.runOnRoot(t);if(lt(n))try{await n;}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[me];){e[me]=true;let t=[Vs(e)];for(;t.length>0;){let n=this.visitTick(t);if(lt(n))try{await n;}catch(i){let s=t[t.length-1].node;throw this.handleError(i,s)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(s=>n(s,this.helpers));await Promise.all(i);}else await n(e,this.helpers);}catch(i){throw this.handleError(i)}}}return this.processed=true,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return lt(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=true,this.sync();let e=this.result.opts,t=Of;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new Nf(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=true,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(lt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[me];)e[me]=true,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e);}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,i]of e){this.result.lastPlugin=n;let s;try{s=i(t,this.helpers);}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return true;if(lt(s))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(n.toProxy(),this.helpers)}catch(a){throw this.handleError(a,n)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!l[me]){l[me]=true,e.push(Vs(l));return}t.iterator=0,delete n.indexes[o];}let s=t.events;for(;t.eventIndex<s.length;){let o=s[t.eventIndex];if(t.eventIndex+=1,o===Je){n.nodes&&n.nodes.length&&(n[me]=true,t.iterator=n.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop();}walkSync(e){e[me]=true;let t=na(e);for(let n of t)if(n===Je)e.nodes&&e.each(i=>{i[me]||this.walkSync(i);});else {let i=this.listeners[n];if(i&&this.visitSync(i,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"}};Ze.registerPostcss=r=>{Un=r;};var sa=Ze;Ze.default=Ze;Ff.registerLazyResult(Ze);Lf.registerLazyResult(Ze);var Wf=$o,Hf=Lr;var zf=xi,Vf=Ci,Wn=class{constructor(e,t,n){t=t.toString(),this.stringified=false,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i,s=Hf;this.result=new Vf(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new Wf(s,i,this._opts,t);if(l.isMap()){let[a,c]=l.generate();a&&(this.result.css=a),c&&(this.result.map=c);}else l.clearAnnotation(),this.result.css=l.css;}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return []}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return []}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=zf;try{e=t(this._css,this._opts);}catch(n){this.error=n;}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return "NoWorkResult"}},Gf=Wn;Wn.default=Wn;var jf=Gf,Yf=sa,Xf=Si,Jf=Rt,bt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e);}normalize(e){let t=[];for(let n of e)if(n.postcss===true?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return t}process(e,t={}){return !this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new jf(this,e,t):new Yf(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}},Zf=bt;bt.default=bt;Jf.registerProcessor(bt);Xf.registerProcessor(bt);var Kf=Fr,qf=Oo,Qf=Br,ed=Ei,td=$r,rd=Rt,nd=Ii;function wt(r,e){if(Array.isArray(r))return r.map(i=>wt(i));let{inputs:t,...n}=r;if(t){e=[];for(let i of t){let s={...i,__proto__:td.prototype};s.map&&(s.map={...s.map,__proto__:qf.prototype}),e.push(s);}}if(n.nodes&&(n.nodes=r.nodes.map(i=>wt(i,e))),n.source){let{inputId:i,...s}=n.source;n.source=s,i!=null&&(n.source.input=e[i]);}if(n.type==="root")return new rd(n);if(n.type==="decl")return new Kf(n);if(n.type==="rule")return new nd(n);if(n.type==="comment")return new Qf(n);if(n.type==="atrule")return new ed(n);throw new Error("Unknown node type: "+r.type)}var id=wt;wt.default=wt;var sd=bi,oa=Fr,od=sa,ad=Oe,Ri=Zf,ld=Lr,cd=id,aa=Si,ud=Zo,la=Br,ca=Ei,fd=Ci,dd=$r,hd=xi,pd=ta,ua=Ii,fa=Rt,md=Pr;function _(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new Ri(r)}_.plugin=function(e,t){let n=false;function i(...o){console&&console.warn&&!n&&(n=true,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
26
27
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
27
|
-
https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new
|
|
28
|
-
`+g+l("^")}return " "+a(
|
|
28
|
+
https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new Ri().version,l}let s;return Object.defineProperty(i,"postcss",{get(){return s||(s=i()),s}}),i.process=function(o,l,a){return _([i(a)]).process(o,l)},i};_.stringify=ld;_.parse=hd;_.fromJSON=cd;_.list=pd;_.comment=r=>new la(r);_.atRule=r=>new ca(r);_.decl=r=>new oa(r);_.rule=r=>new ua(r);_.root=r=>new fa(r);_.document=r=>new aa(r);_.CssSyntaxError=sd;_.Declaration=oa;_.Container=ad;_.Processor=Ri;_.Document=aa;_.Comment=la;_.Warning=ud;_.AtRule=ca;_.Result=fd;_.Input=dd;_.Rule=ua;_.Root=fa;_.Node=md;od.registerPostcss(_);var gd=_;_.default=_;var W=Mu(gd);W.stringify;W.fromJSON;W.plugin;W.parse;W.list;W.document;W.comment;W.atRule;W.rule;W.decl;W.root;W.CssSyntaxError;W.Declaration;W.Container;W.Processor;W.Document;W.Comment;W.Warning;W.AtRule;W.Result;W.Input;W.Rule;W.Root;W.Node;var yd=Object.defineProperty,bd=(r,e,t)=>e in r?yd(r,e,{enumerable:true,configurable:true,writable:true,value:t}):r[e]=t,oe=(r,e,t)=>bd(r,typeof e!="symbol"?e+"":e,t);function wd(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function vd(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype;}else t={};return Object.defineProperty(t,"__esModule",{value:true}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:true,get:function(){return r[n]}});}),t}var Mi={exports:{}},U=String,da=function(){return {isColorSupported:false,reset:U,bold:U,dim:U,italic:U,underline:U,inverse:U,hidden:U,strikethrough:U,black:U,red:U,green:U,yellow:U,blue:U,magenta:U,cyan:U,white:U,gray:U,bgBlack:U,bgRed:U,bgGreen:U,bgYellow:U,bgBlue:U,bgMagenta:U,bgCyan:U,bgWhite:U}};Mi.exports=da();Mi.exports.createColors=da;var Sd=Mi.exports,Cd={},Ed=Object.freeze(Object.defineProperty({__proto__:null,default:Cd},Symbol.toStringTag,{value:"Module"})),fe=vd(Ed),Gs=Sd,js=fe,Hn=class ha extends Error{constructor(e,t,n,i,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),i&&(this.source=i),o&&(this.plugin=o),typeof t!="undefined"&&typeof n!="undefined"&&(typeof t=="number"?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,ha);}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason;}showSourceCode(e){if(!this.source)return "";let t=this.source;e==null&&(e=Gs.isColorSupported),js&&e&&(t=js(t));let n=t.split(/\r?\n/),i=Math.max(this.line-3,0),s=Math.min(this.line+2,n.length),o=String(s).length,l,a;if(e){let{bold:c,gray:u,red:f}=Gs.createColors(true);l=d=>c(f(d)),a=d=>u(d);}else l=a=c=>c;return n.slice(i,s).map((c,u)=>{let f=i+1+u,d=" "+(" "+f).slice(-o)+" | ";if(f===this.line){let g=a(d.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(d)+c+`
|
|
29
|
+
`+g+l("^")}return " "+a(d)+c}).join(`
|
|
29
30
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
30
31
|
|
|
31
32
|
`+e+`
|
|
32
|
-
`),this.name+": "+this.message+e}},
|
|
33
|
+
`),this.name+": "+this.message+e}},Ti=Hn;Hn.default=Hn;var Mt={};Mt.isClean=Symbol("isClean");Mt.my=Symbol("my");var Ys={after:`
|
|
33
34
|
`,beforeClose:`
|
|
34
35
|
`,beforeComment:`
|
|
35
36
|
`,beforeDecl:`
|
|
36
37
|
`,beforeOpen:" ",beforeRule:`
|
|
37
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:false};function
|
|
38
|
-
`)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<s;l++)n+=o;}return n}block(e,t){let n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end");}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let n=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let s=e.nodes[i],o=this.raw(s,"before");o&&this.builder(o),this.stringify(s,t!==i||n);}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e);}decl(e,t){let n=this.raw(e,"between","colon"),i=e.prop+n+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e);}document(e){this.body(e);}raw(e,t,n){let i;if(n||(n=t),t&&(i=e.raws[t],typeof i!="undefined"))return i;let s=e.parent;if(n==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return "";if(!s)return
|
|
38
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:false};function Id(r){return r[0].toUpperCase()+r.slice(1)}var zn=class{constructor(e){this.builder=e;}atrule(e,t){let n="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i);else {let s=(e.raws.between||"")+(t?";":"");this.builder(n+i+s,e);}}beforeAfter(e,t){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let i=e.parent,s=0;for(;i&&i.type!=="root";)s+=1,i=i.parent;if(n.includes(`
|
|
39
|
+
`)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<s;l++)n+=o;}return n}block(e,t){let n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end");}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let n=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let s=e.nodes[i],o=this.raw(s,"before");o&&this.builder(o),this.stringify(s,t!==i||n);}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e);}decl(e,t){let n=this.raw(e,"between","colon"),i=e.prop+n+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e);}document(e){this.body(e);}raw(e,t,n){let i;if(n||(n=t),t&&(i=e.raws[t],typeof i!="undefined"))return i;let s=e.parent;if(n==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return "";if(!s)return Ys[n];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[n]!="undefined")return o.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let l="raw"+Id(n);this[l]?i=this[l](o,e):o.walk(a=>{if(i=a.raws[t],typeof i!="undefined")return false});}return typeof i=="undefined"&&(i=Ys[n]),o.rawCache[n]=i,i}rawBeforeClose(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after!="undefined")return t=n.raws.after,t.includes(`
|
|
39
40
|
`)&&(t=t.replace(/[^\n]+$/,"")),false}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments(i=>{if(typeof i.raws.before!="undefined")return n=i.raws.before,n.includes(`
|
|
40
41
|
`)&&(n=n.replace(/[^\n]+$/,"")),false}),typeof n=="undefined"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(i=>{if(typeof i.raws.before!="undefined")return n=i.raws.before,n.includes(`
|
|
41
42
|
`)&&(n=n.replace(/[^\n]+$/,"")),false}),typeof n=="undefined"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk(n=>{if(n.type!=="decl"&&(t=n.raws.between,typeof t!="undefined"))return false}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before!="undefined")return t=n.raws.before,t.includes(`
|
|
42
43
|
`)&&(t=t.replace(/[^\n]+$/,"")),false}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(n=>{if(typeof n.raws.between!="undefined")return t=n.raws.between.replace(/[^\s:]/g,""),false}),t}rawEmptyBody(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t!="undefined"))return false}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let i=n.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof n.raws.before!="undefined"){let s=n.raws.before.split(`
|
|
43
|
-
`);return t=s[s.length-1],t=t.replace(/\S/g,""),false}}),t}rawSemicolon(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t!="undefined"))return false}),t}rawValue(e,t){let n=e[t],i=e.raws[t];return i&&i.value===n?i.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after);}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end");}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t);}},
|
|
44
|
-
`?(i=1,s+=1):i+=1;return {column:i,line:s}}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},n=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 i=this.toString(),s=i.indexOf(e.word);s!==-1&&(t=this.positionInside(s,i),n=this.positionInside(s+e.word.length,i));}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return (n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return new
|
|
45
|
-
`);n=new Array(s.length);let o=0;for(let l=0,a=s.length;l<a;l++)n[l]=o,o+=s[l].length+1;this[
|
|
44
|
+
`);return t=s[s.length-1],t=t.replace(/\S/g,""),false}}),t}rawSemicolon(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t!="undefined"))return false}),t}rawValue(e,t){let n=e[t],i=e.raws[t];return i&&i.value===n?i.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after);}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end");}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t);}},pa=zn;zn.default=zn;var xd=pa;function Vn(r,e){new xd(e).stringify(r);}var Ur=Vn;Vn.default=Vn;var{isClean:er,my:Rd}=Mt,Md=Ti,Td=pa,Ad=Ur;function Gn(r,e){let t=new r.constructor;for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n)||n==="proxyCache")continue;let i=r[n],s=typeof i;n==="parent"&&s==="object"?e&&(t[n]=e):n==="source"?t[n]=i:Array.isArray(i)?t[n]=i.map(o=>Gn(o,t)):(s==="object"&&i!==null&&(i=Gn(i)),t[n]=i);}return t}var jn=class{constructor(e={}){this.raws={},this[er]=false,this[Rd]=true;for(let t in e)if(t==="nodes"){this.nodes=[];for(let n of e[t])typeof n.clone=="function"?this.append(n.clone()):this.append(n);}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=Gn(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new Md(e)}getProxyProcessor(){return {get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),true}}}markDirty(){if(this[er]){this[er]=false;let e=this;for(;e=e.parent;)e[er]=false;}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();let i=t.indexOf(e.word);i!==-1&&(n=this.positionInside(i,t));}return n}positionInside(e,t){let n=t||this.toString(),i=this.source.start.column,s=this.source.start.line;for(let o=0;o<e;o++)n[o]===`
|
|
45
|
+
`?(i=1,s+=1):i+=1;return {column:i,line:s}}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},n=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 i=this.toString(),s=i.indexOf(e.word);s!==-1&&(t=this.positionInside(s,i),n=this.positionInside(s+e.word.length,i));}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return (n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return new Td().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,n=false;for(let i of e)i===this?n=true:n?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);n||this.remove();}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let n={},i=t==null;t=t||new Map;let s=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let l=this[o];if(Array.isArray(l))n[o]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)n[o]=l.toJSON(null,t);else if(o==="source"){let a=t.get(l.input);a==null&&(a=s,t.set(l.input,s),s++),n[o]={end:l.end,inputId:a,start:l.start};}else n[o]=l;}return i&&(n.inputs=[...t.keys()].map(o=>o.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Ad){e.stringify&&(e=e.stringify);let t="";return e(this,n=>{t+=n;}),t}warn(e,t,n){let i={node:this};for(let s in n)i[s]=n[s];return e.warn(t,i)}get proxyOf(){return this}},Wr=jn;jn.default=jn;var kd=Wr,Yn=class extends kd{constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl";}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},Hr=Yn;Yn.default=Yn;var _d="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Od=(r=21)=>{let e="",t=r;for(;t--;)e+=_d[Math.random()*64|0];return e},Dd={nanoid:Od},{SourceMapConsumer:Xs,SourceMapGenerator:Js}=fe,{existsSync:Ld,readFileSync:Pd}=fe,{dirname:bn,join:Fd}=fe;function $d(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var Xn=class{constructor(e,t){if(t.map===false)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,i=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=bn(this.mapFile)),i&&(this.text=i);}consumer(){return this.consumerCache||(this.consumerCache=new Xs(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(i.test(e)||s.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return $d(e.substr(RegExp.lastMatch.length));let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?false:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)));}loadFile(e){if(this.root=bn(e),Ld(e))return this.mapFile=e,Pd(e,"utf-8").toString().trim()}loadMap(e,t){if(t===false)return false;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let n=t(e);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else {if(t instanceof Xs)return Js.fromSourceMap(t).toString();if(t instanceof Js)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else {if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=Fd(bn(e),n)),this.loadFile(n)}}}startWith(e,t){return e?e.substr(0,t.length)===t:false}withContent(){return !!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},ma=Xn;Xn.default=Xn;var{SourceMapConsumer:Bd,SourceMapGenerator:Ud}=fe,{fileURLToPath:Zs,pathToFileURL:tr}=fe,{isAbsolute:Jn,resolve:Zn}=fe,{nanoid:Wd}=Dd,wn=fe,Ks=Ti,Hd=ma,vn=Symbol("fromOffsetCache"),zd=!!(Bd&&Ud),qs=!!(Zn&&Jn),Mr=class{constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=true,this.css=this.css.slice(1)):this.hasBOM=false,t.from&&(!qs||/^\w+:\/\//.test(t.from)||Jn(t.from)?this.file=t.from:this.file=Zn(t.from)),qs&&zd){let n=new Hd(this.css,t);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i));}}this.file||(this.id="<input css "+Wd(6)+">"),this.map&&(this.map.file=this.from);}error(e,t,n,i={}){let s,o,l;if(t&&typeof t=="object"){let c=t,u=n;if(typeof c.offset=="number"){let f=this.fromOffset(c.offset);t=f.line,n=f.col;}else t=c.line,n=c.column;if(typeof u.offset=="number"){let f=this.fromOffset(u.offset);o=f.line,l=f.col;}else o=u.line,l=u.column;}else if(!n){let c=this.fromOffset(t);t=c.line,n=c.col;}let a=this.origin(t,n,o,l);return a?s=new Ks(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,i.plugin):s=new Ks(e,o===void 0?t:{column:n,line:t},o===void 0?n:{column:l,line:o},this.css,this.file,i.plugin),s.input={column:n,endColumn:l,endLine:o,line:t,source:this.css},this.file&&(tr&&(s.input.url=tr(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,n;if(this[vn])n=this[vn];else {let s=this.css.split(`
|
|
46
|
+
`);n=new Array(s.length);let o=0;for(let l=0,a=s.length;l<a;l++)n[l]=o,o+=s[l].length+1;this[vn]=n;}t=n[n.length-1];let i=0;if(e>=t)i=n.length-1;else {let s=n.length-2,o;for(;i<s;)if(o=i+(s-i>>1),e<n[o])s=o-1;else if(e>=n[o+1])i=o+1;else {i=o;break}}return {col:e-n[i]+1,line:i+1}}mapResolve(e){return /^\w+:\/\//.test(e)?e:Zn(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,i){if(!this.map)return false;let s=this.map.consumer(),o=s.originalPositionFor({column:t,line:e});if(!o.source)return false;let l;typeof n=="number"&&(l=s.originalPositionFor({column:i,line:n}));let a;Jn(o.source)?a=tr(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||tr(this.map.mapFile));let c={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Zs)c.file=Zs(a);else throw new Error("file: protocol is not available in this PostCSS build");let u=s.sourceContentFor(o.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of ["hasBOM","css","file","id"])this[t]!=null&&(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}},zr=Mr;Mr.default=Mr;wn&&wn.registerInput&&wn.registerInput(Mr);var{SourceMapConsumer:ga,SourceMapGenerator:pr}=fe,{dirname:mr,relative:ya,resolve:ba,sep:wa}=fe,{pathToFileURL:Qs}=fe,Vd=zr,Gd=!!(ga&&pr),jd=!!(mr&&ba&&ya&&wa),Yd=class{constructor(e,t,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map;}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
|
|
46
47
|
`;this.css.includes(`\r
|
|
47
48
|
`)&&(t=`\r
|
|
48
|
-
`),this.css+=t+"/*# sourceMappingURL="+e+" */";}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||mr(e.file),i;this.mapOpts.sourcesContent===false?(i=new
|
|
49
|
-
`),t=l.length-o):t+=l.length,a&&c!=="start"){let u=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==u.last||u.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=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)));}});}isAnnotation(){return this.isInline()?true:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):true}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==true?false:this.previous().length?this.previous().some(t=>t.inline):true}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):true}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?mr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=mr(ga(n,this.mapOpts.annotation)));let i=ma(n,e);return this.memoizedPaths.set(e,i),i}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 Dd(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 n=t.source.input.from;if(n&&!e[n]){e[n]=true;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,t.source.input.css);}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css);}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Ks){let n=Ks(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;ya==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}},ba=Fd,$d=Wr,Jn=class extends $d{constructor(e){super(e),this.type="comment";}},Vr=Jn;Jn.default=Jn;var{isClean:wa,my:va}=xt,Sa=Hr,Ca=Vr,Bd=Wr,Ea,Ti,Ai,Ia;function xa(r){return r.map(e=>(e.nodes&&(e.nodes=xa(e.nodes)),delete e.source,e))}function Ra(r){if(r[wa]=false,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)Ra(e);}var we=class Ma extends Bd{append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let i of n)this.proxyOf.nodes.push(i);}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e);}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],i=e(this.proxyOf.nodes[n],n),i!==false);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return {get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...n)=>e[t](...n.map(i=>typeof i=="function"?(s,o)=>i(s.toProxy(),o):i)):t==="every"||t==="some"?n=>e[t]((i,...s)=>n(i.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),true}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],n<s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),i=n===0?"prepend":false,s=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let l of s)this.proxyOf.nodes.splice(n,0,l);let o;for(let l in this.indexes)o=this.indexes[l],n<=o&&(this.indexes[l]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=xa(Ea(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore");}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore");}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Sa(e)];}else if(e.selector)e=[new Ti(e)];else if(e.name)e=[new Ai(e)];else if(e.text)e=[new Ca(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[va]||Ma.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[wa]&&Ra(i),typeof i.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let n=this.normalize(t,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.length;}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,n));}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let i;try{i=e(t,n);}catch(s){throw t.addToError(s)}return i!==false&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="atrule")return t(n,i)}))}walkComments(e){return this.walk((t,n)=>{if(t.type==="comment")return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="decl")return t(n,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="rule")return t(n,i)}))}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]}};we.registerParse=r=>{Ea=r;};we.registerRule=r=>{Ti=r;};we.registerAtRule=r=>{Ai=r;};we.registerRoot=r=>{Ia=r;};var Oe=we;we.default=we;we.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,Ai.prototype):r.type==="rule"?Object.setPrototypeOf(r,Ti.prototype):r.type==="decl"?Object.setPrototypeOf(r,Sa.prototype):r.type==="comment"?Object.setPrototypeOf(r,Ca.prototype):r.type==="root"&&Object.setPrototypeOf(r,Ia.prototype),r[va]=true,r.nodes&&r.nodes.forEach(e=>{we.rebuild(e);});};var Ud=Oe,Ta,Aa,bt=class extends Ud{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[]);}toResult(e={}){return new Ta(new Aa,this,e).stringify()}};bt.registerLazyResult=r=>{Ta=r;};bt.registerProcessor=r=>{Aa=r;};var ki=bt;bt.default=bt;var Kn=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column;}for(let n in t)this[n]=t[n];}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}},ka=Kn;Kn.default=Kn;var Wd=ka,qn=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,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 n=new Wd(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}},_i=qn;qn.default=qn;var vn=39,qs=34,rr=92,Qs=47,nr=10,at=32,ir=12,sr=9,or=13,Hd=91,zd=93,Vd=40,Gd=41,jd=123,Yd=125,Xd=59,Zd=42,Jd=58,Kd=64,ar=/[\t\n\f\r "#'()/;[\\\]{}]/g,lr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,qd=/.[\r\n"'(/\\]/,eo=/[\da-f]/i,Qd=function(e,t={}){let n=e.css.valueOf(),i=t.ignoreErrors,s,o,l,a,c,u,d,f,g,m,p=n.length,h=0,y=[],w=[];function b(){return h}function S(A){throw e.error("Unclosed "+A,h)}function E(){return w.length===0&&h>=p}function I(A){if(w.length)return w.pop();if(h>=p)return;let F=A?A.ignoreUnclosed:false;switch(s=n.charCodeAt(h),s){case nr:case at:case sr:case or:case ir:{o=h;do o+=1,s=n.charCodeAt(o);while(s===at||s===nr||s===sr||s===or||s===ir);m=["space",n.slice(h,o)],h=o-1;break}case Hd:case zd:case jd:case Yd:case Jd:case Xd:case Gd:{let $=String.fromCharCode(s);m=[$,$,h];break}case Vd:{if(f=y.length?y.pop()[1]:"",g=n.charCodeAt(h+1),f==="url"&&g!==vn&&g!==qs&&g!==at&&g!==nr&&g!==sr&&g!==ir&&g!==or){o=h;do{if(u=false,o=n.indexOf(")",o+1),o===-1)if(i||F){o=h;break}else S("bracket");for(d=o;n.charCodeAt(d-1)===rr;)d-=1,u=!u;}while(u);m=["brackets",n.slice(h,o+1),h,o],h=o;}else o=n.indexOf(")",h+1),a=n.slice(h,o+1),o===-1||qd.test(a)?m=["(","(",h]:(m=["brackets",a,h,o],h=o);break}case vn:case qs:{l=s===vn?"'":'"',o=h;do{if(u=false,o=n.indexOf(l,o+1),o===-1)if(i||F){o=h+1;break}else S("string");for(d=o;n.charCodeAt(d-1)===rr;)d-=1,u=!u;}while(u);m=["string",n.slice(h,o+1),h,o],h=o;break}case Kd:{ar.lastIndex=h+1,ar.test(n),ar.lastIndex===0?o=n.length-1:o=ar.lastIndex-2,m=["at-word",n.slice(h,o+1),h,o],h=o;break}case rr:{for(o=h,c=true;n.charCodeAt(o+1)===rr;)o+=1,c=!c;if(s=n.charCodeAt(o+1),c&&s!==Qs&&s!==at&&s!==nr&&s!==sr&&s!==or&&s!==ir&&(o+=1,eo.test(n.charAt(o)))){for(;eo.test(n.charAt(o+1));)o+=1;n.charCodeAt(o+1)===at&&(o+=1);}m=["word",n.slice(h,o+1),h,o],h=o;break}default:{s===Qs&&n.charCodeAt(h+1)===Zd?(o=n.indexOf("*/",h+2)+1,o===0&&(i||F?o=n.length:S("comment")),m=["comment",n.slice(h,o+1),h,o],h=o):(lr.lastIndex=h+1,lr.test(n),lr.lastIndex===0?o=n.length-1:o=lr.lastIndex-2,m=["word",n.slice(h,o+1),h,o],y.push(m),h=o);break}}return h++,m}function P(A){w.push(A);}return {back:P,endOfFile:E,nextToken:I,position:b}},_a=Oe,Tr=class extends _a{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)}},Ni=Tr;Tr.default=Tr;_a.registerAtRule(Tr);var Na=Oe,Oa,Da,Ze=class extends Na{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[]);}normalize(e,t,n){let i=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of i)s.raws.before=t.raws.before;}return i}removeChild(e,t){let n=this.index(e);return !t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Oa(new Da,this,e).stringify()}};Ze.registerLazyResult=r=>{Oa=r;};Ze.registerProcessor=r=>{Da=r;};var Rt=Ze;Ze.default=Ze;Na.registerRoot(Ze);var wt={comma(r){return wt.split(r,[","],true)},space(r){let e=[" ",`
|
|
50
|
-
`," "];return wt.split(r,e)},split(r,e,t){let n=[],i="",s=false,o=0,l=false,a="",c=false;for(let u of r)c?c=false:u==="\\"?c=true:l?u===a&&(l=false):u==='"'||u==="'"?(l=true,a=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(s=true),s?(i!==""&&n.push(i.trim()),i="",s=false):i+=u;return (t||i!=="")&&n.push(i.trim()),n}},La=wt;wt.default=wt;var Pa=Oe,eh=La,Ar=class extends Pa{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[]);}get selectors(){return eh.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n);}},Oi=Ar;Ar.default=Ar;Pa.registerRule(Ar);var th=Hr,rh=Qd,nh=Vr,ih=Ni,sh=Rt,to=Oi,ro={empty:true,space:true};function oh(r){for(let e=r.length-1;e>=0;e--){let t=r[e],n=t[3]||t[2];if(n)return n}}var ah=class{constructor(e){this.input=e,this.root=new sh,this.current=this.root,this.spaces="",this.semicolon=false,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}};}atrule(e){let t=new ih;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,i,s,o=false,l=false,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=true;break}else if(n==="{"){l=true;break}else if(n==="}"){if(a.length>0){for(s=a.length-1,i=a[s];i&&i[0]==="space";)i=a[--s];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++);}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t);}checkMissedSemicolon(e){let t=this.colon(e);if(t===false)return;let n=0,i;for(let s=t-1;s>=0&&(i=e[s],!(i[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,n,i,s;for(let[o,l]of e.entries()){if(n=l,i=n[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!s)this.doubleColon(n);else {if(s[0]==="word"&&s[1]==="progid")continue;return o}s=n;}return false}comment(e){let t=new nh;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else {let i=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3];}}createTokenizer(){this.tokenizer=rh(this.input);}decl(e,t){let n=new th;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=true,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||oh(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1];}n.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){n.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(s=e[c],s[1].toLowerCase()==="!important"){n.important=true;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(n.raws.important=u);break}else if(s[1].toLowerCase()==="important"){let u=e.slice(0),d="";for(let f=c;f>0;f--){let g=u[f][0];if(d.trim().indexOf("!")===0&&g!=="space")break;d=u.pop()[1]+d;}d.trim().indexOf("!")===0&&(n.important=true,n.raws.important=d,e=u);}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=o.map(c=>c[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 to;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=false,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e);}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position());}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="");}}getPosition(e){let t=this.input.fromOffset(e);return {column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=false);}other(e){let t=false,n=null,i=false,s=null,o=[],l=e[1].startsWith("--"),a=[],c=e;for(;c;){if(n=c[0],a.push(c),n==="("||n==="[")s||(s=c),o.push(n==="("?")":"]");else if(l&&i&&n==="{")s||(s=c),o.push("}");else if(o.length===0)if(n===";")if(i){this.decl(a,l);return}else break;else if(n==="{"){this.rule(a);return}else if(n==="}"){this.tokenizer.back(a.pop()),t=true;break}else n===":"&&(i=true);else n===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));c=this.tokenizer.nextToken();}if(this.tokenizer.endOfFile()&&(t=true),o.length>0&&this.unclosedBracket(s),t&&i){if(!l)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l);}else this.unknownWord(a);}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case "space":this.spaces+=e[1];break;case ";":this.freeSemicolon(e);break;case "}":this.end(e);break;case "comment":this.comment(e);break;case "at-word":this.atrule(e);break;case "{":this.emptyRule(e);break;default:this.other(e);break}this.endFile();}precheckMissedSemicolon(){}raw(e,t,n,i){let s,o,l=n.length,a="",c=true,u,d;for(let f=0;f<l;f+=1)s=n[f],o=s[0],o==="space"&&f===l-1&&!i?c=false:o==="comment"?(d=n[f-1]?n[f-1][0]:"empty",u=n[f+1]?n[f+1][0]:"empty",!ro[d]&&!ro[u]?a.slice(-1)===","?c=false:a+=s[1]:c=false):a+=s[1];if(!c){let f=n.reduce((g,m)=>g+m[1],"");e.raws[t]={raw:f,value:a};}e[t]=a;}rule(e){e.pop();let t=new to;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t;}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let i=t;i<e.length;i++)n+=e[i][1];return e.splice(t,e.length-t),n}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})}},lh=ah,ch=Oe,uh=lh,fh=zr;function kr(r,e){let t=new fh(r,e),n=new uh(t);try{n.parse();}catch(i){throw i}return n.root}var Di=kr;kr.default=kr;ch.registerParse(kr);var{isClean:ge,my:dh}=xt,hh=ba,ph=Ur,mh=Oe,gh=ki;var no=_i,yh=Di,bh=Rt,wh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},vh={AtRule:true,AtRuleExit:true,Comment:true,CommentExit:true,Declaration:true,DeclarationExit:true,Document:true,DocumentExit:true,Once:true,OnceExit:true,postcssPlugin:true,prepare:true,Root:true,RootExit:true,Rule:true,RuleExit:true},Sh={Once:true,postcssPlugin:true,prepare:true},Je=0;function lt(r){return typeof r=="object"&&typeof r.then=="function"}function Fa(r){let e=false,t=wh[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,Je,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,Je,t+"Exit"]:[t,t+"Exit"]}function io(r){let e;return r.type==="document"?e=["Document",Je,"DocumentExit"]:r.type==="root"?e=["Root",Je,"RootExit"]:e=Fa(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function Qn(r){return r[ge]=false,r.nodes&&r.nodes.forEach(e=>Qn(e)),r}var ei={},Ke=class $a{constructor(e,t,n){this.stringified=false,this.processed=false;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=Qn(t);else if(t instanceof $a||t instanceof no)i=Qn(t.root),t.map&&(typeof n.map=="undefined"&&(n.map={}),n.map.inline||(n.map.inline=false),n.map.prev=t.map);else {let s=yh;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(t,n);}catch(o){this.processed=true,this.error=o;}i&&!i[dh]&&mh.rebuild(i);}this.result=new no(e,i,n),this.helpers={...ei,postcss:ei,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s);}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion;}catch(i){console&&console.error&&console.error(i);}return e}prepareVisitors(){this.listeners={};let e=(t,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,i]);};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!vh[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Sh[n])if(typeof t[n]=="object")for(let i in t[n])i==="*"?e(t,n,t[n][i]):e(t,n+"-"+i.toLowerCase(),t[n][i]);else typeof t[n]=="function"&&e(t,n,t[n]);}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],n=this.runOnRoot(t);if(lt(n))try{await n;}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ge];){e[ge]=true;let t=[io(e)];for(;t.length>0;){let n=this.visitTick(t);if(lt(n))try{await n;}catch(i){let s=t[t.length-1].node;throw this.handleError(i,s)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(s=>n(s,this.helpers));await Promise.all(i);}else await n(e,this.helpers);}catch(i){throw this.handleError(i)}}}return this.processed=true,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return lt(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=true,this.sync();let e=this.result.opts,t=ph;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new hh(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=true,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(lt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ge];)e[ge]=true,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e);}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,i]of e){this.result.lastPlugin=n;let s;try{s=i(t,this.helpers);}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return true;if(lt(s))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(n.toProxy(),this.helpers)}catch(a){throw this.handleError(a,n)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!l[ge]){l[ge]=true,e.push(io(l));return}t.iterator=0,delete n.indexes[o];}let s=t.events;for(;t.eventIndex<s.length;){let o=s[t.eventIndex];if(t.eventIndex+=1,o===Je){n.nodes&&n.nodes.length&&(n[ge]=true,t.iterator=n.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop();}walkSync(e){e[ge]=true;let t=Fa(e);for(let n of t)if(n===Je)e.nodes&&e.each(i=>{i[ge]||this.walkSync(i);});else {let i=this.listeners[n];if(i&&this.visitSync(i,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"}};Ke.registerPostcss=r=>{ei=r;};var Ba=Ke;Ke.default=Ke;bh.registerLazyResult(Ke);gh.registerLazyResult(Ke);var Ch=ba,Eh=Ur;var Ih=Di,xh=_i,ti=class{constructor(e,t,n){t=t.toString(),this.stringified=false,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i,s=Eh;this.result=new xh(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new Ch(s,i,this._opts,t);if(l.isMap()){let[a,c]=l.generate();a&&(this.result.css=a),c&&(this.result.map=c);}else l.clearAnnotation(),this.result.css=l.css;}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return []}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return []}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Ih;try{e=t(this._css,this._opts);}catch(n){this.error=n;}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return "NoWorkResult"}},Rh=ti;ti.default=ti;var Mh=Rh,Th=Ba,Ah=ki,kh=Rt,vt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e);}normalize(e){let t=[];for(let n of e)if(n.postcss===true?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return t}process(e,t={}){return !this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Mh(this,e,t):new Th(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}},_h=vt;vt.default=vt;kh.registerProcessor(vt);Ah.registerProcessor(vt);var Nh=Hr,Oh=ha,Dh=Vr,Lh=Ni,Ph=zr,Fh=Rt,$h=Oi;function St(r,e){if(Array.isArray(r))return r.map(i=>St(i));let{inputs:t,...n}=r;if(t){e=[];for(let i of t){let s={...i,__proto__:Ph.prototype};s.map&&(s.map={...s.map,__proto__:Oh.prototype}),e.push(s);}}if(n.nodes&&(n.nodes=r.nodes.map(i=>St(i,e))),n.source){let{inputId:i,...s}=n.source;n.source=s,i!=null&&(n.source.input=e[i]);}if(n.type==="root")return new Fh(n);if(n.type==="decl")return new Nh(n);if(n.type==="rule")return new $h(n);if(n.type==="comment")return new Dh(n);if(n.type==="atrule")return new Lh(n);throw new Error("Unknown node type: "+r.type)}var Bh=St;St.default=St;var Uh=Mi,Ua=Hr,Wh=Ba,Hh=Oe,Li=_h,zh=Ur,Vh=Bh,Wa=ki,Gh=ka,Ha=Vr,za=Ni,jh=_i,Yh=zr,Xh=Di,Zh=La,Va=Oi,Ga=Rt,Jh=Wr;function N(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new Li(r)}N.plugin=function(e,t){let n=false;function i(...o){console&&console.warn&&!n&&(n=true,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
49
|
+
`),this.css+=t+"/*# sourceMappingURL="+e+" */";}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||mr(e.file),i;this.mapOpts.sourcesContent===false?(i=new ga(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(n)));}}clearAnnotation(){if(this.mapOpts.annotation!==false)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t);}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""));}generate(){if(this.clearAnnotation(),jd&&Gd&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t;}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=pr.fromSourceMap(e,{ignoreInvalidMapping:true});}else this.map=new pr({file:this.outputFile(),ignoreInvalidMapping:true}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new pr({file:this.outputFile(),ignoreInvalidMapping:true});let e=1,t=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,o;this.stringify(this.root,(l,a,c)=>{if(this.css+=l,a&&c!=="end"&&(i.generated.line=e,i.generated.column=t-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,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),s=l.match(/\n/g),s?(e+=s.length,o=l.lastIndexOf(`
|
|
50
|
+
`),t=l.length-o):t+=l.length,a&&c!=="start"){let u=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==u.last||u.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=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)));}});}isAnnotation(){return this.isInline()?true:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):true}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==true?false:this.previous().length?this.previous().some(t=>t.inline):true}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):true}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?mr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=mr(ba(n,this.mapOpts.annotation)));let i=ya(n,e);return this.memoizedPaths.set(e,i),i}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 Vd(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 n=t.source.input.from;if(n&&!e[n]){e[n]=true;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,t.source.input.css);}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css);}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Qs){let n=Qs(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;wa==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}},va=Yd,Xd=Wr,Kn=class extends Xd{constructor(e){super(e),this.type="comment";}},Vr=Kn;Kn.default=Kn;var{isClean:Sa,my:Ca}=Mt,Ea=Hr,Ia=Vr,Jd=Wr,xa,Ai,ki,Ra;function Ma(r){return r.map(e=>(e.nodes&&(e.nodes=Ma(e.nodes)),delete e.source,e))}function Ta(r){if(r[Sa]=false,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)Ta(e);}var we=class Aa extends Jd{append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let i of n)this.proxyOf.nodes.push(i);}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e);}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],i=e(this.proxyOf.nodes[n],n),i!==false);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return {get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...n)=>e[t](...n.map(i=>typeof i=="function"?(s,o)=>i(s.toProxy(),o):i)):t==="every"||t==="some"?n=>e[t]((i,...s)=>n(i.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),true}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],n<s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),i=n===0?"prepend":false,s=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let l of s)this.proxyOf.nodes.splice(n,0,l);let o;for(let l in this.indexes)o=this.indexes[l],n<=o&&(this.indexes[l]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Ma(xa(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore");}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore");}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Ea(e)];}else if(e.selector)e=[new Ai(e)];else if(e.name)e=[new ki(e)];else if(e.text)e=[new Ia(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Ca]||Aa.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Sa]&&Ta(i),typeof i.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let n=this.normalize(t,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.length;}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,n));}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let i;try{i=e(t,n);}catch(s){throw t.addToError(s)}return i!==false&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="atrule")return t(n,i)}))}walkComments(e){return this.walk((t,n)=>{if(t.type==="comment")return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="decl")return t(n,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="rule")return t(n,i)}))}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]}};we.registerParse=r=>{xa=r;};we.registerRule=r=>{Ai=r;};we.registerAtRule=r=>{ki=r;};we.registerRoot=r=>{Ra=r;};var De=we;we.default=we;we.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,ki.prototype):r.type==="rule"?Object.setPrototypeOf(r,Ai.prototype):r.type==="decl"?Object.setPrototypeOf(r,Ea.prototype):r.type==="comment"?Object.setPrototypeOf(r,Ia.prototype):r.type==="root"&&Object.setPrototypeOf(r,Ra.prototype),r[Ca]=true,r.nodes&&r.nodes.forEach(e=>{we.rebuild(e);});};var Zd=De,ka,_a,vt=class extends Zd{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[]);}toResult(e={}){return new ka(new _a,this,e).stringify()}};vt.registerLazyResult=r=>{ka=r;};vt.registerProcessor=r=>{_a=r;};var _i=vt;vt.default=vt;var qn=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column;}for(let n in t)this[n]=t[n];}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}},Na=qn;qn.default=qn;var Kd=Na,Qn=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,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 n=new Kd(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}},Ni=Qn;Qn.default=Qn;var Sn=39,eo=34,rr=92,to=47,nr=10,ct=32,ir=12,sr=9,or=13,qd=91,Qd=93,eh=40,th=41,rh=123,nh=125,ih=59,sh=42,oh=58,ah=64,ar=/[\t\n\f\r "#'()/;[\\\]{}]/g,lr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,lh=/.[\r\n"'(/\\]/,ro=/[\da-f]/i,ch=function(e,t={}){let n=e.css.valueOf(),i=t.ignoreErrors,s,o,l,a,c,u,f,d,g,m,p=n.length,h=0,y=[],w=[];function b(){return h}function v(A){throw e.error("Unclosed "+A,h)}function C(){return w.length===0&&h>=p}function I(A){if(w.length)return w.pop();if(h>=p)return;let L=A?A.ignoreUnclosed:false;switch(s=n.charCodeAt(h),s){case nr:case ct:case sr:case or:case ir:{o=h;do o+=1,s=n.charCodeAt(o);while(s===ct||s===nr||s===sr||s===or||s===ir);m=["space",n.slice(h,o)],h=o-1;break}case qd:case Qd:case rh:case nh:case oh:case ih:case th:{let $=String.fromCharCode(s);m=[$,$,h];break}case eh:{if(d=y.length?y.pop()[1]:"",g=n.charCodeAt(h+1),d==="url"&&g!==Sn&&g!==eo&&g!==ct&&g!==nr&&g!==sr&&g!==ir&&g!==or){o=h;do{if(u=false,o=n.indexOf(")",o+1),o===-1)if(i||L){o=h;break}else v("bracket");for(f=o;n.charCodeAt(f-1)===rr;)f-=1,u=!u;}while(u);m=["brackets",n.slice(h,o+1),h,o],h=o;}else o=n.indexOf(")",h+1),a=n.slice(h,o+1),o===-1||lh.test(a)?m=["(","(",h]:(m=["brackets",a,h,o],h=o);break}case Sn:case eo:{l=s===Sn?"'":'"',o=h;do{if(u=false,o=n.indexOf(l,o+1),o===-1)if(i||L){o=h+1;break}else v("string");for(f=o;n.charCodeAt(f-1)===rr;)f-=1,u=!u;}while(u);m=["string",n.slice(h,o+1),h,o],h=o;break}case ah:{ar.lastIndex=h+1,ar.test(n),ar.lastIndex===0?o=n.length-1:o=ar.lastIndex-2,m=["at-word",n.slice(h,o+1),h,o],h=o;break}case rr:{for(o=h,c=true;n.charCodeAt(o+1)===rr;)o+=1,c=!c;if(s=n.charCodeAt(o+1),c&&s!==to&&s!==ct&&s!==nr&&s!==sr&&s!==or&&s!==ir&&(o+=1,ro.test(n.charAt(o)))){for(;ro.test(n.charAt(o+1));)o+=1;n.charCodeAt(o+1)===ct&&(o+=1);}m=["word",n.slice(h,o+1),h,o],h=o;break}default:{s===to&&n.charCodeAt(h+1)===sh?(o=n.indexOf("*/",h+2)+1,o===0&&(i||L?o=n.length:v("comment")),m=["comment",n.slice(h,o+1),h,o],h=o):(lr.lastIndex=h+1,lr.test(n),lr.lastIndex===0?o=n.length-1:o=lr.lastIndex-2,m=["word",n.slice(h,o+1),h,o],y.push(m),h=o);break}}return h++,m}function D(A){w.push(A);}return {back:D,endOfFile:C,nextToken:I,position:b}},Oa=De,Tr=class extends Oa{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)}},Oi=Tr;Tr.default=Tr;Oa.registerAtRule(Tr);var Da=De,La,Pa,Ke=class extends Da{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[]);}normalize(e,t,n){let i=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of i)s.raws.before=t.raws.before;}return i}removeChild(e,t){let n=this.index(e);return !t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new La(new Pa,this,e).stringify()}};Ke.registerLazyResult=r=>{La=r;};Ke.registerProcessor=r=>{Pa=r;};var Tt=Ke;Ke.default=Ke;Da.registerRoot(Ke);var St={comma(r){return St.split(r,[","],true)},space(r){let e=[" ",`
|
|
51
|
+
`," "];return St.split(r,e)},split(r,e,t){let n=[],i="",s=false,o=0,l=false,a="",c=false;for(let u of r)c?c=false:u==="\\"?c=true:l?u===a&&(l=false):u==='"'||u==="'"?(l=true,a=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(s=true),s?(i!==""&&n.push(i.trim()),i="",s=false):i+=u;return (t||i!=="")&&n.push(i.trim()),n}},Fa=St;St.default=St;var $a=De,uh=Fa,Ar=class extends $a{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[]);}get selectors(){return uh.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n);}},Di=Ar;Ar.default=Ar;$a.registerRule(Ar);var fh=Hr,dh=ch,hh=Vr,ph=Oi,mh=Tt,no=Di,io={empty:true,space:true};function gh(r){for(let e=r.length-1;e>=0;e--){let t=r[e],n=t[3]||t[2];if(n)return n}}var yh=class{constructor(e){this.input=e,this.root=new mh,this.current=this.root,this.spaces="",this.semicolon=false,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}};}atrule(e){let t=new ph;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,i,s,o=false,l=false,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=true;break}else if(n==="{"){l=true;break}else if(n==="}"){if(a.length>0){for(s=a.length-1,i=a[s];i&&i[0]==="space";)i=a[--s];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++);}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t);}checkMissedSemicolon(e){let t=this.colon(e);if(t===false)return;let n=0,i;for(let s=t-1;s>=0&&(i=e[s],!(i[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,n,i,s;for(let[o,l]of e.entries()){if(n=l,i=n[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!s)this.doubleColon(n);else {if(s[0]==="word"&&s[1]==="progid")continue;return o}s=n;}return false}comment(e){let t=new hh;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else {let i=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3];}}createTokenizer(){this.tokenizer=dh(this.input);}decl(e,t){let n=new fh;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=true,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||gh(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1];}n.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){n.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(s=e[c],s[1].toLowerCase()==="!important"){n.important=true;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(n.raws.important=u);break}else if(s[1].toLowerCase()==="important"){let u=e.slice(0),f="";for(let d=c;d>0;d--){let g=u[d][0];if(f.trim().indexOf("!")===0&&g!=="space")break;f=u.pop()[1]+f;}f.trim().indexOf("!")===0&&(n.important=true,n.raws.important=f,e=u);}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=o.map(c=>c[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 no;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=false,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e);}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position());}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="");}}getPosition(e){let t=this.input.fromOffset(e);return {column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=false);}other(e){let t=false,n=null,i=false,s=null,o=[],l=e[1].startsWith("--"),a=[],c=e;for(;c;){if(n=c[0],a.push(c),n==="("||n==="[")s||(s=c),o.push(n==="("?")":"]");else if(l&&i&&n==="{")s||(s=c),o.push("}");else if(o.length===0)if(n===";")if(i){this.decl(a,l);return}else break;else if(n==="{"){this.rule(a);return}else if(n==="}"){this.tokenizer.back(a.pop()),t=true;break}else n===":"&&(i=true);else n===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));c=this.tokenizer.nextToken();}if(this.tokenizer.endOfFile()&&(t=true),o.length>0&&this.unclosedBracket(s),t&&i){if(!l)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l);}else this.unknownWord(a);}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case "space":this.spaces+=e[1];break;case ";":this.freeSemicolon(e);break;case "}":this.end(e);break;case "comment":this.comment(e);break;case "at-word":this.atrule(e);break;case "{":this.emptyRule(e);break;default:this.other(e);break}this.endFile();}precheckMissedSemicolon(){}raw(e,t,n,i){let s,o,l=n.length,a="",c=true,u,f;for(let d=0;d<l;d+=1)s=n[d],o=s[0],o==="space"&&d===l-1&&!i?c=false:o==="comment"?(f=n[d-1]?n[d-1][0]:"empty",u=n[d+1]?n[d+1][0]:"empty",!io[f]&&!io[u]?a.slice(-1)===","?c=false:a+=s[1]:c=false):a+=s[1];if(!c){let d=n.reduce((g,m)=>g+m[1],"");e.raws[t]={raw:d,value:a};}e[t]=a;}rule(e){e.pop();let t=new no;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t;}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let i=t;i<e.length;i++)n+=e[i][1];return e.splice(t,e.length-t),n}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})}},bh=yh,wh=De,vh=bh,Sh=zr;function kr(r,e){let t=new Sh(r,e),n=new vh(t);try{n.parse();}catch(i){throw i}return n.root}var Li=kr;kr.default=kr;wh.registerParse(kr);var{isClean:ge,my:Ch}=Mt,Eh=va,Ih=Ur,xh=De,Rh=_i;var so=Ni,Mh=Li,Th=Tt,Ah={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},kh={AtRule:true,AtRuleExit:true,Comment:true,CommentExit:true,Declaration:true,DeclarationExit:true,Document:true,DocumentExit:true,Once:true,OnceExit:true,postcssPlugin:true,prepare:true,Root:true,RootExit:true,Rule:true,RuleExit:true},_h={Once:true,postcssPlugin:true,prepare:true},qe=0;function ut(r){return typeof r=="object"&&typeof r.then=="function"}function Ba(r){let e=false,t=Ah[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,qe,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,qe,t+"Exit"]:[t,t+"Exit"]}function oo(r){let e;return r.type==="document"?e=["Document",qe,"DocumentExit"]:r.type==="root"?e=["Root",qe,"RootExit"]:e=Ba(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function ei(r){return r[ge]=false,r.nodes&&r.nodes.forEach(e=>ei(e)),r}var ti={},Qe=class Ua{constructor(e,t,n){this.stringified=false,this.processed=false;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=ei(t);else if(t instanceof Ua||t instanceof so)i=ei(t.root),t.map&&(typeof n.map=="undefined"&&(n.map={}),n.map.inline||(n.map.inline=false),n.map.prev=t.map);else {let s=Mh;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(t,n);}catch(o){this.processed=true,this.error=o;}i&&!i[Ch]&&xh.rebuild(i);}this.result=new so(e,i,n),this.helpers={...ti,postcss:ti,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s);}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion;}catch(i){console&&console.error&&console.error(i);}return e}prepareVisitors(){this.listeners={};let e=(t,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,i]);};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!kh[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!_h[n])if(typeof t[n]=="object")for(let i in t[n])i==="*"?e(t,n,t[n][i]):e(t,n+"-"+i.toLowerCase(),t[n][i]);else typeof t[n]=="function"&&e(t,n,t[n]);}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],n=this.runOnRoot(t);if(ut(n))try{await n;}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ge];){e[ge]=true;let t=[oo(e)];for(;t.length>0;){let n=this.visitTick(t);if(ut(n))try{await n;}catch(i){let s=t[t.length-1].node;throw this.handleError(i,s)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(s=>n(s,this.helpers));await Promise.all(i);}else await n(e,this.helpers);}catch(i){throw this.handleError(i)}}}return this.processed=true,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return ut(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=true,this.sync();let e=this.result.opts,t=Ih;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new Eh(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=true,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(ut(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ge];)e[ge]=true,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e);}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,i]of e){this.result.lastPlugin=n;let s;try{s=i(t,this.helpers);}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return true;if(ut(s))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(n.toProxy(),this.helpers)}catch(a){throw this.handleError(a,n)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!l[ge]){l[ge]=true,e.push(oo(l));return}t.iterator=0,delete n.indexes[o];}let s=t.events;for(;t.eventIndex<s.length;){let o=s[t.eventIndex];if(t.eventIndex+=1,o===qe){n.nodes&&n.nodes.length&&(n[ge]=true,t.iterator=n.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop();}walkSync(e){e[ge]=true;let t=Ba(e);for(let n of t)if(n===qe)e.nodes&&e.each(i=>{i[ge]||this.walkSync(i);});else {let i=this.listeners[n];if(i&&this.visitSync(i,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"}};Qe.registerPostcss=r=>{ti=r;};var Wa=Qe;Qe.default=Qe;Th.registerLazyResult(Qe);Rh.registerLazyResult(Qe);var Nh=va,Oh=Ur;var Dh=Li,Lh=Ni,ri=class{constructor(e,t,n){t=t.toString(),this.stringified=false,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i,s=Oh;this.result=new Lh(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new Nh(s,i,this._opts,t);if(l.isMap()){let[a,c]=l.generate();a&&(this.result.css=a),c&&(this.result.map=c);}else l.clearAnnotation(),this.result.css=l.css;}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return []}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return []}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Dh;try{e=t(this._css,this._opts);}catch(n){this.error=n;}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return "NoWorkResult"}},Ph=ri;ri.default=ri;var Fh=Ph,$h=Wa,Bh=_i,Uh=Tt,Ct=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e);}normalize(e){let t=[];for(let n of e)if(n.postcss===true?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return t}process(e,t={}){return !this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Fh(this,e,t):new $h(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}},Wh=Ct;Ct.default=Ct;Uh.registerProcessor(Ct);Bh.registerProcessor(Ct);var Hh=Hr,zh=ma,Vh=Vr,Gh=Oi,jh=zr,Yh=Tt,Xh=Di;function Et(r,e){if(Array.isArray(r))return r.map(i=>Et(i));let{inputs:t,...n}=r;if(t){e=[];for(let i of t){let s={...i,__proto__:jh.prototype};s.map&&(s.map={...s.map,__proto__:zh.prototype}),e.push(s);}}if(n.nodes&&(n.nodes=r.nodes.map(i=>Et(i,e))),n.source){let{inputId:i,...s}=n.source;n.source=s,i!=null&&(n.source.input=e[i]);}if(n.type==="root")return new Yh(n);if(n.type==="decl")return new Hh(n);if(n.type==="rule")return new Xh(n);if(n.type==="comment")return new Vh(n);if(n.type==="atrule")return new Gh(n);throw new Error("Unknown node type: "+r.type)}var Jh=Et;Et.default=Et;var Zh=Ti,Ha=Hr,Kh=Wa,qh=De,Pi=Wh,Qh=Ur,ep=Jh,za=_i,tp=Na,Va=Vr,Ga=Oi,rp=Ni,np=zr,ip=Li,sp=Fa,ja=Di,Ya=Tt,op=Wr;function N(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new Pi(r)}N.plugin=function(e,t){let n=false;function i(...o){console&&console.warn&&!n&&(n=true,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
51
52
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
52
|
-
https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new
|
|
53
|
+
https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new Pi().version,l}let s;return Object.defineProperty(i,"postcss",{get(){return s||(s=i()),s}}),i.process=function(o,l,a){return N([i(a)]).process(o,l)},i};N.stringify=Qh;N.parse=ip;N.fromJSON=ep;N.list=sp;N.comment=r=>new Va(r);N.atRule=r=>new Ga(r);N.decl=r=>new Ha(r);N.rule=r=>new ja(r);N.root=r=>new Ya(r);N.document=r=>new za(r);N.CssSyntaxError=Zh;N.Declaration=Ha;N.Container=qh;N.Processor=Pi;N.Document=za;N.Comment=Va;N.Warning=tp;N.AtRule=Ga;N.Result=rp;N.Input=np;N.Rule=ja;N.Root=Ya;N.Node=op;Kh.registerPostcss(N);var ap=N;N.default=N;var H=wd(ap);H.stringify;H.fromJSON;H.plugin;H.parse;H.list;H.document;H.comment;H.atRule;H.rule;H.decl;H.root;H.CssSyntaxError;H.Declaration;H.Container;H.Processor;H.Document;H.Comment;H.Warning;H.AtRule;H.Result;H.Input;H.Rule;H.Root;H.Node;var ni=class r{constructor(...e){oe(this,"parentElement",null),oe(this,"parentNode",null),oe(this,"ownerDocument"),oe(this,"firstChild",null),oe(this,"lastChild",null),oe(this,"previousSibling",null),oe(this,"nextSibling",null),oe(this,"ELEMENT_NODE",1),oe(this,"TEXT_NODE",3),oe(this,"nodeType"),oe(this,"nodeName"),oe(this,"RRNodeType");}get childNodes(){let e=[],t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof r){if(e.ownerDocument!==this.ownerDocument)return false;if(e===this)return true}else return false;for(;e.parentNode;){if(e.parentNode===this)return true;e=e.parentNode;}return false}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return "RRNode"}};var ao={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},lo={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},cr={},lp=()=>!!globalThis.Zone;function Fi(r){if(cr[r])return cr[r];let e=globalThis[r],t=e.prototype,n=r in ao?ao[r]:void 0,i=!!(n&&n.every(l=>{var a,c;return !!((c=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&c.toString().includes("[native code]"))})),s=r in lo?lo[r]:void 0,o=!!(s&&s.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(i&&o&&!lp())return cr[r]=e.prototype,e.prototype;try{let l=document.createElement("iframe");document.body.appendChild(l);let a=l.contentWindow;if(!a)return e.prototype;let c=a[r].prototype;return document.body.removeChild(l),c?cr[r]=c:t}catch(l){return t}}var Cn={};function Se(r,e,t){var n;let i=`${r}.${String(t)}`;if(Cn[i])return Cn[i].call(e);let s=Fi(r),o=(n=Object.getOwnPropertyDescriptor(s,t))==null?void 0:n.get;return o?(Cn[i]=o,o.call(e)):e[t]}var En={};function Xa(r,e,t){let n=`${r}.${String(t)}`;if(En[n])return En[n].bind(e);let s=Fi(r)[t];return typeof s!="function"?e[t]:(En[n]=s,s.bind(e))}function cp(r){return Se("Node",r,"ownerDocument")}function up(r){return Se("Node",r,"childNodes")}function fp(r){return Se("Node",r,"parentNode")}function dp(r){return Se("Node",r,"parentElement")}function hp(r){return Se("Node",r,"textContent")}function pp(r,e){return Xa("Node",r,"contains")(e)}function mp(r){return Xa("Node",r,"getRootNode")()}function gp(r){return !r||!("host"in r)?null:Se("ShadowRoot",r,"host")}function yp(r){return r.styleSheets}function bp(r){return !r||!("shadowRoot"in r)?null:Se("Element",r,"shadowRoot")}function wp(r,e){return Se("Element",r,"querySelector")(e)}function vp(r,e){return Se("Element",r,"querySelectorAll")(e)}function Ja(){return Fi("MutationObserver").constructor}function Le(r,e,t){try{if(!(e in r))return ()=>{};let n=r[e],i=t(n);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),r[e]=i,()=>{r[e]=n;}}catch(n){return ()=>{}}}var x={ownerDocument:cp,childNodes:up,parentNode:fp,parentElement:dp,textContent:hp,contains:pp,getRootNode:mp,host:gp,styleSheets:yp,shadowRoot:bp,querySelector:wp,querySelectorAll:vp,mutationObserver:Ja,patch:Le};function Q(r,e,t=document){let n={capture:true,passive:true};return t.addEventListener(r,e,n),()=>t.removeEventListener(r,e,n)}var ze=`Please stop import mirror directly. Instead of that,\r
|
|
53
54
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
54
|
-
or you can use record.mirror to access the mirror instance during recording.`,ao={map:{},getId(){return console.error(We),-1},getNode(){return console.error(We),null},removeNodeFromMap(){console.error(We);},has(){return console.error(We),false},reset(){console.error(We);}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(ao=new Proxy(ao,{get(r,e,t){return e==="map"&&console.error(We),Reflect.get(r,e,t)}}));function Ct(r,e,t={}){let n=null,i=0;return function(...s){let o=Date.now();!i&&t.leading===false&&(i=o);let l=e-(o-i),a=this;l<=0||l>e?(n&&(clearTimeout(n),n=null),i=o,r.apply(a,s)):!n&&t.trailing!==false&&(n=setTimeout(()=>{i=t.leading===false?0:Date.now(),n=null,r.apply(a,s);},l));}}function Gr(r,e,t,n,i=window){let s=i.Object.getOwnPropertyDescriptor(r,e);return i.Object.defineProperty(r,e,n?t:{set(o){setTimeout(()=>{t.set.call(this,o);},0),s&&s.set&&s.set.call(this,o);}}),()=>Gr(r,e,s||{},true)}var _r=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(_r=()=>new Date().getTime());function Xa(r){var e,t,n,i;let s=r.document;return {left:s.scrollingElement?s.scrollingElement.scrollLeft:r.pageXOffset!==void 0?r.pageXOffset:s.documentElement.scrollLeft||(s==null?void 0:s.body)&&((e=x.parentElement(s.body))==null?void 0:e.scrollLeft)||((t=s==null?void 0:s.body)==null?void 0:t.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:r.pageYOffset!==void 0?r.pageYOffset:(s==null?void 0:s.documentElement.scrollTop)||(s==null?void 0:s.body)&&((n=x.parentElement(s.body))==null?void 0:n.scrollTop)||((i=s==null?void 0:s.body)==null?void 0:i.scrollTop)||0}}function Za(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ja(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ka(r){return r?r.nodeType===r.ELEMENT_NODE?r:x.parentElement(r):null}function ee(r,e,t,n){if(!r)return false;let i=Ka(r);if(!i)return false;try{if(typeof e=="string"){if(i.classList.contains(e)||n&&i.closest("."+e)!==null)return !0}else if(Cr(i,e,n))return !0}catch(s){}return !!(t&&(i.matches(t)||n&&i.closest(t)!==null))}function fp(r,e){return e.getId(r)!==-1}function En(r,e,t){return r.tagName==="TITLE"&&t.headTitleMutations?true:e.getId(r)===ht}function qa(r,e){if(ut(r))return false;let t=e.getId(r);if(!e.has(t))return true;let n=x.parentNode(r);return n&&n.nodeType===r.DOCUMENT_NODE?false:n?qa(n,e):true}function ni(r){return !!r.changedTouches}function dp(r=window){"NodeList"in r&&!r.NodeList.prototype.forEach&&(r.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in r&&!r.DOMTokenList.prototype.forEach&&(r.DOMTokenList.prototype.forEach=Array.prototype.forEach);}function Qa(r,e){return !!(r.nodeName==="IFRAME"&&e.getMeta(r))}function el(r,e){return !!(r.nodeName==="LINK"&&r.nodeType===r.ELEMENT_NODE&&r.getAttribute&&r.getAttribute("rel")==="stylesheet"&&e.getMeta(r))}function ii(r){return r?r instanceof ri&&"shadowRoot"in r?!!r.shadowRoot:!!x.shadowRoot(r):false}var si=class{constructor(){v(this,"id",1),v(this,"styleIDMap",new WeakMap),v(this,"idStyleMap",new Map);}getId(e){var t;return (t=this.styleIDMap.get(e))!=null?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return t===void 0?n=this.id++:n=t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}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 tl(r){var e;let t=null;return "getRootNode"in r&&((e=x.getRootNode(r))==null?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&x.host(x.getRootNode(r))&&(t=x.host(x.getRootNode(r))),t}function hp(r){let e=r,t;for(;t=tl(e);)e=t;return e}function pp(r){let e=x.ownerDocument(r);if(!e)return false;let t=hp(r);return x.contains(e,t)}function rl(r){let e=x.ownerDocument(r);return e?x.contains(e,r)||pp(r):false}var T=(r=>(r[r.DomContentLoaded=0]="DomContentLoaded",r[r.Load=1]="Load",r[r.FullSnapshot=2]="FullSnapshot",r[r.IncrementalSnapshot=3]="IncrementalSnapshot",r[r.Meta=4]="Meta",r[r.Custom=5]="Custom",r[r.Plugin=6]="Plugin",r))(T||{}),R=(r=>(r[r.Mutation=0]="Mutation",r[r.MouseMove=1]="MouseMove",r[r.MouseInteraction=2]="MouseInteraction",r[r.Scroll=3]="Scroll",r[r.ViewportResize=4]="ViewportResize",r[r.Input=5]="Input",r[r.TouchMove=6]="TouchMove",r[r.MediaInteraction=7]="MediaInteraction",r[r.StyleSheetRule=8]="StyleSheetRule",r[r.CanvasMutation=9]="CanvasMutation",r[r.Font=10]="Font",r[r.Log=11]="Log",r[r.Drag=12]="Drag",r[r.StyleDeclaration=13]="StyleDeclaration",r[r.Selection=14]="Selection",r[r.AdoptedStyleSheet=15]="AdoptedStyleSheet",r[r.CustomElement=16]="CustomElement",r))(R||{}),te=(r=>(r[r.MouseUp=0]="MouseUp",r[r.MouseDown=1]="MouseDown",r[r.Click=2]="Click",r[r.ContextMenu=3]="ContextMenu",r[r.DblClick=4]="DblClick",r[r.Focus=5]="Focus",r[r.Blur=6]="Blur",r[r.TouchStart=7]="TouchStart",r[r.TouchMove_Departed=8]="TouchMove_Departed",r[r.TouchEnd=9]="TouchEnd",r[r.TouchCancel=10]="TouchCancel",r))(te||{}),ye=(r=>(r[r.Mouse=0]="Mouse",r[r.Pen=1]="Pen",r[r.Touch=2]="Touch",r))(ye||{}),qe=(r=>(r[r["2D"]=0]="2D",r[r.WebGL=1]="WebGL",r[r.WebGL2=2]="WebGL2",r))(qe||{}),He=(r=>(r[r.Play=0]="Play",r[r.Pause=1]="Pause",r[r.Seeked=2]="Seeked",r[r.VolumeChange=3]="VolumeChange",r[r.RateChange=4]="RateChange",r))(He||{});var nl=(r=>(r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r))(nl||{});function lo(r){return "__ln"in r}var oi=class{constructor(){v(this,"length",0),v(this,"head",null),v(this,"tail",null);}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=(t==null?void 0:t.next)||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&lo(e.previousSibling)){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t);}else if(e.nextSibling&&lo(e.nextSibling)&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t);}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(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--);}},co=(r,e)=>`${r}@${e}`,ai=class{constructor(){v(this,"frozen",false),v(this,"locked",false),v(this,"texts",[]),v(this,"attributes",[]),v(this,"attributeMap",new WeakMap),v(this,"removes",[]),v(this,"mapRemoves",[]),v(this,"movedMap",{}),v(this,"addedSet",new Set),v(this,"movedSet",new Set),v(this,"droppedSet",new Set),v(this,"removesSubTreeCache",new Set),v(this,"mutationCb"),v(this,"blockClass"),v(this,"blockSelector"),v(this,"maskTextClass"),v(this,"maskTextSelector"),v(this,"inlineStylesheet"),v(this,"maskInputOptions"),v(this,"maskTextFn"),v(this,"maskInputFn"),v(this,"keepIframeSrcFn"),v(this,"recordCanvas"),v(this,"inlineImages"),v(this,"slimDOMOptions"),v(this,"dataURLOptions"),v(this,"doc"),v(this,"mirror"),v(this,"iframeManager"),v(this,"stylesheetManager"),v(this,"shadowDomManager"),v(this,"canvasManager"),v(this,"processedNodeManager"),v(this,"unattachedDoc"),v(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit();}),v(this,"emit",()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new oi,i=a=>{let c=a,u=ht;for(;u===ht;)c=c&&c.nextSibling,u=c&&this.mirror.getId(c);return u},s=a=>{let c=x.parentNode(a);if(!c||!rl(a))return;let u=false;if(a.nodeType===Node.TEXT_NODE){let m=c.tagName;if(m==="TEXTAREA")return;m==="STYLE"&&this.addedSet.has(c)&&(u=true);}let d=ut(c)?this.mirror.getId(tl(a)):this.mirror.getId(c),f=i(a);if(d===-1||f===-1)return n.addNode(a);let g=Ve(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:true,newlyAddedElement:true,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:m=>{Qa(m,this.mirror)&&this.iframeManager.addIframe(m),el(m,this.mirror)&&this.stylesheetManager.trackLinkElement(m),ii(a)&&this.shadowDomManager.addShadowRoot(x.shadowRoot(a),this.doc);},onIframeLoad:(m,p)=>{this.iframeManager.attachIframe(m,p),this.shadowDomManager.observeAttachShadow(m);},onStylesheetLoad:(m,p)=>{this.stylesheetManager.attachLinkElement(m,p);},cssCaptured:u});g&&(e.push({parentId:d,nextId:f,node:g}),t.add(g.id));};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let a of this.movedSet)uo(this.removesSubTreeCache,a,this.mirror)&&!this.movedSet.has(x.parentNode(a))||s(a);for(let a of this.addedSet)!fo(this.droppedSet,a)&&!uo(this.removesSubTreeCache,a,this.mirror)||fo(this.movedSet,a)?s(a):this.droppedSet.add(a);let o=null;for(;n.length;){let a=null;if(o){let c=this.mirror.getId(x.parentNode(o.value)),u=i(o.value);c!==-1&&u!==-1&&(a=o);}if(!a){let c=n.tail;for(;c;){let u=c;if(c=c.previous,u){let d=this.mirror.getId(x.parentNode(u.value));if(i(u.value)===-1)continue;if(d!==-1){a=u;break}else {let g=u.value,m=x.parentNode(g);if(m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let p=x.host(m);if(this.mirror.getId(p)!==-1){a=u;break}}}}}}if(!a){for(;n.head;)n.removeNode(n.head.value);break}o=a.previous,n.removeNode(a.value),s(a.value);}let l={texts:this.texts.map(a=>{let c=a.node,u=x.parentNode(c);return u&&u.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(u),{id:this.mirror.getId(c),value:a.value}}).filter(a=>!t.has(a.id)).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>{let{attributes:c}=a;if(typeof c.style=="string"){let u=JSON.stringify(a.styleDiff),d=JSON.stringify(a._unchangedStyles);u.length<c.style.length&&(u+d).split("var(").length===c.style.split("var(").length&&(c.style=a.styleDiff);}return {id:this.mirror.getId(a.node),attributes:c}}).filter(a=>!t.has(a.id)).filter(a=>this.mirror.has(a.id)),removes:this.removes,adds:e};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.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(l));}),v(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 n=Array.from(x.childNodes(e),i=>x.textContent(i)||"").join("");t.attributes.value=wr({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:vr(e),value:n,maskInputFn:this.maskInputFn});}),v(this,"processMutation",e=>{if(!En(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case "characterData":{let t=x.textContent(e.target);!ee(e.target,this.blockClass,this.blockSelector,false)&&t!==e.oldValue&&this.texts.push({value:Ro(e.target,this.maskTextClass,this.maskTextSelector,true)&&t?this.maskTextFn?this.maskTextFn(t,Ka(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case "attributes":{let t=e.target,n=e.attributeName,i=e.target.getAttribute(n);if(n==="value"){let o=vr(t);i=wr({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:o,value:i,maskInputFn:this.maskInputFn});}if(ee(e.target,this.blockClass,this.blockSelector,false)||i===e.oldValue)return;let s=this.attributeMap.get(e.target);if(t.tagName==="IFRAME"&&n==="src"&&!this.keepIframeSrcFn(i))if(!t.contentDocument)n="rr_src";else return;if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),n==="type"&&t.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&t.setAttribute("data-rr-is-password","true"),!xo(t.tagName,n))if(s.attributes[n]=Io(this.doc,_e(t.tagName),_e(n),i),n==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument();}catch(l){this.unattachedDoc=this.doc;}let o=this.unattachedDoc.createElement("span");e.oldValue&&o.setAttribute("style",e.oldValue);for(let l of Array.from(t.style)){let a=t.style.getPropertyValue(l),c=t.style.getPropertyPriority(l);a!==o.style.getPropertyValue(l)||c!==o.style.getPropertyPriority(l)?c===""?s.styleDiff[l]=a:s.styleDiff[l]=[a,c]:s._unchangedStyles[l]=[a,c];}for(let l of Array.from(o.style))t.style.getPropertyValue(l)===""&&(s.styleDiff[l]=false);}else n==="open"&&t.tagName==="DIALOG"&&(t.matches("dialog:modal")?s.attributes.rr_open_mode="modal":s.attributes.rr_open_mode="non-modal");break}case "childList":{if(ee(e.target,this.blockClass,this.blockSelector,true))return;if(e.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),i=ut(e.target)?this.mirror.getId(x.host(e.target)):this.mirror.getId(e.target);ee(e.target,this.blockClass,this.blockSelector,false)||En(t,this.mirror,this.slimDOMOptions)||!fp(t,this.mirror)||(this.addedSet.has(t)?(li(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&n===-1||qa(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[co(n,i)]?li(this.movedSet,t):(this.removes.push({parentId:i,id:n,isShadow:ut(e.target)&&ft(e.target)?true:void 0}),mp(t,this.removesSubTreeCache))),this.mapRemoves.push(t));});break}}}),v(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(En(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&n!==-1&&(this.movedMap[co(this.mirror.getId(e),n)]=true);}else this.addedSet.add(e),this.droppedSet.delete(e);ee(e,this.blockClass,this.blockSelector,false)||(x.childNodes(e).forEach(n=>this.genAdds(n)),ii(e)&&x.childNodes(x.shadowRoot(e)).forEach(n=>{this.processedNodeManager.add(n,this),this.genAdds(n,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=true,this.canvasManager.freeze();}unfreeze(){this.frozen=false,this.canvasManager.unfreeze(),this.emit();}isFrozen(){return this.frozen}lock(){this.locked=true,this.canvasManager.lock();}unlock(){this.locked=false,this.canvasManager.unlock(),this.emit();}reset(){this.shadowDomManager.reset(),this.canvasManager.reset();}};function li(r,e){r.delete(e),x.childNodes(e).forEach(t=>li(r,t));}function mp(r,e){let t=[r];for(;t.length;){let n=t.pop();e.has(n)||(e.add(n),x.childNodes(n).forEach(i=>t.push(i)));}}function uo(r,e,t){return r.size===0?false:gp(r,e)}function gp(r,e,t){let n=x.parentNode(e);return n?r.has(n):false}function fo(r,e){return r.size===0?false:il(r,e)}function il(r,e){let t=x.parentNode(e);return t?r.has(t)?true:il(r,t):false}var dt;function yp(r){dt=r;}function bp(){dt=void 0;}var M=r=>dt?(...t)=>{try{return r(...t)}catch(n){if(dt&&dt(n)===true)return;throw n}}:r,ke=[];function Mt(r){try{if("composedPath"in r){let e=r.composedPath();if(e.length)return e[0]}else if("path"in r&&r.path.length)return r.path[0]}catch(e){}return r&&r.target}function sl(r,e){let t=new ai;ke.push(t),t.init(r);let n=new(Ya())(M(t.processMutations.bind(t)));return n.observe(e,{attributes:true,attributeOldValue:true,characterData:true,characterDataOldValue:true,childList:true,subtree:true}),n}function wp({mousemoveCb:r,sampling:e,doc:t,mirror:n}){if(e.mousemove===false)return ()=>{};let i=typeof e.mousemove=="number"?e.mousemove:50,s=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500,o=[],l,a=Ct(M(d=>{let f=Date.now()-l;r(o.map(g=>(g.timeOffset-=f,g)),d),o=[],l=null;}),s),c=M(Ct(M(d=>{let f=Mt(d),{clientX:g,clientY:m}=ni(d)?d.changedTouches[0]:d;l||(l=_r()),o.push({x:g,y:m,id:n.getId(f),timeOffset:_r()-l}),a(typeof DragEvent!="undefined"&&d instanceof DragEvent?R.Drag:d instanceof MouseEvent?R.MouseMove:R.TouchMove);}),i,{trailing:!1})),u=[Q("mousemove",c,t),Q("touchmove",c,t),Q("drag",c,t)];return M(()=>{u.forEach(d=>d());})}function vp({mouseInteractionCb:r,doc:e,mirror:t,blockClass:n,blockSelector:i,sampling:s}){if(s.mouseInteraction===false)return ()=>{};let o=s.mouseInteraction===true||s.mouseInteraction===void 0?{}:s.mouseInteraction,l=[],a=null,c=u=>d=>{let f=Mt(d);if(ee(f,n,i,true))return;let g=null,m=u;if("pointerType"in d){switch(d.pointerType){case "mouse":g=ye.Mouse;break;case "touch":g=ye.Touch;break;case "pen":g=ye.Pen;break}g===ye.Touch?te[u]===te.MouseDown?m="TouchStart":te[u]===te.MouseUp&&(m="TouchEnd"):ye.Pen;}else ni(d)&&(g=ye.Touch);g!==null?(a=g,(m.startsWith("Touch")&&g===ye.Touch||m.startsWith("Mouse")&&g===ye.Mouse)&&(g=null)):te[u]===te.Click&&(g=a,a=null);let p=ni(d)?d.changedTouches[0]:d;if(!p)return;let h=t.getId(f),{clientX:y,clientY:w}=p;M(r)({type:te[m],id:h,x:y,y:w,...g!==null&&{pointerType:g}});};return Object.keys(te).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&o[u]!==false).forEach(u=>{let d=_e(u),f=c(u);if(window.PointerEvent)switch(te[u]){case te.MouseDown:case te.MouseUp:d=d.replace("mouse","pointer");break;case te.TouchStart:case te.TouchEnd:return}l.push(Q(d,f,e));}),M(()=>{l.forEach(u=>u());})}function ol({scrollCb:r,doc:e,mirror:t,blockClass:n,blockSelector:i,sampling:s}){let o=M(Ct(M(l=>{let a=Mt(l);if(!a||ee(a,n,i,!0))return;let c=t.getId(a);if(a===e&&e.defaultView){let u=Xa(e.defaultView);r({id:c,x:u.left,y:u.top});}else r({id:c,x:a.scrollLeft,y:a.scrollTop});}),s.scroll||100));return Q("scroll",o,e)}function Sp({viewportResizeCb:r},{win:e}){let t=-1,n=-1,i=M(Ct(M(()=>{let s=Za(),o=Ja();(t!==s||n!==o)&&(r({width:Number(o),height:Number(s)}),t=s,n=o);}),200));return Q("resize",i,e)}var Cp=["INPUT","TEXTAREA","SELECT"],ho=new WeakMap;function Ep({inputCb:r,doc:e,mirror:t,blockClass:n,blockSelector:i,ignoreClass:s,ignoreSelector:o,maskInputOptions:l,maskInputFn:a,sampling:c,userTriggeredOnInput:u}){function d(w){let b=Mt(w),S=w.isTrusted,E=b&&b.tagName;if(b&&E==="OPTION"&&(b=x.parentElement(b)),!b||!E||Cp.indexOf(E)<0||ee(b,n,i,true)||b.classList.contains(s)||o&&b.matches(o))return;let I=b.value,P=false,A=vr(b)||"";A==="radio"||A==="checkbox"?P=b.checked:(l[E.toLowerCase()]||l[A])&&(I=wr({element:b,maskInputOptions:l,tagName:E,type:A,value:I,maskInputFn:a})),f(b,u?{text:I,isChecked:P,userTriggered:S}:{text:I,isChecked:P});let F=b.name;A==="radio"&&F&&P&&e.querySelectorAll(`input[type="radio"][name="${F}"]`).forEach($=>{if($!==b){let D=$.value;f($,u?{text:D,isChecked:!P,userTriggered:false}:{text:D,isChecked:!P});}});}function f(w,b){let S=ho.get(w);if(!S||S.text!==b.text||S.isChecked!==b.isChecked){ho.set(w,b);let E=t.getId(w);M(r)({...b,id:E});}}let m=(c.input==="last"?["change"]:["input","change"]).map(w=>Q(w,M(d),e)),p=e.defaultView;if(!p)return ()=>{m.forEach(w=>w());};let h=p.Object.getOwnPropertyDescriptor(p.HTMLInputElement.prototype,"value"),y=[[p.HTMLInputElement.prototype,"value"],[p.HTMLInputElement.prototype,"checked"],[p.HTMLSelectElement.prototype,"value"],[p.HTMLTextAreaElement.prototype,"value"],[p.HTMLSelectElement.prototype,"selectedIndex"],[p.HTMLOptionElement.prototype,"selected"]];return h&&h.set&&m.push(...y.map(w=>Gr(w[0],w[1],{set(){M(d)({target:this,isTrusted:false});}},false,p))),M(()=>{m.forEach(w=>w());})}function Nr(r){let e=[];function t(n,i){if(ur("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||ur("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||ur("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||ur("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){let o=Array.from(n.parentRule.cssRules).indexOf(n);i.unshift(o);}else if(n.parentStyleSheet){let o=Array.from(n.parentStyleSheet.cssRules).indexOf(n);i.unshift(o);}return i}return t(r,e)}function Ee(r,e,t){let n,i;return r?(r.ownerNode?n=e.getId(r.ownerNode):i=t.getId(r),{styleId:i,id:n}):{}}function Ip({styleSheetRuleCb:r,mirror:e,stylesheetManager:t},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return ()=>{};let i=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:M((u,d,f)=>{let[g,m]=f,{id:p,styleId:h}=Ee(d,e,t.styleMirror);return (p&&p!==-1||h&&h!==-1)&&r({id:p,styleId:h,adds:[{rule:g,index:m}]}),u.apply(d,f)})}),n.CSSStyleSheet.prototype.addRule=function(u,d,f=this.cssRules.length){let g=`${u} { ${d} }`;return n.CSSStyleSheet.prototype.insertRule.apply(this,[g,f])};let s=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:M((u,d,f)=>{let[g]=f,{id:m,styleId:p}=Ee(d,e,t.styleMirror);return (m&&m!==-1||p&&p!==-1)&&r({id:m,styleId:p,removes:[{index:g}]}),u.apply(d,f)})}),n.CSSStyleSheet.prototype.removeRule=function(u){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[u])};let o;n.CSSStyleSheet.prototype.replace&&(o=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:M((u,d,f)=>{let[g]=f,{id:m,styleId:p}=Ee(d,e,t.styleMirror);return (m&&m!==-1||p&&p!==-1)&&r({id:m,styleId:p,replace:g}),u.apply(d,f)})}));let l;n.CSSStyleSheet.prototype.replaceSync&&(l=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:M((u,d,f)=>{let[g]=f,{id:m,styleId:p}=Ee(d,e,t.styleMirror);return (m&&m!==-1||p&&p!==-1)&&r({id:m,styleId:p,replaceSync:g}),u.apply(d,f)})}));let a={};fr("CSSGroupingRule")?a.CSSGroupingRule=n.CSSGroupingRule:(fr("CSSMediaRule")&&(a.CSSMediaRule=n.CSSMediaRule),fr("CSSConditionRule")&&(a.CSSConditionRule=n.CSSConditionRule),fr("CSSSupportsRule")&&(a.CSSSupportsRule=n.CSSSupportsRule));let c={};return Object.entries(a).forEach(([u,d])=>{c[u]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(c[u].insertRule,{apply:M((f,g,m)=>{let[p,h]=m,{id:y,styleId:w}=Ee(g.parentStyleSheet,e,t.styleMirror);return (y&&y!==-1||w&&w!==-1)&&r({id:y,styleId:w,adds:[{rule:p,index:[...Nr(g),h||0]}]}),f.apply(g,m)})}),d.prototype.deleteRule=new Proxy(c[u].deleteRule,{apply:M((f,g,m)=>{let[p]=m,{id:h,styleId:y}=Ee(g.parentStyleSheet,e,t.styleMirror);return (h&&h!==-1||y&&y!==-1)&&r({id:h,styleId:y,removes:[{index:[...Nr(g),p]}]}),f.apply(g,m)})});}),M(()=>{n.CSSStyleSheet.prototype.insertRule=i,n.CSSStyleSheet.prototype.deleteRule=s,o&&(n.CSSStyleSheet.prototype.replace=o),l&&(n.CSSStyleSheet.prototype.replaceSync=l),Object.entries(a).forEach(([u,d])=>{d.prototype.insertRule=c[u].insertRule,d.prototype.deleteRule=c[u].deleteRule;});})}function al({mirror:r,stylesheetManager:e},t){var n,i,s;let o=null;t.nodeName==="#document"?o=r.getId(t):o=r.getId(x.host(t));let l=t.nodeName==="#document"?(n=t.defaultView)==null?void 0:n.Document:(s=(i=t.ownerDocument)==null?void 0:i.defaultView)==null?void 0:s.ShadowRoot,a=l!=null&&l.prototype?Object.getOwnPropertyDescriptor(l==null?void 0:l.prototype,"adoptedStyleSheets"):void 0;return o===null||o===-1||!l||!a?()=>{}:(Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){var c;return (c=a.get)==null?void 0:c.call(this)},set(c){var u;let d=(u=a.set)==null?void 0:u.call(this,c);if(o!==null&&o!==-1)try{e.adoptStyleSheets(c,o);}catch(f){}return d}}),M(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set});}))}function xp({styleDeclarationCb:r,mirror:e,ignoreCSSAttributes:t,stylesheetManager:n},{win:i}){let s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:M((l,a,c)=>{var u;let[d,f,g]=c;if(t.has(d))return s.apply(a,[d,f,g]);let{id:m,styleId:p}=Ee((u=a.parentRule)==null?void 0:u.parentStyleSheet,e,n.styleMirror);return (m&&m!==-1||p&&p!==-1)&&r({id:m,styleId:p,set:{property:d,value:f,priority:g},index:Nr(a.parentRule)}),l.apply(a,c)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:M((l,a,c)=>{var u;let[d]=c;if(t.has(d))return o.apply(a,[d]);let{id:f,styleId:g}=Ee((u=a.parentRule)==null?void 0:u.parentStyleSheet,e,n.styleMirror);return (f&&f!==-1||g&&g!==-1)&&r({id:f,styleId:g,remove:{property:d},index:Nr(a.parentRule)}),l.apply(a,c)})}),M(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=o;})}function Rp({mediaInteractionCb:r,blockClass:e,blockSelector:t,mirror:n,sampling:i,doc:s}){let o=M(a=>Ct(M(c=>{let u=Mt(c);if(!u||ee(u,e,t,!0))return;let{currentTime:d,volume:f,muted:g,playbackRate:m,loop:p}=u;r({type:a,id:n.getId(u),currentTime:d,volume:f,muted:g,playbackRate:m,loop:p});}),i.media||500)),l=[Q("play",o(He.Play),s),Q("pause",o(He.Pause),s),Q("seeked",o(He.Seeked),s),Q("volumechange",o(He.VolumeChange),s),Q("ratechange",o(He.RateChange),s)];return M(()=>{l.forEach(a=>a());})}function Mp({fontCb:r,doc:e}){let t=e.defaultView;if(!t)return ()=>{};let n=[],i=new WeakMap,s=t.FontFace;t.FontFace=function(a,c,u){let d=new s(a,c,u);return i.set(d,{family:a,buffer:typeof c!="string",descriptors:u,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),d};let o=De(e.fonts,"add",function(l){return function(a){return setTimeout(M(()=>{let c=i.get(a);c&&(r(c),i.delete(a));}),0),l.apply(this,[a])}});return n.push(()=>{t.FontFace=s;}),n.push(o),M(()=>{n.forEach(l=>l());})}function Tp(r){let{doc:e,mirror:t,blockClass:n,blockSelector:i,selectionCb:s}=r,o=true,l=M(()=>{let a=e.getSelection();if(!a||o&&(a!=null&&a.isCollapsed))return;o=a.isCollapsed||!1;let c=[],u=a.rangeCount||0;for(let d=0;d<u;d++){let f=a.getRangeAt(d),{startContainer:g,startOffset:m,endContainer:p,endOffset:h}=f;ee(g,n,i,!0)||ee(p,n,i,!0)||c.push({start:t.getId(g),startOffset:m,end:t.getId(p),endOffset:h});}s({ranges:c});});return l(),Q("selectionchange",l)}function Ap({doc:r,customElementCb:e}){let t=r.defaultView;return !t||!t.customElements?()=>{}:De(t.customElements,"define",function(i){return function(s,o,l){try{e({define:{name:s}});}catch(a){console.warn(`Custom element callback failed for ${s}`);}return i.apply(this,[s,o,l])}})}function kp(r,e){let{mutationCb:t,mousemoveCb:n,mouseInteractionCb:i,scrollCb:s,viewportResizeCb:o,inputCb:l,mediaInteractionCb:a,styleSheetRuleCb:c,styleDeclarationCb:u,canvasMutationCb:d,fontCb:f,selectionCb:g,customElementCb:m}=r;r.mutationCb=(...p)=>{e.mutation&&e.mutation(...p),t(...p);},r.mousemoveCb=(...p)=>{e.mousemove&&e.mousemove(...p),n(...p);},r.mouseInteractionCb=(...p)=>{e.mouseInteraction&&e.mouseInteraction(...p),i(...p);},r.scrollCb=(...p)=>{e.scroll&&e.scroll(...p),s(...p);},r.viewportResizeCb=(...p)=>{e.viewportResize&&e.viewportResize(...p),o(...p);},r.inputCb=(...p)=>{e.input&&e.input(...p),l(...p);},r.mediaInteractionCb=(...p)=>{e.mediaInteaction&&e.mediaInteaction(...p),a(...p);},r.styleSheetRuleCb=(...p)=>{e.styleSheetRule&&e.styleSheetRule(...p),c(...p);},r.styleDeclarationCb=(...p)=>{e.styleDeclaration&&e.styleDeclaration(...p),u(...p);},r.canvasMutationCb=(...p)=>{e.canvasMutation&&e.canvasMutation(...p),d(...p);},r.fontCb=(...p)=>{e.font&&e.font(...p),f(...p);},r.selectionCb=(...p)=>{e.selection&&e.selection(...p),g(...p);},r.customElementCb=(...p)=>{e.customElement&&e.customElement(...p),m(...p);};}function _p(r,e={}){let t=r.doc.defaultView;if(!t)return ()=>{};kp(r,e);let n;r.recordDOM&&(n=sl(r,r.doc));let i=wp(r),s=vp(r),o=ol(r),l=Sp(r,{win:t}),a=Ep(r),c=Rp(r),u=()=>{},d=()=>{},f=()=>{},g=()=>{};r.recordDOM&&(u=Ip(r,{win:t}),d=al(r,r.doc),f=xp(r,{win:t}),r.collectFonts&&(g=Mp(r)));let m=Tp(r),p=Ap(r),h=[];for(let y of r.plugins)h.push(y.observer(y.callback,t,y.options));return M(()=>{ke.forEach(y=>y.reset()),n==null||n.disconnect(),i(),s(),o(),l(),a(),c(),u(),d(),f(),g(),m(),p(),h.forEach(y=>y());})}function ur(r){return typeof window[r]!="undefined"}function fr(r){return !!(typeof window[r]!="undefined"&&window[r].prototype&&"insertRule"in window[r].prototype&&"deleteRule"in window[r].prototype)}var Or=class{constructor(e){v(this,"iframeIdToRemoteIdMap",new WeakMap),v(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e;}getId(e,t,n,i){let s=n||this.getIdToRemoteIdMap(e),o=i||this.getRemoteIdToIdMap(e),l=s.get(t);return l||(l=this.generateIdFn(),s.set(t,l),o.set(l,t)),l}getIds(e,t){let n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(s=>this.getId(e,s,n,i))}getRemoteId(e,t,n){let i=n||this.getRemoteIdToIdMap(e);if(typeof t!="number")return t;let s=i.get(t);return s||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(i=>this.getRemoteId(e,i,n))}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}},ci=class{constructor(e){v(this,"iframes",new WeakMap),v(this,"crossOriginIframeMap",new WeakMap),v(this,"crossOriginIframeMirror",new Or(Eo)),v(this,"crossOriginIframeStyleMirror"),v(this,"crossOriginIframeRootIdMap",new WeakMap),v(this,"mirror"),v(this,"mutationCb"),v(this,"wrappedEmit"),v(this,"loadListener"),v(this,"stylesheetManager"),v(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Or(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,true),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e);}addLoadListener(e){this.loadListener=e;}attachIframe(e,t){var n,i;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:true}),this.recordCrossOriginIframes&&((n=e.contentWindow)==null||n.addEventListener("message",this.handleMessage.bind(this))),(i=this.loadListener)==null||i.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){let t=e;if(t.data.type!=="rrweb"||t.origin!==t.data.origin||!e.source)return;let i=this.crossOriginIframeMap.get(e.source);if(!i)return;let s=this.transformCrossOriginEvent(i,t.data.event);s&&this.wrappedEmit(s,t.data.isCheckout);}transformCrossOriginEvent(e,t){var n;switch(t.type){case T.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:T.IncrementalSnapshot,data:{source:R.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:true}}}case T.Meta:case T.Load:case T.DomContentLoaded:return false;case T.Plugin:return t;case T.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case T.IncrementalSnapshot:switch(t.data.source){case R.Mutation:return t.data.adds.forEach(i=>{this.replaceIds(i,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,e);let s=this.crossOriginIframeRootIdMap.get(e);s&&this.patchRootIdOnNode(i.node,s);}),t.data.removes.forEach(i=>{this.replaceIds(i,e,["parentId","id"]);}),t.data.attributes.forEach(i=>{this.replaceIds(i,e,["id"]);}),t.data.texts.forEach(i=>{this.replaceIds(i,e,["id"]);}),t;case R.Drag:case R.TouchMove:case R.MouseMove:return t.data.positions.forEach(i=>{this.replaceIds(i,e,["id"]);}),t;case R.ViewportResize:return false;case R.MediaInteraction:case R.MouseInteraction:case R.Scroll:case R.CanvasMutation:case R.Input:return this.replaceIds(t.data,e,["id"]),t;case R.StyleSheetRule:case R.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case R.Font:return t;case R.Selection:return t.data.ranges.forEach(i=>{this.replaceIds(i,e,["start","end"]);}),t;case R.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),(n=t.data.styles)==null||n.forEach(i=>{this.replaceStyleIds(i,e,["styleId"]);}),t}}return false}replace(e,t,n,i){for(let s of i)!Array.isArray(t[s])&&typeof t[s]!="number"||(Array.isArray(t[s])?t[s]=e.getIds(n,t[s]):t[s]=e.getId(n,t[s]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(n=>{this.replaceIdOnNode(n,t);});}patchRootIdOnNode(e,t){e.type!==nl.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(n=>{this.patchRootIdOnNode(n,t);});}},ui=class{constructor(e){v(this,"shadowDoms",new WeakSet),v(this,"mutationCb"),v(this,"scrollCb"),v(this,"bypassOptions"),v(this,"mirror"),v(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(!ft(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let n=sl({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(ol({...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(x.host(e))),this.restoreHandlers.push(al({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 n=this;this.restoreHandlers.push(De(e.prototype,"attachShadow",function(i){return function(s){let o=i.call(this,s),l=x.shadowRoot(this);return l&&rl(this)&&n.addShadowRoot(l,t),o}}));}reset(){this.restoreHandlers.forEach(e=>{try{e();}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet;}},Ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Np=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(ct=0;ct<Ge.length;ct++)Np[Ge.charCodeAt(ct)]=ct;var ct,Op=function(r){var e=new Uint8Array(r),t,n=e.length,i="";for(t=0;t<n;t+=3)i+=Ge[e[t]>>2],i+=Ge[(e[t]&3)<<4|e[t+1]>>4],i+=Ge[(e[t+1]&15)<<2|e[t+2]>>6],i+=Ge[e[t+2]&63];return n%3===2?i=i.substring(0,i.length-1)+"=":n%3===1&&(i=i.substring(0,i.length-2)+"=="),i};var po=new Map;function Dp(r,e){let t=po.get(r);return t||(t=new Map,po.set(r,t)),t.has(e)||t.set(e,[]),t.get(e)}var ll=(r,e,t)=>{if(!r||!(ul(r,e)||typeof r=="object"))return;let n=r.constructor.name,i=Dp(t,n),s=i.indexOf(r);return s===-1&&(s=i.length,i.push(r)),s};function gr(r,e,t){if(r instanceof Array)return r.map(n=>gr(n,e,t));if(r===null)return r;if(r instanceof Float32Array||r instanceof Float64Array||r instanceof Int32Array||r instanceof Uint32Array||r instanceof Uint8Array||r instanceof Uint16Array||r instanceof Int16Array||r instanceof Int8Array||r instanceof Uint8ClampedArray)return {rr_type:r.constructor.name,args:[Object.values(r)]};if(r instanceof ArrayBuffer){let n=r.constructor.name,i=Op(r);return {rr_type:n,base64:i}}else {if(r instanceof DataView)return {rr_type:r.constructor.name,args:[gr(r.buffer,e,t),r.byteOffset,r.byteLength]};if(r instanceof HTMLImageElement){let n=r.constructor.name,{src:i}=r;return {rr_type:n,src:i}}else if(r instanceof HTMLCanvasElement){let n="HTMLImageElement",i=r.toDataURL();return {rr_type:n,src:i}}else {if(r instanceof ImageData)return {rr_type:r.constructor.name,args:[gr(r.data,e,t),r.width,r.height]};if(ul(r,e)||typeof r=="object"){let n=r.constructor.name,i=ll(r,e,t);return {rr_type:n,index:i}}}}return r}var cl=(r,e,t)=>r.map(n=>gr(n,e,t)),ul=(r,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof e[i]=="function").find(i=>r instanceof e[i]);function Lp(r,e,t,n){let i=[],s=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(let o of s)try{if(typeof e.CanvasRenderingContext2D.prototype[o]!="function")continue;let l=De(e.CanvasRenderingContext2D.prototype,o,function(a){return function(...c){return ee(this.canvas,t,n,!0)||setTimeout(()=>{let u=cl(c,e,this);r(this.canvas,{type:qe["2D"],property:o,args:u});},0),a.apply(this,c)}});i.push(l);}catch(l){let a=Gr(e.CanvasRenderingContext2D.prototype,o,{set(c){r(this.canvas,{type:qe["2D"],property:o,args:[c],setter:true});}});i.push(a);}return ()=>{i.forEach(o=>o());}}function Pp(r){return r==="experimental-webgl"?"webgl":r}function mo(r,e,t,n){let i=[];try{let s=De(r.HTMLCanvasElement.prototype,"getContext",function(o){return function(l,...a){if(!ee(this,e,t,!0)){let c=Pp(l);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(a[0]&&typeof a[0]=="object"){let u=a[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0);}else a.splice(0,1,{preserveDrawingBuffer:!0});}return o.apply(this,[l,...a])}});i.push(s);}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext");}return ()=>{i.forEach(s=>s());}}function go(r,e,t,n,i,s){let o=[],l=Object.getOwnPropertyNames(r);for(let a of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if(typeof r[a]!="function")continue;let c=De(r,a,function(u){return function(...d){let f=u.apply(this,d);if(ll(f,s,this),"tagName"in this.canvas&&!ee(this.canvas,n,i,!0)){let g=cl(d,s,this),m={type:e,property:a,args:g};t(this.canvas,m);}return f}});o.push(c);}catch(c){let u=Gr(r,a,{set(d){t(this.canvas,{type:e,property:a,args:[d],setter:true});}});o.push(u);}return o}function Fp(r,e,t,n){let i=[];return i.push(...go(e.WebGLRenderingContext.prototype,qe.WebGL,r,t,n,e)),typeof e.WebGL2RenderingContext!="undefined"&&i.push(...go(e.WebGL2RenderingContext.prototype,qe.WebGL2,r,t,n,e)),()=>{i.forEach(s=>s());}}var fl="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",$p=r=>Uint8Array.from(atob(r),e=>e.charCodeAt(0)),yo=typeof window!="undefined"&&window.Blob&&new Blob([$p(fl)],{type:"text/javascript;charset=utf-8"});function Bp(r){let e;try{if(e=yo&&(window.URL||window.webkitURL).createObjectURL(yo),!e)throw "";let t=new Worker(e,{name:r==null?void 0:r.name});return t.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(e);}),t}catch(t){return new Worker("data:text/javascript;base64,"+fl,{name:r==null?void 0:r.name})}finally{e&&(window.URL||window.webkitURL).revokeObjectURL(e);}}var fi=class{constructor(e){v(this,"pendingCanvasMutations",new Map),v(this,"rafStamps",{latestId:0,invokeId:null}),v(this,"mirror"),v(this,"mutationCb"),v(this,"resetObservers"),v(this,"frozen",false),v(this,"locked",false),v(this,"processMutation",(a,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(c);});let{sampling:t="all",win:n,blockClass:i,blockSelector:s,recordCanvas:o,dataURLOptions:l}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&t==="all"&&this.initCanvasMutationObserver(n,i,s),o&&typeof t=="number"&&this.initCanvasFPSObserver(t,n,i,s,{dataURLOptions:l});}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers();}freeze(){this.frozen=true;}unfreeze(){this.frozen=false;}lock(){this.locked=true;}unlock(){this.locked=false;}initCanvasFPSObserver(e,t,n,i,s){let o=mo(t,n,i,true),l=new Map,a=new Bp;a.onmessage=m=>{let{id:p}=m.data;if(l.set(p,false),!("base64"in m.data))return;let{base64:h,type:y,width:w,height:b}=m.data;this.mutationCb({id:p,type:qe["2D"],commands:[{property:"clearRect",args:[0,0,w,b]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:h}],type:y}]},0,0]}]});};let c=1e3/e,u=0,d,f=()=>{let m=[];return t.document.querySelectorAll("canvas").forEach(p=>{ee(p,n,i,true)||m.push(p);}),m},g=m=>{if(u&&m-u<c){d=requestAnimationFrame(g);return}u=m,f().forEach(async p=>{var h;let y=this.mirror.getId(p);if(l.get(y)||p.width===0||p.height===0)return;if(l.set(y,true),["webgl","webgl2"].includes(p.__context)){let b=p.getContext(p.__context);((h=b==null?void 0:b.getContextAttributes())==null?void 0:h.preserveDrawingBuffer)===false&&b.clear(b.COLOR_BUFFER_BIT);}let w=await createImageBitmap(p);a.postMessage({id:y,bitmap:w,width:p.width,height:p.height,dataURLOptions:s.dataURLOptions},[w]);}),d=requestAnimationFrame(g);};d=requestAnimationFrame(g),this.resetObservers=()=>{o(),cancelAnimationFrame(d);};}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let i=mo(e,t,n,false),s=Lp(this.processMutation.bind(this),e,t,n),o=Fp(this.processMutation.bind(this),e,t,n);this.resetObservers=()=>{i(),s(),o();};}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations());}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e);};requestAnimationFrame(e);}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n);}),requestAnimationFrame(()=>this.flushPendingCanvasMutations());}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||t===-1)return;let i=n.map(o=>{let{type:l,...a}=o;return a}),{type:s}=n[0];this.mutationCb({id:t,type:s,commands:i}),this.pendingCanvasMutations.delete(e);}},di=class{constructor(e){v(this,"trackedLinkElements",new WeakSet),v(this,"mutationCb"),v(this,"adoptedStyleSheetCb"),v(this,"styleMirror",new si),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(e.length===0)return;let n={id:t,styleIds:[]},i=[];for(let s of e){let o;this.styleMirror.has(s)?o=this.styleMirror.getId(s):(o=this.styleMirror.add(s),i.push({styleId:o,rules:Array.from(s.rules||CSSRule,(l,a)=>({rule:So(l,s.href),index:a}))})),n.styleIds.push(o);}i.length>0&&(n.styles=i),this.adoptedStyleSheetCb(n);}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet;}trackStylesheetInLinkElement(e){}},hi=class{constructor(){v(this,"nodeMap",new WeakMap),v(this,"active",false);}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(i=>i!==t)}add(e,t){this.active||(this.active=true,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=false;})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t));}destroy(){}},G,yr,In,Dr=false;try{if(Array.from([1],r=>r*2)[0]!==2){let r=document.createElement("iframe");document.body.appendChild(r),Array.from=((vs=r.contentWindow)==null?void 0:vs.Array.from)||Array.from,document.body.removeChild(r);}}catch(r){console.debug("Unable to override Array.from",r);}var ce=Gc();function Ce(r={}){let{emit:e,checkoutEveryNms:t,checkoutEveryNth:n,blockClass:i="rr-block",blockSelector:s=null,ignoreClass:o="rr-ignore",ignoreSelector:l=null,maskTextClass:a="rr-mask",maskTextSelector:c=null,inlineStylesheet:u=true,maskAllInputs:d,maskInputOptions:f,slimDOMOptions:g,maskInputFn:m,maskTextFn:p,hooks:h,packFn:y,sampling:w={},dataURLOptions:b={},mousemoveWait:S,recordDOM:E=true,recordCanvas:I=false,recordCrossOriginIframes:P=false,recordAfter:A=r.recordAfter==="DOMContentLoaded"?r.recordAfter:"load",userTriggeredOnInput:F=false,collectFonts:$=false,inlineImages:D=false,plugins:q,keepIframeSrcFn:C=()=>false,ignoreCSSAttributes:re=new Set([]),errorHandler:Re}=r;yp(Re);let j=P?window.parent===window:true,se=false;if(!j)try{window.parent.document&&(se=!1);}catch(k){se=true;}if(j&&!e)throw new Error("emit function is required");if(!j&&!se)return ()=>{};S!==void 0&&w.mousemove===void 0&&(w.mousemove=S),ce.reset();let Me=d===true?{color:true,date:true,"datetime-local":true,email:true,month:true,number:true,range:true,search:true,tel:true,text:true,time:true,url:true,week:true,textarea:true,select:true,password:true}:f!==void 0?f:{password:true},he=Mo(g);dp();let rs,an=0,ns=k=>{for(let le of q||[])le.eventProcessor&&(k=le.eventProcessor(k));return y&&!se&&(k=y(k)),k};G=(k,le)=>{var z;let V=k;if(V.timestamp=_r(),(z=ke[0])!=null&&z.isFrozen()&&V.type!==T.FullSnapshot&&!(V.type===T.IncrementalSnapshot&&V.data.source===R.Mutation)&&ke.forEach(ne=>ne.unfreeze()),j)e==null||e(ns(V),le);else if(se){let ne={type:"rrweb",event:ns(V),origin:window.location.origin,isCheckout:le};window.parent.postMessage(ne,"*");}if(V.type===T.FullSnapshot)rs=V,an=0;else if(V.type===T.IncrementalSnapshot){if(V.data.source===R.Mutation&&V.data.isAttachIframe)return;an++;let ne=n&&an>=n,O=t&&V.timestamp-rs.timestamp>t;(ne||O)&&yr(true);}};let Lt=k=>{G({type:T.IncrementalSnapshot,data:{source:R.Mutation,...k}});},is=k=>G({type:T.IncrementalSnapshot,data:{source:R.Scroll,...k}}),ss=k=>G({type:T.IncrementalSnapshot,data:{source:R.CanvasMutation,...k}}),sc=k=>G({type:T.IncrementalSnapshot,data:{source:R.AdoptedStyleSheet,...k}}),Te=new di({mutationCb:Lt,adoptedStyleSheetCb:sc}),Ae=new ci({mirror:ce,mutationCb:Lt,stylesheetManager:Te,recordCrossOriginIframes:P,wrappedEmit:G});for(let k of q||[])k.getMirror&&k.getMirror({nodeMirror:ce,crossOriginIframeMirror:Ae.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ae.crossOriginIframeStyleMirror});let ln=new hi;In=new fi({recordCanvas:I,mutationCb:ss,win:window,blockClass:i,blockSelector:s,mirror:ce,sampling:w.canvas,dataURLOptions:b});let Pt=new ui({mutationCb:Lt,scrollCb:is,bypassOptions:{blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:c,inlineStylesheet:u,maskInputOptions:Me,dataURLOptions:b,maskTextFn:p,maskInputFn:m,recordCanvas:I,inlineImages:D,sampling:w,slimDOMOptions:he,iframeManager:Ae,stylesheetManager:Te,canvasManager:In,keepIframeSrcFn:C,processedNodeManager:ln},mirror:ce});yr=(k=false)=>{if(!E)return;G({type:T.Meta,data:{href:window.location.href,width:Ja(),height:Za()}},k),Te.reset(),Pt.init(),ke.forEach(z=>z.lock());let le=mu(document,{mirror:ce,blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:c,inlineStylesheet:u,maskAllInputs:Me,maskTextFn:p,maskInputFn:m,slimDOM:he,dataURLOptions:b,recordCanvas:I,inlineImages:D,onSerialize:z=>{Qa(z,ce)&&Ae.addIframe(z),el(z,ce)&&Te.trackLinkElement(z),ii(z)&&Pt.addShadowRoot(x.shadowRoot(z),document);},onIframeLoad:(z,V)=>{Ae.attachIframe(z,V),Pt.observeAttachShadow(z);},onStylesheetLoad:(z,V)=>{Te.attachLinkElement(z,V);},keepIframeSrcFn:C});if(!le)return console.warn("Failed to snapshot the document");G({type:T.FullSnapshot,data:{node:le,initialOffset:Xa(window)}},k),ke.forEach(z=>z.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Te.adoptStyleSheets(document.adoptedStyleSheets,ce.getId(document));};try{let k=[],le=V=>{var ne;return M(_p)({mutationCb:Lt,mousemoveCb:(O,cn)=>G({type:T.IncrementalSnapshot,data:{source:cn,positions:O}}),mouseInteractionCb:O=>G({type:T.IncrementalSnapshot,data:{source:R.MouseInteraction,...O}}),scrollCb:is,viewportResizeCb:O=>G({type:T.IncrementalSnapshot,data:{source:R.ViewportResize,...O}}),inputCb:O=>G({type:T.IncrementalSnapshot,data:{source:R.Input,...O}}),mediaInteractionCb:O=>G({type:T.IncrementalSnapshot,data:{source:R.MediaInteraction,...O}}),styleSheetRuleCb:O=>G({type:T.IncrementalSnapshot,data:{source:R.StyleSheetRule,...O}}),styleDeclarationCb:O=>G({type:T.IncrementalSnapshot,data:{source:R.StyleDeclaration,...O}}),canvasMutationCb:ss,fontCb:O=>G({type:T.IncrementalSnapshot,data:{source:R.Font,...O}}),selectionCb:O=>{G({type:T.IncrementalSnapshot,data:{source:R.Selection,...O}});},customElementCb:O=>{G({type:T.IncrementalSnapshot,data:{source:R.CustomElement,...O}});},blockClass:i,ignoreClass:o,ignoreSelector:l,maskTextClass:a,maskTextSelector:c,maskInputOptions:Me,inlineStylesheet:u,sampling:w,recordDOM:E,recordCanvas:I,inlineImages:D,userTriggeredOnInput:F,collectFonts:$,doc:V,maskInputFn:m,maskTextFn:p,keepIframeSrcFn:C,blockSelector:s,slimDOMOptions:he,dataURLOptions:b,mirror:ce,iframeManager:Ae,stylesheetManager:Te,shadowDomManager:Pt,processedNodeManager:ln,canvasManager:In,ignoreCSSAttributes:re,plugins:((ne=q==null?void 0:q.filter(O=>O.observer))==null?void 0:ne.map(O=>({observer:O.observer,options:O.options,callback:cn=>G({type:T.Plugin,data:{plugin:O.name,payload:cn}})})))||[]},h)};Ae.addLoadListener(V=>{try{k.push(le(V.contentDocument));}catch(ne){console.warn(ne);}});let z=()=>{yr(),k.push(le(document)),Dr=!0;};return ["interactive","complete"].includes(document.readyState)?z():(k.push(Q("DOMContentLoaded",()=>{G({type:T.DomContentLoaded,data:{}}),A==="DOMContentLoaded"&&z();})),k.push(Q("load",()=>{G({type:T.Load,data:{}}),A==="load"&&z();},window))),()=>{k.forEach(V=>{try{V();}catch(ne){String(ne).toLowerCase().includes("cross-origin")||console.warn(ne);}}),ln.destroy(),Dr=!1,bp();}}catch(k){console.warn(k);}}Ce.addCustomEvent=(r,e)=>{if(!Dr)throw new Error("please add custom event after start recording");G({type:T.Custom,data:{tag:r,payload:e}});};Ce.freezePage=()=>{ke.forEach(r=>r.freeze());};Ce.takeFullSnapshot=r=>{if(!Dr)throw new Error("please take full snapshot after start recording");yr(r);};Ce.mirror=ce;var bo;(function(r){r[r.NotStarted=0]="NotStarted",r[r.Running=1]="Running",r[r.Stopped=2]="Stopped";})(bo||(bo={}));var Up="https://blocfeed.com/api/replay-events";function dl(r){var q;if(!r.config.enabled)return ()=>{};if(typeof window=="undefined")return ()=>{};if(typeof globalThis.matchMedia=="undefined")return ()=>{};let e=Y();if(Bt(e)%100/100>=r.config.sampling)return ()=>{};let n=Date.now(),i=(q=r.config.endpoint)!=null?q:Up,s=[],o=0,l=false,a=false,c=null,u=`bf_replay_chunkseq_${e}`,d=`bf_replay_pauses_${e}`,f=0,g=0;try{let C=sessionStorage.getItem(u);C&&(f=parseInt(C,10)||0);let re=sessionStorage.getItem(d);re&&(g=parseInt(re,10)||0);}catch(C){}let m=(C=false)=>{if(s.length===0)return;let re=C?Hp(s):s;s=[],o=0;let Re=f++;try{sessionStorage.setItem(u,String(f));}catch(j){}zp({blocfeedId:r.blocfeedId,sessionId:e,sessionStartedAtMs:n,chunkSeq:Re,events:re,endpoint:i,useBeacon:C,pauseCount:g});},p=setInterval(()=>{l||m();},r.config.flushIntervalMs),h=setTimeout(()=>{m(),D();},r.config.maxDurationMs),y=null,w=()=>{y&&clearTimeout(y),y=setTimeout(()=>{F();},r.config.inactivityTimeoutMs);},b=()=>{m(true);};window.addEventListener("pagehide",b);let S=r.config.masking,E={emit(C){l||(s.push(C),o+=Wp(C),w(),o>=r.config.flushSizeBytes&&m());},recordCanvas:false,sampling:{mousemove:50}};S.maskAllInputs!==void 0&&(E.maskAllInputs=S.maskAllInputs),S.maskTextSelector!==void 0&&(E.maskTextSelector=S.maskTextSelector),S.maskTextClass!==void 0&&(E.maskTextClass=S.maskTextClass),S.blockSelector!==void 0&&(E.blockSelector=S.blockSelector);let I=null,P=()=>{I&&(document.removeEventListener("pointerdown",I,true),document.removeEventListener("keydown",I,true),I=null);};function A(){var C;c=(C=Ce(E))!=null?C:null;}function F(){if(l||a)return;a=true,g++;try{sessionStorage.setItem(d,String(g));}catch(re){}if(m(),c){try{c();}catch(re){}c=null;}y&&(clearTimeout(y),y=null);let C=()=>{P(),$();};I=C,document.addEventListener("pointerdown",C,{capture:true,once:true}),document.addEventListener("keydown",C,{capture:true,once:true});}function $(){l||!a||(a=false,A(),w());}w(),A();function D(){if(!l&&(l=true,clearInterval(p),clearTimeout(h),y&&clearTimeout(y),P(),window.removeEventListener("pagehide",b),c)){try{c();}catch(C){}c=null;}}return D}function Wp(r){try{return JSON.stringify(r).length}catch(e){return 1024}}function Hp(r){let t=JSON.stringify(r);if(t.length<=6e4)return r;let n=[...r];for(;n.length>1;)if(n.shift(),t=JSON.stringify(n),t.length<=6e4)return n;return n}async function zp(r){let e=JSON.stringify({blocfeed_id:r.blocfeedId,session_id:r.sessionId,session_started_at_ms:r.sessionStartedAtMs,chunk_seq:r.chunkSeq,pause_count:r.pauseCount,events:r.events,page_url:typeof window!="undefined"?window.location.href:"",user_agent:typeof navigator!="undefined"?navigator.userAgent:""});if(r.useBeacon&&typeof navigator!="undefined"&&typeof navigator.sendBeacon=="function")try{let n=new Blob([e],{type:"application/json"});navigator.sendBeacon(r.endpoint,n);return}catch(n){}let t=!!r.useBeacon;try{await fetch(r.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:e,...t?{keepalive:!0}:{}});}catch(n){}}var Vp={enabled:true,endpoint:null,maxDurationMs:144e5,flushIntervalMs:3e4,flushSizeBytes:1048576,inactivityTimeoutMs:18e5,sampling:1,masking:{maskAllInputs:true,maskTextSelector:"[data-blocfeed-mask]",maskTextClass:"blocfeed-mask",blockSelector:"[data-blocfeed-block]"}};function hl(r){var t,n,i,s,o,l,a,c;let e=Vp;return {enabled:(t=r==null?void 0:r.enabled)!=null?t:e.enabled,endpoint:(n=r==null?void 0:r.endpoint)!=null?n:e.endpoint,maxDurationMs:(i=r==null?void 0:r.maxDurationMs)!=null?i:e.maxDurationMs,flushIntervalMs:(s=r==null?void 0:r.flushIntervalMs)!=null?s:e.flushIntervalMs,flushSizeBytes:(o=r==null?void 0:r.flushSizeBytes)!=null?o:e.flushSizeBytes,inactivityTimeoutMs:(l=r==null?void 0:r.inactivityTimeoutMs)!=null?l:e.inactivityTimeoutMs,sampling:(a=r==null?void 0:r.sampling)!=null?a:e.sampling,masking:{...e.masking,...(c=r==null?void 0:r.masking)!=null?c:{}}}}var pl=[{name:"email",regex:/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,replacement:"[email]"},{name:"credit_card",regex:/\b(?:\d[ -]?){13,19}\b/g,replacement:"[card]"},{name:"ssn",regex:/\b\d{3}-\d{2}-\d{4}\b/g,replacement:"[ssn]"},{name:"phone",regex:/(?:\+?\d{1,3}[\s.-]?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}/g,replacement:"[phone]"}],Gp=[...pl,{name:"ipv4",regex:/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/g,replacement:"[ip]"},{name:"iban",regex:/\b[A-Z]{2}\d{2}[A-Z0-9]{11,30}\b/g,replacement:"[iban]"}],jp=10;function Yp(r){return r==="strict"?Gp:r==="default"?pl:[]}function Xp(r,e){let t=r;for(let n of e)t=t.replace(n.regex,n.replacement);return t}function Fi(r,e,t){if(t>jp||r==null)return r;if(typeof r=="string")return Xp(r,e);if(typeof r=="number"||typeof r=="boolean")return r;if(Array.isArray(r))return r.map(n=>Fi(n,e,t+1));if(typeof r=="object"){let n={};for(let i of Object.keys(r))n[i]=Fi(r[i],e,t+1);return n}return r}function Tt(r,e){if(e==="off")return r;let t=Yp(e);return t.length===0?r:Fi(r,t,0)}var Zp="https://blocfeed.com/api/events/track",Jp=5e3,Kp=50,qp=1024,Xr="blocfeed-events-queue",ml=500,gl=100,Qp=/^[a-z][a-z0-9_]{0,127}$/,yl=50,bl=1024,wl,$i="default";function Zr(r){wl=r;}function vl(r){$i=r;}function em(r){if(typeof r!="string"||!Qp.test(r))throw new Error(`[BlocFeed] track(): event_name "${r}" must match /^[a-z][a-z0-9_]{0,127}$/ (lowercase, start with a letter, only [a-z0-9_], \u2264128 chars).`)}function tm(r){if(r===void 0)return {};if(r===null||typeof r!="object"||Array.isArray(r))throw new Error("[BlocFeed] track(): properties must be a plain object.");let e=Object.keys(r);if(e.length>yl)throw new Error(`[BlocFeed] track(): properties has ${e.length} keys, max ${yl}.`);for(let n of e){let i=r[n];if(i!==null&&typeof i!="string"&&typeof i!="number"&&typeof i!="boolean")throw new Error(`[BlocFeed] track(): property "${n}" has unsupported type "${typeof i}". Allowed: string | number | boolean | null.`)}let t;try{t=JSON.stringify(r);}catch(n){throw new Error(`[BlocFeed] track(): properties is not JSON-serializable (${n.message}).`)}if(t.length>bl)throw new Error(`[BlocFeed] track(): properties serialized to ${t.length} bytes, max ${bl}. Server allows 8192 bytes \u2014 the client cap is defensive; trim down or split the event.`);return r}function Bi(){if(typeof localStorage=="undefined")return [];try{let r=localStorage.getItem(Xr);if(!r)return [];let e=JSON.parse(r);return Array.isArray(e)?e:[]}catch(r){try{localStorage.removeItem(Xr);}catch(e){}return []}}function Ui(r){if(typeof localStorage!="undefined")try{if(r.length===0)localStorage.removeItem(Xr);else {let e=r.length>ml?r.slice(r.length-ml):r;localStorage.setItem(Xr,JSON.stringify(e));}}catch(e){}}var ae=null;function rm(){if(ae)return ae;if(typeof window=="undefined")return null;let r=nm();return r?(ae={blocfeedId:r,endpoint:Zp,events:[],bytes:0,flushTimer:null,pageHideHandler:null,visibilityHandler:null},ae.flushTimer=setInterval(()=>{Yr(false);},Jp),ae.pageHideHandler=()=>{Yr(true);},ae.visibilityHandler=()=>{document.visibilityState==="hidden"&&Yr(true);},window.addEventListener("pagehide",ae.pageHideHandler),document.addEventListener("visibilitychange",ae.visibilityHandler),ae):null}function nm(){try{let e=window.__blocfeed_id__;return typeof e=="string"&&e.length>0?e:null}catch(r){return null}}function Sl(r){try{window.__blocfeed_id__=r;}catch(e){}ae&&(ae.blocfeedId=r);}function Wi(r,e,t){var f,g,m;em(r);let n=tm(e),i=$i==="off"?n:Tt(n,$i),s=new Date().toISOString(),o={event_name:r,properties:i,occurred_at:s},l=(f=void 0)!=null?f:sm();l&&(o.session_id=l);let a=(g=void 0)!=null?g:wl;a&&(o.user_id=a);let c=(m=void 0)!=null?m:om();c&&(o.page_url=c);let u=am();u&&(o.user_agent=u);let d=rm();if(!d){let p=Bi();p.push(o),Ui(p);return}d.events.push(o),d.bytes+=im(o),(d.events.length>=Kp||d.bytes>=qp)&&Yr(false);}async function Yr(r){let e=ae;if(!e)return;let n=Bi().concat(e.events);if(e.events=[],e.bytes=0,Ui([]),n.length!==0)for(let i=0;i<n.length;i+=gl){let s=n.slice(i,i+gl),o=JSON.stringify({blocfeed_id:e.blocfeedId,events:s});if(r&&cm())try{let l=new Blob([o],{type:"application/json"});navigator.sendBeacon(e.endpoint,l)||jr(s);continue}catch(l){jr(s);continue}try{(await fetch(e.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:o})).ok||jr(s);}catch(l){jr(s);}}}function jr(r){let e=Bi();Ui(e.concat(r));}function im(r){try{return JSON.stringify(r).length}catch(e){return 256}}function sm(){try{return Y()}catch(r){return}}function om(){try{return typeof window!="undefined"?window.location.href:void 0}catch(r){return}}function am(){try{return typeof navigator!="undefined"?navigator.userAgent:void 0}catch(r){return}}function cm(){return typeof navigator!="undefined"&&typeof navigator.sendBeacon=="function"}var um="https://blocfeed.com/api/heartbeat",fm=300*1e3;function Cl(r){var l,a,c;if(typeof window=="undefined")return ()=>{};if(typeof globalThis.matchMedia=="undefined")return ()=>{};let e=(l=r.endpoint)!=null?l:um,t=(a=r.intervalMs)!=null?a:fm,n=(c=r.features)!=null?c:["replay","behavioral","customEvents"],i=u=>{try{let d=JSON.stringify({blocfeed_id:r.blocfeedId,session_id:dm(),version:r.version,page_url:typeof window!="undefined"?window.location.href:"",user_agent:typeof navigator!="undefined"?navigator.userAgent:"",sdk_features:n}),f={method:"POST",headers:{"Content-Type":"application/json"},body:d};u&&(f.keepalive=!0),fetch(e,f).catch(()=>{});}catch(d){}};try{i(!1);}catch(u){}let s=null;try{s=setInterval(()=>{try{i(!1);}catch(u){}},t);}catch(u){s=null;}let o=()=>{try{i(!0);}catch(u){}};try{window.addEventListener("pagehide",o);}catch(u){}return function(){try{s&&clearInterval(s);}catch(d){}s=null;try{window.removeEventListener("pagehide",o);}catch(d){}}}function dm(){try{return Y()}catch(r){return ""}}var Jr="0.24.0";var hm=5e3,Kr=class{constructor(e){this.submitter=null;this.detectorUninstallers=[];this.flushTimer=null;this.pageHideHandler=null;this.installed=false;this.opts=e,this.resolved=os(e.config);}install(){var a,c,u,d;if(this.installed||!this.resolved.enabled)return;let e=()=>{try{let f=Y();return Bt(f)%100/100<this.resolved.sampling}catch(f){return false}};if(!((a=this.opts.passiveSampler)!=null?a:e)())return;Sl(this.opts.blocfeedId),vl(this.resolved.piiScrub);let n=(c=this.opts.endpoint)!=null?c:"https://blocfeed.com/api/behavioral-events";this.submitter=(u=this.opts.submitter)!=null?u:as({endpoint:n,blocfeedId:this.opts.blocfeedId});let i=this.resolved.piiScrub,s=f=>{var m;let g=i==="off"?f:{...f,element_text:f.element_text==null?f.element_text:Tt(f.element_text,i),event_data:f.event_data==null?f.event_data:Tt(f.event_data,i)};(m=this.submitter)==null||m.enqueue(g);};this.detectorUninstallers.push(hs(this.resolved,s)),this.detectorUninstallers.push(gs(this.resolved,s)),this.detectorUninstallers.push(ys(this.resolved,s)),this.detectorUninstallers.push(bs(this.resolved,s)),this.detectorUninstallers.push(ws(this.resolved,s));let o=hl((d=this.opts.config)==null?void 0:d.sessionReplay);this.detectorUninstallers.push(dl({blocfeedId:this.opts.blocfeedId,config:o}));let l=["behavioral","customEvents"];if(o.enabled&&l.unshift("replay"),this.opts.extraSdkFeatures)for(let f of this.opts.extraSdkFeatures)l.push(f);this.detectorUninstallers.push(Cl({blocfeedId:this.opts.blocfeedId,version:Jr,features:l})),this.flushTimer=setInterval(()=>{var f;(f=this.submitter)==null||f.flush();},hm),this.pageHideHandler=()=>{var f;(f=this.submitter)==null||f.flushBeacon();},typeof window!="undefined"&&window.addEventListener("pagehide",this.pageHideHandler),this.installed=true;}uninstall(){var e;if(this.installed){for(let t of [...this.detectorUninstallers].reverse())try{t();}catch(n){}this.detectorUninstallers=[],this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null),this.pageHideHandler&&typeof window!="undefined"&&(window.removeEventListener("pagehide",this.pageHideHandler),this.pageHideHandler=null);try{(e=this.submitter)==null||e.flush();}catch(t){}this.submitter=null,this.installed=false;}}};var Qm="blocfeed-embed/ready",eg="blocfeed-embed/screenshot-request",tg="blocfeed-embed/submit-success",rg="blocfeed-embed/close",ng="blocfeed-embed/init",ig="blocfeed-embed/screenshot-result",Ot=null;function sg(r,e,t){r.style.position="fixed",r.style.zIndex="2147483647",r.style.background=e,r.style.color="#ffffff",r.style.border="0",r.style.borderRadius="24px",r.style.padding="12px 20px",r.style.fontSize="14px",r.style.fontWeight="600",r.style.fontFamily="system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",r.style.cursor="pointer",r.style.boxShadow="0 8px 16px rgba(0,0,0,0.18)",r.style.lineHeight="1",r.style.top="",r.style.bottom="",r.style.left="",r.style.right="";let n="16px";t==="bottom-right"?(r.style.bottom=n,r.style.right=n):t==="bottom-left"?(r.style.bottom=n,r.style.left=n):t==="top-right"?(r.style.top=n,r.style.right=n):(r.style.top=n,r.style.left=n);}function og(r,e){r.style.position="fixed",r.style.width="380px",r.style.height="600px",r.style.border="0",r.style.borderRadius="12px",r.style.boxShadow="0 25px 50px -12px rgba(0,0,0,0.4)",r.style.zIndex="2147483646",r.style.display="none",r.style.background="transparent",r.style.top="",r.style.bottom="",r.style.left="",r.style.right="",e==="bottom-right"?(r.style.bottom="80px",r.style.right="16px"):e==="bottom-left"?(r.style.bottom="80px",r.style.left="16px"):e==="top-right"?(r.style.top="80px",r.style.right="16px"):(r.style.top="80px",r.style.left="16px");}function ag(r,e){return `${r.replace(/\/+$/,"")}/embed/${encodeURIComponent(e)}`}async function lg(){try{let r=await Promise.resolve().then(()=>(Zl(),Xl)),e=typeof devicePixelRatio=="number"?devicePixelRatio:1;return {dataUrl:await r.toPng(document.body,{pixelRatio:Math.min(2,e),cacheBust:!0})}}catch(r){return {dataUrl:null,error:r instanceof Error?r.message:String(r)}}}function Jl(r,e,t){let n=r.contentWindow;if(n)try{n.postMessage(t,e);}catch(i){}}function Kl(r){if(Ot){try{Ot();}catch(f){}Ot=null;}if(typeof window=="undefined"||typeof document=="undefined")return ()=>{};let{blocfeedId:e,embedOrigin:t,color:n,label:i,position:s,user:o}=r,l=document.createElement("button");l.setAttribute("data-blocfeed-trigger",""),l.setAttribute("type","button"),l.setAttribute("aria-label","Open feedback"),l.textContent=i,sg(l,n,s);let a=document.createElement("iframe");a.setAttribute("data-blocfeed-iframe",""),a.setAttribute("title","BlocFeed feedback"),a.setAttribute("allow","microphone; clipboard-write"),a.src=ag(t,e),og(a,s);let c=()=>{a.style.display="block";};l.addEventListener("click",c);let u=f=>{if(f.origin!==t)return;let g=f.data;if(!(!g||typeof g!="object"||typeof g.kind!="string")){if(g.kind===Qm){let m={kind:ng,pageUrl:window.location.href,userAgent:navigator.userAgent,sessionId:Y(),...o!==void 0?{user:o}:{}};Jl(a,t,m);return}if(g.kind===eg){let m=g.requestId;lg().then(p=>{Jl(a,t,{kind:ig,requestId:m,dataUrl:p.dataUrl,...p.error!==void 0?{error:p.error}:{}});});return}if(g.kind===tg){try{console.log("[BlocFeed] feedback submitted",{feedback_id:g.feedback_id,viewer_url:g.viewer_url});}catch(m){}return}if(g.kind===rg){a.style.display="none";return}}};window.addEventListener("message",u),document.body.appendChild(l),document.body.appendChild(a);let d=()=>{try{l.removeEventListener("click",c);}catch(f){}try{window.removeEventListener("message",u);}catch(f){}l.parentNode&&l.parentNode.removeChild(l),a.parentNode&&a.parentNode.removeChild(a),Ot=null;};return Ot=d,d}function cg(r){let e=(r!=null?r:"inputs").toLowerCase();return e==="none"?{maskAllInputs:false,maskTextSelector:"[data-blocfeed-mask]",maskTextClass:"blocfeed-mask",blockSelector:"[data-blocfeed-block]"}:e==="text"?{maskAllInputs:true,maskTextSelector:"*",maskTextClass:"blocfeed-mask",blockSelector:"[data-blocfeed-block]"}:{maskAllInputs:true,maskTextSelector:"[data-blocfeed-mask]",maskTextClass:"blocfeed-mask",blockSelector:"[data-blocfeed-block]"}}var Zi="https://blocfeed.com",Ql="#12D393",ec="Feedback",ql="bottom-right",ug=new Set(["bottom-right","bottom-left","top-right","top-left"]);function Ji(r){if(!r)return Zi;let e=r.trim();return e&&(e.startsWith("https://")||/^http:\/\/localhost(?::\d+)?(\/.*)?$/i.test(e))?e:Zi}function Ki(r){if(!r)return ql;let e=r.toLowerCase();return ug.has(e)?e:ql}function fg(r){var m;let e=r.blocfeedId;if(!e)return null;let t=parseFloat((m=r.sample)!=null?m:"1"),n=Number.isFinite(t)&&t>0?t:1,i=r.replay!=="false",s=r.signals!=="false",o=r.mask!==void 0?cg(r.mask):void 0,l={sampling:n,sessionReplay:{enabled:i,sampling:n,...o!==void 0?{masking:o}:{}},rageClick:{enabled:s},deadClick:{enabled:s},httpFail:{enabled:s},redirectLoop:{enabled:s},formDataLoss:{enabled:s}},a=r.userId||r.userEmail||r.userName?{...r.userId!==void 0?{id:r.userId}:{},...r.userEmail!==void 0?{email:r.userEmail}:{},...r.userName!==void 0?{name:r.userName}:{}}:void 0,c=r.feedback==="true",u=Ji(r.embedOrigin),d=r.feedbackColor&&r.feedbackColor.trim()?r.feedbackColor.trim():Ql,f=r.feedbackLabel&&r.feedbackLabel.trim()?r.feedbackLabel:ec,g=Ki(r.feedbackPosition);return {blocfeedId:e,...a!==void 0?{user:a}:{},config:l,trackClicks:r.trackClicks==="true",feedback:c,embedOrigin:u,feedbackColor:d,feedbackLabel:f,feedbackPosition:g}}function nn(r){if(typeof r!="object"||r===null)return false;let e=Object.getPrototypeOf(r);return e===Object.prototype||e===null}function qi(r,e){if(e===void 0)return r;if(!nn(r)||!nn(e))return e;let t={...r};for(let n of Object.keys(e)){let i=e[n];if(i===void 0)continue;let s=t[n];nn(i)&&nn(s)?t[n]=qi(s,i):t[n]=i;}return t}function tc(){if(typeof window=="undefined")return null;let r=window.blocfeedConfig;return !r||typeof r!="object"?null:r}function rc(r){let e={};return r.sampling!==void 0&&(e.sampling=r.sampling),r.ignoreSelectors!==void 0&&(e.ignoreSelectors=r.ignoreSelectors),r.rageClick!==void 0&&(e.rageClick=r.rageClick),r.deadClick!==void 0&&(e.deadClick=r.deadClick),r.httpFail!==void 0&&(e.httpFail=r.httpFail),r.redirectLoop!==void 0&&(e.redirectLoop=r.redirectLoop),r.formDataLoss!==void 0&&(e.formDataLoss=r.formDataLoss),r.sessionReplay!==void 0&&(e.sessionReplay=r.sessionReplay),e}function Qi(r,e){var p,h,y,w,b,S,E;let t=(p=r==null?void 0:r.blocfeedId)!=null?p:e==null?void 0:e.blocfeed_id;if(!t)return null;let n=e?rc(e):{},i=r?qi(n,r.config):n,s=e==null?void 0:e.user,o=r==null?void 0:r.user,l;(o||s)&&(l={...s!=null&&s.id?{id:s.id}:{},...s!=null&&s.email?{email:s.email}:{},...s!=null&&s.name?{name:s.name}:{},...o!=null&&o.id?{id:o.id}:{},...o!=null&&o.email?{email:o.email}:{},...o!=null&&o.name?{name:o.name}:{}},!l.id&&!l.email&&!l.name&&(l=void 0));let a=(r==null?void 0:r.trackClicks)===true?true:(e==null?void 0:e.trackClicks)!==void 0?!!e.trackClicks:false,c=(r==null?void 0:r.feedback)===true?true:((h=e==null?void 0:e.feedback)==null?void 0:h.enabled)!==void 0?!!e.feedback.enabled:false,u=r?r.embedOrigin:Ji(e==null?void 0:e.embedOrigin),d=r?r.feedbackColor:((w=(y=e==null?void 0:e.feedback)==null?void 0:y.color)==null?void 0:w.trim())||Ql,f=r?r.feedbackLabel:((S=(b=e==null?void 0:e.feedback)==null?void 0:b.label)==null?void 0:S.trim())||ec,g=r?r.feedbackPosition:Ki((E=e==null?void 0:e.feedback)==null?void 0:E.position),m=(e==null?void 0:e.autoInstall)!==false;return {blocfeedId:t,...l!==void 0?{user:l}:{},config:i,trackClicks:a,feedback:c,embedOrigin:u,feedbackColor:d,feedbackLabel:f,feedbackPosition:g,autoInstall:m}}var dg=60;function hg(){if(typeof document=="undefined")return ()=>{};let r=[],e=t=>{var o,l;let n=Date.now();if(r=r.filter(a=>n-a<6e4),r.length>=dg)return;r.push(n);let i=t.target;if(!i||!(i instanceof Element))return;let s=null;try{s=(l=(o=i.innerText)==null?void 0:o.trim().slice(0,80))!=null?l:null;}catch(a){s=null;}try{Wi("click",{tag:i.tagName.toLowerCase(),text:s||null,url:window.location.href});}catch(a){}};return document.addEventListener("click",e,{capture:true,passive:true}),()=>{try{document.removeEventListener("click",e,{capture:!0});}catch(t){}}}var X=null,Ie=null,sn=null,Dt=null,xe=false;function es(r){var e;if(!Ie){if((e=r.user)!=null&&e.id&&Zr(r.user.id),Ie=new Kr({blocfeedId:r.blocfeedId,config:r.config,extraSdkFeatures:["script-tag"]}),Ie.install(),r.trackClicks&&!Dt&&(Dt=hg()),r.feedback)try{sn=Kl({blocfeedId:r.blocfeedId,embedOrigin:r.embedOrigin,color:r.feedbackColor,label:r.feedbackLabel,position:r.feedbackPosition,...r.user!==void 0?{user:r.user}:{}});}catch(t){}xe=true;}}function ts(){if(Ie){try{Ie.uninstall();}catch(r){}Ie=null;}if(sn){try{sn();}catch(r){}sn=null;}if(Dt){try{Dt();}catch(r){}Dt=null;}}function pg(r){var e,t;if(!(!r||typeof r!="object")){if(X){let n=rc(r),i={...X,config:qi(X.config,n)};r.user!==void 0&&(i.user={...(e=X.user)!=null?e:{},...r.user.id!==void 0?{id:r.user.id}:{},...r.user.email!==void 0?{email:r.user.email}:{},...r.user.name!==void 0?{name:r.user.name}:{}}),r.trackClicks!==void 0&&(i.trackClicks=!!r.trackClicks),r.embedOrigin!==void 0&&(i.embedOrigin=Ji(r.embedOrigin)),r.feedback&&(r.feedback.enabled!==void 0&&(i.feedback=!!r.feedback.enabled),r.feedback.color!==void 0&&r.feedback.color.trim()&&(i.feedbackColor=r.feedback.color.trim()),r.feedback.label!==void 0&&r.feedback.label.trim()&&(i.feedbackLabel=r.feedback.label),r.feedback.position!==void 0&&(i.feedbackPosition=Ki(r.feedback.position))),r.autoInstall!==void 0&&(i.autoInstall=!!r.autoInstall),r.blocfeed_id!==void 0&&r.blocfeed_id&&(i.blocfeedId=r.blocfeed_id),X=i;}else X=Qi(null,r);xe&&X&&(ts(),xe=false,es(X)),(t=r.user)!=null&&t.id&&Zr(r.user.id);}}function mg(r,e){var t;Zr(r),X&&(X.user={...(t=X.user)!=null?t:{},id:r});}function gg(r,e){Wi(r,e);}function yg(){if(!(xe&&Ie)){if(X||(X=Qi(null,tc())),!X){console.warn("[BlocFeed] install() called but no blocfeed_id is configured");return}es(X);}}function bg(){ts(),xe=false;}var nc={configure:pg,identify:mg,track:gg,install:yg,uninstall:bg,SDK_VERSION:Jr};function wg(r){if(typeof window=="undefined")return;let e=window.BlocFeed;if(e&&Array.isArray(e._q))for(let t of e._q){if(!Array.isArray(t)||typeof t[0]!="string")continue;let[n,...i]=t,s=r[n];if(typeof s=="function")try{s.apply(r,i);}catch(o){console.error("[BlocFeed] queued call failed:",n,o);}}window.BlocFeed=r;}function ic(){if(typeof document=="undefined")return null;let r=document.currentScript;return r&&r.dataset&&r.dataset.blocfeedId?r:document.querySelector("script[data-blocfeed-id]")}function on(){if(typeof window=="undefined"||typeof document=="undefined")return;let r=ic(),e=r?fg(r.dataset):null,t=tc(),n=Qi(e,t);if(!n){r&&console.warn("[BlocFeed] script-tag init: blocfeed_id missing from both data-* and window.blocfeedConfig");return}X=n,wg(nc),X.autoInstall&&!xe&&es(X);}if(typeof window!="undefined"){let r=window.BlocFeed;(!r||!Array.isArray(r._q))&&(window.BlocFeed=nc),ic()?on():typeof document!="undefined"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",on,{once:true}):on());}function _b(){return Ie}function Nb(){ts(),X=null,xe=false;}function Ob(){on();}function Db(){return X}function Lb(){return xe}/*! Bundled license information:
|
|
55
|
+
or you can use record.mirror to access the mirror instance during recording.`,co={map:{},getId(){return console.error(ze),-1},getNode(){return console.error(ze),null},removeNodeFromMap(){console.error(ze);},has(){return console.error(ze),false},reset(){console.error(ze);}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(co=new Proxy(co,{get(r,e,t){return e==="map"&&console.error(ze),Reflect.get(r,e,t)}}));function It(r,e,t={}){let n=null,i=0;return function(...s){let o=Date.now();!i&&t.leading===false&&(i=o);let l=e-(o-i),a=this;l<=0||l>e?(n&&(clearTimeout(n),n=null),i=o,r.apply(a,s)):!n&&t.trailing!==false&&(n=setTimeout(()=>{i=t.leading===false?0:Date.now(),n=null,r.apply(a,s);},l));}}function Gr(r,e,t,n,i=window){let s=i.Object.getOwnPropertyDescriptor(r,e);return i.Object.defineProperty(r,e,n?t:{set(o){setTimeout(()=>{t.set.call(this,o);},0),s&&s.set&&s.set.call(this,o);}}),()=>Gr(r,e,s||{},true)}var _r=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(_r=()=>new Date().getTime());function Za(r){var e,t,n,i;let s=r.document;return {left:s.scrollingElement?s.scrollingElement.scrollLeft:r.pageXOffset!==void 0?r.pageXOffset:s.documentElement.scrollLeft||(s==null?void 0:s.body)&&((e=x.parentElement(s.body))==null?void 0:e.scrollLeft)||((t=s==null?void 0:s.body)==null?void 0:t.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:r.pageYOffset!==void 0?r.pageYOffset:(s==null?void 0:s.documentElement.scrollTop)||(s==null?void 0:s.body)&&((n=x.parentElement(s.body))==null?void 0:n.scrollTop)||((i=s==null?void 0:s.body)==null?void 0:i.scrollTop)||0}}function Ka(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function qa(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Qa(r){return r?r.nodeType===r.ELEMENT_NODE?r:x.parentElement(r):null}function ee(r,e,t,n){if(!r)return false;let i=Qa(r);if(!i)return false;try{if(typeof e=="string"){if(i.classList.contains(e)||n&&i.closest("."+e)!==null)return !0}else if(Cr(i,e,n))return !0}catch(s){}return !!(t&&(i.matches(t)||n&&i.closest(t)!==null))}function Sp(r,e){return e.getId(r)!==-1}function In(r,e,t){return r.tagName==="TITLE"&&t.headTitleMutations?true:e.getId(r)===mt}function el(r,e){if(dt(r))return false;let t=e.getId(r);if(!e.has(t))return true;let n=x.parentNode(r);return n&&n.nodeType===r.DOCUMENT_NODE?false:n?el(n,e):true}function ii(r){return !!r.changedTouches}function Cp(r=window){"NodeList"in r&&!r.NodeList.prototype.forEach&&(r.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in r&&!r.DOMTokenList.prototype.forEach&&(r.DOMTokenList.prototype.forEach=Array.prototype.forEach);}function tl(r,e){return !!(r.nodeName==="IFRAME"&&e.getMeta(r))}function rl(r,e){return !!(r.nodeName==="LINK"&&r.nodeType===r.ELEMENT_NODE&&r.getAttribute&&r.getAttribute("rel")==="stylesheet"&&e.getMeta(r))}function si(r){return r?r instanceof ni&&"shadowRoot"in r?!!r.shadowRoot:!!x.shadowRoot(r):false}var oi=class{constructor(){S(this,"id",1),S(this,"styleIDMap",new WeakMap),S(this,"idStyleMap",new Map);}getId(e){var t;return (t=this.styleIDMap.get(e))!=null?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return t===void 0?n=this.id++:n=t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}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 nl(r){var e;let t=null;return "getRootNode"in r&&((e=x.getRootNode(r))==null?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&x.host(x.getRootNode(r))&&(t=x.host(x.getRootNode(r))),t}function Ep(r){let e=r,t;for(;t=nl(e);)e=t;return e}function Ip(r){let e=x.ownerDocument(r);if(!e)return false;let t=Ep(r);return x.contains(e,t)}function il(r){let e=x.ownerDocument(r);return e?x.contains(e,r)||Ip(r):false}var T=(r=>(r[r.DomContentLoaded=0]="DomContentLoaded",r[r.Load=1]="Load",r[r.FullSnapshot=2]="FullSnapshot",r[r.IncrementalSnapshot=3]="IncrementalSnapshot",r[r.Meta=4]="Meta",r[r.Custom=5]="Custom",r[r.Plugin=6]="Plugin",r))(T||{}),R=(r=>(r[r.Mutation=0]="Mutation",r[r.MouseMove=1]="MouseMove",r[r.MouseInteraction=2]="MouseInteraction",r[r.Scroll=3]="Scroll",r[r.ViewportResize=4]="ViewportResize",r[r.Input=5]="Input",r[r.TouchMove=6]="TouchMove",r[r.MediaInteraction=7]="MediaInteraction",r[r.StyleSheetRule=8]="StyleSheetRule",r[r.CanvasMutation=9]="CanvasMutation",r[r.Font=10]="Font",r[r.Log=11]="Log",r[r.Drag=12]="Drag",r[r.StyleDeclaration=13]="StyleDeclaration",r[r.Selection=14]="Selection",r[r.AdoptedStyleSheet=15]="AdoptedStyleSheet",r[r.CustomElement=16]="CustomElement",r))(R||{}),te=(r=>(r[r.MouseUp=0]="MouseUp",r[r.MouseDown=1]="MouseDown",r[r.Click=2]="Click",r[r.ContextMenu=3]="ContextMenu",r[r.DblClick=4]="DblClick",r[r.Focus=5]="Focus",r[r.Blur=6]="Blur",r[r.TouchStart=7]="TouchStart",r[r.TouchMove_Departed=8]="TouchMove_Departed",r[r.TouchEnd=9]="TouchEnd",r[r.TouchCancel=10]="TouchCancel",r))(te||{}),ye=(r=>(r[r.Mouse=0]="Mouse",r[r.Pen=1]="Pen",r[r.Touch=2]="Touch",r))(ye||{}),et=(r=>(r[r["2D"]=0]="2D",r[r.WebGL=1]="WebGL",r[r.WebGL2=2]="WebGL2",r))(et||{}),Ve=(r=>(r[r.Play=0]="Play",r[r.Pause=1]="Pause",r[r.Seeked=2]="Seeked",r[r.VolumeChange=3]="VolumeChange",r[r.RateChange=4]="RateChange",r))(Ve||{});var sl=(r=>(r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r))(sl||{});function uo(r){return "__ln"in r}var ai=class{constructor(){S(this,"length",0),S(this,"head",null),S(this,"tail",null);}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=(t==null?void 0:t.next)||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&uo(e.previousSibling)){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t);}else if(e.nextSibling&&uo(e.nextSibling)&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t);}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(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--);}},fo=(r,e)=>`${r}@${e}`,li=class{constructor(){S(this,"frozen",false),S(this,"locked",false),S(this,"texts",[]),S(this,"attributes",[]),S(this,"attributeMap",new WeakMap),S(this,"removes",[]),S(this,"mapRemoves",[]),S(this,"movedMap",{}),S(this,"addedSet",new Set),S(this,"movedSet",new Set),S(this,"droppedSet",new Set),S(this,"removesSubTreeCache",new Set),S(this,"mutationCb"),S(this,"blockClass"),S(this,"blockSelector"),S(this,"maskTextClass"),S(this,"maskTextSelector"),S(this,"inlineStylesheet"),S(this,"maskInputOptions"),S(this,"maskTextFn"),S(this,"maskInputFn"),S(this,"keepIframeSrcFn"),S(this,"recordCanvas"),S(this,"inlineImages"),S(this,"slimDOMOptions"),S(this,"dataURLOptions"),S(this,"doc"),S(this,"mirror"),S(this,"iframeManager"),S(this,"stylesheetManager"),S(this,"shadowDomManager"),S(this,"canvasManager"),S(this,"processedNodeManager"),S(this,"unattachedDoc"),S(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit();}),S(this,"emit",()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new ai,i=a=>{let c=a,u=mt;for(;u===mt;)c=c&&c.nextSibling,u=c&&this.mirror.getId(c);return u},s=a=>{let c=x.parentNode(a);if(!c||!il(a))return;let u=false;if(a.nodeType===Node.TEXT_NODE){let m=c.tagName;if(m==="TEXTAREA")return;m==="STYLE"&&this.addedSet.has(c)&&(u=true);}let f=dt(c)?this.mirror.getId(nl(a)):this.mirror.getId(c),d=i(a);if(f===-1||d===-1)return n.addNode(a);let g=je(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:true,newlyAddedElement:true,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:m=>{tl(m,this.mirror)&&this.iframeManager.addIframe(m),rl(m,this.mirror)&&this.stylesheetManager.trackLinkElement(m),si(a)&&this.shadowDomManager.addShadowRoot(x.shadowRoot(a),this.doc);},onIframeLoad:(m,p)=>{this.iframeManager.attachIframe(m,p),this.shadowDomManager.observeAttachShadow(m);},onStylesheetLoad:(m,p)=>{this.stylesheetManager.attachLinkElement(m,p);},cssCaptured:u});g&&(e.push({parentId:f,nextId:d,node:g}),t.add(g.id));};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let a of this.movedSet)ho(this.removesSubTreeCache,a,this.mirror)&&!this.movedSet.has(x.parentNode(a))||s(a);for(let a of this.addedSet)!po(this.droppedSet,a)&&!ho(this.removesSubTreeCache,a,this.mirror)||po(this.movedSet,a)?s(a):this.droppedSet.add(a);let o=null;for(;n.length;){let a=null;if(o){let c=this.mirror.getId(x.parentNode(o.value)),u=i(o.value);c!==-1&&u!==-1&&(a=o);}if(!a){let c=n.tail;for(;c;){let u=c;if(c=c.previous,u){let f=this.mirror.getId(x.parentNode(u.value));if(i(u.value)===-1)continue;if(f!==-1){a=u;break}else {let g=u.value,m=x.parentNode(g);if(m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let p=x.host(m);if(this.mirror.getId(p)!==-1){a=u;break}}}}}}if(!a){for(;n.head;)n.removeNode(n.head.value);break}o=a.previous,n.removeNode(a.value),s(a.value);}let l={texts:this.texts.map(a=>{let c=a.node,u=x.parentNode(c);return u&&u.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(u),{id:this.mirror.getId(c),value:a.value}}).filter(a=>!t.has(a.id)).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>{let{attributes:c}=a;if(typeof c.style=="string"){let u=JSON.stringify(a.styleDiff),f=JSON.stringify(a._unchangedStyles);u.length<c.style.length&&(u+f).split("var(").length===c.style.split("var(").length&&(c.style=a.styleDiff);}return {id:this.mirror.getId(a.node),attributes:c}}).filter(a=>!t.has(a.id)).filter(a=>this.mirror.has(a.id)),removes:this.removes,adds:e};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.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(l));}),S(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 n=Array.from(x.childNodes(e),i=>x.textContent(i)||"").join("");t.attributes.value=wr({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:vr(e),value:n,maskInputFn:this.maskInputFn});}),S(this,"processMutation",e=>{if(!In(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case "characterData":{let t=x.textContent(e.target);!ee(e.target,this.blockClass,this.blockSelector,false)&&t!==e.oldValue&&this.texts.push({value:To(e.target,this.maskTextClass,this.maskTextSelector,true)&&t?this.maskTextFn?this.maskTextFn(t,Qa(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case "attributes":{let t=e.target,n=e.attributeName,i=e.target.getAttribute(n);if(n==="value"){let o=vr(t);i=wr({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:o,value:i,maskInputFn:this.maskInputFn});}if(ee(e.target,this.blockClass,this.blockSelector,false)||i===e.oldValue)return;let s=this.attributeMap.get(e.target);if(t.tagName==="IFRAME"&&n==="src"&&!this.keepIframeSrcFn(i))if(!t.contentDocument)n="rr_src";else return;if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),n==="type"&&t.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&t.setAttribute("data-rr-is-password","true"),!Mo(t.tagName,n))if(s.attributes[n]=Ro(this.doc,Ne(t.tagName),Ne(n),i),n==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument();}catch(l){this.unattachedDoc=this.doc;}let o=this.unattachedDoc.createElement("span");e.oldValue&&o.setAttribute("style",e.oldValue);for(let l of Array.from(t.style)){let a=t.style.getPropertyValue(l),c=t.style.getPropertyPriority(l);a!==o.style.getPropertyValue(l)||c!==o.style.getPropertyPriority(l)?c===""?s.styleDiff[l]=a:s.styleDiff[l]=[a,c]:s._unchangedStyles[l]=[a,c];}for(let l of Array.from(o.style))t.style.getPropertyValue(l)===""&&(s.styleDiff[l]=false);}else n==="open"&&t.tagName==="DIALOG"&&(t.matches("dialog:modal")?s.attributes.rr_open_mode="modal":s.attributes.rr_open_mode="non-modal");break}case "childList":{if(ee(e.target,this.blockClass,this.blockSelector,true))return;if(e.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),i=dt(e.target)?this.mirror.getId(x.host(e.target)):this.mirror.getId(e.target);ee(e.target,this.blockClass,this.blockSelector,false)||In(t,this.mirror,this.slimDOMOptions)||!Sp(t,this.mirror)||(this.addedSet.has(t)?(ci(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&n===-1||el(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[fo(n,i)]?ci(this.movedSet,t):(this.removes.push({parentId:i,id:n,isShadow:dt(e.target)&&ht(e.target)?true:void 0}),xp(t,this.removesSubTreeCache))),this.mapRemoves.push(t));});break}}}),S(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(In(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&n!==-1&&(this.movedMap[fo(this.mirror.getId(e),n)]=true);}else this.addedSet.add(e),this.droppedSet.delete(e);ee(e,this.blockClass,this.blockSelector,false)||(x.childNodes(e).forEach(n=>this.genAdds(n)),si(e)&&x.childNodes(x.shadowRoot(e)).forEach(n=>{this.processedNodeManager.add(n,this),this.genAdds(n,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=true,this.canvasManager.freeze();}unfreeze(){this.frozen=false,this.canvasManager.unfreeze(),this.emit();}isFrozen(){return this.frozen}lock(){this.locked=true,this.canvasManager.lock();}unlock(){this.locked=false,this.canvasManager.unlock(),this.emit();}reset(){this.shadowDomManager.reset(),this.canvasManager.reset();}};function ci(r,e){r.delete(e),x.childNodes(e).forEach(t=>ci(r,t));}function xp(r,e){let t=[r];for(;t.length;){let n=t.pop();e.has(n)||(e.add(n),x.childNodes(n).forEach(i=>t.push(i)));}}function ho(r,e,t){return r.size===0?false:Rp(r,e)}function Rp(r,e,t){let n=x.parentNode(e);return n?r.has(n):false}function po(r,e){return r.size===0?false:ol(r,e)}function ol(r,e){let t=x.parentNode(e);return t?r.has(t)?true:ol(r,t):false}var pt;function Mp(r){pt=r;}function Tp(){pt=void 0;}var M=r=>pt?(...t)=>{try{return r(...t)}catch(n){if(pt&&pt(n)===true)return;throw n}}:r,_e=[];function At(r){try{if("composedPath"in r){let e=r.composedPath();if(e.length)return e[0]}else if("path"in r&&r.path.length)return r.path[0]}catch(e){}return r&&r.target}function al(r,e){let t=new li;_e.push(t),t.init(r);let n=new(Ja())(M(t.processMutations.bind(t)));return n.observe(e,{attributes:true,attributeOldValue:true,characterData:true,characterDataOldValue:true,childList:true,subtree:true}),n}function Ap({mousemoveCb:r,sampling:e,doc:t,mirror:n}){if(e.mousemove===false)return ()=>{};let i=typeof e.mousemove=="number"?e.mousemove:50,s=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500,o=[],l,a=It(M(f=>{let d=Date.now()-l;r(o.map(g=>(g.timeOffset-=d,g)),f),o=[],l=null;}),s),c=M(It(M(f=>{let d=At(f),{clientX:g,clientY:m}=ii(f)?f.changedTouches[0]:f;l||(l=_r()),o.push({x:g,y:m,id:n.getId(d),timeOffset:_r()-l}),a(typeof DragEvent!="undefined"&&f instanceof DragEvent?R.Drag:f instanceof MouseEvent?R.MouseMove:R.TouchMove);}),i,{trailing:!1})),u=[Q("mousemove",c,t),Q("touchmove",c,t),Q("drag",c,t)];return M(()=>{u.forEach(f=>f());})}function kp({mouseInteractionCb:r,doc:e,mirror:t,blockClass:n,blockSelector:i,sampling:s}){if(s.mouseInteraction===false)return ()=>{};let o=s.mouseInteraction===true||s.mouseInteraction===void 0?{}:s.mouseInteraction,l=[],a=null,c=u=>f=>{let d=At(f);if(ee(d,n,i,true))return;let g=null,m=u;if("pointerType"in f){switch(f.pointerType){case "mouse":g=ye.Mouse;break;case "touch":g=ye.Touch;break;case "pen":g=ye.Pen;break}g===ye.Touch?te[u]===te.MouseDown?m="TouchStart":te[u]===te.MouseUp&&(m="TouchEnd"):ye.Pen;}else ii(f)&&(g=ye.Touch);g!==null?(a=g,(m.startsWith("Touch")&&g===ye.Touch||m.startsWith("Mouse")&&g===ye.Mouse)&&(g=null)):te[u]===te.Click&&(g=a,a=null);let p=ii(f)?f.changedTouches[0]:f;if(!p)return;let h=t.getId(d),{clientX:y,clientY:w}=p;M(r)({type:te[m],id:h,x:y,y:w,...g!==null&&{pointerType:g}});};return Object.keys(te).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&o[u]!==false).forEach(u=>{let f=Ne(u),d=c(u);if(window.PointerEvent)switch(te[u]){case te.MouseDown:case te.MouseUp:f=f.replace("mouse","pointer");break;case te.TouchStart:case te.TouchEnd:return}l.push(Q(f,d,e));}),M(()=>{l.forEach(u=>u());})}function ll({scrollCb:r,doc:e,mirror:t,blockClass:n,blockSelector:i,sampling:s}){let o=M(It(M(l=>{let a=At(l);if(!a||ee(a,n,i,!0))return;let c=t.getId(a);if(a===e&&e.defaultView){let u=Za(e.defaultView);r({id:c,x:u.left,y:u.top});}else r({id:c,x:a.scrollLeft,y:a.scrollTop});}),s.scroll||100));return Q("scroll",o,e)}function _p({viewportResizeCb:r},{win:e}){let t=-1,n=-1,i=M(It(M(()=>{let s=Ka(),o=qa();(t!==s||n!==o)&&(r({width:Number(o),height:Number(s)}),t=s,n=o);}),200));return Q("resize",i,e)}var Np=["INPUT","TEXTAREA","SELECT"],mo=new WeakMap;function Op({inputCb:r,doc:e,mirror:t,blockClass:n,blockSelector:i,ignoreClass:s,ignoreSelector:o,maskInputOptions:l,maskInputFn:a,sampling:c,userTriggeredOnInput:u}){function f(w){let b=At(w),v=w.isTrusted,C=b&&b.tagName;if(b&&C==="OPTION"&&(b=x.parentElement(b)),!b||!C||Np.indexOf(C)<0||ee(b,n,i,true)||b.classList.contains(s)||o&&b.matches(o))return;let I=b.value,D=false,A=vr(b)||"";A==="radio"||A==="checkbox"?D=b.checked:(l[C.toLowerCase()]||l[A])&&(I=wr({element:b,maskInputOptions:l,tagName:C,type:A,value:I,maskInputFn:a})),d(b,u?{text:I,isChecked:D,userTriggered:v}:{text:I,isChecked:D});let L=b.name;A==="radio"&&L&&D&&e.querySelectorAll(`input[type="radio"][name="${L}"]`).forEach($=>{if($!==b){let P=$.value;d($,u?{text:P,isChecked:!D,userTriggered:false}:{text:P,isChecked:!D});}});}function d(w,b){let v=mo.get(w);if(!v||v.text!==b.text||v.isChecked!==b.isChecked){mo.set(w,b);let C=t.getId(w);M(r)({...b,id:C});}}let m=(c.input==="last"?["change"]:["input","change"]).map(w=>Q(w,M(f),e)),p=e.defaultView;if(!p)return ()=>{m.forEach(w=>w());};let h=p.Object.getOwnPropertyDescriptor(p.HTMLInputElement.prototype,"value"),y=[[p.HTMLInputElement.prototype,"value"],[p.HTMLInputElement.prototype,"checked"],[p.HTMLSelectElement.prototype,"value"],[p.HTMLTextAreaElement.prototype,"value"],[p.HTMLSelectElement.prototype,"selectedIndex"],[p.HTMLOptionElement.prototype,"selected"]];return h&&h.set&&m.push(...y.map(w=>Gr(w[0],w[1],{set(){M(f)({target:this,isTrusted:false});}},false,p))),M(()=>{m.forEach(w=>w());})}function Nr(r){let e=[];function t(n,i){if(ur("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||ur("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||ur("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||ur("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){let o=Array.from(n.parentRule.cssRules).indexOf(n);i.unshift(o);}else if(n.parentStyleSheet){let o=Array.from(n.parentStyleSheet.cssRules).indexOf(n);i.unshift(o);}return i}return t(r,e)}function Ie(r,e,t){let n,i;return r?(r.ownerNode?n=e.getId(r.ownerNode):i=t.getId(r),{styleId:i,id:n}):{}}function Dp({styleSheetRuleCb:r,mirror:e,stylesheetManager:t},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return ()=>{};let i=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:M((u,f,d)=>{let[g,m]=d,{id:p,styleId:h}=Ie(f,e,t.styleMirror);return (p&&p!==-1||h&&h!==-1)&&r({id:p,styleId:h,adds:[{rule:g,index:m}]}),u.apply(f,d)})}),n.CSSStyleSheet.prototype.addRule=function(u,f,d=this.cssRules.length){let g=`${u} { ${f} }`;return n.CSSStyleSheet.prototype.insertRule.apply(this,[g,d])};let s=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:M((u,f,d)=>{let[g]=d,{id:m,styleId:p}=Ie(f,e,t.styleMirror);return (m&&m!==-1||p&&p!==-1)&&r({id:m,styleId:p,removes:[{index:g}]}),u.apply(f,d)})}),n.CSSStyleSheet.prototype.removeRule=function(u){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[u])};let o;n.CSSStyleSheet.prototype.replace&&(o=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:M((u,f,d)=>{let[g]=d,{id:m,styleId:p}=Ie(f,e,t.styleMirror);return (m&&m!==-1||p&&p!==-1)&&r({id:m,styleId:p,replace:g}),u.apply(f,d)})}));let l;n.CSSStyleSheet.prototype.replaceSync&&(l=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:M((u,f,d)=>{let[g]=d,{id:m,styleId:p}=Ie(f,e,t.styleMirror);return (m&&m!==-1||p&&p!==-1)&&r({id:m,styleId:p,replaceSync:g}),u.apply(f,d)})}));let a={};fr("CSSGroupingRule")?a.CSSGroupingRule=n.CSSGroupingRule:(fr("CSSMediaRule")&&(a.CSSMediaRule=n.CSSMediaRule),fr("CSSConditionRule")&&(a.CSSConditionRule=n.CSSConditionRule),fr("CSSSupportsRule")&&(a.CSSSupportsRule=n.CSSSupportsRule));let c={};return Object.entries(a).forEach(([u,f])=>{c[u]={insertRule:f.prototype.insertRule,deleteRule:f.prototype.deleteRule},f.prototype.insertRule=new Proxy(c[u].insertRule,{apply:M((d,g,m)=>{let[p,h]=m,{id:y,styleId:w}=Ie(g.parentStyleSheet,e,t.styleMirror);return (y&&y!==-1||w&&w!==-1)&&r({id:y,styleId:w,adds:[{rule:p,index:[...Nr(g),h||0]}]}),d.apply(g,m)})}),f.prototype.deleteRule=new Proxy(c[u].deleteRule,{apply:M((d,g,m)=>{let[p]=m,{id:h,styleId:y}=Ie(g.parentStyleSheet,e,t.styleMirror);return (h&&h!==-1||y&&y!==-1)&&r({id:h,styleId:y,removes:[{index:[...Nr(g),p]}]}),d.apply(g,m)})});}),M(()=>{n.CSSStyleSheet.prototype.insertRule=i,n.CSSStyleSheet.prototype.deleteRule=s,o&&(n.CSSStyleSheet.prototype.replace=o),l&&(n.CSSStyleSheet.prototype.replaceSync=l),Object.entries(a).forEach(([u,f])=>{f.prototype.insertRule=c[u].insertRule,f.prototype.deleteRule=c[u].deleteRule;});})}function cl({mirror:r,stylesheetManager:e},t){var n,i,s;let o=null;t.nodeName==="#document"?o=r.getId(t):o=r.getId(x.host(t));let l=t.nodeName==="#document"?(n=t.defaultView)==null?void 0:n.Document:(s=(i=t.ownerDocument)==null?void 0:i.defaultView)==null?void 0:s.ShadowRoot,a=l!=null&&l.prototype?Object.getOwnPropertyDescriptor(l==null?void 0:l.prototype,"adoptedStyleSheets"):void 0;return o===null||o===-1||!l||!a?()=>{}:(Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){var c;return (c=a.get)==null?void 0:c.call(this)},set(c){var u;let f=(u=a.set)==null?void 0:u.call(this,c);if(o!==null&&o!==-1)try{e.adoptStyleSheets(c,o);}catch(d){}return f}}),M(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set});}))}function Lp({styleDeclarationCb:r,mirror:e,ignoreCSSAttributes:t,stylesheetManager:n},{win:i}){let s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:M((l,a,c)=>{var u;let[f,d,g]=c;if(t.has(f))return s.apply(a,[f,d,g]);let{id:m,styleId:p}=Ie((u=a.parentRule)==null?void 0:u.parentStyleSheet,e,n.styleMirror);return (m&&m!==-1||p&&p!==-1)&&r({id:m,styleId:p,set:{property:f,value:d,priority:g},index:Nr(a.parentRule)}),l.apply(a,c)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:M((l,a,c)=>{var u;let[f]=c;if(t.has(f))return o.apply(a,[f]);let{id:d,styleId:g}=Ie((u=a.parentRule)==null?void 0:u.parentStyleSheet,e,n.styleMirror);return (d&&d!==-1||g&&g!==-1)&&r({id:d,styleId:g,remove:{property:f},index:Nr(a.parentRule)}),l.apply(a,c)})}),M(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=o;})}function Pp({mediaInteractionCb:r,blockClass:e,blockSelector:t,mirror:n,sampling:i,doc:s}){let o=M(a=>It(M(c=>{let u=At(c);if(!u||ee(u,e,t,!0))return;let{currentTime:f,volume:d,muted:g,playbackRate:m,loop:p}=u;r({type:a,id:n.getId(u),currentTime:f,volume:d,muted:g,playbackRate:m,loop:p});}),i.media||500)),l=[Q("play",o(Ve.Play),s),Q("pause",o(Ve.Pause),s),Q("seeked",o(Ve.Seeked),s),Q("volumechange",o(Ve.VolumeChange),s),Q("ratechange",o(Ve.RateChange),s)];return M(()=>{l.forEach(a=>a());})}function Fp({fontCb:r,doc:e}){let t=e.defaultView;if(!t)return ()=>{};let n=[],i=new WeakMap,s=t.FontFace;t.FontFace=function(a,c,u){let f=new s(a,c,u);return i.set(f,{family:a,buffer:typeof c!="string",descriptors:u,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),f};let o=Le(e.fonts,"add",function(l){return function(a){return setTimeout(M(()=>{let c=i.get(a);c&&(r(c),i.delete(a));}),0),l.apply(this,[a])}});return n.push(()=>{t.FontFace=s;}),n.push(o),M(()=>{n.forEach(l=>l());})}function $p(r){let{doc:e,mirror:t,blockClass:n,blockSelector:i,selectionCb:s}=r,o=true,l=M(()=>{let a=e.getSelection();if(!a||o&&(a!=null&&a.isCollapsed))return;o=a.isCollapsed||!1;let c=[],u=a.rangeCount||0;for(let f=0;f<u;f++){let d=a.getRangeAt(f),{startContainer:g,startOffset:m,endContainer:p,endOffset:h}=d;ee(g,n,i,!0)||ee(p,n,i,!0)||c.push({start:t.getId(g),startOffset:m,end:t.getId(p),endOffset:h});}s({ranges:c});});return l(),Q("selectionchange",l)}function Bp({doc:r,customElementCb:e}){let t=r.defaultView;return !t||!t.customElements?()=>{}:Le(t.customElements,"define",function(i){return function(s,o,l){try{e({define:{name:s}});}catch(a){console.warn(`Custom element callback failed for ${s}`);}return i.apply(this,[s,o,l])}})}function Up(r,e){let{mutationCb:t,mousemoveCb:n,mouseInteractionCb:i,scrollCb:s,viewportResizeCb:o,inputCb:l,mediaInteractionCb:a,styleSheetRuleCb:c,styleDeclarationCb:u,canvasMutationCb:f,fontCb:d,selectionCb:g,customElementCb:m}=r;r.mutationCb=(...p)=>{e.mutation&&e.mutation(...p),t(...p);},r.mousemoveCb=(...p)=>{e.mousemove&&e.mousemove(...p),n(...p);},r.mouseInteractionCb=(...p)=>{e.mouseInteraction&&e.mouseInteraction(...p),i(...p);},r.scrollCb=(...p)=>{e.scroll&&e.scroll(...p),s(...p);},r.viewportResizeCb=(...p)=>{e.viewportResize&&e.viewportResize(...p),o(...p);},r.inputCb=(...p)=>{e.input&&e.input(...p),l(...p);},r.mediaInteractionCb=(...p)=>{e.mediaInteaction&&e.mediaInteaction(...p),a(...p);},r.styleSheetRuleCb=(...p)=>{e.styleSheetRule&&e.styleSheetRule(...p),c(...p);},r.styleDeclarationCb=(...p)=>{e.styleDeclaration&&e.styleDeclaration(...p),u(...p);},r.canvasMutationCb=(...p)=>{e.canvasMutation&&e.canvasMutation(...p),f(...p);},r.fontCb=(...p)=>{e.font&&e.font(...p),d(...p);},r.selectionCb=(...p)=>{e.selection&&e.selection(...p),g(...p);},r.customElementCb=(...p)=>{e.customElement&&e.customElement(...p),m(...p);};}function Wp(r,e={}){let t=r.doc.defaultView;if(!t)return ()=>{};Up(r,e);let n;r.recordDOM&&(n=al(r,r.doc));let i=Ap(r),s=kp(r),o=ll(r),l=_p(r,{win:t}),a=Op(r),c=Pp(r),u=()=>{},f=()=>{},d=()=>{},g=()=>{};r.recordDOM&&(u=Dp(r,{win:t}),f=cl(r,r.doc),d=Lp(r,{win:t}),r.collectFonts&&(g=Fp(r)));let m=$p(r),p=Bp(r),h=[];for(let y of r.plugins)h.push(y.observer(y.callback,t,y.options));return M(()=>{_e.forEach(y=>y.reset()),n==null||n.disconnect(),i(),s(),o(),l(),a(),c(),u(),f(),d(),g(),m(),p(),h.forEach(y=>y());})}function ur(r){return typeof window[r]!="undefined"}function fr(r){return !!(typeof window[r]!="undefined"&&window[r].prototype&&"insertRule"in window[r].prototype&&"deleteRule"in window[r].prototype)}var Or=class{constructor(e){S(this,"iframeIdToRemoteIdMap",new WeakMap),S(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e;}getId(e,t,n,i){let s=n||this.getIdToRemoteIdMap(e),o=i||this.getRemoteIdToIdMap(e),l=s.get(t);return l||(l=this.generateIdFn(),s.set(t,l),o.set(l,t)),l}getIds(e,t){let n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(s=>this.getId(e,s,n,i))}getRemoteId(e,t,n){let i=n||this.getRemoteIdToIdMap(e);if(typeof t!="number")return t;let s=i.get(t);return s||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(i=>this.getRemoteId(e,i,n))}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}},ui=class{constructor(e){S(this,"iframes",new WeakMap),S(this,"crossOriginIframeMap",new WeakMap),S(this,"crossOriginIframeMirror",new Or(xo)),S(this,"crossOriginIframeStyleMirror"),S(this,"crossOriginIframeRootIdMap",new WeakMap),S(this,"mirror"),S(this,"mutationCb"),S(this,"wrappedEmit"),S(this,"loadListener"),S(this,"stylesheetManager"),S(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Or(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,true),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e);}addLoadListener(e){this.loadListener=e;}attachIframe(e,t){var n,i;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:true}),this.recordCrossOriginIframes&&((n=e.contentWindow)==null||n.addEventListener("message",this.handleMessage.bind(this))),(i=this.loadListener)==null||i.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){let t=e;if(t.data.type!=="rrweb"||t.origin!==t.data.origin||!e.source)return;let i=this.crossOriginIframeMap.get(e.source);if(!i)return;let s=this.transformCrossOriginEvent(i,t.data.event);s&&this.wrappedEmit(s,t.data.isCheckout);}transformCrossOriginEvent(e,t){var n;switch(t.type){case T.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:T.IncrementalSnapshot,data:{source:R.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:true}}}case T.Meta:case T.Load:case T.DomContentLoaded:return false;case T.Plugin:return t;case T.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case T.IncrementalSnapshot:switch(t.data.source){case R.Mutation:return t.data.adds.forEach(i=>{this.replaceIds(i,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,e);let s=this.crossOriginIframeRootIdMap.get(e);s&&this.patchRootIdOnNode(i.node,s);}),t.data.removes.forEach(i=>{this.replaceIds(i,e,["parentId","id"]);}),t.data.attributes.forEach(i=>{this.replaceIds(i,e,["id"]);}),t.data.texts.forEach(i=>{this.replaceIds(i,e,["id"]);}),t;case R.Drag:case R.TouchMove:case R.MouseMove:return t.data.positions.forEach(i=>{this.replaceIds(i,e,["id"]);}),t;case R.ViewportResize:return false;case R.MediaInteraction:case R.MouseInteraction:case R.Scroll:case R.CanvasMutation:case R.Input:return this.replaceIds(t.data,e,["id"]),t;case R.StyleSheetRule:case R.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case R.Font:return t;case R.Selection:return t.data.ranges.forEach(i=>{this.replaceIds(i,e,["start","end"]);}),t;case R.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),(n=t.data.styles)==null||n.forEach(i=>{this.replaceStyleIds(i,e,["styleId"]);}),t}}return false}replace(e,t,n,i){for(let s of i)!Array.isArray(t[s])&&typeof t[s]!="number"||(Array.isArray(t[s])?t[s]=e.getIds(n,t[s]):t[s]=e.getId(n,t[s]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(n=>{this.replaceIdOnNode(n,t);});}patchRootIdOnNode(e,t){e.type!==sl.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(n=>{this.patchRootIdOnNode(n,t);});}},fi=class{constructor(e){S(this,"shadowDoms",new WeakSet),S(this,"mutationCb"),S(this,"scrollCb"),S(this,"bypassOptions"),S(this,"mirror"),S(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(!ht(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let n=al({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(ll({...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(x.host(e))),this.restoreHandlers.push(cl({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 n=this;this.restoreHandlers.push(Le(e.prototype,"attachShadow",function(i){return function(s){let o=i.call(this,s),l=x.shadowRoot(this);return l&&il(this)&&n.addShadowRoot(l,t),o}}));}reset(){this.restoreHandlers.forEach(e=>{try{e();}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet;}},Ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Hp=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(ft=0;ft<Ye.length;ft++)Hp[Ye.charCodeAt(ft)]=ft;var ft,zp=function(r){var e=new Uint8Array(r),t,n=e.length,i="";for(t=0;t<n;t+=3)i+=Ye[e[t]>>2],i+=Ye[(e[t]&3)<<4|e[t+1]>>4],i+=Ye[(e[t+1]&15)<<2|e[t+2]>>6],i+=Ye[e[t+2]&63];return n%3===2?i=i.substring(0,i.length-1)+"=":n%3===1&&(i=i.substring(0,i.length-2)+"=="),i};var go=new Map;function Vp(r,e){let t=go.get(r);return t||(t=new Map,go.set(r,t)),t.has(e)||t.set(e,[]),t.get(e)}var ul=(r,e,t)=>{if(!r||!(dl(r,e)||typeof r=="object"))return;let n=r.constructor.name,i=Vp(t,n),s=i.indexOf(r);return s===-1&&(s=i.length,i.push(r)),s};function gr(r,e,t){if(r instanceof Array)return r.map(n=>gr(n,e,t));if(r===null)return r;if(r instanceof Float32Array||r instanceof Float64Array||r instanceof Int32Array||r instanceof Uint32Array||r instanceof Uint8Array||r instanceof Uint16Array||r instanceof Int16Array||r instanceof Int8Array||r instanceof Uint8ClampedArray)return {rr_type:r.constructor.name,args:[Object.values(r)]};if(r instanceof ArrayBuffer){let n=r.constructor.name,i=zp(r);return {rr_type:n,base64:i}}else {if(r instanceof DataView)return {rr_type:r.constructor.name,args:[gr(r.buffer,e,t),r.byteOffset,r.byteLength]};if(r instanceof HTMLImageElement){let n=r.constructor.name,{src:i}=r;return {rr_type:n,src:i}}else if(r instanceof HTMLCanvasElement){let n="HTMLImageElement",i=r.toDataURL();return {rr_type:n,src:i}}else {if(r instanceof ImageData)return {rr_type:r.constructor.name,args:[gr(r.data,e,t),r.width,r.height]};if(dl(r,e)||typeof r=="object"){let n=r.constructor.name,i=ul(r,e,t);return {rr_type:n,index:i}}}}return r}var fl=(r,e,t)=>r.map(n=>gr(n,e,t)),dl=(r,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof e[i]=="function").find(i=>r instanceof e[i]);function Gp(r,e,t,n){let i=[],s=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(let o of s)try{if(typeof e.CanvasRenderingContext2D.prototype[o]!="function")continue;let l=Le(e.CanvasRenderingContext2D.prototype,o,function(a){return function(...c){return ee(this.canvas,t,n,!0)||setTimeout(()=>{let u=fl(c,e,this);r(this.canvas,{type:et["2D"],property:o,args:u});},0),a.apply(this,c)}});i.push(l);}catch(l){let a=Gr(e.CanvasRenderingContext2D.prototype,o,{set(c){r(this.canvas,{type:et["2D"],property:o,args:[c],setter:true});}});i.push(a);}return ()=>{i.forEach(o=>o());}}function jp(r){return r==="experimental-webgl"?"webgl":r}function yo(r,e,t,n){let i=[];try{let s=Le(r.HTMLCanvasElement.prototype,"getContext",function(o){return function(l,...a){if(!ee(this,e,t,!0)){let c=jp(l);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(a[0]&&typeof a[0]=="object"){let u=a[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0);}else a.splice(0,1,{preserveDrawingBuffer:!0});}return o.apply(this,[l,...a])}});i.push(s);}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext");}return ()=>{i.forEach(s=>s());}}function bo(r,e,t,n,i,s){let o=[],l=Object.getOwnPropertyNames(r);for(let a of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if(typeof r[a]!="function")continue;let c=Le(r,a,function(u){return function(...f){let d=u.apply(this,f);if(ul(d,s,this),"tagName"in this.canvas&&!ee(this.canvas,n,i,!0)){let g=fl(f,s,this),m={type:e,property:a,args:g};t(this.canvas,m);}return d}});o.push(c);}catch(c){let u=Gr(r,a,{set(f){t(this.canvas,{type:e,property:a,args:[f],setter:true});}});o.push(u);}return o}function Yp(r,e,t,n){let i=[];return i.push(...bo(e.WebGLRenderingContext.prototype,et.WebGL,r,t,n,e)),typeof e.WebGL2RenderingContext!="undefined"&&i.push(...bo(e.WebGL2RenderingContext.prototype,et.WebGL2,r,t,n,e)),()=>{i.forEach(s=>s());}}var hl="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Xp=r=>Uint8Array.from(atob(r),e=>e.charCodeAt(0)),wo=typeof window!="undefined"&&window.Blob&&new Blob([Xp(hl)],{type:"text/javascript;charset=utf-8"});function Jp(r){let e;try{if(e=wo&&(window.URL||window.webkitURL).createObjectURL(wo),!e)throw "";let t=new Worker(e,{name:r==null?void 0:r.name});return t.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(e);}),t}catch(t){return new Worker("data:text/javascript;base64,"+hl,{name:r==null?void 0:r.name})}finally{e&&(window.URL||window.webkitURL).revokeObjectURL(e);}}var di=class{constructor(e){S(this,"pendingCanvasMutations",new Map),S(this,"rafStamps",{latestId:0,invokeId:null}),S(this,"mirror"),S(this,"mutationCb"),S(this,"resetObservers"),S(this,"frozen",false),S(this,"locked",false),S(this,"processMutation",(a,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(c);});let{sampling:t="all",win:n,blockClass:i,blockSelector:s,recordCanvas:o,dataURLOptions:l}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&t==="all"&&this.initCanvasMutationObserver(n,i,s),o&&typeof t=="number"&&this.initCanvasFPSObserver(t,n,i,s,{dataURLOptions:l});}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers();}freeze(){this.frozen=true;}unfreeze(){this.frozen=false;}lock(){this.locked=true;}unlock(){this.locked=false;}initCanvasFPSObserver(e,t,n,i,s){let o=yo(t,n,i,true),l=new Map,a=new Jp;a.onmessage=m=>{let{id:p}=m.data;if(l.set(p,false),!("base64"in m.data))return;let{base64:h,type:y,width:w,height:b}=m.data;this.mutationCb({id:p,type:et["2D"],commands:[{property:"clearRect",args:[0,0,w,b]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:h}],type:y}]},0,0]}]});};let c=1e3/e,u=0,f,d=()=>{let m=[];return t.document.querySelectorAll("canvas").forEach(p=>{ee(p,n,i,true)||m.push(p);}),m},g=m=>{if(u&&m-u<c){f=requestAnimationFrame(g);return}u=m,d().forEach(async p=>{var h;let y=this.mirror.getId(p);if(l.get(y)||p.width===0||p.height===0)return;if(l.set(y,true),["webgl","webgl2"].includes(p.__context)){let b=p.getContext(p.__context);((h=b==null?void 0:b.getContextAttributes())==null?void 0:h.preserveDrawingBuffer)===false&&b.clear(b.COLOR_BUFFER_BIT);}let w=await createImageBitmap(p);a.postMessage({id:y,bitmap:w,width:p.width,height:p.height,dataURLOptions:s.dataURLOptions},[w]);}),f=requestAnimationFrame(g);};f=requestAnimationFrame(g),this.resetObservers=()=>{o(),cancelAnimationFrame(f);};}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let i=yo(e,t,n,false),s=Gp(this.processMutation.bind(this),e,t,n),o=Yp(this.processMutation.bind(this),e,t,n);this.resetObservers=()=>{i(),s(),o();};}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations());}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e);};requestAnimationFrame(e);}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n);}),requestAnimationFrame(()=>this.flushPendingCanvasMutations());}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||t===-1)return;let i=n.map(o=>{let{type:l,...a}=o;return a}),{type:s}=n[0];this.mutationCb({id:t,type:s,commands:i}),this.pendingCanvasMutations.delete(e);}},hi=class{constructor(e){S(this,"trackedLinkElements",new WeakSet),S(this,"mutationCb"),S(this,"adoptedStyleSheetCb"),S(this,"styleMirror",new oi),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(e.length===0)return;let n={id:t,styleIds:[]},i=[];for(let s of e){let o;this.styleMirror.has(s)?o=this.styleMirror.getId(s):(o=this.styleMirror.add(s),i.push({styleId:o,rules:Array.from(s.rules||CSSRule,(l,a)=>({rule:Eo(l,s.href),index:a}))})),n.styleIds.push(o);}i.length>0&&(n.styles=i),this.adoptedStyleSheetCb(n);}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet;}trackStylesheetInLinkElement(e){}},pi=class{constructor(){S(this,"nodeMap",new WeakMap),S(this,"active",false);}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(i=>i!==t)}add(e,t){this.active||(this.active=true,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=false;})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t));}destroy(){}},j,yr,xn,Dr=false;try{if(Array.from([1],r=>r*2)[0]!==2){let r=document.createElement("iframe");document.body.appendChild(r),Array.from=((Cs=r.contentWindow)==null?void 0:Cs.Array.from)||Array.from,document.body.removeChild(r);}}catch(r){console.debug("Unable to override Array.from",r);}var ce=tu();function Ce(r={}){let{emit:e,checkoutEveryNms:t,checkoutEveryNth:n,blockClass:i="rr-block",blockSelector:s=null,ignoreClass:o="rr-ignore",ignoreSelector:l=null,maskTextClass:a="rr-mask",maskTextSelector:c=null,inlineStylesheet:u=true,maskAllInputs:f,maskInputOptions:d,slimDOMOptions:g,maskInputFn:m,maskTextFn:p,hooks:h,packFn:y,sampling:w={},dataURLOptions:b={},mousemoveWait:v,recordDOM:C=true,recordCanvas:I=false,recordCrossOriginIframes:D=false,recordAfter:A=r.recordAfter==="DOMContentLoaded"?r.recordAfter:"load",userTriggeredOnInput:L=false,collectFonts:$=false,inlineImages:P=false,plugins:q,keepIframeSrcFn:E=()=>false,ignoreCSSAttributes:re=new Set([]),errorHandler:Me}=r;Mp(Me);let Y=D?window.parent===window:true,se=false;if(!Y)try{window.parent.document&&(se=!1);}catch(k){se=true;}if(Y&&!e)throw new Error("emit function is required");if(!Y&&!se)return ()=>{};v!==void 0&&w.mousemove===void 0&&(w.mousemove=v),ce.reset();let Te=f===true?{color:true,date:true,"datetime-local":true,email:true,month:true,number:true,range:true,search:true,tel:true,text:true,time:true,url:true,week:true,textarea:true,select:true,password:true}:d!==void 0?d:{password:true},he=Ao(g);Cp();let rs,an=0,ns=k=>{for(let le of q||[])le.eventProcessor&&(k=le.eventProcessor(k));return y&&!se&&(k=y(k)),k};j=(k,le)=>{var z;let V=k;if(V.timestamp=_r(),(z=_e[0])!=null&&z.isFrozen()&&V.type!==T.FullSnapshot&&!(V.type===T.IncrementalSnapshot&&V.data.source===R.Mutation)&&_e.forEach(ne=>ne.unfreeze()),Y)e==null||e(ns(V),le);else if(se){let ne={type:"rrweb",event:ns(V),origin:window.location.origin,isCheckout:le};window.parent.postMessage(ne,"*");}if(V.type===T.FullSnapshot)rs=V,an=0;else if(V.type===T.IncrementalSnapshot){if(V.data.source===R.Mutation&&V.data.isAttachIframe)return;an++;let ne=n&&an>=n,O=t&&V.timestamp-rs.timestamp>t;(ne||O)&&yr(true);}};let Pt=k=>{j({type:T.IncrementalSnapshot,data:{source:R.Mutation,...k}});},is=k=>j({type:T.IncrementalSnapshot,data:{source:R.Scroll,...k}}),ss=k=>j({type:T.IncrementalSnapshot,data:{source:R.CanvasMutation,...k}}),oc=k=>j({type:T.IncrementalSnapshot,data:{source:R.AdoptedStyleSheet,...k}}),Ae=new hi({mutationCb:Pt,adoptedStyleSheetCb:oc}),ke=new ui({mirror:ce,mutationCb:Pt,stylesheetManager:Ae,recordCrossOriginIframes:D,wrappedEmit:j});for(let k of q||[])k.getMirror&&k.getMirror({nodeMirror:ce,crossOriginIframeMirror:ke.crossOriginIframeMirror,crossOriginIframeStyleMirror:ke.crossOriginIframeStyleMirror});let ln=new pi;xn=new di({recordCanvas:I,mutationCb:ss,win:window,blockClass:i,blockSelector:s,mirror:ce,sampling:w.canvas,dataURLOptions:b});let Ft=new fi({mutationCb:Pt,scrollCb:is,bypassOptions:{blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:c,inlineStylesheet:u,maskInputOptions:Te,dataURLOptions:b,maskTextFn:p,maskInputFn:m,recordCanvas:I,inlineImages:P,sampling:w,slimDOMOptions:he,iframeManager:ke,stylesheetManager:Ae,canvasManager:xn,keepIframeSrcFn:E,processedNodeManager:ln},mirror:ce});yr=(k=false)=>{if(!C)return;j({type:T.Meta,data:{href:window.location.href,width:qa(),height:Ka()}},k),Ae.reset(),Ft.init(),_e.forEach(z=>z.lock());let le=xu(document,{mirror:ce,blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:c,inlineStylesheet:u,maskAllInputs:Te,maskTextFn:p,maskInputFn:m,slimDOM:he,dataURLOptions:b,recordCanvas:I,inlineImages:P,onSerialize:z=>{tl(z,ce)&&ke.addIframe(z),rl(z,ce)&&Ae.trackLinkElement(z),si(z)&&Ft.addShadowRoot(x.shadowRoot(z),document);},onIframeLoad:(z,V)=>{ke.attachIframe(z,V),Ft.observeAttachShadow(z);},onStylesheetLoad:(z,V)=>{Ae.attachLinkElement(z,V);},keepIframeSrcFn:E});if(!le)return console.warn("Failed to snapshot the document");j({type:T.FullSnapshot,data:{node:le,initialOffset:Za(window)}},k),_e.forEach(z=>z.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Ae.adoptStyleSheets(document.adoptedStyleSheets,ce.getId(document));};try{let k=[],le=V=>{var ne;return M(Wp)({mutationCb:Pt,mousemoveCb:(O,cn)=>j({type:T.IncrementalSnapshot,data:{source:cn,positions:O}}),mouseInteractionCb:O=>j({type:T.IncrementalSnapshot,data:{source:R.MouseInteraction,...O}}),scrollCb:is,viewportResizeCb:O=>j({type:T.IncrementalSnapshot,data:{source:R.ViewportResize,...O}}),inputCb:O=>j({type:T.IncrementalSnapshot,data:{source:R.Input,...O}}),mediaInteractionCb:O=>j({type:T.IncrementalSnapshot,data:{source:R.MediaInteraction,...O}}),styleSheetRuleCb:O=>j({type:T.IncrementalSnapshot,data:{source:R.StyleSheetRule,...O}}),styleDeclarationCb:O=>j({type:T.IncrementalSnapshot,data:{source:R.StyleDeclaration,...O}}),canvasMutationCb:ss,fontCb:O=>j({type:T.IncrementalSnapshot,data:{source:R.Font,...O}}),selectionCb:O=>{j({type:T.IncrementalSnapshot,data:{source:R.Selection,...O}});},customElementCb:O=>{j({type:T.IncrementalSnapshot,data:{source:R.CustomElement,...O}});},blockClass:i,ignoreClass:o,ignoreSelector:l,maskTextClass:a,maskTextSelector:c,maskInputOptions:Te,inlineStylesheet:u,sampling:w,recordDOM:C,recordCanvas:I,inlineImages:P,userTriggeredOnInput:L,collectFonts:$,doc:V,maskInputFn:m,maskTextFn:p,keepIframeSrcFn:E,blockSelector:s,slimDOMOptions:he,dataURLOptions:b,mirror:ce,iframeManager:ke,stylesheetManager:Ae,shadowDomManager:Ft,processedNodeManager:ln,canvasManager:xn,ignoreCSSAttributes:re,plugins:((ne=q==null?void 0:q.filter(O=>O.observer))==null?void 0:ne.map(O=>({observer:O.observer,options:O.options,callback:cn=>j({type:T.Plugin,data:{plugin:O.name,payload:cn}})})))||[]},h)};ke.addLoadListener(V=>{try{k.push(le(V.contentDocument));}catch(ne){console.warn(ne);}});let z=()=>{yr(),k.push(le(document)),Dr=!0;};return ["interactive","complete"].includes(document.readyState)?z():(k.push(Q("DOMContentLoaded",()=>{j({type:T.DomContentLoaded,data:{}}),A==="DOMContentLoaded"&&z();})),k.push(Q("load",()=>{j({type:T.Load,data:{}}),A==="load"&&z();},window))),()=>{k.forEach(V=>{try{V();}catch(ne){String(ne).toLowerCase().includes("cross-origin")||console.warn(ne);}}),ln.destroy(),Dr=!1,Tp();}}catch(k){console.warn(k);}}Ce.addCustomEvent=(r,e)=>{if(!Dr)throw new Error("please add custom event after start recording");j({type:T.Custom,data:{tag:r,payload:e}});};Ce.freezePage=()=>{_e.forEach(r=>r.freeze());};Ce.takeFullSnapshot=r=>{if(!Dr)throw new Error("please take full snapshot after start recording");yr(r);};Ce.mirror=ce;var vo;(function(r){r[r.NotStarted=0]="NotStarted",r[r.Running=1]="Running",r[r.Stopped=2]="Stopped";})(vo||(vo={}));var Zp="https://blocfeed.com/api/replay-events";function pl(r){var q;if(!r.config.enabled)return ()=>{};if(typeof window=="undefined")return ()=>{};if(typeof globalThis.matchMedia=="undefined")return ()=>{};let e=G();if(We(e)%100/100>=r.config.sampling)return ()=>{};let n=Date.now(),i=(q=r.config.endpoint)!=null?q:Zp,s=[],o=0,l=false,a=false,c=null,u=`bf_replay_chunkseq_${e}`,f=`bf_replay_pauses_${e}`,d=0,g=0;try{let E=sessionStorage.getItem(u);E&&(d=parseInt(E,10)||0);let re=sessionStorage.getItem(f);re&&(g=parseInt(re,10)||0);}catch(E){}let m=(E=false)=>{if(s.length===0)return;let re=E?qp(s):s;s=[],o=0;let Me=d++;try{sessionStorage.setItem(u,String(d));}catch(Y){}Qp({blocfeedId:r.blocfeedId,sessionId:e,sessionStartedAtMs:n,chunkSeq:Me,events:re,endpoint:i,useBeacon:E,pauseCount:g});},p=setInterval(()=>{l||m();},r.config.flushIntervalMs),h=setTimeout(()=>{m(),P();},r.config.maxDurationMs),y=null,w=()=>{y&&clearTimeout(y),y=setTimeout(()=>{L();},r.config.inactivityTimeoutMs);},b=()=>{m(true);};window.addEventListener("pagehide",b);let v=r.config.masking,C={emit(E){l||(s.push(E),o+=Kp(E),w(),o>=r.config.flushSizeBytes&&m());},recordCanvas:false,sampling:{mousemove:50}};v.maskAllInputs!==void 0&&(C.maskAllInputs=v.maskAllInputs),v.maskTextSelector!==void 0&&(C.maskTextSelector=v.maskTextSelector),v.maskTextClass!==void 0&&(C.maskTextClass=v.maskTextClass),v.blockSelector!==void 0&&(C.blockSelector=v.blockSelector);let I=null,D=()=>{I&&(document.removeEventListener("pointerdown",I,true),document.removeEventListener("keydown",I,true),I=null);};function A(){var E;c=(E=Ce(C))!=null?E:null;}function L(){if(l||a)return;a=true,g++;try{sessionStorage.setItem(f,String(g));}catch(re){}if(m(),c){try{c();}catch(re){}c=null;}y&&(clearTimeout(y),y=null);let E=()=>{D(),$();};I=E,document.addEventListener("pointerdown",E,{capture:true,once:true}),document.addEventListener("keydown",E,{capture:true,once:true});}function $(){l||!a||(a=false,A(),w());}w(),A();function P(){if(!l&&(l=true,clearInterval(p),clearTimeout(h),y&&clearTimeout(y),D(),window.removeEventListener("pagehide",b),c)){try{c();}catch(E){}c=null;}}return P}function Kp(r){try{return JSON.stringify(r).length}catch(e){return 1024}}function qp(r){let t=JSON.stringify(r);if(t.length<=6e4)return r;let n=[...r];for(;n.length>1;)if(n.shift(),t=JSON.stringify(n),t.length<=6e4)return n;return n}async function Qp(r){let e=JSON.stringify({blocfeed_id:r.blocfeedId,session_id:r.sessionId,session_started_at_ms:r.sessionStartedAtMs,chunk_seq:r.chunkSeq,pause_count:r.pauseCount,events:r.events,page_url:typeof window!="undefined"?window.location.href:"",user_agent:typeof navigator!="undefined"?navigator.userAgent:""});if(r.useBeacon&&typeof navigator!="undefined"&&typeof navigator.sendBeacon=="function")try{let n=new Blob([e],{type:"application/json"});navigator.sendBeacon(r.endpoint,n);return}catch(n){}let t=!!r.useBeacon;try{await fetch(r.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:e,...t?{keepalive:!0}:{}});}catch(n){}}var em={enabled:true,endpoint:null,maxDurationMs:144e5,flushIntervalMs:3e4,flushSizeBytes:1048576,inactivityTimeoutMs:18e5,sampling:1,masking:{maskAllInputs:true,maskTextSelector:"[data-blocfeed-mask]",maskTextClass:"blocfeed-mask",blockSelector:"[data-blocfeed-block]"}};function ml(r){var t,n,i,s,o,l,a,c;let e=em;return {enabled:(t=r==null?void 0:r.enabled)!=null?t:e.enabled,endpoint:(n=r==null?void 0:r.endpoint)!=null?n:e.endpoint,maxDurationMs:(i=r==null?void 0:r.maxDurationMs)!=null?i:e.maxDurationMs,flushIntervalMs:(s=r==null?void 0:r.flushIntervalMs)!=null?s:e.flushIntervalMs,flushSizeBytes:(o=r==null?void 0:r.flushSizeBytes)!=null?o:e.flushSizeBytes,inactivityTimeoutMs:(l=r==null?void 0:r.inactivityTimeoutMs)!=null?l:e.inactivityTimeoutMs,sampling:(a=r==null?void 0:r.sampling)!=null?a:e.sampling,masking:{...e.masking,...(c=r==null?void 0:r.masking)!=null?c:{}}}}var tm="https://blocfeed.com/api/events/track",rm=5e3,nm=50,im=1024,Xr="blocfeed-events-queue",gl=500,yl=100,sm=/^[a-z][a-z0-9_]{0,127}$/,bl=50,wl=1024,vl,$i="default";function Jr(r){vl=r;}function Sl(r){$i=r;}function om(r){if(typeof r!="string"||!sm.test(r))throw new Error(`[BlocFeed] track(): event_name "${r}" must match /^[a-z][a-z0-9_]{0,127}$/ (lowercase, start with a letter, only [a-z0-9_], \u2264128 chars).`)}function am(r){if(r===void 0)return {};if(r===null||typeof r!="object"||Array.isArray(r))throw new Error("[BlocFeed] track(): properties must be a plain object.");let e=Object.keys(r);if(e.length>bl)throw new Error(`[BlocFeed] track(): properties has ${e.length} keys, max ${bl}.`);for(let n of e){let i=r[n];if(i!==null&&typeof i!="string"&&typeof i!="number"&&typeof i!="boolean")throw new Error(`[BlocFeed] track(): property "${n}" has unsupported type "${typeof i}". Allowed: string | number | boolean | null.`)}let t;try{t=JSON.stringify(r);}catch(n){throw new Error(`[BlocFeed] track(): properties is not JSON-serializable (${n.message}).`)}if(t.length>wl)throw new Error(`[BlocFeed] track(): properties serialized to ${t.length} bytes, max ${wl}. Server allows 8192 bytes \u2014 the client cap is defensive; trim down or split the event.`);return r}function Bi(){if(typeof localStorage=="undefined")return [];try{let r=localStorage.getItem(Xr);if(!r)return [];let e=JSON.parse(r);return Array.isArray(e)?e:[]}catch(r){try{localStorage.removeItem(Xr);}catch(e){}return []}}function Ui(r){if(typeof localStorage!="undefined")try{if(r.length===0)localStorage.removeItem(Xr);else {let e=r.length>gl?r.slice(r.length-gl):r;localStorage.setItem(Xr,JSON.stringify(e));}}catch(e){}}var ae=null;function lm(){if(ae)return ae;if(typeof window=="undefined")return null;let r=cm();return r?(ae={blocfeedId:r,endpoint:tm,events:[],bytes:0,flushTimer:null,pageHideHandler:null,visibilityHandler:null},ae.flushTimer=setInterval(()=>{Yr(false);},rm),ae.pageHideHandler=()=>{Yr(true);},ae.visibilityHandler=()=>{document.visibilityState==="hidden"&&Yr(true);},window.addEventListener("pagehide",ae.pageHideHandler),document.addEventListener("visibilitychange",ae.visibilityHandler),ae):null}function cm(){try{let e=window.__blocfeed_id__;return typeof e=="string"&&e.length>0?e:null}catch(r){return null}}function Cl(r){try{window.__blocfeed_id__=r;}catch(e){}ae&&(ae.blocfeedId=r);}function Wi(r,e,t){var d,g,m;om(r);let n=am(e),i=$i==="off"?n:Ee(n,$i),s=new Date().toISOString(),o={event_name:r,properties:i,occurred_at:s},l=(d=void 0)!=null?d:fm();l&&(o.session_id=l);let a=(g=void 0)!=null?g:vl;a&&(o.user_id=a);let c=(m=void 0)!=null?m:dm();c&&(o.page_url=c);let u=hm();u&&(o.user_agent=u);let f=lm();if(!f){let p=Bi();p.push(o),Ui(p);return}f.events.push(o),f.bytes+=um(o),(f.events.length>=nm||f.bytes>=im)&&Yr(false);}async function Yr(r){let e=ae;if(!e)return;let n=Bi().concat(e.events);if(e.events=[],e.bytes=0,Ui([]),n.length!==0)for(let i=0;i<n.length;i+=yl){let s=n.slice(i,i+yl),o=JSON.stringify({blocfeed_id:e.blocfeedId,events:s});if(r&&mm())try{let l=new Blob([o],{type:"application/json"});navigator.sendBeacon(e.endpoint,l)||jr(s);continue}catch(l){jr(s);continue}try{(await fetch(e.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:o})).ok||jr(s);}catch(l){jr(s);}}}function jr(r){let e=Bi();Ui(e.concat(r));}function um(r){try{return JSON.stringify(r).length}catch(e){return 256}}function fm(){try{return G()}catch(r){return}}function dm(){try{return typeof window!="undefined"?window.location.href:void 0}catch(r){return}}function hm(){try{return typeof navigator!="undefined"?navigator.userAgent:void 0}catch(r){return}}function mm(){return typeof navigator!="undefined"&&typeof navigator.sendBeacon=="function"}var gm="https://blocfeed.com/api/heartbeat",ym=300*1e3;function El(r){var l,a,c;if(typeof window=="undefined")return ()=>{};if(typeof globalThis.matchMedia=="undefined")return ()=>{};let e=(l=r.endpoint)!=null?l:gm,t=(a=r.intervalMs)!=null?a:ym,n=(c=r.features)!=null?c:["replay","behavioral","customEvents"],i=u=>{try{let f=JSON.stringify({blocfeed_id:r.blocfeedId,session_id:bm(),version:r.version,page_url:typeof window!="undefined"?window.location.href:"",user_agent:typeof navigator!="undefined"?navigator.userAgent:"",sdk_features:n}),d={method:"POST",headers:{"Content-Type":"application/json"},body:f};u&&(d.keepalive=!0),fetch(e,d).catch(()=>{});}catch(f){}};try{i(!1);}catch(u){}let s=null;try{s=setInterval(()=>{try{i(!1);}catch(u){}},t);}catch(u){s=null;}let o=()=>{try{i(!0);}catch(u){}};try{window.addEventListener("pagehide",o);}catch(u){}return function(){try{s&&clearInterval(s);}catch(f){}s=null;try{window.removeEventListener("pagehide",o);}catch(f){}}}function bm(){try{return G()}catch(r){return ""}}var Zr="0.24.0";var wm=5e3,Kr=class{constructor(e){this.submitter=null;this.detectorUninstallers=[];this.flushTimer=null;this.pageHideHandler=null;this.installed=false;this.opts=e,this.resolved=os(e.config);}install(){var a,c,u,f;if(this.installed||!this.resolved.enabled)return;let e=()=>{try{let d=G();return We(d)%100/100<this.resolved.sampling}catch(d){return false}};if(!((a=this.opts.passiveSampler)!=null?a:e)())return;Cl(this.opts.blocfeedId),Sl(this.resolved.piiScrub);let n=(c=this.opts.endpoint)!=null?c:"https://blocfeed.com/api/behavioral-events";this.submitter=(u=this.opts.submitter)!=null?u:as({endpoint:n,blocfeedId:this.opts.blocfeedId});let i=this.resolved.piiScrub,s=d=>{var m;let g=i==="off"?d:{...d,element_text:d.element_text==null?d.element_text:Ee(d.element_text,i),event_data:d.event_data==null?d.event_data:Ee(d.event_data,i)};(m=this.submitter)==null||m.enqueue(g);};this.detectorUninstallers.push(hs(this.resolved,s)),this.detectorUninstallers.push(gs(this.resolved,s)),this.detectorUninstallers.push(ys(this.resolved,s)),this.detectorUninstallers.push(bs(this.resolved,s)),this.detectorUninstallers.push(ws(this.resolved,s)),this.detectorUninstallers.push(Ss(this.resolved,s));let o=ml((f=this.opts.config)==null?void 0:f.sessionReplay);this.detectorUninstallers.push(pl({blocfeedId:this.opts.blocfeedId,config:o}));let l=["behavioral","customEvents"];if(o.enabled&&l.unshift("replay"),this.opts.extraSdkFeatures)for(let d of this.opts.extraSdkFeatures)l.push(d);this.detectorUninstallers.push(El({blocfeedId:this.opts.blocfeedId,version:Zr,features:l})),this.flushTimer=setInterval(()=>{var d;(d=this.submitter)==null||d.flush();},wm),this.pageHideHandler=()=>{var d;(d=this.submitter)==null||d.flushBeacon();},typeof window!="undefined"&&window.addEventListener("pagehide",this.pageHideHandler),this.installed=true;}uninstall(){var e;if(this.installed){for(let t of [...this.detectorUninstallers].reverse())try{t();}catch(n){}this.detectorUninstallers=[],this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null),this.pageHideHandler&&typeof window!="undefined"&&(window.removeEventListener("pagehide",this.pageHideHandler),this.pageHideHandler=null);try{(e=this.submitter)==null||e.flush();}catch(t){}this.submitter=null,this.installed=false;}}};var sg="blocfeed-embed/ready",og="blocfeed-embed/screenshot-request",ag="blocfeed-embed/submit-success",lg="blocfeed-embed/close",cg="blocfeed-embed/init",ug="blocfeed-embed/screenshot-result",Dt=null;function fg(r,e,t){r.style.position="fixed",r.style.zIndex="2147483647",r.style.background=e,r.style.color="#ffffff",r.style.border="0",r.style.borderRadius="24px",r.style.padding="12px 20px",r.style.fontSize="14px",r.style.fontWeight="600",r.style.fontFamily="system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",r.style.cursor="pointer",r.style.boxShadow="0 8px 16px rgba(0,0,0,0.18)",r.style.lineHeight="1",r.style.top="",r.style.bottom="",r.style.left="",r.style.right="";let n="16px";t==="bottom-right"?(r.style.bottom=n,r.style.right=n):t==="bottom-left"?(r.style.bottom=n,r.style.left=n):t==="top-right"?(r.style.top=n,r.style.right=n):(r.style.top=n,r.style.left=n);}function dg(r,e){r.style.position="fixed",r.style.width="380px",r.style.height="600px",r.style.border="0",r.style.borderRadius="12px",r.style.boxShadow="0 25px 50px -12px rgba(0,0,0,0.4)",r.style.zIndex="2147483646",r.style.display="none",r.style.background="transparent",r.style.top="",r.style.bottom="",r.style.left="",r.style.right="",e==="bottom-right"?(r.style.bottom="80px",r.style.right="16px"):e==="bottom-left"?(r.style.bottom="80px",r.style.left="16px"):e==="top-right"?(r.style.top="80px",r.style.right="16px"):(r.style.top="80px",r.style.left="16px");}function hg(r,e){return `${r.replace(/\/+$/,"")}/embed/${encodeURIComponent(e)}`}async function pg(){try{let r=await Promise.resolve().then(()=>(Zl(),Jl)),e=typeof devicePixelRatio=="number"?devicePixelRatio:1;return {dataUrl:await r.toPng(document.body,{pixelRatio:Math.min(2,e),cacheBust:!0})}}catch(r){return {dataUrl:null,error:r instanceof Error?r.message:String(r)}}}function Kl(r,e,t){let n=r.contentWindow;if(n)try{n.postMessage(t,e);}catch(i){}}function ql(r){if(Dt){try{Dt();}catch(d){}Dt=null;}if(typeof window=="undefined"||typeof document=="undefined")return ()=>{};let{blocfeedId:e,embedOrigin:t,color:n,label:i,position:s,user:o}=r,l=document.createElement("button");l.setAttribute("data-blocfeed-trigger",""),l.setAttribute("type","button"),l.setAttribute("aria-label","Open feedback"),l.textContent=i,fg(l,n,s);let a=document.createElement("iframe");a.setAttribute("data-blocfeed-iframe",""),a.setAttribute("title","BlocFeed feedback"),a.setAttribute("allow","microphone; clipboard-write"),a.src=hg(t,e),dg(a,s);let c=()=>{a.style.display="block";};l.addEventListener("click",c);let u=d=>{if(d.origin!==t)return;let g=d.data;if(!(!g||typeof g!="object"||typeof g.kind!="string")){if(g.kind===sg){let m={kind:cg,pageUrl:window.location.href,userAgent:navigator.userAgent,sessionId:G(),...o!==void 0?{user:o}:{}};Kl(a,t,m);return}if(g.kind===og){let m=g.requestId;pg().then(p=>{Kl(a,t,{kind:ug,requestId:m,dataUrl:p.dataUrl,...p.error!==void 0?{error:p.error}:{}});});return}if(g.kind===ag){try{console.log("[BlocFeed] feedback submitted",{feedback_id:g.feedback_id,viewer_url:g.viewer_url});}catch(m){}return}if(g.kind===lg){a.style.display="none";return}}};window.addEventListener("message",u),document.body.appendChild(l),document.body.appendChild(a);let f=()=>{try{l.removeEventListener("click",c);}catch(d){}try{window.removeEventListener("message",u);}catch(d){}l.parentNode&&l.parentNode.removeChild(l),a.parentNode&&a.parentNode.removeChild(a),Dt=null;};return Dt=f,f}function mg(r){let e=(r!=null?r:"inputs").toLowerCase();return e==="none"?{maskAllInputs:false,maskTextSelector:"[data-blocfeed-mask]",maskTextClass:"blocfeed-mask",blockSelector:"[data-blocfeed-block]"}:e==="text"?{maskAllInputs:true,maskTextSelector:"*",maskTextClass:"blocfeed-mask",blockSelector:"[data-blocfeed-block]"}:{maskAllInputs:true,maskTextSelector:"[data-blocfeed-mask]",maskTextClass:"blocfeed-mask",blockSelector:"[data-blocfeed-block]"}}var Ji="https://blocfeed.com",ec="#12D393",tc="Feedback",Ql="bottom-right",gg=new Set(["bottom-right","bottom-left","top-right","top-left"]);function Zi(r){if(!r)return Ji;let e=r.trim();return e&&(e.startsWith("https://")||/^http:\/\/localhost(?::\d+)?(\/.*)?$/i.test(e))?e:Ji}function Ki(r){if(!r)return Ql;let e=r.toLowerCase();return gg.has(e)?e:Ql}function yg(r){var m;let e=r.blocfeedId;if(!e)return null;let t=parseFloat((m=r.sample)!=null?m:"1"),n=Number.isFinite(t)&&t>0?t:1,i=r.replay!=="false",s=r.signals!=="false",o=r.mask!==void 0?mg(r.mask):void 0,l={sampling:n,sessionReplay:{enabled:i,sampling:n,...o!==void 0?{masking:o}:{}},rageClick:{enabled:s},deadClick:{enabled:s},httpFail:{enabled:s},redirectLoop:{enabled:s},formDataLoss:{enabled:s}},a=r.userId||r.userEmail||r.userName?{...r.userId!==void 0?{id:r.userId}:{},...r.userEmail!==void 0?{email:r.userEmail}:{},...r.userName!==void 0?{name:r.userName}:{}}:void 0,c=r.feedback==="true",u=Zi(r.embedOrigin),f=r.feedbackColor&&r.feedbackColor.trim()?r.feedbackColor.trim():ec,d=r.feedbackLabel&&r.feedbackLabel.trim()?r.feedbackLabel:tc,g=Ki(r.feedbackPosition);return {blocfeedId:e,...a!==void 0?{user:a}:{},config:l,trackClicks:r.trackClicks==="true",feedback:c,embedOrigin:u,feedbackColor:f,feedbackLabel:d,feedbackPosition:g}}function nn(r){if(typeof r!="object"||r===null)return false;let e=Object.getPrototypeOf(r);return e===Object.prototype||e===null}function qi(r,e){if(e===void 0)return r;if(!nn(r)||!nn(e))return e;let t={...r};for(let n of Object.keys(e)){let i=e[n];if(i===void 0)continue;let s=t[n];nn(i)&&nn(s)?t[n]=qi(s,i):t[n]=i;}return t}function rc(){if(typeof window=="undefined")return null;let r=window.blocfeedConfig;return !r||typeof r!="object"?null:r}function nc(r){let e={};return r.sampling!==void 0&&(e.sampling=r.sampling),r.ignoreSelectors!==void 0&&(e.ignoreSelectors=r.ignoreSelectors),r.rageClick!==void 0&&(e.rageClick=r.rageClick),r.deadClick!==void 0&&(e.deadClick=r.deadClick),r.httpFail!==void 0&&(e.httpFail=r.httpFail),r.redirectLoop!==void 0&&(e.redirectLoop=r.redirectLoop),r.formDataLoss!==void 0&&(e.formDataLoss=r.formDataLoss),r.sessionReplay!==void 0&&(e.sessionReplay=r.sessionReplay),e}function Qi(r,e){var p,h,y,w,b,v,C;let t=(p=r==null?void 0:r.blocfeedId)!=null?p:e==null?void 0:e.blocfeed_id;if(!t)return null;let n=e?nc(e):{},i=r?qi(n,r.config):n,s=e==null?void 0:e.user,o=r==null?void 0:r.user,l;(o||s)&&(l={...s!=null&&s.id?{id:s.id}:{},...s!=null&&s.email?{email:s.email}:{},...s!=null&&s.name?{name:s.name}:{},...o!=null&&o.id?{id:o.id}:{},...o!=null&&o.email?{email:o.email}:{},...o!=null&&o.name?{name:o.name}:{}},!l.id&&!l.email&&!l.name&&(l=void 0));let a=(r==null?void 0:r.trackClicks)===true?true:(e==null?void 0:e.trackClicks)!==void 0?!!e.trackClicks:false,c=(r==null?void 0:r.feedback)===true?true:((h=e==null?void 0:e.feedback)==null?void 0:h.enabled)!==void 0?!!e.feedback.enabled:false,u=r?r.embedOrigin:Zi(e==null?void 0:e.embedOrigin),f=r?r.feedbackColor:((w=(y=e==null?void 0:e.feedback)==null?void 0:y.color)==null?void 0:w.trim())||ec,d=r?r.feedbackLabel:((v=(b=e==null?void 0:e.feedback)==null?void 0:b.label)==null?void 0:v.trim())||tc,g=r?r.feedbackPosition:Ki((C=e==null?void 0:e.feedback)==null?void 0:C.position),m=(e==null?void 0:e.autoInstall)!==false;return {blocfeedId:t,...l!==void 0?{user:l}:{},config:i,trackClicks:a,feedback:c,embedOrigin:u,feedbackColor:f,feedbackLabel:d,feedbackPosition:g,autoInstall:m}}var bg=60;function wg(){if(typeof document=="undefined")return ()=>{};let r=[],e=t=>{var o,l;let n=Date.now();if(r=r.filter(a=>n-a<6e4),r.length>=bg)return;r.push(n);let i=t.target;if(!i||!(i instanceof Element))return;let s=null;try{s=(l=(o=i.innerText)==null?void 0:o.trim().slice(0,80))!=null?l:null;}catch(a){s=null;}try{Wi("click",{tag:i.tagName.toLowerCase(),text:s||null,url:window.location.href});}catch(a){}};return document.addEventListener("click",e,{capture:true,passive:true}),()=>{try{document.removeEventListener("click",e,{capture:!0});}catch(t){}}}var X=null,xe=null,sn=null,Lt=null,Re=false;function es(r){var e;if(!xe){if((e=r.user)!=null&&e.id&&Jr(r.user.id),xe=new Kr({blocfeedId:r.blocfeedId,config:r.config,extraSdkFeatures:["script-tag"]}),xe.install(),r.trackClicks&&!Lt&&(Lt=wg()),r.feedback)try{sn=ql({blocfeedId:r.blocfeedId,embedOrigin:r.embedOrigin,color:r.feedbackColor,label:r.feedbackLabel,position:r.feedbackPosition,...r.user!==void 0?{user:r.user}:{}});}catch(t){}Re=true;}}function ts(){if(xe){try{xe.uninstall();}catch(r){}xe=null;}if(sn){try{sn();}catch(r){}sn=null;}if(Lt){try{Lt();}catch(r){}Lt=null;}}function vg(r){var e,t;if(!(!r||typeof r!="object")){if(X){let n=nc(r),i={...X,config:qi(X.config,n)};r.user!==void 0&&(i.user={...(e=X.user)!=null?e:{},...r.user.id!==void 0?{id:r.user.id}:{},...r.user.email!==void 0?{email:r.user.email}:{},...r.user.name!==void 0?{name:r.user.name}:{}}),r.trackClicks!==void 0&&(i.trackClicks=!!r.trackClicks),r.embedOrigin!==void 0&&(i.embedOrigin=Zi(r.embedOrigin)),r.feedback&&(r.feedback.enabled!==void 0&&(i.feedback=!!r.feedback.enabled),r.feedback.color!==void 0&&r.feedback.color.trim()&&(i.feedbackColor=r.feedback.color.trim()),r.feedback.label!==void 0&&r.feedback.label.trim()&&(i.feedbackLabel=r.feedback.label),r.feedback.position!==void 0&&(i.feedbackPosition=Ki(r.feedback.position))),r.autoInstall!==void 0&&(i.autoInstall=!!r.autoInstall),r.blocfeed_id!==void 0&&r.blocfeed_id&&(i.blocfeedId=r.blocfeed_id),X=i;}else X=Qi(null,r);Re&&X&&(ts(),Re=false,es(X)),(t=r.user)!=null&&t.id&&Jr(r.user.id);}}function Sg(r,e){var t;Jr(r),X&&(X.user={...(t=X.user)!=null?t:{},id:r});}function Cg(r,e){Wi(r,e);}function Eg(){if(!(Re&&xe)){if(X||(X=Qi(null,rc())),!X){console.warn("[BlocFeed] install() called but no blocfeed_id is configured");return}es(X);}}function Ig(){ts(),Re=false;}var ic={configure:vg,identify:Sg,track:Cg,install:Eg,uninstall:Ig,SDK_VERSION:Zr};function xg(r){if(typeof window=="undefined")return;let e=window.BlocFeed;if(e&&Array.isArray(e._q))for(let t of e._q){if(!Array.isArray(t)||typeof t[0]!="string")continue;let[n,...i]=t,s=r[n];if(typeof s=="function")try{s.apply(r,i);}catch(o){console.error("[BlocFeed] queued call failed:",n,o);}}window.BlocFeed=r;}function sc(){if(typeof document=="undefined")return null;let r=document.currentScript;return r&&r.dataset&&r.dataset.blocfeedId?r:document.querySelector("script[data-blocfeed-id]")}function on(){if(typeof window=="undefined"||typeof document=="undefined")return;let r=sc(),e=r?yg(r.dataset):null,t=rc(),n=Qi(e,t);if(!n){r&&console.warn("[BlocFeed] script-tag init: blocfeed_id missing from both data-* and window.blocfeedConfig");return}X=n,xg(ic),X.autoInstall&&!Re&&es(X);}if(typeof window!="undefined"){let r=window.BlocFeed;(!r||!Array.isArray(r._q))&&(window.BlocFeed=ic),sc()?on():typeof document!="undefined"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",on,{once:true}):on());}function Wb(){return xe}function Hb(){ts(),X=null,Re=false;}function zb(){on();}function Vb(){return X}function Gb(){return Re}/*! Bundled license information:
|
|
55
56
|
|
|
56
57
|
rrweb/dist/rrweb.js:
|
|
57
58
|
(*! *****************************************************************************
|
|
@@ -68,4 +69,4 @@ rrweb/dist/rrweb.js:
|
|
|
68
69
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
69
70
|
PERFORMANCE OF THIS SOFTWARE.
|
|
70
71
|
***************************************************************************** *)
|
|
71
|
-
*/exports.BlocFeed=
|
|
72
|
+
*/exports.BlocFeed=ic;exports.__autoInitForTesting=zb;exports.__getInstalledTrackerForTesting=Wb;exports.__getResolvedConfigForTesting=Vb;exports.__isInstallCalledForTesting=Gb;exports.__resetForTesting=Hb;exports.buildResolvedConfig=Qi;exports.deepMerge=qi;exports.parseMasking=mg;exports.parseScriptTagAttrs=yg;return exports;})({});
|