@v-tilt/browser 1.1.5 → 1.3.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.
Files changed (72) hide show
  1. package/dist/all-external-dependencies.js +2 -0
  2. package/dist/all-external-dependencies.js.map +1 -0
  3. package/dist/array.full.js +2 -0
  4. package/dist/array.full.js.map +1 -0
  5. package/dist/array.js +1 -1
  6. package/dist/array.js.map +1 -1
  7. package/dist/array.no-external.js +1 -1
  8. package/dist/array.no-external.js.map +1 -1
  9. package/dist/entrypoints/all-external-dependencies.d.ts +8 -0
  10. package/dist/entrypoints/array.d.ts +1 -0
  11. package/dist/entrypoints/array.full.d.ts +17 -0
  12. package/dist/entrypoints/external-scripts-loader.d.ts +24 -0
  13. package/dist/entrypoints/module.es.d.ts +1 -0
  14. package/dist/entrypoints/recorder.d.ts +23 -0
  15. package/dist/entrypoints/web-vitals.d.ts +14 -0
  16. package/dist/extensions/replay/index.d.ts +13 -0
  17. package/dist/extensions/replay/session-recording-utils.d.ts +92 -0
  18. package/dist/extensions/replay/session-recording-wrapper.d.ts +61 -0
  19. package/dist/extensions/replay/session-recording.d.ts +95 -0
  20. package/dist/extensions/replay/types.d.ts +211 -0
  21. package/dist/external-scripts-loader.js +2 -0
  22. package/dist/external-scripts-loader.js.map +1 -0
  23. package/dist/main.js +1 -1
  24. package/dist/main.js.map +1 -1
  25. package/dist/module.d.ts +297 -8
  26. package/dist/module.js +1 -1
  27. package/dist/module.js.map +1 -1
  28. package/dist/module.no-external.d.ts +297 -8
  29. package/dist/module.no-external.js +1 -1
  30. package/dist/module.no-external.js.map +1 -1
  31. package/dist/recorder.js +2 -0
  32. package/dist/recorder.js.map +1 -0
  33. package/dist/types.d.ts +116 -6
  34. package/dist/utils/globals.d.ts +69 -0
  35. package/dist/vtilt.d.ts +36 -0
  36. package/dist/web-vitals.d.ts +89 -5
  37. package/dist/web-vitals.js +2 -0
  38. package/dist/web-vitals.js.map +1 -0
  39. package/lib/config.js +7 -3
  40. package/lib/entrypoints/all-external-dependencies.d.ts +8 -0
  41. package/lib/entrypoints/all-external-dependencies.js +10 -0
  42. package/lib/entrypoints/array.d.ts +1 -0
  43. package/lib/entrypoints/array.full.d.ts +17 -0
  44. package/lib/entrypoints/array.full.js +19 -0
  45. package/lib/entrypoints/array.js +1 -0
  46. package/lib/entrypoints/external-scripts-loader.d.ts +24 -0
  47. package/lib/entrypoints/external-scripts-loader.js +107 -0
  48. package/lib/entrypoints/module.es.d.ts +1 -0
  49. package/lib/entrypoints/module.es.js +1 -0
  50. package/lib/entrypoints/recorder.d.ts +23 -0
  51. package/lib/entrypoints/recorder.js +42 -0
  52. package/lib/entrypoints/web-vitals.d.ts +14 -0
  53. package/lib/entrypoints/web-vitals.js +29 -0
  54. package/lib/extensions/replay/index.d.ts +13 -0
  55. package/lib/extensions/replay/index.js +31 -0
  56. package/lib/extensions/replay/session-recording-utils.d.ts +92 -0
  57. package/lib/extensions/replay/session-recording-utils.js +212 -0
  58. package/lib/extensions/replay/session-recording-wrapper.d.ts +61 -0
  59. package/lib/extensions/replay/session-recording-wrapper.js +149 -0
  60. package/lib/extensions/replay/session-recording.d.ts +95 -0
  61. package/lib/extensions/replay/session-recording.js +700 -0
  62. package/lib/extensions/replay/types.d.ts +211 -0
  63. package/lib/extensions/replay/types.js +8 -0
  64. package/lib/types.d.ts +116 -6
  65. package/lib/types.js +16 -0
  66. package/lib/utils/globals.d.ts +69 -0
  67. package/lib/utils/globals.js +2 -0
  68. package/lib/vtilt.d.ts +36 -0
  69. package/lib/vtilt.js +106 -0
  70. package/lib/web-vitals.d.ts +89 -5
  71. package/lib/web-vitals.js +354 -46
  72. package/package.json +4 -1
@@ -0,0 +1,2 @@
1
+ !function(){"use strict";function t(t,e,r,i,s,n,o){try{var a=t[n](o),h=a.value}catch(t){return void r(t)}a.done?e(h):Promise.resolve(h).then(i,s)}function e(e){return function(){var r=this,i=arguments;return new Promise(function(s,n){var o=e.apply(r,i);function a(e){t(o,s,n,a,h,"next",e)}function h(e){t(o,s,n,a,h,"throw",e)}a(void 0)})}}function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)({}).hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},r.apply(null,arguments)}function i(t,e){if(null==t)return{};var r={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(-1!==e.indexOf(i))continue;r[i]=t[i]}return r}var s,n=["inputs"],o=["inputId"],a=["inputs"],h=["inputId"],u=["type"],l=Object.defineProperty,c=(t,e,r)=>((t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r),f=Object.defineProperty,d=(t,e,r)=>((t,e,r)=>e in t?f(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r),v=(t=>(t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t))(v||{}),p={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},m={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},g={};function w(t){if(g[t])return g[t];var e=globalThis[t],r=e.prototype,i=t in p?p[t]:void 0,s=Boolean(i&&i.every(t=>{var e,i;return Boolean(null==(i=null==(e=Object.getOwnPropertyDescriptor(r,t))?void 0:e.get)?void 0:i.toString().includes("[native code]"))})),n=t in m?m[t]:void 0,o=Boolean(n&&n.every(t=>{var e;return"function"==typeof r[t]&&(null==(e=r[t])?void 0:e.toString().includes("[native code]"))}));if(s&&o)return g[t]=e.prototype,e.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var h=a.contentWindow;if(!h)return e.prototype;var u=h[t].prototype;return document.body.removeChild(a),u?g[t]=u:r}catch(t){return r}}var y={};function b(t,e,r){var i,s=t+"."+String(r);if(y[s])return y[s].call(e);var n=w(t),o=null==(i=Object.getOwnPropertyDescriptor(n,r))?void 0:i.get;return o?(y[s]=o,o.call(e)):e[r]}var S={};function C(t,e,r){var i=t+"."+String(r);if(S[i])return S[i].bind(e);var s=w(t)[r];return"function"!=typeof s?e[r]:(S[i]=s,s.bind(e))}var I={childNodes:function(t){return b("Node",t,"childNodes")},parentNode:function(t){return b("Node",t,"parentNode")},parentElement:function(t){return b("Node",t,"parentElement")},textContent:function(t){return b("Node",t,"textContent")},contains:function(t,e){return C("Node",t,"contains")(e)},getRootNode:function(t){return C("Node",t,"getRootNode")()},host:function(t){return t&&"host"in t?b("ShadowRoot",t,"host"):null},styleSheets:function(t){return t.styleSheets},shadowRoot:function(t){return t&&"shadowRoot"in t?b("Element",t,"shadowRoot"):null},querySelector:function(t,e){return b("Element",t,"querySelector")(e)},querySelectorAll:function(t,e){return b("Element",t,"querySelectorAll")(e)},mutationObserver:function(){return w("MutationObserver").constructor}};function k(t){return t.nodeType===t.ELEMENT_NODE}function A(t){var e=t&&"host"in t&&"mode"in t&&I.host(t)||null;return Boolean(e&&"shadowRoot"in e&&I.shadowRoot(e)===t)}function R(t){return"[object ShadowRoot]"===Object.prototype.toString.call(t)}function x(t){try{var e=t.rules||t.cssRules;if(!e)return null;var r=Array.from(e,e=>M(e,t.href)).join("");return(i=r).includes(" background-clip: text;")&&!i.includes(" -webkit-background-clip: text;")&&(i=i.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),i}catch(t){return null}var i}function M(t,e){if(function(t){return"styleSheet"in t}(t)){var r;try{r=x(t.styleSheet)||function(t){var{cssText:e}=t;if(e.split('"').length<3)return e;var r=["@import","url("+JSON.stringify(t.href)+")"];return""===t.layerName?r.push("layer"):t.layerName&&r.push("layer("+t.layerName+")"),t.supportsText&&r.push("supports("+t.supportsText+")"),t.media.length&&r.push(t.media.mediaText),r.join(" ")+";"}(t)}catch(e){r=t.cssText}return t.styleSheet.href?D(r,t.styleSheet.href):r}var i,s=t.cssText;return function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")&&(i=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,s=s.replace(i,"$1\\$2")),e?D(s,e):s}let E=class{constructor(){d(this,"idNodeMap",new Map),d(this,"nodeMetaMap",new WeakMap)}getId(t){var e;if(!t)return-1;var r=null==(e=this.getMeta(t))?void 0:e.id;return null!=r?r:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){var e=this.getId(t);this.idNodeMap.delete(e),t.childNodes&&t.childNodes.forEach(t=>this.removeNodeFromMap(t))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,e){var r=e.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,e)}replace(t,e){var r=this.getNode(t);if(r){var i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(e,i)}this.idNodeMap.set(t,e)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function O(t){var{element:e,maskInputOptions:r,tagName:i,type:s,value:n,maskInputFn:o}=t,a=n||"",h=s&&T(s);return(r[i.toLowerCase()]||h&&r[h])&&(a=o?o(a,e):"*".repeat(a.length)),a}function T(t){return t.toLowerCase()}var N="__rrweb_original__";function B(t){var e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?T(e):null}function _(t,e){var r,i;try{i=new URL(t,null!=e?e:window.location.href)}catch(t){return null}var s=i.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!==(r=null==s?void 0:s[1])&&void 0!==r?r:null}var j=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,F=/^(?:[a-z+]+:)?\/\//i,L=/^www\..*/i,P=/^(data:)([^,]*),(.*)/i;function D(t,e){return(t||"").replace(j,(t,r,i,s,n,o)=>{var a,h=i||n||o,u=r||s||"";if(!h)return t;if(F.test(h)||L.test(h))return"url("+u+h+u+")";if(P.test(h))return"url("+u+h+u+")";if("/"===h[0])return"url("+u+(((a=e).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+h)+u+")";var l=e.split("/"),c=h.split("/");for(var f of(l.pop(),c))"."!==f&&(".."===f?l.pop():l.push(f));return"url("+u+l.join("/")+u+")"})}var U,Z,Y=1,W=new RegExp("[^a-z0-9-_:]");function G(){return Y++}var V=/^[^ \t\n\r\u000c]+/,z=/^[, \t\n\r\u000c]+/;var J=new WeakMap;function X(t,e){return e&&""!==e.trim()?H(t,e):e}function K(t){return Boolean("svg"===t.tagName||t.ownerSVGElement)}function H(t,e){var r=J.get(t);if(r||(r=t.createElement("a"),J.set(t,r)),e){if(e.startsWith("blob:")||e.startsWith("data:"))return e}else e="";return r.setAttribute("href",e),r.href}function q(t,e,r,i){return i?"src"===r||"href"===r&&("use"!==e||"#"!==i[0])||"xlink:href"===r&&"#"!==i[0]?X(t,i):"background"!==r||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===r?function(t,e){if(""===e.trim())return e;var r=0;function i(t){var i,s=t.exec(e.substring(r));return s?(i=s[0],r+=i.length,i):""}for(var s=[];i(z),!(r>=e.length);){var n=i(V);if(","===n.slice(-1))n=X(t,n.substring(0,n.length-1)),s.push(n);else{var o="";n=X(t,n);for(var a=!1;;){var h=e.charAt(r);if(""===h){s.push((n+o).trim());break}if(a)")"===h&&(a=!1);else{if(","===h){r+=1,s.push((n+o).trim());break}"("===h&&(a=!0)}o+=h,r+=1}}}return s.join(", ")}(t,i):"style"===r?D(i,H(t)):"object"===e&&"data"===r?X(t,i):i:X(t,i):i}function Q(t,e,r){return("video"===t||"audio"===t)&&"autoplay"===e}function tt(t,e,r){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!r&&tt(I.parentNode(t),e,r);for(var i=t.classList.length;i--;){var s=t.classList[i];if(e.test(s))return!0}return!!r&&tt(I.parentNode(t),e,r)}function et(t,e,r,i){var s;if(k(t)){if(s=t,!I.childNodes(s).length)return!1}else{if(null===I.parentElement(t))return!1;s=I.parentElement(t)}try{if("string"==typeof e){if(i){if(s.closest("."+e))return!0}else if(s.classList.contains(e))return!0}else if(tt(s,e,i))return!0;if(r)if(i){if(s.closest(r))return!0}else if(s.matches(r))return!0}catch(t){}return!1}function rt(t,e){var{doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:o,inlineStylesheet:a,maskInputOptions:h={},maskTextFn:u,maskInputFn:l,dataURLOptions:c={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:p,newlyAddedElement:m=!1}=e,g=function(t,e){if(!e.hasNode(t))return;var r=e.getId(t);return 1===r?void 0:r}(r,i);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:v.Document,childNodes:[],compatMode:t.compatMode}:{type:v.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:v.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:g};case t.ELEMENT_NODE:return function(t,e){for(var r,{doc:i,blockClass:s,blockSelector:n,inlineStylesheet:o,maskInputOptions:a={},maskInputFn:h,dataURLOptions:u={},inlineImages:l,recordCanvas:c,keepIframeSrcFn:f,newlyAddedElement:d=!1,rootId:p}=e,m=function(t,e,r){try{if("string"==typeof e){if(t.classList.contains(e))return!0}else for(var i=t.classList.length;i--;){var s=t.classList[i];if(e.test(s))return!0}if(r)return t.matches(r)}catch(t){}return!1}(t,s,n),g=function(t){if(t instanceof HTMLFormElement)return"form";var e=T(t.tagName);return W.test(e)?"div":e}(t),w={},y=t.attributes.length,b=0;b<y;b++){var S=t.attributes[b];Q(g,S.name,S.value)||(w[S.name]=q(i,g,T(S.name),S.value))}if("link"===g&&o){var C=Array.from(i.styleSheets).find(e=>e.href===t.href),k=null;C&&(k=x(C)),k&&(delete w.rel,delete w.href,w._cssText=k)}if("style"===g&&t.sheet&&!(t.innerText||I.textContent(t)||"").trim().length){var A=x(t.sheet);A&&(w._cssText=A)}if("input"===g||"textarea"===g||"select"===g){var R=t.value,M=t.checked;"radio"!==w.type&&"checkbox"!==w.type&&"submit"!==w.type&&"button"!==w.type&&R?w.value=O({element:t,type:B(t),tagName:g,value:R,maskInputOptions:a,maskInputFn:h}):M&&(w.checked=M)}"option"===g&&(t.selected&&!a.select?w.selected=!0:delete w.selected);"dialog"===g&&t.open&&(w.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal");if("canvas"===g&&c)if("2d"===t.__context)(function(t){var e=t.getContext("2d");if(!e)return!0;for(var r=0;r<t.width;r+=50)for(var i=0;i<t.height;i+=50){var s=e.getImageData,n=N in s?s[N]:s;if(new Uint32Array(n.call(e,r,i,Math.min(50,t.width-r),Math.min(50,t.height-i)).data.buffer).some(t=>0!==t))return!1}return!0})(t)||(w.rr_dataURL=t.toDataURL(u.type,u.quality));else if(!("__context"in t)){var E=t.toDataURL(u.type,u.quality),_=i.createElement("canvas");_.width=t.width,_.height=t.height,E!==_.toDataURL(u.type,u.quality)&&(w.rr_dataURL=E)}if("img"===g&&l){U||(U=i.createElement("canvas"),Z=U.getContext("2d"));var j=t,F=j.currentSrc||j.getAttribute("src")||"<unknown-src>",L=j.crossOrigin,P=()=>{j.removeEventListener("load",P);try{U.width=j.naturalWidth,U.height=j.naturalHeight,Z.drawImage(j,0,0),w.rr_dataURL=U.toDataURL(u.type,u.quality)}catch(t){if("anonymous"!==j.crossOrigin)return j.crossOrigin="anonymous",void(j.complete&&0!==j.naturalWidth?P():j.addEventListener("load",P));console.warn("Cannot inline img src="+F+"! Error: "+t)}"anonymous"===j.crossOrigin&&(L?w.crossOrigin=L:j.removeAttribute("crossorigin"))};j.complete&&0!==j.naturalWidth?P():j.addEventListener("load",P)}if("audio"===g||"video"===g){var D=w;D.rr_mediaState=t.paused?"paused":"played",D.rr_mediaCurrentTime=t.currentTime,D.rr_mediaPlaybackRate=t.playbackRate,D.rr_mediaMuted=t.muted,D.rr_mediaLoop=t.loop,D.rr_mediaVolume=t.volume}d||(t.scrollLeft&&(w.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(w.rr_scrollTop=t.scrollTop));if(m){var{width:Y,height:G}=t.getBoundingClientRect();w={class:w.class,rr_width:Y+"px",rr_height:G+"px"}}"iframe"!==g||f(w.src)||(t.contentDocument||(w.rr_src=w.src),delete w.src);try{customElements.get(g)&&(r=!0)}catch(t){}return{type:v.Element,tagName:g,attributes:w,childNodes:[],isSVG:K(t)||void 0,needBlock:m,rootId:p,isCustom:r}}(t,{doc:r,blockClass:s,blockSelector:n,inlineStylesheet:a,maskInputOptions:h,maskInputFn:l,dataURLOptions:c,inlineImages:f,recordCanvas:d,keepIframeSrcFn:p,newlyAddedElement:m,rootId:g});case t.TEXT_NODE:return function(t,e){var r,{needsMask:i,maskTextFn:s,rootId:n}=e,o=I.parentNode(t),a=o&&o.tagName,h=I.textContent(t),u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;if(u&&h){try{t.nextSibling||t.previousSibling||(null==(r=o.sheet)?void 0:r.cssRules)&&(h=x(o.sheet))}catch(e){console.warn("Cannot get CSS styles from text's parentNode. Error: "+e,t)}h=D(h,H(e.doc))}l&&(h="SCRIPT_PLACEHOLDER");!u&&!l&&h&&i&&(h=s?s(h,I.parentElement(t)):h.replace(/[\S]/g,"*"));return{type:v.Text,textContent:h||"",isStyle:u,rootId:n}}(t,{doc:r,needsMask:o,maskTextFn:u,rootId:g});case t.CDATA_SECTION_NODE:return{type:v.CDATA,textContent:"",rootId:g};case t.COMMENT_NODE:return{type:v.Comment,textContent:I.textContent(t)||"",rootId:g};default:return!1}}function it(t){return null==t?"":t.toLowerCase()}function st(t,e){var{doc:r,mirror:i,blockClass:s,blockSelector:n,maskTextClass:o,maskTextSelector:a,skipChild:h=!1,inlineStylesheet:u=!0,maskInputOptions:l={},maskTextFn:c,maskInputFn:f,slimDOMOptions:d,dataURLOptions:p={},inlineImages:m=!1,recordCanvas:g=!1,onSerialize:w,onIframeLoad:y,iframeLoadTimeout:b=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:C=5e3,keepIframeSrcFn:x=()=>!1,newlyAddedElement:M=!1}=e,{needsMask:E}=e,{preserveWhiteSpace:O=!0}=e;E||(E=et(t,o,a,void 0===E));var T,N=rt(t,{doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:E,inlineStylesheet:u,maskInputOptions:l,maskTextFn:c,maskInputFn:f,dataURLOptions:p,inlineImages:m,recordCanvas:g,keepIframeSrcFn:x,newlyAddedElement:M});if(!N)return console.warn(t,"not serialized"),null;T=i.hasNode(t)?i.getId(t):!function(t,e){if(e.comment&&t.type===v.Comment)return!0;if(t.type===v.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&"js"===_(t.attributes.href)))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(it(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===it(t.attributes.name)||"icon"===it(t.attributes.rel)||"apple-touch-icon"===it(t.attributes.rel)||"shortcut icon"===it(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&it(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(it(t.attributes.property).match(/^(og|twitter|fb):/)||it(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===it(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===it(t.attributes.name)||"googlebot"===it(t.attributes.name)||"bingbot"===it(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===it(t.attributes.name)||"generator"===it(t.attributes.name)||"framework"===it(t.attributes.name)||"publisher"===it(t.attributes.name)||"progid"===it(t.attributes.name)||it(t.attributes.property).match(/^article:/)||it(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===it(t.attributes.name)||"yandex-verification"===it(t.attributes.name)||"csrf-token"===it(t.attributes.name)||"p:domain_verify"===it(t.attributes.name)||"verify-v1"===it(t.attributes.name)||"verification"===it(t.attributes.name)||"shopify-checkout-api-token"===it(t.attributes.name)))return!0}}return!1}(N,d)&&(O||N.type!==v.Text||N.isStyle||N.textContent.replace(/^\s+|\s+$/gm,"").length)?G():-2;var B=Object.assign(N,{id:T});if(i.add(t,B),-2===T)return null;w&&w(t);var j=!h;if(B.type===v.Element){j=j&&!B.needBlock,delete B.needBlock;var F=I.shadowRoot(t);F&&R(F)&&(B.isShadowHost=!0)}if((B.type===v.Document||B.type===v.Element)&&j){d.headWhitespace&&B.type===v.Element&&"head"===B.tagName&&(O=!1);var L={doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:E,maskTextClass:o,maskTextSelector:a,skipChild:h,inlineStylesheet:u,maskInputOptions:l,maskTextFn:c,maskInputFn:f,slimDOMOptions:d,dataURLOptions:p,inlineImages:m,recordCanvas:g,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:C,keepIframeSrcFn:x};if(B.type===v.Element&&"textarea"===B.tagName&&void 0!==B.attributes.value);else for(var P of Array.from(I.childNodes(t))){var D=st(P,L);D&&B.childNodes.push(D)}var U=null;if(k(t)&&(U=I.shadowRoot(t)))for(var Z of Array.from(I.childNodes(U))){var Y=st(Z,L);Y&&(R(U)&&(Y.isShadow=!0),B.childNodes.push(Y))}}var W=I.parentNode(t);return W&&A(W)&&R(W)&&(B.isShadow=!0),B.type===v.Element&&"iframe"===B.tagName&&function(t,e,r){var i=t.contentWindow;if(i){var s,n=!1;try{s=i.document.readyState}catch(t){return}if("complete"===s){var o="about:blank";if(i.location.href!==o||t.src===o||""===t.src)return setTimeout(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}else{var a=setTimeout(()=>{n||(e(),n=!0)},r);t.addEventListener("load",()=>{clearTimeout(a),n=!0,e()})}}}(t,()=>{var e=t.contentDocument;if(e&&y){var r=st(e,{doc:e,mirror:i,blockClass:s,blockSelector:n,needsMask:E,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:l,maskTextFn:c,maskInputFn:f,slimDOMOptions:d,dataURLOptions:p,inlineImages:m,recordCanvas:g,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:C,keepIframeSrcFn:x});r&&y(t,r)}},b),B.type===v.Element&&"link"===B.tagName&&"string"==typeof B.attributes.rel&&("stylesheet"===B.attributes.rel||"preload"===B.attributes.rel&&"string"==typeof B.attributes.href&&"css"===_(B.attributes.href))&&function(t,e,r){var i,s=!1;try{i=t.sheet}catch(t){return}if(!i){var n=setTimeout(()=>{s||(e(),s=!0)},r);t.addEventListener("load",()=>{clearTimeout(n),s=!0,e()})}}(t,()=>{if(S){var e=st(t,{doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:E,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:l,maskTextFn:c,maskInputFn:f,slimDOMOptions:d,dataURLOptions:p,inlineImages:m,recordCanvas:g,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:C,keepIframeSrcFn:x});e&&S(t,e)}},C),B}function nt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ot(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:function(){return t[e]}})}),r}var at={exports:{}},ht=String,ut=function(){return{isColorSupported:!1,reset:ht,bold:ht,dim:ht,italic:ht,underline:ht,inverse:ht,hidden:ht,strikethrough:ht,black:ht,red:ht,green:ht,yellow:ht,blue:ht,magenta:ht,cyan:ht,white:ht,gray:ht,bgBlack:ht,bgRed:ht,bgGreen:ht,bgYellow:ht,bgBlue:ht,bgMagenta:ht,bgCyan:ht,bgWhite:ht}};at.exports=ut(),at.exports.createColors=ut;var lt=at.exports,ct=ot(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),ft=lt,dt=ct,vt=class t extends Error{constructor(e,r,i,s,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==i&&("number"==typeof r?(this.line=r,this.column=i):(this.line=r.line,this.column=r.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";var e=this.source;null==t&&(t=ft.isColorSupported),dt&&t&&(e=dt(e));var r,i,s=e.split(/\r?\n/),n=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),a=String(o).length;if(t){var{bold:h,gray:u,red:l}=ft.createColors(!0);r=t=>h(l(t)),i=t=>u(t)}else r=i=t=>t;return s.slice(n,o).map((t,e)=>{var s=n+1+e,o=" "+(" "+s).slice(-a)+" | ";if(s===this.line){var h=i(o.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+i(o)+t+"\n "+h+r("^")}return" "+i(o)+t}).join("\n")}toString(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}},pt=vt;vt.default=vt;var mt={};mt.isClean=Symbol("isClean"),mt.my=Symbol("my");var gt={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var wt=class{constructor(t){this.builder=t}atrule(t,e){var r="@"+t.name,i=t.params?this.rawValue(t,"params"):"";if(void 0!==t.raws.afterName?r+=t.raws.afterName:i&&(r+=" "),t.nodes)this.block(t,r+i);else{var s=(t.raws.between||"")+(e?";":"");this.builder(r+i+s,t)}}beforeAfter(t,e){var r;r="decl"===t.type?this.raw(t,null,"beforeDecl"):"comment"===t.type?this.raw(t,null,"beforeComment"):"before"===e?this.raw(t,null,"beforeRule"):this.raw(t,null,"beforeClose");for(var i=t.parent,s=0;i&&"root"!==i.type;)s+=1,i=i.parent;if(r.includes("\n")){var n=this.raw(t,null,"indent");if(n.length)for(var o=0;o<s;o++)r+=n}return r}block(t,e){var r,i=this.raw(t,"between","beforeOpen");this.builder(e+i+"{",t,"start"),t.nodes&&t.nodes.length?(this.body(t),r=this.raw(t,"after")):r=this.raw(t,"after","emptyBody"),r&&this.builder(r),this.builder("}",t,"end")}body(t){for(var e=t.nodes.length-1;e>0&&"comment"===t.nodes[e].type;)e-=1;for(var r=this.raw(t,"semicolon"),i=0;i<t.nodes.length;i++){var s=t.nodes[i],n=this.raw(s,"before");n&&this.builder(n),this.stringify(s,e!==i||r)}}comment(t){var e=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+r+"*/",t)}decl(t,e){var r=this.raw(t,"between","colon"),i=t.prop+r+this.rawValue(t,"value");t.important&&(i+=t.raws.important||" !important"),e&&(i+=";"),this.builder(i,t)}document(t){this.body(t)}raw(t,e,r){var i;if(r||(r=e),e&&void 0!==(i=t.raws[e]))return i;var s=t.parent;if("before"===r){if(!s||"root"===s.type&&s.first===t)return"";if(s&&"document"===s.type)return""}if(!s)return gt[r];var n=t.root();if(n.rawCache||(n.rawCache={}),void 0!==n.rawCache[r])return n.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(t,r);var o,a="raw"+((o=r)[0].toUpperCase()+o.slice(1));return this[a]?i=this[a](n,t):n.walk(t=>{if(void 0!==(i=t.raws[e]))return!1}),void 0===i&&(i=gt[r]),n.rawCache[r]=i,i}rawBeforeClose(t){var e;return t.walk(t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return(e=t.raws.after).includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){var r;return t.walkComments(t=>{if(void 0!==t.raws.before)return(r=t.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(e,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,e){var r;return t.walkDecls(t=>{if(void 0!==t.raws.before)return(r=t.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(e,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){var e;return t.walk(t=>{if("decl"!==t.type&&void 0!==(e=t.raws.between))return!1}),e}rawBeforeRule(t){var e;return t.walk(r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&void 0!==r.raws.before)return(e=r.raws.before).includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){var e;return t.walkDecls(t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1}),e}rawEmptyBody(t){var e;return t.walk(t=>{if(t.nodes&&0===t.nodes.length&&void 0!==(e=t.raws.after))return!1}),e}rawIndent(t){return t.raws.indent?t.raws.indent:(t.walk(r=>{var i=r.parent;if(i&&i!==t&&i.parent&&i.parent===t&&void 0!==r.raws.before){var s=r.raws.before.split("\n");return e=(e=s[s.length-1]).replace(/\S/g,""),!1}}),e);var e}rawSemicolon(t){var e;return t.walk(t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&void 0!==(e=t.raws.semicolon))return!1}),e}rawValue(t,e){var r=t[e],i=t.raws[e];return i&&i.value===r?i.raw:r}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}},yt=wt;wt.default=wt;var bt=yt;function St(t,e){new bt(e).stringify(t)}var Ct=St;St.default=St;var{isClean:It,my:kt}=mt,At=pt,Rt=yt,xt=Ct;function Mt(t,e){var r=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var s=t[i],n=typeof s;"parent"===i&&"object"===n?e&&(r[i]=e):"source"===i?r[i]=s:Array.isArray(s)?r[i]=s.map(t=>Mt(t,r)):("object"===n&&null!==s&&(s=Mt(s)),r[i]=s)}return r}var Et=class{constructor(t){for(var e in void 0===t&&(t={}),this.raws={},this[It]=!1,this[kt]=!0,t)if("nodes"===e)for(var r of(this.nodes=[],t[e]))"function"==typeof r.clone?this.append(r.clone()):this.append(r);else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){var e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&"+e.input.from+":"+e.start.line+":"+e.start.column+"$&")}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t){for(var e in void 0===t&&(t={}),t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t){void 0===t&&(t={});var e=Mt(this);for(var r in t)e[r]=t[r];return e}cloneAfter(t){void 0===t&&(t={});var e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t){void 0===t&&(t={});var e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t,e){if(void 0===e&&(e={}),this.source){var{end:r,start:i}=this.rangeBy(e);return this.source.input.error(t,{column:i.column,line:i.line},{column:r.column,line:r.line},e)}return new At(t)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markDirty(){if(this[It]){this[It]=!1;for(var t=this;t=t.parent;)t[It]=!1}}next(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}}positionBy(t,e){var r=this.source.start;if(t.index)r=this.positionInside(t.index,e);else if(t.word){var i=(e=this.toString()).indexOf(t.word);-1!==i&&(r=this.positionInside(i,e))}return r}positionInside(t,e){for(var r=e||this.toString(),i=this.source.start.column,s=this.source.start.line,n=0;n<t;n++)"\n"===r[n]?(i=1,s+=1):i+=1;return{column:i,line:s}}prev(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t-1]}}rangeBy(t){var e={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:e.column+1,line:e.line};if(t.word){var i=this.toString(),s=i.indexOf(t.word);-1!==s&&(e=this.positionInside(s,i),r=this.positionInside(s+t.word.length,i))}else t.start?e={column:t.start.column,line:t.start.line}:t.index&&(e=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line}:"number"==typeof t.endIndex?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<e.line||r.line===e.line&&r.column<=e.column)&&(r={column:e.column+1,line:e.line}),{end:r,start:e}}raw(t,e){return(new Rt).raw(this,t,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(){if(this.parent){for(var t=this,e=!1,r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(var n of i)n===this?e=!0:e?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);e||this.remove()}return this}root(){for(var t=this;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){var r={},i=null==e;e=e||new Map;var s=0;for(var n in this)if(Object.prototype.hasOwnProperty.call(this,n)&&"parent"!==n&&"proxyCache"!==n){var o=this[n];if(Array.isArray(o))r[n]=o.map(t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t);else if("object"==typeof o&&o.toJSON)r[n]=o.toJSON(null,e);else if("source"===n){var a=e.get(o.input);null==a&&(a=s,e.set(o.input,s),s++),r[n]={end:o.end,inputId:a,start:o.start}}else r[n]=o}return i&&(r.inputs=[...e.keys()].map(t=>t.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t){void 0===t&&(t=xt),t.stringify&&(t=t.stringify);var e="";return t(this,t=>{e+=t}),e}warn(t,e,r){var i={node:this};for(var s in r)i[s]=r[s];return t.warn(e,i)}get proxyOf(){return this}},Ot=Et;Et.default=Et;var Tt=Ot,Nt=class extends Tt{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t=r({},t,{value:String(t.value)})),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}},Bt=Nt;Nt.default=Nt;var _t={nanoid:function(t){void 0===t&&(t=21);for(var e="",r=t;r--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e}},{SourceMapConsumer:jt,SourceMapGenerator:Ft}=ct,{existsSync:Lt,readFileSync:Pt}=ct,{dirname:Dt,join:Ut}=ct;var Zt=class{constructor(t,e){if(!1!==e.map){this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,i=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Dt(this.mapFile)),i&&(this.text=i)}}consumer(){return this.consumerCache||(this.consumerCache=new jt(this.text)),this.consumerCache}decodeInline(t){var e;if(/^data:application\/json;charset=utf-?8,/.test(t)||/^data:application\/json,/.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(t)||/^data:application\/json;base64,/.test(t))return e=t.substr(RegExp.lastMatch.length),Buffer?Buffer.from(e,"base64").toString():window.atob(e);var r=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){var e=t.match(/\/\*\s*# sourceMappingURL=/gm);if(e){var r=t.lastIndexOf(e.pop()),i=t.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,i)))}}loadFile(t){if(this.root=Dt(t),Lt(t))return this.mapFile=t,Pt(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof jt)return Ft.fromSourceMap(e).toString();if(e instanceof Ft)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}var r=e(t);if(r){var i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var s=this.annotation;return t&&(s=Ut(Dt(t),s)),this.loadFile(s)}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},Yt=Zt;Zt.default=Zt;var{SourceMapConsumer:Wt,SourceMapGenerator:Gt}=ct,{fileURLToPath:Vt,pathToFileURL:zt}=ct,{isAbsolute:Jt,resolve:Xt}=ct,{nanoid:Kt}=_t,$t=ct,Ht=pt,qt=Yt,Qt=Symbol("fromOffsetCache"),te=Boolean(Wt&&Gt),ee=Boolean(Xt&&Jt),re=class{constructor(t,e){if(void 0===e&&(e={}),null==t||"object"==typeof t&&!t.toString)throw new Error("PostCSS received "+t+" instead of CSS string");if(this.css=t.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!ee||/^\w+:\/\//.test(e.from)||Jt(e.from)?this.file=e.from:this.file=Xt(e.from)),ee&&te){var r=new qt(this.css,e);if(r.text){this.map=r;var i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Kt(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,r,i){var s,n,o;if(void 0===i&&(i={}),e&&"object"==typeof e){var a=e,h=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);e=u.line,r=u.col}else e=a.line,r=a.column;if("number"==typeof h.offset){var l=this.fromOffset(h.offset);n=l.line,o=l.col}else n=h.line,o=h.column}else if(!r){var c=this.fromOffset(e);e=c.line,r=c.col}var f=this.origin(e,r,n,o);return(s=f?new Ht(t,void 0===f.endLine?f.line:{column:f.column,line:f.line},void 0===f.endLine?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,i.plugin):new Ht(t,void 0===n?e:{column:r,line:e},void 0===n?r:{column:o,line:n},this.css,this.file,i.plugin)).input={column:r,endColumn:o,endLine:n,line:e,source:this.css},this.file&&(zt&&(s.input.url=zt(this.file).toString()),s.input.file=this.file),s}fromOffset(t){var e;if(this[Qt])e=this[Qt];else{var r=this.css.split("\n");e=new Array(r.length);for(var i=0,s=0,n=r.length;s<n;s++)e[s]=i,i+=r[s].length+1;this[Qt]=e}var o=0;if(t>=e[e.length-1])o=e.length-1;else for(var a,h=e.length-2;o<h;)if(t<e[a=o+(h-o>>1)])h=a-1;else{if(!(t>=e[a+1])){o=a;break}o=a+1}return{col:t-e[o]+1,line:o+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:Xt(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,e,r,i){if(!this.map)return!1;var s,n,o=this.map.consumer(),a=o.originalPositionFor({column:e,line:t});if(!a.source)return!1;"number"==typeof r&&(s=o.originalPositionFor({column:i,line:r})),n=Jt(a.source)?zt(a.source):new URL(a.source,this.map.consumer().sourceRoot||zt(this.map.mapFile));var h={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:n.toString()};if("file:"===n.protocol){if(!Vt)throw new Error("file: protocol is not available in this PostCSS build");h.file=Vt(n)}var u=o.sourceContentFor(a.source);return u&&(h.source=u),h}toJSON(){var t={};for(var e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map=r({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}},ie=re;re.default=re,$t&&$t.registerInput&&$t.registerInput(re);var{SourceMapConsumer:se,SourceMapGenerator:ne}=ct,{dirname:oe,relative:ae,resolve:he,sep:ue}=ct,{pathToFileURL:le}=ct,ce=ie,fe=Boolean(se&&ne),de=Boolean(oe&&he&&ae&&ue),ve=class{constructor(t,e,r,i){this.stringify=t,this.mapOpts=r.map||{},this.root=e,this.opts=r,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(){var t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(var t of this.previous()){var e=this.toUrl(this.path(t.file)),r=t.root||oe(t.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new se(t.text)).sourcesContent&&(i.sourcesContent=null):i=t.consumer(),this.map.applySourceMap(i,e,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root)for(var t,e=this.root.nodes.length-1;e>=0;e--)"comment"===(t=this.root.nodes[e]).type&&0===t.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(e);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),de&&fe&&this.isMap())return this.generateMap();var t="";return this.stringify(this.root,e=>{t+=e}),[t]}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){var t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=ne.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new ne({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new ne({file:this.outputFile(),ignoreInvalidMapping:!0});var t,e,r=1,i=1,s="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,h)=>{if(this.css+=o,a&&"end"!==h&&(n.generated.line=r,n.generated.column=i-1,a.source&&a.source.start?(n.source=this.sourcePath(a),n.original.line=a.source.start.line,n.original.column=a.source.start.column-1,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,this.map.addMapping(n))),(t=o.match(/\n/g))?(r+=t.length,e=o.lastIndexOf("\n"),i=o.length-e):i+=o.length,a&&"start"!==h){var u=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===u.last&&!u.raws.semicolon||(a.source&&a.source.end?(n.source=this.sourcePath(a),n.original.line=a.source.end.line,n.original.column=a.source.end.column-1,n.generated.line=r,n.generated.column=i-2,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,n.generated.line=r,n.generated.column=i-1,this.map.addMapping(n)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(t=>t.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some(t=>t.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(t=>t.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute)return t;if(60===t.charCodeAt(0))return t;if(/^\w+:\/\//.test(t))return t;var e=this.memoizedPaths.get(t);if(e)return e;var r=this.opts.to?oe(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=oe(he(r,this.mapOpts.annotation)));var i=ae(r,t);return this.memoizedPaths.set(t,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){var e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}});else{var t=new ce(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){var t={};if(this.root)this.root.walk(e=>{if(e.source){var r=e.source.input.from;if(r&&!t[r]){t[r]=!0;var i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,e.source.input.css)}}});else if(this.css){var e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){var e=this.memoizedFileURLs.get(t);if(e)return e;if(le){var r=le(t).toString();return this.memoizedFileURLs.set(t,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){var e=this.memoizedURLs.get(t);if(e)return e;"\\"===ue&&(t=t.replace(/\\/g,"/"));var r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}},pe=Ot,me=class extends pe{constructor(t){super(t),this.type="comment"}},ge=me;me.default=me;var we,ye,be,Se,{isClean:Ce,my:Ie}=mt,ke=Bt,Ae=ge,Re=Ot;function xe(t){return t.map(t=>(t.nodes&&(t.nodes=xe(t.nodes)),delete t.source,t))}function Me(t){if(t[Ce]=!1,t.proxyOf.nodes)for(var e of t.proxyOf.nodes)Me(e)}var Ee=class t extends Re{append(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i of e){var s=this.normalize(i,this.last);for(var n of s)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(var e of this.nodes)e.cleanRaws(t)}each(t){if(this.proxyOf.nodes){for(var e,r,i=this.getIterator();this.indexes[i]<this.proxyOf.nodes.length&&(e=this.indexes[i],!1!==(r=t(this.proxyOf.nodes[e],e)));)this.indexes[i]+=1;return delete this.indexes[i],r}}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return t[e](...i.map(t=>"function"==typeof t?(e,r)=>t(e.toProxy(),r):t))}:"every"===e||"some"===e?r=>t[e](function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];return r(t.toProxy(),...i)}):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map(t=>t.toProxy()):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){var r,i=this.index(t),s=this.normalize(e,this.proxyOf.nodes[i]).reverse();for(var n of(i=this.index(t),s))this.proxyOf.nodes.splice(i+1,0,n);for(var o in this.indexes)i<(r=this.indexes[o])&&(this.indexes[o]=r+s.length);return this.markDirty(),this}insertBefore(t,e){var r,i=this.index(t),s=0===i&&"prepend",n=this.normalize(e,this.proxyOf.nodes[i],s).reverse();for(var o of(i=this.index(t),n))this.proxyOf.nodes.splice(i,0,o);for(var a in this.indexes)i<=(r=this.indexes[a])&&(this.indexes[a]=r+n.length);return this.markDirty(),this}normalize(e,r){if("string"==typeof e)e=xe(we(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i of e=e.slice(0))i.parent&&i.parent.removeChild(i,"ignore");else if("root"===e.type&&"document"!==this.type)for(var s of e=e.nodes.slice(0))s.parent&&s.parent.removeChild(s,"ignore");else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new ke(e)]}else if(e.selector)e=[new ye(e)];else if(e.name)e=[new be(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Ae(e)]}var n=e.map(e=>(e[Ie]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Ce]&&Me(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e));return n}prepend(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i of e=e.reverse()){var s=this.normalize(i,this.first,"prepend").reverse();for(var n of s)this.proxyOf.nodes.unshift(n);for(var o in this.indexes)this.indexes[o]=this.indexes[o]+s.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(var t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){var e;for(var r in t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1),this.indexes)(e=this.indexes[r])>=t&&(this.indexes[r]=e-1);return this.markDirty(),this}replaceValues(t,e,r){return r||(r=e,e={}),this.walkDecls(i=>{e.props&&!e.props.includes(i.prop)||e.fast&&!i.value.includes(e.fast)||(i.value=i.value.replace(t,r))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((e,r)=>{var i;try{i=t(e,r)}catch(t){throw e.addToError(t)}return!1!==i&&e.walk&&(i=e.walk(t)),i})}walkAtRules(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("atrule"===r.type&&t.test(r.name))return e(r,i)}):this.walk((r,i)=>{if("atrule"===r.type&&r.name===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("atrule"===t.type)return e(t,r)}))}walkComments(t){return this.walk((e,r)=>{if("comment"===e.type)return t(e,r)})}walkDecls(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("decl"===r.type&&t.test(r.prop))return e(r,i)}):this.walk((r,i)=>{if("decl"===r.type&&r.prop===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("decl"===t.type)return e(t,r)}))}walkRules(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("rule"===r.type&&t.test(r.selector))return e(r,i)}):this.walk((r,i)=>{if("rule"===r.type&&r.selector===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("rule"===t.type)return e(t,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Ee.registerParse=t=>{we=t},Ee.registerRule=t=>{ye=t},Ee.registerAtRule=t=>{be=t},Ee.registerRoot=t=>{Se=t};var Oe=Ee;Ee.default=Ee,Ee.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,be.prototype):"rule"===t.type?Object.setPrototypeOf(t,ye.prototype):"decl"===t.type?Object.setPrototypeOf(t,ke.prototype):"comment"===t.type?Object.setPrototypeOf(t,Ae.prototype):"root"===t.type&&Object.setPrototypeOf(t,Se.prototype),t[Ie]=!0,t.nodes&&t.nodes.forEach(t=>{Ee.rebuild(t)})};var Te,Ne,Be=Oe,_e=class extends Be{constructor(t){super(r({type:"document"},t)),this.nodes||(this.nodes=[])}toResult(t){return void 0===t&&(t={}),new Te(new Ne,this,t).stringify()}};_e.registerLazyResult=t=>{Te=t},_e.registerProcessor=t=>{Ne=t};var je=_e;_e.default=_e;var Fe={},Le=function(t){Fe[t]||(Fe[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))},Pe=class{constructor(t,e){if(void 0===e&&(e={}),this.type="warning",this.text=t,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var i in e)this[i]=e[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}},De=Pe;Pe.default=Pe;var Ue=De,Ze=class{constructor(t,e,r){this.processor=t,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,e){void 0===e&&(e={}),e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);var r=new Ue(t,e);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>"warning"===t.type)}get content(){return this.css}},Ye=Ze;Ze.default=Ze;var We="'".charCodeAt(0),Ge='"'.charCodeAt(0),Ve="\\".charCodeAt(0),ze="/".charCodeAt(0),Je="\n".charCodeAt(0),Xe=" ".charCodeAt(0),Ke="\f".charCodeAt(0),$e="\t".charCodeAt(0),He="\r".charCodeAt(0),qe="[".charCodeAt(0),Qe="]".charCodeAt(0),tr="(".charCodeAt(0),er=")".charCodeAt(0),rr="{".charCodeAt(0),ir="}".charCodeAt(0),sr=";".charCodeAt(0),nr="*".charCodeAt(0),or=":".charCodeAt(0),ar="@".charCodeAt(0),hr=/[\t\n\f\r "#'()/;[\\\]{}]/g,ur=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,lr=/.[\r\n"'(/\\]/,cr=/[\da-f]/i,fr=Oe,dr=class extends fr{constructor(t){super(t),this.type="atrule"}append(){return this.proxyOf.nodes||(this.nodes=[]),super.append(...arguments)}prepend(){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...arguments)}},vr=dr;dr.default=dr,fr.registerAtRule(dr);var pr,mr,gr=Oe,wr=class extends gr{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,r){var i=super.normalize(t);if(e)if("prepend"===r)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(var s of i)s.raws.before=e.raws.before;return i}removeChild(t,e){var r=this.index(t);return!e&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t){return void 0===t&&(t={}),new pr(new mr,this,t).stringify()}};wr.registerLazyResult=t=>{pr=t},wr.registerProcessor=t=>{mr=t};var yr=wr;wr.default=wr,gr.registerRoot(wr);var br={comma:t=>br.split(t,[","],!0),space:t=>br.split(t,[" ","\n","\t"]),split(t,e,r){var i=[],s="",n=!1,o=0,a=!1,h="",u=!1;for(var l of t)u?u=!1:"\\"===l?u=!0:a?l===h&&(a=!1):'"'===l||"'"===l?(a=!0,h=l):"("===l?o+=1:")"===l?o>0&&(o-=1):0===o&&e.includes(l)&&(n=!0),n?(""!==s&&i.push(s.trim()),s="",n=!1):s+=l;return(r||""!==s)&&i.push(s.trim()),i}},Sr=br;br.default=br;var Cr=Oe,Ir=Sr,kr=class extends Cr{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Ir.comma(this.selector)}set selectors(t){var e=this.selector?this.selector.match(/,\s*/):null,r=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}},Ar=kr;kr.default=kr,Cr.registerRule(kr);var Rr=Bt,xr=function(t,e){void 0===e&&(e={});var r,i,s,n,o,a,h,u,l,c,f=t.css.valueOf(),d=e.ignoreErrors,v=f.length,p=0,m=[],g=[];function w(e){throw t.error("Unclosed "+e,p)}return{back:function(t){g.push(t)},endOfFile:function(){return 0===g.length&&p>=v},nextToken:function(t){if(g.length)return g.pop();if(!(p>=v)){var e=!!t&&t.ignoreUnclosed;switch(r=f.charCodeAt(p)){case Je:case Xe:case $e:case He:case Ke:i=p;do{i+=1,r=f.charCodeAt(i)}while(r===Xe||r===Je||r===$e||r===He||r===Ke);c=["space",f.slice(p,i)],p=i-1;break;case qe:case Qe:case rr:case ir:case or:case sr:case er:var y=String.fromCharCode(r);c=[y,y,p];break;case tr:if(u=m.length?m.pop()[1]:"",l=f.charCodeAt(p+1),"url"===u&&l!==We&&l!==Ge&&l!==Xe&&l!==Je&&l!==$e&&l!==Ke&&l!==He){i=p;do{if(a=!1,-1===(i=f.indexOf(")",i+1))){if(d||e){i=p;break}w("bracket")}for(h=i;f.charCodeAt(h-1)===Ve;)h-=1,a=!a}while(a);c=["brackets",f.slice(p,i+1),p,i],p=i}else i=f.indexOf(")",p+1),n=f.slice(p,i+1),-1===i||lr.test(n)?c=["(","(",p]:(c=["brackets",n,p,i],p=i);break;case We:case Ge:s=r===We?"'":'"',i=p;do{if(a=!1,-1===(i=f.indexOf(s,i+1))){if(d||e){i=p+1;break}w("string")}for(h=i;f.charCodeAt(h-1)===Ve;)h-=1,a=!a}while(a);c=["string",f.slice(p,i+1),p,i],p=i;break;case ar:hr.lastIndex=p+1,hr.test(f),i=0===hr.lastIndex?f.length-1:hr.lastIndex-2,c=["at-word",f.slice(p,i+1),p,i],p=i;break;case Ve:for(i=p,o=!0;f.charCodeAt(i+1)===Ve;)i+=1,o=!o;if(r=f.charCodeAt(i+1),o&&r!==ze&&r!==Xe&&r!==Je&&r!==$e&&r!==He&&r!==Ke&&(i+=1,cr.test(f.charAt(i)))){for(;cr.test(f.charAt(i+1));)i+=1;f.charCodeAt(i+1)===Xe&&(i+=1)}c=["word",f.slice(p,i+1),p,i],p=i;break;default:r===ze&&f.charCodeAt(p+1)===nr?(0===(i=f.indexOf("*/",p+2)+1)&&(d||e?i=f.length:w("comment")),c=["comment",f.slice(p,i+1),p,i],p=i):(ur.lastIndex=p+1,ur.test(f),i=0===ur.lastIndex?f.length-1:ur.lastIndex-2,c=["word",f.slice(p,i+1),p,i],m.push(c),p=i)}return p++,c}},position:function(){return p}}},Mr=ge,Er=vr,Or=yr,Tr=Ar,Nr={empty:!0,space:!0};var Br=class{constructor(t){this.input=t,this.root=new Or,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){var e,r,i,s=new Er;s.name=t[1].slice(1),""===s.name&&this.unnamedAtrule(s,t),this.init(s,t[2]);for(var n=!1,o=!1,a=[],h=[];!this.tokenizer.endOfFile();){if("("===(e=(t=this.tokenizer.nextToken())[0])||"["===e?h.push("("===e?")":"]"):"{"===e&&h.length>0?h.push("}"):e===h[h.length-1]&&h.pop(),0===h.length){if(";"===e){s.source.end=this.getPosition(t[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===e){o=!0;break}if("}"===e){if(a.length>0){for(r=a[i=a.length-1];r&&"space"===r[0];)r=a[--i];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(t);break}a.push(t)}else a.push(t);if(this.tokenizer.endOfFile()){n=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),n&&(t=a[a.length-1],s.source.end=this.getPosition(t[3]||t[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(t){var e=this.colon(t);if(!1!==e){for(var r,i=0,s=e-1;s>=0&&("space"===(r=t[s])[0]||2!==(i+=1));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}}colon(t){var e,r,i,s=0;for(var[n,o]of t.entries()){if("("===(r=(e=o)[0])&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(i){if("word"===i[0]&&"progid"===i[1])continue;return n}this.doubleColon(e)}i=e}return!1}comment(t){var e=new Mr;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;var r=t[1].slice(2,-2);if(/^\s*$/.test(r))e.text="",e.raws.left=r,e.raws.right="";else{var i=r.match(/^(\s*)([^]*\S)(\s*)$/);e.text=i[2],e.raws.left=i[1],e.raws.right=i[3]}}createTokenizer(){this.tokenizer=xr(this.input)}decl(t,e){var r=new Rr;this.init(r,t[0][2]);var i,s=t[t.length-1];for(";"===s[0]&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(s[3]||s[2]||function(t){for(var e=t.length-1;e>=0;e--){var r=t[e],i=r[3]||r[2];if(i)return i}}(t)),r.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){var n=t[0][0];if(":"===n||"space"===n||"comment"===n)break;r.prop+=t.shift()[1]}for(r.raws.between="";t.length;){if(":"===(i=t.shift())[0]){r.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var o,a=[];t.length&&("space"===(o=t[0][0])||"comment"===o);)a.push(t.shift());this.precheckMissedSemicolon(t);for(var h=t.length-1;h>=0;h--){if("!important"===(i=t[h])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(t,h);" !important"!==(u=this.spacesFromEnd(t)+u)&&(r.raws.important=u);break}if("important"===i[1].toLowerCase()){for(var l=t.slice(0),c="",f=h;f>0;f--){var d=l[f][0];if(0===c.trim().indexOf("!")&&"space"!==d)break;c=l.pop()[1]+c}0===c.trim().indexOf("!")&&(r.important=!0,r.raws.important=c,t=l)}if("space"!==i[0]&&"comment"!==i[0])break}var v=t.some(t=>"space"!==t[0]&&"comment"!==t[0]);v&&(r.raws.between+=a.map(t=>t[1]).join(""),a=[]),this.raw(r,"value",a.concat(t),e),r.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){var e=new Tr;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){var e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){var e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){for(var e=!1,r=null,i=!1,s=null,n=[],o=t[1].startsWith("--"),a=[],h=t;h;){if(r=h[0],a.push(h),"("===r||"["===r)s||(s=h),n.push("("===r?")":"]");else if(o&&i&&"{"===r)s||(s=h),n.push("}");else if(0===n.length){if(";"===r){if(i)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),e=!0;break}":"===r&&(i=!0)}else r===n[n.length-1]&&(n.pop(),0===n.length&&(s=null));h=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),n.length>0&&this.unclosedBracket(s),e&&i){if(!o)for(;a.length&&("space"===(h=a[a.length-1][0])||"comment"===h);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){for(var t;!this.tokenizer.endOfFile();)switch((t=this.tokenizer.nextToken())[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,r,i){for(var s,n,o,a,h=r.length,u="",l=!0,c=0;c<h;c+=1)"space"!==(n=(s=r[c])[0])||c!==h-1||i?"comment"===n?(a=r[c-1]?r[c-1][0]:"empty",o=r[c+1]?r[c+1][0]:"empty",Nr[a]||Nr[o]||","===u.slice(-1)?l=!1:u+=s[1]):u+=s[1]:l=!1;if(!l){var f=r.reduce((t,e)=>t+e[1],"");t.raws[e]={raw:f,value:u}}t[e]=u}rule(t){t.pop();var e=new Tr;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){for(var e,r="";t.length&&("space"===(e=t[t.length-1][0])||"comment"===e);)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){for(var e,r="";t.length&&("space"===(e=t[0][0])||"comment"===e);)r+=t.shift()[1];return r}spacesFromEnd(t){for(var e="";t.length&&"space"===t[t.length-1][0];)e=t.pop()[1]+e;return e}stringFrom(t,e){for(var r="",i=e;i<t.length;i++)r+=t[i][1];return t.splice(e,t.length-e),r}unclosedBlock(){var t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}},_r=Oe,jr=Br,Fr=ie;function Lr(t,e){var r=new Fr(t,e),i=new jr(r);try{i.parse()}catch(t){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===t.name&&e&&e.from&&(/\.scss$/i.test(e.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(e.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(e.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return i.root}var Pr=Lr;Lr.default=Lr,_r.registerParse(Lr);var{isClean:Dr,my:Ur}=mt,Zr=ve,Yr=Ct,Wr=Oe,Gr=je,Vr=Le,zr=Ye,Jr=Pr,Xr=yr,Kr={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},$r={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Hr={Once:!0,postcssPlugin:!0,prepare:!0};function qr(t){return"object"==typeof t&&"function"==typeof t.then}function Qr(t){var e=!1,r=Kr[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,0,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function ti(t){return{eventIndex:0,events:"document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:Qr(t),iterator:0,node:t,visitorIndex:0,visitors:[]}}function ei(t){return t[Dr]=!1,t.nodes&&t.nodes.forEach(t=>ei(t)),t}var ri={},ii=class t{constructor(e,i,s){var n;if(this.stringified=!1,this.processed=!1,"object"!=typeof i||null===i||"root"!==i.type&&"document"!==i.type)if(i instanceof t||i instanceof zr)n=ei(i.root),i.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=i.map);else{var o=Jr;s.syntax&&(o=s.syntax.parse),s.parser&&(o=s.parser),o.parse&&(o=o.parse);try{n=o(i,s)}catch(t){this.processed=!0,this.error=t}n&&!n[Ur]&&Wr.rebuild(n)}else n=ei(i);this.result=new zr(e,n,s),this.helpers=r({},ri,{postcss:ri,result:this.result}),this.plugins=this.processor.plugins.map(t=>"object"==typeof t&&t.prepare?r({},t,t.prepare(this.result)):t)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){var r=this.result.lastPlugin;try{if(e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var i=r.postcssPlugin,s=r.postcssVersion,n=this.result.processor.version,o=s.split("."),a=n.split(".");(o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+i+" uses "+s+". Perhaps this is the source of the error below.")}}else t.plugin=r.postcssPlugin,t.setMessage()}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};var t=(t,e,r)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,r])};for(var e of this.plugins)if("object"==typeof e)for(var r in e){if(!$r[r]&&/^[A-Z]/.test(r))throw new Error("Unknown event "+r+" in "+e.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Hr[r])if("object"==typeof e[r])for(var i in e[r])t(e,"*"===i?r:r+"-"+i.toLowerCase(),e[r][i]);else"function"==typeof e[r]&&t(e,r,e[r])}this.hasListener=Object.keys(this.listeners).length>0}runAsync(){var t=this;return e(function*(){t.plugin=0;for(var e=0;e<t.plugins.length;e++){var r=t.plugins[e],i=t.runOnRoot(r);if(qr(i))try{yield i}catch(e){throw t.handleError(e)}}if(t.prepareVisitors(),t.hasListener){for(var s=t.result.root;!s[Dr];){s[Dr]=!0;for(var n=[ti(s)];n.length>0;){var o=t.visitTick(n);if(qr(o))try{yield o}catch(e){var a=n[n.length-1].node;throw t.handleError(e,a)}}}if(t.listeners.OnceExit){var h=function*(e){t.result.lastPlugin=u;try{if("document"===s.type){var r=s.nodes.map(r=>e(r,t.helpers));yield Promise.all(r)}else yield e(s,t.helpers)}catch(e){throw t.handleError(e)}};for(var[u,l]of t.listeners.OnceExit)yield*h(l)}}return t.processed=!0,t.stringify()})()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){var e=this.result.root.nodes.map(e=>t.Once(e,this.helpers));return qr(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var t=this.result.opts,e=Yr;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);var r=new Zr(e,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var t of this.plugins){if(qr(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var e=this.result.root;!e[Dr];)e[Dr]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(var r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this.opts||Vr("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}toString(){return this.css}visitSync(t,e){for(var[r,i]of t){this.result.lastPlugin=r;var s=void 0;try{s=i(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(qr(s))throw this.getAsyncError()}}visitTick(t){var e=t[t.length-1],{node:r,visitors:i}=e;if("root"===r.type||"document"===r.type||r.parent){if(i.length>0&&e.visitorIndex<i.length){var[s,n]=i[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===i.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=s;try{return n(r.toProxy(),this.helpers)}catch(t){throw this.handleError(t,r)}}if(0!==e.iterator){for(var o,a=e.iterator;o=r.nodes[r.indexes[a]];)if(r.indexes[a]+=1,!o[Dr])return o[Dr]=!0,void t.push(ti(o));e.iterator=0,delete r.indexes[a]}for(var h=e.events;e.eventIndex<h.length;){var u=h[e.eventIndex];if(e.eventIndex+=1,0===u)return void(r.nodes&&r.nodes.length&&(r[Dr]=!0,e.iterator=r.getIterator()));if(this.listeners[u])return void(e.visitors=this.listeners[u])}t.pop()}else t.pop()}walkSync(t){t[Dr]=!0;var e=Qr(t);for(var r of e)if(0===r)t.nodes&&t.each(t=>{t[Dr]||this.walkSync(t)});else{var i=this.listeners[r];if(i&&this.visitSync(i,t.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"}};ii.registerPostcss=t=>{ri=t};var si=ii;ii.default=ii,Xr.registerLazyResult(ii),Gr.registerLazyResult(ii);var ni=ve,oi=Ct,ai=Le,hi=Pr,ui=Ye,li=class{constructor(t,e,r){var i;e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=r,this._map=void 0;var s=oi;this.result=new ui(this._processor,i,this._opts),this.result.css=e;var n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});var o=new ni(s,i,this._opts,e);if(o.isMap()){var[a,h]=o.generate();a&&(this.result.css=a),h&&(this.result.map=h)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this._opts||ai("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}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;var t,e=hi;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}},ci=li;li.default=li;var fi=ci,di=si,vi=je,pi=yr,mi=class{constructor(t){void 0===t&&(t=[]),this.version="8.4.38",this.plugins=this.normalize(t)}normalize(t){var e=[];for(var r of t)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))e=e.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)e.push(r);else if("function"==typeof r)e.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return e}process(t,e){return void 0===e&&(e={}),this.plugins.length||e.parser||e.stringifier||e.syntax?new di(this,t,e):new fi(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}},gi=mi;mi.default=mi,pi.registerProcessor(mi),vi.registerProcessor(mi);var wi=Bt,yi=Yt,bi=ge,Si=vr,Ci=ie,Ii=yr,ki=Ar;function Ai(t,e){if(Array.isArray(t))return t.map(t=>Ai(t));var{inputs:s}=t,a=i(t,n);if(s)for(var h of(e=[],s)){var u=r({},h,{__proto__:Ci.prototype});u.map&&(u.map=r({},u.map,{__proto__:yi.prototype})),e.push(u)}if(a.nodes&&(a.nodes=t.nodes.map(t=>Ai(t,e))),a.source){var l=a.source,{inputId:c}=l,f=i(l,o);a.source=f,null!=c&&(a.source.input=e[c])}if("root"===a.type)return new Ii(a);if("decl"===a.type)return new wi(a);if("rule"===a.type)return new ki(a);if("comment"===a.type)return new bi(a);if("atrule"===a.type)return new Si(a);throw new Error("Unknown node type: "+t.type)}var Ri=Ai;Ai.default=Ai;var xi=pt,Mi=Bt,Ei=si,Oi=Oe,Ti=gi,Ni=Ct,Bi=Ri,_i=je,ji=De,Fi=ge,Li=vr,Pi=Ye,Di=ie,Ui=Pr,Zi=Sr,Yi=Ar,Wi=yr,Gi=Ot;function Vi(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new Ti(e)}Vi.plugin=function(t,e){var r,i=!1;function s(){console&&console.warn&&!i&&(i=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var r=e(...arguments);return r.postcssPlugin=t,r.postcssVersion=(new Ti).version,r}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(t,e,r){return Vi([s(r)]).process(t,e)},s},Vi.stringify=Ni,Vi.parse=Ui,Vi.fromJSON=Bi,Vi.list=Zi,Vi.comment=t=>new Fi(t),Vi.atRule=t=>new Li(t),Vi.decl=t=>new Mi(t),Vi.rule=t=>new Yi(t),Vi.root=t=>new Wi(t),Vi.document=t=>new _i(t),Vi.CssSyntaxError=xi,Vi.Declaration=Mi,Vi.Container=Oi,Vi.Processor=Ti,Vi.Document=_i,Vi.Comment=Fi,Vi.Warning=ji,Vi.AtRule=Li,Vi.Result=Pi,Vi.Input=Di,Vi.Rule=Yi,Vi.Root=Wi,Vi.Node=Gi,Ei.registerPostcss(Vi);var zi=Vi;Vi.default=Vi;var Ji=nt(zi);Ji.stringify,Ji.fromJSON,Ji.plugin,Ji.parse,Ji.list,Ji.document,Ji.comment,Ji.atRule,Ji.rule,Ji.decl,Ji.root,Ji.CssSyntaxError,Ji.Declaration,Ji.Container,Ji.Processor,Ji.Document,Ji.Comment,Ji.Warning,Ji.AtRule,Ji.Result,Ji.Input,Ji.Rule,Ji.Root,Ji.Node;var Xi=Object.defineProperty,Ki=(t,e,r)=>((t,e,r)=>e in t?Xi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r);function $i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Hi(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:function(){return t[e]}})}),r}var qi={exports:{}},Qi=String,ts=function(){return{isColorSupported:!1,reset:Qi,bold:Qi,dim:Qi,italic:Qi,underline:Qi,inverse:Qi,hidden:Qi,strikethrough:Qi,black:Qi,red:Qi,green:Qi,yellow:Qi,blue:Qi,magenta:Qi,cyan:Qi,white:Qi,gray:Qi,bgBlack:Qi,bgRed:Qi,bgGreen:Qi,bgYellow:Qi,bgBlue:Qi,bgMagenta:Qi,bgCyan:Qi,bgWhite:Qi}};qi.exports=ts(),qi.exports.createColors=ts;var es=qi.exports,rs=Hi(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),is=es,ss=rs,ns=class t extends Error{constructor(e,r,i,s,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==i&&("number"==typeof r?(this.line=r,this.column=i):(this.line=r.line,this.column=r.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";var e=this.source;null==t&&(t=is.isColorSupported),ss&&t&&(e=ss(e));var r,i,s=e.split(/\r?\n/),n=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),a=String(o).length;if(t){var{bold:h,gray:u,red:l}=is.createColors(!0);r=t=>h(l(t)),i=t=>u(t)}else r=i=t=>t;return s.slice(n,o).map((t,e)=>{var s=n+1+e,o=" "+(" "+s).slice(-a)+" | ";if(s===this.line){var h=i(o.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+i(o)+t+"\n "+h+r("^")}return" "+i(o)+t}).join("\n")}toString(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}},os=ns;ns.default=ns;var as={};as.isClean=Symbol("isClean"),as.my=Symbol("my");var hs={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var us=class{constructor(t){this.builder=t}atrule(t,e){var r="@"+t.name,i=t.params?this.rawValue(t,"params"):"";if(void 0!==t.raws.afterName?r+=t.raws.afterName:i&&(r+=" "),t.nodes)this.block(t,r+i);else{var s=(t.raws.between||"")+(e?";":"");this.builder(r+i+s,t)}}beforeAfter(t,e){var r;r="decl"===t.type?this.raw(t,null,"beforeDecl"):"comment"===t.type?this.raw(t,null,"beforeComment"):"before"===e?this.raw(t,null,"beforeRule"):this.raw(t,null,"beforeClose");for(var i=t.parent,s=0;i&&"root"!==i.type;)s+=1,i=i.parent;if(r.includes("\n")){var n=this.raw(t,null,"indent");if(n.length)for(var o=0;o<s;o++)r+=n}return r}block(t,e){var r,i=this.raw(t,"between","beforeOpen");this.builder(e+i+"{",t,"start"),t.nodes&&t.nodes.length?(this.body(t),r=this.raw(t,"after")):r=this.raw(t,"after","emptyBody"),r&&this.builder(r),this.builder("}",t,"end")}body(t){for(var e=t.nodes.length-1;e>0&&"comment"===t.nodes[e].type;)e-=1;for(var r=this.raw(t,"semicolon"),i=0;i<t.nodes.length;i++){var s=t.nodes[i],n=this.raw(s,"before");n&&this.builder(n),this.stringify(s,e!==i||r)}}comment(t){var e=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+r+"*/",t)}decl(t,e){var r=this.raw(t,"between","colon"),i=t.prop+r+this.rawValue(t,"value");t.important&&(i+=t.raws.important||" !important"),e&&(i+=";"),this.builder(i,t)}document(t){this.body(t)}raw(t,e,r){var i;if(r||(r=e),e&&void 0!==(i=t.raws[e]))return i;var s=t.parent;if("before"===r){if(!s||"root"===s.type&&s.first===t)return"";if(s&&"document"===s.type)return""}if(!s)return hs[r];var n=t.root();if(n.rawCache||(n.rawCache={}),void 0!==n.rawCache[r])return n.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(t,r);var o,a="raw"+((o=r)[0].toUpperCase()+o.slice(1));return this[a]?i=this[a](n,t):n.walk(t=>{if(void 0!==(i=t.raws[e]))return!1}),void 0===i&&(i=hs[r]),n.rawCache[r]=i,i}rawBeforeClose(t){var e;return t.walk(t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return(e=t.raws.after).includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){var r;return t.walkComments(t=>{if(void 0!==t.raws.before)return(r=t.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(e,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,e){var r;return t.walkDecls(t=>{if(void 0!==t.raws.before)return(r=t.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(e,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){var e;return t.walk(t=>{if("decl"!==t.type&&void 0!==(e=t.raws.between))return!1}),e}rawBeforeRule(t){var e;return t.walk(r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&void 0!==r.raws.before)return(e=r.raws.before).includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){var e;return t.walkDecls(t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1}),e}rawEmptyBody(t){var e;return t.walk(t=>{if(t.nodes&&0===t.nodes.length&&void 0!==(e=t.raws.after))return!1}),e}rawIndent(t){return t.raws.indent?t.raws.indent:(t.walk(r=>{var i=r.parent;if(i&&i!==t&&i.parent&&i.parent===t&&void 0!==r.raws.before){var s=r.raws.before.split("\n");return e=(e=s[s.length-1]).replace(/\S/g,""),!1}}),e);var e}rawSemicolon(t){var e;return t.walk(t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&void 0!==(e=t.raws.semicolon))return!1}),e}rawValue(t,e){var r=t[e],i=t.raws[e];return i&&i.value===r?i.raw:r}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}},ls=us;us.default=us;var cs=ls;function fs(t,e){new cs(e).stringify(t)}var ds=fs;fs.default=fs;var{isClean:vs,my:ps}=as,ms=os,gs=ls,ws=ds;function ys(t,e){var r=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var s=t[i],n=typeof s;"parent"===i&&"object"===n?e&&(r[i]=e):"source"===i?r[i]=s:Array.isArray(s)?r[i]=s.map(t=>ys(t,r)):("object"===n&&null!==s&&(s=ys(s)),r[i]=s)}return r}var bs=class{constructor(t){for(var e in void 0===t&&(t={}),this.raws={},this[vs]=!1,this[ps]=!0,t)if("nodes"===e)for(var r of(this.nodes=[],t[e]))"function"==typeof r.clone?this.append(r.clone()):this.append(r);else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){var e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&"+e.input.from+":"+e.start.line+":"+e.start.column+"$&")}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t){for(var e in void 0===t&&(t={}),t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t){void 0===t&&(t={});var e=ys(this);for(var r in t)e[r]=t[r];return e}cloneAfter(t){void 0===t&&(t={});var e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t){void 0===t&&(t={});var e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t,e){if(void 0===e&&(e={}),this.source){var{end:r,start:i}=this.rangeBy(e);return this.source.input.error(t,{column:i.column,line:i.line},{column:r.column,line:r.line},e)}return new ms(t)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markDirty(){if(this[vs]){this[vs]=!1;for(var t=this;t=t.parent;)t[vs]=!1}}next(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}}positionBy(t,e){var r=this.source.start;if(t.index)r=this.positionInside(t.index,e);else if(t.word){var i=(e=this.toString()).indexOf(t.word);-1!==i&&(r=this.positionInside(i,e))}return r}positionInside(t,e){for(var r=e||this.toString(),i=this.source.start.column,s=this.source.start.line,n=0;n<t;n++)"\n"===r[n]?(i=1,s+=1):i+=1;return{column:i,line:s}}prev(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t-1]}}rangeBy(t){var e={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:e.column+1,line:e.line};if(t.word){var i=this.toString(),s=i.indexOf(t.word);-1!==s&&(e=this.positionInside(s,i),r=this.positionInside(s+t.word.length,i))}else t.start?e={column:t.start.column,line:t.start.line}:t.index&&(e=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line}:"number"==typeof t.endIndex?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<e.line||r.line===e.line&&r.column<=e.column)&&(r={column:e.column+1,line:e.line}),{end:r,start:e}}raw(t,e){return(new gs).raw(this,t,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(){if(this.parent){for(var t=this,e=!1,r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(var n of i)n===this?e=!0:e?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);e||this.remove()}return this}root(){for(var t=this;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){var r={},i=null==e;e=e||new Map;var s=0;for(var n in this)if(Object.prototype.hasOwnProperty.call(this,n)&&"parent"!==n&&"proxyCache"!==n){var o=this[n];if(Array.isArray(o))r[n]=o.map(t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t);else if("object"==typeof o&&o.toJSON)r[n]=o.toJSON(null,e);else if("source"===n){var a=e.get(o.input);null==a&&(a=s,e.set(o.input,s),s++),r[n]={end:o.end,inputId:a,start:o.start}}else r[n]=o}return i&&(r.inputs=[...e.keys()].map(t=>t.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t){void 0===t&&(t=ws),t.stringify&&(t=t.stringify);var e="";return t(this,t=>{e+=t}),e}warn(t,e,r){var i={node:this};for(var s in r)i[s]=r[s];return t.warn(e,i)}get proxyOf(){return this}},Ss=bs;bs.default=bs;var Cs=Ss,Is=class extends Cs{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t=r({},t,{value:String(t.value)})),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}},ks=Is;Is.default=Is;var As={nanoid:function(t){void 0===t&&(t=21);for(var e="",r=t;r--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e}},{SourceMapConsumer:Rs,SourceMapGenerator:xs}=rs,{existsSync:Ms,readFileSync:Es}=rs,{dirname:Os,join:Ts}=rs;var Ns=class{constructor(t,e){if(!1!==e.map){this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,i=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Os(this.mapFile)),i&&(this.text=i)}}consumer(){return this.consumerCache||(this.consumerCache=new Rs(this.text)),this.consumerCache}decodeInline(t){var e;if(/^data:application\/json;charset=utf-?8,/.test(t)||/^data:application\/json,/.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(t)||/^data:application\/json;base64,/.test(t))return e=t.substr(RegExp.lastMatch.length),Buffer?Buffer.from(e,"base64").toString():window.atob(e);var r=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){var e=t.match(/\/\*\s*# sourceMappingURL=/gm);if(e){var r=t.lastIndexOf(e.pop()),i=t.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,i)))}}loadFile(t){if(this.root=Os(t),Ms(t))return this.mapFile=t,Es(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof Rs)return xs.fromSourceMap(e).toString();if(e instanceof xs)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}var r=e(t);if(r){var i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var s=this.annotation;return t&&(s=Ts(Os(t),s)),this.loadFile(s)}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},Bs=Ns;Ns.default=Ns;var{SourceMapConsumer:_s,SourceMapGenerator:js}=rs,{fileURLToPath:Fs,pathToFileURL:Ls}=rs,{isAbsolute:Ps,resolve:Ds}=rs,{nanoid:Us}=As,Zs=rs,Ys=os,Ws=Bs,Gs=Symbol("fromOffsetCache"),Vs=Boolean(_s&&js),zs=Boolean(Ds&&Ps),Js=class{constructor(t,e){if(void 0===e&&(e={}),null==t||"object"==typeof t&&!t.toString)throw new Error("PostCSS received "+t+" instead of CSS string");if(this.css=t.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!zs||/^\w+:\/\//.test(e.from)||Ps(e.from)?this.file=e.from:this.file=Ds(e.from)),zs&&Vs){var r=new Ws(this.css,e);if(r.text){this.map=r;var i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Us(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,r,i){var s,n,o;if(void 0===i&&(i={}),e&&"object"==typeof e){var a=e,h=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);e=u.line,r=u.col}else e=a.line,r=a.column;if("number"==typeof h.offset){var l=this.fromOffset(h.offset);n=l.line,o=l.col}else n=h.line,o=h.column}else if(!r){var c=this.fromOffset(e);e=c.line,r=c.col}var f=this.origin(e,r,n,o);return(s=f?new Ys(t,void 0===f.endLine?f.line:{column:f.column,line:f.line},void 0===f.endLine?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,i.plugin):new Ys(t,void 0===n?e:{column:r,line:e},void 0===n?r:{column:o,line:n},this.css,this.file,i.plugin)).input={column:r,endColumn:o,endLine:n,line:e,source:this.css},this.file&&(Ls&&(s.input.url=Ls(this.file).toString()),s.input.file=this.file),s}fromOffset(t){var e;if(this[Gs])e=this[Gs];else{var r=this.css.split("\n");e=new Array(r.length);for(var i=0,s=0,n=r.length;s<n;s++)e[s]=i,i+=r[s].length+1;this[Gs]=e}var o=0;if(t>=e[e.length-1])o=e.length-1;else for(var a,h=e.length-2;o<h;)if(t<e[a=o+(h-o>>1)])h=a-1;else{if(!(t>=e[a+1])){o=a;break}o=a+1}return{col:t-e[o]+1,line:o+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:Ds(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,e,r,i){if(!this.map)return!1;var s,n,o=this.map.consumer(),a=o.originalPositionFor({column:e,line:t});if(!a.source)return!1;"number"==typeof r&&(s=o.originalPositionFor({column:i,line:r})),n=Ps(a.source)?Ls(a.source):new URL(a.source,this.map.consumer().sourceRoot||Ls(this.map.mapFile));var h={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:n.toString()};if("file:"===n.protocol){if(!Fs)throw new Error("file: protocol is not available in this PostCSS build");h.file=Fs(n)}var u=o.sourceContentFor(a.source);return u&&(h.source=u),h}toJSON(){var t={};for(var e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map=r({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}},Xs=Js;Js.default=Js,Zs&&Zs.registerInput&&Zs.registerInput(Js);var{SourceMapConsumer:Ks,SourceMapGenerator:$s}=rs,{dirname:Hs,relative:qs,resolve:Qs,sep:tn}=rs,{pathToFileURL:en}=rs,rn=Xs,sn=Boolean(Ks&&$s),nn=Boolean(Hs&&Qs&&qs&&tn),on=class{constructor(t,e,r,i){this.stringify=t,this.mapOpts=r.map||{},this.root=e,this.opts=r,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(){var t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(var t of this.previous()){var e=this.toUrl(this.path(t.file)),r=t.root||Hs(t.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new Ks(t.text)).sourcesContent&&(i.sourcesContent=null):i=t.consumer(),this.map.applySourceMap(i,e,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root)for(var t,e=this.root.nodes.length-1;e>=0;e--)"comment"===(t=this.root.nodes[e]).type&&0===t.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(e);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),nn&&sn&&this.isMap())return this.generateMap();var t="";return this.stringify(this.root,e=>{t+=e}),[t]}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){var t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=$s.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new $s({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new $s({file:this.outputFile(),ignoreInvalidMapping:!0});var t,e,r=1,i=1,s="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,h)=>{if(this.css+=o,a&&"end"!==h&&(n.generated.line=r,n.generated.column=i-1,a.source&&a.source.start?(n.source=this.sourcePath(a),n.original.line=a.source.start.line,n.original.column=a.source.start.column-1,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,this.map.addMapping(n))),(t=o.match(/\n/g))?(r+=t.length,e=o.lastIndexOf("\n"),i=o.length-e):i+=o.length,a&&"start"!==h){var u=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===u.last&&!u.raws.semicolon||(a.source&&a.source.end?(n.source=this.sourcePath(a),n.original.line=a.source.end.line,n.original.column=a.source.end.column-1,n.generated.line=r,n.generated.column=i-2,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,n.generated.line=r,n.generated.column=i-1,this.map.addMapping(n)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(t=>t.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some(t=>t.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(t=>t.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute)return t;if(60===t.charCodeAt(0))return t;if(/^\w+:\/\//.test(t))return t;var e=this.memoizedPaths.get(t);if(e)return e;var r=this.opts.to?Hs(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Hs(Qs(r,this.mapOpts.annotation)));var i=qs(r,t);return this.memoizedPaths.set(t,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){var e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}});else{var t=new rn(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){var t={};if(this.root)this.root.walk(e=>{if(e.source){var r=e.source.input.from;if(r&&!t[r]){t[r]=!0;var i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,e.source.input.css)}}});else if(this.css){var e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){var e=this.memoizedFileURLs.get(t);if(e)return e;if(en){var r=en(t).toString();return this.memoizedFileURLs.set(t,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){var e=this.memoizedURLs.get(t);if(e)return e;"\\"===tn&&(t=t.replace(/\\/g,"/"));var r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}},an=Ss,hn=class extends an{constructor(t){super(t),this.type="comment"}},un=hn;hn.default=hn;var ln,cn,fn,dn,{isClean:vn,my:pn}=as,mn=ks,gn=un,wn=Ss;function yn(t){return t.map(t=>(t.nodes&&(t.nodes=yn(t.nodes)),delete t.source,t))}function bn(t){if(t[vn]=!1,t.proxyOf.nodes)for(var e of t.proxyOf.nodes)bn(e)}var Sn=class t extends wn{append(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i of e){var s=this.normalize(i,this.last);for(var n of s)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(var e of this.nodes)e.cleanRaws(t)}each(t){if(this.proxyOf.nodes){for(var e,r,i=this.getIterator();this.indexes[i]<this.proxyOf.nodes.length&&(e=this.indexes[i],!1!==(r=t(this.proxyOf.nodes[e],e)));)this.indexes[i]+=1;return delete this.indexes[i],r}}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return t[e](...i.map(t=>"function"==typeof t?(e,r)=>t(e.toProxy(),r):t))}:"every"===e||"some"===e?r=>t[e](function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];return r(t.toProxy(),...i)}):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map(t=>t.toProxy()):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){var r,i=this.index(t),s=this.normalize(e,this.proxyOf.nodes[i]).reverse();for(var n of(i=this.index(t),s))this.proxyOf.nodes.splice(i+1,0,n);for(var o in this.indexes)i<(r=this.indexes[o])&&(this.indexes[o]=r+s.length);return this.markDirty(),this}insertBefore(t,e){var r,i=this.index(t),s=0===i&&"prepend",n=this.normalize(e,this.proxyOf.nodes[i],s).reverse();for(var o of(i=this.index(t),n))this.proxyOf.nodes.splice(i,0,o);for(var a in this.indexes)i<=(r=this.indexes[a])&&(this.indexes[a]=r+n.length);return this.markDirty(),this}normalize(e,r){if("string"==typeof e)e=yn(ln(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i of e=e.slice(0))i.parent&&i.parent.removeChild(i,"ignore");else if("root"===e.type&&"document"!==this.type)for(var s of e=e.nodes.slice(0))s.parent&&s.parent.removeChild(s,"ignore");else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new mn(e)]}else if(e.selector)e=[new cn(e)];else if(e.name)e=[new fn(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new gn(e)]}var n=e.map(e=>(e[pn]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[vn]&&bn(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e));return n}prepend(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i of e=e.reverse()){var s=this.normalize(i,this.first,"prepend").reverse();for(var n of s)this.proxyOf.nodes.unshift(n);for(var o in this.indexes)this.indexes[o]=this.indexes[o]+s.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(var t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){var e;for(var r in t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1),this.indexes)(e=this.indexes[r])>=t&&(this.indexes[r]=e-1);return this.markDirty(),this}replaceValues(t,e,r){return r||(r=e,e={}),this.walkDecls(i=>{e.props&&!e.props.includes(i.prop)||e.fast&&!i.value.includes(e.fast)||(i.value=i.value.replace(t,r))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((e,r)=>{var i;try{i=t(e,r)}catch(t){throw e.addToError(t)}return!1!==i&&e.walk&&(i=e.walk(t)),i})}walkAtRules(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("atrule"===r.type&&t.test(r.name))return e(r,i)}):this.walk((r,i)=>{if("atrule"===r.type&&r.name===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("atrule"===t.type)return e(t,r)}))}walkComments(t){return this.walk((e,r)=>{if("comment"===e.type)return t(e,r)})}walkDecls(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("decl"===r.type&&t.test(r.prop))return e(r,i)}):this.walk((r,i)=>{if("decl"===r.type&&r.prop===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("decl"===t.type)return e(t,r)}))}walkRules(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("rule"===r.type&&t.test(r.selector))return e(r,i)}):this.walk((r,i)=>{if("rule"===r.type&&r.selector===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("rule"===t.type)return e(t,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Sn.registerParse=t=>{ln=t},Sn.registerRule=t=>{cn=t},Sn.registerAtRule=t=>{fn=t},Sn.registerRoot=t=>{dn=t};var Cn=Sn;Sn.default=Sn,Sn.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,fn.prototype):"rule"===t.type?Object.setPrototypeOf(t,cn.prototype):"decl"===t.type?Object.setPrototypeOf(t,mn.prototype):"comment"===t.type?Object.setPrototypeOf(t,gn.prototype):"root"===t.type&&Object.setPrototypeOf(t,dn.prototype),t[pn]=!0,t.nodes&&t.nodes.forEach(t=>{Sn.rebuild(t)})};var In,kn,An=Cn,Rn=class extends An{constructor(t){super(r({type:"document"},t)),this.nodes||(this.nodes=[])}toResult(t){return void 0===t&&(t={}),new In(new kn,this,t).stringify()}};Rn.registerLazyResult=t=>{In=t},Rn.registerProcessor=t=>{kn=t};var xn=Rn;Rn.default=Rn;var Mn={},En=function(t){Mn[t]||(Mn[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))},On=class{constructor(t,e){if(void 0===e&&(e={}),this.type="warning",this.text=t,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var i in e)this[i]=e[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}},Tn=On;On.default=On;var Nn=Tn,Bn=class{constructor(t,e,r){this.processor=t,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,e){void 0===e&&(e={}),e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);var r=new Nn(t,e);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>"warning"===t.type)}get content(){return this.css}},_n=Bn;Bn.default=Bn;var jn="'".charCodeAt(0),Fn='"'.charCodeAt(0),Ln="\\".charCodeAt(0),Pn="/".charCodeAt(0),Dn="\n".charCodeAt(0),Un=" ".charCodeAt(0),Zn="\f".charCodeAt(0),Yn="\t".charCodeAt(0),Wn="\r".charCodeAt(0),Gn="[".charCodeAt(0),Vn="]".charCodeAt(0),zn="(".charCodeAt(0),Jn=")".charCodeAt(0),Xn="{".charCodeAt(0),Kn="}".charCodeAt(0),$n=";".charCodeAt(0),Hn="*".charCodeAt(0),qn=":".charCodeAt(0),Qn="@".charCodeAt(0),to=/[\t\n\f\r "#'()/;[\\\]{}]/g,eo=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ro=/.[\r\n"'(/\\]/,io=/[\da-f]/i,so=Cn,no=class extends so{constructor(t){super(t),this.type="atrule"}append(){return this.proxyOf.nodes||(this.nodes=[]),super.append(...arguments)}prepend(){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...arguments)}},oo=no;no.default=no,so.registerAtRule(no);var ao,ho,uo=Cn,lo=class extends uo{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,r){var i=super.normalize(t);if(e)if("prepend"===r)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(var s of i)s.raws.before=e.raws.before;return i}removeChild(t,e){var r=this.index(t);return!e&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t){return void 0===t&&(t={}),new ao(new ho,this,t).stringify()}};lo.registerLazyResult=t=>{ao=t},lo.registerProcessor=t=>{ho=t};var co=lo;lo.default=lo,uo.registerRoot(lo);var fo={comma:t=>fo.split(t,[","],!0),space:t=>fo.split(t,[" ","\n","\t"]),split(t,e,r){var i=[],s="",n=!1,o=0,a=!1,h="",u=!1;for(var l of t)u?u=!1:"\\"===l?u=!0:a?l===h&&(a=!1):'"'===l||"'"===l?(a=!0,h=l):"("===l?o+=1:")"===l?o>0&&(o-=1):0===o&&e.includes(l)&&(n=!0),n?(""!==s&&i.push(s.trim()),s="",n=!1):s+=l;return(r||""!==s)&&i.push(s.trim()),i}},vo=fo;fo.default=fo;var po=Cn,mo=vo,go=class extends po{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return mo.comma(this.selector)}set selectors(t){var e=this.selector?this.selector.match(/,\s*/):null,r=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}},wo=go;go.default=go,po.registerRule(go);var yo=ks,bo=function(t,e){void 0===e&&(e={});var r,i,s,n,o,a,h,u,l,c,f=t.css.valueOf(),d=e.ignoreErrors,v=f.length,p=0,m=[],g=[];function w(e){throw t.error("Unclosed "+e,p)}return{back:function(t){g.push(t)},endOfFile:function(){return 0===g.length&&p>=v},nextToken:function(t){if(g.length)return g.pop();if(!(p>=v)){var e=!!t&&t.ignoreUnclosed;switch(r=f.charCodeAt(p)){case Dn:case Un:case Yn:case Wn:case Zn:i=p;do{i+=1,r=f.charCodeAt(i)}while(r===Un||r===Dn||r===Yn||r===Wn||r===Zn);c=["space",f.slice(p,i)],p=i-1;break;case Gn:case Vn:case Xn:case Kn:case qn:case $n:case Jn:var y=String.fromCharCode(r);c=[y,y,p];break;case zn:if(u=m.length?m.pop()[1]:"",l=f.charCodeAt(p+1),"url"===u&&l!==jn&&l!==Fn&&l!==Un&&l!==Dn&&l!==Yn&&l!==Zn&&l!==Wn){i=p;do{if(a=!1,-1===(i=f.indexOf(")",i+1))){if(d||e){i=p;break}w("bracket")}for(h=i;f.charCodeAt(h-1)===Ln;)h-=1,a=!a}while(a);c=["brackets",f.slice(p,i+1),p,i],p=i}else i=f.indexOf(")",p+1),n=f.slice(p,i+1),-1===i||ro.test(n)?c=["(","(",p]:(c=["brackets",n,p,i],p=i);break;case jn:case Fn:s=r===jn?"'":'"',i=p;do{if(a=!1,-1===(i=f.indexOf(s,i+1))){if(d||e){i=p+1;break}w("string")}for(h=i;f.charCodeAt(h-1)===Ln;)h-=1,a=!a}while(a);c=["string",f.slice(p,i+1),p,i],p=i;break;case Qn:to.lastIndex=p+1,to.test(f),i=0===to.lastIndex?f.length-1:to.lastIndex-2,c=["at-word",f.slice(p,i+1),p,i],p=i;break;case Ln:for(i=p,o=!0;f.charCodeAt(i+1)===Ln;)i+=1,o=!o;if(r=f.charCodeAt(i+1),o&&r!==Pn&&r!==Un&&r!==Dn&&r!==Yn&&r!==Wn&&r!==Zn&&(i+=1,io.test(f.charAt(i)))){for(;io.test(f.charAt(i+1));)i+=1;f.charCodeAt(i+1)===Un&&(i+=1)}c=["word",f.slice(p,i+1),p,i],p=i;break;default:r===Pn&&f.charCodeAt(p+1)===Hn?(0===(i=f.indexOf("*/",p+2)+1)&&(d||e?i=f.length:w("comment")),c=["comment",f.slice(p,i+1),p,i],p=i):(eo.lastIndex=p+1,eo.test(f),i=0===eo.lastIndex?f.length-1:eo.lastIndex-2,c=["word",f.slice(p,i+1),p,i],m.push(c),p=i)}return p++,c}},position:function(){return p}}},So=un,Co=oo,Io=co,ko=wo,Ao={empty:!0,space:!0};var Ro=class{constructor(t){this.input=t,this.root=new Io,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){var e,r,i,s=new Co;s.name=t[1].slice(1),""===s.name&&this.unnamedAtrule(s,t),this.init(s,t[2]);for(var n=!1,o=!1,a=[],h=[];!this.tokenizer.endOfFile();){if("("===(e=(t=this.tokenizer.nextToken())[0])||"["===e?h.push("("===e?")":"]"):"{"===e&&h.length>0?h.push("}"):e===h[h.length-1]&&h.pop(),0===h.length){if(";"===e){s.source.end=this.getPosition(t[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===e){o=!0;break}if("}"===e){if(a.length>0){for(r=a[i=a.length-1];r&&"space"===r[0];)r=a[--i];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(t);break}a.push(t)}else a.push(t);if(this.tokenizer.endOfFile()){n=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),n&&(t=a[a.length-1],s.source.end=this.getPosition(t[3]||t[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(t){var e=this.colon(t);if(!1!==e){for(var r,i=0,s=e-1;s>=0&&("space"===(r=t[s])[0]||2!==(i+=1));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}}colon(t){var e,r,i,s=0;for(var[n,o]of t.entries()){if("("===(r=(e=o)[0])&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(i){if("word"===i[0]&&"progid"===i[1])continue;return n}this.doubleColon(e)}i=e}return!1}comment(t){var e=new So;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;var r=t[1].slice(2,-2);if(/^\s*$/.test(r))e.text="",e.raws.left=r,e.raws.right="";else{var i=r.match(/^(\s*)([^]*\S)(\s*)$/);e.text=i[2],e.raws.left=i[1],e.raws.right=i[3]}}createTokenizer(){this.tokenizer=bo(this.input)}decl(t,e){var r=new yo;this.init(r,t[0][2]);var i,s=t[t.length-1];for(";"===s[0]&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(s[3]||s[2]||function(t){for(var e=t.length-1;e>=0;e--){var r=t[e],i=r[3]||r[2];if(i)return i}}(t)),r.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){var n=t[0][0];if(":"===n||"space"===n||"comment"===n)break;r.prop+=t.shift()[1]}for(r.raws.between="";t.length;){if(":"===(i=t.shift())[0]){r.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var o,a=[];t.length&&("space"===(o=t[0][0])||"comment"===o);)a.push(t.shift());this.precheckMissedSemicolon(t);for(var h=t.length-1;h>=0;h--){if("!important"===(i=t[h])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(t,h);" !important"!==(u=this.spacesFromEnd(t)+u)&&(r.raws.important=u);break}if("important"===i[1].toLowerCase()){for(var l=t.slice(0),c="",f=h;f>0;f--){var d=l[f][0];if(0===c.trim().indexOf("!")&&"space"!==d)break;c=l.pop()[1]+c}0===c.trim().indexOf("!")&&(r.important=!0,r.raws.important=c,t=l)}if("space"!==i[0]&&"comment"!==i[0])break}var v=t.some(t=>"space"!==t[0]&&"comment"!==t[0]);v&&(r.raws.between+=a.map(t=>t[1]).join(""),a=[]),this.raw(r,"value",a.concat(t),e),r.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){var e=new ko;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){var e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){var e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){for(var e=!1,r=null,i=!1,s=null,n=[],o=t[1].startsWith("--"),a=[],h=t;h;){if(r=h[0],a.push(h),"("===r||"["===r)s||(s=h),n.push("("===r?")":"]");else if(o&&i&&"{"===r)s||(s=h),n.push("}");else if(0===n.length){if(";"===r){if(i)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),e=!0;break}":"===r&&(i=!0)}else r===n[n.length-1]&&(n.pop(),0===n.length&&(s=null));h=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),n.length>0&&this.unclosedBracket(s),e&&i){if(!o)for(;a.length&&("space"===(h=a[a.length-1][0])||"comment"===h);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){for(var t;!this.tokenizer.endOfFile();)switch((t=this.tokenizer.nextToken())[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,r,i){for(var s,n,o,a,h=r.length,u="",l=!0,c=0;c<h;c+=1)"space"!==(n=(s=r[c])[0])||c!==h-1||i?"comment"===n?(a=r[c-1]?r[c-1][0]:"empty",o=r[c+1]?r[c+1][0]:"empty",Ao[a]||Ao[o]||","===u.slice(-1)?l=!1:u+=s[1]):u+=s[1]:l=!1;if(!l){var f=r.reduce((t,e)=>t+e[1],"");t.raws[e]={raw:f,value:u}}t[e]=u}rule(t){t.pop();var e=new ko;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){for(var e,r="";t.length&&("space"===(e=t[t.length-1][0])||"comment"===e);)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){for(var e,r="";t.length&&("space"===(e=t[0][0])||"comment"===e);)r+=t.shift()[1];return r}spacesFromEnd(t){for(var e="";t.length&&"space"===t[t.length-1][0];)e=t.pop()[1]+e;return e}stringFrom(t,e){for(var r="",i=e;i<t.length;i++)r+=t[i][1];return t.splice(e,t.length-e),r}unclosedBlock(){var t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}},xo=Cn,Mo=Ro,Eo=Xs;function Oo(t,e){var r=new Eo(t,e),i=new Mo(r);try{i.parse()}catch(t){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===t.name&&e&&e.from&&(/\.scss$/i.test(e.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(e.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(e.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return i.root}var To=Oo;Oo.default=Oo,xo.registerParse(Oo);var{isClean:No,my:Bo}=as,_o=on,jo=ds,Fo=Cn,Lo=xn,Po=En,Do=_n,Uo=To,Zo=co,Yo={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Wo={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Go={Once:!0,postcssPlugin:!0,prepare:!0};function Vo(t){return"object"==typeof t&&"function"==typeof t.then}function zo(t){var e=!1,r=Yo[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,0,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function Jo(t){return{eventIndex:0,events:"document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:zo(t),iterator:0,node:t,visitorIndex:0,visitors:[]}}function Xo(t){return t[No]=!1,t.nodes&&t.nodes.forEach(t=>Xo(t)),t}var Ko={},$o=class t{constructor(e,i,s){var n;if(this.stringified=!1,this.processed=!1,"object"!=typeof i||null===i||"root"!==i.type&&"document"!==i.type)if(i instanceof t||i instanceof Do)n=Xo(i.root),i.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=i.map);else{var o=Uo;s.syntax&&(o=s.syntax.parse),s.parser&&(o=s.parser),o.parse&&(o=o.parse);try{n=o(i,s)}catch(t){this.processed=!0,this.error=t}n&&!n[Bo]&&Fo.rebuild(n)}else n=Xo(i);this.result=new Do(e,n,s),this.helpers=r({},Ko,{postcss:Ko,result:this.result}),this.plugins=this.processor.plugins.map(t=>"object"==typeof t&&t.prepare?r({},t,t.prepare(this.result)):t)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){var r=this.result.lastPlugin;try{if(e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var i=r.postcssPlugin,s=r.postcssVersion,n=this.result.processor.version,o=s.split("."),a=n.split(".");(o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+i+" uses "+s+". Perhaps this is the source of the error below.")}}else t.plugin=r.postcssPlugin,t.setMessage()}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};var t=(t,e,r)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,r])};for(var e of this.plugins)if("object"==typeof e)for(var r in e){if(!Wo[r]&&/^[A-Z]/.test(r))throw new Error("Unknown event "+r+" in "+e.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Go[r])if("object"==typeof e[r])for(var i in e[r])t(e,"*"===i?r:r+"-"+i.toLowerCase(),e[r][i]);else"function"==typeof e[r]&&t(e,r,e[r])}this.hasListener=Object.keys(this.listeners).length>0}runAsync(){var t=this;return e(function*(){t.plugin=0;for(var e=0;e<t.plugins.length;e++){var r=t.plugins[e],i=t.runOnRoot(r);if(Vo(i))try{yield i}catch(e){throw t.handleError(e)}}if(t.prepareVisitors(),t.hasListener){for(var s=t.result.root;!s[No];){s[No]=!0;for(var n=[Jo(s)];n.length>0;){var o=t.visitTick(n);if(Vo(o))try{yield o}catch(e){var a=n[n.length-1].node;throw t.handleError(e,a)}}}if(t.listeners.OnceExit){var h=function*(e){t.result.lastPlugin=u;try{if("document"===s.type){var r=s.nodes.map(r=>e(r,t.helpers));yield Promise.all(r)}else yield e(s,t.helpers)}catch(e){throw t.handleError(e)}};for(var[u,l]of t.listeners.OnceExit)yield*h(l)}}return t.processed=!0,t.stringify()})()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){var e=this.result.root.nodes.map(e=>t.Once(e,this.helpers));return Vo(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var t=this.result.opts,e=jo;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);var r=new _o(e,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var t of this.plugins){if(Vo(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var e=this.result.root;!e[No];)e[No]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(var r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this.opts||Po("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}toString(){return this.css}visitSync(t,e){for(var[r,i]of t){this.result.lastPlugin=r;var s=void 0;try{s=i(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(Vo(s))throw this.getAsyncError()}}visitTick(t){var e=t[t.length-1],{node:r,visitors:i}=e;if("root"===r.type||"document"===r.type||r.parent){if(i.length>0&&e.visitorIndex<i.length){var[s,n]=i[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===i.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=s;try{return n(r.toProxy(),this.helpers)}catch(t){throw this.handleError(t,r)}}if(0!==e.iterator){for(var o,a=e.iterator;o=r.nodes[r.indexes[a]];)if(r.indexes[a]+=1,!o[No])return o[No]=!0,void t.push(Jo(o));e.iterator=0,delete r.indexes[a]}for(var h=e.events;e.eventIndex<h.length;){var u=h[e.eventIndex];if(e.eventIndex+=1,0===u)return void(r.nodes&&r.nodes.length&&(r[No]=!0,e.iterator=r.getIterator()));if(this.listeners[u])return void(e.visitors=this.listeners[u])}t.pop()}else t.pop()}walkSync(t){t[No]=!0;var e=zo(t);for(var r of e)if(0===r)t.nodes&&t.each(t=>{t[No]||this.walkSync(t)});else{var i=this.listeners[r];if(i&&this.visitSync(i,t.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"}};$o.registerPostcss=t=>{Ko=t};var Ho=$o;$o.default=$o,Zo.registerLazyResult($o),Lo.registerLazyResult($o);var qo=on,Qo=ds,ta=En,ea=To,ra=_n,ia=class{constructor(t,e,r){var i;e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=r,this._map=void 0;var s=Qo;this.result=new ra(this._processor,i,this._opts),this.result.css=e;var n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});var o=new qo(s,i,this._opts,e);if(o.isMap()){var[a,h]=o.generate();a&&(this.result.css=a),h&&(this.result.map=h)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this._opts||ta("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}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;var t,e=ea;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}},sa=ia;ia.default=ia;var na=sa,oa=Ho,aa=xn,ha=co,ua=class{constructor(t){void 0===t&&(t=[]),this.version="8.4.38",this.plugins=this.normalize(t)}normalize(t){var e=[];for(var r of t)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))e=e.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)e.push(r);else if("function"==typeof r)e.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return e}process(t,e){return void 0===e&&(e={}),this.plugins.length||e.parser||e.stringifier||e.syntax?new oa(this,t,e):new na(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}},la=ua;ua.default=ua,ha.registerProcessor(ua),aa.registerProcessor(ua);var ca=ks,fa=Bs,da=un,va=oo,pa=Xs,ma=co,ga=wo;function wa(t,e){if(Array.isArray(t))return t.map(t=>wa(t));var{inputs:s}=t,n=i(t,a);if(s)for(var o of(e=[],s)){var u=r({},o,{__proto__:pa.prototype});u.map&&(u.map=r({},u.map,{__proto__:fa.prototype})),e.push(u)}if(n.nodes&&(n.nodes=t.nodes.map(t=>wa(t,e))),n.source){var l=n.source,{inputId:c}=l,f=i(l,h);n.source=f,null!=c&&(n.source.input=e[c])}if("root"===n.type)return new ma(n);if("decl"===n.type)return new ca(n);if("rule"===n.type)return new ga(n);if("comment"===n.type)return new da(n);if("atrule"===n.type)return new va(n);throw new Error("Unknown node type: "+t.type)}var ya=wa;wa.default=wa;var ba=os,Sa=ks,Ca=Ho,Ia=Cn,ka=la,Aa=ds,Ra=ya,xa=xn,Ma=Tn,Ea=un,Oa=oo,Ta=_n,Na=Xs,Ba=To,_a=vo,ja=wo,Fa=co,La=Ss;function Pa(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new ka(e)}Pa.plugin=function(t,e){var r,i=!1;function s(){console&&console.warn&&!i&&(i=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var r=e(...arguments);return r.postcssPlugin=t,r.postcssVersion=(new ka).version,r}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(t,e,r){return Pa([s(r)]).process(t,e)},s},Pa.stringify=Aa,Pa.parse=Ba,Pa.fromJSON=Ra,Pa.list=_a,Pa.comment=t=>new Ea(t),Pa.atRule=t=>new Oa(t),Pa.decl=t=>new Sa(t),Pa.rule=t=>new ja(t),Pa.root=t=>new Fa(t),Pa.document=t=>new xa(t),Pa.CssSyntaxError=ba,Pa.Declaration=Sa,Pa.Container=Ia,Pa.Processor=ka,Pa.Document=xa,Pa.Comment=Ea,Pa.Warning=Ma,Pa.AtRule=Oa,Pa.Result=Ta,Pa.Input=Na,Pa.Rule=ja,Pa.Root=Fa,Pa.Node=La,Ca.registerPostcss(Pa);var Da=Pa;Pa.default=Pa;var Ua=$i(Da);Ua.stringify,Ua.fromJSON,Ua.plugin,Ua.parse,Ua.list,Ua.document,Ua.comment,Ua.atRule,Ua.rule,Ua.decl,Ua.root,Ua.CssSyntaxError,Ua.Declaration,Ua.Container,Ua.Processor,Ua.Document,Ua.Comment,Ua.Warning,Ua.AtRule,Ua.Result,Ua.Input,Ua.Rule,Ua.Root,Ua.Node;let Za=class t{constructor(){Ki(this,"parentElement",null),Ki(this,"parentNode",null),Ki(this,"ownerDocument"),Ki(this,"firstChild",null),Ki(this,"lastChild",null),Ki(this,"previousSibling",null),Ki(this,"nextSibling",null),Ki(this,"ELEMENT_NODE",1),Ki(this,"TEXT_NODE",3),Ki(this,"nodeType"),Ki(this,"nodeName"),Ki(this,"RRNodeType")}get childNodes(){for(var t=[],e=this.firstChild;e;)t.push(e),e=e.nextSibling;return t}contains(e){if(!(e instanceof t))return!1;if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,e){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}};var Ya={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Wa={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ga={};function Va(t){if(Ga[t])return Ga[t];var e=globalThis[t],r=e.prototype,i=t in Ya?Ya[t]:void 0,s=Boolean(i&&i.every(t=>{var e,i;return Boolean(null==(i=null==(e=Object.getOwnPropertyDescriptor(r,t))?void 0:e.get)?void 0:i.toString().includes("[native code]"))})),n=t in Wa?Wa[t]:void 0,o=Boolean(n&&n.every(t=>{var e;return"function"==typeof r[t]&&(null==(e=r[t])?void 0:e.toString().includes("[native code]"))}));if(s&&o)return Ga[t]=e.prototype,e.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var h=a.contentWindow;if(!h)return e.prototype;var u=h[t].prototype;return document.body.removeChild(a),u?Ga[t]=u:r}catch(t){return r}}var za={};function Ja(t,e,r){var i,s=t+"."+String(r);if(za[s])return za[s].call(e);var n=Va(t),o=null==(i=Object.getOwnPropertyDescriptor(n,r))?void 0:i.get;return o?(za[s]=o,o.call(e)):e[r]}var Xa={};function Ka(t,e,r){var i=t+"."+String(r);if(Xa[i])return Xa[i].bind(e);var s=Va(t)[r];return"function"!=typeof s?e[r]:(Xa[i]=s,s.bind(e))}function $a(){return Va("MutationObserver").constructor}var Ha={childNodes:function(t){return Ja("Node",t,"childNodes")},parentNode:function(t){return Ja("Node",t,"parentNode")},parentElement:function(t){return Ja("Node",t,"parentElement")},textContent:function(t){return Ja("Node",t,"textContent")},contains:function(t,e){return Ka("Node",t,"contains")(e)},getRootNode:function(t){return Ka("Node",t,"getRootNode")()},host:function(t){return t&&"host"in t?Ja("ShadowRoot",t,"host"):null},styleSheets:function(t){return t.styleSheets},shadowRoot:function(t){return t&&"shadowRoot"in t?Ja("Element",t,"shadowRoot"):null},querySelector:function(t,e){return Ja("Element",t,"querySelector")(e)},querySelectorAll:function(t,e){return Ja("Element",t,"querySelectorAll")(e)},mutationObserver:$a};function qa(t,e,r){void 0===r&&(r=document);var i={capture:!0,passive:!0};return r.addEventListener(t,e,i),()=>r.removeEventListener(t,e,i)}var Qa="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",th={map:{},getId:()=>(console.error(Qa),-1),getNode:()=>(console.error(Qa),null),removeNodeFromMap(){console.error(Qa)},has:()=>(console.error(Qa),!1),reset(){console.error(Qa)}};function eh(t,e,r){void 0===r&&(r={});var i=null,s=0;return function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];var h=Date.now();s||!1!==r.leading||(s=h);var u=e-(h-s),l=this;u<=0||u>e?(i&&(clearTimeout(i),i=null),s=h,t.apply(l,o)):i||!1===r.trailing||(i=setTimeout(()=>{s=!1===r.leading?0:Date.now(),i=null,t.apply(l,o)},u))}}function rh(t,e,r,i,s){void 0===s&&(s=window);var n=s.Object.getOwnPropertyDescriptor(t,e);return s.Object.defineProperty(t,e,i?r:{set(t){setTimeout(()=>{r.set.call(this,t)},0),n&&n.set&&n.set.call(this,t)}}),()=>rh(t,e,n||{},!0)}function ih(t,e,r){try{if(!(e in t))return()=>{};var i=t[e],s=r(i);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:i}})),t[e]=s,()=>{t[e]=i}}catch(t){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(th=new Proxy(th,{get:(t,e,r)=>("map"===e&&console.error(Qa),Reflect.get(t,e,r))}));var sh=Date.now;function nh(t){var e,r,i,s,n=t.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:void 0!==t.pageXOffset?t.pageXOffset:n.documentElement.scrollLeft||(null==n?void 0:n.body)&&(null==(e=Ha.parentElement(n.body))?void 0:e.scrollLeft)||(null==(r=null==n?void 0:n.body)?void 0:r.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:void 0!==t.pageYOffset?t.pageYOffset:(null==n?void 0:n.documentElement.scrollTop)||(null==n?void 0:n.body)&&(null==(i=Ha.parentElement(n.body))?void 0:i.scrollTop)||(null==(s=null==n?void 0:n.body)?void 0:s.scrollTop)||0}}function oh(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ah(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function hh(t){return t?t.nodeType===t.ELEMENT_NODE?t:Ha.parentElement(t):null}function uh(t,e,r,i){if(!t)return!1;var s=hh(t);if(!s)return!1;try{if("string"==typeof e){if(s.classList.contains(e))return!0;if(i&&null!==s.closest("."+e))return!0}else if(tt(s,e,i))return!0}catch(t){}if(r){if(s.matches(r))return!0;if(i&&null!==s.closest(r))return!0}return!1}function lh(t,e,r){return!("TITLE"!==t.tagName||!r.headTitleMutations)||-2===e.getId(t)}function ch(t,e){if(A(t))return!1;var r=e.getId(t);if(!e.has(r))return!0;var i=Ha.parentNode(t);return(!i||i.nodeType!==t.DOCUMENT_NODE)&&(!i||ch(i,e))}function fh(t){return Boolean(t.changedTouches)}function dh(t,e){return Boolean("IFRAME"===t.nodeName&&e.getMeta(t))}function vh(t,e){return Boolean("LINK"===t.nodeName&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&"stylesheet"===t.getAttribute("rel")&&e.getMeta(t))}function ph(t){return!!t&&(t instanceof Za&&"shadowRoot"in t?Boolean(t.shadowRoot):Boolean(Ha.shadowRoot(t)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(sh=()=>(new Date).getTime());let mh=class{constructor(){c(this,"id",1),c(this,"styleIDMap",new WeakMap),c(this,"idStyleMap",new Map)}getId(t){var e;return null!==(e=this.styleIDMap.get(t))&&void 0!==e?e:-1}has(t){return this.styleIDMap.has(t)}add(t,e){return this.has(t)?this.getId(t):(r=void 0===e?this.id++:e,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r);var r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function gh(t){var e,r=null;return"getRootNode"in t&&(null==(e=Ha.getRootNode(t))?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Ha.host(Ha.getRootNode(t))&&(r=Ha.host(Ha.getRootNode(t))),r}function wh(t){var e=t.ownerDocument;if(!e)return!1;var r=function(t){for(var e,r=t;e=gh(r);)r=e;return r}(t);return Ha.contains(e,r)}function yh(t){var e=t.ownerDocument;return!!e&&(Ha.contains(e,t)||wh(t))}var bh=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(bh||{}),Sh=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(Sh||{}),Ch=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(Ch||{}),Ih=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(Ih||{}),kh=(t=>(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(kh||{}),Ah=(t=>(t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange",t[t.RateChange=4]="RateChange",t))(Ah||{});function Rh(t){return"__ln"in t}class xh{constructor(){c(this,"length",0),c(this,"head",null),c(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");for(var e=this.head,r=0;r<t;r++)e=(null==e?void 0:e.next)||null;return e}addNode(t){var e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&Rh(t.previousSibling)){var r=t.previousSibling.__ln.next;e.next=r,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,r&&(r.previous=e)}else if(t.nextSibling&&Rh(t.nextSibling)&&t.nextSibling.__ln.previous){var i=t.nextSibling.__ln.previous;e.previous=i,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,i&&(i.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;null===e.next&&(this.tail=e),this.length++}removeNode(t){var e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next?e.next.previous=e.previous:this.tail=e.previous):(this.head=e.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}var Mh,Eh=(t,e)=>t+"@"+e;class Oh{constructor(){c(this,"frozen",!1),c(this,"locked",!1),c(this,"texts",[]),c(this,"attributes",[]),c(this,"attributeMap",new WeakMap),c(this,"removes",[]),c(this,"mapRemoves",[]),c(this,"movedMap",{}),c(this,"addedSet",new Set),c(this,"movedSet",new Set),c(this,"droppedSet",new Set),c(this,"mutationCb"),c(this,"blockClass"),c(this,"blockSelector"),c(this,"maskTextClass"),c(this,"maskTextSelector"),c(this,"inlineStylesheet"),c(this,"maskInputOptions"),c(this,"maskTextFn"),c(this,"maskInputFn"),c(this,"keepIframeSrcFn"),c(this,"recordCanvas"),c(this,"inlineImages"),c(this,"slimDOMOptions"),c(this,"dataURLOptions"),c(this,"doc"),c(this,"mirror"),c(this,"iframeManager"),c(this,"stylesheetManager"),c(this,"shadowDomManager"),c(this,"canvasManager"),c(this,"processedNodeManager"),c(this,"unattachedDoc"),c(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),c(this,"emit",()=>{if(!this.frozen&&!this.locked){for(var t=[],e=new Set,r=new xh,i=t=>{for(var e=t,r=-2;-2===r;)r=(e=e&&e.nextSibling)&&this.mirror.getId(e);return r},s=s=>{var n=Ha.parentNode(s);if(n&&yh(s)&&"TEXTAREA"!==n.tagName){var o=A(n)?this.mirror.getId(gh(s)):this.mirror.getId(n),a=i(s);if(-1===o||-1===a)return r.addNode(s);var h=st(s,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:t=>{dh(t,this.mirror)&&this.iframeManager.addIframe(t),vh(t,this.mirror)&&this.stylesheetManager.trackLinkElement(t),ph(s)&&this.shadowDomManager.addShadowRoot(Ha.shadowRoot(s),this.doc)},onIframeLoad:(t,e)=>{this.iframeManager.attachIframe(t,e),this.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{this.stylesheetManager.attachLinkElement(t,e)}});h&&(t.push({parentId:o,nextId:a,node:h}),e.add(h.id))}};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(var n of this.movedSet)Nh(this.removes,n,this.mirror)&&!this.movedSet.has(Ha.parentNode(n))||s(n);for(var o of this.addedSet)Bh(this.droppedSet,o)||Nh(this.removes,o,this.mirror)?Bh(this.movedSet,o)?s(o):this.droppedSet.add(o):s(o);for(var a=null;r.length;){var h=null;if(a){var u=this.mirror.getId(Ha.parentNode(a.value)),l=i(a.value);-1!==u&&-1!==l&&(h=a)}if(!h)for(var c=r.tail;c;){var f=c;if(c=c.previous,f){var d=this.mirror.getId(Ha.parentNode(f.value));if(-1===i(f.value))continue;if(-1!==d){h=f;break}var v=f.value,p=Ha.parentNode(v);if(p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var m=Ha.host(p);if(-1!==this.mirror.getId(m)){h=f;break}}}}if(!h){for(;r.head;)r.removeNode(r.head.value);break}a=h.previous,r.removeNode(h.value),s(h.value)}var g={texts:this.texts.map(t=>{var e=t.node,r=Ha.parentNode(e);return r&&"TEXTAREA"===r.tagName&&this.genTextAreaValueMutation(r),{id:this.mirror.getId(e),value:t.value}}).filter(t=>!e.has(t.id)).filter(t=>this.mirror.has(t.id)),attributes:this.attributes.map(t=>{var{attributes:e}=t;if("string"==typeof e.style){var r=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);r.length<e.style.length&&(r+i).split("var(").length===e.style.split("var(").length&&(e.style=t.styleDiff)}return{id:this.mirror.getId(t.node),attributes:e}}).filter(t=>!e.has(t.id)).filter(t=>this.mirror.has(t.id)),removes:this.removes,adds:t};(g.texts.length||g.attributes.length||g.removes.length||g.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.movedMap={},this.mutationCb(g))}}),c(this,"genTextAreaValueMutation",t=>{var e=this.attributeMap.get(t);e||(e={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(e),this.attributeMap.set(t,e)),e.attributes.value=Array.from(Ha.childNodes(t),t=>Ha.textContent(t)||"").join("")}),c(this,"processMutation",t=>{if(!lh(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":var e=Ha.textContent(t.target);uh(t.target,this.blockClass,this.blockSelector,!1)||e===t.oldValue||this.texts.push({value:et(t.target,this.maskTextClass,this.maskTextSelector,!0)&&e?this.maskTextFn?this.maskTextFn(e,hh(t.target)):e.replace(/[\S]/g,"*"):e,node:t.target});break;case"attributes":var r=t.target,i=t.attributeName,s=t.target.getAttribute(i);if("value"===i){var n=B(r);s=O({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:n,value:s,maskInputFn:this.maskInputFn})}if(uh(t.target,this.blockClass,this.blockSelector,!1)||s===t.oldValue)return;var o=this.attributeMap.get(t.target);if("IFRAME"===r.tagName&&"src"===i&&!this.keepIframeSrcFn(s)){if(r.contentDocument)return;i="rr_src"}if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),"type"===i&&"INPUT"===r.tagName&&"password"===(t.oldValue||"").toLowerCase()&&r.setAttribute("data-rr-is-password","true"),!Q(r.tagName,i))if(o.attributes[i]=q(this.doc,T(r.tagName),T(i),s),"style"===i){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}var a=this.unattachedDoc.createElement("span");for(var h of(t.oldValue&&a.setAttribute("style",t.oldValue),Array.from(r.style))){var u=r.style.getPropertyValue(h),l=r.style.getPropertyPriority(h);u!==a.style.getPropertyValue(h)||l!==a.style.getPropertyPriority(h)?o.styleDiff[h]=""===l?u:[u,l]:o._unchangedStyles[h]=[u,l]}for(var c of Array.from(a.style))""===r.style.getPropertyValue(c)&&(o.styleDiff[c]=!1)}else"open"===i&&"DIALOG"===r.tagName&&(r.matches("dialog:modal")?o.attributes.rr_open_mode="modal":o.attributes.rr_open_mode="non-modal");break;case"childList":if(uh(t.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void this.genTextAreaValueMutation(t.target);t.addedNodes.forEach(e=>this.genAdds(e,t.target)),t.removedNodes.forEach(e=>{var r=this.mirror.getId(e),i=A(t.target)?this.mirror.getId(Ha.host(t.target)):this.mirror.getId(t.target);uh(t.target,this.blockClass,this.blockSelector,!1)||lh(e,this.mirror,this.slimDOMOptions)||!function(t,e){return-1!==e.getId(t)}(e,this.mirror)||(this.addedSet.has(e)?(Th(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===r||ch(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[Eh(r,i)]?Th(this.movedSet,e):this.removes.push({parentId:i,id:r,isShadow:!(!A(t.target)||!R(t.target))||void 0})),this.mapRemoves.push(e))})}}),c(this,"genAdds",(t,e)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(lh(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);var r=null;e&&this.mirror.hasNode(e)&&(r=this.mirror.getId(e)),r&&-1!==r&&(this.movedMap[Eh(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);uh(t,this.blockClass,this.blockSelector,!1)||(Ha.childNodes(t).forEach(t=>this.genAdds(t)),ph(t)&&Ha.childNodes(Ha.shadowRoot(t)).forEach(e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(e=>{this[e]=t[e]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Th(t,e){t.delete(e),Ha.childNodes(e).forEach(e=>Th(t,e))}function Nh(t,e,r){return 0!==t.length&&function(t,e,r){var i,s=Ha.parentNode(e),n=function(){var e=r.getId(s);if(t.some(t=>t.id===e))return{v:!0};s=Ha.parentNode(s)};for(;s;)if(i=n())return i.v;return!1}(t,e,r)}function Bh(t,e){return 0!==t.size&&_h(t,e)}function _h(t,e){var r=Ha.parentNode(e);return!!r&&(!!t.has(r)||_h(t,r))}var jh=t=>{if(!Mh)return t;return function(){try{return t(...arguments)}catch(t){if(Mh&&!0===Mh(t))return;throw t}}},Fh=[];function Lh(t){try{if("composedPath"in t){var e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(t){}return t&&t.target}function Ph(t,e){var r=new Oh;Fh.push(r),r.init(t);var i=new($a())(jh(r.processMutations.bind(r)));return i.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function Dh(t){var{mouseInteractionCb:e,doc:i,mirror:s,blockClass:n,blockSelector:o,sampling:a}=t;if(!1===a.mouseInteraction)return()=>{};var h=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,u=[],l=null;return Object.keys(Ch).filter(t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==h[t]).forEach(t=>{var a=T(t),h=(t=>i=>{var a=Lh(i);if(!uh(a,n,o,!0)){var h=null,u=t;if("pointerType"in i){switch(i.pointerType){case"mouse":h=Ih.Mouse;break;case"touch":h=Ih.Touch;break;case"pen":h=Ih.Pen}h===Ih.Touch?Ch[t]===Ch.MouseDown?u="TouchStart":Ch[t]===Ch.MouseUp&&(u="TouchEnd"):Ih.Pen}else fh(i)&&(h=Ih.Touch);null!==h?(l=h,(u.startsWith("Touch")&&h===Ih.Touch||u.startsWith("Mouse")&&h===Ih.Mouse)&&(h=null)):Ch[t]===Ch.Click&&(h=l,l=null);var c=fh(i)?i.changedTouches[0]:i;if(c){var f=s.getId(a),{clientX:d,clientY:v}=c;jh(e)(r({type:Ch[u],id:f,x:d,y:v},null!==h&&{pointerType:h}))}}})(t);if(window.PointerEvent)switch(Ch[t]){case Ch.MouseDown:case Ch.MouseUp:a=a.replace("mouse","pointer");break;case Ch.TouchStart:case Ch.TouchEnd:return}u.push(qa(a,h,i))}),jh(()=>{u.forEach(t=>t())})}function Uh(t){var{scrollCb:e,doc:r,mirror:i,blockClass:s,blockSelector:n,sampling:o}=t;return qa("scroll",jh(eh(jh(t=>{var o=Lh(t);if(o&&!uh(o,s,n,!0)){var a=i.getId(o);if(o===r&&r.defaultView){var h=nh(r.defaultView);e({id:a,x:h.left,y:h.top})}else e({id:a,x:o.scrollLeft,y:o.scrollTop})}}),o.scroll||100)),r)}var Zh=["INPUT","TEXTAREA","SELECT"],Yh=new WeakMap;function Wh(t){return function(t,e){if(Jh("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||Jh("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||Jh("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||Jh("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){var r=Array.from(t.parentRule.cssRules).indexOf(t);e.unshift(r)}else if(t.parentStyleSheet){var i=Array.from(t.parentStyleSheet.cssRules).indexOf(t);e.unshift(i)}return e}(t,[])}function Gh(t,e,r){var i,s;return t?(t.ownerNode?i=e.getId(t.ownerNode):s=r.getId(t),{styleId:s,id:i}):{}}function Vh(t,e){var r,i,s,{mirror:n,stylesheetManager:o}=t,a=null;a="#document"===e.nodeName?n.getId(e):n.getId(Ha.host(e));var h="#document"===e.nodeName?null==(r=e.defaultView)?void 0:r.Document:null==(s=null==(i=e.ownerDocument)?void 0:i.defaultView)?void 0:s.ShadowRoot,u=(null==h?void 0:h.prototype)?Object.getOwnPropertyDescriptor(null==h?void 0:h.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&h&&u?(Object.defineProperty(e,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get(){var t;return null==(t=u.get)?void 0:t.call(this)},set(t){var e,r=null==(e=u.set)?void 0:e.call(this,t);if(null!==a&&-1!==a)try{o.adoptStyleSheets(t,a)}catch(t){}return r}}),jh(()=>{Object.defineProperty(e,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):()=>{}}function zh(t,e){void 0===e&&(e={});var i,s=t.doc.defaultView;if(!s)return()=>{};!function(t,e){var{mutationCb:r,mousemoveCb:i,mouseInteractionCb:s,scrollCb:n,viewportResizeCb:o,inputCb:a,mediaInteractionCb:h,styleSheetRuleCb:u,styleDeclarationCb:l,canvasMutationCb:c,fontCb:f,selectionCb:d,customElementCb:v}=t;t.mutationCb=function(){e.mutation&&e.mutation(...arguments),r(...arguments)},t.mousemoveCb=function(){e.mousemove&&e.mousemove(...arguments),i(...arguments)},t.mouseInteractionCb=function(){e.mouseInteraction&&e.mouseInteraction(...arguments),s(...arguments)},t.scrollCb=function(){e.scroll&&e.scroll(...arguments),n(...arguments)},t.viewportResizeCb=function(){e.viewportResize&&e.viewportResize(...arguments),o(...arguments)},t.inputCb=function(){e.input&&e.input(...arguments),a(...arguments)},t.mediaInteractionCb=function(){e.mediaInteaction&&e.mediaInteaction(...arguments),h(...arguments)},t.styleSheetRuleCb=function(){e.styleSheetRule&&e.styleSheetRule(...arguments),u(...arguments)},t.styleDeclarationCb=function(){e.styleDeclaration&&e.styleDeclaration(...arguments),l(...arguments)},t.canvasMutationCb=function(){e.canvasMutation&&e.canvasMutation(...arguments),c(...arguments)},t.fontCb=function(){e.font&&e.font(...arguments),f(...arguments)},t.selectionCb=function(){e.selection&&e.selection(...arguments),d(...arguments)},t.customElementCb=function(){e.customElement&&e.customElement(...arguments),v(...arguments)}}(t,e),t.recordDOM&&(i=Ph(t,t.doc));var n=function(t){var{mousemoveCb:e,sampling:r,doc:i,mirror:s}=t;if(!1===r.mousemove)return()=>{};var n,o="number"==typeof r.mousemove?r.mousemove:50,a="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,h=[],u=eh(jh(t=>{var r=Date.now()-n;e(h.map(t=>(t.timeOffset-=r,t)),t),h=[],n=null}),a),l=jh(eh(jh(t=>{var e=Lh(t),{clientX:r,clientY:i}=fh(t)?t.changedTouches[0]:t;n||(n=sh()),h.push({x:r,y:i,id:s.getId(e),timeOffset:sh()-n}),u("undefined"!=typeof DragEvent&&t instanceof DragEvent?Sh.Drag:t instanceof MouseEvent?Sh.MouseMove:Sh.TouchMove)}),o,{trailing:!1})),c=[qa("mousemove",l,i),qa("touchmove",l,i),qa("drag",l,i)];return jh(()=>{c.forEach(t=>t())})}(t),o=Dh(t),a=Uh(t),h=function(t,e){var{viewportResizeCb:r}=t,{win:i}=e,s=-1,n=-1;return qa("resize",jh(eh(jh(()=>{var t=oh(),e=ah();s===t&&n===e||(r({width:Number(e),height:Number(t)}),s=t,n=e)}),200)),i)}(t,{win:s}),u=function(t){var{inputCb:e,doc:i,mirror:s,blockClass:n,blockSelector:o,ignoreClass:a,ignoreSelector:h,maskInputOptions:u,maskInputFn:l,sampling:c,userTriggeredOnInput:f}=t;function d(t){var e=Lh(t),r=t.isTrusted,s=e&&e.tagName;if(e&&"OPTION"===s&&(e=Ha.parentElement(e)),e&&s&&!(Zh.indexOf(s)<0)&&!uh(e,n,o,!0)&&!(e.classList.contains(a)||h&&e.matches(h))){var c=e.value,d=!1,p=B(e)||"";"radio"===p||"checkbox"===p?d=e.checked:(u[s.toLowerCase()]||u[p])&&(c=O({element:e,maskInputOptions:u,tagName:s,type:p,value:c,maskInputFn:l})),v(e,f?{text:c,isChecked:d,userTriggered:r}:{text:c,isChecked:d});var m=e.name;"radio"===p&&m&&d&&i.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach(t=>{if(t!==e){var r=t.value;v(t,f?{text:r,isChecked:!d,userTriggered:!1}:{text:r,isChecked:!d})}})}}function v(t,i){var n=Yh.get(t);if(!n||n.text!==i.text||n.isChecked!==i.isChecked){Yh.set(t,i);var o=s.getId(t);jh(e)(r({},i,{id:o}))}}var p=("last"===c.input?["change"]:["input","change"]).map(t=>qa(t,jh(d),i)),m=i.defaultView;if(!m)return()=>{p.forEach(t=>t())};var g=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),w=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&p.push(...w.map(t=>rh(t[0],t[1],{set(){jh(d)({target:this,isTrusted:!1})}},!1,m))),jh(()=>{p.forEach(t=>t())})}(t),l=function(t){var{mediaInteractionCb:e,blockClass:r,blockSelector:i,mirror:s,sampling:n,doc:o}=t,a=jh(t=>eh(jh(n=>{var o=Lh(n);if(o&&!uh(o,r,i,!0)){var{currentTime:a,volume:h,muted:u,playbackRate:l,loop:c}=o;e({type:t,id:s.getId(o),currentTime:a,volume:h,muted:u,playbackRate:l,loop:c})}}),n.media||500)),h=[qa("play",a(Ah.Play),o),qa("pause",a(Ah.Pause),o),qa("seeked",a(Ah.Seeked),o),qa("volumechange",a(Ah.VolumeChange),o),qa("ratechange",a(Ah.RateChange),o)];return jh(()=>{h.forEach(t=>t())})}(t),c=()=>{},f=()=>{},d=()=>{},v=()=>{};t.recordDOM&&(c=function(t,e){var{styleSheetRuleCb:r,mirror:i,stylesheetManager:s}=t,{win:n}=e;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};var o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:jh((t,e,n)=>{var[o,a]=n,{id:h,styleId:u}=Gh(e,i,s.styleMirror);return(h&&-1!==h||u&&-1!==u)&&r({id:h,styleId:u,adds:[{rule:o,index:a}]}),t.apply(e,n)})}),n.CSSStyleSheet.prototype.addRule=function(t,e,r){void 0===r&&(r=this.cssRules.length);var i=t+" { "+e+" }";return n.CSSStyleSheet.prototype.insertRule.apply(this,[i,r])};var a,h,u=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:jh((t,e,n)=>{var[o]=n,{id:a,styleId:h}=Gh(e,i,s.styleMirror);return(a&&-1!==a||h&&-1!==h)&&r({id:a,styleId:h,removes:[{index:o}]}),t.apply(e,n)})}),n.CSSStyleSheet.prototype.removeRule=function(t){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[t])},n.CSSStyleSheet.prototype.replace&&(a=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:jh((t,e,n)=>{var[o]=n,{id:a,styleId:h}=Gh(e,i,s.styleMirror);return(a&&-1!==a||h&&-1!==h)&&r({id:a,styleId:h,replace:o}),t.apply(e,n)})})),n.CSSStyleSheet.prototype.replaceSync&&(h=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(h,{apply:jh((t,e,n)=>{var[o]=n,{id:a,styleId:h}=Gh(e,i,s.styleMirror);return(a&&-1!==a||h&&-1!==h)&&r({id:a,styleId:h,replaceSync:o}),t.apply(e,n)})}));var l={};Xh("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(Xh("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),Xh("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),Xh("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));var c={};return Object.entries(l).forEach(t=>{var[e,n]=t;c[e]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=new Proxy(c[e].insertRule,{apply:jh((t,e,n)=>{var[o,a]=n,{id:h,styleId:u}=Gh(e.parentStyleSheet,i,s.styleMirror);return(h&&-1!==h||u&&-1!==u)&&r({id:h,styleId:u,adds:[{rule:o,index:[...Wh(e),a||0]}]}),t.apply(e,n)})}),n.prototype.deleteRule=new Proxy(c[e].deleteRule,{apply:jh((t,e,n)=>{var[o]=n,{id:a,styleId:h}=Gh(e.parentStyleSheet,i,s.styleMirror);return(a&&-1!==a||h&&-1!==h)&&r({id:a,styleId:h,removes:[{index:[...Wh(e),o]}]}),t.apply(e,n)})})}),jh(()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=u,a&&(n.CSSStyleSheet.prototype.replace=a),h&&(n.CSSStyleSheet.prototype.replaceSync=h),Object.entries(l).forEach(t=>{var[e,r]=t;r.prototype.insertRule=c[e].insertRule,r.prototype.deleteRule=c[e].deleteRule})})}(t,{win:s}),f=Vh(t,t.doc),d=function(t,e){var{styleDeclarationCb:r,mirror:i,ignoreCSSAttributes:s,stylesheetManager:n}=t,{win:o}=e,a=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:jh((t,e,o)=>{var h,[u,l,c]=o;if(s.has(u))return a.apply(e,[u,l,c]);var{id:f,styleId:d}=Gh(null==(h=e.parentRule)?void 0:h.parentStyleSheet,i,n.styleMirror);return(f&&-1!==f||d&&-1!==d)&&r({id:f,styleId:d,set:{property:u,value:l,priority:c},index:Wh(e.parentRule)}),t.apply(e,o)})});var h=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(h,{apply:jh((t,e,o)=>{var a,[u]=o;if(s.has(u))return h.apply(e,[u]);var{id:l,styleId:c}=Gh(null==(a=e.parentRule)?void 0:a.parentStyleSheet,i,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&r({id:l,styleId:c,remove:{property:u},index:Wh(e.parentRule)}),t.apply(e,o)})}),jh(()=>{o.CSSStyleDeclaration.prototype.setProperty=a,o.CSSStyleDeclaration.prototype.removeProperty=h})}(t,{win:s}),t.collectFonts&&(v=function(t){var{fontCb:e,doc:r}=t,i=r.defaultView;if(!i)return()=>{};var s=[],n=new WeakMap,o=i.FontFace;i.FontFace=function(t,e,r){var i=new o(t,e,r);return n.set(i,{family:t,buffer:"string"!=typeof e,descriptors:r,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),i};var a=ih(r.fonts,"add",function(t){return function(r){return setTimeout(jh(()=>{var t=n.get(r);t&&(e(t),n.delete(r))}),0),t.apply(this,[r])}});return s.push(()=>{i.FontFace=o}),s.push(a),jh(()=>{s.forEach(t=>t())})}(t)));var p=function(t){var{doc:e,mirror:r,blockClass:i,blockSelector:s,selectionCb:n}=t,o=!0,a=jh(()=>{var t=e.getSelection();if(!(!t||o&&(null==t?void 0:t.isCollapsed))){o=t.isCollapsed||!1;for(var a=[],h=t.rangeCount||0,u=0;u<h;u++){var l=t.getRangeAt(u),{startContainer:c,startOffset:f,endContainer:d,endOffset:v}=l;uh(c,i,s,!0)||uh(d,i,s,!0)||a.push({start:r.getId(c),startOffset:f,end:r.getId(d),endOffset:v})}n({ranges:a})}});return a(),qa("selectionchange",a)}(t),m=function(t){var{doc:e,customElementCb:r}=t,i=e.defaultView;return i&&i.customElements?ih(i.customElements,"define",function(t){return function(e,i,s){try{r({define:{name:e}})}catch(t){console.warn("Custom element callback failed for "+e)}return t.apply(this,[e,i,s])}}):()=>{}}(t),g=[];for(var w of t.plugins)g.push(w.observer(w.callback,s,w.options));return jh(()=>{Fh.forEach(t=>t.reset()),null==i||i.disconnect(),n(),o(),a(),h(),u(),l(),c(),f(),d(),v(),p(),m(),g.forEach(t=>t())})}function Jh(t){return void 0!==window[t]}function Xh(t){return Boolean(void 0!==window[t]&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class Kh{constructor(t){c(this,"iframeIdToRemoteIdMap",new WeakMap),c(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,e,r,i){var s=r||this.getIdToRemoteIdMap(t),n=i||this.getRemoteIdToIdMap(t),o=s.get(e);return o||(o=this.generateIdFn(),s.set(e,o),n.set(o,e)),o}getIds(t,e){var r=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return e.map(e=>this.getId(t,e,r,i))}getRemoteId(t,e,r){var i=r||this.getRemoteIdToIdMap(t);if("number"!=typeof e)return e;var s=i.get(e);return s||-1}getRemoteIds(t,e){var r=this.getRemoteIdToIdMap(t);return e.map(e=>this.getRemoteId(t,e,r))}reset(t){if(!t)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){var e=this.iframeIdToRemoteIdMap.get(t);return e||(e=new Map,this.iframeIdToRemoteIdMap.set(t,e)),e}getRemoteIdToIdMap(t){var e=this.iframeRemoteIdToIdMap.get(t);return e||(e=new Map,this.iframeRemoteIdToIdMap.set(t,e)),e}}class $h{constructor(t){c(this,"iframes",new WeakMap),c(this,"crossOriginIframeMap",new WeakMap),c(this,"crossOriginIframeMirror",new Kh(G)),c(this,"crossOriginIframeStyleMirror"),c(this,"crossOriginIframeRootIdMap",new WeakMap),c(this,"mirror"),c(this,"mutationCb"),c(this,"wrappedEmit"),c(this,"loadListener"),c(this,"stylesheetManager"),c(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Kh(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,e){var r,i;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(r=t.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(i=this.loadListener)||i.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){var e=t;if("rrweb"===e.data.type&&e.origin===e.data.origin&&t.source){var r=this.crossOriginIframeMap.get(t.source);if(r){var i=this.transformCrossOriginEvent(r,e.data.event);i&&this.wrappedEmit(i,e.data.isCheckout)}}}transformCrossOriginEvent(t,e){var r;switch(e.type){case bh.FullSnapshot:this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(e.data.node,t);var i=e.data.node.id;return this.crossOriginIframeRootIdMap.set(t,i),this.patchRootIdOnNode(e.data.node,i),{timestamp:e.timestamp,type:bh.IncrementalSnapshot,data:{source:Sh.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case bh.Meta:case bh.Load:case bh.DomContentLoaded:return!1;case bh.Plugin:return e;case bh.Custom:return this.replaceIds(e.data.payload,t,["id","parentId","previousId","nextId"]),e;case bh.IncrementalSnapshot:switch(e.data.source){case Sh.Mutation:return e.data.adds.forEach(e=>{this.replaceIds(e,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,t);var r=this.crossOriginIframeRootIdMap.get(t);r&&this.patchRootIdOnNode(e.node,r)}),e.data.removes.forEach(e=>{this.replaceIds(e,t,["parentId","id"])}),e.data.attributes.forEach(e=>{this.replaceIds(e,t,["id"])}),e.data.texts.forEach(e=>{this.replaceIds(e,t,["id"])}),e;case Sh.Drag:case Sh.TouchMove:case Sh.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,t,["id"])}),e;case Sh.ViewportResize:return!1;case Sh.MediaInteraction:case Sh.MouseInteraction:case Sh.Scroll:case Sh.CanvasMutation:case Sh.Input:return this.replaceIds(e.data,t,["id"]),e;case Sh.StyleSheetRule:case Sh.StyleDeclaration:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleId"]),e;case Sh.Font:return e;case Sh.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,t,["start","end"])}),e;case Sh.AdoptedStyleSheet:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleIds"]),null==(r=e.data.styles)||r.forEach(e=>{this.replaceStyleIds(e,t,["styleId"])}),e}}return!1}replace(t,e,r,i){for(var s of i)(Array.isArray(e[s])||"number"==typeof e[s])&&(Array.isArray(e[s])?e[s]=t.getIds(r,e[s]):e[s]=t.getId(r,e[s]));return e}replaceIds(t,e,r){return this.replace(this.crossOriginIframeMirror,t,e,r)}replaceStyleIds(t,e,r){return this.replace(this.crossOriginIframeStyleMirror,t,e,r)}replaceIdOnNode(t,e){this.replaceIds(t,e,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(t=>{this.replaceIdOnNode(t,e)})}patchRootIdOnNode(t,e){t.type===v.Document||t.rootId||(t.rootId=e),"childNodes"in t&&t.childNodes.forEach(t=>{this.patchRootIdOnNode(t,e)})}}class Hh{constructor(t){c(this,"shadowDoms",new WeakSet),c(this,"mutationCb"),c(this,"scrollCb"),c(this,"bypassOptions"),c(this,"mirror"),c(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,e){if(R(t)&&!this.shadowDoms.has(t)){this.shadowDoms.add(t);var i=Ph(r({},this.bypassOptions,{doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>i.disconnect()),this.restoreHandlers.push(Uh(r({},this.bypassOptions,{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(Ha.host(t))),this.restoreHandlers.push(Vh({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}}observeAttachShadow(t){t.contentWindow&&t.contentDocument&&this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,e){var r=this;this.restoreHandlers.push(ih(t.prototype,"attachShadow",function(t){return function(i){var s=t.call(this,i),n=Ha.shadowRoot(this);return n&&yh(this)&&r.addShadowRoot(n,e),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var qh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qh="undefined"==typeof Uint8Array?[]:new Uint8Array(256),tu=0;tu<64;tu++)Qh[qh.charCodeAt(tu)]=tu;var eu=new Map;var ru=(t,e,r)=>{if(t&&(nu(t,e)||"object"==typeof t)){var i=function(t,e){var r=eu.get(t);return r||(r=new Map,eu.set(t,r)),r.has(e)||r.set(e,[]),r.get(e)}(r,t.constructor.name),s=i.indexOf(t);return-1===s&&(s=i.length,i.push(t)),s}};function iu(t,e,r){if(t instanceof Array)return t.map(t=>iu(t,e,r));if(null===t)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:function(t){var e,r=new Uint8Array(t),i=r.length,s="";for(e=0;e<i;e+=3)s+=qh[r[e]>>2],s+=qh[(3&r[e])<<4|r[e+1]>>4],s+=qh[(15&r[e+1])<<2|r[e+2]>>6],s+=qh[63&r[e+2]];return i%3==2?s=s.substring(0,s.length-1)+"=":i%3==1&&(s=s.substring(0,s.length-2)+"=="),s}(t)};if(t instanceof DataView)return{rr_type:t.constructor.name,args:[iu(t.buffer,e,r),t.byteOffset,t.byteLength]};if(t instanceof HTMLImageElement){var i=t.constructor.name,{src:s}=t;return{rr_type:i,src:s}}if(t instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:t.toDataURL()}}return t instanceof ImageData?{rr_type:t.constructor.name,args:[iu(t.data,e,r),t.width,t.height]}:nu(t,e)||"object"==typeof t?{rr_type:t.constructor.name,index:ru(t,e,r)}:t}var su=(t,e,r)=>t.map(t=>iu(t,e,r)),nu=(t,e)=>{var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(t=>"function"==typeof e[t]);return Boolean(r.find(r=>t instanceof e[r]))};function ou(t,e,r,i){var s=[];try{var n=ih(t.HTMLCanvasElement.prototype,"getContext",function(t){return function(s){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];if(!uh(this,e,r,!0)){var h=function(t){return"experimental-webgl"===t?"webgl":t}(s);if("__context"in this||(this.__context=h),i&&["webgl","webgl2"].includes(h))if(o[0]&&"object"==typeof o[0]){var u=o[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return t.apply(this,[s,...o])}});s.push(n)}catch(t){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(t=>t())}}function au(t,e,r,i,s,n){var o=[],a=Object.getOwnPropertyNames(t),h=function(a){if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return 0;try{if("function"!=typeof t[a])return 0;var h=ih(t,a,function(t){return function(){for(var o=arguments.length,h=new Array(o),u=0;u<o;u++)h[u]=arguments[u];var l=t.apply(this,h);if(ru(l,n,this),"tagName"in this.canvas&&!uh(this.canvas,i,s,!0)){var c=su(h,n,this),f={type:e,property:a,args:c};r(this.canvas,f)}return l}});o.push(h)}catch(i){var u=rh(t,a,{set(t){r(this.canvas,{type:e,property:a,args:[t],setter:!0})}});o.push(u)}};for(var u of a)h(u);return o}var hu,uu,lu,cu,fu="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",du="undefined"!=typeof window&&window.Blob&&new Blob([(hu=fu,Uint8Array.from(atob(hu),t=>t.charCodeAt(0)))],{type:"text/javascript;charset=utf-8"});function vu(t){var e;try{if(!(e=du&&(window.URL||window.webkitURL).createObjectURL(du)))throw"";var r=new Worker(e,{name:null==t?void 0:t.name});return r.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(e)}),r}catch(e){return new Worker("data:text/javascript;base64,"+fu,{name:null==t?void 0:t.name})}finally{e&&(window.URL||window.webkitURL).revokeObjectURL(e)}}class pu{constructor(t){c(this,"pendingCanvasMutations",new Map),c(this,"rafStamps",{latestId:0,invokeId:null}),c(this,"mirror"),c(this,"mutationCb"),c(this,"resetObservers"),c(this,"frozen",!1),c(this,"locked",!1),c(this,"processMutation",(t,e)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(t)||this.pendingCanvasMutations.set(t,[]),this.pendingCanvasMutations.get(t).push(e)});var{sampling:e="all",win:r,blockClass:i,blockSelector:s,recordCanvas:n,dataURLOptions:o}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,n&&"all"===e&&this.initCanvasMutationObserver(r,i,s),n&&"number"==typeof e&&this.initCanvasFPSObserver(e,r,i,s,{dataURLOptions:o})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,i,s,n){var o=this,a=ou(r,i,s,!0),h=new Map,u=new vu;u.onmessage=t=>{var{id:e}=t.data;if(h.set(e,!1),"base64"in t.data){var{base64:r,type:i,width:s,height:n}=t.data;this.mutationCb({id:e,type:kh["2D"],commands:[{property:"clearRect",args:[0,0,s,n]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:i}]},0,0]}]})}};var l,c=1e3/t,f=0,d=t=>{var a;f&&t-f<c?l=requestAnimationFrame(d):(f=t,(a=[],r.document.querySelectorAll("canvas").forEach(t=>{uh(t,i,s,!0)||a.push(t)}),a).forEach(function(){var t=e(function*(t){var e,r=o.mirror.getId(t);if(!h.get(r)&&0!==t.width&&0!==t.height){if(h.set(r,!0),["webgl","webgl2"].includes(t.__context)){var i=t.getContext(t.__context);!1===(null==(e=null==i?void 0:i.getContextAttributes())?void 0:e.preserveDrawingBuffer)&&i.clear(i.COLOR_BUFFER_BIT)}var s=yield createImageBitmap(t);u.postMessage({id:r,bitmap:s,width:t.width,height:t.height,dataURLOptions:n.dataURLOptions},[s])}});return function(e){return t.apply(this,arguments)}}()),l=requestAnimationFrame(d))};l=requestAnimationFrame(d),this.resetObservers=()=>{a(),cancelAnimationFrame(l)}}initCanvasMutationObserver(t,e,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var i=ou(t,e,r,!1),s=function(t,e,r,i){var s=[],n=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype),o=function(n){try{if("function"!=typeof e.CanvasRenderingContext2D.prototype[n])return 1;var o=ih(e.CanvasRenderingContext2D.prototype,n,function(s){return function(){for(var o=arguments.length,a=new Array(o),h=0;h<o;h++)a[h]=arguments[h];return uh(this.canvas,r,i,!0)||setTimeout(()=>{var r=su(a,e,this);t(this.canvas,{type:kh["2D"],property:n,args:r})},0),s.apply(this,a)}});s.push(o)}catch(r){var a=rh(e.CanvasRenderingContext2D.prototype,n,{set(e){t(this.canvas,{type:kh["2D"],property:n,args:[e],setter:!0})}});s.push(a)}};for(var a of n)o(a);return()=>{s.forEach(t=>t())}}(this.processMutation.bind(this),t,e,r),n=function(t,e,r,i){var s=[];return s.push(...au(e.WebGLRenderingContext.prototype,kh.WebGL,t,r,i,e)),void 0!==e.WebGL2RenderingContext&&s.push(...au(e.WebGL2RenderingContext.prototype,kh.WebGL2,t,r,i,e)),()=>{s.forEach(t=>t())}}(this.processMutation.bind(this),t,e,r);this.resetObservers=()=>{i(),s(),n()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){var t=e=>{this.rafStamps.latestId=e,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,e)=>{var r=this.mirror.getId(e);this.flushPendingCanvasMutationFor(e,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,e){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(t);if(r&&-1!==e){var s=r.map(t=>i(t,u)),{type:n}=r[0];this.mutationCb({id:e,type:n,commands:s}),this.pendingCanvasMutations.delete(t)}}}}class mu{constructor(t){c(this,"trackedLinkElements",new WeakSet),c(this,"mutationCb"),c(this,"adoptedStyleSheetCb"),c(this,"styleMirror",new mh),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,e){"_cssText"in e.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:e.id,attributes:e.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,e){var r=this;if(0!==t.length){var i={id:e,styleIds:[]},s=[],n=function(t){var e;r.styleMirror.has(t)?e=r.styleMirror.getId(t):(e=r.styleMirror.add(t),s.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,r)=>({rule:M(e,t.href),index:r}))})),i.styleIds.push(e)};for(var o of t)n(o);s.length>0&&(i.styles=s),this.adoptedStyleSheetCb(i)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class gu{constructor(){c(this,"nodeMap",new WeakMap),c(this,"active",!1)}inOtherBuffer(t,e){var r=this.nodeMap.get(t);return r&&Array.from(r).some(t=>t!==e)}add(t,e){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(e))}destroy(){}}var wu=!1;try{if(2!==Array.from([1],t=>2*t)[0]){var yu=document.createElement("iframe");document.body.appendChild(yu),Array.from=(null==(s=yu.contentWindow)?void 0:s.Array.from)||Array.from,document.body.removeChild(yu)}}catch(t){console.debug("Unable to override Array.from",t)}var bu,Su,Cu=new E;function Iu(t){void 0===t&&(t={});var{emit:e,checkoutEveryNms:i,checkoutEveryNth:s,blockClass:n="rr-block",blockSelector:o=null,ignoreClass:a="rr-ignore",ignoreSelector:h=null,maskTextClass:u="rr-mask",maskTextSelector:l=null,inlineStylesheet:c=!0,maskAllInputs:f,maskInputOptions:d,slimDOMOptions:v,maskInputFn:p,maskTextFn:m,hooks:g,packFn:w,sampling:y={},dataURLOptions:b={},mousemoveWait:S,recordDOM:C=!0,recordCanvas:I=!1,recordCrossOriginIframes:k=!1,recordAfter:A=("DOMContentLoaded"===t.recordAfter?t.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:x=!1,inlineImages:M=!1,plugins:O,keepIframeSrcFn:T=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:B}=t;Mh=B;var _=!k||window.parent===window,j=!1;if(!_)try{window.parent.document&&(j=!1)}catch(t){j=!0}if(_&&!e)throw new Error("emit function is required");if(!_&&!j)return()=>{};void 0!==S&&void 0===y.mousemove&&(y.mousemove=S),Cu.reset();var F,L=!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==d?d:{password:!0},P=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===v,headMetaDescKeywords:"all"===v,headTitleMutations:"all"===v}:v||{};!function(t){void 0===t&&(t=window),"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();var D=0,U=t=>{for(var e of O||[])e.eventProcessor&&(t=e.eventProcessor(t));return w&&!j&&(t=w(t)),t};uu=(t,r)=>{var n,o=t;if(o.timestamp=sh(),!(null==(n=Fh[0])?void 0:n.isFrozen())||o.type===bh.FullSnapshot||o.type===bh.IncrementalSnapshot&&o.data.source===Sh.Mutation||Fh.forEach(t=>t.unfreeze()),_)null==e||e(U(o),r);else if(j){var a={type:"rrweb",event:U(o),origin:window.location.origin,isCheckout:r};window.parent.postMessage(a,"*")}if(o.type===bh.FullSnapshot)F=o,D=0;else if(o.type===bh.IncrementalSnapshot){if(o.data.source===Sh.Mutation&&o.data.isAttachIframe)return;D++;var h=s&&D>=s,u=i&&o.timestamp-F.timestamp>i;(h||u)&&lu(!0)}};var Z=t=>{uu({type:bh.IncrementalSnapshot,data:r({source:Sh.Mutation},t)})},Y=t=>uu({type:bh.IncrementalSnapshot,data:r({source:Sh.Scroll},t)}),W=t=>uu({type:bh.IncrementalSnapshot,data:r({source:Sh.CanvasMutation},t)}),G=new mu({mutationCb:Z,adoptedStyleSheetCb:t=>uu({type:bh.IncrementalSnapshot,data:r({source:Sh.AdoptedStyleSheet},t)})}),V=new $h({mirror:Cu,mutationCb:Z,stylesheetManager:G,recordCrossOriginIframes:k,wrappedEmit:uu});for(var z of O||[])z.getMirror&&z.getMirror({nodeMirror:Cu,crossOriginIframeMirror:V.crossOriginIframeMirror,crossOriginIframeStyleMirror:V.crossOriginIframeStyleMirror});var J=new gu;cu=new pu({recordCanvas:I,mutationCb:W,win:window,blockClass:n,blockSelector:o,mirror:Cu,sampling:y.canvas,dataURLOptions:b});var X=new Hh({mutationCb:Z,scrollCb:Y,bypassOptions:{blockClass:n,blockSelector:o,maskTextClass:u,maskTextSelector:l,inlineStylesheet:c,maskInputOptions:L,dataURLOptions:b,maskTextFn:m,maskInputFn:p,recordCanvas:I,inlineImages:M,sampling:y,slimDOMOptions:P,iframeManager:V,stylesheetManager:G,canvasManager:cu,keepIframeSrcFn:T,processedNodeManager:J},mirror:Cu});lu=function(t){if(void 0===t&&(t=!1),C){uu({type:bh.Meta,data:{href:window.location.href,width:ah(),height:oh()}},t),G.reset(),X.init(),Fh.forEach(t=>t.lock());var e=function(t,e){var{mirror:r=new E,blockClass:i="rr-block",blockSelector:s=null,maskTextClass:n="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:h=!1,recordCanvas:u=!1,maskAllInputs:l=!1,maskTextFn:c,maskInputFn:f,slimDOM:d=!1,dataURLOptions:v,preserveWhiteSpace:p,onSerialize:m,onIframeLoad:g,iframeLoadTimeout:w,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:S=()=>!1}=e||{};return st(t,{doc:t,mirror:r,blockClass:i,blockSelector:s,maskTextClass:n,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===l?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===l?{password:!0}:l,maskTextFn:c,maskInputFn:f,slimDOMOptions:!0===d||"all"===d?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===d,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===d?{}:d,dataURLOptions:v,inlineImages:h,recordCanvas:u,preserveWhiteSpace:p,onSerialize:m,onIframeLoad:g,iframeLoadTimeout:w,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:S,newlyAddedElement:!1})}(document,{mirror:Cu,blockClass:n,blockSelector:o,maskTextClass:u,maskTextSelector:l,inlineStylesheet:c,maskAllInputs:L,maskTextFn:m,maskInputFn:p,slimDOM:P,dataURLOptions:b,recordCanvas:I,inlineImages:M,onSerialize:t=>{dh(t,Cu)&&V.addIframe(t),vh(t,Cu)&&G.trackLinkElement(t),ph(t)&&X.addShadowRoot(Ha.shadowRoot(t),document)},onIframeLoad:(t,e)=>{V.attachIframe(t,e),X.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{G.attachLinkElement(t,e)},keepIframeSrcFn:T});if(!e)return console.warn("Failed to snapshot the document");uu({type:bh.FullSnapshot,data:{node:e,initialOffset:nh(window)}},t),Fh.forEach(t=>t.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&G.adoptStyleSheets(document.adoptedStyleSheets,Cu.getId(document))}};try{var K=[],H=t=>{var e;return jh(zh)({mutationCb:Z,mousemoveCb:(t,e)=>uu({type:bh.IncrementalSnapshot,data:{source:e,positions:t}}),mouseInteractionCb:t=>uu({type:bh.IncrementalSnapshot,data:r({source:Sh.MouseInteraction},t)}),scrollCb:Y,viewportResizeCb:t=>uu({type:bh.IncrementalSnapshot,data:r({source:Sh.ViewportResize},t)}),inputCb:t=>uu({type:bh.IncrementalSnapshot,data:r({source:Sh.Input},t)}),mediaInteractionCb:t=>uu({type:bh.IncrementalSnapshot,data:r({source:Sh.MediaInteraction},t)}),styleSheetRuleCb:t=>uu({type:bh.IncrementalSnapshot,data:r({source:Sh.StyleSheetRule},t)}),styleDeclarationCb:t=>uu({type:bh.IncrementalSnapshot,data:r({source:Sh.StyleDeclaration},t)}),canvasMutationCb:W,fontCb:t=>uu({type:bh.IncrementalSnapshot,data:r({source:Sh.Font},t)}),selectionCb:t=>{uu({type:bh.IncrementalSnapshot,data:r({source:Sh.Selection},t)})},customElementCb:t=>{uu({type:bh.IncrementalSnapshot,data:r({source:Sh.CustomElement},t)})},blockClass:n,ignoreClass:a,ignoreSelector:h,maskTextClass:u,maskTextSelector:l,maskInputOptions:L,inlineStylesheet:c,sampling:y,recordDOM:C,recordCanvas:I,inlineImages:M,userTriggeredOnInput:R,collectFonts:x,doc:t,maskInputFn:p,maskTextFn:m,keepIframeSrcFn:T,blockSelector:o,slimDOMOptions:P,dataURLOptions:b,mirror:Cu,iframeManager:V,stylesheetManager:G,shadowDomManager:X,processedNodeManager:J,canvasManager:cu,ignoreCSSAttributes:N,plugins:(null==(e=null==O?void 0:O.filter(t=>t.observer))?void 0:e.map(t=>({observer:t.observer,options:t.options,callback:e=>uu({type:bh.Plugin,data:{plugin:t.name,payload:e}})})))||[]},g)};V.addLoadListener(t=>{try{K.push(H(t.contentDocument))}catch(t){console.warn(t)}});var q=()=>{lu(),K.push(H(document)),wu=!0};return"interactive"===document.readyState||"complete"===document.readyState?q():(K.push(qa("DOMContentLoaded",()=>{uu({type:bh.DomContentLoaded,data:{}}),"DOMContentLoaded"===A&&q()})),K.push(qa("load",()=>{uu({type:bh.Load,data:{}}),"load"===A&&q()},window))),()=>{K.forEach(t=>t()),J.destroy(),wu=!1,Mh=void 0}}catch(t){console.warn(t)}}Iu.addCustomEvent=(t,e)=>{if(!wu)throw new Error("please add custom event after start recording");uu({type:bh.Custom,data:{tag:t,payload:e}})},Iu.freezePage=()=>{Fh.forEach(t=>t.freeze())},Iu.takeFullSnapshot=t=>{if(!wu)throw new Error("please take full snapshot after start recording");lu(t)},Iu.mirror=Cu,(Su=bu||(bu={}))[Su.NotStarted=0]="NotStarted",Su[Su.Running=1]="Running",Su[Su.Stopped=2]="Stopped";var ku,Au=["inputs"],Ru=["inputId"],xu=["inputs"],Mu=["inputId"],Eu=Object.defineProperty,Ou=(t,e,r)=>((t,e,r)=>e in t?Eu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r),Tu=Object.defineProperty,Nu=(t,e,r)=>((t,e,r)=>e in t?Tu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r),Bu=Object.defineProperty,_u=(t,e,r)=>((t,e,r)=>e in t?Bu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r),ju={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Fu={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Lu={};function Pu(t){if(Lu[t])return Lu[t];var e=globalThis[t],r=e.prototype,i=t in ju?ju[t]:void 0,s=Boolean(i&&i.every(t=>{var e,i;return Boolean(null==(i=null==(e=Object.getOwnPropertyDescriptor(r,t))?void 0:e.get)?void 0:i.toString().includes("[native code]"))})),n=t in Fu?Fu[t]:void 0,o=Boolean(n&&n.every(t=>{var e;return"function"==typeof r[t]&&(null==(e=r[t])?void 0:e.toString().includes("[native code]"))}));if(s&&o)return Lu[t]=e.prototype,e.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var h=a.contentWindow;if(!h)return e.prototype;var u=h[t].prototype;return document.body.removeChild(a),u?Lu[t]=u:r}catch(t){return r}}var Du={};function Uu(t,e,r){var i,s=t+"."+String(r);if(Du[s])return Du[s].call(e);var n=Pu(t),o=null==(i=Object.getOwnPropertyDescriptor(n,r))?void 0:i.get;return o?(Du[s]=o,o.call(e)):e[r]}var Zu={};function Yu(t,e,r){var i=t+"."+String(r);if(Zu[i])return Zu[i].bind(e);var s=Pu(t)[r];return"function"!=typeof s?e[r]:(Zu[i]=s,s.bind(e))}var Wu={childNodes:function(t){return Uu("Node",t,"childNodes")},parentNode:function(t){return Uu("Node",t,"parentNode")},parentElement:function(t){return Uu("Node",t,"parentElement")},textContent:function(t){return Uu("Node",t,"textContent")},contains:function(t,e){return Yu("Node",t,"contains")(e)},getRootNode:function(t){return Yu("Node",t,"getRootNode")()},host:function(t){return t&&"host"in t?Uu("ShadowRoot",t,"host"):null},styleSheets:function(t){return t.styleSheets},shadowRoot:function(t){return t&&"shadowRoot"in t?Uu("Element",t,"shadowRoot"):null},querySelector:function(t,e){return Uu("Element",t,"querySelector")(e)},querySelectorAll:function(t,e){return Uu("Element",t,"querySelectorAll")(e)},mutationObserver:function(){return Pu("MutationObserver").constructor}};class Gu{constructor(){_u(this,"idNodeMap",new Map),_u(this,"nodeMetaMap",new WeakMap)}getId(t){var e;if(!t)return-1;var r=null==(e=this.getMeta(t))?void 0:e.id;return null!=r?r:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){var e=this.getId(t);this.idNodeMap.delete(e),t.childNodes&&t.childNodes.forEach(t=>this.removeNodeFromMap(t))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,e){var r=e.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,e)}replace(t,e){var r=this.getNode(t);if(r){var i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(e,i)}this.idNodeMap.set(t,e)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Vu(t,e,r){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!r&&Vu(Wu.parentNode(t),e,r);for(var i=t.classList.length;i--;){var s=t.classList[i];if(e.test(s))return!0}return!!r&&Vu(Wu.parentNode(t),e,r)}function zu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ju(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:function(){return t[e]}})}),r}var Xu={exports:{}},Ku=String,$u=function(){return{isColorSupported:!1,reset:Ku,bold:Ku,dim:Ku,italic:Ku,underline:Ku,inverse:Ku,hidden:Ku,strikethrough:Ku,black:Ku,red:Ku,green:Ku,yellow:Ku,blue:Ku,magenta:Ku,cyan:Ku,white:Ku,gray:Ku,bgBlack:Ku,bgRed:Ku,bgGreen:Ku,bgYellow:Ku,bgBlue:Ku,bgMagenta:Ku,bgCyan:Ku,bgWhite:Ku}};Xu.exports=$u(),Xu.exports.createColors=$u;var Hu=Xu.exports,qu=Ju(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Qu=Hu,tl=qu,el=class t extends Error{constructor(e,r,i,s,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==i&&("number"==typeof r?(this.line=r,this.column=i):(this.line=r.line,this.column=r.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";var e=this.source;null==t&&(t=Qu.isColorSupported),tl&&t&&(e=tl(e));var r,i,s=e.split(/\r?\n/),n=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),a=String(o).length;if(t){var{bold:h,gray:u,red:l}=Qu.createColors(!0);r=t=>h(l(t)),i=t=>u(t)}else r=i=t=>t;return s.slice(n,o).map((t,e)=>{var s=n+1+e,o=" "+(" "+s).slice(-a)+" | ";if(s===this.line){var h=i(o.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+i(o)+t+"\n "+h+r("^")}return" "+i(o)+t}).join("\n")}toString(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}},rl=el;el.default=el;var il={};il.isClean=Symbol("isClean"),il.my=Symbol("my");var sl={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var nl=class{constructor(t){this.builder=t}atrule(t,e){var r="@"+t.name,i=t.params?this.rawValue(t,"params"):"";if(void 0!==t.raws.afterName?r+=t.raws.afterName:i&&(r+=" "),t.nodes)this.block(t,r+i);else{var s=(t.raws.between||"")+(e?";":"");this.builder(r+i+s,t)}}beforeAfter(t,e){var r;r="decl"===t.type?this.raw(t,null,"beforeDecl"):"comment"===t.type?this.raw(t,null,"beforeComment"):"before"===e?this.raw(t,null,"beforeRule"):this.raw(t,null,"beforeClose");for(var i=t.parent,s=0;i&&"root"!==i.type;)s+=1,i=i.parent;if(r.includes("\n")){var n=this.raw(t,null,"indent");if(n.length)for(var o=0;o<s;o++)r+=n}return r}block(t,e){var r,i=this.raw(t,"between","beforeOpen");this.builder(e+i+"{",t,"start"),t.nodes&&t.nodes.length?(this.body(t),r=this.raw(t,"after")):r=this.raw(t,"after","emptyBody"),r&&this.builder(r),this.builder("}",t,"end")}body(t){for(var e=t.nodes.length-1;e>0&&"comment"===t.nodes[e].type;)e-=1;for(var r=this.raw(t,"semicolon"),i=0;i<t.nodes.length;i++){var s=t.nodes[i],n=this.raw(s,"before");n&&this.builder(n),this.stringify(s,e!==i||r)}}comment(t){var e=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+r+"*/",t)}decl(t,e){var r=this.raw(t,"between","colon"),i=t.prop+r+this.rawValue(t,"value");t.important&&(i+=t.raws.important||" !important"),e&&(i+=";"),this.builder(i,t)}document(t){this.body(t)}raw(t,e,r){var i;if(r||(r=e),e&&void 0!==(i=t.raws[e]))return i;var s=t.parent;if("before"===r){if(!s||"root"===s.type&&s.first===t)return"";if(s&&"document"===s.type)return""}if(!s)return sl[r];var n=t.root();if(n.rawCache||(n.rawCache={}),void 0!==n.rawCache[r])return n.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(t,r);var o,a="raw"+((o=r)[0].toUpperCase()+o.slice(1));return this[a]?i=this[a](n,t):n.walk(t=>{if(void 0!==(i=t.raws[e]))return!1}),void 0===i&&(i=sl[r]),n.rawCache[r]=i,i}rawBeforeClose(t){var e;return t.walk(t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return(e=t.raws.after).includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){var r;return t.walkComments(t=>{if(void 0!==t.raws.before)return(r=t.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(e,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,e){var r;return t.walkDecls(t=>{if(void 0!==t.raws.before)return(r=t.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(e,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){var e;return t.walk(t=>{if("decl"!==t.type&&void 0!==(e=t.raws.between))return!1}),e}rawBeforeRule(t){var e;return t.walk(r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&void 0!==r.raws.before)return(e=r.raws.before).includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){var e;return t.walkDecls(t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1}),e}rawEmptyBody(t){var e;return t.walk(t=>{if(t.nodes&&0===t.nodes.length&&void 0!==(e=t.raws.after))return!1}),e}rawIndent(t){return t.raws.indent?t.raws.indent:(t.walk(r=>{var i=r.parent;if(i&&i!==t&&i.parent&&i.parent===t&&void 0!==r.raws.before){var s=r.raws.before.split("\n");return e=(e=s[s.length-1]).replace(/\S/g,""),!1}}),e);var e}rawSemicolon(t){var e;return t.walk(t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&void 0!==(e=t.raws.semicolon))return!1}),e}rawValue(t,e){var r=t[e],i=t.raws[e];return i&&i.value===r?i.raw:r}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}},ol=nl;nl.default=nl;var al=ol;function hl(t,e){new al(e).stringify(t)}var ul=hl;hl.default=hl;var{isClean:ll,my:cl}=il,fl=rl,dl=ol,vl=ul;function pl(t,e){var r=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var s=t[i],n=typeof s;"parent"===i&&"object"===n?e&&(r[i]=e):"source"===i?r[i]=s:Array.isArray(s)?r[i]=s.map(t=>pl(t,r)):("object"===n&&null!==s&&(s=pl(s)),r[i]=s)}return r}var ml=class{constructor(t){for(var e in void 0===t&&(t={}),this.raws={},this[ll]=!1,this[cl]=!0,t)if("nodes"===e)for(var r of(this.nodes=[],t[e]))"function"==typeof r.clone?this.append(r.clone()):this.append(r);else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){var e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&"+e.input.from+":"+e.start.line+":"+e.start.column+"$&")}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t){for(var e in void 0===t&&(t={}),t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t){void 0===t&&(t={});var e=pl(this);for(var r in t)e[r]=t[r];return e}cloneAfter(t){void 0===t&&(t={});var e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t){void 0===t&&(t={});var e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t,e){if(void 0===e&&(e={}),this.source){var{end:r,start:i}=this.rangeBy(e);return this.source.input.error(t,{column:i.column,line:i.line},{column:r.column,line:r.line},e)}return new fl(t)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markDirty(){if(this[ll]){this[ll]=!1;for(var t=this;t=t.parent;)t[ll]=!1}}next(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}}positionBy(t,e){var r=this.source.start;if(t.index)r=this.positionInside(t.index,e);else if(t.word){var i=(e=this.toString()).indexOf(t.word);-1!==i&&(r=this.positionInside(i,e))}return r}positionInside(t,e){for(var r=e||this.toString(),i=this.source.start.column,s=this.source.start.line,n=0;n<t;n++)"\n"===r[n]?(i=1,s+=1):i+=1;return{column:i,line:s}}prev(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t-1]}}rangeBy(t){var e={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:e.column+1,line:e.line};if(t.word){var i=this.toString(),s=i.indexOf(t.word);-1!==s&&(e=this.positionInside(s,i),r=this.positionInside(s+t.word.length,i))}else t.start?e={column:t.start.column,line:t.start.line}:t.index&&(e=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line}:"number"==typeof t.endIndex?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<e.line||r.line===e.line&&r.column<=e.column)&&(r={column:e.column+1,line:e.line}),{end:r,start:e}}raw(t,e){return(new dl).raw(this,t,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(){if(this.parent){for(var t=this,e=!1,r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(var n of i)n===this?e=!0:e?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);e||this.remove()}return this}root(){for(var t=this;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){var r={},i=null==e;e=e||new Map;var s=0;for(var n in this)if(Object.prototype.hasOwnProperty.call(this,n)&&"parent"!==n&&"proxyCache"!==n){var o=this[n];if(Array.isArray(o))r[n]=o.map(t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t);else if("object"==typeof o&&o.toJSON)r[n]=o.toJSON(null,e);else if("source"===n){var a=e.get(o.input);null==a&&(a=s,e.set(o.input,s),s++),r[n]={end:o.end,inputId:a,start:o.start}}else r[n]=o}return i&&(r.inputs=[...e.keys()].map(t=>t.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t){void 0===t&&(t=vl),t.stringify&&(t=t.stringify);var e="";return t(this,t=>{e+=t}),e}warn(t,e,r){var i={node:this};for(var s in r)i[s]=r[s];return t.warn(e,i)}get proxyOf(){return this}},gl=ml;ml.default=ml;var wl=gl,yl=class extends wl{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t=r({},t,{value:String(t.value)})),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}},bl=yl;yl.default=yl;var Sl={nanoid:function(t){void 0===t&&(t=21);for(var e="",r=t;r--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e}},{SourceMapConsumer:Cl,SourceMapGenerator:Il}=qu,{existsSync:kl,readFileSync:Al}=qu,{dirname:Rl,join:xl}=qu;var Ml=class{constructor(t,e){if(!1!==e.map){this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,i=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Rl(this.mapFile)),i&&(this.text=i)}}consumer(){return this.consumerCache||(this.consumerCache=new Cl(this.text)),this.consumerCache}decodeInline(t){var e;if(/^data:application\/json;charset=utf-?8,/.test(t)||/^data:application\/json,/.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(t)||/^data:application\/json;base64,/.test(t))return e=t.substr(RegExp.lastMatch.length),Buffer?Buffer.from(e,"base64").toString():window.atob(e);var r=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){var e=t.match(/\/\*\s*# sourceMappingURL=/gm);if(e){var r=t.lastIndexOf(e.pop()),i=t.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,i)))}}loadFile(t){if(this.root=Rl(t),kl(t))return this.mapFile=t,Al(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof Cl)return Il.fromSourceMap(e).toString();if(e instanceof Il)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}var r=e(t);if(r){var i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var s=this.annotation;return t&&(s=xl(Rl(t),s)),this.loadFile(s)}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},El=Ml;Ml.default=Ml;var{SourceMapConsumer:Ol,SourceMapGenerator:Tl}=qu,{fileURLToPath:Nl,pathToFileURL:Bl}=qu,{isAbsolute:_l,resolve:jl}=qu,{nanoid:Fl}=Sl,Ll=qu,Pl=rl,Dl=El,Ul=Symbol("fromOffsetCache"),Zl=Boolean(Ol&&Tl),Yl=Boolean(jl&&_l),Wl=class{constructor(t,e){if(void 0===e&&(e={}),null==t||"object"==typeof t&&!t.toString)throw new Error("PostCSS received "+t+" instead of CSS string");if(this.css=t.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!Yl||/^\w+:\/\//.test(e.from)||_l(e.from)?this.file=e.from:this.file=jl(e.from)),Yl&&Zl){var r=new Dl(this.css,e);if(r.text){this.map=r;var i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Fl(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,r,i){var s,n,o;if(void 0===i&&(i={}),e&&"object"==typeof e){var a=e,h=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);e=u.line,r=u.col}else e=a.line,r=a.column;if("number"==typeof h.offset){var l=this.fromOffset(h.offset);n=l.line,o=l.col}else n=h.line,o=h.column}else if(!r){var c=this.fromOffset(e);e=c.line,r=c.col}var f=this.origin(e,r,n,o);return(s=f?new Pl(t,void 0===f.endLine?f.line:{column:f.column,line:f.line},void 0===f.endLine?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,i.plugin):new Pl(t,void 0===n?e:{column:r,line:e},void 0===n?r:{column:o,line:n},this.css,this.file,i.plugin)).input={column:r,endColumn:o,endLine:n,line:e,source:this.css},this.file&&(Bl&&(s.input.url=Bl(this.file).toString()),s.input.file=this.file),s}fromOffset(t){var e;if(this[Ul])e=this[Ul];else{var r=this.css.split("\n");e=new Array(r.length);for(var i=0,s=0,n=r.length;s<n;s++)e[s]=i,i+=r[s].length+1;this[Ul]=e}var o=0;if(t>=e[e.length-1])o=e.length-1;else for(var a,h=e.length-2;o<h;)if(t<e[a=o+(h-o>>1)])h=a-1;else{if(!(t>=e[a+1])){o=a;break}o=a+1}return{col:t-e[o]+1,line:o+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:jl(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,e,r,i){if(!this.map)return!1;var s,n,o=this.map.consumer(),a=o.originalPositionFor({column:e,line:t});if(!a.source)return!1;"number"==typeof r&&(s=o.originalPositionFor({column:i,line:r})),n=_l(a.source)?Bl(a.source):new URL(a.source,this.map.consumer().sourceRoot||Bl(this.map.mapFile));var h={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:n.toString()};if("file:"===n.protocol){if(!Nl)throw new Error("file: protocol is not available in this PostCSS build");h.file=Nl(n)}var u=o.sourceContentFor(a.source);return u&&(h.source=u),h}toJSON(){var t={};for(var e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map=r({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}},Gl=Wl;Wl.default=Wl,Ll&&Ll.registerInput&&Ll.registerInput(Wl);var{SourceMapConsumer:Vl,SourceMapGenerator:zl}=qu,{dirname:Jl,relative:Xl,resolve:Kl,sep:$l}=qu,{pathToFileURL:Hl}=qu,ql=Gl,Ql=Boolean(Vl&&zl),tc=Boolean(Jl&&Kl&&Xl&&$l),ec=class{constructor(t,e,r,i){this.stringify=t,this.mapOpts=r.map||{},this.root=e,this.opts=r,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(){var t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(var t of this.previous()){var e=this.toUrl(this.path(t.file)),r=t.root||Jl(t.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new Vl(t.text)).sourcesContent&&(i.sourcesContent=null):i=t.consumer(),this.map.applySourceMap(i,e,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root)for(var t,e=this.root.nodes.length-1;e>=0;e--)"comment"===(t=this.root.nodes[e]).type&&0===t.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(e);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),tc&&Ql&&this.isMap())return this.generateMap();var t="";return this.stringify(this.root,e=>{t+=e}),[t]}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){var t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=zl.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new zl({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new zl({file:this.outputFile(),ignoreInvalidMapping:!0});var t,e,r=1,i=1,s="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,h)=>{if(this.css+=o,a&&"end"!==h&&(n.generated.line=r,n.generated.column=i-1,a.source&&a.source.start?(n.source=this.sourcePath(a),n.original.line=a.source.start.line,n.original.column=a.source.start.column-1,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,this.map.addMapping(n))),(t=o.match(/\n/g))?(r+=t.length,e=o.lastIndexOf("\n"),i=o.length-e):i+=o.length,a&&"start"!==h){var u=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===u.last&&!u.raws.semicolon||(a.source&&a.source.end?(n.source=this.sourcePath(a),n.original.line=a.source.end.line,n.original.column=a.source.end.column-1,n.generated.line=r,n.generated.column=i-2,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,n.generated.line=r,n.generated.column=i-1,this.map.addMapping(n)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(t=>t.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some(t=>t.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(t=>t.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute)return t;if(60===t.charCodeAt(0))return t;if(/^\w+:\/\//.test(t))return t;var e=this.memoizedPaths.get(t);if(e)return e;var r=this.opts.to?Jl(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Jl(Kl(r,this.mapOpts.annotation)));var i=Xl(r,t);return this.memoizedPaths.set(t,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){var e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}});else{var t=new ql(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){var t={};if(this.root)this.root.walk(e=>{if(e.source){var r=e.source.input.from;if(r&&!t[r]){t[r]=!0;var i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,e.source.input.css)}}});else if(this.css){var e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){var e=this.memoizedFileURLs.get(t);if(e)return e;if(Hl){var r=Hl(t).toString();return this.memoizedFileURLs.set(t,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){var e=this.memoizedURLs.get(t);if(e)return e;"\\"===$l&&(t=t.replace(/\\/g,"/"));var r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}},rc=gl,ic=class extends rc{constructor(t){super(t),this.type="comment"}},sc=ic;ic.default=ic;var nc,oc,ac,hc,{isClean:uc,my:lc}=il,cc=bl,fc=sc,dc=gl;function vc(t){return t.map(t=>(t.nodes&&(t.nodes=vc(t.nodes)),delete t.source,t))}function pc(t){if(t[uc]=!1,t.proxyOf.nodes)for(var e of t.proxyOf.nodes)pc(e)}var mc=class t extends dc{append(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i of e){var s=this.normalize(i,this.last);for(var n of s)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(var e of this.nodes)e.cleanRaws(t)}each(t){if(this.proxyOf.nodes){for(var e,r,i=this.getIterator();this.indexes[i]<this.proxyOf.nodes.length&&(e=this.indexes[i],!1!==(r=t(this.proxyOf.nodes[e],e)));)this.indexes[i]+=1;return delete this.indexes[i],r}}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return t[e](...i.map(t=>"function"==typeof t?(e,r)=>t(e.toProxy(),r):t))}:"every"===e||"some"===e?r=>t[e](function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];return r(t.toProxy(),...i)}):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map(t=>t.toProxy()):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){var r,i=this.index(t),s=this.normalize(e,this.proxyOf.nodes[i]).reverse();for(var n of(i=this.index(t),s))this.proxyOf.nodes.splice(i+1,0,n);for(var o in this.indexes)i<(r=this.indexes[o])&&(this.indexes[o]=r+s.length);return this.markDirty(),this}insertBefore(t,e){var r,i=this.index(t),s=0===i&&"prepend",n=this.normalize(e,this.proxyOf.nodes[i],s).reverse();for(var o of(i=this.index(t),n))this.proxyOf.nodes.splice(i,0,o);for(var a in this.indexes)i<=(r=this.indexes[a])&&(this.indexes[a]=r+n.length);return this.markDirty(),this}normalize(e,r){if("string"==typeof e)e=vc(nc(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i of e=e.slice(0))i.parent&&i.parent.removeChild(i,"ignore");else if("root"===e.type&&"document"!==this.type)for(var s of e=e.nodes.slice(0))s.parent&&s.parent.removeChild(s,"ignore");else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new cc(e)]}else if(e.selector)e=[new oc(e)];else if(e.name)e=[new ac(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new fc(e)]}var n=e.map(e=>(e[lc]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[uc]&&pc(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e));return n}prepend(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i of e=e.reverse()){var s=this.normalize(i,this.first,"prepend").reverse();for(var n of s)this.proxyOf.nodes.unshift(n);for(var o in this.indexes)this.indexes[o]=this.indexes[o]+s.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(var t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){var e;for(var r in t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1),this.indexes)(e=this.indexes[r])>=t&&(this.indexes[r]=e-1);return this.markDirty(),this}replaceValues(t,e,r){return r||(r=e,e={}),this.walkDecls(i=>{e.props&&!e.props.includes(i.prop)||e.fast&&!i.value.includes(e.fast)||(i.value=i.value.replace(t,r))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((e,r)=>{var i;try{i=t(e,r)}catch(t){throw e.addToError(t)}return!1!==i&&e.walk&&(i=e.walk(t)),i})}walkAtRules(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("atrule"===r.type&&t.test(r.name))return e(r,i)}):this.walk((r,i)=>{if("atrule"===r.type&&r.name===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("atrule"===t.type)return e(t,r)}))}walkComments(t){return this.walk((e,r)=>{if("comment"===e.type)return t(e,r)})}walkDecls(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("decl"===r.type&&t.test(r.prop))return e(r,i)}):this.walk((r,i)=>{if("decl"===r.type&&r.prop===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("decl"===t.type)return e(t,r)}))}walkRules(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("rule"===r.type&&t.test(r.selector))return e(r,i)}):this.walk((r,i)=>{if("rule"===r.type&&r.selector===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("rule"===t.type)return e(t,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};mc.registerParse=t=>{nc=t},mc.registerRule=t=>{oc=t},mc.registerAtRule=t=>{ac=t},mc.registerRoot=t=>{hc=t};var gc=mc;mc.default=mc,mc.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,ac.prototype):"rule"===t.type?Object.setPrototypeOf(t,oc.prototype):"decl"===t.type?Object.setPrototypeOf(t,cc.prototype):"comment"===t.type?Object.setPrototypeOf(t,fc.prototype):"root"===t.type&&Object.setPrototypeOf(t,hc.prototype),t[lc]=!0,t.nodes&&t.nodes.forEach(t=>{mc.rebuild(t)})};var wc,yc,bc=gc,Sc=class extends bc{constructor(t){super(r({type:"document"},t)),this.nodes||(this.nodes=[])}toResult(t){return void 0===t&&(t={}),new wc(new yc,this,t).stringify()}};Sc.registerLazyResult=t=>{wc=t},Sc.registerProcessor=t=>{yc=t};var Cc=Sc;Sc.default=Sc;var Ic={},kc=function(t){Ic[t]||(Ic[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))},Ac=class{constructor(t,e){if(void 0===e&&(e={}),this.type="warning",this.text=t,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var i in e)this[i]=e[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}},Rc=Ac;Ac.default=Ac;var xc=Rc,Mc=class{constructor(t,e,r){this.processor=t,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,e){void 0===e&&(e={}),e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);var r=new xc(t,e);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>"warning"===t.type)}get content(){return this.css}},Ec=Mc;Mc.default=Mc;var Oc="'".charCodeAt(0),Tc='"'.charCodeAt(0),Nc="\\".charCodeAt(0),Bc="/".charCodeAt(0),_c="\n".charCodeAt(0),jc=" ".charCodeAt(0),Fc="\f".charCodeAt(0),Lc="\t".charCodeAt(0),Pc="\r".charCodeAt(0),Dc="[".charCodeAt(0),Uc="]".charCodeAt(0),Zc="(".charCodeAt(0),Yc=")".charCodeAt(0),Wc="{".charCodeAt(0),Gc="}".charCodeAt(0),Vc=";".charCodeAt(0),zc="*".charCodeAt(0),Jc=":".charCodeAt(0),Xc="@".charCodeAt(0),Kc=/[\t\n\f\r "#'()/;[\\\]{}]/g,$c=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Hc=/.[\r\n"'(/\\]/,qc=/[\da-f]/i,Qc=gc,tf=class extends Qc{constructor(t){super(t),this.type="atrule"}append(){return this.proxyOf.nodes||(this.nodes=[]),super.append(...arguments)}prepend(){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...arguments)}},ef=tf;tf.default=tf,Qc.registerAtRule(tf);var rf,sf,nf=gc,of=class extends nf{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,r){var i=super.normalize(t);if(e)if("prepend"===r)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(var s of i)s.raws.before=e.raws.before;return i}removeChild(t,e){var r=this.index(t);return!e&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t){return void 0===t&&(t={}),new rf(new sf,this,t).stringify()}};of.registerLazyResult=t=>{rf=t},of.registerProcessor=t=>{sf=t};var af=of;of.default=of,nf.registerRoot(of);var hf={comma:t=>hf.split(t,[","],!0),space:t=>hf.split(t,[" ","\n","\t"]),split(t,e,r){var i=[],s="",n=!1,o=0,a=!1,h="",u=!1;for(var l of t)u?u=!1:"\\"===l?u=!0:a?l===h&&(a=!1):'"'===l||"'"===l?(a=!0,h=l):"("===l?o+=1:")"===l?o>0&&(o-=1):0===o&&e.includes(l)&&(n=!0),n?(""!==s&&i.push(s.trim()),s="",n=!1):s+=l;return(r||""!==s)&&i.push(s.trim()),i}},uf=hf;hf.default=hf;var lf=gc,cf=uf,ff=class extends lf{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return cf.comma(this.selector)}set selectors(t){var e=this.selector?this.selector.match(/,\s*/):null,r=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}},df=ff;ff.default=ff,lf.registerRule(ff);var vf=bl,pf=function(t,e){void 0===e&&(e={});var r,i,s,n,o,a,h,u,l,c,f=t.css.valueOf(),d=e.ignoreErrors,v=f.length,p=0,m=[],g=[];function w(e){throw t.error("Unclosed "+e,p)}return{back:function(t){g.push(t)},endOfFile:function(){return 0===g.length&&p>=v},nextToken:function(t){if(g.length)return g.pop();if(!(p>=v)){var e=!!t&&t.ignoreUnclosed;switch(r=f.charCodeAt(p)){case _c:case jc:case Lc:case Pc:case Fc:i=p;do{i+=1,r=f.charCodeAt(i)}while(r===jc||r===_c||r===Lc||r===Pc||r===Fc);c=["space",f.slice(p,i)],p=i-1;break;case Dc:case Uc:case Wc:case Gc:case Jc:case Vc:case Yc:var y=String.fromCharCode(r);c=[y,y,p];break;case Zc:if(u=m.length?m.pop()[1]:"",l=f.charCodeAt(p+1),"url"===u&&l!==Oc&&l!==Tc&&l!==jc&&l!==_c&&l!==Lc&&l!==Fc&&l!==Pc){i=p;do{if(a=!1,-1===(i=f.indexOf(")",i+1))){if(d||e){i=p;break}w("bracket")}for(h=i;f.charCodeAt(h-1)===Nc;)h-=1,a=!a}while(a);c=["brackets",f.slice(p,i+1),p,i],p=i}else i=f.indexOf(")",p+1),n=f.slice(p,i+1),-1===i||Hc.test(n)?c=["(","(",p]:(c=["brackets",n,p,i],p=i);break;case Oc:case Tc:s=r===Oc?"'":'"',i=p;do{if(a=!1,-1===(i=f.indexOf(s,i+1))){if(d||e){i=p+1;break}w("string")}for(h=i;f.charCodeAt(h-1)===Nc;)h-=1,a=!a}while(a);c=["string",f.slice(p,i+1),p,i],p=i;break;case Xc:Kc.lastIndex=p+1,Kc.test(f),i=0===Kc.lastIndex?f.length-1:Kc.lastIndex-2,c=["at-word",f.slice(p,i+1),p,i],p=i;break;case Nc:for(i=p,o=!0;f.charCodeAt(i+1)===Nc;)i+=1,o=!o;if(r=f.charCodeAt(i+1),o&&r!==Bc&&r!==jc&&r!==_c&&r!==Lc&&r!==Pc&&r!==Fc&&(i+=1,qc.test(f.charAt(i)))){for(;qc.test(f.charAt(i+1));)i+=1;f.charCodeAt(i+1)===jc&&(i+=1)}c=["word",f.slice(p,i+1),p,i],p=i;break;default:r===Bc&&f.charCodeAt(p+1)===zc?(0===(i=f.indexOf("*/",p+2)+1)&&(d||e?i=f.length:w("comment")),c=["comment",f.slice(p,i+1),p,i],p=i):($c.lastIndex=p+1,$c.test(f),i=0===$c.lastIndex?f.length-1:$c.lastIndex-2,c=["word",f.slice(p,i+1),p,i],m.push(c),p=i)}return p++,c}},position:function(){return p}}},mf=sc,gf=ef,wf=af,yf=df,bf={empty:!0,space:!0};var Sf=class{constructor(t){this.input=t,this.root=new wf,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){var e,r,i,s=new gf;s.name=t[1].slice(1),""===s.name&&this.unnamedAtrule(s,t),this.init(s,t[2]);for(var n=!1,o=!1,a=[],h=[];!this.tokenizer.endOfFile();){if("("===(e=(t=this.tokenizer.nextToken())[0])||"["===e?h.push("("===e?")":"]"):"{"===e&&h.length>0?h.push("}"):e===h[h.length-1]&&h.pop(),0===h.length){if(";"===e){s.source.end=this.getPosition(t[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===e){o=!0;break}if("}"===e){if(a.length>0){for(r=a[i=a.length-1];r&&"space"===r[0];)r=a[--i];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(t);break}a.push(t)}else a.push(t);if(this.tokenizer.endOfFile()){n=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),n&&(t=a[a.length-1],s.source.end=this.getPosition(t[3]||t[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(t){var e=this.colon(t);if(!1!==e){for(var r,i=0,s=e-1;s>=0&&("space"===(r=t[s])[0]||2!==(i+=1));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}}colon(t){var e,r,i,s=0;for(var[n,o]of t.entries()){if("("===(r=(e=o)[0])&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(i){if("word"===i[0]&&"progid"===i[1])continue;return n}this.doubleColon(e)}i=e}return!1}comment(t){var e=new mf;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;var r=t[1].slice(2,-2);if(/^\s*$/.test(r))e.text="",e.raws.left=r,e.raws.right="";else{var i=r.match(/^(\s*)([^]*\S)(\s*)$/);e.text=i[2],e.raws.left=i[1],e.raws.right=i[3]}}createTokenizer(){this.tokenizer=pf(this.input)}decl(t,e){var r=new vf;this.init(r,t[0][2]);var i,s=t[t.length-1];for(";"===s[0]&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(s[3]||s[2]||function(t){for(var e=t.length-1;e>=0;e--){var r=t[e],i=r[3]||r[2];if(i)return i}}(t)),r.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){var n=t[0][0];if(":"===n||"space"===n||"comment"===n)break;r.prop+=t.shift()[1]}for(r.raws.between="";t.length;){if(":"===(i=t.shift())[0]){r.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var o,a=[];t.length&&("space"===(o=t[0][0])||"comment"===o);)a.push(t.shift());this.precheckMissedSemicolon(t);for(var h=t.length-1;h>=0;h--){if("!important"===(i=t[h])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(t,h);" !important"!==(u=this.spacesFromEnd(t)+u)&&(r.raws.important=u);break}if("important"===i[1].toLowerCase()){for(var l=t.slice(0),c="",f=h;f>0;f--){var d=l[f][0];if(0===c.trim().indexOf("!")&&"space"!==d)break;c=l.pop()[1]+c}0===c.trim().indexOf("!")&&(r.important=!0,r.raws.important=c,t=l)}if("space"!==i[0]&&"comment"!==i[0])break}var v=t.some(t=>"space"!==t[0]&&"comment"!==t[0]);v&&(r.raws.between+=a.map(t=>t[1]).join(""),a=[]),this.raw(r,"value",a.concat(t),e),r.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){var e=new yf;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){var e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){var e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){for(var e=!1,r=null,i=!1,s=null,n=[],o=t[1].startsWith("--"),a=[],h=t;h;){if(r=h[0],a.push(h),"("===r||"["===r)s||(s=h),n.push("("===r?")":"]");else if(o&&i&&"{"===r)s||(s=h),n.push("}");else if(0===n.length){if(";"===r){if(i)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),e=!0;break}":"===r&&(i=!0)}else r===n[n.length-1]&&(n.pop(),0===n.length&&(s=null));h=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),n.length>0&&this.unclosedBracket(s),e&&i){if(!o)for(;a.length&&("space"===(h=a[a.length-1][0])||"comment"===h);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){for(var t;!this.tokenizer.endOfFile();)switch((t=this.tokenizer.nextToken())[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,r,i){for(var s,n,o,a,h=r.length,u="",l=!0,c=0;c<h;c+=1)"space"!==(n=(s=r[c])[0])||c!==h-1||i?"comment"===n?(a=r[c-1]?r[c-1][0]:"empty",o=r[c+1]?r[c+1][0]:"empty",bf[a]||bf[o]||","===u.slice(-1)?l=!1:u+=s[1]):u+=s[1]:l=!1;if(!l){var f=r.reduce((t,e)=>t+e[1],"");t.raws[e]={raw:f,value:u}}t[e]=u}rule(t){t.pop();var e=new yf;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){for(var e,r="";t.length&&("space"===(e=t[t.length-1][0])||"comment"===e);)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){for(var e,r="";t.length&&("space"===(e=t[0][0])||"comment"===e);)r+=t.shift()[1];return r}spacesFromEnd(t){for(var e="";t.length&&"space"===t[t.length-1][0];)e=t.pop()[1]+e;return e}stringFrom(t,e){for(var r="",i=e;i<t.length;i++)r+=t[i][1];return t.splice(e,t.length-e),r}unclosedBlock(){var t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}},Cf=gc,If=Sf,kf=Gl;function Af(t,e){var r=new kf(t,e),i=new If(r);try{i.parse()}catch(t){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===t.name&&e&&e.from&&(/\.scss$/i.test(e.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(e.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(e.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return i.root}var Rf=Af;Af.default=Af,Cf.registerParse(Af);var{isClean:xf,my:Mf}=il,Ef=ec,Of=ul,Tf=gc,Nf=Cc,Bf=kc,_f=Ec,jf=Rf,Ff=af,Lf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Pf={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Df={Once:!0,postcssPlugin:!0,prepare:!0};function Uf(t){return"object"==typeof t&&"function"==typeof t.then}function Zf(t){var e=!1,r=Lf[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,0,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function Yf(t){return{eventIndex:0,events:"document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:Zf(t),iterator:0,node:t,visitorIndex:0,visitors:[]}}function Wf(t){return t[xf]=!1,t.nodes&&t.nodes.forEach(t=>Wf(t)),t}var Gf={},Vf=class t{constructor(e,i,s){var n;if(this.stringified=!1,this.processed=!1,"object"!=typeof i||null===i||"root"!==i.type&&"document"!==i.type)if(i instanceof t||i instanceof _f)n=Wf(i.root),i.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=i.map);else{var o=jf;s.syntax&&(o=s.syntax.parse),s.parser&&(o=s.parser),o.parse&&(o=o.parse);try{n=o(i,s)}catch(t){this.processed=!0,this.error=t}n&&!n[Mf]&&Tf.rebuild(n)}else n=Wf(i);this.result=new _f(e,n,s),this.helpers=r({},Gf,{postcss:Gf,result:this.result}),this.plugins=this.processor.plugins.map(t=>"object"==typeof t&&t.prepare?r({},t,t.prepare(this.result)):t)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){var r=this.result.lastPlugin;try{if(e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var i=r.postcssPlugin,s=r.postcssVersion,n=this.result.processor.version,o=s.split("."),a=n.split(".");(o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+i+" uses "+s+". Perhaps this is the source of the error below.")}}else t.plugin=r.postcssPlugin,t.setMessage()}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};var t=(t,e,r)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,r])};for(var e of this.plugins)if("object"==typeof e)for(var r in e){if(!Pf[r]&&/^[A-Z]/.test(r))throw new Error("Unknown event "+r+" in "+e.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Df[r])if("object"==typeof e[r])for(var i in e[r])t(e,"*"===i?r:r+"-"+i.toLowerCase(),e[r][i]);else"function"==typeof e[r]&&t(e,r,e[r])}this.hasListener=Object.keys(this.listeners).length>0}runAsync(){var t=this;return e(function*(){t.plugin=0;for(var e=0;e<t.plugins.length;e++){var r=t.plugins[e],i=t.runOnRoot(r);if(Uf(i))try{yield i}catch(e){throw t.handleError(e)}}if(t.prepareVisitors(),t.hasListener){for(var s=t.result.root;!s[xf];){s[xf]=!0;for(var n=[Yf(s)];n.length>0;){var o=t.visitTick(n);if(Uf(o))try{yield o}catch(e){var a=n[n.length-1].node;throw t.handleError(e,a)}}}if(t.listeners.OnceExit){var h=function*(e){t.result.lastPlugin=u;try{if("document"===s.type){var r=s.nodes.map(r=>e(r,t.helpers));yield Promise.all(r)}else yield e(s,t.helpers)}catch(e){throw t.handleError(e)}};for(var[u,l]of t.listeners.OnceExit)yield*h(l)}}return t.processed=!0,t.stringify()})()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){var e=this.result.root.nodes.map(e=>t.Once(e,this.helpers));return Uf(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var t=this.result.opts,e=Of;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);var r=new Ef(e,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var t of this.plugins){if(Uf(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var e=this.result.root;!e[xf];)e[xf]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(var r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this.opts||Bf("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}toString(){return this.css}visitSync(t,e){for(var[r,i]of t){this.result.lastPlugin=r;var s=void 0;try{s=i(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(Uf(s))throw this.getAsyncError()}}visitTick(t){var e=t[t.length-1],{node:r,visitors:i}=e;if("root"===r.type||"document"===r.type||r.parent){if(i.length>0&&e.visitorIndex<i.length){var[s,n]=i[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===i.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=s;try{return n(r.toProxy(),this.helpers)}catch(t){throw this.handleError(t,r)}}if(0!==e.iterator){for(var o,a=e.iterator;o=r.nodes[r.indexes[a]];)if(r.indexes[a]+=1,!o[xf])return o[xf]=!0,void t.push(Yf(o));e.iterator=0,delete r.indexes[a]}for(var h=e.events;e.eventIndex<h.length;){var u=h[e.eventIndex];if(e.eventIndex+=1,0===u)return void(r.nodes&&r.nodes.length&&(r[xf]=!0,e.iterator=r.getIterator()));if(this.listeners[u])return void(e.visitors=this.listeners[u])}t.pop()}else t.pop()}walkSync(t){t[xf]=!0;var e=Zf(t);for(var r of e)if(0===r)t.nodes&&t.each(t=>{t[xf]||this.walkSync(t)});else{var i=this.listeners[r];if(i&&this.visitSync(i,t.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"}};Vf.registerPostcss=t=>{Gf=t};var zf=Vf;Vf.default=Vf,Ff.registerLazyResult(Vf),Nf.registerLazyResult(Vf);var Jf=ec,Xf=ul,Kf=kc,$f=Rf,Hf=Ec,qf=class{constructor(t,e,r){var i;e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=r,this._map=void 0;var s=Xf;this.result=new Hf(this._processor,i,this._opts),this.result.css=e;var n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});var o=new Jf(s,i,this._opts,e);if(o.isMap()){var[a,h]=o.generate();a&&(this.result.css=a),h&&(this.result.map=h)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this._opts||Kf("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}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;var t,e=$f;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}},Qf=qf;qf.default=qf;var td=Qf,ed=zf,rd=Cc,id=af,sd=class{constructor(t){void 0===t&&(t=[]),this.version="8.4.38",this.plugins=this.normalize(t)}normalize(t){var e=[];for(var r of t)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))e=e.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)e.push(r);else if("function"==typeof r)e.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return e}process(t,e){return void 0===e&&(e={}),this.plugins.length||e.parser||e.stringifier||e.syntax?new ed(this,t,e):new td(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}},nd=sd;sd.default=sd,id.registerProcessor(sd),rd.registerProcessor(sd);var od=bl,ad=El,hd=sc,ud=ef,ld=Gl,cd=af,fd=df;function dd(t,e){if(Array.isArray(t))return t.map(t=>dd(t));var{inputs:s}=t,n=i(t,Au);if(s)for(var o of(e=[],s)){var a=r({},o,{__proto__:ld.prototype});a.map&&(a.map=r({},a.map,{__proto__:ad.prototype})),e.push(a)}if(n.nodes&&(n.nodes=t.nodes.map(t=>dd(t,e))),n.source){var h=n.source,{inputId:u}=h,l=i(h,Ru);n.source=l,null!=u&&(n.source.input=e[u])}if("root"===n.type)return new cd(n);if("decl"===n.type)return new od(n);if("rule"===n.type)return new fd(n);if("comment"===n.type)return new hd(n);if("atrule"===n.type)return new ud(n);throw new Error("Unknown node type: "+t.type)}var vd=dd;dd.default=dd;var pd=rl,md=bl,gd=zf,wd=gc,yd=nd,bd=ul,Sd=vd,Cd=Cc,Id=Rc,kd=sc,Ad=ef,Rd=Ec,xd=Gl,Md=Rf,Ed=uf,Od=df,Td=af,Nd=gl;function Bd(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new yd(e)}Bd.plugin=function(t,e){var r,i=!1;function s(){console&&console.warn&&!i&&(i=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var r=e(...arguments);return r.postcssPlugin=t,r.postcssVersion=(new yd).version,r}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(t,e,r){return Bd([s(r)]).process(t,e)},s},Bd.stringify=bd,Bd.parse=Md,Bd.fromJSON=Sd,Bd.list=Ed,Bd.comment=t=>new kd(t),Bd.atRule=t=>new Ad(t),Bd.decl=t=>new md(t),Bd.rule=t=>new Od(t),Bd.root=t=>new Td(t),Bd.document=t=>new Cd(t),Bd.CssSyntaxError=pd,Bd.Declaration=md,Bd.Container=wd,Bd.Processor=yd,Bd.Document=Cd,Bd.Comment=kd,Bd.Warning=Id,Bd.AtRule=Ad,Bd.Result=Rd,Bd.Input=xd,Bd.Rule=Od,Bd.Root=Td,Bd.Node=Nd,gd.registerPostcss(Bd);var _d=Bd;Bd.default=Bd;var jd=zu(_d);jd.stringify,jd.fromJSON,jd.plugin,jd.parse,jd.list,jd.document,jd.comment,jd.atRule,jd.rule,jd.decl,jd.root,jd.CssSyntaxError,jd.Declaration,jd.Container,jd.Processor,jd.Document,jd.Comment,jd.Warning,jd.AtRule,jd.Result,jd.Input,jd.Rule,jd.Root,jd.Node;var Fd=Object.defineProperty,Ld=(t,e,r)=>((t,e,r)=>e in t?Fd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r);function Pd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Dd(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:function(){return t[e]}})}),r}var Ud={exports:{}},Zd=String,Yd=function(){return{isColorSupported:!1,reset:Zd,bold:Zd,dim:Zd,italic:Zd,underline:Zd,inverse:Zd,hidden:Zd,strikethrough:Zd,black:Zd,red:Zd,green:Zd,yellow:Zd,blue:Zd,magenta:Zd,cyan:Zd,white:Zd,gray:Zd,bgBlack:Zd,bgRed:Zd,bgGreen:Zd,bgYellow:Zd,bgBlue:Zd,bgMagenta:Zd,bgCyan:Zd,bgWhite:Zd}};Ud.exports=Yd(),Ud.exports.createColors=Yd;var Wd=Ud.exports,Gd=Dd(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Vd=Wd,zd=Gd,Jd=class t extends Error{constructor(e,r,i,s,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==i&&("number"==typeof r?(this.line=r,this.column=i):(this.line=r.line,this.column=r.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";var e=this.source;null==t&&(t=Vd.isColorSupported),zd&&t&&(e=zd(e));var r,i,s=e.split(/\r?\n/),n=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),a=String(o).length;if(t){var{bold:h,gray:u,red:l}=Vd.createColors(!0);r=t=>h(l(t)),i=t=>u(t)}else r=i=t=>t;return s.slice(n,o).map((t,e)=>{var s=n+1+e,o=" "+(" "+s).slice(-a)+" | ";if(s===this.line){var h=i(o.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+i(o)+t+"\n "+h+r("^")}return" "+i(o)+t}).join("\n")}toString(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}},Xd=Jd;Jd.default=Jd;var Kd={};Kd.isClean=Symbol("isClean"),Kd.my=Symbol("my");var $d={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var Hd=class{constructor(t){this.builder=t}atrule(t,e){var r="@"+t.name,i=t.params?this.rawValue(t,"params"):"";if(void 0!==t.raws.afterName?r+=t.raws.afterName:i&&(r+=" "),t.nodes)this.block(t,r+i);else{var s=(t.raws.between||"")+(e?";":"");this.builder(r+i+s,t)}}beforeAfter(t,e){var r;r="decl"===t.type?this.raw(t,null,"beforeDecl"):"comment"===t.type?this.raw(t,null,"beforeComment"):"before"===e?this.raw(t,null,"beforeRule"):this.raw(t,null,"beforeClose");for(var i=t.parent,s=0;i&&"root"!==i.type;)s+=1,i=i.parent;if(r.includes("\n")){var n=this.raw(t,null,"indent");if(n.length)for(var o=0;o<s;o++)r+=n}return r}block(t,e){var r,i=this.raw(t,"between","beforeOpen");this.builder(e+i+"{",t,"start"),t.nodes&&t.nodes.length?(this.body(t),r=this.raw(t,"after")):r=this.raw(t,"after","emptyBody"),r&&this.builder(r),this.builder("}",t,"end")}body(t){for(var e=t.nodes.length-1;e>0&&"comment"===t.nodes[e].type;)e-=1;for(var r=this.raw(t,"semicolon"),i=0;i<t.nodes.length;i++){var s=t.nodes[i],n=this.raw(s,"before");n&&this.builder(n),this.stringify(s,e!==i||r)}}comment(t){var e=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+r+"*/",t)}decl(t,e){var r=this.raw(t,"between","colon"),i=t.prop+r+this.rawValue(t,"value");t.important&&(i+=t.raws.important||" !important"),e&&(i+=";"),this.builder(i,t)}document(t){this.body(t)}raw(t,e,r){var i;if(r||(r=e),e&&void 0!==(i=t.raws[e]))return i;var s=t.parent;if("before"===r){if(!s||"root"===s.type&&s.first===t)return"";if(s&&"document"===s.type)return""}if(!s)return $d[r];var n=t.root();if(n.rawCache||(n.rawCache={}),void 0!==n.rawCache[r])return n.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(t,r);var o,a="raw"+((o=r)[0].toUpperCase()+o.slice(1));return this[a]?i=this[a](n,t):n.walk(t=>{if(void 0!==(i=t.raws[e]))return!1}),void 0===i&&(i=$d[r]),n.rawCache[r]=i,i}rawBeforeClose(t){var e;return t.walk(t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return(e=t.raws.after).includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){var r;return t.walkComments(t=>{if(void 0!==t.raws.before)return(r=t.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(e,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,e){var r;return t.walkDecls(t=>{if(void 0!==t.raws.before)return(r=t.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(e,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){var e;return t.walk(t=>{if("decl"!==t.type&&void 0!==(e=t.raws.between))return!1}),e}rawBeforeRule(t){var e;return t.walk(r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&void 0!==r.raws.before)return(e=r.raws.before).includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){var e;return t.walkDecls(t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1}),e}rawEmptyBody(t){var e;return t.walk(t=>{if(t.nodes&&0===t.nodes.length&&void 0!==(e=t.raws.after))return!1}),e}rawIndent(t){return t.raws.indent?t.raws.indent:(t.walk(r=>{var i=r.parent;if(i&&i!==t&&i.parent&&i.parent===t&&void 0!==r.raws.before){var s=r.raws.before.split("\n");return e=(e=s[s.length-1]).replace(/\S/g,""),!1}}),e);var e}rawSemicolon(t){var e;return t.walk(t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&void 0!==(e=t.raws.semicolon))return!1}),e}rawValue(t,e){var r=t[e],i=t.raws[e];return i&&i.value===r?i.raw:r}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}},qd=Hd;Hd.default=Hd;var Qd=qd;function tv(t,e){new Qd(e).stringify(t)}var ev=tv;tv.default=tv;var{isClean:rv,my:iv}=Kd,sv=Xd,nv=qd,ov=ev;function av(t,e){var r=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var s=t[i],n=typeof s;"parent"===i&&"object"===n?e&&(r[i]=e):"source"===i?r[i]=s:Array.isArray(s)?r[i]=s.map(t=>av(t,r)):("object"===n&&null!==s&&(s=av(s)),r[i]=s)}return r}var hv=class{constructor(t){for(var e in void 0===t&&(t={}),this.raws={},this[rv]=!1,this[iv]=!0,t)if("nodes"===e)for(var r of(this.nodes=[],t[e]))"function"==typeof r.clone?this.append(r.clone()):this.append(r);else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){var e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&"+e.input.from+":"+e.start.line+":"+e.start.column+"$&")}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t){for(var e in void 0===t&&(t={}),t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t){void 0===t&&(t={});var e=av(this);for(var r in t)e[r]=t[r];return e}cloneAfter(t){void 0===t&&(t={});var e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t){void 0===t&&(t={});var e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t,e){if(void 0===e&&(e={}),this.source){var{end:r,start:i}=this.rangeBy(e);return this.source.input.error(t,{column:i.column,line:i.line},{column:r.column,line:r.line},e)}return new sv(t)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markDirty(){if(this[rv]){this[rv]=!1;for(var t=this;t=t.parent;)t[rv]=!1}}next(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}}positionBy(t,e){var r=this.source.start;if(t.index)r=this.positionInside(t.index,e);else if(t.word){var i=(e=this.toString()).indexOf(t.word);-1!==i&&(r=this.positionInside(i,e))}return r}positionInside(t,e){for(var r=e||this.toString(),i=this.source.start.column,s=this.source.start.line,n=0;n<t;n++)"\n"===r[n]?(i=1,s+=1):i+=1;return{column:i,line:s}}prev(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t-1]}}rangeBy(t){var e={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:e.column+1,line:e.line};if(t.word){var i=this.toString(),s=i.indexOf(t.word);-1!==s&&(e=this.positionInside(s,i),r=this.positionInside(s+t.word.length,i))}else t.start?e={column:t.start.column,line:t.start.line}:t.index&&(e=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line}:"number"==typeof t.endIndex?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<e.line||r.line===e.line&&r.column<=e.column)&&(r={column:e.column+1,line:e.line}),{end:r,start:e}}raw(t,e){return(new nv).raw(this,t,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(){if(this.parent){for(var t=this,e=!1,r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(var n of i)n===this?e=!0:e?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);e||this.remove()}return this}root(){for(var t=this;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){var r={},i=null==e;e=e||new Map;var s=0;for(var n in this)if(Object.prototype.hasOwnProperty.call(this,n)&&"parent"!==n&&"proxyCache"!==n){var o=this[n];if(Array.isArray(o))r[n]=o.map(t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t);else if("object"==typeof o&&o.toJSON)r[n]=o.toJSON(null,e);else if("source"===n){var a=e.get(o.input);null==a&&(a=s,e.set(o.input,s),s++),r[n]={end:o.end,inputId:a,start:o.start}}else r[n]=o}return i&&(r.inputs=[...e.keys()].map(t=>t.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t){void 0===t&&(t=ov),t.stringify&&(t=t.stringify);var e="";return t(this,t=>{e+=t}),e}warn(t,e,r){var i={node:this};for(var s in r)i[s]=r[s];return t.warn(e,i)}get proxyOf(){return this}},uv=hv;hv.default=hv;var lv=uv,cv=class extends lv{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t=r({},t,{value:String(t.value)})),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}},fv=cv;cv.default=cv;var dv={nanoid:function(t){void 0===t&&(t=21);for(var e="",r=t;r--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e}},{SourceMapConsumer:vv,SourceMapGenerator:pv}=Gd,{existsSync:mv,readFileSync:gv}=Gd,{dirname:wv,join:yv}=Gd;var bv=class{constructor(t,e){if(!1!==e.map){this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,i=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=wv(this.mapFile)),i&&(this.text=i)}}consumer(){return this.consumerCache||(this.consumerCache=new vv(this.text)),this.consumerCache}decodeInline(t){var e;if(/^data:application\/json;charset=utf-?8,/.test(t)||/^data:application\/json,/.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(t)||/^data:application\/json;base64,/.test(t))return e=t.substr(RegExp.lastMatch.length),Buffer?Buffer.from(e,"base64").toString():window.atob(e);var r=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){var e=t.match(/\/\*\s*# sourceMappingURL=/gm);if(e){var r=t.lastIndexOf(e.pop()),i=t.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,i)))}}loadFile(t){if(this.root=wv(t),mv(t))return this.mapFile=t,gv(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof vv)return pv.fromSourceMap(e).toString();if(e instanceof pv)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}var r=e(t);if(r){var i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var s=this.annotation;return t&&(s=yv(wv(t),s)),this.loadFile(s)}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},Sv=bv;bv.default=bv;var{SourceMapConsumer:Cv,SourceMapGenerator:Iv}=Gd,{fileURLToPath:kv,pathToFileURL:Av}=Gd,{isAbsolute:Rv,resolve:xv}=Gd,{nanoid:Mv}=dv,Ev=Gd,Ov=Xd,Tv=Sv,Nv=Symbol("fromOffsetCache"),Bv=Boolean(Cv&&Iv),_v=Boolean(xv&&Rv),jv=class{constructor(t,e){if(void 0===e&&(e={}),null==t||"object"==typeof t&&!t.toString)throw new Error("PostCSS received "+t+" instead of CSS string");if(this.css=t.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!_v||/^\w+:\/\//.test(e.from)||Rv(e.from)?this.file=e.from:this.file=xv(e.from)),_v&&Bv){var r=new Tv(this.css,e);if(r.text){this.map=r;var i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Mv(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,r,i){var s,n,o;if(void 0===i&&(i={}),e&&"object"==typeof e){var a=e,h=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);e=u.line,r=u.col}else e=a.line,r=a.column;if("number"==typeof h.offset){var l=this.fromOffset(h.offset);n=l.line,o=l.col}else n=h.line,o=h.column}else if(!r){var c=this.fromOffset(e);e=c.line,r=c.col}var f=this.origin(e,r,n,o);return(s=f?new Ov(t,void 0===f.endLine?f.line:{column:f.column,line:f.line},void 0===f.endLine?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,i.plugin):new Ov(t,void 0===n?e:{column:r,line:e},void 0===n?r:{column:o,line:n},this.css,this.file,i.plugin)).input={column:r,endColumn:o,endLine:n,line:e,source:this.css},this.file&&(Av&&(s.input.url=Av(this.file).toString()),s.input.file=this.file),s}fromOffset(t){var e;if(this[Nv])e=this[Nv];else{var r=this.css.split("\n");e=new Array(r.length);for(var i=0,s=0,n=r.length;s<n;s++)e[s]=i,i+=r[s].length+1;this[Nv]=e}var o=0;if(t>=e[e.length-1])o=e.length-1;else for(var a,h=e.length-2;o<h;)if(t<e[a=o+(h-o>>1)])h=a-1;else{if(!(t>=e[a+1])){o=a;break}o=a+1}return{col:t-e[o]+1,line:o+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:xv(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,e,r,i){if(!this.map)return!1;var s,n,o=this.map.consumer(),a=o.originalPositionFor({column:e,line:t});if(!a.source)return!1;"number"==typeof r&&(s=o.originalPositionFor({column:i,line:r})),n=Rv(a.source)?Av(a.source):new URL(a.source,this.map.consumer().sourceRoot||Av(this.map.mapFile));var h={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:n.toString()};if("file:"===n.protocol){if(!kv)throw new Error("file: protocol is not available in this PostCSS build");h.file=kv(n)}var u=o.sourceContentFor(a.source);return u&&(h.source=u),h}toJSON(){var t={};for(var e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map=r({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}},Fv=jv;jv.default=jv,Ev&&Ev.registerInput&&Ev.registerInput(jv);var{SourceMapConsumer:Lv,SourceMapGenerator:Pv}=Gd,{dirname:Dv,relative:Uv,resolve:Zv,sep:Yv}=Gd,{pathToFileURL:Wv}=Gd,Gv=Fv,Vv=Boolean(Lv&&Pv),zv=Boolean(Dv&&Zv&&Uv&&Yv),Jv=class{constructor(t,e,r,i){this.stringify=t,this.mapOpts=r.map||{},this.root=e,this.opts=r,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(){var t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(var t of this.previous()){var e=this.toUrl(this.path(t.file)),r=t.root||Dv(t.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new Lv(t.text)).sourcesContent&&(i.sourcesContent=null):i=t.consumer(),this.map.applySourceMap(i,e,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root)for(var t,e=this.root.nodes.length-1;e>=0;e--)"comment"===(t=this.root.nodes[e]).type&&0===t.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(e);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),zv&&Vv&&this.isMap())return this.generateMap();var t="";return this.stringify(this.root,e=>{t+=e}),[t]}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){var t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Pv.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new Pv({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Pv({file:this.outputFile(),ignoreInvalidMapping:!0});var t,e,r=1,i=1,s="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,h)=>{if(this.css+=o,a&&"end"!==h&&(n.generated.line=r,n.generated.column=i-1,a.source&&a.source.start?(n.source=this.sourcePath(a),n.original.line=a.source.start.line,n.original.column=a.source.start.column-1,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,this.map.addMapping(n))),(t=o.match(/\n/g))?(r+=t.length,e=o.lastIndexOf("\n"),i=o.length-e):i+=o.length,a&&"start"!==h){var u=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===u.last&&!u.raws.semicolon||(a.source&&a.source.end?(n.source=this.sourcePath(a),n.original.line=a.source.end.line,n.original.column=a.source.end.column-1,n.generated.line=r,n.generated.column=i-2,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,n.generated.line=r,n.generated.column=i-1,this.map.addMapping(n)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(t=>t.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some(t=>t.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(t=>t.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute)return t;if(60===t.charCodeAt(0))return t;if(/^\w+:\/\//.test(t))return t;var e=this.memoizedPaths.get(t);if(e)return e;var r=this.opts.to?Dv(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Dv(Zv(r,this.mapOpts.annotation)));var i=Uv(r,t);return this.memoizedPaths.set(t,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){var e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}});else{var t=new Gv(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){var t={};if(this.root)this.root.walk(e=>{if(e.source){var r=e.source.input.from;if(r&&!t[r]){t[r]=!0;var i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,e.source.input.css)}}});else if(this.css){var e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){var e=this.memoizedFileURLs.get(t);if(e)return e;if(Wv){var r=Wv(t).toString();return this.memoizedFileURLs.set(t,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){var e=this.memoizedURLs.get(t);if(e)return e;"\\"===Yv&&(t=t.replace(/\\/g,"/"));var r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}},Xv=uv,Kv=class extends Xv{constructor(t){super(t),this.type="comment"}},$v=Kv;Kv.default=Kv;var Hv,qv,Qv,tp,{isClean:ep,my:rp}=Kd,ip=fv,sp=$v,np=uv;function op(t){return t.map(t=>(t.nodes&&(t.nodes=op(t.nodes)),delete t.source,t))}function ap(t){if(t[ep]=!1,t.proxyOf.nodes)for(var e of t.proxyOf.nodes)ap(e)}var hp=class t extends np{append(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i of e){var s=this.normalize(i,this.last);for(var n of s)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(var e of this.nodes)e.cleanRaws(t)}each(t){if(this.proxyOf.nodes){for(var e,r,i=this.getIterator();this.indexes[i]<this.proxyOf.nodes.length&&(e=this.indexes[i],!1!==(r=t(this.proxyOf.nodes[e],e)));)this.indexes[i]+=1;return delete this.indexes[i],r}}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return t[e](...i.map(t=>"function"==typeof t?(e,r)=>t(e.toProxy(),r):t))}:"every"===e||"some"===e?r=>t[e](function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];return r(t.toProxy(),...i)}):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map(t=>t.toProxy()):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){var r,i=this.index(t),s=this.normalize(e,this.proxyOf.nodes[i]).reverse();for(var n of(i=this.index(t),s))this.proxyOf.nodes.splice(i+1,0,n);for(var o in this.indexes)i<(r=this.indexes[o])&&(this.indexes[o]=r+s.length);return this.markDirty(),this}insertBefore(t,e){var r,i=this.index(t),s=0===i&&"prepend",n=this.normalize(e,this.proxyOf.nodes[i],s).reverse();for(var o of(i=this.index(t),n))this.proxyOf.nodes.splice(i,0,o);for(var a in this.indexes)i<=(r=this.indexes[a])&&(this.indexes[a]=r+n.length);return this.markDirty(),this}normalize(e,r){if("string"==typeof e)e=op(Hv(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i of e=e.slice(0))i.parent&&i.parent.removeChild(i,"ignore");else if("root"===e.type&&"document"!==this.type)for(var s of e=e.nodes.slice(0))s.parent&&s.parent.removeChild(s,"ignore");else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new ip(e)]}else if(e.selector)e=[new qv(e)];else if(e.name)e=[new Qv(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new sp(e)]}var n=e.map(e=>(e[rp]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[ep]&&ap(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e));return n}prepend(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i of e=e.reverse()){var s=this.normalize(i,this.first,"prepend").reverse();for(var n of s)this.proxyOf.nodes.unshift(n);for(var o in this.indexes)this.indexes[o]=this.indexes[o]+s.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(var t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){var e;for(var r in t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1),this.indexes)(e=this.indexes[r])>=t&&(this.indexes[r]=e-1);return this.markDirty(),this}replaceValues(t,e,r){return r||(r=e,e={}),this.walkDecls(i=>{e.props&&!e.props.includes(i.prop)||e.fast&&!i.value.includes(e.fast)||(i.value=i.value.replace(t,r))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((e,r)=>{var i;try{i=t(e,r)}catch(t){throw e.addToError(t)}return!1!==i&&e.walk&&(i=e.walk(t)),i})}walkAtRules(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("atrule"===r.type&&t.test(r.name))return e(r,i)}):this.walk((r,i)=>{if("atrule"===r.type&&r.name===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("atrule"===t.type)return e(t,r)}))}walkComments(t){return this.walk((e,r)=>{if("comment"===e.type)return t(e,r)})}walkDecls(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("decl"===r.type&&t.test(r.prop))return e(r,i)}):this.walk((r,i)=>{if("decl"===r.type&&r.prop===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("decl"===t.type)return e(t,r)}))}walkRules(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("rule"===r.type&&t.test(r.selector))return e(r,i)}):this.walk((r,i)=>{if("rule"===r.type&&r.selector===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("rule"===t.type)return e(t,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};hp.registerParse=t=>{Hv=t},hp.registerRule=t=>{qv=t},hp.registerAtRule=t=>{Qv=t},hp.registerRoot=t=>{tp=t};var up=hp;hp.default=hp,hp.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,Qv.prototype):"rule"===t.type?Object.setPrototypeOf(t,qv.prototype):"decl"===t.type?Object.setPrototypeOf(t,ip.prototype):"comment"===t.type?Object.setPrototypeOf(t,sp.prototype):"root"===t.type&&Object.setPrototypeOf(t,tp.prototype),t[rp]=!0,t.nodes&&t.nodes.forEach(t=>{hp.rebuild(t)})};var lp,cp,fp=up,dp=class extends fp{constructor(t){super(r({type:"document"},t)),this.nodes||(this.nodes=[])}toResult(t){return void 0===t&&(t={}),new lp(new cp,this,t).stringify()}};dp.registerLazyResult=t=>{lp=t},dp.registerProcessor=t=>{cp=t};var vp=dp;dp.default=dp;var pp={},mp=function(t){pp[t]||(pp[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))},gp=class{constructor(t,e){if(void 0===e&&(e={}),this.type="warning",this.text=t,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var i in e)this[i]=e[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}},wp=gp;gp.default=gp;var yp=wp,bp=class{constructor(t,e,r){this.processor=t,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,e){void 0===e&&(e={}),e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);var r=new yp(t,e);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>"warning"===t.type)}get content(){return this.css}},Sp=bp;bp.default=bp;var Cp="'".charCodeAt(0),Ip='"'.charCodeAt(0),kp="\\".charCodeAt(0),Ap="/".charCodeAt(0),Rp="\n".charCodeAt(0),xp=" ".charCodeAt(0),Mp="\f".charCodeAt(0),Ep="\t".charCodeAt(0),Op="\r".charCodeAt(0),Tp="[".charCodeAt(0),Np="]".charCodeAt(0),Bp="(".charCodeAt(0),_p=")".charCodeAt(0),jp="{".charCodeAt(0),Fp="}".charCodeAt(0),Lp=";".charCodeAt(0),Pp="*".charCodeAt(0),Dp=":".charCodeAt(0),Up="@".charCodeAt(0),Zp=/[\t\n\f\r "#'()/;[\\\]{}]/g,Yp=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Wp=/.[\r\n"'(/\\]/,Gp=/[\da-f]/i,Vp=up,zp=class extends Vp{constructor(t){super(t),this.type="atrule"}append(){return this.proxyOf.nodes||(this.nodes=[]),super.append(...arguments)}prepend(){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...arguments)}},Jp=zp;zp.default=zp,Vp.registerAtRule(zp);var Xp,Kp,$p=up,Hp=class extends $p{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,r){var i=super.normalize(t);if(e)if("prepend"===r)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(var s of i)s.raws.before=e.raws.before;return i}removeChild(t,e){var r=this.index(t);return!e&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t){return void 0===t&&(t={}),new Xp(new Kp,this,t).stringify()}};Hp.registerLazyResult=t=>{Xp=t},Hp.registerProcessor=t=>{Kp=t};var qp=Hp;Hp.default=Hp,$p.registerRoot(Hp);var Qp={comma:t=>Qp.split(t,[","],!0),space:t=>Qp.split(t,[" ","\n","\t"]),split(t,e,r){var i=[],s="",n=!1,o=0,a=!1,h="",u=!1;for(var l of t)u?u=!1:"\\"===l?u=!0:a?l===h&&(a=!1):'"'===l||"'"===l?(a=!0,h=l):"("===l?o+=1:")"===l?o>0&&(o-=1):0===o&&e.includes(l)&&(n=!0),n?(""!==s&&i.push(s.trim()),s="",n=!1):s+=l;return(r||""!==s)&&i.push(s.trim()),i}},tm=Qp;Qp.default=Qp;var em=up,rm=tm,im=class extends em{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return rm.comma(this.selector)}set selectors(t){var e=this.selector?this.selector.match(/,\s*/):null,r=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}},sm=im;im.default=im,em.registerRule(im);var nm=fv,om=function(t,e){void 0===e&&(e={});var r,i,s,n,o,a,h,u,l,c,f=t.css.valueOf(),d=e.ignoreErrors,v=f.length,p=0,m=[],g=[];function w(e){throw t.error("Unclosed "+e,p)}return{back:function(t){g.push(t)},endOfFile:function(){return 0===g.length&&p>=v},nextToken:function(t){if(g.length)return g.pop();if(!(p>=v)){var e=!!t&&t.ignoreUnclosed;switch(r=f.charCodeAt(p)){case Rp:case xp:case Ep:case Op:case Mp:i=p;do{i+=1,r=f.charCodeAt(i)}while(r===xp||r===Rp||r===Ep||r===Op||r===Mp);c=["space",f.slice(p,i)],p=i-1;break;case Tp:case Np:case jp:case Fp:case Dp:case Lp:case _p:var y=String.fromCharCode(r);c=[y,y,p];break;case Bp:if(u=m.length?m.pop()[1]:"",l=f.charCodeAt(p+1),"url"===u&&l!==Cp&&l!==Ip&&l!==xp&&l!==Rp&&l!==Ep&&l!==Mp&&l!==Op){i=p;do{if(a=!1,-1===(i=f.indexOf(")",i+1))){if(d||e){i=p;break}w("bracket")}for(h=i;f.charCodeAt(h-1)===kp;)h-=1,a=!a}while(a);c=["brackets",f.slice(p,i+1),p,i],p=i}else i=f.indexOf(")",p+1),n=f.slice(p,i+1),-1===i||Wp.test(n)?c=["(","(",p]:(c=["brackets",n,p,i],p=i);break;case Cp:case Ip:s=r===Cp?"'":'"',i=p;do{if(a=!1,-1===(i=f.indexOf(s,i+1))){if(d||e){i=p+1;break}w("string")}for(h=i;f.charCodeAt(h-1)===kp;)h-=1,a=!a}while(a);c=["string",f.slice(p,i+1),p,i],p=i;break;case Up:Zp.lastIndex=p+1,Zp.test(f),i=0===Zp.lastIndex?f.length-1:Zp.lastIndex-2,c=["at-word",f.slice(p,i+1),p,i],p=i;break;case kp:for(i=p,o=!0;f.charCodeAt(i+1)===kp;)i+=1,o=!o;if(r=f.charCodeAt(i+1),o&&r!==Ap&&r!==xp&&r!==Rp&&r!==Ep&&r!==Op&&r!==Mp&&(i+=1,Gp.test(f.charAt(i)))){for(;Gp.test(f.charAt(i+1));)i+=1;f.charCodeAt(i+1)===xp&&(i+=1)}c=["word",f.slice(p,i+1),p,i],p=i;break;default:r===Ap&&f.charCodeAt(p+1)===Pp?(0===(i=f.indexOf("*/",p+2)+1)&&(d||e?i=f.length:w("comment")),c=["comment",f.slice(p,i+1),p,i],p=i):(Yp.lastIndex=p+1,Yp.test(f),i=0===Yp.lastIndex?f.length-1:Yp.lastIndex-2,c=["word",f.slice(p,i+1),p,i],m.push(c),p=i)}return p++,c}},position:function(){return p}}},am=$v,hm=Jp,um=qp,lm=sm,cm={empty:!0,space:!0};var fm=class{constructor(t){this.input=t,this.root=new um,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){var e,r,i,s=new hm;s.name=t[1].slice(1),""===s.name&&this.unnamedAtrule(s,t),this.init(s,t[2]);for(var n=!1,o=!1,a=[],h=[];!this.tokenizer.endOfFile();){if("("===(e=(t=this.tokenizer.nextToken())[0])||"["===e?h.push("("===e?")":"]"):"{"===e&&h.length>0?h.push("}"):e===h[h.length-1]&&h.pop(),0===h.length){if(";"===e){s.source.end=this.getPosition(t[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===e){o=!0;break}if("}"===e){if(a.length>0){for(r=a[i=a.length-1];r&&"space"===r[0];)r=a[--i];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(t);break}a.push(t)}else a.push(t);if(this.tokenizer.endOfFile()){n=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),n&&(t=a[a.length-1],s.source.end=this.getPosition(t[3]||t[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(t){var e=this.colon(t);if(!1!==e){for(var r,i=0,s=e-1;s>=0&&("space"===(r=t[s])[0]||2!==(i+=1));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}}colon(t){var e,r,i,s=0;for(var[n,o]of t.entries()){if("("===(r=(e=o)[0])&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(i){if("word"===i[0]&&"progid"===i[1])continue;return n}this.doubleColon(e)}i=e}return!1}comment(t){var e=new am;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;var r=t[1].slice(2,-2);if(/^\s*$/.test(r))e.text="",e.raws.left=r,e.raws.right="";else{var i=r.match(/^(\s*)([^]*\S)(\s*)$/);e.text=i[2],e.raws.left=i[1],e.raws.right=i[3]}}createTokenizer(){this.tokenizer=om(this.input)}decl(t,e){var r=new nm;this.init(r,t[0][2]);var i,s=t[t.length-1];for(";"===s[0]&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(s[3]||s[2]||function(t){for(var e=t.length-1;e>=0;e--){var r=t[e],i=r[3]||r[2];if(i)return i}}(t)),r.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){var n=t[0][0];if(":"===n||"space"===n||"comment"===n)break;r.prop+=t.shift()[1]}for(r.raws.between="";t.length;){if(":"===(i=t.shift())[0]){r.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var o,a=[];t.length&&("space"===(o=t[0][0])||"comment"===o);)a.push(t.shift());this.precheckMissedSemicolon(t);for(var h=t.length-1;h>=0;h--){if("!important"===(i=t[h])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(t,h);" !important"!==(u=this.spacesFromEnd(t)+u)&&(r.raws.important=u);break}if("important"===i[1].toLowerCase()){for(var l=t.slice(0),c="",f=h;f>0;f--){var d=l[f][0];if(0===c.trim().indexOf("!")&&"space"!==d)break;c=l.pop()[1]+c}0===c.trim().indexOf("!")&&(r.important=!0,r.raws.important=c,t=l)}if("space"!==i[0]&&"comment"!==i[0])break}var v=t.some(t=>"space"!==t[0]&&"comment"!==t[0]);v&&(r.raws.between+=a.map(t=>t[1]).join(""),a=[]),this.raw(r,"value",a.concat(t),e),r.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){var e=new lm;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){var e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){var e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){for(var e=!1,r=null,i=!1,s=null,n=[],o=t[1].startsWith("--"),a=[],h=t;h;){if(r=h[0],a.push(h),"("===r||"["===r)s||(s=h),n.push("("===r?")":"]");else if(o&&i&&"{"===r)s||(s=h),n.push("}");else if(0===n.length){if(";"===r){if(i)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),e=!0;break}":"===r&&(i=!0)}else r===n[n.length-1]&&(n.pop(),0===n.length&&(s=null));h=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),n.length>0&&this.unclosedBracket(s),e&&i){if(!o)for(;a.length&&("space"===(h=a[a.length-1][0])||"comment"===h);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){for(var t;!this.tokenizer.endOfFile();)switch((t=this.tokenizer.nextToken())[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,r,i){for(var s,n,o,a,h=r.length,u="",l=!0,c=0;c<h;c+=1)"space"!==(n=(s=r[c])[0])||c!==h-1||i?"comment"===n?(a=r[c-1]?r[c-1][0]:"empty",o=r[c+1]?r[c+1][0]:"empty",cm[a]||cm[o]||","===u.slice(-1)?l=!1:u+=s[1]):u+=s[1]:l=!1;if(!l){var f=r.reduce((t,e)=>t+e[1],"");t.raws[e]={raw:f,value:u}}t[e]=u}rule(t){t.pop();var e=new lm;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){for(var e,r="";t.length&&("space"===(e=t[t.length-1][0])||"comment"===e);)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){for(var e,r="";t.length&&("space"===(e=t[0][0])||"comment"===e);)r+=t.shift()[1];return r}spacesFromEnd(t){for(var e="";t.length&&"space"===t[t.length-1][0];)e=t.pop()[1]+e;return e}stringFrom(t,e){for(var r="",i=e;i<t.length;i++)r+=t[i][1];return t.splice(e,t.length-e),r}unclosedBlock(){var t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}},dm=up,vm=fm,pm=Fv;function mm(t,e){var r=new pm(t,e),i=new vm(r);try{i.parse()}catch(t){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===t.name&&e&&e.from&&(/\.scss$/i.test(e.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(e.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(e.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return i.root}var gm=mm;mm.default=mm,dm.registerParse(mm);var{isClean:wm,my:ym}=Kd,bm=Jv,Sm=ev,Cm=up,Im=vp,km=mp,Am=Sp,Rm=gm,xm=qp,Mm={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Em={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Om={Once:!0,postcssPlugin:!0,prepare:!0};function Tm(t){return"object"==typeof t&&"function"==typeof t.then}function Nm(t){var e=!1,r=Mm[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,0,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function Bm(t){return{eventIndex:0,events:"document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:Nm(t),iterator:0,node:t,visitorIndex:0,visitors:[]}}function _m(t){return t[wm]=!1,t.nodes&&t.nodes.forEach(t=>_m(t)),t}var jm={},Fm=class t{constructor(e,i,s){var n;if(this.stringified=!1,this.processed=!1,"object"!=typeof i||null===i||"root"!==i.type&&"document"!==i.type)if(i instanceof t||i instanceof Am)n=_m(i.root),i.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=i.map);else{var o=Rm;s.syntax&&(o=s.syntax.parse),s.parser&&(o=s.parser),o.parse&&(o=o.parse);try{n=o(i,s)}catch(t){this.processed=!0,this.error=t}n&&!n[ym]&&Cm.rebuild(n)}else n=_m(i);this.result=new Am(e,n,s),this.helpers=r({},jm,{postcss:jm,result:this.result}),this.plugins=this.processor.plugins.map(t=>"object"==typeof t&&t.prepare?r({},t,t.prepare(this.result)):t)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){var r=this.result.lastPlugin;try{if(e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var i=r.postcssPlugin,s=r.postcssVersion,n=this.result.processor.version,o=s.split("."),a=n.split(".");(o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+i+" uses "+s+". Perhaps this is the source of the error below.")}}else t.plugin=r.postcssPlugin,t.setMessage()}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};var t=(t,e,r)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,r])};for(var e of this.plugins)if("object"==typeof e)for(var r in e){if(!Em[r]&&/^[A-Z]/.test(r))throw new Error("Unknown event "+r+" in "+e.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Om[r])if("object"==typeof e[r])for(var i in e[r])t(e,"*"===i?r:r+"-"+i.toLowerCase(),e[r][i]);else"function"==typeof e[r]&&t(e,r,e[r])}this.hasListener=Object.keys(this.listeners).length>0}runAsync(){var t=this;return e(function*(){t.plugin=0;for(var e=0;e<t.plugins.length;e++){var r=t.plugins[e],i=t.runOnRoot(r);if(Tm(i))try{yield i}catch(e){throw t.handleError(e)}}if(t.prepareVisitors(),t.hasListener){for(var s=t.result.root;!s[wm];){s[wm]=!0;for(var n=[Bm(s)];n.length>0;){var o=t.visitTick(n);if(Tm(o))try{yield o}catch(e){var a=n[n.length-1].node;throw t.handleError(e,a)}}}if(t.listeners.OnceExit){var h=function*(e){t.result.lastPlugin=u;try{if("document"===s.type){var r=s.nodes.map(r=>e(r,t.helpers));yield Promise.all(r)}else yield e(s,t.helpers)}catch(e){throw t.handleError(e)}};for(var[u,l]of t.listeners.OnceExit)yield*h(l)}}return t.processed=!0,t.stringify()})()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){var e=this.result.root.nodes.map(e=>t.Once(e,this.helpers));return Tm(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var t=this.result.opts,e=Sm;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);var r=new bm(e,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var t of this.plugins){if(Tm(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var e=this.result.root;!e[wm];)e[wm]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(var r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this.opts||km("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}toString(){return this.css}visitSync(t,e){for(var[r,i]of t){this.result.lastPlugin=r;var s=void 0;try{s=i(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(Tm(s))throw this.getAsyncError()}}visitTick(t){var e=t[t.length-1],{node:r,visitors:i}=e;if("root"===r.type||"document"===r.type||r.parent){if(i.length>0&&e.visitorIndex<i.length){var[s,n]=i[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===i.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=s;try{return n(r.toProxy(),this.helpers)}catch(t){throw this.handleError(t,r)}}if(0!==e.iterator){for(var o,a=e.iterator;o=r.nodes[r.indexes[a]];)if(r.indexes[a]+=1,!o[wm])return o[wm]=!0,void t.push(Bm(o));e.iterator=0,delete r.indexes[a]}for(var h=e.events;e.eventIndex<h.length;){var u=h[e.eventIndex];if(e.eventIndex+=1,0===u)return void(r.nodes&&r.nodes.length&&(r[wm]=!0,e.iterator=r.getIterator()));if(this.listeners[u])return void(e.visitors=this.listeners[u])}t.pop()}else t.pop()}walkSync(t){t[wm]=!0;var e=Nm(t);for(var r of e)if(0===r)t.nodes&&t.each(t=>{t[wm]||this.walkSync(t)});else{var i=this.listeners[r];if(i&&this.visitSync(i,t.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"}};Fm.registerPostcss=t=>{jm=t};var Lm=Fm;Fm.default=Fm,xm.registerLazyResult(Fm),Im.registerLazyResult(Fm);var Pm=Jv,Dm=ev,Um=mp,Zm=gm,Ym=Sp,Wm=class{constructor(t,e,r){var i;e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=r,this._map=void 0;var s=Dm;this.result=new Ym(this._processor,i,this._opts),this.result.css=e;var n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});var o=new Pm(s,i,this._opts,e);if(o.isMap()){var[a,h]=o.generate();a&&(this.result.css=a),h&&(this.result.map=h)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this._opts||Um("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}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;var t,e=Zm;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}},Gm=Wm;Wm.default=Wm;var Vm=Gm,zm=Lm,Jm=vp,Xm=qp,Km=class{constructor(t){void 0===t&&(t=[]),this.version="8.4.38",this.plugins=this.normalize(t)}normalize(t){var e=[];for(var r of t)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))e=e.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)e.push(r);else if("function"==typeof r)e.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return e}process(t,e){return void 0===e&&(e={}),this.plugins.length||e.parser||e.stringifier||e.syntax?new zm(this,t,e):new Vm(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}},$m=Km;Km.default=Km,Xm.registerProcessor(Km),Jm.registerProcessor(Km);var Hm=fv,qm=Sv,Qm=$v,tg=Jp,eg=Fv,rg=qp,ig=sm;function sg(t,e){if(Array.isArray(t))return t.map(t=>sg(t));var{inputs:s}=t,n=i(t,xu);if(s)for(var o of(e=[],s)){var a=r({},o,{__proto__:eg.prototype});a.map&&(a.map=r({},a.map,{__proto__:qm.prototype})),e.push(a)}if(n.nodes&&(n.nodes=t.nodes.map(t=>sg(t,e))),n.source){var h=n.source,{inputId:u}=h,l=i(h,Mu);n.source=l,null!=u&&(n.source.input=e[u])}if("root"===n.type)return new rg(n);if("decl"===n.type)return new Hm(n);if("rule"===n.type)return new ig(n);if("comment"===n.type)return new Qm(n);if("atrule"===n.type)return new tg(n);throw new Error("Unknown node type: "+t.type)}var ng=sg;sg.default=sg;var og=Xd,ag=fv,hg=Lm,ug=up,lg=$m,cg=ev,fg=ng,dg=vp,vg=wp,pg=$v,mg=Jp,gg=Sp,wg=Fv,yg=gm,bg=tm,Sg=sm,Cg=qp,Ig=uv;function kg(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new lg(e)}kg.plugin=function(t,e){var r,i=!1;function s(){console&&console.warn&&!i&&(i=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var r=e(...arguments);return r.postcssPlugin=t,r.postcssVersion=(new lg).version,r}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(t,e,r){return kg([s(r)]).process(t,e)},s},kg.stringify=cg,kg.parse=yg,kg.fromJSON=fg,kg.list=bg,kg.comment=t=>new pg(t),kg.atRule=t=>new mg(t),kg.decl=t=>new ag(t),kg.rule=t=>new Sg(t),kg.root=t=>new Cg(t),kg.document=t=>new dg(t),kg.CssSyntaxError=og,kg.Declaration=ag,kg.Container=ug,kg.Processor=lg,kg.Document=dg,kg.Comment=pg,kg.Warning=vg,kg.AtRule=mg,kg.Result=gg,kg.Input=wg,kg.Rule=Sg,kg.Root=Cg,kg.Node=Ig,hg.registerPostcss(kg);var Ag=kg;kg.default=kg;var Rg=Pd(Ag);Rg.stringify,Rg.fromJSON,Rg.plugin,Rg.parse,Rg.list,Rg.document,Rg.comment,Rg.atRule,Rg.rule,Rg.decl,Rg.root,Rg.CssSyntaxError,Rg.Declaration,Rg.Container,Rg.Processor,Rg.Document,Rg.Comment,Rg.Warning,Rg.AtRule,Rg.Result,Rg.Input,Rg.Rule,Rg.Root,Rg.Node;class xg{constructor(){Ld(this,"parentElement",null),Ld(this,"parentNode",null),Ld(this,"ownerDocument"),Ld(this,"firstChild",null),Ld(this,"lastChild",null),Ld(this,"previousSibling",null),Ld(this,"nextSibling",null),Ld(this,"ELEMENT_NODE",1),Ld(this,"TEXT_NODE",3),Ld(this,"nodeType"),Ld(this,"nodeName"),Ld(this,"RRNodeType")}get childNodes(){for(var t=[],e=this.firstChild;e;)t.push(e),e=e.nextSibling;return t}contains(t){if(!(t instanceof xg))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,e){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}var Mg={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Eg={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Og={};function Tg(t){if(Og[t])return Og[t];var e=globalThis[t],r=e.prototype,i=t in Mg?Mg[t]:void 0,s=Boolean(i&&i.every(t=>{var e,i;return Boolean(null==(i=null==(e=Object.getOwnPropertyDescriptor(r,t))?void 0:e.get)?void 0:i.toString().includes("[native code]"))})),n=t in Eg?Eg[t]:void 0,o=Boolean(n&&n.every(t=>{var e;return"function"==typeof r[t]&&(null==(e=r[t])?void 0:e.toString().includes("[native code]"))}));if(s&&o)return Og[t]=e.prototype,e.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var h=a.contentWindow;if(!h)return e.prototype;var u=h[t].prototype;return document.body.removeChild(a),u?Og[t]=u:r}catch(t){return r}}var Ng={};function Bg(t,e,r){var i,s=t+"."+String(r);if(Ng[s])return Ng[s].call(e);var n=Tg(t),o=null==(i=Object.getOwnPropertyDescriptor(n,r))?void 0:i.get;return o?(Ng[s]=o,o.call(e)):e[r]}var _g={};function jg(t,e,r){var i=t+"."+String(r);if(_g[i])return _g[i].bind(e);var s=Tg(t)[r];return"function"!=typeof s?e[r]:(_g[i]=s,s.bind(e))}var Fg={childNodes:function(t){return Bg("Node",t,"childNodes")},parentNode:function(t){return Bg("Node",t,"parentNode")},parentElement:function(t){return Bg("Node",t,"parentElement")},textContent:function(t){return Bg("Node",t,"textContent")},contains:function(t,e){return jg("Node",t,"contains")(e)},getRootNode:function(t){return jg("Node",t,"getRootNode")()},host:function(t){return t&&"host"in t?Bg("ShadowRoot",t,"host"):null},styleSheets:function(t){return t.styleSheets},shadowRoot:function(t){return t&&"shadowRoot"in t?Bg("Element",t,"shadowRoot"):null},querySelector:function(t,e){return Bg("Element",t,"querySelector")(e)},querySelectorAll:function(t,e){return Bg("Element",t,"querySelectorAll")(e)},mutationObserver:function(){return Tg("MutationObserver").constructor}};var Lg="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",Pg={map:{},getId:()=>(console.error(Lg),-1),getNode:()=>(console.error(Lg),null),removeNodeFromMap(){console.error(Lg)},has:()=>(console.error(Lg),!1),reset(){console.error(Lg)}};"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Pg=new Proxy(Pg,{get:(t,e,r)=>("map"===e&&console.error(Lg),Reflect.get(t,e,r))}));var Dg=Date.now;function Ug(t){return t?t.nodeType===t.ELEMENT_NODE?t:Fg.parentElement(t):null}/[1-9][0-9]{12}/.test(Date.now().toString())||(Dg=()=>(new Date).getTime());function Zg(t){var e,r=null;return"getRootNode"in t&&(null==(e=Fg.getRootNode(t))?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Fg.host(Fg.getRootNode(t))&&(r=Fg.host(Fg.getRootNode(t))),r}function Yg(t){for(var e,r=t;e=Zg(r);)r=e;return r}function Wg(t){var e=t.ownerDocument;if(!e)return!1;var r=Yg(t);return Fg.contains(e,r)}for(var Gg=Object.freeze(Object.defineProperty({__proto__:null,StyleSheetMirror:class{constructor(){Nu(this,"id",1),Nu(this,"styleIDMap",new WeakMap),Nu(this,"idStyleMap",new Map)}getId(t){var e;return null!==(e=this.styleIDMap.get(t))&&void 0!==e?e:-1}has(t){return this.styleIDMap.has(t)}add(t,e){return this.has(t)?this.getId(t):(r=void 0===e?this.id++:e,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r);var r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}},get _mirror(){return Pg},closestElementOfNode:Ug,getBaseDimension:function t(e,r){var i,s,n=null==(s=null==(i=e.ownerDocument)?void 0:i.defaultView)?void 0:s.frameElement;if(!n||n===r)return{x:0,y:0,relativeScale:1,absoluteScale:1};var o=n.getBoundingClientRect(),a=t(n,r),h=o.height/n.clientHeight;return{x:o.x*a.relativeScale+a.x,y:o.y*a.relativeScale+a.y,relativeScale:h,absoluteScale:a.absoluteScale*h}},getNestedRule:function t(e,r){var i=e[r[0]];return 1===r.length?i:t(i.cssRules[r[1]].cssRules,r.slice(2))},getPositionsAndIndex:function(t){var e=[...t],r=e.pop();return{positions:e,index:r}},getRootShadowHost:Yg,getShadowHost:Zg,getWindowHeight:function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight},getWindowScroll:function(t){var e,r,i,s,n=t.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:void 0!==t.pageXOffset?t.pageXOffset:n.documentElement.scrollLeft||(null==n?void 0:n.body)&&(null==(e=Fg.parentElement(n.body))?void 0:e.scrollLeft)||(null==(r=null==n?void 0:n.body)?void 0:r.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:void 0!==t.pageYOffset?t.pageYOffset:(null==n?void 0:n.documentElement.scrollTop)||(null==n?void 0:n.body)&&(null==(i=Fg.parentElement(n.body))?void 0:i.scrollTop)||(null==(s=null==n?void 0:n.body)?void 0:s.scrollTop)||0}},getWindowWidth:function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth},hasShadowRoot:function(t){return!!t&&(t instanceof xg&&"shadowRoot"in t?Boolean(t.shadowRoot):Boolean(Fg.shadowRoot(t)))},hookSetter:function t(e,r,i,s,n){void 0===n&&(n=window);var o=n.Object.getOwnPropertyDescriptor(e,r);return n.Object.defineProperty(e,r,s?i:{set(t){setTimeout(()=>{i.set.call(this,t)},0),o&&o.set&&o.set.call(this,t)}}),()=>t(e,r,o||{},!0)},inDom:function(t){var e=t.ownerDocument;return!!e&&(Fg.contains(e,t)||Wg(t))},isAncestorRemoved:function t(e,r){if(s=(i=e)&&"host"in i&&"mode"in i&&Wu.host(i)||null,Boolean(s&&"shadowRoot"in s&&Wu.shadowRoot(s)===i))return!1;var i,s,n=r.getId(e);if(!r.has(n))return!0;var o=Fg.parentNode(e);return(!o||o.nodeType!==e.DOCUMENT_NODE)&&(!o||t(o,r))},isBlocked:function(t,e,r,i){if(!t)return!1;var s=Ug(t);if(!s)return!1;try{if("string"==typeof e){if(s.classList.contains(e))return!0;if(i&&null!==s.closest("."+e))return!0}else if(Vu(s,e,i))return!0}catch(t){}if(r){if(s.matches(r))return!0;if(i&&null!==s.closest(r))return!0}return!1},isIgnored:function(t,e,r){return!("TITLE"!==t.tagName||!r.headTitleMutations)||-2===e.getId(t)},isSerialized:function(t,e){return-1!==e.getId(t)},isSerializedIframe:function(t,e){return Boolean("IFRAME"===t.nodeName&&e.getMeta(t))},isSerializedStylesheet:function(t,e){return Boolean("LINK"===t.nodeName&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&"stylesheet"===t.getAttribute("rel")&&e.getMeta(t))},iterateResolveTree:function t(e,r){r(e.value);for(var i=e.children.length-1;i>=0;i--)t(e.children[i],r)},legacy_isTouchEvent:function(t){return Boolean(t.changedTouches)},get nowTimestamp(){return Dg},on:function(t,e,r){void 0===r&&(r=document);var i={capture:!0,passive:!0};return r.addEventListener(t,e,i),()=>r.removeEventListener(t,e,i)},patch:function(t,e,r){try{if(!(e in t))return()=>{};var i=t[e],s=r(i);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:i}})),t[e]=s,()=>{t[e]=i}}catch(t){return()=>{}}},polyfill:function(t){void 0===t&&(t=window),"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach)},queueToResolveTrees:function(t){var e={},r=(t,r)=>{var i={value:t,parent:r,children:[]};return e[t.node.id]=i,i},i=[];for(var s of t){var{nextId:n,parentId:o}=s;if(n&&n in e){var a=e[n];if(a.parent){var h=a.parent.children.indexOf(a);a.parent.children.splice(h,0,r(s,a.parent))}else{var u=i.indexOf(a);i.splice(u,0,r(s,null))}}else if(o in e){var l=e[o];l.children.push(r(s,l))}else i.push(r(s,null))}return i},shadowHostInDom:Wg,throttle:function(t,e,r){void 0===r&&(r={});var i=null,s=0;return function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];var h=Date.now();s||!1!==r.leading||(s=h);var u=e-(h-s),l=this;u<=0||u>e?(i&&(clearTimeout(i),i=null),s=h,t.apply(l,o)):i||!1===r.trailing||(i=setTimeout(()=>{s=!1===r.leading?0:Date.now(),i=null,t.apply(l,o)},u))}},uniqueTextMutations:function(t){for(var e=new Set,r=[],i=t.length;i--;){var s=t[i];e.has(s.id)||(r.push(s),e.add(s.id))}return r}},Symbol.toStringTag,{value:"Module"})),Vg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zg="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Jg=0;Jg<64;Jg++)zg[Vg.charCodeAt(Jg)]=Jg;var Xg;"undefined"!=typeof window&&window.Blob&&new Blob([(t=>Uint8Array.from(atob(t),t=>t.charCodeAt(0)))("KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=")],{type:"text/javascript;charset=utf-8"});try{if(2!==Array.from([1],t=>2*t)[0]){var Kg=document.createElement("iframe");document.body.appendChild(Kg),Array.from=(null==(ku=Kg.contentWindow)?void 0:ku.Array.from)||Array.from,document.body.removeChild(Kg)}}catch(t){console.debug("Unable to override Array.from",t)}new Gu,function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"}(Xg||(Xg={}));class $g{constructor(t){Ou(this,"fileName"),Ou(this,"functionName"),Ou(this,"lineNumber"),Ou(this,"columnNumber"),this.fileName=t.fileName||"",this.functionName=t.functionName||"",this.lineNumber=t.lineNumber,this.columnNumber=t.columnNumber}toString(){var t=this.lineNumber||"",e=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+t+":"+e+")":this.fileName+":"+t+":"+e}}var Hg=/(^|@)\S+:\d+/,qg=/^\s*at .*(\S+:\d+|\(native\))/m,Qg=/^(eval@)?(\[native code])?$/,tw={parse:function(t){return t?void 0!==t.stacktrace||void 0!==t["opera#sourceloc"]?this.parseOpera(t):t.stack&&t.stack.match(qg)?this.parseV8OrIE(t):t.stack?this.parseFFOrSafari(t):(console.warn("[console-record-plugin]: Failed to parse error object:",t),[]):[]},extractLocation:function(t){if(-1===t.indexOf(":"))return[t];var e=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));if(!e)throw new Error("Cannot parse given url: "+t);return[e[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(t){return t.stack.split("\n").filter(function(t){return!!t.match(qg)},this).map(function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var e=t.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=e.match(/ (\((.+):(\d+):(\d+)\)$)/),i=(e=r?e.replace(r[0],""):e).split(/\s+/).slice(1),s=this.extractLocation(r?r[1]:i.pop()),n=i.join(" ")||void 0,o=["eval","<anonymous>"].indexOf(s[0])>-1?void 0:s[0];return new $g({functionName:n,fileName:o,lineNumber:s[1],columnNumber:s[2]})},this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter(function(t){return!t.match(Qg)},this).map(function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new $g({functionName:t});var e=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(e),i=r&&r[1]?r[1]:void 0,s=this.extractLocation(t.replace(e,""));return new $g({functionName:i,fileName:s[0],lineNumber:s[1],columnNumber:s[2]})},this)},parseOpera:function(t){return!t.stacktrace||t.message.indexOf("\n")>-1&&t.message.split("\n").length>t.stacktrace.split("\n").length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(t){for(var e=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),i=[],s=2,n=r.length;s<n;s+=2){var o=e.exec(r[s]);o&&i.push(new $g({fileName:o[2],lineNumber:parseFloat(o[1])}))}return i},parseOpera10:function(t){for(var e=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split("\n"),i=[],s=0,n=r.length;s<n;s+=2){var o=e.exec(r[s]);o&&i.push(new $g({functionName:o[3]||void 0,fileName:o[2],lineNumber:parseFloat(o[1])}))}return i},parseOpera11:function(t){return t.stack.split("\n").filter(function(t){return!!t.match(Hg)&&!t.match(/^Error created at/)},this).map(function(t){var e=t.split("@"),r=this.extractLocation(e.pop()),i=(e.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new $g({functionName:i,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function ew(t){if(!t||!t.outerHTML)return"";for(var e="";t.parentElement;){var r=t.localName;if(!r)break;r=r.toLowerCase();var i=t.parentElement,s=[];if(i.children&&i.children.length>0)for(var n=0;n<i.children.length;n++){var o=i.children[n];o.localName&&o.localName.toLowerCase&&o.localName.toLowerCase()===r&&s.push(o)}s.length>1&&(r+=":eq("+s.indexOf(t)+")"),e=r+(e?">"+e:""),t=i}return e}function rw(t){return"[object Object]"===Object.prototype.toString.call(t)}function iw(t,e){if(0===e)return!0;var r=Object.keys(t);for(var i of r)if(rw(t[i])&&iw(t[i],e-1))return!0;return!1}function sw(t,e){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,e);var i=[],s=[];return JSON.stringify(t,function(t,e){if(i.length>0){var n=i.indexOf(this);~n?i.splice(n+1):i.push(this),~n?s.splice(n,1/0,t):s.push(t),~i.indexOf(e)&&(e=i[0]===e?"[Circular ~]":"[Circular ~."+s.slice(0,i.indexOf(e)).join(".")+"]")}else i.push(e);if(null===e)return e;if(void 0===e)return"undefined";if(function(t){if(rw(t)&&Object.keys(t).length>r.numOfKeysLimit)return!0;if("function"==typeof t)return!0;if(rw(t)&&iw(t,r.depthOfLimit))return!0;return!1}(e))return function(t){var e=t.toString();r.stringLengthLimit&&e.length>r.stringLengthLimit&&(e=e.slice(0,r.stringLengthLimit)+"...");return e}(e);if("bigint"==typeof e)return e.toString()+"n";if(e instanceof Event){var o={};for(var a in e){var h=e[a];Array.isArray(h)?o[a]=ew(h.length?h[0]:null):o[a]=h}return o}return e instanceof Node?e instanceof HTMLElement?e?e.outerHTML:"":e.nodeName:e instanceof Error?e.stack?e.stack+"\nEnd of stack for Error object":e.name+": "+e.message:e})}var nw={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function ow(t,e,r){var i,s=r?Object.assign({},nw,r):nw,n=s.logger;if(!n)return()=>{};i="string"==typeof n?e[n]:n;var o=0,a=!1,h=[];if(s.level.includes("error")){var u=e=>{var r=e.message,i=e.error,n=tw.parse(i).map(t=>t.toString()),o=[sw(r,s.stringifyOptions)];t({level:"error",trace:n,payload:o})};e.addEventListener("error",u),h.push(()=>{e.removeEventListener("error",u)});var l=e=>{var r,i;e.reason instanceof Error?i=[sw("Uncaught (in promise) "+(r=e.reason).name+": "+r.message,s.stringifyOptions)]:(r=new Error,i=[sw("Uncaught (in promise)",s.stringifyOptions),sw(e.reason,s.stringifyOptions)]);var n=tw.parse(r).map(t=>t.toString());t({level:"error",trace:n,payload:i})};e.addEventListener("unhandledrejection",l),h.push(()=>{e.removeEventListener("unhandledrejection",l)})}for(var c of s.level)h.push(f(i,c));return()=>{h.forEach(t=>t())};function f(e,r){var i=this;return e[r]?Gg.patch(e,r,e=>function(){for(var n=arguments.length,h=new Array(n),u=0;u<n;u++)h[u]=arguments[u];if(e.apply(i,h),!("assert"===r&&h[0]||a)){a=!0;try{var l=tw.parse(new Error).map(t=>t.toString()).splice(1),c=("assert"===r?h.slice(1):h).map(t=>sw(t,s.stringifyOptions));++o<s.lengthThreshold?t({level:r,trace:l,payload:c}):o===s.lengthThreshold&&t({level:"warn",trace:[],payload:[sw("The number of log records reached the threshold.")]})}catch(t){e("rrweb logger error:",t,...h)}finally{a=!1}}}):()=>{}}}var aw="undefined"!=typeof window?window:void 0,hw="undefined"!=typeof globalThis?globalThis:aw,uw=null==hw?void 0:hw.navigator,lw=null==hw?void 0:hw.document,cw=null==hw?void 0:hw.location,fw=null==hw?void 0:hw.fetch,dw=(null==hw?void 0:hw.XMLHttpRequest)&&"withCredentials"in new hw.XMLHttpRequest?hw.XMLHttpRequest:void 0;null==hw||hw.AbortController;var vw=null==uw?void 0:uw.userAgent,pw=null!=aw?aw:{},mw=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(mw||{}),gw=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(gw||{});function ww(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,t=>(+t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+t/4).toString(16))}function yw(t){return!(!t||"string"!=typeof t)&&!(t.length<2||t.length>10240)}function bw(t,e,r){if(t)if(Array.isArray(t))t.forEach((t,i)=>{e.call(r,t,i)});else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(r,t[i],i)}function Sw(t,e,r,i){var{capture:s=!1,passive:n=!0}=null!=i?i:{};null==t||t.addEventListener(e,r,{capture:s,passive:n})}function Cw(t,e){if(!e)return t;for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}function Iw(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];for(var s of r)for(var n of s)t.push(n);return t}var kw=Uint8Array,Aw=Uint16Array,Rw=Int32Array,xw=new kw([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Mw=new kw([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ew=new kw([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ow=function(t,e){for(var r=new Aw(31),i=0;i<31;++i)r[i]=e+=1<<t[i-1];var s=new Rw(r[30]);for(i=1;i<30;++i)for(var n=r[i];n<r[i+1];++n)s[n]=n-r[i]<<5|i;return{b:r,r:s}},Tw=Ow(xw,2),Nw=Tw.b,Bw=Tw.r;Nw[28]=258,Bw[258]=28;for(var _w=Ow(Mw,0).r,jw=new Aw(32768),Fw=0;Fw<32768;++Fw){var Lw=(43690&Fw)>>1|(21845&Fw)<<1;Lw=(61680&(Lw=(52428&Lw)>>2|(13107&Lw)<<2))>>4|(3855&Lw)<<4,jw[Fw]=((65280&Lw)>>8|(255&Lw)<<8)>>1}var Pw=function(t,e,r){for(var i=t.length,s=0,n=new Aw(e);s<i;++s)t[s]&&++n[t[s]-1];var o,a=new Aw(e);for(s=1;s<e;++s)a[s]=a[s-1]+n[s-1]<<1;if(r){o=new Aw(1<<e);var h=15-e;for(s=0;s<i;++s)if(t[s])for(var u=s<<4|t[s],l=e-t[s],c=a[t[s]-1]++<<l,f=c|(1<<l)-1;c<=f;++c)o[jw[c]>>h]=u}else for(o=new Aw(i),s=0;s<i;++s)t[s]&&(o[s]=jw[a[t[s]-1]++]>>15-t[s]);return o},Dw=new kw(288);for(Fw=0;Fw<144;++Fw)Dw[Fw]=8;for(Fw=144;Fw<256;++Fw)Dw[Fw]=9;for(Fw=256;Fw<280;++Fw)Dw[Fw]=7;for(Fw=280;Fw<288;++Fw)Dw[Fw]=8;var Uw=new kw(32);for(Fw=0;Fw<32;++Fw)Uw[Fw]=5;var Zw=Pw(Dw,9,0),Yw=Pw(Uw,5,0),Ww=function(t){return(t+7)/8|0},Gw=function(t,e,r){return(null==e||e<0)&&(e=0),(null==r||r>t.length)&&(r=t.length),new kw(t.subarray(e,r))},Vw=function(t,e,r){r<<=7&e;var i=e/8|0;t[i]|=r,t[i+1]|=r>>8},zw=function(t,e,r){r<<=7&e;var i=e/8|0;t[i]|=r,t[i+1]|=r>>8,t[i+2]|=r>>16},Jw=function(t,e){for(var r=[],i=0;i<t.length;++i)t[i]&&r.push({s:i,f:t[i]});var s=r.length,n=r.slice();if(!s)return{t:ty,l:0};if(1==s){var o=new kw(r[0].s+1);return o[r[0].s]=1,{t:o,l:1}}r.sort(function(t,e){return t.f-e.f}),r.push({s:-1,f:25001});var a=r[0],h=r[1],u=0,l=1,c=2;for(r[0]={s:-1,f:a.f+h.f,l:a,r:h};l!=s-1;)a=r[r[u].f<r[c].f?u++:c++],h=r[u!=l&&r[u].f<r[c].f?u++:c++],r[l++]={s:-1,f:a.f+h.f,l:a,r:h};var f=n[0].s;for(i=1;i<s;++i)n[i].s>f&&(f=n[i].s);var d=new Aw(f+1),v=Xw(r[l-1],d,0);if(v>e){i=0;var p=0,m=v-e,g=1<<m;for(n.sort(function(t,e){return d[e.s]-d[t.s]||t.f-e.f});i<s;++i){var w=n[i].s;if(!(d[w]>e))break;p+=g-(1<<v-d[w]),d[w]=e}for(p>>=m;p>0;){var y=n[i].s;d[y]<e?p-=1<<e-d[y]++-1:++i}for(;i>=0&&p;--i){var b=n[i].s;d[b]==e&&(--d[b],++p)}v=e}return{t:new kw(d),l:v}},Xw=function(t,e,r){return-1==t.s?Math.max(Xw(t.l,e,r+1),Xw(t.r,e,r+1)):e[t.s]=r},Kw=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new Aw(++e),i=0,s=t[0],n=1,o=function(t){r[i++]=t},a=1;a<=e;++a)if(t[a]==s&&a!=e)++n;else{if(!s&&n>2){for(;n>138;n-=138)o(32754);n>2&&(o(n>10?n-11<<5|28690:n-3<<5|12305),n=0)}else if(n>3){for(o(s),--n;n>6;n-=6)o(8304);n>2&&(o(n-3<<5|8208),n=0)}for(;n--;)o(s);n=1,s=t[a]}return{c:r.subarray(0,i),n:e}},$w=function(t,e){for(var r=0,i=0;i<e.length;++i)r+=t[i]*e[i];return r},Hw=function(t,e,r){var i=r.length,s=Ww(e+2);t[s]=255&i,t[s+1]=i>>8,t[s+2]=255^t[s],t[s+3]=255^t[s+1];for(var n=0;n<i;++n)t[s+n+4]=r[n];return 8*(s+4+i)},qw=function(t,e,r,i,s,n,o,a,h,u,l){Vw(e,l++,r),++s[256];for(var c=Jw(s,15),f=c.t,d=c.l,v=Jw(n,15),p=v.t,m=v.l,g=Kw(f),w=g.c,y=g.n,b=Kw(p),S=b.c,C=b.n,I=new Aw(19),k=0;k<w.length;++k)++I[31&w[k]];for(k=0;k<S.length;++k)++I[31&S[k]];for(var A=Jw(I,7),R=A.t,x=A.l,M=19;M>4&&!R[Ew[M-1]];--M);var E,O,T,N,B=u+5<<3,_=$w(s,Dw)+$w(n,Uw)+o,j=$w(s,f)+$w(n,p)+o+14+3*M+$w(I,R)+2*I[16]+3*I[17]+7*I[18];if(h>=0&&B<=_&&B<=j)return Hw(e,l,t.subarray(h,h+u));if(Vw(e,l,1+(j<_)),l+=2,j<_){E=Pw(f,d,0),O=f,T=Pw(p,m,0),N=p;var F=Pw(R,x,0);Vw(e,l,y-257),Vw(e,l+5,C-1),Vw(e,l+10,M-4),l+=14;for(k=0;k<M;++k)Vw(e,l+3*k,R[Ew[k]]);l+=3*M;for(var L=[w,S],P=0;P<2;++P){var D=L[P];for(k=0;k<D.length;++k){var U=31&D[k];Vw(e,l,F[U]),l+=R[U],U>15&&(Vw(e,l,D[k]>>5&127),l+=D[k]>>12)}}}else E=Zw,O=Dw,T=Yw,N=Uw;for(k=0;k<a;++k){var Z=i[k];if(Z>255){zw(e,l,E[(U=Z>>18&31)+257]),l+=O[U+257],U>7&&(Vw(e,l,Z>>23&31),l+=xw[U]);var Y=31&Z;zw(e,l,T[Y]),l+=N[Y],Y>3&&(zw(e,l,Z>>5&8191),l+=Mw[Y])}else zw(e,l,E[Z]),l+=O[Z]}return zw(e,l,E[256]),l+O[256]},Qw=new Rw([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ty=new kw(0),ey=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var r=e,i=9;--i;)r=(1&r&&-306674912)^r>>>1;t[e]=r}return t}(),ry=function(t,e,r,i,s){if(!s&&(s={l:1},e.dictionary)){var n=e.dictionary.subarray(-32768),o=new kw(n.length+t.length);o.set(n),o.set(t,n.length),t=o,s.w=n.length}return function(t,e,r,i,s,n){var o=n.z||t.length,a=new kw(i+o+5*(1+Math.ceil(o/7e3))+s),h=a.subarray(i,a.length-s),u=n.l,l=7&(n.r||0);if(e){l&&(h[0]=n.r>>3);for(var c=Qw[e-1],f=c>>13,d=8191&c,v=(1<<r)-1,p=n.p||new Aw(32768),m=n.h||new Aw(v+1),g=Math.ceil(r/3),w=2*g,y=function(e){return(t[e]^t[e+1]<<g^t[e+2]<<w)&v},b=new Rw(25e3),S=new Aw(288),C=new Aw(32),I=0,k=0,A=n.i||0,R=0,x=n.w||0,M=0;A+2<o;++A){var E=y(A),O=32767&A,T=m[E];if(p[O]=T,m[E]=O,x<=A){var N=o-A;if((I>7e3||R>24576)&&(N>423||!u)){l=qw(t,h,0,b,S,C,k,R,M,A-M,l),R=I=k=0,M=A;for(var B=0;B<286;++B)S[B]=0;for(B=0;B<30;++B)C[B]=0}var _=2,j=0,F=d,L=O-T&32767;if(N>2&&E==y(A-L))for(var P=Math.min(f,N)-1,D=Math.min(32767,A),U=Math.min(258,N);L<=D&&--F&&O!=T;){if(t[A+_]==t[A+_-L]){for(var Z=0;Z<U&&t[A+Z]==t[A+Z-L];++Z);if(Z>_){if(_=Z,j=L,Z>P)break;var Y=Math.min(L,Z-2),W=0;for(B=0;B<Y;++B){var G=A-L+B&32767,V=G-p[G]&32767;V>W&&(W=V,T=G)}}}L+=(O=T)-(T=p[O])&32767}if(j){b[R++]=268435456|Bw[_]<<18|_w[j];var z=31&Bw[_],J=31&_w[j];k+=xw[z]+Mw[J],++S[257+z],++C[J],x=A+_,++I}else b[R++]=t[A],++S[t[A]]}}for(A=Math.max(A,x);A<o;++A)b[R++]=t[A],++S[t[A]];l=qw(t,h,u,b,S,C,k,R,M,A-M,l),u||(n.r=7&l|h[l/8|0]<<3,l-=7,n.h=m,n.p=p,n.i=A,n.w=x)}else{for(A=n.w||0;A<o+u;A+=65535){var X=A+65535;X>=o&&(h[l/8|0]=u,X=o),l=Hw(h,l+1,t.subarray(A,X))}n.i=o}return Gw(a,0,i+Ww(l)+s)}(t,null==e.level?6:e.level,null==e.mem?s.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+e.mem,r,i,s)},iy=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8};function sy(t,e){e||(e={});var r=function(){var t=-1;return{p:function(e){for(var r=t,i=0;i<e.length;++i)r=ey[255&r^e[i]]^r>>>8;t=r},d:function(){return~t}}}(),i=t.length;r.p(t);var s=ry(t,e,function(t){return 10+(t.filename?t.filename.length+1:0)}(e),8),n=s.length;return function(t,e){var r=e.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=e.level<2?4:9==e.level?2:0,t[9]=3,0!=e.mtime&&iy(t,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),r){t[3]=8;for(var i=0;i<=r.length;++i)t[i+10]=r.charCodeAt(i)}}(s,e),iy(s,n-8,r.d()),iy(s,n-4,i),s}var ny="undefined"!=typeof TextEncoder&&new TextEncoder,oy="undefined"!=typeof TextDecoder&&new TextDecoder;try{oy.decode(ty,{stream:!0})}catch(t){}function ay(t,e){if(ny)return ny.encode(t);for(var r=t.length,i=new kw(t.length+(t.length>>1)),s=0,n=function(t){i[s++]=t},o=0;o<r;++o){if(s+5>i.length){var a=new kw(s+8+(r-o<<1));a.set(i),i=a}var h=t.charCodeAt(o);h<128||e?n(h):h<2048?(n(192|h>>6),n(128|63&h)):h>55295&&h<57344?(n(240|(h=65536+(1047552&h)|1023&t.charCodeAt(++o))>>18),n(128|h>>12&63),n(128|h>>6&63),n(128|63&h)):(n(224|h>>12),n(128|h>>6&63),n(128|63&h))}return Gw(i,0,s)}var hy=[gw.MouseMove,gw.MouseInteraction,gw.Scroll,gw.ViewportResize,gw.Input,gw.TouchMove,gw.MediaInteraction,gw.Drag];function uy(t){return function(t){for(var e="",r=0;r<t.length;r+=16384)e+=String.fromCharCode.apply(null,t.subarray(r,r+16384));return e}(sy(ay(JSON.stringify(t))))}function ly(t){try{return new Blob([JSON.stringify(t)]).size}catch(e){return 2*JSON.stringify(t).length}}function cy(t,e){if(void 0===e&&(e=6606028.8),t.size>=e&&t.data.length>1){var r=Math.floor(t.data.length/2),i=t.data.slice(0,r),s=t.data.slice(r);return[...cy({size:ly(i),data:i,sessionId:t.sessionId,windowId:t.windowId}),...cy({size:ly(s),data:s,sessionId:t.sessionId,windowId:t.windowId})]}return[t]}function fy(t,e,r,i,s){return t<e||t>r?(console.warn("[SessionRecording] "+i+" must be between "+e+" and "+r+". Using default: "+s),s):t}var dy="[SessionRecording]";function vy(){var t,e;return null===(e=null===(t=null==pw?void 0:pw.__VTiltExtensions__)||void 0===t?void 0:t.rrweb)||void 0===e?void 0:e.record}function py(t){return{rrwebMethod:t,enqueuedAt:Date.now(),attempt:1}}class my{constructor(t,e){void 0===e&&(e={}),this.o="/api/s",this.m=!1,this.S="unknown",this.C=Date.now(),this.I="",this.k="",this.A=[],this.R=()=>{this.M()},this.O=()=>{this.T("browser offline",{})},this.N=()=>{this.T("browser online",{})},this.B=()=>{if(null==lw?void 0:lw.visibilityState){var t="window "+lw.visibilityState;this.T(t,{})}},this._instance=t,this.j=e,this.F=this.L()}get isStarted(){return this.m}get started(){return this.m}get sessionId(){return this.I}get status(){return this.m?!0===this.S?"paused":"active":"disabled"}start(t){this.P()?(this.D(t),aw&&(Sw(aw,"beforeunload",this.R),Sw(aw,"offline",this.O),Sw(aw,"online",this.N),Sw(aw,"visibilitychange",this.B))):this.stop()}stop(){this.m&&this.U&&(this.U(),this.U=void 0,this.m=!1,aw&&(aw.removeEventListener("beforeunload",this.R),aw.removeEventListener("offline",this.O),aw.removeEventListener("online",this.N),aw.removeEventListener("visibilitychange",this.B)),this.L(),this.Z&&clearInterval(this.Z),console.info(dy+" stopped"))}stopRecording(){this.stop()}addCustomEvent(t,e){return this.T(t,e)}takeFullSnapshot(){return this.Y()}log(t,e){void 0===e&&(e="log"),this.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:e,trace:[],payload:[JSON.stringify(t)]}},timestamp:Date.now()})}updateConfig(t){this.j=r({},this.j,t)}P(){return!!this.j.enabled&&!!aw}D(t){if(void 0!==Object.assign&&void 0!==Array.from&&!this.m){this.m=!0;var e=this._instance.getSessionId();this.I=e||this.W(),this.k=this.W(),vy()?this.G():this.V(()=>{this.G()}),console.info(dy+" starting"),t&&this.J(t)}}V(t){var e,r=null===(e=pw.__VTiltExtensions__)||void 0===e?void 0:e.loadExternalDependency;r?r(this._instance,"recorder",e=>{e?console.error(dy+" Could not load recorder:",e):t()}):console.error(dy+" loadExternalDependency not available. Make sure external-scripts-loader is initialized.")}G(){var t,e,i=vy();if(i){var s={blockClass:this.j.blockClass||"vt-no-capture",blockSelector:this.j.blockSelector,ignoreClass:this.j.ignoreClass||"vt-ignore-input",maskTextClass:this.j.maskTextClass||"vt-mask",maskTextSelector:this.j.maskTextSelector,maskTextFn:void 0,maskAllInputs:null===(t=this.j.maskAllInputs)||void 0===t||t,maskInputOptions:r({password:!0},this.j.maskInputOptions),maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1},n=this.X();n.enabled&&(s.recordCanvas=!0,s.sampling={canvas:n.fps},s.dataURLOptions={type:"image/webp",quality:n.quality});var o=this.K();o&&(s.maskAllInputs=null===(e=o.maskAllInputs)||void 0===e||e,s.maskTextSelector=o.maskTextSelector,s.blockSelector=o.blockSelector);var a=this.$();this.U=i(r({emit:t=>{this.onRRwebEmit(t)},plugins:a},s)),this.C=Date.now(),this.S="boolean"==typeof this.S?this.S:"unknown",this.T("$session_options",{sessionRecordingOptions:s,activePlugins:a.map(t=>null==t?void 0:t.name)})}else console.error(dy+" onScriptLoaded was called but rrwebRecord is not available")}$(){var t,e,r=[];if(this.j.captureConsole)try{var i=null===(e=null===(t=pw.__VTiltExtensions__)||void 0===t?void 0:t.rrwebPlugins)||void 0===e?void 0:e.getRecordConsolePlugin;i&&r.push(i())}catch(t){console.warn(dy+" Failed to load console plugin",t)}return r}onRRwebEmit(t){if(this.H(),t&&"object"==typeof t){if(t.type===mw.Meta){var e=t.data;this.q=e.href}if(function(t){return t.type===mw.Custom&&"recording paused"===t.data.tag}(t));else if(!0===this.S)return;t.type===mw.FullSnapshot&&this.tt();var i=function(t){if(t.type!==mw.Plugin||"rrweb/console@1"!==t.data.plugin)return t;var e=t.data.payload;if(!(null==e?void 0:e.payload))return t;var i=e.payload.map(t=>"string"==typeof t&&t.length>1e3?t.substring(0,1e3)+"... [truncated]":t);return r({},t,{data:r({},t.data,{payload:r({},e,{payload:i})})})}(t);if(this.et(i),!0!==this.S||function(t){return t.type===mw.Custom&&"sessionIdle"===t.data.tag}(i)){var s=!1!==this.j.compressEvents?function(t){if(ly(t)<1024)return t;try{if(t.type===mw.FullSnapshot)return r({},t,{data:uy(t.data),cv:"2024-10"});if(t.type===mw.IncrementalSnapshot&&t.data.source===gw.Mutation){var e=t.data;return r({},t,{cv:"2024-10",data:r({},e,{texts:uy(e.texts),attributes:uy(e.attributes),removes:uy(e.removes),adds:uy(e.adds)})})}if(t.type===mw.IncrementalSnapshot&&t.data.source===gw.StyleSheetRule){var i=t.data;return r({},t,{cv:"2024-10",data:r({},i,{adds:i.adds?uy(i.adds):void 0,removes:i.removes?uy(i.removes):void 0})})}}catch(t){console.error("[SessionRecording] Could not compress event - will use uncompressed event",t)}return t}(i):i,n={$snapshot_bytes:ly(s),$snapshot_data:s,$session_id:this.I,$window_id:this.k};"disabled"!==this.status?this.rt(n):this.L()}}}H(){if(0!==this.A.length){var t=[...this.A];this.A=[],t.forEach(t=>{Date.now()-t.enqueuedAt<=2e3&&this.it(t)})}}et(t){var e=function(t){return 3===t.type&&hy.includes(t.data.source)}(t);if(!e&&!this.S){var r=t.timestamp-this.C,i=this.j.sessionIdleThresholdMs||3e5;r>i&&(this.S=!0,this.Z&&clearInterval(this.Z),this.T("sessionIdle",{eventTimestamp:t.timestamp,lastActivityTimestamp:this.C,threshold:i,bufferLength:this.F.data.length,bufferSize:this.F.size}),this.M())}var s=!1;if(e&&(this.C=t.timestamp,this.S)){var n="unknown"===this.S;this.S=!1,n||(this.T("sessionNoLongerIdle",{reason:"user activity",type:t.type}),s=!0)}if(!this.S){var o=this._instance.getSessionId();o&&o!==this.I?(this.I=o,this.k=this.W(),this.stop(),this.start("session_id_changed")):s&&this.tt()}}L(){return this.F={size:0,data:[],sessionId:this.I,windowId:this.k},this.F}M(){if(this.st&&(clearTimeout(this.st),this.st=void 0),"buffering"===this.status||"paused"===this.status||"disabled"===this.status)return this.st=setTimeout(()=>{this.M()},2e3),this.F;this.F.data.length>0&&cy(this.F).forEach(t=>{this.nt({$snapshot_bytes:t.size,$snapshot_data:t.data,$session_id:t.sessionId,$window_id:t.windowId})});return this.L()}rt(t){var e,r=2+((null===(e=this.F)||void 0===e?void 0:e.data.length)||0),i=t.$snapshot_bytes;!this.S&&(this.F.size+i+r>943718.4||this.F.sessionId!==this.I)&&(this.F=this.M()),this.F.size+=i,this.F.data.push(t.$snapshot_data),this.st||this.S||(this.st=setTimeout(()=>{this.M()},2e3))}nt(t){var e=this._instance.getConfig(),r=e.api_host||"",i=e.token||"";if(r&&i){var s=!1!==this.j.compressEvents,n=""+r.replace(/\/$/,"")+this.o+"?token="+encodeURIComponent(i)+(s?"&compression=gzip-js":""),o={token:i,distinct_id:this._instance.getDistinctId()||"",$session_id:this.I,$window_id:this.k,$snapshot_data:t.$snapshot_data,$snapshot_bytes:t.$snapshot_bytes,$lib:"web",$lib_version:this._instance.version||"unknown",timestamp:Date.now()};this.ot(n,o,s)}else console.warn(dy+" Missing api_host or token, cannot send snapshot")}ot(t,e,r){var i=JSON.stringify(e),s=e.$snapshot_data,n=Array.isArray(s)&&s.some(t=>2===(null==t?void 0:t.type)),o=i.length>6e4||n;if(r&&void 0!==aw)try{var a=sy(ay(i)),h=new Blob([a],{type:"application/octet-stream"});if(o)return void this.ht(t,h,"application/octet-stream");if("undefined"!=typeof navigator&&navigator.sendBeacon)if(navigator.sendBeacon(t,h))return;return void this.ht(t,h,"application/octet-stream")}catch(t){console.warn(dy+" Compression failed, sending uncompressed")}var u=t.replace("&compression=gzip-js","");if(o){var l=new Blob([i],{type:"application/json"});this.ht(u,l,"application/json")}else{if("undefined"!=typeof navigator&&navigator.sendBeacon){var c=new Blob([i],{type:"application/json"});if(navigator.sendBeacon(u,c))return}var f=new Blob([i],{type:"application/json"});this.ht(u,f,"application/json")}}ht(t,e,r,i){void 0===i&&(i=0);var s=e.size<6e4;fetch(t,{method:"POST",body:e,headers:{"Content-Type":r},keepalive:s}).then(s=>{s.ok||(s.status>=400&&s.status<500?console.warn(dy+" Snapshot rejected by server ("+s.status+"), not retrying"):this.ut(t,e,r,i))}).catch(()=>{this.ut(t,e,r,i)})}ut(t,e,r,i){if(i>=5)console.warn(dy+" Failed to send snapshot after 5 retries, giving up");else{var s=3e3*Math.pow(2,i),n=Math.min(s,3e4),o=(Math.random()-.5)*n,a=Math.ceil(n+o);console.warn(dy+" Snapshot send failed, retrying in "+Math.round(a/1e3)+"s (attempt "+(i+1)+"/5)"),setTimeout(()=>{this.ht(t,e,r,i+1)},a)}}tt(){if(this.Z&&clearInterval(this.Z),!0!==this.S){var t=this.j.fullSnapshotIntervalMs||3e5;this.Z=setInterval(()=>{this.Y()},t)}}it(t){try{return t.rrwebMethod(),!0}catch(e){return this.A.length<10?this.A.push({enqueuedAt:t.enqueuedAt||Date.now(),attempt:t.attempt+1,rrwebMethod:t.rrwebMethod}):console.warn(dy+" Could not emit queued rrweb event",e,t),!1}}T(t,e){return this.it(py(()=>vy().addCustomEvent(t,e)))}Y(){return this.it(py(()=>vy().takeFullSnapshot()))}X(){var t,e,r,i=this.j.captureCanvas,s=null!==(t=null==i?void 0:i.recordCanvas)&&void 0!==t&&t,n=null!==(e=null==i?void 0:i.canvasFps)&&void 0!==e?e:4,o=null!==(r=null==i?void 0:i.canvasQuality)&&void 0!==r?r:.4;return{enabled:s,fps:fy(n,0,12,"canvas recording fps",4),quality:fy(o,0,1,"canvas recording quality",.4)}}K(){var t,e=this.j.masking;if(e)return{maskAllInputs:null===(t=e.maskAllInputs)||void 0===t||t,maskTextSelector:e.maskTextSelector,blockSelector:e.blockSelector}}W(){return Math.random().toString(36).substring(2,15)}J(t,e){console.info(dy+" "+t.replace(/_/g," "),e),"recording_initialized"!==t&&"session_id_changed"!==t&&this.T(t,e)}}pw.__VTiltExtensions__=pw.__VTiltExtensions__||{},pw.__VTiltExtensions__.rrweb={record:Iu,version:"v2"},pw.__VTiltExtensions__.rrwebPlugins={getRecordConsolePlugin:t=>({name:"rrweb/console@1",observer:ow,options:t})},pw.__VTiltExtensions__.initSessionRecording=function(t,e){return new my(t,e)};var gy,wy=-1,yy=function(t){addEventListener("pageshow",function(e){e.persisted&&(wy=e.timeStamp,t(e))},!0)},by=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Sy=function(){var t=by();return t&&t.activationStart||0},Cy=function(t,e){var r=by(),i="navigate";return wy>=0?i="back-forward-cache":r&&(document.prerendering||Sy()>0?i="prerender":document.wasDiscarded?i="restore":r.type&&(i=r.type.replace(/_/g,"-"))),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},Iy=function(t,e,r){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var i=new PerformanceObserver(function(t){Promise.resolve().then(function(){e(t.getEntries())})});return i.observe(Object.assign({type:t,buffered:!0},r||{})),i}}catch(t){}},ky=function(t,e,r,i){var s,n;return function(o){e.value>=0&&(o||i)&&((n=e.value-(s||0))||void 0===s)&&(s=e.value,e.delta=n,e.rating=function(t,e){return t>e[1]?"poor":t>e[0]?"needs-improvement":"good"}(e.value,r),t(e))}},Ay=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},Ry=function(t){var e=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||t(e)};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},xy=function(t){var e=!1;return function(r){e||(t(r),e=!0)}},My=-1,Ey=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},Oy=function(t){"hidden"===document.visibilityState&&My>-1&&(My="visibilitychange"===t.type?t.timeStamp:0,Ny())},Ty=function(){addEventListener("visibilitychange",Oy,!0),addEventListener("prerenderingchange",Oy,!0)},Ny=function(){removeEventListener("visibilitychange",Oy,!0),removeEventListener("prerenderingchange",Oy,!0)},By=function(){return My<0&&(My=Ey(),Ty(),yy(function(){setTimeout(function(){My=Ey(),Ty()},0)})),{get firstHiddenTime(){return My}}},_y=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},jy=[1800,3e3],Fy=function(t,e){e=e||{},_y(function(){var r,i=By(),s=Cy("FCP"),n=Iy("paint",function(t){t.forEach(function(t){"first-contentful-paint"===t.name&&(n.disconnect(),t.startTime<i.firstHiddenTime&&(s.value=Math.max(t.startTime-Sy(),0),s.entries.push(t),r(!0)))})});n&&(r=ky(t,s,jy,e.reportAllChanges),yy(function(i){s=Cy("FCP"),r=ky(t,s,jy,e.reportAllChanges),Ay(function(){s.value=performance.now()-i.timeStamp,r(!0)})}))})},Ly=[.1,.25],Py=0,Dy=1/0,Uy=0,Zy=function(t){t.forEach(function(t){t.interactionId&&(Dy=Math.min(Dy,t.interactionId),Uy=Math.max(Uy,t.interactionId),Py=Uy?(Uy-Dy)/7+1:0)})},Yy=function(){return gy?Py:performance.interactionCount||0},Wy=function(){"interactionCount"in performance||gy||(gy=Iy("event",Zy,{type:"event",buffered:!0,durationThreshold:0}))},Gy=[200,500],Vy=0,zy=function(){return Yy()-Vy},Jy=[],Xy={},Ky=function(t){var e=Jy[Jy.length-1],r=Xy[t.interactionId];if(r||Jy.length<10||t.duration>e.latency){if(r)r.entries.push(t),r.latency=Math.max(r.latency,t.duration);else{var i={id:t.interactionId,latency:t.duration,entries:[t]};Xy[i.id]=i,Jy.push(i)}Jy.sort(function(t,e){return e.latency-t.latency}),Jy.splice(10).forEach(function(t){delete Xy[t.id]})}},$y=[2500,4e3],Hy={},qy=[800,1800],Qy=function t(e){document.prerendering?_y(function(){return t(e)}):"complete"!==document.readyState?addEventListener("load",function(){return t(e)},!0):setTimeout(e,0)},tb={onLCP:function(t,e){e=e||{},_y(function(){var r,i=By(),s=Cy("LCP"),n=function(t){var e=t[t.length-1];e&&e.startTime<i.firstHiddenTime&&(s.value=Math.max(e.startTime-Sy(),0),s.entries=[e],r())},o=Iy("largest-contentful-paint",n);if(o){r=ky(t,s,$y,e.reportAllChanges);var a=xy(function(){Hy[s.id]||(n(o.takeRecords()),o.disconnect(),Hy[s.id]=!0,r(!0))});["keydown","click"].forEach(function(t){addEventListener(t,function(){return setTimeout(a,0)},!0)}),Ry(a),yy(function(i){s=Cy("LCP"),r=ky(t,s,$y,e.reportAllChanges),Ay(function(){s.value=performance.now()-i.timeStamp,Hy[s.id]=!0,r(!0)})})}})},onCLS:function(t,e){e=e||{},Fy(xy(function(){var r,i=Cy("CLS",0),s=0,n=[],o=function(t){t.forEach(function(t){if(!t.hadRecentInput){var e=n[0],r=n[n.length-1];s&&t.startTime-r.startTime<1e3&&t.startTime-e.startTime<5e3?(s+=t.value,n.push(t)):(s=t.value,n=[t])}}),s>i.value&&(i.value=s,i.entries=n,r())},a=Iy("layout-shift",o);a&&(r=ky(t,i,Ly,e.reportAllChanges),Ry(function(){o(a.takeRecords()),r(!0)}),yy(function(){s=0,i=Cy("CLS",0),r=ky(t,i,Ly,e.reportAllChanges),Ay(function(){return r()})}),setTimeout(r,0))}))},onFCP:Fy,onINP:function(t,e){e=e||{},_y(function(){var r;Wy();var i,s=Cy("INP"),n=function(t){t.forEach(function(t){t.interactionId&&Ky(t),"first-input"===t.entryType&&!Jy.some(function(e){return e.entries.some(function(e){return t.duration===e.duration&&t.startTime===e.startTime})})&&Ky(t)});var e,r=(e=Math.min(Jy.length-1,Math.floor(zy()/50)),Jy[e]);r&&r.latency!==s.value&&(s.value=r.latency,s.entries=r.entries,i())},o=Iy("event",n,{durationThreshold:null!==(r=e.durationThreshold)&&void 0!==r?r:40});i=ky(t,s,Gy,e.reportAllChanges),o&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),Ry(function(){n(o.takeRecords()),s.value<0&&zy()>0&&(s.value=0,s.entries=[]),i(!0)}),yy(function(){Jy=[],Vy=Yy(),s=Cy("INP"),i=ky(t,s,Gy,e.reportAllChanges)}))})},onTTFB:function(t,e){e=e||{};var r=Cy("TTFB"),i=ky(t,r,qy,e.reportAllChanges);Qy(function(){var s=by();if(s){var n=s.responseStart;if(n<=0||n>performance.now())return;r.value=Math.max(n-Sy(),0),r.entries=[s],i(!0),yy(function(){r=Cy("TTFB",0),(i=ky(t,r,qy,e.reportAllChanges))(!0)})}})}};pw.__VTiltExtensions__=pw.__VTiltExtensions__||{},pw.__VTiltExtensions__.webVitalsCallbacks=tb;pw.__VTiltExtensions__=pw.__VTiltExtensions__||{},pw.__VTiltExtensions__.loadExternalDependency=(t,e,r)=>{var i=((t,e)=>{var r=t.getConfig();return r.script_host?r.script_host.replace(/\/+$/gm,"")+"/dist/"+e+".js":"https://unpkg.com/@v-tilt/browser@1.3.0/dist/"+e+".js"})(t,e);((t,e,r)=>{if(t.getConfig().disable_external_dependency_loading)return console.warn("[ExternalScriptsLoader] "+e+" was requested but loading of external scripts is disabled."),r("Loading of external scripts is disabled");var i=null==lw?void 0:lw.querySelectorAll("script");if(i)for(var s,n=function(){if(i[o].src===e){var t=i[o];return t.__vtilt_loading_callback_fired?{v:r()}:(t.addEventListener("load",e=>{t.__vtilt_loading_callback_fired=!0,r(void 0,e)}),t.onerror=t=>r(t),{v:void 0})}},o=0;o<i.length;o++)if(s=n())return s.v;var a=()=>{var t;if(!lw)return r("document not found");var i=lw.createElement("script");i.type="text/javascript",i.crossOrigin="anonymous",i.src=e,i.onload=t=>{i.__vtilt_loading_callback_fired=!0,r(void 0,t)},i.onerror=t=>r(t);var s=lw.querySelectorAll("body > script");s.length>0?null===(t=s[0].parentNode)||void 0===t||t.insertBefore(i,s[0]):lw.body.appendChild(i)};(null==lw?void 0:lw.body)?a():null==lw||lw.addEventListener("DOMContentLoaded",a)})(t,i,r)};class eb{constructor(t){void 0===t&&(t={}),this.config=this.parseConfigFromScript(t)}parseConfigFromScript(t){if(!document.currentScript)return r({token:t.token||""},t);var e=document.currentScript,i=r({token:""},t);i.api_host=e.getAttribute("data-api-host")||e.getAttribute("data-host")||t.api_host,i.script_host=e.getAttribute("data-script-host")||t.script_host,i.proxy=e.getAttribute("data-proxy")||t.proxy,i.proxyUrl=e.getAttribute("data-proxy-url")||t.proxyUrl,i.token=e.getAttribute("data-token")||t.token||"",i.projectId=e.getAttribute("data-project-id")||t.projectId||"",i.domain=e.getAttribute("data-domain")||t.domain,i.storage=e.getAttribute("data-storage")||t.storage,i.stringifyPayload="false"!==e.getAttribute("data-stringify-payload");var s="true"===e.getAttribute("data-capture-performance");if(i.capture_performance=!!s||t.capture_performance,i.proxy&&i.proxyUrl)throw console.error("Error: Both data-proxy and data-proxy-url are specified. Please use only one of them."),new Error("Both data-proxy and data-proxy-url are specified. Please use only one of them.");for(var n of(i.globalAttributes=r({},t.globalAttributes),Array.from(e.attributes)))n.name.startsWith("data-vt-")&&(i.globalAttributes[n.name.slice(8).replace(/-/g,"_")]=n.value);return i}getConfig(){return r({},this.config)}updateConfig(t){this.config=r({},this.config,t)}}var rb="__vt_session",ib="__vt_window_id",sb="__vt_primary_window",nb="__vt_user_state",ob="__vt_device_id",ab="__vt_anonymous_id",hb="__vt_distinct_id",ub="__vt_user_properties",lb="localStorage",cb="localStorage+cookie",fb="sessionStorage",db="memory",vb="$initial_person_info",pb=31536e3,mb=["herokuapp.com","vercel.app","netlify.app"];function gb(t){var e;if(!t)return"";if("undefined"==typeof document)return"";var r=null===(e=document.location)||void 0===e?void 0:e.hostname;if(!r)return"";var i=r.match(/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i);return i?"."+i[0]:""}class wb{constructor(t){var e,r;this.memoryStorage=new Map,this.method=t.method,this.cross_subdomain=null!==(e=t.cross_subdomain)&&void 0!==e?e:function(){var t;if("undefined"==typeof document)return!1;var e=null===(t=document.location)||void 0===t?void 0:t.hostname;if(!e)return!1;var r=e.split(".").slice(-2).join(".");for(var i of mb)if(r===i)return!1;return!0}(),this.sameSite=t.sameSite||"Lax",this.secure=null!==(r=t.secure)&&void 0!==r?r:"undefined"!=typeof location&&"https:"===location.protocol}get(t){var e;try{if(this.method===db)return null!==(e=this.memoryStorage.get(t))&&void 0!==e?e:null;if(this.usesLocalStorage()){var r=localStorage.getItem(t);return null!==r?r:this.method===cb?this.getCookie(t):null}return this.usesSessionStorage()?sessionStorage.getItem(t):this.getCookie(t)}catch(e){return console.warn('[StorageManager] Failed to get "'+t+'":',e),null}}set(t,e,r){try{if(this.method===db)return void this.memoryStorage.set(t,e);if(this.usesLocalStorage())return localStorage.setItem(t,e),void(this.method===cb&&this.setCookie(t,e,r||pb));if(this.usesSessionStorage())return void sessionStorage.setItem(t,e);this.setCookie(t,e,r||pb)}catch(e){console.warn('[StorageManager] Failed to set "'+t+'":',e)}}remove(t){try{if(this.method===db)return void this.memoryStorage.delete(t);if(this.usesLocalStorage())return localStorage.removeItem(t),void(this.method===cb&&this.removeCookie(t));if(this.usesSessionStorage())return void sessionStorage.removeItem(t);this.removeCookie(t)}catch(e){console.warn('[StorageManager] Failed to remove "'+t+'":',e)}}getWithExpiry(t){var e=this.get(t);if(!e)return null;try{var r=JSON.parse(e);return r.expiry&&Date.now()>r.expiry?(this.remove(t),null):r.value}catch(t){return null}}setWithExpiry(t,e,i){var s=r({value:e},i?{expiry:Date.now()+i}:{});this.set(t,JSON.stringify(s))}getJSON(t){var e=this.get(t);if(!e)return null;try{return JSON.parse(e)}catch(t){return null}}setJSON(t,e,r){this.set(t,JSON.stringify(e),r)}getCookie(t){if("undefined"==typeof document)return null;var e=document.cookie.split(";");for(var r of e){var[i,...s]=r.trim().split("=");if(i===t){var n=s.join("=");try{return decodeURIComponent(n)}catch(t){return n}}}return null}setCookie(t,e,r){if("undefined"!=typeof document){var i=t+"="+encodeURIComponent(e);i+="; Max-Age="+r,i+="; path=/",i+="; SameSite="+this.sameSite,this.secure&&(i+="; Secure");var s=gb(this.cross_subdomain);s&&(i+="; domain="+s),document.cookie=i}}removeCookie(t){if("undefined"!=typeof document){var e=gb(this.cross_subdomain),r=t+"=; Max-Age=0; path=/";e&&(r+="; domain="+e),document.cookie=r,document.cookie=t+"=; Max-Age=0; path=/"}}usesLocalStorage(){return this.method===lb||this.method===cb}usesSessionStorage(){return this.method===fb}canUseSessionStorage(){if(void 0===aw||!(null==aw?void 0:aw.sessionStorage))return!1;try{var t="__vt_storage_test__";return aw.sessionStorage.setItem(t,"test"),aw.sessionStorage.removeItem(t),!0}catch(t){return!1}}getSessionStorage(){var t;return this.canUseSessionStorage()&&null!==(t=null==aw?void 0:aw.sessionStorage)&&void 0!==t?t:null}setMethod(t){this.method=t}getMethod(){return this.method}}class yb{constructor(t,e){void 0===t&&(t="cookie"),this.storage=new wb({method:t,cross_subdomain:e,sameSite:"Lax"}),this.k=void 0,this.lt()}getSessionId(){var t=this.ct();return t||(t=ww(),this.ft(t)),t}setSessionId(){var t=this.ct()||ww();return this.ft(t),t}resetSessionId(){this.dt(),this.setSessionId(),this.gt(ww())}ct(){return this.storage.get(rb)}ft(t){this.storage.set(rb,t,1800)}dt(){this.storage.remove(rb)}getWindowId(){if(this.k)return this.k;var t=this.storage.getSessionStorage();if(t){var e=t.getItem(ib);if(e)return this.k=e,e}var r=ww();return this.gt(r),r}gt(t){if(t!==this.k){this.k=t;var e=this.storage.getSessionStorage();e&&e.setItem(ib,t)}}lt(){var t=this.storage.getSessionStorage();if(t){var e=t.getItem(sb),r=t.getItem(ib);r&&!e?this.k=r:(r&&t.removeItem(ib),this.gt(ww())),t.setItem(sb,"true"),this.wt()}else this.k=ww()}wt(){var t=this.storage.getSessionStorage();aw&&t&&Sw(aw,"beforeunload",()=>{var t=this.storage.getSessionStorage();t&&t.removeItem(sb)},{capture:!1})}updateStorageMethod(t,e){this.storage=new wb({method:t,cross_subdomain:e,sameSite:"Lax"})}}function bb(t){if(!lw)return null;var e=lw.createElement("a");return e.href=t,e}function Sb(t,e){for(var r=((t.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),i=0;i<r.length;i++){var s=r[i].split("=");if(s[0]===e){if(s.length<2)return"";var n=s[1];try{n=decodeURIComponent(n)}catch(t){}return n.replace(/\+/g," ")}}return""}function Cb(t,e,r){if(!t||!e||!e.length)return t;for(var i=t.split("#"),s=i[0]||"",n=i[1],o=s.split("?"),a=o[1],h=o[0],u=(a||"").split("&"),l=[],c=0;c<u.length;c++){var f=u[c].split("="),d=f[0],v=f.slice(1).join("=");-1!==e.indexOf(d)?l.push(d+"="+r):d&&l.push(d+(v?"="+v:""))}var p=l.join("&");return h+(p?"?"+p:"")+(n?"#"+n:"")}function Ib(t){return"function"==typeof t}var kb="Mobile",Ab="iOS",Rb="Android",xb="Tablet",Mb=Rb+" "+xb,Eb="iPad",Ob="Apple",Tb=Ob+" Watch",Nb="Safari",Bb="BlackBerry",_b="Samsung",jb=_b+"Browser",Fb=_b+" Internet",Lb="Chrome",Pb=Lb+" OS",Db=Lb+" "+Ab,Ub="Internet Explorer",Zb=Ub+" "+kb,Yb="Opera",Wb=Yb+" Mini",Gb="Edge",Vb="Microsoft "+Gb,zb="Firefox",Jb=zb+" "+Ab,Xb="Nintendo",Kb="PlayStation",$b="Xbox",Hb=Rb+" "+kb,qb=kb+" "+Nb,Qb="Windows",tS=Qb+" Phone",eS="Nokia",rS="Ouya",iS="Generic",sS=iS+" "+kb.toLowerCase(),nS=iS+" "+xb.toLowerCase(),oS="Konqueror",aS="(\\d+(\\.\\d+)?)",hS=new RegExp("Version/"+aS),uS=new RegExp($b,"i"),lS=new RegExp(Kb+" \\w+","i"),cS=new RegExp(Xb+" \\w+","i"),fS=new RegExp(Bb+"|PlayBook|BB10","i"),dS={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"};function vS(t,e){return t.toLowerCase().includes(e.toLowerCase())}var pS=(t,e)=>e&&vS(e,Ob)||function(t){return vS(t,Nb)&&!vS(t,Lb)&&!vS(t,Rb)}(t),mS=function(t,e){return e=e||"",vS(t," OPR/")&&vS(t,"Mini")?Wb:vS(t," OPR/")?Yb:fS.test(t)?Bb:vS(t,"IE"+kb)||vS(t,"WPDesktop")?Zb:vS(t,jb)?Fb:vS(t,Gb)||vS(t,"Edg/")?Vb:vS(t,"FBIOS")?"Facebook "+kb:vS(t,"UCWEB")||vS(t,"UCBrowser")?"UC Browser":vS(t,"CriOS")?Db:vS(t,"CrMo")||vS(t,Lb)?Lb:vS(t,Rb)&&vS(t,Nb)?Hb:vS(t,"FxiOS")?Jb:vS(t.toLowerCase(),oS.toLowerCase())?oS:pS(t,e)?vS(t,kb)?qb:Nb:vS(t,zb)?zb:vS(t,"MSIE")||vS(t,"Trident/")?Ub:vS(t,"Gecko")?zb:""},gS={[Zb]:[new RegExp("rv:"+aS)],[Vb]:[new RegExp(Gb+"?\\/"+aS)],[Lb]:[new RegExp("("+Lb+"|CrMo)\\/"+aS)],[Db]:[new RegExp("CriOS\\/"+aS)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+aS)],[Nb]:[hS],[qb]:[hS],[Yb]:[new RegExp("(Opera|OPR)\\/"+aS)],[zb]:[new RegExp(zb+"\\/"+aS)],[Jb]:[new RegExp("FxiOS\\/"+aS)],[oS]:[new RegExp("Konqueror[:/]?"+aS,"i")],[Bb]:[new RegExp(Bb+" "+aS),hS],[Hb]:[new RegExp("android\\s"+aS,"i")],[Fb]:[new RegExp(jb+"\\/"+aS)],[Ub]:[new RegExp("(rv:|MSIE )"+aS)],Mozilla:[new RegExp("rv:"+aS)]},wS=function(t,e){var r=mS(t,e),i=gS[r];if(void 0===i)return null;for(var s=0;s<i.length;s++){var n=i[s],o=t.match(n);if(o)return parseFloat(o[o.length-2])}return null},yS=[[new RegExp($b+"; "+$b+" (.*?)[);]","i"),t=>[$b,t&&t[1]||""]],[new RegExp(Xb,"i"),[Xb,""]],[new RegExp(Kb,"i"),[Kb,""]],[fS,[Bb,""]],[new RegExp(Qb,"i"),(t,e)=>{if(/Phone/.test(e)||/WPDesktop/.test(e))return[tS,""];if(new RegExp(kb).test(e)&&!/IEMobile\b/.test(e))return[Qb+" "+kb,""];var r=/Windows NT ([0-9.]+)/i.exec(e);if(r&&r[1]){var i=r[1],s=dS[i]||"";return/arm/i.test(e)&&(s="RT"),[Qb,s]}return[Qb,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,t=>{if(t&&t[3]){var e=[t[3],t[4],t[5]||"0"];return[Ab,e.join(".")]}return[Ab,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,t=>{var e="";return t&&t.length>=3&&(e=void 0===t[2]?t[3]:t[2]),["watchOS",e]}],[new RegExp("("+Rb+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Rb+")","i"),t=>{if(t&&t[2]){var e=[t[2],t[3],t[4]||"0"];return[Rb,e.join(".")]}return[Rb,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,t=>{var e=["Mac OS X",""];if(t&&t[1]){var r=[t[1],t[2],t[3]||"0"];e[1]=r.join(".")}return e}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[Pb,""]],[/Linux|debian/i,["Linux",""]]],bS=function(t){return cS.test(t)?Xb:lS.test(t)?Kb:uS.test(t)?$b:new RegExp(rS,"i").test(t)?rS:new RegExp("("+tS+"|WPDesktop)","i").test(t)?tS:/iPad/.test(t)?Eb:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?Tb:fS.test(t)?Bb:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(eS,"i").test(t)?eS:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?!new RegExp(kb).test(t)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)?/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?Rb:Mb:Rb:new RegExp("(pda|"+kb+")","i").test(t)?sS:new RegExp(xb,"i").test(t)&&!new RegExp(xb+" pc","i").test(t)?nS:""},SS="https?://(.*)",CS=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],IS=Iw(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],CS),kS="<masked>";function AS(t){var e=function(t){return t?0===t.search(SS+"google.([^/?]*)")?"google":0===t.search(SS+"bing.com")?"bing":0===t.search(SS+"yahoo.com")?"yahoo":0===t.search(SS+"duckduckgo.com")?"duckduckgo":null:null}(t),r="yahoo"!==e?"q":"p",i={};if(null!==e){i.$search_engine=e;var s=lw?Sb(lw.referrer,r):"";s.length&&(i.ph_keyword=s)}return i}function RS(){if("undefined"!=typeof navigator)return navigator.language||navigator.userLanguage}function xS(){return(null==lw?void 0:lw.referrer)||"$direct"}function MS(){var t;return(null==lw?void 0:lw.referrer)&&(null===(t=bb(lw.referrer))||void 0===t?void 0:t.host)||"$direct"}function ES(t){var e,{r:r,u:i}=t,s={$referrer:r,$referring_domain:null==r?void 0:"$direct"===r?"$direct":null===(e=bb(r))||void 0===e?void 0:e.host};if(i){s.$current_url=i;var n=bb(i);s.$host=null==n?void 0:n.host,s.$pathname=null==n?void 0:n.pathname;var o=function(t){var e=IS.concat([]),r={};return bw(e,function(e){var i=Sb(t,e);r[e]=i||null}),r}(i);Cw(s,o)}r&&Cw(s,AS(r));return s}function OS(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(t){return}}function TS(){try{return(new Date).getTimezoneOffset()}catch(t){return}}function NS(t,e){if(!vw)return{};var r,i,s,[n,o]=function(t){for(var e=0;e<yS.length;e++){var[r,i]=yS[e],s=r.exec(t),n=s&&(Ib(i)?i(s,t):i);if(n)return n}return["",""]}(vw);return Cw(function(t){var e={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=t[r];null!=i&&""!==i&&(e[r]=i)}return e}({$os:n,$os_version:o,$browser:mS(vw,navigator.vendor),$device:bS(vw),$device_type:(i=vw,s=bS(i),s===Eb||s===Mb||"Kobo"===s||"Kindle Fire"===s||s===nS?xb:s===Xb||s===$b||s===Kb||s===rS?"Console":s===Tb?"Wearable":s?kb:"Desktop"),$timezone:OS(),$timezone_offset:TS()}),{$current_url:Cb(null==cw?void 0:cw.href,[],kS),$host:null==cw?void 0:cw.host,$pathname:null==cw?void 0:cw.pathname,$raw_user_agent:vw.length>1e3?vw.substring(0,997)+"...":vw,$browser_version:wS(vw,navigator.vendor),$browser_language:RS(),$browser_language_prefix:(r=RS(),"string"==typeof r?r.split("-")[0]:void 0),$screen_height:null==aw?void 0:aw.screen.height,$screen_width:null==aw?void 0:aw.screen.width,$viewport_height:null==aw?void 0:aw.innerHeight,$viewport_width:null==aw?void 0:aw.innerWidth,$lib:"web",$lib_version:"1.0.7",$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}class BS{constructor(t,e){void 0===t&&(t="localStorage"),this.yt=null,this.storage=new wb({method:t,cross_subdomain:e,sameSite:"Lax"}),this.userIdentity=this.loadUserIdentity()}getUserIdentity(){return r({},this.userIdentity)}getDistinctId(){return this.userIdentity.distinct_id}getAnonymousId(){return this.userIdentity.anonymous_id||(this.userIdentity.anonymous_id=this.generateAnonymousId(),this.storage.set(ab,this.userIdentity.anonymous_id,pb)),this.userIdentity.anonymous_id}getUserProperties(){return r({},this.userIdentity.properties)}getEffectiveId(){return this.userIdentity.distinct_id||this.getAnonymousId()}getDeviceId(){return this.userIdentity.device_id}getUserState(){return this.userIdentity.user_state}identify(t,e,i){if("number"==typeof t&&(t=t.toString(),console.warn("The first argument to vTilt.identify was a number, but it should be a string. It has been converted to a string.")),t)if(this.isDistinctIdStringLike(t))console.error('The string "'+t+'" was set in vTilt.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.');else if("COOKIELESS_SENTINEL_VALUE"!==t){var s=this.userIdentity.distinct_id;if(this.userIdentity.distinct_id=t,!this.userIdentity.device_id){var n=s||this.userIdentity.anonymous_id;this.userIdentity.device_id=n,this.userIdentity.properties=r({},this.userIdentity.properties,{$had_persisted_distinct_id:!0,$device_id:n})}t!==s&&(this.userIdentity.distinct_id=t);var o="anonymous"===this.userIdentity.user_state;t!==s&&o?(this.userIdentity.user_state="identified",e&&(this.userIdentity.properties=r({},this.userIdentity.properties,e)),i&&Object.keys(i).forEach(t=>{t in this.userIdentity.properties||(this.userIdentity.properties[t]=i[t])}),this.saveUserIdentity()):e||i?("anonymous"===this.userIdentity.user_state&&(this.userIdentity.user_state="identified"),e&&(this.userIdentity.properties=r({},this.userIdentity.properties,e)),i&&Object.keys(i).forEach(t=>{t in this.userIdentity.properties||(this.userIdentity.properties[t]=i[t])}),this.saveUserIdentity()):t!==s&&(this.userIdentity.user_state="identified",this.saveUserIdentity())}else console.error('The string "'+t+'" was set in vTilt.identify which indicates an error. This ID is only used as a sentinel value.');else console.error("Unique user id has not been set in vTilt.identify")}setUserProperties(t,e){if(!t&&!e)return!1;var i=this.userIdentity.distinct_id||this.userIdentity.anonymous_id,s=this.getPersonPropertiesHash(i,t,e);return this.yt===s?(console.info("VTilt: A duplicate setUserProperties call was made with the same properties. It has been ignored."),!1):(t&&(this.userIdentity.properties=r({},this.userIdentity.properties,t)),e&&Object.keys(e).forEach(t=>{t in this.userIdentity.properties||(this.userIdentity.properties[t]=e[t])}),this.saveUserIdentity(),this.yt=s,!0)}reset(t){var e=this.generateAnonymousId(),i=this.userIdentity.device_id,s=t?this.generateDeviceId():i;this.userIdentity={distinct_id:null,anonymous_id:e,device_id:s,properties:{},user_state:"anonymous"},this.yt=null,this.saveUserIdentity(),this.userIdentity.properties=r({},this.userIdentity.properties,{$last_vtilt_reset:(new Date).toISOString()}),this.saveUserIdentity()}setDistinctId(t){this.userIdentity.distinct_id=t,this.saveUserIdentity()}setUserState(t){this.userIdentity.user_state=t,this.saveUserIdentity()}updateUserProperties(t,e){t&&(this.userIdentity.properties=r({},this.userIdentity.properties,t)),e&&Object.keys(e).forEach(t=>{t in this.userIdentity.properties||(this.userIdentity.properties[t]=e[t])}),this.saveUserIdentity()}ensureDeviceId(t){this.userIdentity.device_id||(this.userIdentity.device_id=t,this.userIdentity.properties=r({},this.userIdentity.properties,{$had_persisted_distinct_id:!0,$device_id:t}),this.saveUserIdentity())}createAlias(t,e){return this.isValidDistinctId(t)?(void 0===e&&(e=this.getDistinctId()||this.getAnonymousId()),this.isValidDistinctId(e)?t===e?(console.warn("alias matches current distinct_id - should use identify instead"),null):{distinct_id:t,original:e}:(console.warn("Invalid original distinct ID"),null)):(console.warn("Invalid alias provided"),null)}isDistinctIdStringLikePublic(t){return this.isDistinctIdStringLike(t)}set_initial_person_info(t,e){if(!this.getStoredUserProperties()[vb]){var r=function(t,e){var r=t?Iw([],CS,e||[]):[],i=null==cw?void 0:cw.href.substring(0,1e3);return{r:xS().substring(0,1e3),u:i?Cb(i,r,kS):void 0}}(t,e);this.register_once({[vb]:r},void 0)}}get_initial_props(){var t,e,r=this.getStoredUserProperties()[vb];return r?(t=ES(r),e={},bw(t,function(t,r){var i;e["$initial_"+(i=String(r),i.startsWith("$")?i.substring(1):i)]=t}),e):{}}update_referrer_info(){var t={$referrer:xS(),$referring_domain:MS()};this.register_once(t,void 0)}loadUserIdentity(){var t=this.storage.get(ab)||this.generateAnonymousId(),e=this.storage.get(hb)||null,r=this.storage.get(ob)||this.generateDeviceId(),i=this.getStoredUserProperties(),s=this.storage.get(nb)||"anonymous";return{distinct_id:e,anonymous_id:t||this.generateAnonymousId(),device_id:r,properties:i,user_state:s}}saveUserIdentity(){this.storage.set(ab,this.userIdentity.anonymous_id,pb),this.storage.set(ob,this.userIdentity.device_id,pb),this.storage.set(nb,this.userIdentity.user_state,pb),this.userIdentity.distinct_id?this.storage.set(hb,this.userIdentity.distinct_id,pb):this.storage.remove(hb),this.setStoredUserProperties(this.userIdentity.properties)}getStoredUserProperties(){return this.storage.getJSON(ub)||{}}setStoredUserProperties(t){this.storage.setJSON(ub,t,pb)}register_once(t,e){var r=this.getStoredUserProperties(),i=!1;for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(s in r||(r[s]=t[s],i=!0));if(e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(n in r||(r[n]=e[n],i=!0));i&&this.setStoredUserProperties(r)}generateAnonymousId(){return"anon_"+ww()}generateDeviceId(){return"device_"+ww()}getPersonPropertiesHash(t,e,r){return JSON.stringify({distinct_id:t,userPropertiesToSet:e,userPropertiesToSetOnce:r})}isValidDistinctId(t){if(!t||"string"!=typeof t)return!1;var e=t.toLowerCase().trim();return!["null","undefined","false","true","anonymous","anon","user","test","guest","visitor","unknown","none"].includes(e)&&0!==t.trim().length}isDistinctIdStringLike(t){if(!t||"string"!=typeof t)return!1;var e=t.toLowerCase().trim();return["null","undefined","false","true","anonymous","anon","user","test","guest","visitor","unknown","none","demo","example","sample","placeholder"].includes(e)}updateStorageMethod(t,e){this.storage=new wb({method:t,cross_subdomain:e,sameSite:"Lax"}),this.userIdentity=this.loadUserIdentity()}}var _S=["LCP","CLS","FCP","INP"],jS=9e5,FS="[WebVitals]";class LS{constructor(t,e){this.initialized=!1,this.instance=e,this.buffer=this.createEmptyBuffer(),this.config=this.parseConfig(t.capture_performance),this.isEnabled&&aw&&this.startIfEnabled()}parseConfig(t){return"boolean"==typeof t?{web_vitals:t}:"object"==typeof t&&null!==t?t:{web_vitals:!1}}get isEnabled(){var t=null==cw?void 0:cw.protocol;return("http:"===t||"https:"===t)&&!1!==this.config.web_vitals}get allowedMetrics(){return this.config.web_vitals_allowed_metrics||_S}get flushTimeoutMs(){return this.config.web_vitals_delayed_flush_ms||5e3}get maxAllowedValue(){var t=this.config.__web_vitals_max_value;return void 0===t?jS:0===t?0:t<6e4?jS:t}createEmptyBuffer(){return{url:void 0,pathname:void 0,metrics:[],firstMetricTimestamp:void 0}}getWebVitalsCallbacks(){var t;return null===(t=pw.__VTiltExtensions__)||void 0===t?void 0:t.webVitalsCallbacks}startIfEnabled(){if(this.isEnabled&&!this.initialized){var t=this.getWebVitalsCallbacks();t?this.startCapturing(t):this.loadWebVitals()}}loadWebVitals(){var t,e=null===(t=pw.__VTiltExtensions__)||void 0===t?void 0:t.loadExternalDependency;e?e(this.instance,"web-vitals",t=>{if(t)console.error(FS+" Failed to load web-vitals:",t);else{var e=this.getWebVitalsCallbacks();e?this.startCapturing(e):console.error(FS+" web-vitals loaded but callbacks not registered")}}):console.warn(FS+" External dependency loader not available. Include web-vitals.ts entrypoint or use array.full.js bundle.")}startCapturing(t){if(!this.initialized){var e=this.allowedMetrics,r=this.addToBuffer.bind(this);e.includes("LCP")&&t.onLCP&&t.onLCP(r),e.includes("CLS")&&t.onCLS&&t.onCLS(r,{reportAllChanges:!0}),e.includes("FCP")&&t.onFCP&&t.onFCP(r),e.includes("INP")&&t.onINP&&t.onINP(r),e.includes("TTFB")&&t.onTTFB&&t.onTTFB(r),this.initialized=!0}}getCurrentUrl(){var t;return null===(t=null==aw?void 0:aw.location)||void 0===t?void 0:t.href}getCurrentPathname(){return null==cw?void 0:cw.pathname}addToBuffer(t){try{if(!aw||!lw||!cw)return;if(!(null==t?void 0:t.name)||void 0===(null==t?void 0:t.value))return void console.warn(FS+" Invalid metric received",t);if(this.maxAllowedValue>0&&t.value>=this.maxAllowedValue&&"CLS"!==t.name)return void console.warn(FS+" Ignoring "+t.name+" with value >= "+this.maxAllowedValue+"ms");var e=this.getCurrentUrl(),i=this.getCurrentPathname();if(!e)return void console.warn(FS+" Could not determine current URL");this.buffer.url&&this.buffer.url!==e&&this.flush(),this.buffer.url||(this.buffer.url=e,this.buffer.pathname=i),this.buffer.firstMetricTimestamp||(this.buffer.firstMetricTimestamp=Date.now());var s=this.cleanAttribution(t.attribution),n=this.instance.getSessionId(),o=this.getWindowId(),a=r({},t,{attribution:s,timestamp:Date.now(),$current_url:e,$session_id:n,$window_id:o}),h=this.buffer.metrics.findIndex(e=>e.name===t.name);h>=0?this.buffer.metrics[h]=a:this.buffer.metrics.push(a),this.scheduleFlush(),this.buffer.metrics.length>=this.allowedMetrics.length&&this.flush()}catch(t){console.error(FS+" Error adding metric to buffer:",t)}}cleanAttribution(t){if(t){var e=r({},t);return"interactionTargetElement"in e&&delete e.interactionTargetElement,e}}getWindowId(){var t;try{return(null===(t=this.instance.sessionManager)||void 0===t?void 0:t.getWindowId())||null}catch(t){return null}}scheduleFlush(){this.flushTimer&&clearTimeout(this.flushTimer),this.flushTimer=setTimeout(()=>{this.flush()},this.flushTimeoutMs)}flush(){if(this.flushTimer&&(clearTimeout(this.flushTimer),this.flushTimer=void 0),0!==this.buffer.metrics.length){try{var t={$pathname:this.buffer.pathname,$current_url:this.buffer.url};for(var e of this.buffer.metrics)t["$web_vitals_"+e.name+"_value"]=e.value,t["$web_vitals_"+e.name+"_event"]={name:e.name,value:e.value,delta:e.delta,rating:e.rating,id:e.id,navigationType:e.navigationType,attribution:e.attribution,$session_id:e.$session_id,$window_id:e.$window_id};this.instance.capture("$web_vitals",t)}catch(t){console.error(FS+" Error flushing metrics:",t)}this.buffer=this.createEmptyBuffer()}}}function PS(t,e,r){try{if(!(e in t))return()=>{};var i=t[e],s=r(i);return Ib(s)&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__vtilt_wrapped__:{enumerable:!1,value:!0}})),t[e]=s,()=>{t[e]=i}}catch(t){return()=>{}}}class DS{constructor(t){var e;this._instance=t,this.bt=(null===(e=null==aw?void 0:aw.location)||void 0===e?void 0:e.pathname)||""}get isEnabled(){return!0}startIfEnabled(){this.isEnabled&&this.monitorHistoryChanges()}stop(){this.St&&this.St(),this.St=void 0}monitorHistoryChanges(){var t,e;if(aw&&cw&&(this.bt=cw.pathname||"",aw.history)){var r=this;(null===(t=aw.history.pushState)||void 0===t?void 0:t.__vtilt_wrapped__)||PS(aw.history,"pushState",t=>function(e,i,s){t.call(this,e,i,s),r.Ct("pushState")}),(null===(e=aw.history.replaceState)||void 0===e?void 0:e.__vtilt_wrapped__)||PS(aw.history,"replaceState",t=>function(e,i,s){t.call(this,e,i,s),r.Ct("replaceState")}),this.It()}}Ct(t){var e;try{var r=null===(e=null==aw?void 0:aw.location)||void 0===e?void 0:e.pathname;if(!r||!cw||!lw)return;if(r!==this.bt&&this.isEnabled){var i={navigation_type:t};this._instance.capture("$pageview",i)}this.bt=r}catch(e){console.error("Error capturing "+t+" pageview",e)}}It(){if(!this.St&&aw){var t=()=>{this.Ct("popstate")};Sw(aw,"popstate",t),this.St=()=>{aw&&aw.removeEventListener("popstate",t)}}}}var US="[SessionRecording]";class ZS{constructor(t,e){void 0===e&&(e={}),this._instance=t,this.j=e}get started(){var t;return!!(null===(t=this.kt)||void 0===t?void 0:t.isStarted)}get status(){var t;return(null===(t=this.kt)||void 0===t?void 0:t.status)||"lazy_loading"}get sessionId(){var t;return(null===(t=this.kt)||void 0===t?void 0:t.sessionId)||""}startIfEnabledOrStop(t){var e;if(!this.P||!(null===(e=this.kt)||void 0===e?void 0:e.isStarted)){var r=void 0!==Object.assign&&void 0!==Array.from;this.P&&r?(this.At(t),console.info(US+" starting")):this.stopRecording()}}stopRecording(){var t;null===(t=this.kt)||void 0===t||t.stop()}log(t,e){var r;void 0===e&&(e="log"),(null===(r=this.kt)||void 0===r?void 0:r.log)?this.kt.log(t,e):console.warn(US+" log called before recorder was ready")}updateConfig(t){var e;this.j=r({},this.j,t),null===(e=this.kt)||void 0===e||e.updateConfig(this.j)}get P(){var t,e=this._instance.getConfig(),r=null!==(t=this.j.enabled)&&void 0!==t&&t,i=!e.disable_session_recording;return!!aw&&r&&i}get Rt(){return"recorder"}At(t){var e,r,i,s;if(this.P)if((null===(r=null===(e=null==pw?void 0:pw.__VTiltExtensions__)||void 0===e?void 0:e.rrweb)||void 0===r?void 0:r.record)&&(null===(i=pw.__VTiltExtensions__)||void 0===i?void 0:i.initSessionRecording))this.G(t);else{var n=null===(s=pw.__VTiltExtensions__)||void 0===s?void 0:s.loadExternalDependency;n?n(this._instance,this.Rt,e=>{e?console.error(US+" could not load recorder:",e):this.G(t)}):console.error(US+" loadExternalDependency not available. Session recording cannot start.")}}G(t){var e,r=null===(e=pw.__VTiltExtensions__)||void 0===e?void 0:e.initSessionRecording;r?(this.kt||(this.kt=r(this._instance,this.j)),this.kt.start(t)):console.error(US+" initSessionRecording not available after script load")}}var YS,WS="text/plain";!function(t){t.GZipJS="gzip-js",t.None="none"}(YS||(YS={}));var GS=t=>{var{data:e,compression:r}=t;if(e){var i=(t=>JSON.stringify(t,(t,e)=>"bigint"==typeof e?e.toString():e))(e),s=new Blob([i]).size;if(r===YS.GZipJS&&s>=1024)try{var n=sy(ay(i),{mtime:0}),o=new Blob([n],{type:WS});if(o.size<.95*s)return{contentType:WS,body:o,estimatedSize:o.size}}catch(t){}return{contentType:"application/json",body:i,estimatedSize:s}}},VS=[{name:"fetch",available:"undefined"!=typeof fetch,method:t=>{var i=GS(t);if(i){var{contentType:s,body:n,estimatedSize:o}=i,a=t.compression===YS.GZipJS&&s===WS?t.url+(t.url.includes("?")?"&":"?")+"compression=gzip-js":t.url,h=r({"Content-Type":s},t.headers||{}),u=new AbortController,l=t.timeout?setTimeout(()=>u.abort(),t.timeout):null;fetch(a,{method:t.method||"POST",headers:h,body:n,keepalive:o<52428.8,signal:u.signal}).then(function(){var r=e(function*(e){var r,i=yield e.text(),s={statusCode:e.status,text:i};if(200===e.status)try{s.json=JSON.parse(i)}catch(t){}null===(r=t.callback)||void 0===r||r.call(t,s)});return function(t){return r.apply(this,arguments)}}()).catch(()=>{var e;null===(e=t.callback)||void 0===e||e.call(t,{statusCode:0})}).finally(()=>{l&&clearTimeout(l)})}}},{name:"XHR",available:"undefined"!=typeof XMLHttpRequest,method:t=>{var e=GS(t);if(e){var{contentType:r,body:i}=e,s=t.compression===YS.GZipJS&&r===WS?t.url+(t.url.includes("?")?"&":"?")+"compression=gzip-js":t.url,n=new XMLHttpRequest;n.open(t.method||"POST",s,!0),t.headers&&Object.entries(t.headers).forEach(t=>{var[e,r]=t;n.setRequestHeader(e,r)}),n.setRequestHeader("Content-Type",r),t.timeout&&(n.timeout=t.timeout),n.onreadystatechange=()=>{var e;if(4===n.readyState){var r={statusCode:n.status,text:n.responseText};if(200===n.status)try{r.json=JSON.parse(n.responseText)}catch(t){}null===(e=t.callback)||void 0===e||e.call(t,r)}},n.onerror=()=>{var e;null===(e=t.callback)||void 0===e||e.call(t,{statusCode:0})},n.send(i)}}},{name:"sendBeacon",available:"undefined"!=typeof navigator&&!!navigator.sendBeacon,method:t=>{var e=GS(t);if(e){var{contentType:r,body:i}=e;try{var s="string"==typeof i?new Blob([i],{type:r}):i,n=t.compression===YS.GZipJS&&r===WS?t.url+(t.url.includes("?")?"&":"?")+"compression=gzip-js":t.url;navigator.sendBeacon(n,s)}catch(t){}}}}],zS=t=>{var e,r=t.transport||"fetch",i=VS.find(t=>t.name===r&&t.available)||VS.find(t=>t.available);if(!i)return console.error("vTilt: No available transport method"),void(null===(e=t.callback)||void 0===e||e.call(t,{statusCode:0}));i.method(t)};class JS{constructor(t,e){var r,i,s,n;this.xt=!0,this.Mt=[],this.Et=(r=(null==e?void 0:e.flush_interval_ms)||3e3,i=250,s=5e3,n=3e3,"number"!=typeof r||isNaN(r)?n:Math.min(Math.max(r,i),s)),this.Ot=t}get length(){return this.Mt.length}enqueue(t){this.Mt.push(t),this.Tt||this.Nt()}unload(){if(this.Bt(),0!==this.Mt.length){var t=this._t();for(var e in t){var i=t[e];this.Ot(r({},i,{transport:"sendBeacon"}))}}}enable(){this.xt=!1,this.Nt()}pause(){this.xt=!0,this.Bt()}flush(){this.Bt(),this.jt(),this.Nt()}Nt(){this.xt||(this.Tt=setTimeout(()=>{this.Bt(),this.jt(),this.Mt.length>0&&this.Nt()},this.Et))}Bt(){this.Tt&&(clearTimeout(this.Tt),this.Tt=void 0)}jt(){if(0!==this.Mt.length){var t=this._t(),e=Date.now();for(var r in t){var i=t[r];i.events.forEach(t=>{var r=new Date(t.timestamp).getTime();t.$offset=Math.abs(r-e)}),this.Ot(i)}}}_t(){var t={};return this.Mt.forEach(e=>{var r=e.batchKey||e.url;t[r]||(t[r]={url:e.url,events:[],batchKey:e.batchKey}),t[r].events.push(e.event)}),this.Mt=[],t}}class XS{constructor(t){this.Ft=!1,this.Lt=3e3,this.Mt=[],this.Pt=!0,this.Ot=t.sendRequest,this.Dt=t.sendBeacon,aw&&void 0!==uw&&"onLine"in uw&&(this.Pt=uw.onLine,Sw(aw,"online",()=>{this.Pt=!0,this.Ut()}),Sw(aw,"offline",()=>{this.Pt=!1}))}get length(){return this.Mt.length}enqueue(t,e){if(void 0===e&&(e=0),e>=10)console.warn("VTilt: Request failed after 10 retries, giving up");else{var r=function(t){var e=3e3*Math.pow(2,t),r=e/2,i=Math.min(18e5,e),s=(Math.random()-.5)*(i-r);return Math.ceil(i+s)}(e),i=Date.now()+r;this.Mt.push({retryAt:i,request:t,retriesPerformedSoFar:e+1});var s="VTilt: Enqueued failed request for retry in "+Math.round(r/1e3)+"s";this.Pt||(s+=" (Browser is offline)"),console.warn(s),this.Ft||(this.Ft=!0,this.Zt())}}retriableRequest(t){var r=this;return e(function*(){try{var e=yield r.Ot(t);200!==e.statusCode&&(e.statusCode<400||e.statusCode>=500)&&r.enqueue(t,0)}catch(e){r.enqueue(t,0)}})()}Zt(){this.Yt&&clearTimeout(this.Yt),this.Yt=setTimeout(()=>{this.Pt&&this.Mt.length>0&&this.Ut(),this.Mt.length>0?this.Zt():this.Ft=!1},this.Lt)}Ut(){var t=this,r=Date.now(),i=[],s=[];this.Mt.forEach(t=>{t.retryAt<r?s.push(t):i.push(t)}),this.Mt=i,s.forEach(function(){var r=e(function*(e){var{request:r,retriesPerformedSoFar:i}=e;try{var s=yield t.Ot(r);200!==s.statusCode&&(s.statusCode<400||s.statusCode>=500)&&t.enqueue(r,i)}catch(e){t.enqueue(r,i)}});return function(t){return r.apply(this,arguments)}}())}unload(){this.Yt&&(clearTimeout(this.Yt),this.Yt=void 0),this.Mt.forEach(t=>{var{request:e}=t;try{this.Dt(e)}catch(t){console.error("VTilt: Failed to send beacon on unload",t)}}),this.Mt=[]}}var KS="vt_rate_limit";class $S{constructor(t){var e,r;void 0===t&&(t={}),this.lastEventRateLimited=!1,this.eventsPerSecond=null!==(e=t.eventsPerSecond)&&void 0!==e?e:10,this.eventsBurstLimit=Math.max(null!==(r=t.eventsBurstLimit)&&void 0!==r?r:10*this.eventsPerSecond,this.eventsPerSecond),this.persistence=t.persistence,this.captureWarning=t.captureWarning,this.lastEventRateLimited=this.checkRateLimit(!0).isRateLimited}checkRateLimit(t){var e,r,i,s;void 0===t&&(t=!1);var n=Date.now(),o=null!==(r=null===(e=this.persistence)||void 0===e?void 0:e.get(KS))&&void 0!==r?r:{tokens:this.eventsBurstLimit,last:n},a=(n-o.last)/1e3;o.tokens+=a*this.eventsPerSecond,o.last=n,o.tokens>this.eventsBurstLimit&&(o.tokens=this.eventsBurstLimit);var h=o.tokens<1;return h||t||(o.tokens=Math.max(0,o.tokens-1)),!h||this.lastEventRateLimited||t||null===(i=this.captureWarning)||void 0===i||i.call(this,"vTilt client rate limited. Config: "+this.eventsPerSecond+" events/second, "+this.eventsBurstLimit+" burst limit."),this.lastEventRateLimited=h,null===(s=this.persistence)||void 0===s||s.set(KS,o),{isRateLimited:h,remainingTokens:o.tokens}}shouldAllowEvent(){return!this.checkRateLimit(!1).isRateLimited}getRemainingTokens(){return this.checkRateLimit(!0).remainingTokens}}var HS=Array.isArray;class qS{constructor(t){void 0===t&&(t={}),this.version="1.1.5",this.__loaded=!1,this.Wt=!1,this.Gt=null,this.__request_queue=[],this.Vt=!1,this.zt=!1,this.configManager=new eb(t);var e=this.configManager.getConfig();this.sessionManager=new yb(e.storage||"cookie",e.cross_subdomain_cookie),this.userManager=new BS(e.persistence||"localStorage",e.cross_subdomain_cookie),this.webVitalsManager=new LS(e,this),this.rateLimiter=new $S({eventsPerSecond:10,eventsBurstLimit:100,captureWarning:t=>{this.Jt("$$client_ingestion_warning",{$$client_ingestion_warning_message:t})}}),this.retryQueue=new XS({sendRequest:t=>this.Xt(t),sendBeacon:t=>this.Kt(t)}),this.requestQueue=new JS(t=>this.$t(t),{flush_interval_ms:3e3})}init(t,e,r){var i;if(r&&r!==tC){var s=null!==(i=QS[r])&&void 0!==i?i:new qS;return s._init(t,e,r),QS[r]=s,QS[tC][r]=s,s}return this._init(t,e,r)}_init(t,e,i){if(void 0===e&&(e={}),this.__loaded)return console.warn("vTilt: You have already initialized vTilt! Re-initializing is a no-op"),this;this.updateConfig(r({},e,{projectId:t||e.projectId,name:i})),this.__loaded=!0;var s=this.configManager.getConfig();return this.userManager.set_initial_person_info(s.mask_personal_data_properties,s.custom_personal_data_properties),this.historyAutocapture=new DS(this),this.historyAutocapture.startIfEnabled(),this.Ht(),this.qt(),this.Qt(),!1!==s.capture_pageview&&this.te(),this}Qt(){this.requestQueue.enable()}qt(){if(aw){var t=()=>{this.requestQueue.unload(),this.retryQueue.unload()};Sw(aw,"beforeunload",t),Sw(aw,"pagehide",t)}}toString(){var t,e=null!==(t=this.configManager.getConfig().name)&&void 0!==t?t:tC;return e!==tC&&(e=tC+"."+e),e}getCurrentDomain(){if(!cw)return"";var t=cw.protocol,e=cw.hostname,r=cw.port;return t+"//"+e+(r?":"+r:"")}ee(){var t=this.configManager.getConfig();return!(!t.projectId||!t.token)||(this.Vt||(console.warn("VTilt: projectId and token are required for tracking. Events will be skipped until init() or updateConfig() is called with these fields."),this.Vt=!0),!1)}buildUrl(){var t=this.configManager.getConfig(),{proxyUrl:e,proxy:r,api_host:i,token:s}=t;return e||(r?r+"/api/tracking?token="+s:i?i.replace(/\/+$/gm,"")+"/api/tracking?token="+s:"/api/tracking?token="+s)}sendRequest(t,e,r){if(this.ee()){if(r&&void 0!==aw)if(aw.__VTILT_ENQUEUE_REQUESTS)return void this.__request_queue.push({url:t,event:e});this.requestQueue.enqueue({url:t,event:e})}}$t(t){var{transport:e}=t;"sendBeacon"!==e?this.retryQueue.retriableRequest(t):this.Kt(t)}Xt(t){return new Promise(e=>{var{url:r,events:i}=t,s=1===i.length?i[0]:{events:i},n=this.configManager.getConfig().disable_compression?YS.None:YS.GZipJS;zS({url:r,data:s,method:"POST",transport:"XHR",compression:n,callback:t=>{e({statusCode:t.statusCode})}})})}Kt(t){var{url:e,events:r}=t,i=1===r.length?r[0]:{events:r},s=this.configManager.getConfig().disable_compression?YS.None:YS.GZipJS;zS({url:e,data:i,method:"POST",transport:"sendBeacon",compression:s})}re(t){this.sendRequest(t.url,t.event,!1)}capture(t,e,i){if(this.sessionManager.setSessionId(),uw&&uw.userAgent&&function(t){return!(t&&"string"==typeof t&&t.length>500)}(uw.userAgent)&&((null==i?void 0:i.skip_client_rate_limiting)||this.rateLimiter.shouldAllowEvent())){var s=this.buildUrl(),n=NS(),o=this.userManager.getUserProperties(),a=this.userManager.get_initial_props(),h=this.sessionManager.getSessionId(),u=this.sessionManager.getWindowId(),l=this.userManager.getAnonymousId(),c={};!this.zt&&Object.keys(a).length>0&&Object.assign(c,a),e.$set_once&&Object.assign(c,e.$set_once);var f=r({},n,o,{$session_id:h,$window_id:u},l?{$anon_distinct_id:l}:{},Object.keys(c).length>0?{$set_once:c}:{},e.$set?{$set:e.$set}:{},e);!this.zt&&Object.keys(a).length>0&&(this.zt=!0),"$pageview"===t&&lw&&(f.title=lw.title);var d,v,p=this.configManager.getConfig();if(!1!==p.stringifyPayload){if(d=Object.assign({},f,p.globalAttributes),!yw(d=JSON.stringify(d)))return}else if(d=Object.assign({},f,p.globalAttributes),!yw(JSON.stringify(d)))return;v="$identify"===t?this.userManager.getAnonymousId():this.userManager.getDistinctId()||this.userManager.getAnonymousId();var m={timestamp:(new Date).toISOString(),event:t,project_id:p.projectId||"",payload:d,distinct_id:v,anonymous_id:l};this.sendRequest(s,m,!0)}}Jt(t,e){this.capture(t,e,{skip_client_rate_limiting:!0})}trackEvent(t,e){void 0===e&&(e={}),this.capture(t,e)}identify(t,e,r){if("number"==typeof t&&(t=String(t),console.warn("The first argument to vTilt.identify was a number, but it should be a string. It has been converted to a string.")),t)if(this.userManager.isDistinctIdStringLikePublic(t))console.error('The string "'+t+'" was set in vTilt.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.');else if("COOKIELESS_SENTINEL_VALUE"!==t){var i=this.userManager.getDistinctId(),s=this.userManager.getAnonymousId(),n=this.userManager.getDeviceId(),o="anonymous"===this.userManager.getUserState();if(!n){var a=i||s;this.userManager.ensureDeviceId(a)}t!==i&&o?(this.userManager.setUserState("identified"),this.userManager.updateUserProperties(e,r),this.capture("$identify",{distinct_id:t,$anon_distinct_id:s,$set:e||{},$set_once:r||{}}),this.userManager.setDistinctId(t)):e||r?(o&&this.userManager.setUserState("identified"),this.userManager.updateUserProperties(e,r),this.capture("$set",{$set:e||{},$set_once:r||{}})):t!==i&&(this.userManager.setUserState("identified"),this.userManager.setDistinctId(t))}else console.error('The string "'+t+'" was set in vTilt.identify which indicates an error. This ID is only used as a sentinel value.');else console.error("Unique user id has not been set in vTilt.identify")}setUserProperties(t,e){this.userManager.setUserProperties(t,e)&&this.capture("$set",{$set:t||{},$set_once:e||{}})}resetUser(t){this.sessionManager.resetSessionId(),this.userManager.reset(t)}getUserIdentity(){return this.userManager.getUserIdentity()}getDeviceId(){return this.userManager.getDeviceId()}getUserState(){return this.userManager.getUserState()}createAlias(t,e){var r=this.userManager.createAlias(t,e);r?this.capture("$alias",{$original_id:r.original,$alias_id:r.distinct_id}):t===(e||this.userManager.getDistinctId()||this.userManager.getAnonymousId())&&this.identify(t)}te(){lw&&("visible"===lw.visibilityState?this.Wt||(this.Wt=!0,setTimeout(()=>{if(lw&&cw){this.capture("$pageview",{navigation_type:"initial_load"})}},300),this.Gt&&(lw.removeEventListener("visibilitychange",this.Gt),this.Gt=null)):this.Gt||(this.Gt=()=>{this.te()},Sw(lw,"visibilitychange",this.Gt)))}getConfig(){return this.configManager.getConfig()}getSessionId(){return this.sessionManager.getSessionId()}getDistinctId(){return this.userManager.getDistinctId()||this.userManager.getAnonymousId()}getAnonymousId(){return this.userManager.getAnonymousId()}updateConfig(t){this.configManager.updateConfig(t);var e=this.configManager.getConfig();this.sessionManager=new yb(e.storage||"cookie",e.cross_subdomain_cookie),this.userManager=new BS(e.persistence||"localStorage",e.cross_subdomain_cookie),this.webVitalsManager=new LS(e,this),this.sessionRecording&&e.session_recording&&this.sessionRecording.updateConfig(this.ie(e))}Ht(){var t=this.configManager.getConfig();if(!t.disable_session_recording){var e=this.ie(t);this.sessionRecording=new ZS(this,e),e.enabled&&this.sessionRecording.startIfEnabledOrStop("recording_initialized")}}ie(t){var e,r,i,s=t.session_recording||{};return{enabled:null!==(e=s.enabled)&&void 0!==e&&e,sampleRate:s.sampleRate,minimumDurationMs:s.minimumDurationMs,sessionIdleThresholdMs:s.sessionIdleThresholdMs,fullSnapshotIntervalMs:s.fullSnapshotIntervalMs,captureConsole:null!==(r=s.captureConsole)&&void 0!==r&&r,captureNetwork:null!==(i=s.captureNetwork)&&void 0!==i&&i,captureCanvas:s.captureCanvas,blockClass:s.blockClass,blockSelector:s.blockSelector,ignoreClass:s.ignoreClass,maskTextClass:s.maskTextClass,maskTextSelector:s.maskTextSelector,maskAllInputs:s.maskAllInputs,maskInputOptions:s.maskInputOptions,masking:s.masking,recordHeaders:s.recordHeaders,recordBody:s.recordBody,compressEvents:s.compressEvents,__mutationThrottlerRefillRate:s.__mutationThrottlerRefillRate,__mutationThrottlerBucketSize:s.__mutationThrottlerBucketSize}}startSessionRecording(){if(!this.sessionRecording){var t=this.configManager.getConfig(),e=this.ie(t);e.enabled=!0,this.sessionRecording=new ZS(this,e)}this.sessionRecording.startIfEnabledOrStop("recording_initialized")}stopSessionRecording(){var t;null===(t=this.sessionRecording)||void 0===t||t.stopRecording()}isSessionRecordingActive(){var t;return"active"===(null===(t=this.sessionRecording)||void 0===t?void 0:t.status)}getSessionRecordingId(){var t;return(null===(t=this.sessionRecording)||void 0===t?void 0:t.sessionId)||null}_execute_array(t){Array.isArray(t)&&t.forEach(t=>{if(t&&Array.isArray(t)&&t.length>0){var e=t[0],r=t.slice(1);if("function"==typeof this[e])try{this[e](...r)}catch(t){console.error("vTilt: Error executing queued call "+e+":",t)}}})}_dom_loaded(){this.__request_queue.forEach(t=>{this.re(t)}),this.__request_queue=[],this.Qt()}}var QS={},tC="vt",eC=!(void 0!==dw||void 0!==fw)&&-1===(null==vw?void 0:vw.indexOf("MSIE"))&&-1===(null==vw?void 0:vw.indexOf("Mozilla"));null!=aw&&(aw.__VTILT_ENQUEUE_REQUESTS=eC);var rC,iC;rC=QS[tC]=new qS,(iC=pw.vt)&&bw(iC._i,function(t){if(t&&HS(t)){var e=rC.init(t[0],t[1],t[2]),r=iC[t[2]||"vt"]||iC;e&&e._execute_array(r)}}),pw.vt=rC,function(){function t(){t.done||(t.done=!0,eC=!1,null!=aw&&(aw.__VTILT_ENQUEUE_REQUESTS=!1),bw(QS,function(t){t._dom_loaded()}))}lw&&"function"==typeof lw.addEventListener?"complete"===lw.readyState?t():Sw(lw,"DOMContentLoaded",t,{capture:!1}):aw&&console.error("Browser doesn't support `document.addEventListener` so vTilt couldn't be initialized")}()}();
2
+ //# sourceMappingURL=array.full.js.map